#include <gdk/gdk.h>
#include <gtk/gtkaccelgroup.h>
-#include <gtk/gtkobject.h>
#include <gtk/gtkadjustment.h>
#include <gtk/gtkstyle.h>
#include <gtk/gtksettings.h>
*/
struct _GtkWidget
{
- /* The object structure needs to be the first
- * element in the widget structure in order for
- * the object mechanism to work correctly. This
- * allows a GtkWidget pointer to be cast to a
- * GtkObject pointer.
- */
- GInitiallyUnowned object;
-
- /* internally used private flags. */
- guint GSEAL (private_flags) : 16;
+ GInitiallyUnowned parent_instance;
GtkWidgetPrivate *priv;
};
* @parent_class: The object class structure needs to be the first
* element in the widget class structure in order for the class mechanism
* to work correctly. This allows a GtkWidgetClass pointer to be cast to
- * a GtkObjectClass pointer.
+ * a GObjectClass pointer.
* @activate_signal: The signal to emit when a widget of this class is
* activated, gtk_widget_activate() handles the emission.
* Implementation of this signal is optional.
GtkWidget *toplevel,
gpointer user_data);
+gboolean gtk_widget_in_destruction (GtkWidget *widget);
+
G_END_DECLS
#endif /* __GTK_WIDGET_H__ */