diff options
author | Tim Janik <timj@gtk.org> | 1998-06-07 07:52:26 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-06-07 07:52:26 +0000 |
commit | 210cb3f5a000fcb950f11bd1454c8e98de28d3d4 (patch) | |
tree | a644e66db4b7c19b50cbfc636ba1695873aede0d /gtk/gtkitemfactory.h | |
parent | cd8e439b9bb298900a7e60bb4527acf41ab11539 (diff) | |
download | gtk+-210cb3f5a000fcb950f11bd1454c8e98de28d3d4.tar.gz |
support different types of callbacks, to maintain existing code.
Sun Jun 7 09:36:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: support different types of callbacks, to
maintain existing code.
... changes to the item factory to ease support of the gimp's code...
Diffstat (limited to 'gtk/gtkitemfactory.h')
-rw-r--r-- | gtk/gtkitemfactory.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/gtk/gtkitemfactory.h b/gtk/gtkitemfactory.h index 92cd6691fc..a1b272ee2d 100644 --- a/gtk/gtkitemfactory.h +++ b/gtk/gtkitemfactory.h @@ -31,11 +31,15 @@ extern "C" { #endif /* __cplusplus */ -typedef void (*GtkPrintFunc) (gpointer func_data, - gchar *str); -typedef void (*GtkItemFactoryCallback) (gpointer callback_data, - guint callback_action, - GtkWidget *widget); +typedef void (*GtkPrintFunc) (gpointer func_data, + gchar *str); +typedef void (*GtkItemFactoryCallback) (); +typedef void (*GtkItemFactoryCallback1) (gpointer callback_data, + guint callback_action, + GtkWidget *widget); +typedef void (*GtkItemFactoryCallback2) (GtkWidget *widget, + gpointer callback_data, + guint callback_action); #define GTK_TYPE_ITEM_FACTORY (gtk_item_factory_get_type ()) #define GTK_ITEM_FACTORY(object) (GTK_CHECK_CAST (object, GTK_TYPE_ITEM_FACTORY, GtkItemFactory)) @@ -43,6 +47,7 @@ typedef void (*GtkItemFactoryCallback) (gpointer callback_data, #define GTK_IS_ITEM_FACTORY(object) (GTK_CHECK_TYPE (object, GTK_TYPE_ITEM_FACTORY)) #define GTK_IS_ITEM_FACTORY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ITEM_FACTORY)) + typedef struct _GtkItemFactory GtkItemFactory; typedef struct _GtkItemFactoryClass GtkItemFactoryClass; typedef struct _GtkItemFactoryEntry GtkItemFactoryEntry; @@ -140,11 +145,17 @@ void gtk_item_factory_dump_rc (const gchar *ifactory_path, gpointer func_data); void gtk_item_factory_create_item (GtkItemFactory *ifactory, GtkItemFactoryEntry *entry, - gpointer callback_data); + gpointer callback_data, + guint callback_type); void gtk_item_factory_create_items (GtkItemFactory *ifactory, guint n_entries, GtkItemFactoryEntry *entries, gpointer callback_data); +void gtk_item_factory_create_items_ac(GtkItemFactory *ifactory, + guint n_entries, + GtkItemFactoryEntry *entries, + gpointer callback_data, + guint callback_type); void gtk_item_factory_path_delete (const gchar *ifactory_path, const gchar *path); void gtk_item_factory_delete_item (GtkItemFactory *ifactory, |