summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-07 14:15:35 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:21 +0200
commit33f111a47c47f343ce549ea66bc8608f9c75ab7d (patch)
tree765c985a1f9aed11b463b72e88278914b5698903 /gtk/gtkpathbar.c
parent6ac754cdd1b5a273b0c0930866211c9b4bc450f4 (diff)
downloadgtk+-33f111a47c47f343ce549ea66bc8608f9c75ab7d.tar.gz
widget: Don't cache widget paths all the time
Add an internal API that allows GtkStyleContext to create a widget path for the widget and with that bypassing gtk_widget_get_path() and that function caching the path.
Diffstat (limited to 'gtk/gtkpathbar.c')
-rw-r--r--gtk/gtkpathbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index fdcd337384..0cdcde4dee 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -876,7 +876,7 @@ gtk_path_bar_get_path_for_child (GtkContainer *container,
GtkPathBar *path_bar = GTK_PATH_BAR (container);
GtkWidgetPath *path;
- path = gtk_widget_path_copy (gtk_widget_get_path (GTK_WIDGET (path_bar)));
+ path = _gtk_widget_create_path (GTK_WIDGET (path_bar));
if (gtk_widget_get_visible (child) &&
gtk_widget_get_child_visible (child))