Allow NULL for message_format, as described in the docs and as worked

Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmessagedialog.c (gtk_message_dialog_new/
        gtk_message_dialog_new_with_format): Allow NULL
        for message_format, as described in the docs and
        as worked previously. (#125759, Richard Hult)

        * gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
        Use g_markup_vprintf_escaped() to escape argumetns.

        * gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
        so there is some way to set literal markup.
This commit is contained in:
Owen Taylor
2003-10-29 20:43:58 +00:00
committed by Owen Taylor
parent 6773cabf56
commit 935b37eb24
7 changed files with 108 additions and 26 deletions

View File

@ -98,9 +98,10 @@ GtkWidget* gtk_message_dialog_new_with_markup (GtkWindow *parent,
GtkButtonsType buttons,
const gchar *message_format,
...) G_GNUC_PRINTF (5, 6);
void gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog,
const gchar *str);
#ifdef __cplusplus
}