Mercurial > pidgin
changeset 14901:d9d28bd79715
[gaim-migrate @ 17673]
erasechar() returns the erase character (VERASE) from termios. This may solve
the backspace problem for Sebastian Noack.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 05 Nov 2006 17:37:09 +0000 |
parents | 065e7ac30338 |
children | d71a0d29ff7e |
files | console/libgnt/gntentry.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/console/libgnt/gntentry.c Sun Nov 05 17:28:33 2006 +0000 +++ b/console/libgnt/gntentry.c Sun Nov 05 17:37:09 2006 +0000 @@ -536,6 +536,8 @@ gnt_entry_class_init(GntEntryClass *klass) { GntBindableClass *bindable = GNT_BINDABLE_CLASS(klass); + char s[2] = {erasechar(), 0}; + parent_class = GNT_WIDGET_CLASS(klass); parent_class->destroy = gnt_entry_destroy; parent_class->draw = gnt_entry_draw; @@ -552,6 +554,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_class_register_action(bindable, "delete-next", delkey, GNT_KEY_DEL, NULL); gnt_bindable_register_binding(bindable, "delete-next", GNT_KEY_CTRL_D, NULL);