# HG changeset patch # User Sadrul Habib Chowdhury # Date 1276102721 0 # Node ID aaec35719201ac38b09d8ccdc9a8360893860808 # Parent bed884491864057f35e387045667c708e4d7312b Allow page-up/downing in the suggestion list. Fixes #11813. diff -r bed884491864 -r aaec35719201 ChangeLog --- a/ChangeLog Sun Jun 06 02:17:36 2010 +0000 +++ b/ChangeLog Wed Jun 09 16:58:41 2010 +0000 @@ -1,6 +1,9 @@ Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul version 2.7.2 (??/??/????): + 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: diff -r bed884491864 -r aaec35719201 doc/finch.1.in --- a/doc/finch.1.in Sun Jun 06 02:17:36 2010 +0000 +++ b/doc/finch.1.in Wed Jun 09 16:58:41 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 diff -r bed884491864 -r aaec35719201 finch/libgnt/gntentry.c --- a/finch/libgnt/gntentry.c Sun Jun 06 02:17:36 2010 +0000 +++ b/finch/libgnt/gntentry.c Wed Jun 09 16:58:41 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,