summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@src.gnome.org>2011-07-06 15:09:38 -0300
committerArx Cruz <arxcruz@src.gnome.org>2011-07-06 15:09:38 -0300
commit3f5c1667926bbd8071be69727d3688ef73b10164 (patch)
tree129fa3ad19460cb738c63d5b81a52eff21512c42 /src
parentPatch for bug #621907 (diff)
downloadzenity-3f5c1667926bbd8071be69727d3688ef73b10164.tar.gz
zenity-3f5c1667926bbd8071be69727d3688ef73b10164.tar.bz2
zenity-3f5c1667926bbd8071be69727d3688ef73b10164.zip
Forgot change one option in gtk_label
Diffstat (limited to 'src')
-rw-r--r--src/msg.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/msg.c b/src/msg.c
index b5a1aa01..5df884ff 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -129,11 +129,12 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data)
if (data->width > -1 || data->height > -1)
gtk_window_set_default_size (GTK_WINDOW (dialog), data->width, data->height);
- 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->dialog_text) {
+ if (msg_data->no_markup)
+ gtk_label_set_text (GTK_LABEL (text), msg_data->dialog_text);
+ else
+ gtk_label_set_markup (GTK_LABEL (text), g_strcompress (msg_data->dialog_text));
+ }
if (msg_data->no_wrap)
gtk_label_set_line_wrap (GTK_LABEL (text), FALSE);
bgstack15