summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorCarlos Garnacho Parro <carlosg@gnome.org>2004-10-26 05:06:32 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-10-26 05:06:32 +0000
commitd5ab45944d708756ac47476d4a0b538cb7728b06 (patch)
tree1507e71eac1896496df8e05369793fcfc7d8f922 /demos
parentede3c3991802f5ca0a0472e980e81de1a1b36a30 (diff)
downloadgdk-pixbuf-d5ab45944d708756ac47476d4a0b538cb7728b06.tar.gz
Fix for #118764, David Bordoley:
2004-10-25 Carlos Garnacho Parro <carlosg@gnome.org> 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
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/dialog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/gtk-demo/dialog.c b/demos/gtk-demo/dialog.c
index 0ba668c41..bab1cd129 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++;