From 3f175f30d0eb1df7df8894c7ba0949e4cbd23e8f Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Sat, 06 Aug 2005 18:14:24 +0000 Subject: Change selection color on focus in and focus out events. Also, poppler now 2005-08-06 Kristian Høgsberg * backend/ev-selection.c: (ev_selection_render_selection): * backend/ev-selection.h: * pdf/ev-poppler.cc: * shell/ev-jobs.c: (ev_job_render_new): * shell/ev-jobs.h: * shell/ev-pixbuf-cache.c: (get_selection_colors), (add_job_if_needed), (ev_pixbuf_cache_get_selection_pixbuf): * shell/ev-view.c: (ev_view_focus_in), (ev_view_focus_out), (ev_view_class_init): Change selection color on focus in and focus out events. Also, poppler now uses GdkColor for specifying the selection colors, so drop some awkward conversion code. --- (limited to 'backend') diff --git a/backend/ev-selection.c b/backend/ev-selection.c index f9f73e0..36c32e3 100644 --- a/backend/ev-selection.c +++ b/backend/ev-selection.c @@ -62,8 +62,8 @@ ev_selection_render_selection (EvSelection *selection, GdkPixbuf **pixbuf, EvRectangle *points, EvRectangle *old_points, - guint text, - guint base) + GdkColor *text, + GdkColor *base) { EvSelectionIface *iface = EV_SELECTION_GET_IFACE (selection); diff --git a/backend/ev-selection.h b/backend/ev-selection.h index 8ed416b..d081604 100644 --- a/backend/ev-selection.h +++ b/backend/ev-selection.h @@ -48,8 +48,8 @@ struct _EvSelectionIface GdkPixbuf **pixbuf, EvRectangle *points, EvRectangle *old_points, - guint text, - guint base); + GdkColor *text, + GdkColor *base); GdkRegion * (* get_selection_map) (EvSelection *selection, EvRenderContext *rc); GdkRegion * (* get_selection_region) (EvSelection *selection, @@ -63,8 +63,8 @@ void ev_selection_render_selection (EvSelection *selection, GdkPixbuf **pixbuf, EvRectangle *points, EvRectangle *old_points, - guint text, - guint base); + GdkColor *text, + GdkColor *base); GdkRegion *ev_selection_get_selection_map (EvSelection *selection, EvRenderContext *rc); GdkRegion *ev_selection_get_selection_region (EvSelection *selection, -- cgit v0.9.1