aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-03 14:52:47 -0500
committerTed Gould <ted@canonical.com>2009-09-03 14:52:47 -0500
commitcdfa53bdefc312410ca350972eee33f0091edbbe (patch)
treea35b068d257ce3e6350a4e53927aa5523447a309 /src
parent4edd517ba3f85051cd4cecda211a86a97f6ddea3 (diff)
downloadayatana-indicator-session-cdfa53bdefc312410ca350972eee33f0091edbbe.tar.gz
ayatana-indicator-session-cdfa53bdefc312410ca350972eee33f0091edbbe.tar.bz2
ayatana-indicator-session-cdfa53bdefc312410ca350972eee33f0091edbbe.zip
Set the type of the menuitem to be a image menuitem.
Diffstat (limited to 'src')
-rw-r--r--src/status-service.c2
1 files changed, 2 insertions, 0 deletions
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));