pidgin: 9d32c3ba: Binding fixes.

sadrul at pidgin.im sadrul at pidgin.im
Wed Dec 3 12:15:49 EST 2008


-----------------------------------------------------------------
Revision: 9d32c3ba0bcbd14a36a0dbe2f41922084ed04c3e
Ancestor: 869b348da091601342a9431ddfbf91e9dc2b652f
Author: sadrul at pidgin.im
Date: 2008-12-03T17:17:19
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9d32c3ba0bcbd14a36a0dbe2f41922084ed04c3e

Modified files:
        finch/libgnt/gntentry.c

ChangeLog: 

Binding fixes.

-------------- next part --------------
============================================================
--- finch/libgnt/gntentry.c	5e7c857db09443af00f74b4a7197ecd3c671b9a5
+++ finch/libgnt/gntentry.c	9d78ca2490339ca80842826ed16a89c8a0411457
@@ -856,7 +856,7 @@ gnt_entry_class_init(GntEntryClass *klas
 gnt_entry_class_init(GntEntryClass *klass)
 {
 	GntBindableClass *bindable = GNT_BINDABLE_CLASS(klass);
-	char s[2] = {erasechar(), 0};
+	char s[3] = {'\033', erasechar(), 0};
 
 	parent_class = GNT_WIDGET_CLASS(klass);
 	parent_class->clicked = gnt_entry_clicked;
@@ -892,7 +892,7 @@ gnt_entry_class_init(GntEntryClass *klas
 	gnt_bindable_register_binding(bindable, "cursor-end", GNT_KEY_END, NULL);
 	gnt_bindable_class_register_action(bindable, "delete-prev", backspace,
 				GNT_KEY_BACKSPACE, NULL);
-	gnt_bindable_register_binding(bindable, "delete-prev", s, NULL);
+	gnt_bindable_register_binding(bindable, "delete-prev", s + 1, NULL);
 	gnt_bindable_register_binding(bindable, "delete-prev", GNT_KEY_CTRL_H, NULL);
 	gnt_bindable_class_register_action(bindable, "delete-next", delkey,
 				GNT_KEY_DEL, NULL);
@@ -903,7 +903,7 @@ gnt_entry_class_init(GntEntryClass *klas
 				GNT_KEY_CTRL_K, NULL);
 	gnt_bindable_class_register_action(bindable, "delete-prev-word", del_prev_word,
 				GNT_KEY_CTRL_W, NULL);
-	gnt_bindable_register_binding(bindable, "delete-prev-word", "\033", s, NULL);
+	gnt_bindable_register_binding(bindable, "delete-prev-word", s, NULL);
 	gnt_bindable_class_register_action(bindable, "cursor-prev-word", move_back_word,
 				"\033" "b", NULL);
 	gnt_bindable_class_register_action(bindable, "cursor-prev", move_back,


More information about the Commits mailing list