[evolution-patches] libedataserver boilerplate



Hi,

Attached patch changes references of functions named "class_init" and
"init" in libedataserver to "<class_name>_class_init" and
"<class_name>_init".  This allows the gtk-sharp C parser to pick them up
and we get a bunch of missing signals on these objects evolution-sharp.

Ok to commit?

Thanks,
Joe
? libedataserver-boilerplate.patch
? camel/camel-mime-tables.c
? servers/exchange/Makefile.in
? servers/exchange/lib/Makefile.in
? servers/exchange/storage/Makefile.in
? servers/exchange/xntlm/Makefile.in
Index: libedataserver/e-account-list.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-account-list.c,v
retrieving revision 1.2
diff -u -p -u -r1.2 e-account-list.c
--- libedataserver/e-account-list.c	5 Nov 2003 15:46:31 -0000	1.2
+++ libedataserver/e-account-list.c	20 Jul 2005 20:54:56 -0000
@@ -48,7 +48,7 @@ static void dispose (GObject *);
 static void finalize (GObject *);
 
 static void
-class_init (GObjectClass *object_class)
+e_account_list_class_init (GObjectClass *object_class)
 {
 	parent_class = g_type_class_ref (PARENT_TYPE);
 
@@ -87,7 +87,7 @@ class_init (GObjectClass *object_class)
 }
 
 static void
-init (GObject *object)
+e_account_list_init (GObject *object)
 {
 	EAccountList *account_list = E_ACCOUNT_LIST (object);
 
@@ -131,12 +131,12 @@ e_account_list_get_type (void)
 			sizeof (EAccountListClass),
 			(GBaseInitFunc) NULL,
 			(GBaseFinalizeFunc) NULL,
-			(GClassInitFunc) class_init,
+			(GClassInitFunc) e_account_list_class_init,
 			(GClassFinalizeFunc) NULL,
 			NULL,
 			sizeof (EAccountList),
 			0,
-			(GInstanceInitFunc) init
+			(GInstanceInitFunc) e_account_list_init
 		};
 		type = g_type_register_static (PARENT_TYPE, "EAccountList", &object_info, 0);
 	}
Index: libedataserver/e-account.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-account.c,v
retrieving revision 1.2
diff -u -p -u -r1.2 e-account.c
--- libedataserver/e-account.c	5 Nov 2003 15:46:31 -0000	1.2
+++ libedataserver/e-account.c	20 Jul 2005 20:54:56 -0000
@@ -37,7 +37,7 @@ static GObjectClass *parent_class = NULL
 static void finalize (GObject *);
 
 static void
-class_init (GObjectClass *object_class)
+e_account_class_init (GObjectClass *object_class)
 {
 	parent_class = g_type_class_ref (PARENT_TYPE);
 
@@ -46,7 +46,7 @@ class_init (GObjectClass *object_class)
 }
 
 static void
-init (EAccount *account)
+e_account_init (EAccount *account)
 {
 	account->id = g_new0 (EAccountIdentity, 1);
 	account->source = g_new0 (EAccountService, 1);
@@ -113,12 +113,12 @@ e_account_get_type (void)
 			sizeof (EAccountClass),
 			(GBaseInitFunc) NULL,
 			(GBaseFinalizeFunc) NULL,
-			(GClassInitFunc) class_init,
+			(GClassInitFunc) e_account_class_init,
 			(GClassFinalizeFunc) NULL,
 			NULL,
 			sizeof (EAccount),
 			0,
-			(GInstanceInitFunc) init
+			(GInstanceInitFunc) e_account_init
 		};
 		type = g_type_register_static (PARENT_TYPE, "EAccount", &object_info, 0);
 	}
Index: libedataserver/e-source-group.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-source-group.c,v
retrieving revision 1.7
diff -u -p -u -r1.7 e-source-group.c
--- libedataserver/e-source-group.c	16 Jul 2004 14:51:37 -0000	1.7
+++ libedataserver/e-source-group.c	20 Jul 2005 20:54:56 -0000
@@ -110,7 +110,7 @@ impl_finalize (GObject *object)
 /* Initialization.  */
 
 static void
-class_init (ESourceGroupClass *class)
+e_source_group_class_init (ESourceGroupClass *class)
 {
 	GObjectClass *object_class = G_OBJECT_CLASS (class);
 
@@ -149,7 +149,7 @@ class_init (ESourceGroupClass *class)
 }
 
 static void
-init (ESourceGroup *source_group)
+e_source_group_init (ESourceGroup *source_group)
 {
 	ESourceGroupPrivate *priv;
 
@@ -167,11 +167,11 @@ e_source_group_get_type (void)
                         sizeof (ESourceGroupClass),
                         (GBaseInitFunc) NULL,
                         (GBaseFinalizeFunc) NULL,
-                        (GClassInitFunc) class_init,
+                        (GClassInitFunc) e_source_group_class_init,
                         NULL, NULL,
                         sizeof (ESourceGroup),
                         0,
-                        (GInstanceInitFunc) init
+                        (GInstanceInitFunc) e_source_group_init
                 };
 		e_source_group_type = g_type_register_static (G_TYPE_OBJECT, "ESourceGroup", &info, 0);
 	}
Index: libedataserver/e-source-list.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-source-list.c,v
retrieving revision 1.11
diff -u -p -u -r1.11 e-source-list.c
--- libedataserver/e-source-list.c	24 Sep 2004 02:57:10 -0000	1.11
+++ libedataserver/e-source-list.c	20 Jul 2005 20:54:56 -0000
@@ -292,7 +292,7 @@ impl_finalize (GObject *object)
 /* Initialization.  */
 
 static void
-class_init (ESourceListClass *class)
+e_source_list_class_init (ESourceListClass *class)
 {
 	GObjectClass *object_class = G_OBJECT_CLASS (class);
 
@@ -332,7 +332,7 @@ class_init (ESourceListClass *class)
 }
 
 static void
-init (ESourceList *source_list)
+e_source_list_init (ESourceList *source_list)
 {
 	ESourceListPrivate *priv;
 
@@ -351,11 +351,11 @@ e_source_list_get_type (void)
                         sizeof (ESourceListClass),
                         (GBaseInitFunc) NULL,
                         (GBaseFinalizeFunc) NULL,
-                        (GClassInitFunc) class_init,
+                        (GClassInitFunc) e_source_list_class_init,
                         NULL, NULL,
                         sizeof (ESourceList),
                         0,
-                        (GInstanceInitFunc) init
+                        (GInstanceInitFunc) e_source_list_init
                 };
 		e_source_list_type = g_type_register_static (G_TYPE_OBJECT, "ESourceList", &info, 0);
 	}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]