aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-06-19 13:43:01 -0500
committerTed Gould <ted@canonical.com>2009-06-19 13:43:01 -0500
commit7f2cb8b3f917ceddd4ebae8dd8e55f966cbd0fcc (patch)
tree894107c5cb6373ae9828f93be0acf46c2a2bcee5 /src
parentc99e8b57e531374bff266fedb16a3915618af701 (diff)
downloadayatana-indicator-session-7f2cb8b3f917ceddd4ebae8dd8e55f966cbd0fcc.tar.gz
ayatana-indicator-session-7f2cb8b3f917ceddd4ebae8dd8e55f966cbd0fcc.tar.bz2
ayatana-indicator-session-7f2cb8b3f917ceddd4ebae8dd8e55f966cbd0fcc.zip
Fleshing out the insertion function. Let's get some menus.
Diffstat (limited to 'src')
-rw-r--r--src/indicator-sus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/indicator-sus.c b/src/indicator-sus.c
index b2419b9..6b69269 100644
--- a/src/indicator-sus.c
+++ b/src/indicator-sus.c
@@ -40,8 +40,13 @@ get_icon (void)
static void
menu_add (GtkContainer * source, GtkWidget * addee, GtkMenu * addto, guint positionoffset)
{
+ GList * location = g_list_find(GTK_MENU_SHELL(source)->children, addee);
+ guint position = g_list_position(GTK_MENU_SHELL(source)->children, location);
+ position += positionoffset;
+ gtk_menu_insert(addto, addee, position);
+ return;
}
static void