Merge branch 'master' into gi
[platform/upstream/at-spi2-core.git] / atspi / atspi-stateset.c
1 #include "atspi-private.h"
2
3 static void atspi_state_set_class_init (AtspiStateSetClass *klass);
4
5 G_DEFINE_TYPE (AtspiStateSet, atspi_state_set, G_TYPE_OBJECT)
6
7 static void
8 atspi_state_set_init (AtspiStateSet *set)
9 {
10   set->states = 0;
11 }
12
13 static void
14 atspi_state_set_class_init (AtspiStateSetClass* klass)
15 {
16 }
17
18 AtspiStateSet *
19 atspi_state_set_new (gint64 states)
20 {
21   AtspiStateSet *set;
22   
23   set = g_object_new (ATSPI_TYPE_STATE_SET, NULL);
24   g_return_val_if_fail (set != NULL, NULL);
25
26   set->states = states;
27   return set;
28 }