dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #15231
[Bug 1315384] Re: python-indicate not showing up in message indictor
libmessaging-menu already comes with python bindings through gobject-
introspection. Unfortunately the online documentation seems to have been
taken down. The libmessaging-menu-dev package contains the C
documentation (viewable with devhelp), which maps 1:1 to the python API.
Here's a simple example:
from gi.repository import GLib, Gio, MessagingMenu
mmapp = MessagingMenu.App(desktop_id='my-app.desktop')
# make the application appear in the messaging menu. The name and icon are taken from the desktop file above
mmapp.register()
def source_activated(mmapp, source_id):
print('source {} activated'.format(source_id))
# do something when the user clicks on a source. The source will be removed automatically
mmapp.connect('activate-source', source_activated)
# add a 'source' (a menu item below the application's name) with the name 'Inbox' and a count of 7
icon = Gio.ThemedIcon.new_with_default_fallbacks('my-source-icon')
mmapp.append_source_with_count('inbox', icon, 'Inbox', 7)
# this is not necessary for gtk applications, which start a mainloop in gtk_main()
GLib.MainLoop().run()
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to libindicate in Ubuntu.
https://bugs.launchpad.net/bugs/1315384
Title:
python-indicate not showing up in message indictor
Status in Libindicate:
Confirmed
Status in “libindicate” package in Ubuntu:
Confirmed
Bug description:
Install python-indicate and libindicate-doc. Run:
python /usr/share/doc/libindicate/examples/im-client.py
An entry should appear in message indicator, but does not. That worked
in 12.04 but is broken in 14.04.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python-indicate 12.10.1-0ubuntu3
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Fri May 2 15:22:27 2014
InstallationDate: Installed on 2014-05-01 (1 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: libindicate
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/libindicate/+bug/1315384/+subscriptions
References