im.pidgin.pidgin: 500a56d2072c36915fd9801be07f13c66f043050

resiak at soc.pidgin.im resiak at soc.pidgin.im
Tue Dec 18 06:10:37 EST 2007


-----------------------------------------------------------------
Revision: 500a56d2072c36915fd9801be07f13c66f043050
Ancestor: 3b04d5ecc995b2c4af8919299fcc785383d82ded
Author: resiak at soc.pidgin.im
Date: 2007-12-18T10:54:32
Branch: im.pidgin.pidgin

Modified files:
        pidgin/minidialog.c

ChangeLog: 

Manually expand G_DEFINE_TYPE for PidginMiniDialog, since it was added in glib 2.4.

References #4393.

-------------- next part --------------
============================================================
--- pidgin/minidialog.c	4509015cc777560bfb5547871d2e1373a53adc1c
+++ pidgin/minidialog.c	d2724987cfbd300115f28838dba440653542684b
@@ -35,8 +35,41 @@
 #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
 {
 	PROP_TITLE = 1,


More information about the Commits mailing list