diff options
author | rbuj <[email protected]> | 2021-01-22 11:30:12 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-12 12:41:10 +0100 |
commit | 9a39afb160c70a05eb5681e8254d6bfc7f56a1ce (patch) | |
tree | cde881c118bf1f1c415f44094bff3ff860f9422f /plugins/typing-break/msd-typing-break-manager.h | |
parent | abc0fa87d0294de0eda875cbb0a1f11fd5cae521 (diff) | |
download | mate-settings-daemon-9a39afb160c70a05eb5681e8254d6bfc7f56a1ce.tar.bz2 mate-settings-daemon-9a39afb160c70a05eb5681e8254d6bfc7f56a1ce.tar.xz |
typing-break: promote MsdTypingBreakManager class to final type
Diffstat (limited to 'plugins/typing-break/msd-typing-break-manager.h')
-rw-r--r-- | plugins/typing-break/msd-typing-break-manager.h | 37 |
1 files changed, 8 insertions, 29 deletions
diff --git a/plugins/typing-break/msd-typing-break-manager.h b/plugins/typing-break/msd-typing-break-manager.h index 9204a96..b69b6e2 100644 --- a/plugins/typing-break/msd-typing-break-manager.h +++ b/plugins/typing-break/msd-typing-break-manager.h @@ -18,44 +18,23 @@ * */ -#ifndef __MSD_TYPING_BREAK_MANAGER_H -#define __MSD_TYPING_BREAK_MANAGER_H +#ifndef MSD_TYPING_BREAK_MANAGER_H +#define MSD_TYPING_BREAK_MANAGER_H #include <glib-object.h> -#ifdef __cplusplus -extern "C" { -#endif +G_BEGIN_DECLS -#define MSD_TYPE_TYPING_BREAK_MANAGER (msd_typing_break_manager_get_type ()) -#define MSD_TYPING_BREAK_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_TYPING_BREAK_MANAGER, MsdTypingBreakManager)) -#define MSD_TYPING_BREAK_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_TYPING_BREAK_MANAGER, MsdTypingBreakManagerClass)) -#define MSD_IS_TYPING_BREAK_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_TYPING_BREAK_MANAGER)) -#define MSD_IS_TYPING_BREAK_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_TYPING_BREAK_MANAGER)) -#define MSD_TYPING_BREAK_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_TYPING_BREAK_MANAGER, MsdTypingBreakManagerClass)) +#define MSD_TYPE_TYPING_BREAK_MANAGER (msd_typing_break_manager_get_type ()) -typedef struct MsdTypingBreakManagerPrivate MsdTypingBreakManagerPrivate; - -typedef struct -{ - GObject parent; - MsdTypingBreakManagerPrivate *priv; -} MsdTypingBreakManager; - -typedef struct -{ - GObjectClass parent_class; -} MsdTypingBreakManagerClass; - -GType msd_typing_break_manager_get_type (void); +G_DECLARE_FINAL_TYPE (MsdTypingBreakManager, msd_typing_break_manager, + MSD, TYPING_BREAK_MANAGER, GObject) MsdTypingBreakManager * msd_typing_break_manager_new (void); gboolean msd_typing_break_manager_start (MsdTypingBreakManager *manager, GError **error); void msd_typing_break_manager_stop (MsdTypingBreakManager *manager); -#ifdef __cplusplus -} -#endif +G_END_DECLS -#endif /* __MSD_TYPING_BREAK_MANAGER_H */ +#endif /* MSD_TYPING_BREAK_MANAGER_H */ |