added g_list_insert_before().

Sat Jun 30 23:14:32 2001  Tim Janik  <timj@gtk.org>

        * glib/glist.[hc]: added g_list_insert_before().

        * glib/gslist.c (g_slist_insert_before): provide an implementation,
        prototype was already present...

Sat Jun 30 11:07:00 2001  Tim Janik  <timj@gtk.org>

        * gobject.[hc]: provide weak_ref/weak_unref functions,
        invoked from ->dispose. renamed ->shutdown() to ->dispose(),
        provide "public" API entry here: g_object_run_dispose(), this
        fucntion should _only_ be called from object system implementations
        (e.g. gtkobject.c) if at all.

        * gtypemodule.c (g_type_module_dispose): s/shutdown/dispose/

        * gsignal.h: removed compat aliases.

        * gobject.c (g_object_connect): support data objects.
This commit is contained in:
Tim Janik
2001-07-02 05:02:13 +00:00
committed by Tim Janik
parent 4f96a13cba
commit 69f32ba7c9
19 changed files with 370 additions and 94 deletions

View File

@@ -51,21 +51,21 @@ static void g_type_module_complete_interface_info (GTypePlugin *plugin,
GType interface_type,
GInterfaceInfo *info);
static GObjectClass *parent_class;
static gpointer parent_class = NULL;
static void
g_type_module_shutdown (GObject *object)
g_type_module_dispose (GObject *object)
{
GTypeModule *module = G_TYPE_MODULE (object);
if (module->type_infos || module->interface_infos)
{
g_warning (G_STRLOC ": shutdown should never happen for static type plugins once types or interfaces have been registered");
g_warning (G_STRLOC ": unsolicitated invocation of g_object_dispose() on GTypeModule");
g_object_ref (object);
}
parent_class->shutdown (object);
G_OBJECT_CLASS (parent_class)->dispose (object);
}
static void
@@ -75,7 +75,7 @@ g_type_module_finalize (GObject *object)
g_free (module->name);
parent_class->finalize (object);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
@@ -85,7 +85,7 @@ g_type_module_class_init (GTypeModuleClass *class)
parent_class = G_OBJECT_CLASS (g_type_class_peek_parent (class));
gobject_class->shutdown = g_type_module_shutdown;
gobject_class->dispose = g_type_module_dispose;
gobject_class->finalize = g_type_module_finalize;
}