# HG changeset patch # User Sadrul Habib Chowdhury # Date 1243354373 0 # Node ID fd78c7022f81a9f471a968de75519976bfcc4075 # Parent d9f2a7f1875913ab9c31bd183d6474d1dcbd83f6 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. diff -r d9f2a7f18759 -r fd78c7022f81 finch/gntblist.c --- 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)));