]> www.fi.muni.cz Git - evince.git/commitdiff
[libdocument] Fix build with GSEAL_ENABLE
authorCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 31 Mar 2010 17:58:44 +0000 (19:58 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 31 Mar 2010 17:58:44 +0000 (19:58 +0200)
libdocument/ev-document-misc.c

index 0a23394c1ba5c5644215a98fdfbaef1e7cae710e..6a98a8cd2bc6b3708205eeb07d37a56b6fceadf3 100644 (file)
@@ -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,