comparison finch/gntblist.c @ 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 83e6e710cbf3
children 01f1929d0936
comparison
equal deleted inserted replaced
27032:d9f2a7f18759 27045:fd78c7022f81
1919 if (text[0] == 27 && text[1] == 0) { 1919 if (text[0] == 27 && text[1] == 0) {
1920 /* Escape was pressed */ 1920 /* Escape was pressed */
1921 if (gnt_tree_is_searching(GNT_TREE(ggblist->tree))) 1921 if (gnt_tree_is_searching(GNT_TREE(ggblist->tree)))
1922 gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "end-search", NULL); 1922 gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "end-search", NULL);
1923 remove_peripherals(ggblist); 1923 remove_peripherals(ggblist);
1924 } else if (strcmp(text, GNT_KEY_CTRL_O) == 0) {
1925 purple_prefs_set_bool(PREF_ROOT "/showoffline",
1926 !purple_prefs_get_bool(PREF_ROOT "/showoffline"));
1927 } else if (strcmp(text, GNT_KEY_INS) == 0) { 1924 } else if (strcmp(text, GNT_KEY_INS) == 0) {
1928 purple_blist_request_add_buddy(NULL, NULL, NULL, NULL); 1925 PurpleBlistNode *node = gnt_tree_get_selection_data(GNT_TREE(ggblist->tree));
1926 purple_blist_request_add_buddy(NULL, NULL,
1927 node && PURPLE_BLIST_NODE_IS_GROUP(node) ? purple_group_get_name(PURPLE_GROUP(node)) : NULL,
1928 NULL);
1929 } else if (!gnt_tree_is_searching(GNT_TREE(ggblist->tree))) { 1929 } else if (!gnt_tree_is_searching(GNT_TREE(ggblist->tree))) {
1930 if (strcmp(text, "t") == 0) { 1930 if (strcmp(text, "t") == 0) {
1931 finch_blist_toggle_tag_buddy(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree))); 1931 finch_blist_toggle_tag_buddy(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree)));
1932 gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "move-down"); 1932 gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "move-down");
1933 } else if (strcmp(text, "a") == 0) { 1933 } else if (strcmp(text, "a") == 0) {