mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
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:
parent
a14d0014a9
commit
57a49aae16
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user