diff options
author | Timm Bäder <mail@baedert.org> | 2018-06-16 20:31:48 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-06-18 17:35:02 +0200 |
commit | f8ddc4263846a08de62943d2eb2a2a04a33c5ba4 (patch) | |
tree | 80d396af684917c0181a8145c76521047513bec4 /gtk/gtkpaned.c | |
parent | e9a9bb069f2c105ab57c58bccb021ae544bb560a (diff) | |
download | gtk+-f8ddc4263846a08de62943d2eb2a2a04a33c5ba4.tar.gz |
paned: Chain up in snapshot
No need to snapshot all child widgets ourselves, the implementation in
GtkWidget can just do it for us.
Diffstat (limited to 'gtk/gtkpaned.c')
-rw-r--r-- | gtk/gtkpaned.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 86cf3c6d71..53419f817f 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -1369,8 +1369,6 @@ static void gtk_paned_snapshot (GtkWidget *widget, GtkSnapshot *snapshot) { - GtkPanedPrivate *priv = gtk_paned_get_instance_private (GTK_PANED (widget)); - gtk_snapshot_push_clip (snapshot, &GRAPHENE_RECT_INIT ( 0, 0, @@ -1378,15 +1376,8 @@ gtk_paned_snapshot (GtkWidget *widget, gtk_widget_get_height (widget) )); - if (priv->child1 && gtk_widget_get_visible (priv->child1) && - priv->child2 && gtk_widget_get_visible (priv->child2)) - gtk_widget_snapshot_child (widget, priv->handle_widget, snapshot); - - if (priv->child1 && gtk_widget_get_visible (priv->child1)) - gtk_widget_snapshot_child (widget, priv->child1, snapshot); - if (priv->child2 && gtk_widget_get_visible (priv->child2)) - gtk_widget_snapshot_child (widget, priv->child2, snapshot); + GTK_WIDGET_CLASS (gtk_paned_parent_class)->snapshot (widget, snapshot); gtk_snapshot_pop (snapshot); } |