diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-01-07 03:34:14 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-01-07 03:34:32 +0100 |
commit | e70bb20934b5520b04037fd61c83fecc196bf336 (patch) | |
tree | 1d6832b64bbcf263593552ede9e267cdafce7986 | |
parent | b0de0e09bd0c996648040d766d3e9ad87cca4891 (diff) | |
download | fiv-e70bb20934b5520b04037fd61c83fecc196bf336.tar.gz fiv-e70bb20934b5520b04037fd61c83fecc196bf336.tar.xz fiv-e70bb20934b5520b04037fd61c83fecc196bf336.zip |
Improve toolbar hiding
-rw-r--r-- | fiv.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1406,12 +1406,16 @@ main(int argc, char *argv[]) G_CALLBACK(on_button_press_view), NULL); gtk_container_add(GTK_CONTAINER(view_scroller), g.view); + // We need to hide it together with the separator. + g.view_toolbar = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); + gtk_box_pack_start(GTK_BOX(g.view_toolbar), + make_view_toolbar(), FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(g.view_toolbar), + gtk_separator_new(GTK_ORIENTATION_VERTICAL), FALSE, FALSE, 0); + // Need to put the toolbar at the top, because of the horizontal scrollbar. g.view_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); - g.view_toolbar = make_view_toolbar(); gtk_box_pack_start(GTK_BOX(g.view_box), g.view_toolbar, FALSE, FALSE, 0); - gtk_box_pack_start(GTK_BOX(g.view_box), - gtk_separator_new(GTK_ORIENTATION_VERTICAL), FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(g.view_box), view_scroller, TRUE, TRUE, 0); g.browser_scroller = gtk_scrolled_window_new(NULL, NULL); |