From d5ab45944d708756ac47476d4a0b538cb7728b06 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Parro Date: Tue, 26 Oct 2004 05:06:32 +0000 Subject: Fix for #118764, David Bordoley: 2004-10-25 Carlos Garnacho Parro Fix for #118764, David Bordoley: * gtk/gtkmessagedialog.[ch] (gtk_message_dialog_format_secondary_text), (gtk_message_dialog_format_secondary_format): API additions to create HIG-like dialogs * demos/gtk-demo/dialog.c: Use the new API in the example * docs/reference/gtk/gtk-sections.txt: * docs/reference/gtk/tmpl/gtkmessagedialog.sgml: documented API additions --- demos/gtk-demo/dialog.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'demos/gtk-demo') diff --git a/demos/gtk-demo/dialog.c b/demos/gtk-demo/dialog.c index 0ba668c41f..bab1cd129c 100644 --- a/demos/gtk-demo/dialog.c +++ b/demos/gtk-demo/dialog.c @@ -22,8 +22,9 @@ message_dialog_clicked (GtkButton *button, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "This message box has been popped up the following\n" - "number of times:\n\n" - "%d", i); + "number of times:"); + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), + "%d", i); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); i++; -- cgit v1.2.1