Allow the panel to expand, to stop it from ever-growing in fullscreen
This commit is contained in:
parent
b7384bf441
commit
ca5bfa1b1d
1 changed files with 3 additions and 3 deletions
|
@ -4880,13 +4880,13 @@ midori_panel_notify_right_aligned_cb (MidoriPanel* panel,
|
||||||
gtk_container_remove (GTK_CONTAINER (hpaned), vpaned);
|
gtk_container_remove (GTK_CONTAINER (hpaned), vpaned);
|
||||||
if (right_aligned)
|
if (right_aligned)
|
||||||
{
|
{
|
||||||
gtk_paned_pack1 (GTK_PANED (hpaned), vpaned, FALSE, FALSE);
|
gtk_paned_pack1 (GTK_PANED (hpaned), vpaned, TRUE, FALSE);
|
||||||
gtk_paned_pack2 (GTK_PANED (hpaned), browser->panel, FALSE, FALSE);
|
gtk_paned_pack2 (GTK_PANED (hpaned), browser->panel, FALSE, FALSE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gtk_paned_pack1 (GTK_PANED (hpaned), browser->panel, FALSE, FALSE);
|
gtk_paned_pack1 (GTK_PANED (hpaned), browser->panel, FALSE, FALSE);
|
||||||
gtk_paned_pack2 (GTK_PANED (hpaned), vpaned, FALSE, FALSE);
|
gtk_paned_pack2 (GTK_PANED (hpaned), vpaned, TRUE, FALSE);
|
||||||
}
|
}
|
||||||
gtk_paned_set_position (GTK_PANED (hpaned), paned_size - paned_position);
|
gtk_paned_set_position (GTK_PANED (hpaned), paned_size - paned_position);
|
||||||
g_object_unref (browser->panel);
|
g_object_unref (browser->panel);
|
||||||
|
@ -6121,7 +6121,7 @@ midori_browser_init (MidoriBrowser* browser)
|
||||||
|
|
||||||
/* Notebook, containing all views */
|
/* Notebook, containing all views */
|
||||||
vpaned = gtk_vpaned_new ();
|
vpaned = gtk_vpaned_new ();
|
||||||
gtk_paned_pack2 (GTK_PANED (hpaned), vpaned, FALSE, FALSE);
|
gtk_paned_pack2 (GTK_PANED (hpaned), vpaned, TRUE, FALSE);
|
||||||
gtk_widget_show (vpaned);
|
gtk_widget_show (vpaned);
|
||||||
browser->notebook = gtk_notebook_new ();
|
browser->notebook = gtk_notebook_new ();
|
||||||
/* Remove the inner border between scrollbars and the window border */
|
/* Remove the inner border between scrollbars and the window border */
|
||||||
|
|
Loading…
Reference in a new issue