2.34.0
[platform/upstream/at-spi2-core.git] / atspi / atspi-device-listener.c
index 3ed34e5..8e04c41 100644 (file)
@@ -7,19 +7,19 @@
  * Copyright 2010, 2011 Novell, Inc.
  *
  * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU Library General Public
+ * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
  */
 
 #include "atspi-private.h"
@@ -230,7 +230,7 @@ atspi_device_listener_new (AtspiDeviceListenerCB callback,
 }
 
 /**
- * atspi_device_listener_new_simple:
+ * atspi_device_listener_new_simple: (skip)
  * @callback: (scope notified): an #AtspiDeviceListenerCB callback function,
  *            or NULL.
  * @callback_destroyed: A #GDestroyNotify called when the listener is freed
@@ -261,8 +261,6 @@ atspi_device_listener_new_simple (AtspiDeviceListenerSimpleCB callback,
  *
  * Adds an in-process callback function to an existing #AtspiDeviceListener.
  *
- * Returns: #TRUE if successful, otherwise #FALSE.
- *
  **/
 void
 atspi_device_listener_add_callback (AtspiDeviceListener  *listener,
@@ -287,8 +285,6 @@ atspi_device_listener_add_callback (AtspiDeviceListener  *listener,
  * Removes an in-process callback function from an existing 
  * #AtspiDeviceListener.
  *
- * Returns: #TRUE if successful, otherwise #FALSE.
- *
  **/
 void
 atspi_device_listener_remove_callback (AtspiDeviceListener  *listener,
@@ -355,13 +351,13 @@ _atspi_dbus_handle_DeviceEvent (DBusConnection *bus, DBusMessage *message, void
 
   if (strcmp (dbus_message_get_signature (message), "(uiuuisb)") != 0)
   {
-    g_warning ("Atspi: Unknown signature for an event");
+    g_warning ("AT-SPI: Unknown signature for an event");
     goto done;
   }
 
   if (sscanf (path, "/org/a11y/atspi/listeners/%d", &id) != 1)
   {
-    g_warning ("Atspi: Bad listener path: %s\n", path);
+    g_warning ("AT-SPI: Bad listener path: %s\n", path);
     goto done;
   }
 
@@ -383,7 +379,7 @@ _atspi_dbus_handle_DeviceEvent (DBusConnection *bus, DBusMessage *message, void
     retval = (*klass->device_event) (listener, &event);
     if (retval != 0 && retval != 1)
     {
-      g_warning ("at-spi: device event handler returned %d; should be 0 or 1", retval);
+      g_warning ("AT-SPI: device event handler returned %d; should be 0 or 1", retval);
       retval = 0;
     }
   }