summaryrefslogtreecommitdiff
path: root/src/daemon/daemon.h
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2018-12-01 19:10:45 +0800
committerraveit65 <[email protected]>2018-12-02 17:04:58 +0100
commitc586fe539efb8af372e60c752e03cb950cee9e77 (patch)
tree4ac606040cdfce20aa94a9eff77130e73c9c7a68 /src/daemon/daemon.h
parent8c60800f02bae75c378fb7a2fbe80173e8629e61 (diff)
downloadmate-notification-daemon-c586fe539efb8af372e60c752e03cb950cee9e77.tar.bz2
mate-notification-daemon-c586fe539efb8af372e60c752e03cb950cee9e77.tar.xz
Avoid compile warning for g_type_class_add_private
- src/daemon/daemon.c - src/daemon/daemon.h
Diffstat (limited to 'src/daemon/daemon.h')
-rw-r--r--src/daemon/daemon.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/daemon/daemon.h b/src/daemon/daemon.h
index b05c8eb..256579e 100644
--- a/src/daemon/daemon.h
+++ b/src/daemon/daemon.h
@@ -36,16 +36,7 @@
#define GSETTINGS_KEY_USE_ACTIVE "use-active-monitor"
#define NOTIFY_TYPE_DAEMON (notify_daemon_get_type())
-#define NOTIFY_DAEMON(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), NOTIFY_TYPE_DAEMON, NotifyDaemon))
-#define NOTIFY_DAEMON_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), NOTIFY_TYPE_DAEMON, NotifyDaemonClass))
-#define NOTIFY_IS_DAEMON(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NOTIFY_TYPE_DAEMON))
-#define NOTIFY_IS_DAEMON_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), NOTIFY_TYPE_DAEMON))
-#define NOTIFY_DAEMON_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS((obj), NOTIFY_TYPE_DAEMON, NotifyDaemonClass))
+G_DECLARE_FINAL_TYPE (NotifyDaemon, notify_daemon, NOTIFY, DAEMON, GObject)
#define NOTIFY_DAEMON_DEFAULT_TIMEOUT 7000
@@ -62,25 +53,8 @@ typedef enum {
NOTIFYD_CLOSED_RESERVED = 4
} NotifydClosedReason;
-typedef struct _NotifyDaemon NotifyDaemon;
-typedef struct _NotifyDaemonClass NotifyDaemonClass;
-typedef struct _NotifyDaemonPrivate NotifyDaemonPrivate;
-
-struct _NotifyDaemon {
- GObject parent;
- GSettings* gsettings;
-
- /*< private > */
- NotifyDaemonPrivate* priv;
-};
-
-struct _NotifyDaemonClass {
- GObjectClass parent_class;
-};
-
G_BEGIN_DECLS
-GType notify_daemon_get_type (void) G_GNUC_CONST;
NotifyDaemon* notify_daemon_new (gboolean replace);
GQuark notify_daemon_error_quark(void);