From: Carlos Garcia Campos Date: Fri, 5 Jan 2007 17:01:03 +0000 (+0000) Subject: Clear selection also in pixbuf cache. X-Git-Tag: EVINCE_0_7_1~21 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=8299bdbd47137ab0304bff2dc62d7ea6f3a1cb87;p=evince.git 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 --- diff --git a/ChangeLog b/ChangeLog index b5127efb..c9e54bc0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +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. + 2007-01-02 Luca Ferretti * data/evince.desktop.in.in: diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c index 1d0c5286..630bdde5 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 a7bae3dc..d83f5724 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"); }