diff options
| author | nyamatongwe <unknown> | 2002-07-29 12:24:23 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2002-07-29 12:24:23 +0000 |
| commit | 5f3a4c170d6d0850157c4ea6e38adbe369d864b4 (patch) | |
| tree | 1773573fb5f062ad888fbfa1b4e66f904bee25ed /include/ScintillaWidget.h | |
| parent | 4a1719ebb321549d7ab33a0beb849d084b22c288 (diff) | |
| download | scintilla-mirror-5f3a4c170d6d0850157c4ea6e38adbe369d864b4.tar.gz | |
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+.
Diffstat (limited to 'include/ScintillaWidget.h')
| -rw-r--r-- | include/ScintillaWidget.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
