mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
GtkSettings: Keep right refcount of the theme provider.
This commit is contained in:
parent
611cb007b4
commit
c37797a10c
@ -2636,12 +2636,15 @@ settings_update_theme (GtkSettings *settings)
|
||||
GTK_STYLE_PROVIDER (provider));
|
||||
|
||||
if (new_provider)
|
||||
gtk_style_context_add_provider_for_screen (settings->screen,
|
||||
GTK_STYLE_PROVIDER (new_provider),
|
||||
GTK_STYLE_PROVIDER_PRIORITY_SETTINGS + 1);
|
||||
{
|
||||
gtk_style_context_add_provider_for_screen (settings->screen,
|
||||
GTK_STYLE_PROVIDER (new_provider),
|
||||
GTK_STYLE_PROVIDER_PRIORITY_SETTINGS + 1);
|
||||
g_object_ref (new_provider);
|
||||
}
|
||||
|
||||
g_object_set_qdata_full (G_OBJECT (settings), quark_theme_name,
|
||||
new_provider, (GDestroyNotify) g_object_unref);
|
||||
new_provider, (GDestroyNotify) g_object_unref);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user