qulogic/libgnt

Allow page-up/downing in the suggestion list.

2010-06-09, Sadrul Habib Chowdhury
c0456b8f02ab
Parents 1842d086cbc0
Children c45240b9a67a
Allow page-up/downing in the suggestion list.

Fixes #11813.
  • +26 -0
    gntentry.c
  • --- a/gntentry.c Fri Apr 02 21:01:42 2010 +0000
    +++ b/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,