[evince] Don't use ev_window_get_page_title() when creating a bookmark



commit 0cf6d56439ff373ad3d1685fcc123ffaf99c1fd2
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Feb 17 18:38:58 2013 +0100

    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 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index d58dfeb..acda4f4 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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]