From: Paul Cornett Date: Tue, 11 Dec 2012 06:43:19 +0000 (+0000) Subject: use correct signature for callback X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/faad53d187867e9ffd31e276c088c6d861e28f91 use correct signature for callback git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/assertdlg_gtk.cpp b/src/gtk/assertdlg_gtk.cpp index 01d9ecdae9..3eb254b946 100644 --- a/src/gtk/assertdlg_gtk.cpp +++ b/src/gtk/assertdlg_gtk.cpp @@ -231,8 +231,9 @@ static void gtk_assert_dialog_continue_callback(GtkWidget*, GtkAssertDialog* dlg GtkAssertDialogClass implementation ---------------------------------------------------------------------------- */ -static void gtk_assert_dialog_init (GtkAssertDialog *self); -static void gtk_assert_dialog_class_init (GtkAssertDialogClass *klass); +extern "C" { +static void gtk_assert_dialog_init(GTypeInstance* instance, void*); +} GType gtk_assert_dialog_get_type() { @@ -245,12 +246,12 @@ GType gtk_assert_dialog_get_type() sizeof (GtkAssertDialogClass), NULL, /* base_init */ NULL, /* base_finalize */ - (GClassInitFunc) gtk_assert_dialog_class_init, + NULL, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (GtkAssertDialog), 16, /* n_preallocs */ - (GInstanceInitFunc) gtk_assert_dialog_init, + gtk_assert_dialog_init, NULL }; assert_dialog_type = g_type_register_static (GTK_TYPE_DIALOG, "GtkAssertDialog", &assert_dialog_info, (GTypeFlags)0); @@ -259,13 +260,10 @@ GType gtk_assert_dialog_get_type() return assert_dialog_type; } -static void gtk_assert_dialog_class_init(GtkAssertDialogClass*) -{ - /* no special initializations required */ -} - -static void gtk_assert_dialog_init(GtkAssertDialog* dlg) +extern "C" { +static void gtk_assert_dialog_init(GTypeInstance* instance, void*) { + GtkAssertDialog* dlg = GTK_ASSERT_DIALOG(instance); GtkWidget *continuebtn; { @@ -373,6 +371,7 @@ static void gtk_assert_dialog_init(GtkAssertDialog* dlg) gtk_widget_pop_composite_child (); gtk_widget_show_all (GTK_WIDGET(dlg)); } +} /* ---------------------------------------------------------------------------- GtkAssertDialog public API