Allow hiding of titlebar when window is maximized
This commit is contained in:
parent
fad246350e
commit
c242639558
2 changed files with 6 additions and 0 deletions
|
@ -5878,6 +5878,9 @@ midori_browser_init (MidoriBrowser* browser)
|
|||
G_CALLBACK (midori_browser_destroy_cb), NULL);
|
||||
gtk_window_set_role (GTK_WINDOW (browser), "browser");
|
||||
gtk_window_set_icon_name (GTK_WINDOW (browser), "web-browser");
|
||||
#if GTK_CHECK_VERSION (3, 4, 0)
|
||||
gtk_window_set_hide_titlebar_when_maximized (GTK_WINDOW (browser), TRUE);
|
||||
#endif
|
||||
vbox = gtk_vbox_new (FALSE, 0);
|
||||
gtk_container_add (GTK_CONTAINER (browser), vbox);
|
||||
gtk_widget_show (vbox);
|
||||
|
|
|
@ -3455,6 +3455,9 @@ midori_view_web_inspector_construct_window (gpointer inspector,
|
|||
}
|
||||
else
|
||||
gtk_window_set_icon_name (GTK_WINDOW (window), "midori");
|
||||
#if GTK_CHECK_VERSION (3, 4, 0)
|
||||
gtk_window_set_hide_titlebar_when_maximized (GTK_WINDOW (window), TRUE);
|
||||
#endif
|
||||
gtk_container_add (GTK_CONTAINER (window), inspector_view);
|
||||
gtk_widget_show_all (window);
|
||||
|
||||
|
|
Loading…
Reference in a new issue