aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-roster-group.h
blob: d5ad70e57fdb6c24119d64e2bcc3260f0d87f608 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#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>*/
  GtkListBoxRowClass parent_class;
};

struct _EmpathyRosterGroup
{
  /*<private>*/
  GtkListBoxRow parent;
  EmpathyRosterGroupPriv *priv;

  /*<public>*/
  GtkExpander *expander;
};

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 *icon);

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