From 72fc0a73ea845307d6a109678952a0d07f6a1af4 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sun, 28 Jan 2007 13:29:10 +0000 Subject: History finally works as expected. 2007-01-28 Nickolay V. Shmyrev * shell/ev-navigation-action.c: (activate_menu_item_cb), (ev_navigation_action_class_init): * shell/ev-navigation-action.h: * shell/ev-page-action.c: (activate_cb): * shell/ev-page-cache.c: (ev_page_cache_class_init), (ev_page_cache_set_current_page_history): * shell/ev-page-cache.h: * shell/ev-sidebar-thumbnails.c: (ev_sidebar_tree_selection_changed), (ev_sidebar_icon_selection_changed), (page_changed_cb): * shell/ev-view-private.h: * shell/ev-view.c: (ev_view_handle_link), (ev_view_class_init): * shell/ev-view.h: * shell/ev-window.c: (page_changed_cb), (history_changed_cb), (ev_window_setup_document), (ev_window_load_job_cb): * shell/ev-window.h: History finally works as expected. svn path=/trunk/; revision=2259 --- (limited to 'shell/ev-page-action.c') diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c index 744729d..0571b6d 100644 --- a/shell/ev-page-action.c +++ b/shell/ev-page-action.c @@ -118,6 +118,7 @@ activate_cb (GtkWidget *entry, GtkAction *action) EvLinkDest *link_dest; EvLinkAction *link_action; EvLink *link; + gchar *link_text; text = gtk_entry_get_text (GTK_ENTRY (entry)); page_cache = page->priv->page_cache; @@ -125,11 +126,13 @@ activate_cb (GtkWidget *entry, GtkAction *action) link_dest = ev_link_dest_new_page_label (text); link_action = ev_link_action_new_dest (link_dest); - link = ev_link_new (text, link_action); + link_text = g_strdup_printf ("Page: %s", text); + link = ev_link_new (link_text, link_action); g_signal_emit (action, signals[ACTIVATE_LINK], 0, link); g_object_unref (link); + g_free (link_text); /* rest the entry to the current page if we were unable to * change it */ -- cgit v0.9.1