]> www.fi.muni.cz Git - evince.git/commitdiff
Do not jump to the first page when reloading by running evince from the
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 28 Oct 2007 09:12:20 +0000 (09:12 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 28 Oct 2007 09:12:20 +0000 (09:12 +0000)
2007-10-29  Carlos Garcia Campos  <carlosgc@gnome.org>
* shell/ev-window.c: (ev_window_open_uri),
(ev_window_cmd_view_reload):
Do not jump to the first page when reloading by running evince
from the command line. Fixes bug #490847.

svn path=/trunk/; revision=2728

ChangeLog
shell/ev-window.c

index d18d9ceb167e78ee6eeac6263d63ea568add7cfb..70a034a3986bdf53940d3eeeb4d3edd3d84637b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-10-29  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-window.c: (ev_window_open_uri),
+       (ev_window_cmd_view_reload):
+
+       Do not jump to the first page when reloading by running evince
+       from the command line. Fixes bug #490847.
+       
 2007-10-27  Hiroyuki Ikezoe  <poincare@ikezoe.net>
 
        * shell/ev-window.c: (ev_window_cmd_help_contents):
index 96200fce702d20a7cca4ba83ce054fde43b93952..675308d01cf3737194315bb4b5b3c6d39632ae6a 100644 (file)
@@ -1452,6 +1452,11 @@ ev_window_open_uri (EvWindow       *ev_window,
 {
        GnomeVFSURI *source_uri;
        GnomeVFSURI *target_uri;
+
+       if (ev_window->priv->uri &&
+           g_ascii_strcasecmp (ev_window->priv->uri, uri) == 0) {
+               ev_window->priv->in_reload = TRUE;
+       }
        
        ev_window_close_dialogs (ev_window);
        ev_window_clear_load_job (ev_window);
@@ -3224,8 +3229,6 @@ ev_window_cmd_view_reload (GtkAction *action, EvWindow *ev_window)
 {
        gchar *uri;
 
-       ev_window->priv->in_reload = TRUE;
-       
        uri = g_strdup (ev_window->priv->uri);
        ev_window_open_uri (ev_window, uri, NULL, 0, FALSE, NULL);
        g_free (uri);