pidgin: 91af0bfb: The names history-next and history-prev ...

sadrul at pidgin.im sadrul at pidgin.im
Fri Mar 7 11:51:10 EST 2008


-----------------------------------------------------------------
Revision: 91af0bfbaeb9c7439d242dc7783d2c5e10cf7572
Ancestor: 258d2052d62513fdcb210736e51ad27be49f17a6
Author: sadrul at pidgin.im
Date: 2008-03-07T16:51:36
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/91af0bfbaeb9c7439d242dc7783d2c5e10cf7572

Modified files:
        finch/libgnt/gntentry.c

ChangeLog: 

The names history-next and history-prev were backwards! Make them right, and add c-n/c-p bindings as the default bindings. Thanks to shofixti for reporting the bug. Fixes #4593.

-------------- next part --------------
============================================================
--- finch/libgnt/gntentry.c	b5dcf9cdc13bf2d088fda32c12a71bdfaadcecc5
+++ finch/libgnt/gntentry.c	a901e8641ef817179da7ab85f0058e2f73930f0b
@@ -419,7 +419,7 @@ static gboolean
 }
 
 static gboolean
-history_prev(GntBindable *bind, GList *null)
+history_next(GntBindable *bind, GList *null)
 {
 	GntEntry *entry = GNT_ENTRY(bind);
 	if (entry->histlength && entry->history->prev)
@@ -436,7 +436,7 @@ static gboolean
 }
 
 static gboolean
-history_next(GntBindable *bind, GList *null)
+history_prev(GntBindable *bind, GList *null)
 {
 	GntEntry *entry = GNT_ENTRY(bind);
 	if (entry->histlength && entry->history->next)
@@ -904,10 +904,12 @@ 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, "history-prev", history_prev,
+	gnt_bindable_class_register_action(bindable, "history-next", history_next,
 				GNT_KEY_CTRL_DOWN, NULL);
-	gnt_bindable_class_register_action(bindable, "history-next", history_next,
+	gnt_bindable_class_register_action(bindable, "history-prev", history_prev,
 				GNT_KEY_CTRL_UP, NULL);
+	gnt_bindable_register_binding(bindable, "history-prev", GNT_KEY_CTRL_P, NULL);
+	gnt_bindable_register_binding(bindable, "history-next", GNT_KEY_CTRL_N, NULL);
 	gnt_bindable_class_register_action(bindable, "clipboard-paste", clipboard_paste,
 				GNT_KEY_CTRL_V, NULL);
 


More information about the Commits mailing list