changeset 27046:dc7ee92810a5

merge of '4cd185213b3eb4f0bc9ce8cd9c38ab00772f9a17' and '8b4a85b321d7cb880862657b623f7ffed5c58836'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 29 May 2009 01:27:45 +0000
parents fd78c7022f81 (diff) e4270698da39 (current diff)
children e22fa2cc6c46
files
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntblist.c	Thu May 28 01:03:42 2009 +0000
+++ b/finch/gntblist.c	Fri May 29 01:27:45 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)));