qulogic/libgnt

Binding fixes.
v2.5.3 v2.5.3a
2008-12-03, Sadrul Habib Chowdhury
1e1b88dfcbfb
Binding fixes.
  • +3 -3
    gntentry.c
  • --- a/gntentry.c Fri Nov 28 06:29:37 2008 +0000
    +++ b/gntentry.c Wed Dec 03 17:17:19 2008 +0000
    @@ -856,7 +856,7 @@
    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_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_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,