Subversion Repositories basico

Rev

Rev 119 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 130
Line 102... Line 102...
102
        dialog.format_secondary_text("%s" % body)
102
        dialog.format_secondary_text("%s" % body)
103
        dialog.run()
103
        dialog.run()
104
        dialog.destroy()
104
        dialog.destroy()
105
105
106
106
107
    def fullscreen(self, switch, active):
-
 
108
        window = self.gui.get_widget('mainwindow')
-
 
109
        btnwpunfull = self.gui.get_widget('btnWPUnfullscreen')
-
 
110
        if active:
-
 
111
            window.fullscreen()
-
 
112
            btnwpunfull.set_no_show_all(False)
-
 
113
            btnwpunfull.show_all()
-
 
114
        else:
-
 
115
            window.unfullscreen()
-
 
116
            btnwpunfull.set_no_show_all(True)
-
 
117
            btnwpunfull.hide()
-
 
-
 
107
    #~ def fullscreen(self, switch, active):
-
 
108
        #~ window = self.gui.get_widget('mainwindow')
-
 
109
        #~ btnwpunfull = self.gui.get_widget('btnWPUnfullscreen')
-
 
110
        #~ if active:
-
 
111
            #~ window.fullscreen()
-
 
112
            #~ btnwpunfull.set_no_show_all(False)
-
 
113
            #~ btnwpunfull.show_all()
-
 
114
        #~ else:
-
 
115
            #~ window.unfullscreen()
-
 
116
            #~ btnwpunfull.set_no_show_all(True)
-
 
117
            #~ btnwpunfull.hide()
118
118
119
119
120
    def do_unfullscreen(self, *args):
120
    def do_unfullscreen(self, *args):
121
        # FIXME: use fullscreen method instead duplicate it
121
        # FIXME: use fullscreen method instead duplicate it
122
        switch = self.gui.get_widget('fullscreen')
122
        switch = self.gui.get_widget('fullscreen')