diff options
author | Elliott Sales de Andrade <qulogic@pidgin.im> | 2017-08-10 23:24:29 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <qulogic@pidgin.im> | 2017-08-10 23:24:29 -0400 |
commit | a3d314bed2bebbf5a5b7cdf58a6840ccd970e033 (patch) | |
tree | 81471a4973fb91127b83dc74e4ba3420f0b761b4 /finch/gntdebug.h | |
parent | a9f55dc0c3dcba7c09fc7d5fb89f973d09f2b39a (diff) | |
download | pidgin-a3d314bed2bebbf5a5b7cdf58a6840ccd970e033.tar.gz |
Expand G_DECLARE macros on older GLib.
Diffstat (limited to 'finch/gntdebug.h')
-rw-r--r-- | finch/gntdebug.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/finch/gntdebug.h b/finch/gntdebug.h index c753974a58..ba2b27f1e1 100644 --- a/finch/gntdebug.h +++ b/finch/gntdebug.h @@ -37,7 +37,25 @@ G_BEGIN_DECLS **********************************************************************/ #define FINCH_TYPE_DEBUG_UI (finch_debug_ui_get_type()) +#if GLIB_CHECK_VERSION(2,44,0) G_DECLARE_FINAL_TYPE(FinchDebugUi, finch_debug_ui, FINCH, DEBUG_UI, GObject) +#else +GType finch_debug_ui_get_type(void); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS +typedef struct _FinchDebugUi FinchDebugUi; +typedef struct { GObjectClass parent_class; } FinchDebugUiClass; +static inline FinchDebugUi * +FINCH_DEBUG_UI(gpointer ptr) +{ + return G_TYPE_CHECK_INSTANCE_CAST(ptr, finch_debug_ui_get_type(), FinchDebugUi); +} +static inline gboolean +FINCH_IS_DEBUG_UI(gpointer ptr) +{ + return G_TYPE_CHECK_INSTANCE_TYPE(ptr, finch_debug_ui_get_type()); +} +G_GNUC_END_IGNORE_DEPRECATIONS +#endif /** * finch_debug_ui_new: |