pidgin/gtkdebug.h

changeset 38646
fd3dd26b128d
parent 38645
bf3f91939dc5
equal deleted inserted replaced
38645:bf3f91939dc5 38646:fd3dd26b128d
31 #include "debug.h" 31 #include "debug.h"
32 32
33 G_BEGIN_DECLS 33 G_BEGIN_DECLS
34 34
35 #define PIDGIN_TYPE_DEBUG_UI (pidgin_debug_ui_get_type()) 35 #define PIDGIN_TYPE_DEBUG_UI (pidgin_debug_ui_get_type())
36 #if GLIB_CHECK_VERSION(2,44,0)
36 G_DECLARE_FINAL_TYPE(PidginDebugUi, pidgin_debug_ui, PIDGIN, DEBUG_UI, GObject) 37 G_DECLARE_FINAL_TYPE(PidginDebugUi, pidgin_debug_ui, PIDGIN, DEBUG_UI, GObject)
38 #else
39 GType pidgin_debug_ui_get_type(void);
40 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
41 typedef struct _PidginDebugUi PidginDebugUi;
42 typedef struct { GObjectClass parent_class; } PidginDebugUiClass;
43 static inline PidginDebugUi *
44 PIDGIN_DEBUG_UI(gpointer ptr)
45 {
46 return G_TYPE_CHECK_INSTANCE_CAST(ptr, pidgin_debug_ui_get_type(), PidginDebugUi);
47 }
48 static inline gboolean
49 PIDGIN_IS_DEBUG_UI(gpointer ptr)
50 {
51 return G_TYPE_CHECK_INSTANCE_TYPE(ptr, pidgin_debug_ui_get_type());
52 }
53 G_GNUC_END_IGNORE_DEPRECATIONS
54 #endif
37 55
38 /** 56 /**
39 * pidgin_debug_ui_new: 57 * pidgin_debug_ui_new:
40 * 58 *
41 * Initializes the GTK+ debug system. 59 * Initializes the GTK+ debug system.

mercurial