| 32 #include "prefs.h" |
32 #include "prefs.h" |
| 33 |
33 |
| 34 G_BEGIN_DECLS |
34 G_BEGIN_DECLS |
| 35 |
35 |
| 36 #define PIDGIN_TYPE_PREFS_WINDOW (pidgin_prefs_window_get_type()) |
36 #define PIDGIN_TYPE_PREFS_WINDOW (pidgin_prefs_window_get_type()) |
| 37 #if GLIB_CHECK_VERSION(2,44,0) |
|
| 38 G_DECLARE_FINAL_TYPE(PidginPrefsWindow, pidgin_prefs_window, PIDGIN, PREFS_WINDOW, GtkDialog) |
37 G_DECLARE_FINAL_TYPE(PidginPrefsWindow, pidgin_prefs_window, PIDGIN, PREFS_WINDOW, GtkDialog) |
| 39 #else |
|
| 40 GType pidgin_prefs_window_get_type(void); |
|
| 41 G_GNUC_BEGIN_IGNORE_DEPRECATIONS |
|
| 42 typedef struct _PidginPrefsWindow PidginPrefsWindow; |
|
| 43 typedef struct { GtkDialogClass parent_class; } PidginPrefsWindowClass; |
|
| 44 static inline PidginPrefsWindow * |
|
| 45 PIDGIN_PREFS_WINDOW(gpointer ptr) |
|
| 46 { |
|
| 47 return G_TYPE_CHECK_INSTANCE_CAST(ptr, pidgin_prefs_window_get_type(), PidginPrefsWindow); |
|
| 48 } |
|
| 49 static inline gboolean |
|
| 50 PIDGIN_IS_PREFS_WINDOW(gpointer ptr) |
|
| 51 { |
|
| 52 return G_TYPE_CHECK_INSTANCE_TYPE(ptr, pidgin_prefs_window_get_type()); |
|
| 53 } |
|
| 54 G_GNUC_END_IGNORE_DEPRECATIONS |
|
| 55 #endif |
|
| 56 |
38 |
| 57 /** |
39 /** |
| 58 * pidgin_prefs_init: |
40 * pidgin_prefs_init: |
| 59 * |
41 * |
| 60 * Initializes all UI-specific preferences. |
42 * Initializes all UI-specific preferences. |