diff options
author | Ted Gould <ted@canonical.com> | 2009-01-08 11:31:53 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-01-08 11:31:53 -0600 |
commit | e2a3557771a519d9405ccd92a58a0b6ec82624ce (patch) | |
tree | 2da1481e9f54b0b324bc0e38308981ce71b8a05c /libindicate | |
parent | d505bedae46aed1e835aaa322d685a5b497d585c (diff) | |
download | libayatana-indicator-e2a3557771a519d9405ccd92a58a0b6ec82624ce.tar.gz libayatana-indicator-e2a3557771a519d9405ccd92a58a0b6ec82624ce.tar.bz2 libayatana-indicator-e2a3557771a519d9405ccd92a58a0b6ec82624ce.zip |
Basic GObject stuff
Diffstat (limited to 'libindicate')
-rw-r--r-- | libindicate/indicator.c | 2 | ||||
-rw-r--r-- | libindicate/server.c | 44 |
2 files changed, 45 insertions, 1 deletions
diff --git a/libindicate/indicator.c b/libindicate/indicator.c index 0a41c19..74eefbf 100644 --- a/libindicate/indicator.c +++ b/libindicate/indicator.c @@ -8,7 +8,7 @@ enum { LAST_SIGNAL }; -guint signals[LAST_SIGNAL] = { 0 }; +static guint signals[LAST_SIGNAL] = { 0 }; G_DEFINE_TYPE (IndicateIndicator, indicate_indicator, G_TYPE_OBJECT); diff --git a/libindicate/server.c b/libindicate/server.c index 74b3ad7..0a0eab1 100644 --- a/libindicate/server.c +++ b/libindicate/server.c @@ -2,3 +2,47 @@ #include "server.h" #include "dbus-indicate-server.h" + +/* Signals */ +enum { + INDICATOR_ADDED, + INDICATOR_REMOVED, + INDICATOR_MODIFIED, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL] = { 0 }; + +G_DEFINE_TYPE (IndicateServer, indicate_server, G_TYPE_OBJECT); + +/* Prototypes */ +static void indicate_server_finalize (GObject * obj); + +/* Code */ +static void +indicate_server_class_init (IndicateServerClass * class) +{ + GObjectClass * gobj; + gobj = G_OBJECT_CLASS(class); + + gobj->finalize = indicate_server_finalize; + + + return; +} + +static void +indicate_server_init (IndicateServer * server) +{ + + + return; +} + +static void +indicate_server_finalize (GObject * obj) +{ + + + return; +} |