From 8299bdbd47137ab0304bff2dc62d7ea6f3a1cb87 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Fri, 05 Jan 2007 17:01:03 +0000 Subject: Clear selection also in pixbuf cache. 2007-01-05 Carlos Garcia Campos * shell/ev-pixbuf-cache.c: (clear_job_selection): * shell/ev-view.c: (clear_selection): Clear selection also in pixbuf cache. svn path=/trunk/; revision=2189 --- (limited to 'shell') diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c index 1d0c528..630bdde 100644 --- a/shell/ev-pixbuf-cache.c +++ b/shell/ev-pixbuf-cache.c @@ -887,6 +887,7 @@ static void clear_job_selection (CacheJobInfo *job_info) { job_info->points_set = FALSE; + job_info->selection_points.x1 = -1; if (job_info->selection) { g_object_unref (job_info->selection); diff --git a/shell/ev-view.c b/shell/ev-view.c index a7bae3d..d83f572 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -4375,6 +4375,8 @@ clear_selection (EvView *view) g_list_foreach (view->selection_info.selections, (GFunc)selection_free, NULL); view->selection_info.selections = NULL; view->selection_info.in_selection = FALSE; + if (view->pixbuf_cache) + ev_pixbuf_cache_set_selection_list (view->pixbuf_cache, NULL); g_object_notify (G_OBJECT (view), "has-selection"); } -- cgit v0.9.1