From 5547de9384430dfccb9c3c8a68badfa120760b4a Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Tue, 15 Nov 2005 04:14:35 +0000 Subject: make it possible to add new lines and markup in the dialog text. 2005-11-15 Lucas Rocha * src/calendar.c, src/progress.c, src/tree.c: make it possible to add new lines and markup in the dialog text. --- src/progress.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/progress.c') diff --git a/src/progress.c b/src/progress.c index 34779c12..68f34ac4 100644 --- a/src/progress.c +++ b/src/progress.c @@ -204,7 +204,9 @@ zenity_progress (ZenityData *data, ZenityProgressData *progress_data) gtk_window_set_default_size (GTK_WINDOW (dialog), data->width, data->height); text = glade_xml_get_widget (glade_dialog, "zenity_progress_text"); - gtk_label_set_text (GTK_LABEL (text), progress_data->dialog_text); + + if (progress_data->dialog_text) + gtk_label_set_markup (GTK_LABEL (text), g_strcompress (progress_data->dialog_text)); progress_bar = glade_xml_get_widget (glade_dialog, "zenity_progress_bar"); -- cgit