diff options
author | Carlos Garnacho Parro <carlosg@gnome.org> | 2004-10-26 05:06:32 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-10-26 05:06:32 +0000 |
commit | d5ab45944d708756ac47476d4a0b538cb7728b06 (patch) | |
tree | 1507e71eac1896496df8e05369793fcfc7d8f922 /gtk/gtkmessagedialog.h | |
parent | ede3c3991802f5ca0a0472e980e81de1a1b36a30 (diff) | |
download | gtk+-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 'gtk/gtkmessagedialog.h')
-rw-r--r-- | gtk/gtkmessagedialog.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk/gtkmessagedialog.h b/gtk/gtkmessagedialog.h index fe627c0c3e..479b91d714 100644 --- a/gtk/gtkmessagedialog.h +++ b/gtk/gtkmessagedialog.h @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 2 -*- */ /* GTK - The GIMP Toolkit * Copyright (C) 2000 Red Hat, Inc. * @@ -58,7 +59,6 @@ typedef enum #define GTK_IS_MESSAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MESSAGE_DIALOG)) #define GTK_MESSAGE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialogClass)) - typedef struct _GtkMessageDialog GtkMessageDialog; typedef struct _GtkMessageDialogClass GtkMessageDialogClass; @@ -99,9 +99,16 @@ GtkWidget* gtk_message_dialog_new_with_markup (GtkWindow *parent, const gchar *message_format, ...) G_GNUC_PRINTF (5, 6); - void gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog, - const gchar *str); + const gchar *str); + +void gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog, + const gchar *message_format, + ...) G_GNUC_PRINTF (2, 3); + +void gtk_message_dialog_format_secondary_markup (GtkMessageDialog *message_dialog, + const gchar *message_format, + ...) G_GNUC_PRINTF (2, 3); #ifdef __cplusplus } |