diff console/libgnt/gnttree.c @ 14876:70623f0d5cdc

[gaim-migrate @ 17645] Use terminfo/termcap information (from ncurses) as much as possible. There still need to be some manual 'refinement' based on $TERM. I'll see if I can get rid of those. Also, I am probably going to allow users to provide information that terminfo can't provide, like the keycode for ctrl+up etc. Let me know if any of the keybinding doesn't work. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 01 Nov 2006 03:38:23 +0000
parents 0387e8b1b8c2
children 065e7ac30338
line wrap: on
line diff
--- a/console/libgnt/gnttree.c	Wed Nov 01 02:13:37 2006 +0000
+++ b/console/libgnt/gnttree.c	Wed Nov 01 03:38:23 2006 +0000
@@ -709,15 +709,15 @@
 				g_str_equal, g_free, (GDestroyNotify)gnt_widget_action_param_free);
 
 	gnt_widget_class_register_action(parent_class, "move-up", action_up,
-				"\033" GNT_KEY_UP, NULL);
+				GNT_KEY_UP, NULL);
 	gnt_widget_register_binding(parent_class, "move-up", GNT_KEY_CTRL_P, NULL);
 	gnt_widget_class_register_action(parent_class, "move-down", action_down,
-				"\033" GNT_KEY_DOWN, NULL);
+				GNT_KEY_DOWN, NULL);
 	gnt_widget_register_binding(parent_class, "move-down", GNT_KEY_CTRL_N, NULL);
 	gnt_widget_class_register_action(parent_class, "page-up", action_page_up,
-				"\033" GNT_KEY_PGUP, NULL);
+				GNT_KEY_PGUP, NULL);
 	gnt_widget_class_register_action(parent_class, "page-down", action_page_down,
-				"\033" GNT_KEY_PGDOWN, NULL);
+				GNT_KEY_PGDOWN, NULL);
 
 	gnt_style_read_actions(G_OBJECT_CLASS_TYPE(klass), parent_class);