diff options
author | Ted Gould <ted@canonical.com> | 2009-08-06 12:14:53 +0100 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-06 12:14:53 +0100 |
commit | 82a2c8c680be1f63c982c7016dc7665773c8496e (patch) | |
tree | baeefa540e4c4b7b3ba1186ecd0e48b011138ea5 | |
parent | 9b7303cd469357b2d17cb87313d83d47ffc16470 (diff) | |
download | ayatana-indicator-session-82a2c8c680be1f63c982c7016dc7665773c8496e.tar.gz ayatana-indicator-session-82a2c8c680be1f63c982c7016dc7665773c8496e.tar.bz2 ayatana-indicator-session-82a2c8c680be1f63c982c7016dc7665773c8496e.zip |
Status submenu
-rw-r--r-- | src/status-service.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/status-service.c b/src/status-service.c index dbb597c..4e16788 100644 --- a/src/status-service.c +++ b/src/status-service.c @@ -39,6 +39,7 @@ static const gchar * status_icons[STATUS_PROVIDER_STATUS_LAST] = { static DbusmenuMenuitem * root_menuitem = NULL; +static DbusmenuMenuitem * status_menuitem = NULL; static GMainLoop * mainloop = NULL; /* A fun little function to actually lock the screen. If, @@ -98,6 +99,10 @@ build_menu (gpointer data) DbusmenuMenuitem * root = DBUSMENU_MENUITEM(data); g_return_val_if_fail(root != NULL, FALSE); + status_menuitem = dbusmenu_menuitem_new(); + dbusmenu_menuitem_property_set(status_menuitem, "label", "Status"); + dbusmenu_menuitem_child_append(root, status_menuitem); + StatusProviderStatus i; for (i = STATUS_PROVIDER_STATUS_ONLINE; i < STATUS_PROVIDER_STATUS_LAST; i++) { DbusmenuMenuitem * mi = dbusmenu_menuitem_new(); @@ -106,7 +111,7 @@ build_menu (gpointer data) dbusmenu_menuitem_property_set(mi, "icon", status_icons[i]); g_signal_connect(G_OBJECT(mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(status_menu_click), GINT_TO_POINTER(i)); - dbusmenu_menuitem_child_append(root, mi); + dbusmenu_menuitem_child_append(status_menuitem, mi); g_debug("Built %s", status_strings[i]); } |