[Window] Unbind global keybinding during dispose
[tilda-gobject.git] / tomboykeybinder.h
1
2 #ifndef __TOMBOY_KEY_BINDER_H__
3 #define __TOMBOY_KEY_BINDER_H__
4
5 #include <glib/gtypes.h>
6
7 G_BEGIN_DECLS
8
9 typedef void (* TomboyBindkeyHandler) (char *keystring, gpointer user_data);
10
11 void tomboy_keybinder_init   (void);
12
13 gboolean tomboy_keybinder_bind (const char           *keystring,
14                                 TomboyBindkeyHandler  handler,
15                                 gpointer              user_data);
16
17 void tomboy_keybinder_unbind   (const char           *keystring,
18                                 TomboyBindkeyHandler  handler);
19
20 gboolean tomboy_keybinder_is_modifier (guint keycode);
21
22 guint32 tomboy_keybinder_get_current_event_time (void);
23
24 G_END_DECLS
25
26 #endif /* __TOMBOY_KEY_BINDER_H__ */
27