Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions pluma/pluma-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -3563,15 +3563,24 @@ bottom_panel_size_allocate (GtkWidget *widget,
GtkAllocation *allocation,
PlumaWindow *window)
{
window->priv->bottom_panel_size = allocation->height;
/* Store what vpaned_restore_position () expects: the distance from the
* divider to the bottom of the paned, which includes the divider's handle.
* The panel's own height leaves the handle out, and storing it would make
* the panel shrink by the size of the handle every time pluma starts. */
window->priv->bottom_panel_size =
gtk_widget_get_allocated_height (window->priv->vpaned) -
gtk_paned_get_position (GTK_PANED (window->priv->vpaned));
}

static void
right_panel_size_allocate (GtkWidget *widget,
GtkAllocation *allocation,
PlumaWindow *window)
{
window->priv->right_panel_size = allocation->width;
/* As for the bottom panel: what hpaned_inner_restore_position () expects */
window->priv->right_panel_size =
gtk_widget_get_allocated_width (window->priv->hpaned_inner) -
gtk_paned_get_position (GTK_PANED (window->priv->hpaned_inner));
}

static void
Expand Down
Loading