diff options
author | Eitan Isaacson <eitan@ascender.com> | 2009-04-10 13:16:39 +0300 |
---|---|---|
committer | Eitan Isaacson <eitan@ascender.com> | 2009-04-10 13:16:39 +0300 |
commit | bcdeb139acbff6d15d442f2bac3b1bb751413645 (patch) | |
tree | c7ddef1fb5b24c215bfea9c9d843002ff78bb5bf | |
parent | a3188d21d2682bf371e9e76638c26550d95a84c9 (diff) | |
download | libayatana-indicator-bcdeb139acbff6d15d442f2bac3b1bb751413645.tar.gz libayatana-indicator-bcdeb139acbff6d15d442f2bac3b1bb751413645.tar.bz2 libayatana-indicator-bcdeb139acbff6d15d442f2bac3b1bb751413645.zip |
gtypify IndicateListenerIndicator
-rw-r--r-- | libindicate/listener.c | 17 | ||||
-rw-r--r-- | libindicate/listener.h | 4 |
2 files changed, 16 insertions, 5 deletions
diff --git a/libindicate/listener.c b/libindicate/listener.c index 13c9e81..0646e81 100644 --- a/libindicate/listener.c +++ b/libindicate/listener.c @@ -154,21 +154,21 @@ indicate_listener_class_init (IndicateListenerClass * class) G_STRUCT_OFFSET (IndicateListenerClass, indicator_added), NULL, NULL, _indicate_listener_marshal_VOID__POINTER_POINTER_STRING, - G_TYPE_NONE, 3, INDICATE_TYPE_LISTENER_SERVER, G_TYPE_POINTER, G_TYPE_STRING); + G_TYPE_NONE, 3, INDICATE_TYPE_LISTENER_SERVER, INDICATE_TYPE_LISTENER_INDICATOR, G_TYPE_STRING); signals[INDICATOR_REMOVED] = g_signal_new(INDICATE_LISTENER_SIGNAL_INDICATOR_REMOVED, G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (IndicateListenerClass, indicator_removed), NULL, NULL, _indicate_listener_marshal_VOID__POINTER_POINTER_STRING, - G_TYPE_NONE, 3, INDICATE_TYPE_LISTENER_SERVER, G_TYPE_POINTER, G_TYPE_STRING); + G_TYPE_NONE, 3, INDICATE_TYPE_LISTENER_SERVER, INDICATE_TYPE_LISTENER_INDICATOR, G_TYPE_STRING); signals[INDICATOR_MODIFIED] = g_signal_new(INDICATE_LISTENER_SIGNAL_INDICATOR_MODIFIED, G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (IndicateListenerClass, indicator_modified), NULL, NULL, _indicate_listener_marshal_VOID__POINTER_POINTER_STRING_STRING, - G_TYPE_NONE, 4, INDICATE_TYPE_LISTENER_SERVER, G_TYPE_POINTER, G_TYPE_STRING, G_TYPE_STRING); + G_TYPE_NONE, 4, INDICATE_TYPE_LISTENER_SERVER, INDICATE_TYPE_LISTENER_INDICATOR, G_TYPE_STRING, G_TYPE_STRING); signals[SERVER_ADDED] = g_signal_new(INDICATE_LISTENER_SIGNAL_SERVER_ADDED, G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_LAST, @@ -1035,3 +1035,14 @@ indicate_listener_server_get_gtype (void) return our_type; } +GType +indicate_listener_indicator_get_gtype (void) +{ + static GType our_type = 0; + + if (our_type == 0) + our_type = g_pointer_type_register_static ("IndicateListenerIndicator"); + + return our_type; +} + diff --git a/libindicate/listener.h b/libindicate/listener.h index 5a1e991..5bfd298 100644 --- a/libindicate/listener.h +++ b/libindicate/listener.h @@ -61,10 +61,10 @@ G_BEGIN_DECLS typedef struct _IndicateListenerServer IndicateListenerServer; #define INDICATE_TYPE_LISTENER_SERVER (indicate_listener_server_get_gtype ()) GType indicate_listener_server_get_gtype (void) G_GNUC_CONST; -IndicateListenerServer *indicate_listener_server_copy (const IndicateListenerServer *listener_server); -void indicate_listener_server_free (IndicateListenerServer *listener_server); typedef struct _IndicateListenerIndicator IndicateListenerIndicator; +#define INDICATE_TYPE_LISTENER_INDICATOR (indicate_listener_indicator_get_gtype ()) +GType indicate_listener_indicator_get_gtype (void) G_GNUC_CONST; typedef struct _IndicateListener IndicateListener; struct _IndicateListener { |