a11y: Using proper way to register to window events
This commit is contained in:
parent
7635cb6f17
commit
663bfd0e85
@ -31,6 +31,7 @@
|
||||
*/
|
||||
#include <atk/atk.h>
|
||||
#include <clutter/clutter.h>
|
||||
#include <cally/cally.h>
|
||||
|
||||
#include "cally-examples-util.h"
|
||||
|
||||
@ -163,10 +164,10 @@ main (int argc, char *argv[])
|
||||
atk_remove_key_event_listener (id_2);
|
||||
|
||||
/* event listeners */
|
||||
atk_add_global_event_listener (window_event_listener, "window:create");
|
||||
atk_add_global_event_listener (window_event_listener, "window:destroy");
|
||||
atk_add_global_event_listener (window_event_listener, "window:activate");
|
||||
atk_add_global_event_listener (window_event_listener, "window:deactivate");
|
||||
atk_add_global_event_listener (window_event_listener, "Atk:AtkWindow:create");
|
||||
atk_add_global_event_listener (window_event_listener, "Atk:AtkWindow:destroy");
|
||||
atk_add_global_event_listener (window_event_listener, "Atk:AtkWindow:activate");
|
||||
atk_add_global_event_listener (window_event_listener, "Atk:AtkWindow:deactivate");
|
||||
|
||||
stage = clutter_stage_get_default ();
|
||||
make_ui (stage);
|
||||
|
Loading…
Reference in New Issue
Block a user