diff options
author | Ted Gould <ted@gould.cx> | 2010-02-17 23:24:09 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-17 23:24:09 -0600 |
commit | 765a3b87d9812680615dcb7278e16fea8f0fa1d1 (patch) | |
tree | 344f983517789f4e09fc4ac556cd59cfdb4efb8e /src/indicator-session.c | |
parent | 59c5e7039b4549c2e7e7a4052c0a3f9407961357 (diff) | |
download | ayatana-indicator-session-765a3b87d9812680615dcb7278e16fea8f0fa1d1.tar.gz ayatana-indicator-session-765a3b87d9812680615dcb7278e16fea8f0fa1d1.tar.bz2 ayatana-indicator-session-765a3b87d9812680615dcb7278e16fea8f0fa1d1.zip |
Registering a handler for our new type
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r-- | src/indicator-session.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c index dda8c76..d931bcd 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -135,13 +135,25 @@ get_icon (IndicatorObject * io) return status_image; } +static gboolean +new_user_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client) +{ + + return FALSE; +} + /* Indicator based function to get the menu for the whole applet. This starts up asking for the parts of the menu from the various services. */ static GtkMenu * get_menu (IndicatorObject * io) { - return GTK_MENU(dbusmenu_gtkmenu_new(INDICATOR_SESSION_DBUS_NAME, INDICATOR_SESSION_DBUS_OBJECT)); + DbusmenuGtkMenu * menu = dbusmenu_gtkmenu_new(INDICATOR_SESSION_DBUS_NAME, INDICATOR_SESSION_DBUS_OBJECT); + DbusmenuGtkClient * client = dbusmenu_gtkmenu_get_client(menu); + + dbusmenu_client_add_type_handler(DBUSMENU_CLIENT(client), USER_ITEM_TYPE, new_user_item); + + return GTK_MENU(menu); } |