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()
This commit is contained in:
Padraig O'Briain 2001-09-10 12:23:49 +00:00
parent a14d0014a9
commit 57a49aae16
8 changed files with 38 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -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);