mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
Remove unused page up/down key bindings
Moving the text by a "page" depends on being able to define a "page size" in terms of lines of text. Since we don't define something similar to an Adjustment that allows us to handle this behaviour, we should defer the paging implementation to a higher level class based on ClutterText.
This commit is contained in:
parent
dc49dab350
commit
ffb500d3a6
@ -1449,24 +1449,6 @@ clutter_text_real_activate (ClutterText *self,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
clutter_text_real_page_up (ClutterText *self,
|
|
||||||
const gchar *action,
|
|
||||||
guint keyval,
|
|
||||||
ClutterModifierType modifiers)
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static gboolean
|
|
||||||
clutter_text_real_page_down (ClutterText *self,
|
|
||||||
const gchar *action,
|
|
||||||
guint keyval,
|
|
||||||
ClutterModifierType modifiers)
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clutter_text_add_move_binding (ClutterBindingPool *pool,
|
clutter_text_add_move_binding (ClutterBindingPool *pool,
|
||||||
const gchar *action,
|
const gchar *action,
|
||||||
@ -1851,23 +1833,6 @@ clutter_text_class_init (ClutterTextClass *klass)
|
|||||||
G_CALLBACK (clutter_text_real_line_end),
|
G_CALLBACK (clutter_text_real_line_end),
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
clutter_binding_pool_install_action (binding_pool, "page-up",
|
|
||||||
CLUTTER_Page_Up, 0,
|
|
||||||
G_CALLBACK (clutter_text_real_page_up),
|
|
||||||
NULL, NULL);
|
|
||||||
clutter_binding_pool_install_action (binding_pool, "page-up",
|
|
||||||
CLUTTER_KP_Page_Up, 0,
|
|
||||||
G_CALLBACK (clutter_text_real_page_up),
|
|
||||||
NULL, NULL);
|
|
||||||
clutter_binding_pool_install_action (binding_pool, "page-down",
|
|
||||||
CLUTTER_Page_Down, 0,
|
|
||||||
G_CALLBACK (clutter_text_real_page_down),
|
|
||||||
NULL, NULL);
|
|
||||||
clutter_binding_pool_install_action (binding_pool, "page-up",
|
|
||||||
CLUTTER_KP_Page_Down, 0,
|
|
||||||
G_CALLBACK (clutter_text_real_page_down),
|
|
||||||
NULL, NULL);
|
|
||||||
|
|
||||||
clutter_binding_pool_install_action (binding_pool, "delete-next",
|
clutter_binding_pool_install_action (binding_pool, "delete-next",
|
||||||
CLUTTER_Delete, 0,
|
CLUTTER_Delete, 0,
|
||||||
G_CALLBACK (clutter_text_real_del_next),
|
G_CALLBACK (clutter_text_real_del_next),
|
||||||
|
Loading…
Reference in New Issue
Block a user