diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-05-08 15:54:54 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-05-10 13:05:26 (GMT) |
commit | e9113849f8bfac4e2a2217a6ce1cd727ef49c2b2 (patch) | |
tree | 223a0e4d27ca7c0492be40a8c922ace834fa52c2 /libview/ev-pixbuf-cache.c | |
parent | e33ec3d4af0b1e1877df50fb39d62a51f20ff275 (diff) |
[libview] Fix most of the GSEAL build issues
Still pending GTK_WINDOW (toplevel)->group in ev-view-presentation
Diffstat (limited to 'libview/ev-pixbuf-cache.c')
-rw-r--r-- | libview/ev-pixbuf-cache.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c index 3827fdb..8658711 100644 --- a/libview/ev-pixbuf-cache.c +++ b/libview/ev-pixbuf-cache.c @@ -479,13 +479,15 @@ ev_pixbuf_cache_clear_job_sizes (EvPixbufCache *pixbuf_cache, static void get_selection_colors (GtkWidget *widget, GdkColor **text, GdkColor **base) { - if (gtk_widget_has_focus (widget)) { - *text = &widget->style->text [GTK_STATE_SELECTED]; - *base = &widget->style->base [GTK_STATE_SELECTED]; - } else { - *text = &widget->style->text [GTK_STATE_ACTIVE]; - *base = &widget->style->base [GTK_STATE_ACTIVE]; - } + GtkStyle *style = gtk_widget_get_style (widget); + + if (gtk_widget_has_focus (widget)) { + *text = &style->text [GTK_STATE_SELECTED]; + *base = &style->base [GTK_STATE_SELECTED]; + } else { + *text = &style->text [GTK_STATE_ACTIVE]; + *base = &style->base [GTK_STATE_ACTIVE]; + } } static void |