Mercurial > pidgin
comparison src/protocols/msn/msn.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 | f2e86683cafc |
children | 41a2c35c0941 |
comparison
equal
deleted
inserted
replaced
10661:f02873d475dc | 10662:54ac161a876e |
---|---|
614 if (user != NULL) | 614 if (user != NULL) |
615 { | 615 { |
616 if (user->mobile) | 616 if (user->mobile) |
617 { | 617 { |
618 act = gaim_blist_node_action_new(_("Send to Mobile"), | 618 act = gaim_blist_node_action_new(_("Send to Mobile"), |
619 show_send_to_mobile_cb, NULL); | 619 show_send_to_mobile_cb, NULL, NULL); |
620 m = g_list_append(m, act); | 620 m = g_list_append(m, act); |
621 } | 621 } |
622 } | 622 } |
623 | 623 |
624 if (g_ascii_strcasecmp(buddy->name, | 624 if (g_ascii_strcasecmp(buddy->name, |
625 gaim_account_get_username(buddy->account))) | 625 gaim_account_get_username(buddy->account))) |
626 { | 626 { |
627 act = gaim_blist_node_action_new(_("Initiate _Chat"), | 627 act = gaim_blist_node_action_new(_("Initiate _Chat"), |
628 initiate_chat_cb, NULL); | 628 initiate_chat_cb, NULL, NULL); |
629 m = g_list_append(m, act); | 629 m = g_list_append(m, act); |
630 } | 630 } |
631 | 631 |
632 return m; | 632 return m; |
633 } | 633 } |