Package list mirage / c100a1d
Rearrange how Application.run is called Thomas Ross 1 year, 5 months ago
2 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
3030 import gettext
3131 import locale
3232
33 from gi.repository import Gio, Gdk
33 from gi.repository import Gio
3434
3535
3636 LOCALE_DOMAIN = "mirage"
123123 file=sys.stderr,
124124 )
125125
126 app = mirage.Base()
127 Gdk.threads_enter()
128
129126 try:
130 app.run([])
127 mirage.run([])
131128 except KeyboardInterrupt:
132129 pass
133
134 Gdk.threads_leave()
135130
136131
137132 if __name__ == "__main__":
7575 )
7676
7777 def do_activate(self):
78 Gdk.threads_init()
79
8078 # Constants
8179 self.open_mode_smart = 0
8280 self.open_mode_fit = 1
64226420 timer_screensaver = GLib.timeout_add(
64236421 1000, self.disable_screensaver_in_slideshow_mode
64246422 )
6423
6424 def run(argv):
6425 Gdk.threads_enter()
6426 app = Base()
6427 Gdk.threads_init()
6428 app.run(argv)
6429 Gdk.threads_leave()