summaryrefslogtreecommitdiff
path: root/src/msg.c
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@src.gnome.org>2011-07-06 14:55:30 -0300
committerArx Cruz <arxcruz@src.gnome.org>2011-07-06 14:58:49 -0300
commitd8954d9222654f645ebdcc1752c70be97faaae45 (patch)
tree932c7d93975fd790565b1ffb1569bc75249b63d8 /src/msg.c
parentUpdated Galician translations (diff)
downloadzenity-d8954d9222654f645ebdcc1752c70be97faaae45.tar.gz
zenity-d8954d9222654f645ebdcc1752c70be97faaae45.tar.bz2
zenity-d8954d9222654f645ebdcc1752c70be97faaae45.zip
Patch for bug #621907
This patch add the option --no-markup in the info, warning, error and question dialogs So if the user wants to use & \ ' and other symbols, now he can, and no error will be showed.
Diffstat (limited to 'src/msg.c')
-rw-r--r--src/msg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/msg.c b/src/msg.c
index 1f060c5a..b5a1aa01 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -131,7 +131,10 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data)
if (msg_data->dialog_text)
gtk_label_set_markup (GTK_LABEL (text), g_strcompress (msg_data->dialog_text));
-
+
+ if (msg_data->no_markup)
+ gtk_label_set_use_markup (GTK_LABEL (text), FALSE);
+
if (msg_data->no_wrap)
gtk_label_set_line_wrap (GTK_LABEL (text), FALSE);
bgstack15