[gtk/wip/baedert/single-node-window: 247/254] widget: Make 1 if out of 2 ifs
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/single-node-window: 247/254] widget: Make 1 if out of 2 ifs
- Date: Tue, 12 May 2020 16:24:56 +0000 (UTC)
commit c25f2ba5f2b409c038c196aba86d28082af3f6df
Author: Timm Bäder <mail baedert org>
Date: Sat May 2 07:50:57 2020 +0200
widget: Make 1 if out of 2 ifs
gtk/gtkwidget.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9469ed2bbd..8a2344c386 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11567,12 +11567,15 @@ gtk_widget_create_render_node (GtkWidget *widget,
gtk_css_style_snapshot_border (&boxes, snapshot);
if (priv->overflow == GTK_OVERFLOW_HIDDEN)
- gtk_snapshot_push_rounded_clip (snapshot, gtk_css_boxes_get_padding_box (&boxes));
-
- klass->snapshot (widget, snapshot);
-
- if (priv->overflow == GTK_OVERFLOW_HIDDEN)
- gtk_snapshot_pop (snapshot);
+ {
+ gtk_snapshot_push_rounded_clip (snapshot, gtk_css_boxes_get_padding_box (&boxes));
+ klass->snapshot (widget, snapshot);
+ gtk_snapshot_pop (snapshot);
+ }
+ else
+ {
+ klass->snapshot (widget, snapshot);
+ }
gtk_css_style_snapshot_outline (&boxes, snapshot);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]