[gtk+] pathbar: Implement clipping
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] pathbar: Implement clipping
- Date: Tue, 15 Jul 2014 12:36:20 +0000 (UTC)
commit a43b90e49f83d159a7a799e8792e0b800d40a03e
Author: Benjamin Otte <otte redhat com>
Date: Tue Jul 15 14:35:32 2014 +0200
pathbar: Implement clipping
.. so the path bar's buttons can have shadows.
gtk/gtkpathbar.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 599f170..adb9a8f 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -549,7 +549,11 @@ gtk_path_bar_size_allocate (GtkWidget *widget,
/* No path is set; we don't have to allocate anything. */
if (path_bar->priv->button_list == NULL)
- return;
+ {
+ _gtk_widget_set_simple_clip (widget);
+
+ return;
+ }
direction = gtk_widget_get_direction (widget);
allocation_width = allocation->width;
@@ -767,6 +771,8 @@ gtk_path_bar_size_allocate (GtkWidget *widget,
if (needs_reorder)
child_ordering_changed (path_bar);
+
+ _gtk_widget_set_simple_clip (widget);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]