pidgin: 4cd18521: Remove a now-unnecessary binding for the...
sadrul at pidgin.im
sadrul at pidgin.im
Thu May 28 21:20:34 EDT 2009
-----------------------------------------------------------------
Revision: 4cd185213b3eb4f0bc9ce8cd9c38ab00772f9a17
Ancestor: 1ecd9e6b8e4cd9ddac69d4c40d68d82020932626
Author: sadrul at pidgin.im
Date: 2009-05-26T16:12:53
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4cd185213b3eb4f0bc9ce8cd9c38ab00772f9a17
Modified files:
finch/gntblist.c
ChangeLog:
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.
-------------- next part --------------
============================================================
--- finch/gntblist.c 603aaf81c42454c96d5feebd74102c082ff49a11
+++ finch/gntblist.c d7891e6e97a491a82f1e3baee278be83774087b0
@@ -1921,11 +1921,11 @@ key_pressed(GntWidget *widget, const cha
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)));
More information about the Commits
mailing list