From 5f3a4c170d6d0850157c4ea6e38adbe369d864b4 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 29 Jul 2002 12:24:23 +0000 Subject: Made compatible with both GTK+ 1.x and 2.x. SCINTILLA_NOTIFY defines the name of the notify signal used generated by Scintilla as this has changed for GTK+ 2.x due to a clash with the "notify" signal defined by GTK+. --- include/ScintillaWidget.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/ScintillaWidget.h b/include/ScintillaWidget.h index e11159722..203f35733 100644 --- a/include/ScintillaWidget.h +++ b/include/ScintillaWidget.h @@ -39,6 +39,12 @@ GtkWidget* scintilla_new (void); void scintilla_set_id (ScintillaObject *sci,int id); sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam); +#if GTK_MAJOR_VERSION < 2 +#define SCINTILLA_NOTIFY "notify" +#else +#define SCINTILLA_NOTIFY "sci-notify" +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.3