aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorColomban Wendling <ban@herbesfolles.org>2012-09-11 19:39:02 +0200
committerColomban Wendling <ban@herbesfolles.org>2012-09-11 19:39:02 +0200
commitbbd83663bfd7bdcf41f7e0c5e30442b1ca04be88 (patch)
treeadc60ddba55e992fe8db443a0f9fa0eaea7e1e86
parentacbc8a093413c624f76699b49abfbcb3ffc2f919 (diff)
downloadscintilla-mirror-bbd83663bfd7bdcf41f7e0c5e30442b1ca04be88.tar.gz
Don't use old GTK1-style typesystem
This fixes the SCINTILLA_CLASS() and IS_SCINTILLA() macros on GTK3. No harm on GTK2, those macros are available since 2.0. This also makes those macros more consistent with the SCINTILLA() macro that already uses the proper GObject calls.
-rw-r--r--include/ScintillaWidget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ScintillaWidget.h b/include/ScintillaWidget.h
index 021af2a30..f8cd212b0 100644
--- a/include/ScintillaWidget.h
+++ b/include/ScintillaWidget.h
@@ -16,8 +16,8 @@ extern "C" {
#endif
#define SCINTILLA(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, scintilla_get_type (), ScintillaObject)
-#define SCINTILLA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass)
-#define IS_SCINTILLA(obj) GTK_CHECK_TYPE (obj, scintilla_get_type ())
+#define SCINTILLA_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass)
+#define IS_SCINTILLA(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, scintilla_get_type ())
typedef struct _ScintillaObject ScintillaObject;
typedef struct _ScintillaClass ScintillaClass;