diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | doc/finch.1.in | 4 | ||||
-rw-r--r-- | finch/libgnt/gntentry.c | 26 | ||||
-rw-r--r-- | pidgin/gtkblist.c | 2 |
4 files changed, 35 insertions, 1 deletions
@@ -7,6 +7,10 @@ version 2.7.2 (??/??/????): 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) diff --git a/doc/finch.1.in b/doc/finch.1.in index c08ef82038..87501371c2 100644 --- a/doc/finch.1.in +++ b/doc/finch.1.in @@ -339,6 +339,10 @@ down = suggest-next .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 --git a/finch/libgnt/gntentry.c b/finch/libgnt/gntentry.c index 97fb32cff9..d952a1c966 100644 --- a/finch/libgnt/gntentry.c +++ b/finch/libgnt/gntentry.c @@ -579,6 +579,28 @@ suggest_prev(GntBindable *bind, GList *null) } 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_entry_class_init(GntEntryClass *klass) 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, diff --git a/pidgin/gtkblist.c b/pidgin/gtkblist.c index 34b128a6bf..7ef869a73f 100644 --- a/pidgin/gtkblist.c +++ b/pidgin/gtkblist.c @@ -4590,7 +4590,7 @@ sign_on_off_cb(PurpleConnection *gc, PurpleBuddyList *blist) } static void -plugin_changed_cb(PurplePlugin *p, gpointer *data) +plugin_changed_cb(PurplePlugin *p, gpointer data) { pidgin_blist_update_plugin_actions(); } |