comparison src/blist.c @ 12919:248b8b39c671

[gaim-migrate @ 15272] Replace GaimBlistNodeAction with the more generic GaimMenuAction, this is in preparation for letting the chat room user list have extensible menus like the blist entries do. (I know it's not exactly the prettiest, and the callback isn't exactly type-safe, when we eventually gobjectify everything we can get some safety back by using (GObject, gpointer) but that's for later.) I'm planning to look into merging GaimPluginActions into GaimMenuActions as well. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 17 Jan 2006 23:22:19 +0000
parents b503265495f7
children fa99be331f2f
comparison
equal deleted inserted replaced
12918:a05fbd9dcc31 12919:248b8b39c671
2564 "blist-node-extended-menu", 2564 "blist-node-extended-menu",
2565 n, &menu); 2565 n, &menu);
2566 return menu; 2566 return menu;
2567 } 2567 }
2568 2568
2569 GaimBlistNodeAction *
2570 gaim_blist_node_action_new(char *label,
2571 void (*callback)(GaimBlistNode *, gpointer),
2572 gpointer data, GList *children)
2573 {
2574 GaimBlistNodeAction *act = g_new0(GaimBlistNodeAction, 1);
2575 act->label = label;
2576 act->callback = callback;
2577 act->data = data;
2578 act->children = children;
2579 return act;
2580 }
2581
2582 int gaim_blist_get_group_size(GaimGroup *group, gboolean offline) 2569 int gaim_blist_get_group_size(GaimGroup *group, gboolean offline)
2583 { 2570 {
2584 if (!group) 2571 if (!group)
2585 return 0; 2572 return 0;
2586 2573