Use ClutterBindPool inside ClutterText

ClutterText should use the newly added ClutterBindingPool API to
handle key events, instead of its homegrown code.

This commit removes the action/mapping code and defers the entire
key binding matching to a ClutterBindingPool created inside the
Text class initialization function.
This commit is contained in:
Emmanuele Bassi 2008-12-11 12:03:17 +00:00
parent b1c366a143
commit eae98800d2
2 changed files with 443 additions and 548 deletions

File diff suppressed because it is too large Load Diff

View File

@ -167,26 +167,6 @@ void clutter_text_set_max_length (ClutterText *self
gint max);
gint clutter_text_get_max_length (ClutterText *self);
/* add a custom action that can be used in keybindings */
void clutter_text_add_action (ClutterText *ttext,
const gchar *name,
gboolean (*func) (ClutterText *ttext,
const gchar *commandline,
ClutterEvent *event));
/* invoke an action registered by you or one of the tidy text default actions */
gboolean clutter_text_action (ClutterText *ttext,
const gchar *commandline,
ClutterEvent *event);
void clutter_text_mappings_clear (ClutterText *ttext);
/* Add a keybinding to handle for the default keypress vfunc handler */
void clutter_text_add_mapping (ClutterText *ttext,
guint keyval,
ClutterModifierType state,
const gchar *commandline);
G_END_DECLS
#endif /* __CLUTTER_TEXT_H__ */