Permalink
Browse files

Keep the menu tray notification icon right-justified in the menu bar

By moving the menu tray out of the way, then appending it after conversation
menu items are migrated, it can obey its right-justification property.  This
will also make the conversation menu items appear adjacent to the Buddy List
menu items without the gap from the invisible menu tray.
  • Loading branch information...
1 parent 50b5b49 commit 710b01de1f8619b1903308d92dea6cd3de24ec2d @dm0- committed Apr 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 merge.c
View
@@ -160,6 +160,7 @@ pwm_merge_conversation(PidginBuddyList *gtkblist)
/* Migrate conversation menu items into the Buddy List bar. */
items = gtk_container_get_children(GTK_CONTAINER(gtkconvwin->menu.menubar));
+ gtk_widget_reparent(gtkblist->menutray, gtkconvwin->menu.menubar);
for ( item = items; item != NULL; item = item->next ) {
gtk_widget_reparent(GTK_WIDGET(item->data), blist_menu);
@@ -173,6 +174,7 @@ pwm_merge_conversation(PidginBuddyList *gtkblist)
}
}
+ gtk_widget_reparent(gtkblist->menutray, blist_menu);
pwm_store(gtkblist, "pwm_conv_menus", items);
/* Display instructions for users, and hide menu items for real convs. */

0 comments on commit 710b01d

Please sign in to comment.