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.
This commit is contained in:
@ -899,7 +899,7 @@ gtk_box_get_path_for_child (GtkContainer *container,
|
||||
box = GTK_BOX (container);
|
||||
private = box->priv;
|
||||
|
||||
path = gtk_widget_path_copy (gtk_widget_get_path (GTK_WIDGET (container)));
|
||||
path = _gtk_widget_create_path (GTK_WIDGET (container));
|
||||
|
||||
if (gtk_widget_get_visible (child))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user