changeset 27045:fd78c7022f81

Remove a now-unnecessary binding for the buddylist. Using ctrl+o in the buddylist will default to opening the menus again. If someone wanted the current behaviour of toggling the show-offline buddies setting, then the following should be used in .gntrc: [buddylist::menu] c-o = show-offline-buddies Also, when pressing Insert in the buddylist, prepopulate the group name when possible.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 26 May 2009 16:12:53 +0000
parents d9f2a7f18759
children dc7ee92810a5
files finch/gntblist.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntblist.c	Mon May 25 20:13:01 2009 +0000
+++ b/finch/gntblist.c	Tue May 26 16:12:53 2009 +0000
@@ -1921,11 +1921,11 @@
 		if (gnt_tree_is_searching(GNT_TREE(ggblist->tree)))
 			gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "end-search", NULL);
 		remove_peripherals(ggblist);
-	} else if (strcmp(text, GNT_KEY_CTRL_O) == 0) {
-		purple_prefs_set_bool(PREF_ROOT "/showoffline",
-				!purple_prefs_get_bool(PREF_ROOT "/showoffline"));
 	} else if (strcmp(text, GNT_KEY_INS) == 0) {
-		purple_blist_request_add_buddy(NULL, NULL, NULL, NULL);
+		PurpleBlistNode *node = gnt_tree_get_selection_data(GNT_TREE(ggblist->tree));
+		purple_blist_request_add_buddy(NULL, NULL,
+				node && PURPLE_BLIST_NODE_IS_GROUP(node) ? purple_group_get_name(PURPLE_GROUP(node)) : NULL,
+				NULL);
 	} else if (!gnt_tree_is_searching(GNT_TREE(ggblist->tree))) {
 		if (strcmp(text, "t") == 0) {
 			finch_blist_toggle_tag_buddy(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree)));