aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-04 15:21:48 -0600
committerTed Gould <ted@gould.cx>2010-01-04 15:21:48 -0600
commita2d2135f87d23b9749beae32bfac606170edf8b4 (patch)
tree4bb90899bb3c61b0c657fec1b39bdfabfa604453 /src/session-service.c
parent45eb2bc39eec27da68ed1ca7e64bde46e0eafd19 (diff)
downloadayatana-indicator-session-a2d2135f87d23b9749beae32bfac606170edf8b4.tar.gz
ayatana-indicator-session-a2d2135f87d23b9749beae32bfac606170edf8b4.tar.bz2
ayatana-indicator-session-a2d2135f87d23b9749beae32bfac606170edf8b4.zip
Adding in a separator
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c
index b135371..bec7749 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -33,6 +33,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <libdbusmenu-glib/server.h>
#include <libdbusmenu-glib/menuitem.h>
+#include <libdbusmenu-glib/client.h>
#include <libindicator/indicator-service.h>
@@ -446,6 +447,10 @@ rebuild_items (DbusmenuMenuitem *root,
g_signal_connect (G_OBJECT (mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK (activate_new_session), NULL);
}
}
+
+ DbusmenuMenuitem * separator = dbusmenu_menuitem_new();
+ dbusmenu_menuitem_property_set(separator, DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_CLIENT_TYPES_SEPARATOR);
+ dbusmenu_menuitem_child_append(root, separator);
logout_mi = dbusmenu_menuitem_new();
if (supress_confirmations()) {