File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919- use proper docstring (pull/130)
2020- remove deprecated SIGNAL_RUN_LAST (pull/134)
2121- use remote ppd for CUPS shared queues (pull/137)
22+ - get rid of warnings in applet (Fedora issue #1732890)
2223
23241.5.10 changes
2425--------------
Original file line number Diff line number Diff line change 2424from debug import *
2525
2626import dbus
27- import dbus .glib
27+
28+ # set up global default main loop
29+ from dbus .mainloop .glib import DBusGMainLoop
30+ DBusGMainLoop (set_as_default = True )
31+
2832import dbus .service
33+ import gi
2934from gi .repository import GObject
3035from gi .repository import GLib
3136import time
4247 os .environ ['LC_ALL' ] = 'C'
4348 locale .setlocale (locale .LC_ALL , "" )
4449
50+ gi .require_version ('Notify' , '0.7' )
4551from gi .repository import Notify
4652
4753APPDIR = "/usr/share/system-config-printer"
@@ -453,7 +459,7 @@ def check_for_jobs (self, *args):
453459 except :
454460 pass
455461
456- loop = GObject .MainLoop ()
462+ loop = GLib .MainLoop ()
457463 runloop = RunLoop (session_bus , system_bus , loop )
458464 try :
459465 runloop .run ()
You can’t perform that action at this time.
0 commit comments