comparison src/protocols/silc/buddy.c @ 10662:54ac161a876e

[gaim-migrate @ 12199] Plugins can now add submenus to the right-click menu of a blist node by passing a GList of actions to gaim_blist_node_action_new. I'm thinking about making GaimBlistNodeActions more like plugin prefs so that plugins can create radio and check menu items as well. We'll see if I can do that and not make it ugly/suck. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Mon, 07 Mar 2005 02:19:09 +0000
parents 0f7452b1f777
children 3e43c132f151
comparison
equal deleted inserted replaced
10661:f02873d475dc 10662:54ac161a876e
1539 sg->conn, 1539 sg->conn,
1540 buddy->proto_data); 1540 buddy->proto_data);
1541 1541
1542 if (client_entry && client_entry->send_key) { 1542 if (client_entry && client_entry->send_key) {
1543 act = gaim_blist_node_action_new(_("Reset IM Key"), 1543 act = gaim_blist_node_action_new(_("Reset IM Key"),
1544 silcgaim_buddy_resetkey, NULL); 1544 silcgaim_buddy_resetkey, NULL, NULL);
1545 m = g_list_append(m, act); 1545 m = g_list_append(m, act);
1546 1546
1547 } else { 1547 } else {
1548 act = gaim_blist_node_action_new(_("IM with Key Exchange"), 1548 act = gaim_blist_node_action_new(_("IM with Key Exchange"),
1549 silcgaim_buddy_keyagr, NULL); 1549 silcgaim_buddy_keyagr, NULL, NULL);
1550 m = g_list_append(m, act); 1550 m = g_list_append(m, act);
1551 1551
1552 act = gaim_blist_node_action_new(_("IM with Password"), 1552 act = gaim_blist_node_action_new(_("IM with Password"),
1553 silcgaim_buddy_privkey_menu, NULL); 1553 silcgaim_buddy_privkey_menu,
1554 NULL, NULL);
1554 m = g_list_append(m, act); 1555 m = g_list_append(m, act);
1555 } 1556 }
1556 1557
1557 if (pkfile) { 1558 if (pkfile) {
1558 act = gaim_blist_node_action_new(_("Show Public Key"), 1559 act = gaim_blist_node_action_new(_("Show Public Key"),
1559 silcgaim_buddy_showkey, NULL); 1560 silcgaim_buddy_showkey, NULL, NULL);
1560 m = g_list_append(m, act); 1561 m = g_list_append(m, act);
1561 1562
1562 } else { 1563 } else {
1563 act = gaim_blist_node_action_new(_("Get Public Key..."), 1564 act = gaim_blist_node_action_new(_("Get Public Key..."),
1564 silcgaim_buddy_getkey_menu, NULL); 1565 silcgaim_buddy_getkey_menu,
1566 NULL, NULL);
1565 m = g_list_append(m, act); 1567 m = g_list_append(m, act);
1566 } 1568 }
1567 1569
1568 if (conn && conn->local_entry->mode & SILC_UMODE_ROUTER_OPERATOR) { 1570 if (conn && conn->local_entry->mode & SILC_UMODE_ROUTER_OPERATOR) {
1569 act = gaim_blist_node_action_new(_("Kill User"), 1571 act = gaim_blist_node_action_new(_("Kill User"),
1570 silcgaim_buddy_kill, NULL); 1572 silcgaim_buddy_kill, NULL, NULL);
1571 m = g_list_append(m, act); 1573 m = g_list_append(m, act);
1572 } 1574 }
1573 1575
1574 return m; 1576 return m;
1575 } 1577 }