renderer = gtk_cell_renderer_text_new ();
gtk_tree_view_column_pack_end (GTK_TREE_VIEW_COLUMN (column), renderer, FALSE);
gtk_tree_view_column_set_attributes (GTK_TREE_VIEW_COLUMN (column), renderer,
- "markup", EV_DOCUMENT_LINKS_COLUMN_PAGE_LABEL,
+ "text", EV_DOCUMENT_LINKS_COLUMN_PAGE_LABEL,
NULL);
+ g_object_set (G_OBJECT (renderer), "style", PANGO_STYLE_ITALIC, NULL);
g_signal_connect (GTK_TREE_VIEW (priv->tree_view),
"button_press_event",
EvLink *link;
gint page;
gchar *page_label;
- gchar *page_string;
-
gtk_tree_model_get (tree_model, iter,
EV_DOCUMENT_LINKS_COLUMN_LINK, &link,
page_label = ev_page_cache_get_page_label (sidebar_links->priv->page_cache,
page);
- page_string = g_markup_printf_escaped ("<i>%s</i>", page_label);
-
gtk_tree_store_set (GTK_TREE_STORE (tree_model), iter,
- EV_DOCUMENT_LINKS_COLUMN_PAGE_LABEL, page_string,
- -1);
+ EV_DOCUMENT_LINKS_COLUMN_PAGE_LABEL, page_label,
+ -1);
g_free (page_label);
- g_free (page_string);
g_object_unref (link);
return FALSE;
if (!page_string)
return FALSE;
- if (!strncmp (page_string + strlen ("<i>"), task->page_label, strlen (task->page_label))) {
+ if (!strcmp (page_string, task->page_label)) {
gtk_tree_model_get (tree_model, iter,
EV_DOCUMENT_LINKS_COLUMN_MARKUP, &task->chapter,
-1);