diff options
author | Timm Bäder <mail@baedert.org> | 2018-06-16 20:15:18 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-06-18 17:35:02 +0200 |
commit | e9a9bb069f2c105ab57c58bccb021ae544bb560a (patch) | |
tree | 135670e4389e1dab22802c392da8a42c61090b36 /gtk/gtkpaned.c | |
parent | df79f0231027cc9bf04c097f14884801d693c2d7 (diff) | |
download | gtk+-e9a9bb069f2c105ab57c58bccb021ae544bb560a.tar.gz |
paned: Remove unnecessary local variable
We can just pass the given allocation on.
Diffstat (limited to 'gtk/gtkpaned.c')
-rw-r--r-- | gtk/gtkpaned.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 9fcf23e198..86cf3c6d71 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -1329,26 +1329,19 @@ gtk_paned_size_allocate (GtkWidget *widget, } else { - GtkAllocation child_allocation; - - child_allocation.x = allocation->x; - child_allocation.y = allocation->y; - child_allocation.width = allocation->width; - child_allocation.height = allocation->height; - if (priv->child1 && gtk_widget_get_visible (priv->child1)) { gtk_paned_set_child_visible (paned, CHILD1, TRUE); gtk_paned_set_child_visible (paned, CHILD2, FALSE); - gtk_widget_size_allocate (priv->child1, &child_allocation, -1); + gtk_widget_size_allocate (priv->child1, allocation, -1); } else if (priv->child2 && gtk_widget_get_visible (priv->child2)) { gtk_paned_set_child_visible (paned, CHILD1, FALSE); gtk_paned_set_child_visible (paned, CHILD2, TRUE); - gtk_widget_size_allocate (priv->child2, &child_allocation, -1); + gtk_widget_size_allocate (priv->child2, allocation, -1); } else { |