[gtk+/wip/csoriano/pathbar-prototype: 65/68] 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-prototype: 65/68] gtkhidingbox: use internal gtk_widget_simple_clip
- Date: Fri, 6 Nov 2015 18:46:47 +0000 (UTC)
commit 80821119ed774d15b7d4d48fd2880b310e7faecf
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 | 25 +------------------------
1 files changed, 1 insertions(+), 24 deletions(-)
---
diff --git a/gtk/gtkhidingbox.c b/gtk/gtkhidingbox.c
index 3160b25..af5c89d 100644
--- a/gtk/gtkhidingbox.c
+++ b/gtk/gtkhidingbox.c
@@ -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]