comparison console/gntblist.c @ 15160:c6b79e535eb8

[gaim-migrate @ 17946] Experimental search-as-you-type in GntTree. Press "/" to enter the search-mode, and when you're done, press escape to cancel. The search-mode remains active for 4 seconds before returning to normal. Someone should update the manual, and possibly enhance the behaviour. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 10 Dec 2006 11:26:17 +0000
parents d308c7c6f669
children 1bcf37440a05
comparison
equal deleted inserted replaced
15159:9ca8095b6243 15160:c6b79e535eb8
1360 /* Escape was pressed */ 1360 /* Escape was pressed */
1361 remove_peripherals(ggblist); 1361 remove_peripherals(ggblist);
1362 } else if (strcmp(text, GNT_KEY_CTRL_O) == 0) { 1362 } else if (strcmp(text, GNT_KEY_CTRL_O) == 0) {
1363 gaim_prefs_set_bool(PREF_ROOT "/showoffline", 1363 gaim_prefs_set_bool(PREF_ROOT "/showoffline",
1364 !gaim_prefs_get_bool(PREF_ROOT "/showoffline")); 1364 !gaim_prefs_get_bool(PREF_ROOT "/showoffline"));
1365 } else if (strcmp(text, "t") == 0) { 1365 } else if (GNT_TREE(ggblist->tree)->search == NULL) {
1366 gg_blist_toggle_tag_buddy(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree))); 1366 if (strcmp(text, "t") == 0) {
1367 gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "move-down"); 1367 gg_blist_toggle_tag_buddy(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree)));
1368 } else if (strcmp(text, "a") == 0) { 1368 gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "move-down");
1369 gg_blist_place_tagged(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree))); 1369 } else if (strcmp(text, "a") == 0) {
1370 gg_blist_place_tagged(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree)));
1371 }
1370 } else 1372 } else
1371 return FALSE; 1373 return FALSE;
1372 1374
1373 return TRUE; 1375 return TRUE;
1374 } 1376 }