[gnome-desktop] idle-monitor: use standard GObject boilerplate
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] idle-monitor: use standard GObject boilerplate
- Date: Mon, 11 Feb 2013 20:12:27 +0000 (UTC)
commit 4e03c197deb5c8bb4a66e2f53d42673f5b38f6f3
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Feb 11 15:07:38 2013 -0500
idle-monitor: use standard GObject boilerplate
This helps gtk-doc finding things in the expected places and
auto-generating documentation for properties and signals
libgnome-desktop/gnome-idle-monitor.c | 2 +-
libgnome-desktop/gnome-idle-monitor.h | 12 +++++++-----
2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/libgnome-desktop/gnome-idle-monitor.c b/libgnome-desktop/gnome-idle-monitor.c
index d1254fd..8faeb48 100644
--- a/libgnome-desktop/gnome-idle-monitor.c
+++ b/libgnome-desktop/gnome-idle-monitor.c
@@ -36,7 +36,7 @@
#define GNOME_IDLE_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GNOME_TYPE_IDLE_MONITOR, GnomeIdleMonitorPrivate))
-struct GnomeIdleMonitorPrivate
+struct _GnomeIdleMonitorPrivate
{
Display *display;
diff --git a/libgnome-desktop/gnome-idle-monitor.h b/libgnome-desktop/gnome-idle-monitor.h
index 7cd0e22..728e91e 100644
--- a/libgnome-desktop/gnome-idle-monitor.h
+++ b/libgnome-desktop/gnome-idle-monitor.h
@@ -40,18 +40,20 @@ G_BEGIN_DECLS
#define GNOME_IS_IDLE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNOME_TYPE_IDLE_MONITOR))
#define GNOME_IDLE_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNOME_TYPE_IDLE_MONITOR, GnomeIdleMonitorClass))
-typedef struct GnomeIdleMonitorPrivate GnomeIdleMonitorPrivate;
+typedef struct _GnomeIdleMonitor GnomeIdleMonitor;
+typedef struct _GnomeIdleMonitorClass GnomeIdleMonitorClass;
+typedef struct _GnomeIdleMonitorPrivate GnomeIdleMonitorPrivate;
-typedef struct
+struct _GnomeIdleMonitor
{
GObject parent;
GnomeIdleMonitorPrivate *priv;
-} GnomeIdleMonitor;
+};
-typedef struct
+struct _GnomeIdleMonitorClass
{
GObjectClass parent_class;
-} GnomeIdleMonitorClass;
+};
typedef void (*GnomeIdleMonitorWatchFunc) (GnomeIdleMonitor *monitor,
guint id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]