diff options
author | Ted Gould <ted@gould.cx> | 2010-07-07 16:36:46 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-07-07 16:36:46 -0500 |
commit | 4a8b1c170bde2526aea845e628894e1cceaa92d5 (patch) | |
tree | 58f69cfedd5eab7dff6cb68df7dfff4761646235 | |
parent | cfef5b08bd7812d6f97854f157ab0227a9cdfd03 (diff) | |
download | ayatana-indicator-datetime-4a8b1c170bde2526aea845e628894e1cceaa92d5.tar.gz ayatana-indicator-datetime-4a8b1c170bde2526aea845e628894e1cceaa92d5.tar.bz2 ayatana-indicator-datetime-4a8b1c170bde2526aea845e628894e1cceaa92d5.zip |
Making the separator and the settings item.
-rw-r--r-- | src/datetime-service.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 99a24f5..9154db5 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -5,6 +5,7 @@ #include <glib/gi18n.h> #include <libdbusmenu-glib/server.h> +#include <libdbusmenu-glib/client.h> #include <libdbusmenu-glib/menuitem.h> #include "dbus-shared.h" @@ -41,6 +42,17 @@ build_menus (DbusmenuMenuitem * root) // queue checking for apps } + DbusmenuMenuitem * separator = dbusmenu_menuitem_new(); + dbusmenu_menuitem_property_set(separator, DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_CLIENT_TYPES_SEPARATOR); + dbusmenu_menuitem_child_append(root, separator); + + DbusmenuMenuitem * settings = dbusmenu_menuitem_new(); + dbusmenu_menuitem_property_set (settings, DBUSMENU_MENUITEM_PROP_LABEL, _("Set Time and Date...")); + /* insensitive until we check for available apps */ + dbusmenu_menuitem_property_set_bool(settings, DBUSMENU_MENUITEM_PROP_ENABLED, FALSE); + //g_signal_connect(G_OBJECT(settings), DBUSMENU_MENUITEM_SIGNAL_ACTIVATE, G_CALLBACK(activate_cb), "time-admin"); + dbusmenu_menuitem_child_append(root, settings); + return; } |