From 0cf6d56439ff373ad3d1685fcc123ffaf99c1fd2 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 17 Feb 2013 18:38:58 +0100 Subject: [PATCH] Don't use ev_window_get_page_title() when creating a bookmark It's confusing because a page can contain multiple destinations, and the bookmark always jumps to the top of the page. --- shell/ev-window.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shell/ev-window.c b/shell/ev-window.c index d58dfebe..acda4f43 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -4633,12 +4633,10 @@ ev_window_cmd_bookmarks_add (GtkAction *action, { EvBookmark bm; gchar *page_label; - gchar *page_title; bm.page = ev_document_model_get_page (window->priv->model); page_label = ev_document_get_page_label (window->priv->document, bm.page); - page_title = ev_window_get_page_title (window, page_label); - bm.title = page_title ? page_title : g_strdup_printf (_("Page %s"), page_label); + bm.title = g_strdup_printf (_("Page %s"), page_label); g_free (page_label); /* EvBookmarks takes ownership of bookmark */