simplify "append toolbar to menu" packing code

This commit is contained in:
Joshua Hoff 2011-10-11 20:42:09 -05:00 committed by Colomban Wendling
parent f9265535a3
commit cbadf177f4

View File

@ -480,8 +480,7 @@ void toolbar_update_ui(void)
/* we need to adjust the packing flags for the menubar to expand it if it is alone in the /* we need to adjust the packing flags for the menubar to expand it if it is alone in the
* hbox and not expand it if the toolbar is appended */ * hbox and not expand it if the toolbar is appended */
gtk_box_set_child_packing(GTK_BOX(hbox_menubar), menubar, gtk_box_set_child_packing(GTK_BOX(hbox_menubar), menubar,
! (toolbar_prefs.visible && toolbar_prefs.append_to_menu), ! (toolbar_prefs.visible && toolbar_prefs.append_to_menu), TRUE, 0, GTK_PACK_START);
! (toolbar_prefs.visible && toolbar_prefs.append_to_menu), 0, GTK_PACK_START);
} }