Commit eae0b226 authored by Nickolay V. Shmyrev's avatar Nickolay V. Shmyrev

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.
parent 43f12175
2006-02-24 Ricardo Markiewicz <rmarkie@fi.uba.ar>
* 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.
2006-02-24 Stanislav Slusny <slusnys@gmail.com>
* shell/ev-view-private.h:
......
......@@ -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,
......
......@@ -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
......
......@@ -2123,11 +2123,14 @@ draw_one_page (EvView *view,
GdkRectangle overlap;
GdkRectangle real_page_area;
EvViewSelection *selection;
gint current_page;
g_assert (view->document);
if (! gdk_rectangle_intersect (page_area, expose_area, &overlap))
return;
current_page = ev_page_cache_get_current_page (view->page_cache);
selection = find_selection_for_page (view, page);
ev_page_cache_get_size (view->page_cache,
page, view->rotation,
......@@ -2143,7 +2146,8 @@ draw_one_page (EvView *view,
ev_document_misc_paint_one_page (GTK_WIDGET(view)->window,
GTK_WIDGET (view),
page_area, border);
page_area, border,
page == current_page);
if (gdk_rectangle_intersect (&real_page_area, expose_area, &overlap)) {
GdkPixbuf *selection_pixbuf = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment