From: Marco Pesenti Gritti Date: Sat, 24 Sep 2005 09:27:14 +0000 (+0000) Subject: Escape link title before setting it in the model X-Git-Tag: EVINCE_0_5_0~137 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=0e91ce30faeda4f67eebd723caea4764e70f9334;p=evince.git Escape link title before setting it in the model 2005-09-24 Marco Pesenti Gritti * pdf/ev-poppler.cc: Escape link title before setting it in the model --- diff --git a/ChangeLog b/ChangeLog index 9028b9a6..572be0c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-09-24 Marco Pesenti Gritti + + * pdf/ev-poppler.cc: + + Escape link title before setting it in the model + 2005-09-23 Marco Pesenti Gritti * shell/ev-application.c: (removed_from_session), (save_session), diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc index 5633840e..9b1fc47d 100644 --- a/pdf/ev-poppler.cc +++ b/pdf/ev-poppler.cc @@ -819,16 +819,22 @@ build_tree (PdfDocument *pdf_document, action = poppler_index_iter_get_action (iter); expand = poppler_index_iter_is_open (iter); if (action) { + char *title_markup; + gtk_tree_store_append (GTK_TREE_STORE (model), &tree_iter, parent); link = ev_link_from_action (action); poppler_action_free (action); + title_markup = g_markup_escape_text (ev_link_get_title (link), -1); gtk_tree_store_set (GTK_TREE_STORE (model), &tree_iter, - EV_DOCUMENT_LINKS_COLUMN_MARKUP, ev_link_get_title (link), + EV_DOCUMENT_LINKS_COLUMN_MARKUP, title_markup, EV_DOCUMENT_LINKS_COLUMN_LINK, link, EV_DOCUMENT_LINKS_COLUMN_EXPAND, expand, -1); + + g_free (title_markup); g_object_unref (link); + child = poppler_index_iter_get_child (iter); if (child) build_tree (pdf_document, model, &tree_iter, child);