From eae0b2268b6b4afb3cf1bf76a6358b3d720a3be5 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Fri, 24 Feb 2006 19:13:39 +0000 Subject: Clairfy what page the toolbar page number applies to. Fix for the bug * backend/ev-document-misc.c: (ev_document_misc_paint_one_page): * backend/ev-document-misc.h: * shell/ev-view.c: (draw_one_page): Clairfy what page the toolbar page number applies to. Fix for the bug #328102. --- (limited to 'backend') diff --git a/backend/ev-document-misc.c b/backend/ev-document-misc.c index c1fb32c..fd6f449 100644 --- a/backend/ev-document-misc.c +++ b/backend/ev-document-misc.c @@ -105,10 +105,12 @@ void ev_document_misc_paint_one_page (GdkDrawable *drawable, GtkWidget *widget, GdkRectangle *area, - GtkBorder *border) + GtkBorder *border, + gboolean highlight) { gdk_draw_rectangle (drawable, - widget->style->black_gc, + highlight ? + widget->style->text_gc[widget->state] : widget->style->dark_gc[widget->state], TRUE, area->x, area->y, diff --git a/backend/ev-document-misc.h b/backend/ev-document-misc.h index a101f70..41f1cae 100644 --- a/backend/ev-document-misc.h +++ b/backend/ev-document-misc.h @@ -39,7 +39,8 @@ void ev_document_misc_get_page_border_size (gint page_width, void ev_document_misc_paint_one_page (GdkDrawable *drawable, GtkWidget *widget, GdkRectangle *area, - GtkBorder *border); + GtkBorder *border, + gboolean highlight); G_END_DECLS -- cgit v0.9.1