Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-01-05 17:01:03 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-01-05 17:01:03 (GMT)
commit8299bdbd47137ab0304bff2dc62d7ea6f3a1cb87 (patch)
treed0627c9a0bce1aaf49851743d9f3a2a3913c498f /shell
parent0f02f02064f279bfdeb27ffa675cffae9fbc6383 (diff)
Clear selection also in pixbuf cache.
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
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-pixbuf-cache.c1
-rw-r--r--shell/ev-view.c2
2 files changed, 3 insertions, 0 deletions
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");
}