]> www.fi.muni.cz Git - evince.git/commitdiff
Restart the job search when the find bar is opened for the second time.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 20 Jul 2008 17:11:23 +0000 (17:11 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 20 Jul 2008 17:11:23 +0000 (17:11 +0000)
2008-07-20  Carlos Garcia Campos  <carlosgc@gnome.org>

* shell/ev-window.c: (find_bar_visibility_changed_cb):

Restart the job search when the find bar is opened for the second
time. Fixes bug #531956.

svn path=/trunk/; revision=3077

ChangeLog
shell/ev-window.c

index 6f6fa17080e481b2aa10401d214061850a1e514f..035149370b31111124e1dec6215a27afb8af1a16 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-20  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-window.c: (find_bar_visibility_changed_cb):
+
+       Restart the job search when the find bar is opened for the second
+       time. Fixes bug #531956.
+       
 2008-07-20  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * libdocument/ev-document-factory.c: (get_mime_type_from_data),
index d8d48ab13e39d456c8f89202c8f2e32357503f03..ec23937eea5deaca5fd71837a4ca11b4473eb98a 100644 (file)
@@ -4074,11 +4074,13 @@ find_bar_visibility_changed_cb (EggFindBar *find_bar,
 
        if (ev_window->priv->document &&
            EV_IS_DOCUMENT_FIND (ev_window->priv->document)) {
-               ev_view_set_highlight_search (EV_VIEW(ev_window->priv->view), visible);
-               ev_view_search_changed (EV_VIEW(ev_window->priv->view));
+               ev_view_set_highlight_search (EV_VIEW (ev_window->priv->view), visible);
+               ev_view_search_changed (EV_VIEW (ev_window->priv->view));
                ev_window_update_actions (ev_window);
 
-               if (!visible)
+               if (visible)
+                       find_bar_search_changed_cb (find_bar, NULL, ev_window);
+               else
                        egg_find_bar_set_status_text (EGG_FIND_BAR (ev_window->priv->find_bar), NULL);
        }
 }