* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
* file for a list of people on the GTK+ Team. See the ChangeLog
* files for a list of changes. These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
+#ifndef GTK_DISABLE_DEPRECATED
+
#ifndef __GTK_ITEM_FACTORY_H__
#define __GTK_ITEM_FACTORY_H__
+#include <gtk/gtk.h>
-#include <gtk/gtkwidget.h>
G_BEGIN_DECLS
-typedef gchar * (*GtkTranslateFunc) (const gchar *path,
- gpointer func_data);
-
-#if !defined (GTK_DISABLE_DEPRECATED)
-
typedef void (*GtkPrintFunc) (gpointer func_data,
const gchar *str);
/* We use () here to mean unspecified arguments. This is deprecated
GtkTranslateFunc translate_func;
gpointer translate_data;
- GtkDestroyNotify translate_notify;
+ GDestroyNotify translate_notify;
};
struct _GtkItemFactoryClass
guint32 time_);
void gtk_item_factory_popup_with_data(GtkItemFactory *ifactory,
gpointer popup_data,
- GtkDestroyNotify destroy,
+ GDestroyNotify destroy,
guint x,
guint y,
guint mouse_button,
void gtk_item_factory_set_translate_func (GtkItemFactory *ifactory,
GtkTranslateFunc func,
gpointer data,
- GtkDestroyNotify notify);
+ GDestroyNotify notify);
/* Compatibility functions for deprecated GtkMenuFactory code
*/
void gtk_item_factories_path_delete (const gchar *ifactory_path,
const gchar *path);
-#endif /* !GTK_DISABLE_DEPRECATED */
-
-
G_END_DECLS
+#endif /* !GTK_DISABLE_DEPRECATED */
+
#endif /* __GTK_ITEM_FACTORY_H__ */