summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2018-07-11 13:33:14 +0300
committerAntónio Fernandes <antoniof@gnome.org>2021-08-15 21:21:07 +0100
commitb0211ce0a451aa692962e4291dea114f9ab8a002 (patch)
treeb0e9fce8eba9deed10e14bf0bbfde9e5339b6d61
parent95e2270fa86cb94d2919970df57e97a45109213a (diff)
downloadnautilus-b0211ce0a451aa692962e4291dea114f9ab8a002.tar.gz
pathbar: Drop gtk_widget_{g,s}et_clip()
It's gone in GTK4 and removing this doesn't seem to cause any visual or behavorial change at the moment.
-rw-r--r--src/nautilus-pathbar.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index a7e966732..84116bd78 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -460,35 +460,6 @@ nautilus_path_bar_map (GtkWidget *widget)
#define BUTTON_BOTTOM_SHADOW 1
-static void
-union_with_clip (GtkWidget *widget,
- gpointer clip)
-{
- GtkAllocation widget_clip;
-
- if (!gtk_widget_is_drawable (widget))
- {
- return;
- }
-
- gtk_widget_get_clip (widget, &widget_clip);
-
- gdk_rectangle_union (&widget_clip, clip, clip);
-}
-
-static void
-_set_simple_bottom_clip (GtkWidget *widget,
- gint pixels)
-{
- GtkAllocation clip;
-
- gtk_widget_get_allocation (widget, &clip);
- clip.height += pixels;
-
- gtk_container_forall (GTK_CONTAINER (widget), union_with_clip, &clip);
- gtk_widget_set_clip (widget, &clip);
-}
-
/* This is a tad complicated */
static void
nautilus_path_bar_size_allocate (GtkWidget *widget,
@@ -517,7 +488,6 @@ nautilus_path_bar_size_allocate (GtkWidget *widget,
/* No path is set so we don't have to allocate anything. */
if (self->button_list == NULL)
{
- _set_simple_bottom_clip (widget, BUTTON_BOTTOM_SHADOW);
return;
}
direction = gtk_widget_get_direction (widget);
@@ -638,8 +608,6 @@ nautilus_path_bar_size_allocate (GtkWidget *widget,
child = BUTTON_DATA (list->data)->button;
gtk_widget_set_child_visible (child, FALSE);
}
-
- _set_simple_bottom_clip (widget, BUTTON_BOTTOM_SHADOW);
}
static void