mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
styleproperties: Class ref no longer necessary
Now that we initialize the pspecs on-demand, we can avoid the class ref.
This commit is contained in:
parent
85e900b522
commit
0f211f78a5
@ -470,13 +470,10 @@ gtk_style_properties_lookup_property (const gchar *property_name,
|
||||
GParamSpec **pspec)
|
||||
{
|
||||
const GtkStyleProperty *node;
|
||||
GtkStylePropertiesClass *klass;
|
||||
gboolean found = FALSE;
|
||||
|
||||
g_return_val_if_fail (property_name != NULL, FALSE);
|
||||
|
||||
klass = g_type_class_ref (GTK_TYPE_STYLE_PROPERTIES);
|
||||
|
||||
node = gtk_style_property_lookup (property_name);
|
||||
|
||||
if (node)
|
||||
@ -490,8 +487,6 @@ gtk_style_properties_lookup_property (const gchar *property_name,
|
||||
found = TRUE;
|
||||
}
|
||||
|
||||
g_type_class_unref (klass);
|
||||
|
||||
return found;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user