diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-03-31 17:58:44 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-03-31 17:58:44 (GMT) |
commit | 7e11393f41b7c3df86e1562bcc08a42b05c19a6f (patch) | |
tree | 7dca9c9c6e8cf6363107843e9a6b9d4c810eee64 /libdocument/ev-document-misc.c | |
parent | 72bf4300830e8551060dda0ba20fd9dbe07342d3 (diff) |
[libdocument] Fix build with GSEAL_ENABLE
Diffstat (limited to 'libdocument/ev-document-misc.c')
-rw-r--r-- | libdocument/ev-document-misc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c index 0a23394..6a98a8c 100644 --- a/libdocument/ev-document-misc.c +++ b/libdocument/ev-document-misc.c @@ -120,30 +120,32 @@ ev_document_misc_paint_one_page (GdkDrawable *drawable, GtkBorder *border, gboolean highlight) { + GtkStyle *style = gtk_widget_get_style (widget); + GtkStateType state = gtk_widget_get_state (widget); + gdk_draw_rectangle (drawable, - highlight ? - widget->style->text_gc[widget->state] : widget->style->dark_gc[widget->state], + highlight ? style->text_gc[state] : style->dark_gc[state], TRUE, area->x, area->y, area->width, area->height); gdk_draw_rectangle (drawable, - widget->style->white_gc, + style->white_gc, TRUE, area->x + border->left, area->y + border->top, area->width - (border->left + border->right), area->height - (border->top + border->bottom)); gdk_draw_rectangle (drawable, - widget->style->mid_gc[widget->state], + style->mid_gc[state], TRUE, area->x, area->y + area->height - (border->bottom - border->top), border->bottom - border->top, border->bottom - border->top); gdk_draw_rectangle (drawable, - widget->style->mid_gc[widget->state], + style->mid_gc[state], TRUE, area->x + area->width - (border->right - border->left), area->y, |