# HG changeset patch # User Will Thompson # Date 1197975940 0 # Node ID e5208b29d8072daeb9333e7365cf4ac87f1f83f3 # Parent 7e833250a0ef135112cec8411fd24f46681b463f# Parent aa4810065b91218fcefde00b360b66471b6889aa merge of '1bb5970e91bf83784fd002fc78216157034e9257' and '500a56d2072c36915fd9801be07f13c66f043050' diff -r 7e833250a0ef -r e5208b29d807 pidgin/minidialog.c --- a/pidgin/minidialog.c Tue Dec 18 08:44:35 2007 +0000 +++ b/pidgin/minidialog.c Tue Dec 18 11:05:40 2007 +0000 @@ -35,7 +35,40 @@ #include "pidgin/pidgin.h" #include "pidgin/pidginstock.h" -G_DEFINE_TYPE (PidginMiniDialog, pidgin_mini_dialog, GTK_TYPE_VBOX) +static void pidgin_mini_dialog_init (PidginMiniDialog *self); +static void pidgin_mini_dialog_class_init (PidginMiniDialogClass *klass); + +static gpointer pidgin_mini_dialog_parent_class = NULL; + +static void +pidgin_mini_dialog_class_intern_init (gpointer klass) +{ + pidgin_mini_dialog_parent_class = g_type_class_peek_parent (klass); + pidgin_mini_dialog_class_init ((PidginMiniDialogClass*) klass); +} + +GType +pidgin_mini_dialog_get_type (void) +{ + static GType g_define_type_id = 0; + if (G_UNLIKELY (g_define_type_id == 0)) + { + static const GTypeInfo g_define_type_info = { + sizeof (PidginMiniDialogClass), + (GBaseInitFunc) NULL, + (GBaseFinalizeFunc) NULL, + (GClassInitFunc) pidgin_mini_dialog_class_intern_init, + (GClassFinalizeFunc) NULL, + NULL, /* class_data */ + sizeof (PidginMiniDialog), + 0, /* n_preallocs */ + (GInstanceInitFunc) pidgin_mini_dialog_init, + }; + g_define_type_id = g_type_register_static (GTK_TYPE_VBOX, + "PidginMiniDialog", &g_define_type_info, 0); + } + return g_define_type_id; +} enum {