diff options
Diffstat (limited to 'community/ubuntuone-client/fix-notify-hint.patch')
-rw-r--r-- | community/ubuntuone-client/fix-notify-hint.patch | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/community/ubuntuone-client/fix-notify-hint.patch b/community/ubuntuone-client/fix-notify-hint.patch index f32280de9..58a0888ef 100644 --- a/community/ubuntuone-client/fix-notify-hint.patch +++ b/community/ubuntuone-client/fix-notify-hint.patch @@ -1,20 +1,19 @@ -diff -Naur ubuntuone-client-4.0.0.orig/ubuntuone/platform/notification/linux.py ubuntuone-client-4.0.0/ubuntuone/platform/notification/linux.py ---- ubuntuone-client-4.0.0.orig/ubuntuone/platform/notification/linux.py 2012-06-19 15:51:01.000000000 +0200 -+++ ubuntuone-client-4.0.0/ubuntuone/platform/notification/linux.py 2012-10-15 01:14:01.019476818 +0200 -@@ -40,7 +40,7 @@ +diff -Naur ubuntuone-client-4.2.0.orig/ubuntuone/platform/notification/linux.py ubuntuone-client-4.2.0/ubuntuone/platform/notification/linux.py +--- ubuntuone-client-4.2.0.orig/ubuntuone/platform/notification/linux.py 2013-04-01 16:37:48.530956424 +0000 ++++ ubuntuone-client-4.2.0/ubuntuone/platform/notification/linux.py 2013-04-01 16:38:32.333945773 +0000 +@@ -32,7 +32,7 @@ + USE_NOTIFY = False - if 'gi' in sys.modules and sys.modules['gi'] is not None: - try: -- from gi.repository import Notify -+ from gi.repository import GLib, Notify - Notify # pyflakes - NOTIFY_MODULE = 'gi' - except ImportError: -@@ -85,5 +85,6 @@ + try: +- from gi.repository import Notify ++ from gi.repository import GLib, Notify + USE_NOTIFY = True + except ImportError: + pass +@@ -67,5 +67,5 @@ if append: self.notification.set_hint_string('x-canonical-append', '') - self.notification.set_hint_int32('transient', int(True)) -+ if NOTIFY_MODULE == 'gi': -+ self.notification.set_hint('transient', GLib.Variant.new_boolean(1)) ++ self.notification.set_hint('transient', GLib.Variant.new_boolean(1)) self.notification.show() |