Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-03-18 19:51:17 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-03-18 19:51:17 (GMT)
commit65fc8ed56ee130a477f165dd82e34459d5066e69 (patch)
treee998ca1c8d334a68ec2ebb3cb73f84b0c676d598 /shell/ev-view.c
parentb1574f4aa040572b9f3db866ff9dd8b9ef5efe2a (diff)
Cancel the find operation when the find bar is closed. Fixes bug #508845.
2008-03-18 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-view.[ch]: (ev_view_find_cancel): * shell/ev-window.c: (find_bar_close_cb): Cancel the find operation when the find bar is closed. Fixes bug #508845. svn path=/trunk/; revision=2971
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 129d87c..1a76442 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -5333,18 +5333,30 @@ ev_view_find_previous (EvView *view)
}
}
-void ev_view_search_changed (EvView *view)
+void
+ev_view_search_changed (EvView *view)
{
/* search string has changed, focus on new search result */
view->jump_to_find_result = TRUE;
}
-void ev_view_set_highlight_search (EvView *view, gboolean value)
+void
+ev_view_set_highlight_search (EvView *view, gboolean value)
{
view->highlight_find_results = value;
gtk_widget_queue_draw (GTK_WIDGET (view));
}
+void
+ev_view_find_cancel (EvView *view)
+{
+ if (EV_IS_DOCUMENT_FIND (view->document)) {
+ EvDocumentFind *find = EV_DOCUMENT_FIND (view->document);
+
+ ev_document_find_cancel (find);
+ }
+}
+
/*** Selections ***/
/* compute_new_selection_rect/text calculates the area currently selected by