Commit a43b90e4 authored by Benjamin Otte's avatar Benjamin Otte

pathbar: Implement clipping

.. so the path bar's buttons can have shadows.
parent df0d3caa
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment