[g-a-devel] SPI_registerGlobalEventListener() issues



The docs for SPI_registerGlobalEventListener (http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-queries.html#SPI-registerGlobalEventListener) says:
 
eventType : a character string indicating the type of events for which notification is requested. Format is EventClass:major_type:minor_type:detail where all subfields other than EventClass are optional. EventClasses include "object", "window", "mouse", and toolkit events (e.g. "Gtk", "AWT"). Examples: "focus:", "Gtk:GtkWidget:button_press_event".
 
When I use "window" as the eventType I get this error message on stderr and no window events are reported:
 
           (sbq:22254): GLib-GObject-CRITICAL **: g_signal_lookup: assertion `name != NULL' failed
           ** (sbq:22254): WARNING **: Invalid signal type (null)
When I use "window:" as the eventType, I do not get the error message, but no window events are reported.
 
When I use "Gtk" or "Gtk:" as the eventType, I get very similiar error messages to stderr for both values:
 
          (sbq:22840): GLib-GObject-CRITICAL **: g_type_from_name: assertion `name != NULL' failed
          ** (sbq:22840): WARNING **: Invalid object type (null)
When I use the complete string for a specific window event, e.g., "window:create", I do not get any error messages to stderr.  However, I have been unable to get two of the specific five events I've tried to be delivered - neither to my application nor to Accerciser:
 
window:close   -- cannot get event to be delivered
window:move   -- cannot get event to be delivered
 
window:create
window:activate
window:deactivate
 
Are these documentation bugs or implementation bugs?   Or am I doing something wrong?
 
-Sam


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