X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65ec6247df6af7b6489257b1ac04ca2242dc14ec..80a779275ae04443c568dca919adb26cf6f5002c:/src/stc/scintilla/include/ScintillaWidget.h?ds=sidebyside diff --git a/src/stc/scintilla/include/ScintillaWidget.h b/src/stc/scintilla/include/ScintillaWidget.h index f6c2fc3542..9d23ce2a91 100644 --- a/src/stc/scintilla/include/ScintillaWidget.h +++ b/src/stc/scintilla/include/ScintillaWidget.h @@ -11,17 +11,6 @@ #if PLAT_GTK -#ifndef SCINTILLA_H -#ifdef _MSC_VER -#pragma message(__FILE__ "(1) : warning : Scintilla.h should be included before ScintillaWidget.h") -#pragma message("This will be required in the next version of Scintilla") -#else -#warning Scintilla.h should be included before ScintillaWidget.h -#warning This will be required in the next version of Scintilla -#endif -#include "Scintilla.h" -#endif - #ifdef __cplusplus extern "C" { #endif @@ -39,16 +28,27 @@ struct _ScintillaObject { }; struct _ScintillaClass { - GtkFixedClass parent_class; + GtkContainerClass parent_class; void (* command) (ScintillaObject *ttt); void (* notify) (ScintillaObject *ttt); }; -guint scintilla_get_type (void); +#if GLIB_MAJOR_VERSION < 2 +GtkType scintilla_get_type (void); +#else +GType scintilla_get_type (void); +#endif 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); +void scintilla_set_id (ScintillaObject *sci, uptr_t id); +sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam); +void scintilla_release_resources(void); + +#if GTK_MAJOR_VERSION < 2 +#define SCINTILLA_NOTIFY "notify" +#else +#define SCINTILLA_NOTIFY "sci-notify" +#endif #ifdef __cplusplus }