From 7f2cb8b3f917ceddd4ebae8dd8e55f966cbd0fcc Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 19 Jun 2009 13:43:01 -0500 Subject: Fleshing out the insertion function. Let's get some menus. --- src/indicator-sus.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/indicator-sus.c') 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 -- cgit v1.2.3