diff options
author | Nickolay V. Shmyrev <nshmyrev@yandex.ru> | 2007-01-28 13:29:10 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2007-01-28 13:29:10 (GMT) |
commit | 72fc0a73ea845307d6a109678952a0d07f6a1af4 (patch) | |
tree | 86bed4423c5863f42203584628c6280e70985023 /shell/ev-page-action.c | |
parent | f3fd33cd579a92acbd7a86e550424558f973a064 (diff) |
History finally works as expected.
2007-01-28 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* 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
Diffstat (limited to 'shell/ev-page-action.c')
-rw-r--r-- | shell/ev-page-action.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 */ |