Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
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 /shell
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
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c7
1 files changed, 5 insertions, 2 deletions
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);