hamster-applet r881 - branches/gnome-2-26/hamster



Author: tbaugis
Date: Wed Apr  1 12:04:31 2009
New Revision: 881
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=881&view=rev

Log:
don't show action buttons with the new ubuntu notification system,



Modified:
   branches/gnome-2-26/hamster/applet.py

Modified: branches/gnome-2-26/hamster/applet.py
==============================================================================
--- branches/gnome-2-26/hamster/applet.py	(original)
+++ branches/gnome-2-26/hamster/applet.py	Wed Apr  1 12:04:31 2009
@@ -69,10 +69,12 @@
 
     def msg(self, body, edit_cb, switch_cb):
         self._notify = pynotify.Notification(self.summary, body, self._icon, self._attach)
-        #translators: this is edit activity action in the notifier bubble
-        self._notify.add_action("edit", _("Edit"), edit_cb)
-        #translators: this is switch activity action in the notifier bubble
-        self._notify.add_action("switch", _("Switch"), switch_cb)
+
+        if "actions" in pynotify.get_server_caps():
+            #translators: this is edit activity action in the notifier bubble
+            self._notify.add_action("edit", _("Edit"), edit_cb)
+            #translators: this is switch activity action in the notifier bubble
+            self._notify.add_action("switch", _("Switch"), switch_cb)
         self._notify.show()
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]