#include <bonobo/bonobo-object.h>
#include <atk/atkobject.h>
#include <libspi/Accessibility.h>
+#include "keymasks.h"
#define KEYSTROKE_LISTENER_TYPE (keystroke_listener_get_type ())
#define KEYSTROKE_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), KEYSTROKE_LISTENER_TYPE, KeystrokeListener))
#define KEYSTROKE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), KEYSTROKE_LISTENER_TYPE, KeystrokeListenerClass))
-#define IS_KEYSTROKE_LISTENER(o) (G_TYPE_CHECK__INSTANCE_TYPE ((o), KEYSTROKE_LISTENER_TYPE))
+#define IS_KEYSTROKE_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), KEYSTROKE_LISTENER_TYPE))
#define IS_KEYSTROKE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), KEYSTROKE_LISTENER_TYPE))
+typedef gboolean (*BooleanKeystrokeListenerCB) (void *keystroke_ptr);
+
typedef struct {
BonoboObject parent;
+ GList *callbacks;
} KeystrokeListener;
typedef struct {
GType keystroke_listener_get_type (void);
KeystrokeListener *keystroke_listener_new (void);
+void keystroke_listener_add_callback (KeystrokeListener *listener,
+ BooleanKeystrokeListenerCB callback);
+void keystroke_listener_remove_callback (KeystrokeListener *listener,
+ BooleanKeystrokeListenerCB callback);
+
#ifdef __cplusplus
}