Toolkit events are now correctly registered for and dispatched
[platform/core/uifw/at-spi2-atk.git] / libspi / desktop.c
index a67ca65..55b9b63 100644 (file)
@@ -53,7 +53,7 @@ static AccessibleClass *parent_class;
 static void
 desktop_init (Desktop  *desktop)
 {
-  ACCESSIBLE (desktop)->atko = atk_simple_object_new();
+  ACCESSIBLE (desktop)->atko = g_object_new (atk_object_get_type(), NULL);
   atk_object_set_name (ATK_OBJECT (ACCESSIBLE (desktop)->atko), "main");
 }
 
@@ -127,12 +127,12 @@ desktop_get_type (void)
                         NULL /* value table */
                 };
                 /*
-                 *   Here we use bonobo_x_type_unique instead of
+                 *   Here we use bonobo_type_unique instead of
                  * gtk_type_unique, this auto-generates a load of
                  * CORBA structures for us. All derived types must
-                 * use bonobo_x_type_unique.
+                 * use bonobo_type_unique.
                  */
-                type = bonobo_x_type_unique (
+                type = bonobo_type_unique (
                         PARENT_TYPE,
                         POA_Accessibility_Desktop__init,
                         NULL,