Commit 57a49aae authored by Padraig O'Briain's avatar Padraig O'Briain

gtk/gtkstyle.c (_gtk_style_peek_property_value) Amend previous change to

* gtk/gtkstyle.c (_gtk_style_peek_property_value)
Amend previous change to avoid runtime error in g_param_spec_ref()
parent a14d0014
2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtkstyle.c (_gtk_style_peek_property_value)
Amend previous change to avoid runtime error in g_param_spec_ref()
Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (insert_rc_property): Fix blank line
......
2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtkstyle.c (_gtk_style_peek_property_value)
Amend previous change to avoid runtime error in g_param_spec_ref()
Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (insert_rc_property): Fix blank line
......
2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtkstyle.c (_gtk_style_peek_property_value)
Amend previous change to avoid runtime error in g_param_spec_ref()
Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (insert_rc_property): Fix blank line
......
2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtkstyle.c (_gtk_style_peek_property_value)
Amend previous change to avoid runtime error in g_param_spec_ref()
Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (insert_rc_property): Fix blank line
......
2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtkstyle.c (_gtk_style_peek_property_value)
Amend previous change to avoid runtime error in g_param_spec_ref()
Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (insert_rc_property): Fix blank line
......
2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtkstyle.c (_gtk_style_peek_property_value)
Amend previous change to avoid runtime error in g_param_spec_ref()
Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (insert_rc_property): Fix blank line
......
2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
* gtk/gtkstyle.c (_gtk_style_peek_property_value)
Amend previous change to avoid runtime error in g_param_spec_ref()
Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (insert_rc_property): Fix blank line
......
......@@ -1300,13 +1300,14 @@ _gtk_style_peek_property_value (GtkStyle *style,
g_return_val_if_fail (g_type_is_a (pspec->owner_type, GTK_TYPE_WIDGET), NULL);
g_return_val_if_fail (g_type_is_a (widget_type, pspec->owner_type), NULL);
key.widget_type = widget_type;
key.pspec = pspec;
/* need value cache array */
if (!style->property_cache)
style->property_cache = g_array_new (FALSE, FALSE, sizeof (PropertyValue));
else
{
key.widget_type = widget_type;
key.pspec = pspec;
pcache = bsearch (&key,
style->property_cache->data, style->property_cache->len,
sizeof (PropertyValue), style_property_values_cmp);
......
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