diff options
author | Manish Singh <yosh@gimp.org> | 2002-10-11 22:57:11 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2002-10-11 22:57:11 +0000 |
commit | f18d5d35104bf4cb3998dfbee43f056649cb24b2 (patch) | |
tree | b72d6d51180d95a95e43749cc0840b1c52d1becc /gtk/gtkmessagedialog.c | |
parent | a9b71314ee7e770bd1f9b00c14212190f3ac1427 (diff) | |
download | gtk+-f18d5d35104bf4cb3998dfbee43f056649cb24b2.tar.gz |
Deprecation cleanup
Fri Oct 11 15:56:20 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkaccellabel.[ch] gtk/gtkaccessible.[ch] gtk/gtkbutton.[ch]
gtk/gtkcheckbutton.[ch] gtk/gtkcolorseldialog.[ch] gtk/gtkdialog.[ch]
gtk/gtkhandlebox.[ch] gtk/gtkinputdialog.[ch] gtk/gtkmessagedialog.[ch]
gtk/gtktearoffmenuitem.[ch] gtk/gtktogglebutton.[ch]: Deprecation
cleanup
Diffstat (limited to 'gtk/gtkmessagedialog.c')
-rw-r--r-- | gtk/gtkmessagedialog.c | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c index 41899e19f7..66bf533fdd 100644 --- a/gtk/gtkmessagedialog.c +++ b/gtk/gtkmessagedialog.c @@ -58,26 +58,28 @@ enum { static gpointer parent_class; -GtkType +GType gtk_message_dialog_get_type (void) { - static GtkType dialog_type = 0; + static GType dialog_type = 0; if (!dialog_type) { - static const GtkTypeInfo dialog_info = + static const GTypeInfo dialog_info = { - "GtkMessageDialog", - sizeof (GtkMessageDialog), sizeof (GtkMessageDialogClass), - (GtkClassInitFunc) gtk_message_dialog_class_init, - (GtkObjectInitFunc) gtk_message_dialog_init, - /* reserved_1 */ NULL, - /* reserved_2 */ NULL, - (GtkClassInitFunc) NULL, + NULL, /* base_init */ + NULL, /* base_finalize */ + (GClassInitFunc) gtk_message_dialog_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ + sizeof (GtkMessageDialog), + 0, /* n_preallocs */ + (GInstanceInitFunc) gtk_message_dialog_init, }; - dialog_type = gtk_type_unique (GTK_TYPE_DIALOG, &dialog_info); + dialog_type = g_type_register_static (GTK_TYPE_DIALOG, "GtkMessageDialog", + &dialog_info, 0); } return dialog_type; @@ -301,9 +303,10 @@ gtk_message_dialog_new (GtkWindow *parent, gchar* msg = 0; va_list args; - widget = GTK_WIDGET (g_object_new (GTK_TYPE_MESSAGE_DIALOG, - "message_type", type, - "buttons", buttons, 0)); + widget = g_object_new (GTK_TYPE_MESSAGE_DIALOG, + "message_type", type, + "buttons", buttons, + NULL); dialog = GTK_DIALOG (widget); if (flags & GTK_DIALOG_NO_SEPARATOR) @@ -315,7 +318,7 @@ gtk_message_dialog_new (GtkWindow *parent, if (message_format) { va_start (args, message_format); - msg = g_strdup_vprintf(message_format, args); + msg = g_strdup_vprintf (message_format, args); va_end (args); |