summaryrefslogtreecommitdiff
path: root/gtk/gtkswitch.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-02-17 21:55:54 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-02-17 21:55:54 -0500
commit163f0daf6a4baa19798ae450076f620ca1e1f639 (patch)
tree20e598e301f47eee62319e14d76a2a35cea35690 /gtk/gtkswitch.c
parentedeb6aaf88e5985187a33207b61ded9e0dd0fa6f (diff)
downloadgtk+-163f0daf6a4baa19798ae450076f620ca1e1f639.tar.gz
GtkSwitch: Use ATK_DEFINE_TYPE properly
Diffstat (limited to 'gtk/gtkswitch.c')
-rw-r--r--gtk/gtkswitch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 62cffcdea9..2f0b42e6a2 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -598,6 +598,7 @@ static AtkObject *
gtk_switch_get_accessible (GtkWidget *widget)
{
static gboolean first_time = TRUE;
+ AtkObject *acc;
if (G_UNLIKELY (first_time))
{
@@ -921,7 +922,7 @@ gtk_switch_activatable_interface_init (GtkActivatableIface *iface)
typedef struct _GtkSwitchAccessible GtkSwitchAccessible;
typedef struct _GtkSwitchAccessibleClass GtkSwitchAccessibleClass;
-ATK_DEFINE_TYPE (GtkSwitchAccessible, _gtk_switch_accessible, GTK_TYPE_WIDGET);
+ATK_DEFINE_TYPE (GtkSwitchAccessible, _gtk_switch_accessible, GTK_TYPE_SWITCH);
static AtkStateSet *
gtk_switch_accessible_ref_state_set (AtkObject *accessible)