Blame SOURCES/system-config-printer-notify-urgency.patch

0a882b
diff -up system-config-printer-1.4.1/applet.py.notify-urgency system-config-printer-1.4.1/applet.py
0a882b
--- system-config-printer-1.4.1/applet.py.notify-urgency	2013-05-09 12:10:43.000000000 +0100
0a882b
+++ system-config-printer-1.4.1/applet.py	2013-06-06 17:10:15.619536855 +0100
0a882b
@@ -122,7 +122,7 @@ class NewPrinterNotification(dbus.servic
0a882b
                 text = _("No driver for this printer.")
0a882b
             n = Notify.Notification (title, text, 'printer')
0a882b
             if "actions" in Notify.get_server_caps():
0a882b
-                n.set_urgency (Notify.URGENCY_CRITICAL)
0a882b
+                n.set_urgency (Notify.Urgency.CRITICAL)
0a882b
                 n.set_timeout (Notify.EXPIRES_NEVER)
0a882b
                 n.add_action ("setup-printer", _("Search"),
0a882b
                               lambda x, y:
0a882b
@@ -194,7 +194,7 @@ class NewPrinterNotification(dbus.servic
0a882b
                 text = _("`%s' is ready for printing.") % name
0a882b
                 n = Notify.Notification (title, text)
0a882b
                 if "actions" in Notify.get_server_caps():
0a882b
-                    n.set_urgency (Notify.URGENCY_NORMAL)
0a882b
+                    n.set_urgency (Notify.Urgency.NORMAL)
0a882b
                     n.add_action ("test-page", _("Print test page"),
0a882b
                                   lambda x, y:
0a882b
                                       self.print_test_page (x, y, name))
0a882b
@@ -206,7 +206,7 @@ class NewPrinterNotification(dbus.servic
0a882b
                         (name, driver))
0a882b
                 n = Notify.Notification (title, text, 'printer')
0a882b
                 if "actions" in Notify.get_server_caps():
0a882b
-                    n.set_urgency (Notify.URGENCY_CRITICAL)
0a882b
+                    n.set_urgency (Notify.Urgency.CRITICAL)
0a882b
                     n.add_action ("test-page", _("Print test page"),
0a882b
                                   lambda x, y:
0a882b
                                       self.print_test_page (x, y, name, devid))
0a882b
diff -up system-config-printer-1.4.1/jobviewer.py.notify-urgency system-config-printer-1.4.1/jobviewer.py
0a882b
--- system-config-printer-1.4.1/jobviewer.py.notify-urgency	2013-05-09 12:10:43.000000000 +0100
0a882b
+++ system-config-printer-1.4.1/jobviewer.py	2013-06-06 17:10:15.619536855 +0100
0a882b
@@ -1724,9 +1724,9 @@ class JobViewer (GtkGUI):
0a882b
         level = reason.get_level ()
0a882b
         if (level == StateReason.ERROR or
0a882b
             reason.get_reason () == "connecting-to-device"):
0a882b
-            urgency = Notify.URGENCY_NORMAL
0a882b
+            urgency = Notify.Urgency.NORMAL
0a882b
         else:
0a882b
-            urgency = Notify.URGENCY_LOW
0a882b
+            urgency = Notify.Urgency.LOW
0a882b
 
0a882b
         (title, text) = reason.get_description ()
0a882b
         notification = Notify.Notification (title, text, 'printer')
0a882b
@@ -1788,7 +1788,7 @@ class JobViewer (GtkGUI):
0a882b
                                               (document.encode ('utf-8'),
0a882b
                                                printer.encode ('utf-8')),
0a882b
                                               'printer')
0a882b
-        notification.set_urgency (Notify.URGENCY_LOW)
0a882b
+        notification.set_urgency (Notify.Urgency.LOW)
0a882b
         notification.connect ('closed',
0a882b
                               self.on_completed_job_notification_closed)
0a882b
         notification.jobid = jobid