Mercurial > hg > forks > geeqie
comparison src/layout_util.c @ 2813:e9e8e8b2afce
Move menu/toolbar to top of window
Moving the menu/toolbar to the top of the window eliminates the problem
of these items being partially obscured when the tools pane is reduced
to a small width.
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Sun, 12 Aug 2018 17:29:35 +0100 |
parents | 865f7eab9b6d |
children | e6f95baec8b5 |
comparison
equal
deleted
inserted
replaced
2812:865f7eab9b6d | 2813:e9e8e8b2afce |
---|---|
2701 } | 2701 } |
2702 g_object_ref(lw->toolbar[type]); | 2702 g_object_ref(lw->toolbar[type]); |
2703 return lw->toolbar[type]; | 2703 return lw->toolbar[type]; |
2704 } | 2704 } |
2705 | 2705 |
2706 GtkWidget *layout_actions_menu_tool_bar(LayoutWindow *lw) | |
2707 { | |
2708 GtkWidget *menu_bar; | |
2709 GtkWidget *toolbar; | |
2710 | |
2711 if (lw->menu_tool_bar) return lw->menu_tool_bar; | |
2712 | |
2713 menu_bar = layout_actions_menu_bar(lw); | |
2714 toolbar = layout_actions_toolbar(lw, TOOLBAR_MAIN); | |
2715 lw->menu_tool_bar = gtk_vbox_new(FALSE, 0); | |
2716 | |
2717 gtk_box_pack_start(GTK_BOX(lw->menu_tool_bar), menu_bar, FALSE, FALSE, 0); | |
2718 gtk_box_pack_start(GTK_BOX(lw->menu_tool_bar), toolbar, FALSE, FALSE, 0); | |
2719 | |
2720 g_object_ref(lw->menu_tool_bar); | |
2721 return lw->menu_tool_bar; | |
2722 } | |
2723 | |
2706 void layout_toolbar_clear(LayoutWindow *lw, ToolbarType type) | 2724 void layout_toolbar_clear(LayoutWindow *lw, ToolbarType type) |
2707 { | 2725 { |
2708 if (lw->toolbar_merge_id[type]) | 2726 if (lw->toolbar_merge_id[type]) |
2709 { | 2727 { |
2710 gtk_ui_manager_remove_ui(lw->ui_manager, lw->toolbar_merge_id[type]); | 2728 gtk_ui_manager_remove_ui(lw->ui_manager, lw->toolbar_merge_id[type]); |