comparison console/libgnt/test/tv.c @ 14793:8a0cfee11af8

[gaim-migrate @ 17558] Introduce actions. You can specify the bindings for the actions. Right now, only the tree and the entry widget have them. The manual includes the details. I believe Ethan had suggested something like this a while back. It made sense, so here it is. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 21 Oct 2006 21:08:24 +0000
parents 70f52ff1caec
children 065e7ac30338
comparison
equal deleted inserted replaced
14792:242f948ee707 14793:8a0cfee11af8
11 { 11 {
12 if (key[0] == '\r' && key[1] == 0) 12 if (key[0] == '\r' && key[1] == 0)
13 { 13 {
14 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), 14 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view),
15 gnt_entry_get_text(GNT_ENTRY(w)), 15 gnt_entry_get_text(GNT_ENTRY(w)),
16 GNT_TEXT_FLAG_HIGHLIGHT); 16 GNT_TEXT_FLAG_UNDERLINE | GNT_TEXT_FLAG_HIGHLIGHT);
17 gnt_entry_add_to_history(GNT_ENTRY(w), gnt_entry_get_text(GNT_ENTRY(w))); 17 gnt_entry_add_to_history(GNT_ENTRY(w), gnt_entry_get_text(GNT_ENTRY(w)));
18 gnt_text_view_next_line(GNT_TEXT_VIEW(view)); 18 gnt_text_view_next_line(GNT_TEXT_VIEW(view));
19 gnt_entry_clear(GNT_ENTRY(w)); 19 gnt_entry_clear(GNT_ENTRY(w));
20 if (gnt_text_view_get_lines_below(GNT_TEXT_VIEW(view)) <= 1) 20 if (gnt_text_view_get_lines_below(GNT_TEXT_VIEW(view)) <= 1)
21 gnt_text_view_scroll(GNT_TEXT_VIEW(view), 0); 21 gnt_text_view_scroll(GNT_TEXT_VIEW(view), 0);