diff options
author | Ted Gould <ted@canonical.com> | 2009-09-03 14:54:37 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-03 14:54:37 -0500 |
commit | 615b300e15b67adcfa4bb2a9073cfc46a0036be4 (patch) | |
tree | cdc4b32dd68bdf95af28010999c1998c71a4233a | |
parent | df2b47f43e502695b20f711a7fcacb6034845f6f (diff) | |
parent | cdfa53bdefc312410ca350972eee33f0091edbbe (diff) | |
download | ayatana-indicator-session-615b300e15b67adcfa4bb2a9073cfc46a0036be4.tar.gz ayatana-indicator-session-615b300e15b67adcfa4bb2a9073cfc46a0036be4.tar.bz2 ayatana-indicator-session-615b300e15b67adcfa4bb2a9073cfc46a0036be4.zip |
Update to set menuitem type.
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | src/status-service.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 418a9c4..122f779 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +indicator-session (0.1-0ubuntu1~ppa2~dbusmenu011r2) UNRELEASED; urgency=low + + * Update to set menuitem type. + + -- Ted Gould <ted@ubuntu.com> Thu, 03 Sep 2009 14:54:15 -0500 + indicator-session (0.1-0ubuntu1~ppa2~dbusmenu011r1) karmic; urgency=low * Upstream update for dbusmenu 0.1.1 diff --git a/src/status-service.c b/src/status-service.c index ce6edb6..b210dcd 100644 --- a/src/status-service.c +++ b/src/status-service.c @@ -30,6 +30,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include <dbus/dbus-glib.h> #include <dbus/dbus-glib-bindings.h> +#include <libdbusmenu-glib/client.h> #include <libdbusmenu-glib/server.h> #include <libdbusmenu-glib/menuitem.h> @@ -196,6 +197,7 @@ build_menu (gpointer data) for (i = STATUS_PROVIDER_STATUS_ONLINE; i < STATUS_PROVIDER_STATUS_LAST; i++) { DbusmenuMenuitem * mi = dbusmenu_menuitem_new(); + dbusmenu_menuitem_property_set(mi, "type", DBUSMENU_CLIENT_TYPES_IMAGE); dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_LABEL, _(status_strings[i])); dbusmenu_menuitem_property_set(mi, DBUSMENU_MENUITEM_PROP_ICON, status_icons[i]); g_signal_connect(G_OBJECT(mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(status_menu_click), GINT_TO_POINTER(i)); |