[goffice] Fix incompatible pointer type warning



commit 28a4a914c7a2e6c58536b0cfd755d02e7a1cbd24
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Tue Aug 31 22:42:22 2010 -0600

    Fix incompatible pointer type warning
    
    2010-08-31  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* goffice/app/go-cmd-context.c (go_cmd_context_class_init): this should be a
    	  base init function, so change its name and arguments

 ChangeLog                    |    5 +++++
 goffice/app/go-cmd-context.c |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c2bcaf7..a1861ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-31  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* goffice/app/go-cmd-context.c (go_cmd_context_class_init): this should be a 
+	  base init function, so change its name and arguments
+
 2010-08-31  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/graph/gog-plot.c (gog_plot_update_cardinality),
diff --git a/goffice/app/go-cmd-context.c b/goffice/app/go-cmd-context.c
index 64858e8..408b954 100644
--- a/goffice/app/go-cmd-context.c
+++ b/goffice/app/go-cmd-context.c
@@ -160,7 +160,7 @@ go_cmd_context_error_info_list_default 	(GOCmdContext *gcc, GSList *errs)
 }
 
 static void
-go_cmd_context_class_init (GOCmdContextClass *class, gpointer class_data)
+go_cmd_context_base_init (GOCmdContextClass *class)
 {
 #warning class->error_info_list should really be class->error.error_info_list
 	class->error_info_list = go_cmd_context_error_info_list_default;
@@ -174,7 +174,7 @@ go_cmd_context_get_type (void)
 	if (!go_cmd_context_type) {
 		static GTypeInfo const go_cmd_context_info = {
 			sizeof (GOCmdContextClass),	/* class_size */
-			(GClassInitFunc) go_cmd_context_class_init, /* base_init */
+			(GBaseInitFunc) go_cmd_context_base_init, /* base_init */
 			NULL,				/* base_finalize */
 		};
 



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