diff options
author | Nickolay V. Shmyrev <nshmyrev@yandex.ru> | 2007-01-28 20:43:21 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2007-01-28 20:43:21 (GMT) |
commit | 4bb9bc83e2de5cd88fa2e3f81a7da6e7d81cbf99 (patch) | |
tree | 383ed65fe7f662c84084859ec42a655a1772f058 /shell/ev-navigation-action.c | |
parent | 40bdbed8a127356fadf9790aa0b479854c1c1d22 (diff) |
Implements another history variant
2007-01-28 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* NOTES:
* backend/djvu/djvu-links.c: (djvu_links_get_links_model):
* backend/pdf/ev-poppler.cc:
* libdocument/ev-document-links.h:
* libdocument/ev-link.c: (ev_link_get_page):
* libdocument/ev-link.h:
* shell/ev-history.c: (ev_history_init), (ev_history_class_init),
(ev_history_add_link):
* shell/ev-history.h:
* shell/ev-navigation-action.c: (activate_menu_item_cb),
(new_history_menu_item), (build_menu):
* shell/ev-page-cache.c: (ev_page_cache_set_current_page_history):
* shell/ev-sidebar-links.c: (create_loading_model),
(print_section_cb), (ev_sidebar_links_construct),
(fill_page_labels), (update_page_callback_foreach),
(update_page_callback), (job_finished_callback):
* shell/ev-view.c: (ev_view_handle_link):
* shell/ev-window.c: (ev_window_find_chapter),
(ev_window_add_history), (view_handle_link_cb),
(history_changed_cb):
Implements another history variant
svn path=/trunk/; revision=2264
Diffstat (limited to 'shell/ev-navigation-action.c')
-rw-r--r-- | shell/ev-navigation-action.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ev-navigation-action.c b/shell/ev-navigation-action.c index 88fe67b..c87940a 100644 --- a/shell/ev-navigation-action.c +++ b/shell/ev-navigation-action.c @@ -72,7 +72,6 @@ activate_menu_item_cb (GtkWidget *widget, EvNavigationAction *action) g_return_if_fail (EV_IS_HISTORY (action->priv->history)); index = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (widget), "index")); - ev_history_set_current_index (action->priv->history, index); if (action->priv->history) { EvLink *link; @@ -94,6 +93,7 @@ new_history_menu_item (EvNavigationAction *action, title = ev_link_get_title (link); item = gtk_image_menu_item_new_with_label (title); + gtk_label_set_use_markup (GTK_LABEL (gtk_bin_get_child (GTK_BIN (item))), TRUE); g_object_set_data (G_OBJECT (item), "index", GINT_TO_POINTER (index)); @@ -139,8 +139,8 @@ build_menu (EvNavigationAction *action) return GTK_WIDGET (menu); } - start = MAX (ev_history_get_current_index (action->priv->history) - 5, 0); - end = MIN (ev_history_get_n_links (history), start + 7); + start = 0; + end = ev_history_get_n_links (history); for (i = start; i < end; i++) { link = ev_history_get_link_nth (history, i); |