Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2007-01-28 21:18:18 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2007-01-28 21:18:18 (GMT)
commit8c53a52d2cf88d095bccbff7ea927100e082c537 (patch)
tree4a17f3509f7e1986a3817539def4dc64506d7521 /shell
parentfad27a16df11d15cefb5e5862c16a68d4f5a1913 (diff)
Correctly handle link dest with page label
svn path=/trunk/; revision=2268
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 325d916..af927db 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -645,7 +645,7 @@ page_changed_cb (EvPageCache *page_cache,
}
typedef struct _FindTask {
- gchar *page_label;
+ const gchar *page_label;
gchar *chapter;
} FindTask;
@@ -680,7 +680,7 @@ ev_window_find_chapter (GtkTreeModel *tree_model,
static void
ev_window_add_history (EvWindow *window, gint page, EvLink *link)
{
- gchar *page_label;
+ const gchar *page_label;
gchar *link_title;
FindTask find_task;
@@ -700,7 +700,11 @@ ev_window_add_history (EvWindow *window, gint page, EvLink *link)
if (page < 0)
return;
- page_label = ev_page_cache_get_page_label (window->priv->page_cache, page);
+
+ if (ev_link_dest_get_page_label (dest))
+ page_label = ev_link_dest_get_page_label (dest);
+ else
+ page_label = ev_page_cache_get_page_label (window->priv->page_cache, page);
find_task.page_label = page_label;
find_task.chapter = NULL;