comparison src/gtkblist.h @ 8986:8cf32769ba1b

[gaim-migrate @ 9761] " This patch adds a Plugin Actions menu item after the Account Actions menu. The Plugin Actions menu is populated from the added 'actions' slot in GaimPluginInfo. As a demonstration, the Idle Maker plugin has been converted to no longer require GTK code and the Preferences interface just to perform its actions. Instead, it uses a Plugin Action to spawn a Fields Request. There's also a minor fix for consistency in the menu building for buddy actions. The pre-existing method for instructing a menu list to display a separator was to insert a NULL rather than a proto_buddy_menu into the GList of actions. The code for the buddy menus was instead checking for a proto_buddy_menu with a '-' label. This has been fixed, and it now correctly uses NULL to indicate a separator." "Date: 2004-05-16 02:25 Sender: taliesein Logged In: YES user_id=77326 I need to add a callback to this patch to watch for loading/unloading of plugins (to determine when to rebuild the menu). Since the appropriate way to handle Plugin Actions is still mildly up for debate, I'm holding of on correcting the patch until I know for sure whether I should fix this patch, or scrap it and write a new one using a different method." "Date: 2004-05-18 12:26 Sender: taliesein Logged In: YES user_id=77326 I've completed changes to this patch to also add plugin load and unload signals (it looks like plugin.c actually had pre-signal callbacks in place, but they were never used or converted to signals) This patch now will correctly update the Plugin Action menu as plugins load and unload." I'm not entirely sure i like the ui of a plugins actions menu, but i think that having some way for plugins to add actions on an account is a good thing, and i'm not sure that every viable action fits under the accounts actions menu. we may want to merge the two (the existing accounts actions and this plugins actions), but both times it came up in #gaim no one seemed to want to comment, and on one commented to the gaim-devel post either. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 20 May 2004 05:11:44 +0000
parents b875f5d57b81
children 826013efffcb
comparison
equal deleted inserted replaced
8985:8abc99ed5d93 8986:8cf32769ba1b
207 * Updates the protocol actions menu on the GTK+ buddy list window. 207 * Updates the protocol actions menu on the GTK+ buddy list window.
208 */ 208 */
209 void gaim_gtk_blist_update_protocol_actions(); 209 void gaim_gtk_blist_update_protocol_actions();
210 210
211 /** 211 /**
212 * Updates the plugin actions menu on the GTK+ buddy list window.
213 */
214 void gaim_gtk_blist_update_plugin_actions();
215
216 /**
212 * Determines if showing the join chat dialog is a valid action. 217 * Determines if showing the join chat dialog is a valid action.
213 * 218 *
214 * @return Returns TRUE if there are accounts online capable of 219 * @return Returns TRUE if there are accounts online capable of
215 * joining chat rooms. Otherwise returns FALSE. 220 * joining chat rooms. Otherwise returns FALSE.
216 */ 221 */