Mercurial > pidgin
changeset 30172:48f41640adee
merge of '6df484b58e54743f46465726f124c339a884768f'
and 'a5baf7ca8907c15748c0a707d36aa836518b73ae'
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 09 Jun 2010 17:36:49 +0000 |
parents | aaec35719201 (diff) 96d3f44d006d (current diff) |
children | 2a51b2c643d2 |
files | ChangeLog |
diffstat | 3 files changed, 34 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Jun 07 20:05:15 2010 +0000 +++ b/ChangeLog Wed Jun 09 17:36:49 2010 +0000 @@ -4,6 +4,10 @@ Pidgin: * Re-focus the input area after clicking the attention toolbar button. + Finch: + * Rebindable suggest-next-page and suggest-prev-page actions for + textboxes (GntEntry) to scroll through list of suggestions. + version 2.7.1 (05/29/2010): General: * Build fixes on OpenSolaris. (Brian Lu)
--- a/doc/finch.1.in Mon Jun 07 20:05:15 2010 +0000 +++ b/doc/finch.1.in Wed Jun 09 17:36:49 2010 +0000 @@ -339,6 +339,10 @@ .br up = suggest-prev .br +page-down = suggest-next-page +.br +page-up = suggest-prev-page +.br c-w = delete-prev-word .br a-b = cursor-prev-word
--- a/finch/libgnt/gntentry.c Mon Jun 07 20:05:15 2010 +0000 +++ b/finch/libgnt/gntentry.c Wed Jun 09 17:36:49 2010 +0000 @@ -579,6 +579,28 @@ } static gboolean +suggest_next_page(GntBindable *bind, GList *null) +{ + GntEntry *entry = GNT_ENTRY(bind); + if (entry->ddown) { + gnt_bindable_perform_action_named(GNT_BINDABLE(entry->ddown), "page-down", NULL); + return TRUE; + } + return FALSE; +} + +static gboolean +suggest_prev_page(GntBindable *bind, GList *null) +{ + GntEntry *entry = GNT_ENTRY(bind); + if (entry->ddown) { + gnt_bindable_perform_action_named(GNT_BINDABLE(entry->ddown), "page-up", NULL); + return TRUE; + } + return FALSE; +} + +static gboolean del_to_home(GntBindable *bind, GList *null) { GntEntry *entry = GNT_ENTRY(bind); @@ -986,6 +1008,10 @@ GNT_KEY_DOWN, NULL); gnt_bindable_class_register_action(bindable, "suggest-prev", suggest_prev, GNT_KEY_UP, NULL); + gnt_bindable_class_register_action(bindable, "suggest-next-page", suggest_next_page, + GNT_KEY_PGDOWN, NULL); + gnt_bindable_class_register_action(bindable, "suggest-prev-page", suggest_prev_page, + GNT_KEY_PGUP, NULL); gnt_bindable_class_register_action(bindable, "history-next", history_next, GNT_KEY_CTRL_DOWN, NULL); gnt_bindable_class_register_action(bindable, "history-prev", history_prev,