[geany/geany] caf207: Don't use old GTK1-style typesystem

Colomban Wendling git-noreply at xxxxx
Sun Mar 10 16:23:35 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 09 Oct 2012 11:25:12 UTC
Commit:      caf207c36a54814b57b83ca69ec007eaa7bb6f13
             https://github.com/geany/geany/commit/caf207c36a54814b57b83ca69ec007eaa7bb6f13

Log Message:
-----------
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.

Backported from Scintilla HG: 9cd7cf1d9af73d50b0423ed34a6693bbf7f57ac8


Modified Paths:
--------------
    scintilla/include/ScintillaWidget.h

Modified: scintilla/include/ScintillaWidget.h
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -16,8 +16,8 @@
 #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;



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list