aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ScintillaWidget.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-07-29 12:24:23 +0000
committernyamatongwe <devnull@localhost>2002-07-29 12:24:23 +0000
commit9050c0982e97e2b395ba5128ed82a67cbed2b5bd (patch)
tree1773573fb5f062ad888fbfa1b4e66f904bee25ed /include/ScintillaWidget.h
parent3e20aa7ba9496654464241733059ec4173f06d13 (diff)
downloadscintilla-mirror-9050c0982e97e2b395ba5128ed82a67cbed2b5bd.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.h6
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