Mercurial > pidgin.yaz
comparison src/protocols/gg/gg.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 | 781a0582d35f |
children | c4cb90065e1d |
comparison
equal
deleted
inserted
replaced
10661:f02873d475dc | 10662:54ac161a876e |
---|---|
1 /* | 1 /* |
2 * gaim - Gadu-Gadu Protocol Plugin | 2 * gaim - Gadu-Gadu Protocol Plugin |
3 * $Id: gg.c 12108 2005-02-23 04:21:50Z thekingant $ | 3 * $Id: gg.c 12199 2005-03-07 02:19:09Z deryni9 $ |
4 * | 4 * |
5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> | 5 * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
8 * it under the terms of the GNU General Public License as published by | 8 * it under the terms of the GNU General Public License as published by |
341 g_snprintf(buf, sizeof(buf), _("Status: %s"), get_away_text(buddy)); | 341 g_snprintf(buf, sizeof(buf), _("Status: %s"), get_away_text(buddy)); |
342 | 342 |
343 /* um... this seems silly. since in this pass, I'm only converting | 343 /* um... this seems silly. since in this pass, I'm only converting |
344 over the menu building, I'm not going to mess with it though */ | 344 over the menu building, I'm not going to mess with it though */ |
345 /* XXX: shouldn't this be in the tooltip instead? */ | 345 /* XXX: shouldn't this be in the tooltip instead? */ |
346 act = gaim_blist_node_action_new(buf, NULL, NULL); | 346 act = gaim_blist_node_action_new(buf, NULL, NULL, NULL); |
347 m = g_list_append(m, act); | 347 m = g_list_append(m, act); |
348 | 348 |
349 return m; | 349 return m; |
350 } | 350 } |
351 | 351 |