diff src/gtkutils.h @ 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 fc464a0abccc
children 0aa231ebbfd5
line wrap: on
line diff
--- a/src/gtkutils.h	Tue Jan 17 19:28:45 2006 +0000
+++ b/src/gtkutils.h	Tue Jan 17 23:22:19 2006 +0000
@@ -28,6 +28,7 @@
 #include "gtkconv.h"
 #include "gtkgaim.h"
 #include "prpl.h"
+#include "util.h"
 
 typedef enum
 {
@@ -370,4 +371,16 @@
  */
 GdkPixbuf * gaim_gtk_create_prpl_icon_with_status(GaimAccount *account, GaimStatusType *status_type);
 
+/**
+ * Append a GaimMenuAction to a menu.
+ *
+ * @param menu   The menu to append to.
+ * @param act    The GaimMenuAction to append.
+ * @param object The object to be passed to the action callback.
+ *
+ * @return The menu.
+ */
+void gaim_gtk_append_menu_action(GtkWidget *menu, GaimMenuAction *act,
+                                 gpointer gobject);
+
 #endif /* _GAIM_GTKUTILS_H_ */