diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-08-16 00:33:40 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-08-22 18:30:10 +0200 |
commit | 4a9c3bc214ac19d1da9a3a0a006eb307d85d67db (patch) | |
tree | 9b61a2c5abd21a3586c0ef722d1ce8fc4a7b54ce /tests | |
parent | 252a8fc0481938d857805c494f3adfac34a9245b (diff) | |
download | gtk+-4a9c3bc214ac19d1da9a3a0a006eb307d85d67db.tar.gz |
tests/testiconview-keynav.c: Use accessor functions to access GtkWidget
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testiconview-keynav.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/testiconview-keynav.c b/tests/testiconview-keynav.c index 367a227491..928fbc5d93 100644 --- a/tests/testiconview-keynav.c +++ b/tests/testiconview-keynav.c @@ -213,11 +213,15 @@ static void header_style_set (GtkWidget *widget, GtkStyle *old_style) { + GtkStyle *style; + + style = gtk_widget_get_style (widget); + g_signal_handlers_block_by_func (widget, header_style_set, NULL); gtk_widget_modify_bg (widget, GTK_STATE_NORMAL, - &widget->style->base[GTK_STATE_NORMAL]); + &style->base[GTK_STATE_NORMAL]); gtk_widget_modify_fg (widget, GTK_STATE_NORMAL, - &widget->style->text[GTK_STATE_NORMAL]); + &style->text[GTK_STATE_NORMAL]); g_signal_handlers_unblock_by_func (widget, header_style_set, NULL); } |