From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/ubuntuone-client/fix-notify-hint.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 community/ubuntuone-client/fix-notify-hint.patch (limited to 'community/ubuntuone-client/fix-notify-hint.patch') diff --git a/community/ubuntuone-client/fix-notify-hint.patch b/community/ubuntuone-client/fix-notify-hint.patch new file mode 100644 index 000000000..58a0888ef --- /dev/null +++ b/community/ubuntuone-client/fix-notify-hint.patch @@ -0,0 +1,19 @@ +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 + + 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)) ++ self.notification.set_hint('transient', GLib.Variant.new_boolean(1)) + self.notification.show() -- cgit v1.2.3-54-g00ecf