Don't call into Gtk directly from scp-dbus-service (bug #951710).

This commit is contained in:
Tim Waugh 2013-04-15 12:12:07 +01:00
parent 45d2fb8398
commit 2dac84ffc4
2 changed files with 1 additions and 20 deletions

View File

@ -23,26 +23,6 @@ diff -up system-config-printer-1.4.0/applet.py.DISPLAY system-config-printer-1.4
APPDIR="/usr/share/system-config-printer"
ICON="printer"
diff -up system-config-printer-1.4.0/scp-dbus-service.py.DISPLAY system-config-printer-1.4.0/scp-dbus-service.py
--- system-config-printer-1.4.0/scp-dbus-service.py.DISPLAY 2013-03-27 12:19:08.000000000 +0000
+++ system-config-printer-1.4.0/scp-dbus-service.py 2013-04-11 15:33:03.102010436 +0100
@@ -2,7 +2,7 @@
## system-config-printer
-## Copyright (C) 2010, 2011, 2012 Red Hat, Inc.
+## Copyright (C) 2010, 2011, 2012, 2013 Red Hat, Inc.
## Authors:
## Tim Waugh <twaugh@redhat.com>
@@ -531,6 +531,7 @@ if __name__ == '__main__':
_client_demo ()
sys.exit (0)
+ Gtk.init (sys.argv)
debugprint ("Service running...")
loop = GObject.MainLoop ()
g_killtimer = KillTimer (killfunc=loop.quit)
diff -up system-config-printer-1.4.0/system-config-printer.py.DISPLAY system-config-printer-1.4.0/system-config-printer.py
--- system-config-printer-1.4.0/system-config-printer.py.DISPLAY 2013-03-27 12:19:08.000000000 +0000
+++ system-config-printer-1.4.0/system-config-printer.py 2013-04-11 15:33:03.103010439 +0100

View File

@ -180,6 +180,7 @@ exit 0
%changelog
* Mon Apr 15 2013 Tim Waugh <twaugh@redhat.com> 1.4.0-4
- Don't call into Gtk directly from scp-dbus-service (bug #951710).
- Adjusted dependencies now we use GObject introspection.
* Fri Apr 12 2013 Tim Waugh <twaugh@redhat.com> 1.4.0-3