Index: gtk/gtkobject.c
===================================================================
--- gtk/gtkobject.c	(revision 21330)
+++ gtk/gtkobject.c	(working copy)
@@ -119,6 +119,23 @@
 {
 }
 
+/**
+ * gtk_object_get_object_flags:
+ * @object: a #GtkObject
+ * 
+ * Returns the #GtkObjectFlags associated with this object.  This
+ * function is exactly equivalent to the macro #GTK_OBJECT_FLAGS.
+ * 
+ * Return value: Set of flags
+ *
+ * Since: 2.16
+ **/
+GtkObjectFlags
+gtk_object_get_object_flags (GtkObject *object)
+{
+  return GTK_OBJECT_FLAGS (object);
+}
+
 static inline gboolean
 gtk_arg_set_from_value (GtkArg       *arg,
 			const GValue *value,
Index: gtk/gtkobject.h
===================================================================
--- gtk/gtkobject.h	(revision 21330)
+++ gtk/gtkobject.h	(working copy)
@@ -126,6 +126,8 @@
 
 GType gtk_object_get_type (void) G_GNUC_CONST;
 
+GtkObjectFlags   gtk_object_get_object_flags (GtkObject *object);
+
 #ifndef GTK_DISABLE_DEPRECATED
 void gtk_object_sink	  (GtkObject *object);
 #endif
