diff options
author | nyamatongwe <unknown> | 2003-04-16 19:47:35 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-04-16 19:47:35 +0000 |
commit | 9d9db8221b18429c2c54331a84ad6a7a28a0b277 (patch) | |
tree | 539ef4a8f3ca3badcd481d8b8190994d2e167a62 | |
parent | 6281527f3ce6b3d84bcc83c68921877d31eac5b1 (diff) | |
download | scintilla-mirror-9d9db8221b18429c2c54331a84ad6a7a28a0b277.tar.gz |
Fix to marshalling.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 1ce0ba526..7029383a9 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1835,8 +1835,10 @@ void ScintillaGTK::ClassInit(GtkObjectClass* object_class, GtkWidgetClass *widge #if GTK_MAJOR_VERSION < 2 #define GTK_CLASS_TYPE(c) (c->type) #define SIG_MARSHAL gtk_marshal_NONE__INT_POINTER +#define MARSHAL_ARGUMENTS GTK_TYPE_INT, GTK_TYPE_POINTER #else #define SIG_MARSHAL gtk_marshal_NONE__INT_INT +#define MARSHAL_ARGUMENTS GTK_TYPE_INT, GTK_TYPE_INT #endif static void scintilla_class_init(ScintillaClass *klass) { @@ -1852,7 +1854,7 @@ static void scintilla_class_init(ScintillaClass *klass) { GTK_SIGNAL_OFFSET(ScintillaClass, command), SIG_MARSHAL, GTK_TYPE_NONE, - 2, GTK_TYPE_INT, GTK_TYPE_POINTER); + 2, MARSHAL_ARGUMENTS); scintilla_signals[NOTIFY_SIGNAL] = gtk_signal_new( SCINTILLA_NOTIFY, @@ -1861,7 +1863,7 @@ static void scintilla_class_init(ScintillaClass *klass) { GTK_SIGNAL_OFFSET(ScintillaClass, notify), SIG_MARSHAL, GTK_TYPE_NONE, - 2, GTK_TYPE_INT, GTK_TYPE_POINTER); + 2, MARSHAL_ARGUMENTS); #if GTK_MAJOR_VERSION < 2 gtk_object_class_add_signals(object_class, reinterpret_cast<unsigned int *>(scintilla_signals), LAST_SIGNAL); |