summaryrefslogtreecommitdiff
path: root/gobject/testgobject.c
AgeCommit message (Collapse)AuthorFilesLines
2011-06-09gobject: remove -DG_DISABLE_CONST_RETURNSRyan Lortie1-2/+2
GObject had a few cases of depending on G_CONST_RETURN not being defined to 'const'. Remove those in preparation for deprecation of G_CONST_RETURN.
2011-05-02Fix compiler warningsDan Winship1-0/+2
2005-09-08Remove some unused code. Same here And here Mark some functions static.Kjartan Maraas1-3/+3
2005-09-08 Kjartan Maraas <kmaraas@gnome.org> * gclosure.c: (g_closure_set_meta_marshal): Remove some unused code. * gsignal.c: (g_signal_emitv): Same here * gtype.c: (g_type_register_fundamental): And here * testgobject.c: Mark some functions static.
2003-10-02Add g_type_add/remove_interface_check(), which allows inserting aOwen Taylor1-1/+1
Thu Oct 2 01:16:50 2003 Owen Taylor <otaylor@redhat.com> * gtype.[ch]: Add g_type_add/remove_interface_check(), which allows inserting a post-interface-initialization check. * testgobject.c: Fix a deprecated usage.
2003-08-19check private instance data after initialization.Tim Janik1-0/+6
Tue Aug 19 05:21:04 2003 Tim Janik <timj@gtk.org> * testgobject.c (main): check private instance data after initialization. * gtype.c: for instances with private data, store the real class pointer in a bsearch array during class initialization. (g_type_instance_get_private): fetch the real class of an instance from the bsearch array if necessary.
2003-08-06Add check for instance private usage within in instance_init. (CurrentlyOwen Taylor1-1/+23
Wed Aug 6 09:57:14 2003 Owen Taylor <otaylor@redhat.com> * testgobject.c (test_signal_accumulator): Add check for instance private usage within in instance_init. (Currently will fail.)
2003-03-10Add support for instance-private data. g_type_class_add_private(),Owen Taylor1-6/+50
Thu Feb 27 17:33:19 2003 Owen Taylor <otaylor@redhat.com> * gtype.[ch] testgobject.c: Add support for instance-private data. g_type_class_add_private(), g_type_instance_get_private(), G_TYPE_INSTANCE_GET_PRIVATE(). (#101959, patch partly by Mark McLoughlin, extensive feedback from Tim Janik.)
2002-10-12test creation of new fundamental types.Tim Janik1-0/+12
Sat Oct 12 22:02:32 2002 Tim Janik <timj@gtk.org> * merged up from 2.0: * testgobject.c: test creation of new fundamental types. * gtype.c (g_type_fundamental_next), (type_node_fundamental_new_W): account for static_fundamental_next storing non-shifted fundamental IDs. this fixes g_type_fundamental_next() not returning a new usable fundamental ID.
2001-10-29Fix non-Intel/-Alpha version of the G_BREAKPOINT macro to includeDaniel Egger1-1/+3
2001-10-29 Daniel Egger <degger@fhm.edu> * glib/gbacktrace.h: Fix non-Intel/-Alpha version of the G_BREAKPOINT macro to include <signal.h> and use SIGTRAP. * glib/gmessages.c: Conditionalise definition of args2 depending on the definition of HAVE_VSNPRINTF to avoid compiler warning. * gobject/testgruntime.c * tests/patterntest.c: Include <string.h> to avoid warnings.
2001-09-10got rid of g_set_error_handler(), g_set_warning_handler(),Tim Janik1-51/+209
Mon Sep 10 17:13:36 2001 Tim Janik <timj@gtk.org> * glib/gmessages.h: got rid of g_set_error_handler(), g_set_warning_handler(), g_set_message_handler(). Wed Sep 5 05:24:07 2001 Tim Janik <timj@gtk.org> * gobject/tmpl/gboxed.sgml: documented some functions. * gobject/tmpl/objects.sgml: some fixups. Mon Sep 10 19:27:47 2001 Tim Janik <timj@gtk.org> * gtype.[hc]: g_type_add_interface*(): implement the ability to add an interface to a type whose parents already conform to this interface. such "overriding" interfaces, when initialized, are not just initialized with 0, but with a copy of the interface they override. g_type_interface_peek_parent(): new function, return the interface that this interface "overrides", if any. * testgruntime.c: test new interface stuff.
2001-06-30g_signal_newc() => g_signal_new().Owen Taylor1-7/+7
Sat Jun 30 13:17:12 2001 Owen Taylor <otaylor@redhat.com> * testgruntime.c (test_object_class_init) gobject.c (g_object_do_class_init): g_signal_newc() => g_signal_new().
2001-06-29Remove debug flag argument to g_type_init() and addOwen Taylor1-1/+1
Thu Jun 28 22:49:40 2001 Owen Taylor <otaylor@redhat.com> * gtype.[ch] gobject-query.c testgruntime.c: Remove debug flag argument to g_type_init() and add g_type_init_with_debug_flags().
2001-03-09test program. covers run first/last/cleanup signal handlers, return valueTim Janik1-0/+184
Fri Mar 9 14:57:17 2001 Tim Janik <timj@gtk.org> * testgruntime.c: test program. covers run first/last/cleanup signal handlers, return value accumulator, signal string returns, and interface types in signal arguments. * gtype.c (g_type_value_table_peek): for interface types without value table, try looking up a value table from an instantiatable prerequisite type (this is safe as an interface may only have one instantiatable prerequisiste). (type_check_is_value_type_U): same here. * gsignal.c (g_signal_newv): assert that return types never have G_SIGNAL_TYPE_STATIC_SCOPE set. (g_signal_newc): only create class closure if the class_offset is not 0.