mirror of
https://github.com/brl/mutter.git
synced 2024-12-03 05:10:40 -05:00
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:
parent
b1c366a143
commit
eae98800d2
File diff suppressed because it is too large
Load Diff
@ -167,26 +167,6 @@ void clutter_text_set_max_length (ClutterText *self
|
|||||||
gint max);
|
gint max);
|
||||||
gint clutter_text_get_max_length (ClutterText *self);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __CLUTTER_TEXT_H__ */
|
#endif /* __CLUTTER_TEXT_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user