I edited notifier.py here to do just that, but I've only been able to test it 
on systems with the new notification system (so I don't guarantuee that it will 
work on systems that DO support actions, although it should).
I wasn't able to find the original file to create a patch, so here is the code 
that should be inserted instead of

>               if buttons:
>                       actions = ["openbrowser", _("Go to Gmail Account"),\
>                                       "mailreader", _("Open mail reader")]

this is the replacement:

>               # Check if the notification system supports actions
>               capabilitiesMethod = 
> self.notif.get_dbus_method("GetCapabilities")
>               capabilities = capabilitiesMethod()
>               actionsSupport = "actions" in capabilities
>               
>               if buttons and actionsSupport:
>                       actions = ["openbrowser", _("Go to Gmail Account"),\
>                                       "mailreader", _("Open mail reader")]

-- 
cGmail should support the new Ubuntu notification system
https://bugs.launchpad.net/bugs/335197
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to