Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-sidebar-links.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-02-28 04:03:27 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-02-28 04:03:27 (GMT)
commita9bcdd80180c7417fe9e2d9e25dcfc3f8a781c5f (patch)
treef9a671a33dca66e9c78938fab86afb9ad73e7fc9 /shell/ev-sidebar-links.c
parentbab5a16571364233e1ea383119fe0e35bbdf993e (diff)
Handle title links for real. Gosh, how long has this been broken.
Sun Feb 27 23:00:31 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-sidebar-links.c (do_one_iteration): Handle title links for real. Gosh, how long has this been broken. * pdf/xpdf/pdf-document.cc (build_link_from_action): add back the check for a NULL link. We crash otherwise.
Diffstat (limited to 'shell/ev-sidebar-links.c')
-rw-r--r--shell/ev-sidebar-links.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c
index 03d445e..19b9ecf 100644
--- a/shell/ev-sidebar-links.c
+++ b/shell/ev-sidebar-links.c
@@ -251,6 +251,7 @@ do_one_iteration (EvSidebarLinks *ev_sidebar_links)
IdleStackData *stack_data;
GtkTreeIter tree_iter;
EvDocumentLinksIter *child_iter;
+ EvLinkType link_type;
gint page;
g_assert (priv->idle_stack);
@@ -266,12 +267,12 @@ do_one_iteration (EvSidebarLinks *ev_sidebar_links)
}
page = ev_link_get_page (link);
+ link_type = ev_link_get_link_type (link);
gtk_tree_store_append (GTK_TREE_STORE (priv->model), &tree_iter, stack_data->tree_iter);
gtk_tree_store_set (GTK_TREE_STORE (priv->model), &tree_iter,
LINKS_COLUMN_MARKUP, ev_link_get_title (link),
LINKS_COLUMN_PAGE_NUM, page,
- /* FIXME: Handle links for real. */
- LINKS_COLUMN_PAGE_VALID, (page >= 0),
+ LINKS_COLUMN_PAGE_VALID, (link_type == EV_LINK_TYPE_PAGE),
LINKS_COLUMN_LINK, link,
-1);
g_object_unref (link);