pidgin: 6df484b5: Allow page-up/downing in the suggestion ..

sadrul at pidgin.im sadrul at pidgin.im
Wed Jun 9 13:05:55 EDT 2010


-----------------------------------------------------------------
Revision: 6df484b58e54743f46465726f124c339a884768f
Ancestor: 66c343e57ba5828a78d88d159a594e3c4131e50e
Author: sadrul at pidgin.im
Date: 2010-06-09T16:58:41
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6df484b58e54743f46465726f124c339a884768f

Modified files:
        ChangeLog doc/finch.1.in finch/libgnt/gntentry.c

ChangeLog: 

Allow page-up/downing in the suggestion list.

Fixes #11813.

-------------- next part --------------
============================================================
--- ChangeLog	04aa577f39f4759a7677e6ecc0db9547d5c2d5a3
+++ ChangeLog	f0e44b1c8cd6f46840382f64152e6e32acd06d4b
@@ -1,6 +1,9 @@ version 2.7.2 (??/??/????):
 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:
============================================================
--- doc/finch.1.in	916937ed475157200611774d4a04afcd84d666af
+++ doc/finch.1.in	8f2c8c40b918e1237aa63b21eed903882c8e5f16
@@ -339,6 +339,10 @@ up = suggest-prev
 .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
============================================================
--- finch/libgnt/gntentry.c	957093af6c1454c2bf4e1eb4d292c1ccdbf5e22c
+++ finch/libgnt/gntentry.c	bcbefbbcf1d1b9f96b54dd0991043c00101085e2
@@ -579,6 +579,28 @@ static gboolean
 }
 
 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 *klas
 				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,


More information about the Commits mailing list