Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-10-28 09:12:20 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-10-28 09:12:20 (GMT)
commit7c85c1e0e3f80dea30341ef219c0de076ef04a92 (patch)
treedd4c2a0072fa2ab32bd84a71808129600a03c6e9
parent658627e6201b5ec8271d17d22a8c92adee8ff99c (diff)
Do not jump to the first page when reloading by running evince from the
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
-rw-r--r--ChangeLog8
-rw-r--r--shell/ev-window.c7
2 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d18d9ce..70a034a 100644
--- 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):
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 96200fc..675308d 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -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);