GNOME Bugzilla – Bug 666163
EmpathyIndividualMenu cleanup
Last modified: 2011-12-14 14:28:17 UTC
Most menu_item_new functions uses this pattern: GtkWidget * empathy_individual_chat_menu_item_new (FolksIndividual *individual, EmpathyContact *contact) We could simplify this code by dropping the @contact arg and just crafting another individual containing only the persona we care about it.
Created attachment 203473 [details] [review] individual-menu: export only the methods we need No need to export everything. I added prototypes in the C file to not have to move everything upside down.
Created attachment 203474 [details] [review] Stop passing an EmpathyContact to menu_item_new() fonctions Best to always use an individual so we don't have 2 code paths to maintain.
Attachment 203473 [details] pushed as cb2e624 - individual-menu: export only the methods we need Attachment 203474 [details] pushed as 9dd688a - Stop passing an EmpathyContact to menu_item_new() fonctions