[evince] Update the search string when the document is reloaded
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Update the search string when the document is reloaded
- Date: Tue, 7 May 2013 16:56:47 +0000 (UTC)
commit 5c3194253dc30f988625f3f85f2e7d676167a878
Author: aakash <aakash goenka gmail com>
Date: Tue May 7 18:54:54 2013 +0200
Update the search string when the document is reloaded
https://bugzilla.gnome.org/show_bug.cgi?id=694143
shell/ev-window.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 19abd88..235848f 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2033,7 +2033,11 @@ ev_window_open_uri (EvWindow *ev_window,
GFile *source_file;
ev_window->priv->in_reload = FALSE;
-
+
+ g_clear_pointer (&ev_window->priv->search_string, g_free);
+ ev_window->priv->search_string = search_string ?
+ g_strdup (search_string) : NULL;
+
if (ev_window->priv->uri &&
g_ascii_strcasecmp (ev_window->priv->uri, uri) == 0) {
ev_window_reload_document (ev_window, dest);
@@ -2079,11 +2083,6 @@ ev_window_open_uri (EvWindow *ev_window,
ev_window->priv->bookmarks = NULL;
}
- if (ev_window->priv->search_string)
- g_free (ev_window->priv->search_string);
- ev_window->priv->search_string = search_string ?
- g_strdup (search_string) : NULL;
-
if (ev_window->priv->dest)
g_object_unref (ev_window->priv->dest);
ev_window->priv->dest = dest ? g_object_ref (dest) : NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]