GtkTextIter iter;
gchar *mybuf = g_strdup(linebuf);
- if (!g_utf8_validate(linebuf, -1, NULL)) {
- mybuf = g_malloc(strlen(linebuf)*2 +1);
- conv_localetodisp(mybuf, strlen(linebuf)*2 +1, linebuf);
- }
-
/* parse table - in order of priority */
struct table {
const gchar *needle; /* token */
struct txtpos *next; /* next */
} head = {NULL, NULL, 0, NULL}, *last = &head;
+ if (!g_utf8_validate(linebuf, -1, NULL)) {
+ mybuf = g_malloc(strlen(linebuf)*2 +1);
+ conv_localetodisp(mybuf, strlen(linebuf)*2 +1, linebuf);
+ }
+
gtk_text_buffer_get_end_iter(buffer, &iter);
/* parse for clickable parts, and build a list of begin and end positions */
"\n"
"Open it anyway?"),
uri->uri, visible_str);
- aval = alertpanel_with_type(_("Fake URL warning"), msg,
- GTK_STOCK_YES, GTK_STOCK_NO,
- NULL, NULL, ALERT_WARNING);
+ aval = alertpanel_full(_("Fake URL warning"), msg,
+ GTK_STOCK_YES, GTK_STOCK_NO, NULL, FALSE,
+ NULL, ALERT_WARNING, G_ALERTALTERNATE);
g_free(msg);
if (aval == G_ALERTDEFAULT)
retval = TRUE;