aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-06-19 10:20:06 -0500
committerTed Gould <ted@canonical.com>2009-06-19 10:20:06 -0500
commit310a2c18788756cb5e5a5c321ce6ca918a786c6e (patch)
tree86ec936086deec484e25fd1fb1a5fa94560b2941 /src
parent377777d3cde780875ab39ffb647e4009153365bc (diff)
downloadayatana-indicator-session-310a2c18788756cb5e5a5c321ce6ca918a786c6e.tar.gz
ayatana-indicator-session-310a2c18788756cb5e5a5c321ce6ca918a786c6e.tar.bz2
ayatana-indicator-session-310a2c18788756cb5e5a5c321ce6ca918a786c6e.zip
Adding in separators
Diffstat (limited to 'src')
-rw-r--r--src/indicator-sus.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/indicator-sus.c b/src/indicator-sus.c
index 15d4e5a..86c84e2 100644
--- a/src/indicator-sus.c
+++ b/src/indicator-sus.c
@@ -17,6 +17,10 @@ static GtkMenu * users_menu = NULL;
static GtkMenu * session_menu = NULL;
static GtkMenu * main_menu = NULL;
+static GtkWidget * status_separator = NULL;
+static GtkWidget * users_separator = NULL;
+#define SEPARATOR_SHOWN(sep) (sep != NULL && GTK_WIDGET_VISIBLE(sep))
+
static DBusGConnection * connection = NULL;
static DBusGProxy * proxy = NULL;
@@ -57,6 +61,9 @@ build_status_menu (gpointer userdata)
status_menu = GTK_MENU(dbusmenu_gtkmenu_new(INDICATOR_STATUS_DBUS_NAME, INDICATOR_STATUS_DBUS_OBJECT));
+ status_separator = gtk_separator_menu_item_new();
+ gtk_widget_hide(status_separator); /* Should be default, I'm just being explicit. $(%*#$ hide already! */
+
return FALSE;
}
@@ -84,6 +91,9 @@ build_users_menu (gpointer userdata)
users_menu = GTK_MENU(dbusmenu_gtkmenu_new(INDICATOR_USERS_DBUS_NAME, INDICATOR_USERS_DBUS_OBJECT));
+ users_separator = gtk_separator_menu_item_new();
+ gtk_widget_hide(users_separator); /* Should be default, I'm just being explicit. $(%*#$ hide already! */
+
return FALSE;
}