[Github-comments] [geany] If more tags are found during tag definition/declaration goto, let user select which one to use (#406)

Colomban Wendling notifications at xxxxx
Mon Feb 15 15:20:26 UTC 2016


> +
> +	if (!tag_goto_popup)
> +		create_goto_popup();
> +
> +	model = gtk_tree_view_get_model(GTK_TREE_VIEW(tag_goto_tree_view));
> +	gtk_list_store_clear(GTK_LIST_STORE(model));
> +
> +	foreach_ptr_array(tmtag, i, tags)
> +	{
> +		gchar *fname = g_path_get_basename(tmtag->file->file_name);
> +		gchar *text;
> +
> +		if (first && have_best)
> +			text = g_strdup_printf("<b>%s: %lu</b>", fname, tmtag->line);
> +		else
> +			text = g_strdup_printf("%s: %lu", fname, tmtag->line);

text should be escaped for markup (g_markup_printf_escaped())

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/406/files#r52910346
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160215/ec575bc8/attachment.html>


More information about the Github-comments mailing list