From ffb500d3a617ef3f0cfab4912c4ed4ca8c71599a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 16 Dec 2008 10:19:56 +0000 Subject: [PATCH] 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. --- clutter/clutter-text.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index 4aab2eb95..b5e91a427 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -1449,24 +1449,6 @@ clutter_text_real_activate (ClutterText *self, 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 clutter_text_add_move_binding (ClutterBindingPool *pool, const gchar *action, @@ -1851,23 +1833,6 @@ clutter_text_class_init (ClutterTextClass *klass) G_CALLBACK (clutter_text_real_line_end), 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_Delete, 0, G_CALLBACK (clutter_text_real_del_next),