diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-05-28 20:22:50 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-14 15:21:49 +0800 |
commit | 043d63caaf16e09c291f0dcd28068e0efbf97bdb (patch) | |
tree | f5a8bb5d2ba64939a6f586cca354ff24a0506446 /libempathy-gtk/empathy-roster-group.h | |
parent | b7e72c53ffe6a02482b57e5ee565881b313e4d43 (diff) | |
download | gsoc2013-empathy-043d63caaf16e09c291f0dcd28068e0efbf97bdb.tar gsoc2013-empathy-043d63caaf16e09c291f0dcd28068e0efbf97bdb.tar.gz gsoc2013-empathy-043d63caaf16e09c291f0dcd28068e0efbf97bdb.tar.bz2 gsoc2013-empathy-043d63caaf16e09c291f0dcd28068e0efbf97bdb.tar.lz gsoc2013-empathy-043d63caaf16e09c291f0dcd28068e0efbf97bdb.tar.xz gsoc2013-empathy-043d63caaf16e09c291f0dcd28068e0efbf97bdb.tar.zst gsoc2013-empathy-043d63caaf16e09c291f0dcd28068e0efbf97bdb.zip |
add empathy-roster-group
Diffstat (limited to 'libempathy-gtk/empathy-roster-group.h')
-rw-r--r-- | libempathy-gtk/empathy-roster-group.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-group.h b/libempathy-gtk/empathy-roster-group.h new file mode 100644 index 000000000..314ed3b58 --- /dev/null +++ b/libempathy-gtk/empathy-roster-group.h @@ -0,0 +1,62 @@ +#ifndef __EMPATHY_ROSTER_GROUP_H__ +#define __EMPATHY_ROSTER_GROUP_H__ + +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +typedef struct _EmpathyRosterGroup EmpathyRosterGroup; +typedef struct _EmpathyRosterGroupClass EmpathyRosterGroupClass; +typedef struct _EmpathyRosterGroupPriv EmpathyRosterGroupPriv; + +struct _EmpathyRosterGroupClass +{ + /*<private>*/ + GtkExpanderClass parent_class; +}; + +struct _EmpathyRosterGroup +{ + /*<private>*/ + GtkExpander parent; + EmpathyRosterGroupPriv *priv; +}; + +GType empathy_roster_group_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ROSTER_GROUP \ + (empathy_roster_group_get_type ()) +#define EMPATHY_ROSTER_GROUP(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ROSTER_GROUP, \ + EmpathyRosterGroup)) +#define EMPATHY_ROSTER_GROUP_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ROSTER_GROUP, \ + EmpathyRosterGroupClass)) +#define EMPATHY_IS_ROSTER_GROUP(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ROSTER_GROUP)) +#define EMPATHY_IS_ROSTER_GROUP_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ROSTER_GROUP)) +#define EMPATHY_ROSTER_GROUP_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ROSTER_GROUP, \ + EmpathyRosterGroupClass)) + +GtkWidget * empathy_roster_group_new (const gchar *name); + +const gchar * empathy_roster_group_get_name (EmpathyRosterGroup *self); + +guint empathy_roster_group_add_widget (EmpathyRosterGroup *self, + GtkWidget *widget); +guint empathy_roster_group_remove_widget (EmpathyRosterGroup *self, + GtkWidget *widget); +guint empathy_roster_group_get_widgets_count (EmpathyRosterGroup *self); +GList * empathy_roster_group_get_widgets (EmpathyRosterGroup *self); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ROSTER_GROUP_H__*/ |