[gtk+] GtkSwitch: Use ATK_DEFINE_TYPE properly



commit 163f0daf6a4baa19798ae450076f620ca1e1f639
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 17 21:55:54 2011 -0500

    GtkSwitch: Use ATK_DEFINE_TYPE properly

 gtk/gtkswitch.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 62cffcd..2f0b42e 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]