]> www.fi.muni.cz Git - evince.git/commitdiff
Clear selection also in pixbuf cache.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 5 Jan 2007 17:01:03 +0000 (17:01 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Fri, 5 Jan 2007 17:01:03 +0000 (17:01 +0000)
2007-01-05  Carlos Garcia Campos  <carlosgc@gnome.org>
* 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

ChangeLog
shell/ev-pixbuf-cache.c
shell/ev-view.c

index b5127efbc8b8702f89f9dd052f9dea33fc9b1e35..c9e54bc01986d54c5998d22c0d3602288ffa90ec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-01-05  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * 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 <elle.uca@libero.it>
 
        * data/evince.desktop.in.in:
index 1d0c528654ed51da163f9a33ddd6dcac39557c16..630bdde5bfbebc70cd552ff7681e4c33eb23034b 100644 (file)
@@ -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);
index a7bae3dc882da20fd938dcdb4236c9a000bc3a0b..d83f5724b32d1c51892b843ba70a6b471c71ac52 100644 (file)
@@ -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");
 }