aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-sus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indicator-sus.c')
-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