]> git.saurik.com Git - wxWidgets.git/commitdiff
use correct signature for class init function
authorPaul Cornett <paulcor@bullseye.com>
Tue, 2 Jul 2013 17:09:55 +0000 (17:09 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 2 Jul 2013 17:09:55 +0000 (17:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/treeentry_gtk.c

index 5b76211109a0244626ba300e669248c1d9a0462d..f091d648886e8942e924f734f1f88ee8264bc6d7 100644 (file)
@@ -32,7 +32,7 @@ typedef pid_t GPid;
 */
 
 /* forwards */
-static void gtk_tree_entry_class_init(GtkTreeEntryClass* klass);
+static void gtk_tree_entry_class_init(void* g_class, void* class_data);
 static void gtk_tree_entry_init (GTypeInstance* instance, gpointer g_class);
 static void gtk_tree_entry_string_transform_func(const GValue *src_value,
                                                  GValue *dest_value);
@@ -58,7 +58,7 @@ gtk_tree_entry_get_type ()
             sizeof (GtkTreeEntryClass),
             NULL,           /* base_init */
             NULL,           /* base_finalize */
-            (GClassInitFunc) gtk_tree_entry_class_init,  /* class_init */
+            gtk_tree_entry_class_init,
             NULL,           /* class_finalize */
             NULL,           /* class_data */
             sizeof (GtkTreeEntry),
@@ -127,9 +127,9 @@ void   gtk_tree_entry_set_destroy_func  (GtkTreeEntry* entry,
 }
 
 /* private */
-static void gtk_tree_entry_class_init(GtkTreeEntryClass* klass)
+static void gtk_tree_entry_class_init(void* g_class, void* class_data)
 {
-    GObjectClass* gobject_class = G_OBJECT_CLASS(klass);
+    GObjectClass* gobject_class = G_OBJECT_CLASS(g_class);
     gobject_class->dispose = gtk_tree_entry_dispose;
 }