#include <gobject/gparam.h>
#include <gobject/gclosure.h>
#include <gobject/gsignal.h>
+#include <signal.h>
G_BEGIN_DECLS
const GValue *value,
GParamSpec *pspec);
typedef void (*GObjectFinalizeFunc) (GObject *object);
-typedef void (*GWeakNotify) (gpointer data);
+typedef void (*GWeakNotify) (gpointer data,
+ GObject *where_the_object_was);
struct _GObject
{
GTypeInstance g_type_instance;
gpointer g_object_newv (GType object_type,
guint n_parameters,
GParameter *parameters);
-gpointer g_object_new_valist (GType object_type,
+GObject* g_object_new_valist (GType object_type,
const gchar *first_property_name,
va_list var_args);
-gpointer g_object_set (gpointer object,
+void g_object_set (gpointer object,
const gchar *first_property_name,
...);
void g_object_get (gpointer object,
gpointer g_object_connect (gpointer object,
const gchar *signal_spec,
...);
-gpointer g_object_disconnect (gpointer object,
+void g_object_disconnect (gpointer object,
const gchar *signal_spec,
...);
void g_object_set_valist (GObject *object,
void g_object_weak_unref (GObject *object,
GWeakNotify notify,
gpointer data);
+void g_object_add_weak_pointer (GObject *object,
+ gpointer *weak_pointer_location);
+void g_object_remove_weak_pointer (GObject *object,
+ gpointer *weak_pointer_location);
gpointer g_object_get_qdata (GObject *object,
GQuark quark);
void g_object_set_qdata (GObject *object,
void g_object_watch_closure (GObject *object,
GClosure *closure);
GClosure* g_cclosure_new_object (GCallback callback_func,
- gpointer object);
+ GObject *object);
GClosure* g_cclosure_new_object_swap (GCallback callback_func,
- gpointer object);
+ GObject *object);
GClosure* g_closure_new_object (guint sizeof_closure,
GObject *object);
void g_value_set_object (GValue *value,