[gtk+/wip/csoriano/pathbar-bin-view-window: 53/65] gtkhidingbox: use internal gtk_widget_simple_clip
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csoriano/pathbar-bin-view-window: 53/65] gtkhidingbox: use internal gtk_widget_simple_clip
- Date: Wed, 8 Jun 2016 23:08:48 +0000 (UTC)
commit 22503a2a7bcf487e78015e846337eed43e64ddd5
Author: Carlos Soriano <csoriano gnome org>
Date: Fri Nov 6 19:05:19 2015 +0100
gtkhidingbox: use internal gtk_widget_simple_clip
gtk/gtkhidingbox.c | 27 ++-------------------------
1 files changed, 2 insertions(+), 25 deletions(-)
---
diff --git a/gtk/gtkhidingbox.c b/gtk/gtkhidingbox.c
index 54e98c6..2743193 100644
--- a/gtk/gtkhidingbox.c
+++ b/gtk/gtkhidingbox.c
@@ -21,6 +21,7 @@
#include "config.h"
#include "gtkhidingboxprivate.h"
+#include "gtkwidgetprivate.h"
#include "gtkintl.h"
#include "gtksizerequest.h"
#include "gtkbuildable.h"
@@ -265,7 +266,6 @@ gtk_hiding_box_size_allocate (GtkWidget *widget,
gint spacing = priv->spacing;
gint n_visible_children = 0;
gint n_visible_children_expanding = 0;
- GtkAllocation clip, child_clip;
gtk_widget_set_allocation (widget, allocation);
@@ -312,30 +312,7 @@ gtk_hiding_box_size_allocate (GtkWidget *widget,
++i;
}
- /*
- * Note: Here we ignore the "box-shadow" CSS property of the
- * hiding box because we don't use it.
- */
- clip = *allocation;
- if (gtk_widget_get_has_window (widget))
- clip.x = clip.y = 0;
-
- for (i = 0, child = priv->children; child != NULL; child = child->next)
- {
- child_widget = GTK_WIDGET (child->data);
- if (gtk_widget_get_child_visible (child_widget))
- {
- gtk_widget_get_clip (child_widget, &child_clip);
- gdk_rectangle_union (&child_clip, &clip, &clip);
- }
- }
-
- if (gtk_widget_get_has_window (widget))
- {
- clip.x += allocation->x;
- clip.y += allocation->y;
- }
- gtk_widget_set_clip (widget, &clip);
+ _gtk_widget_set_simple_clip (widget, NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]