diff options
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__*/ |