summaryrefslogtreecommitdiff
path: root/gobject/gtypeplugin.c
Commit message (Collapse)AuthorAgeFilesLines
* Add SPDX license headers for LGPL-2.1-or-later to various filesPhilip Withnall2022-06-011-0/+2
| | | | | | | | | | | | | These have all been added manually, as I’ve finished all the files which I can automatically detect. All the license headers in this commit are for LGPL-2.1-or-later, and all have been double-checked against the license paragraph in the file header. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1415
* docs: Start stanzas with a single paragraphEmmanuele Bassi2021-08-021-2/+3
| | | | | | | | | | | | | | | | | | | When rendering the contents of the GLib documentation stored inside the introspection data, a common behaviour is to take the first paragraph as a summary of the symbol being documented. The documentation is assumed to be in Markdown format, which means: - paragraphs must be separated by newlines - lines that have an indentation of four or more spaces are considered code blocks - lines that start with a `#` are considered titles This means we need to slightly tweak the documentation in our sources to ensure that it can be rendered appropriately by tools that are not gtk-doc. See issue: #2365
* Fix missing initializer warning in ↵Emmanuel Fleury2020-12-161-3/+10
| | | | | | | | | | | | | | gobject/gtypeplugin.c:g_type_plugin_get_type() gobject/gtypeplugin.c: In function ‘g_type_plugin_get_type’: gobject/gtypeplugin.c:91:7: error: missing initializer for field ‘class_init’ of ‘GTypeInfo’ {aka ‘const struct _GTypeInfo’} 91 | }; | ^ In file included from gobject/gtypeplugin.h:24, from gobject/gtypeplugin.c:20: gobject/gtype.h:1053:26: note: ‘class_init’ declared here 1053 | GClassInitFunc class_init; | ^~~~~~~~~~
* gobject: Standardise on the term ‘instantiatable’Philip Withnall2020-11-021-1/+1
| | | | | | | Rather than using a mixture of ‘instantiable’ and ‘instantiatable’ everywhere, standardise on the term which is already in the public API. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* gobject/: LGPLv2+ -> LGPLv2.1+Sébastien Wilmet2017-05-241-1/+1
| | | | | | | | All gobject/*.{c,h} files have been processed. gmarshal.c and gmarshal.h don't have a license header. https://bugzilla.gnome.org/show_bug.cgi?id=776504
* Annotate all examples with their languageMatthias Clasen2014-02-011-1/+1
| | | | The C ones, at least.
* GObject: Convert docs to markdownMatthias Clasen2014-02-011-40/+31
| | | | In particular, convert lists to markdown syntax.
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* Do not use static GTypeInfo and GInterfaceInfoNicola Fontana2011-11-291-1/+1
| | | | | | | | | Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED) and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and GInterfaceInfo structs, while tutorials and source code often use static variables. This commit consistently adopts the former method. https://bugzilla.gnome.org/show_bug.cgi?id=600161
* gobject/: fully remove gobjectalias hacksRyan Lortie2010-07-071-4/+0
|
* Fix up section commentsMatthias Clasen2008-07-021-6/+3
| | | | svn path=/trunk/; revision=7137
* remove trailing whitespace from newly added gtk-doc comments andMichael Natterer2008-06-221-12/+15
| | | | | | | | | | | 2008-06-22 Michael Natterer <mitch@imendio.com> * *.c: remove trailing whitespace from newly added gtk-doc comments and reformatted some where they contained overly long or ill-formatted lines. svn path=/trunk/; revision=7090
* moved includes back to the top of the files (before gtk-doc SECTIONMichael Natterer2008-06-221-23/+28
| | | | | | | | | | | | | 2008-06-22 Michael Natterer <mitch@imendio.com> * *.c: moved includes back to the top of the files (before gtk-doc SECTION comments). Add "config.h" in all files and move system included before glib includes. Remove trailing whitespace from SECTION comments and did some reformatting where lines were overly long, no documentation content was changed. svn path=/trunk/; revision=7089
* Migrating docs.Stefan Kost2008-06-211-0/+101
| | | | | | | | | | * docs/reference/gobject/tmpl/gtypeplugin.sgml: * gobject/gtypeplugin.c: * gobject/gtypeplugin.h: Migrating docs. svn path=/trunk/; revision=7079
* Intern type names before registering the type to avoid unnecessary copies.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gvaluetypes.c (g_value_types_init): * gtypeplugin.c (g_type_plugin_get_type): * gtypemodule.c (g_type_module_get_type): * gparam.c (g_param_type_init): * gobject.c (g_object_type_init): * genums.c (g_enum_types_init): * gboxed.c (g_boxed_type_init): Intern type names before registering the type to avoid unnecessary copies.
* Make work again.Matthias Clasen2005-03-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | 2005-03-14 Matthias Clasen <mclasen@redhat.com> * abicheck.sh: Make work again. * gsourceclosure.c: Fix a typo. Make PLT-reduction work with gcc4, and don't include everything in gobjectalias.h: * gobject.symbols: Group symbols by header and source file. * makegobjectalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegalias.pl -def * Makefile.am (gobjectaliasdef.c): Add a rule to build this file. * *.c: Include gobjectalias.h after the other i GLib headers, include gobjectaliasdef.c at the bottom.
* Implement the same PLT reduction technique used in GTK+:Matthias Clasen2004-09-161-0/+1
| | | | | | | | | | | | | 2004-09-16 Matthias Clasen <mclasen@redhat.com> Implement the same PLT reduction technique used in GTK+: * Makefile.am: Generate gobjectalias.h from gobject.symbols. (BUILT_SOURCES): Add gobjectalias.h. * makegobjectalias.pl: Script to generate gobjectalias.h. * *.c: Include gobjectalias.h
* applied patch from owen to implement GParamSpecUnichar.Tim Janik2001-04-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Sat Mar 31 23:55:58 2001 Tim Janik <timj@gtk.org> * gtype.h: * gparamspecs.[hc]: applied patch from owen to implement GParamSpecUnichar. Fri Mar 30 07:34:02 2001 Tim Janik <timj@gtk.org> * gtype.c (type_iface_retrive_holder_info_Wm): * gtypeplugin.c (g_type_plugin_complete_interface_info): * gtypemodule.c (g_type_module_complete_interface_info): change order of instance_type and interface_type so they match the g_type_add_interface_*() API. * gsignal.c (g_signal_emit_valist): always assign C return value location, people depending on unaltered return values after emissions that had no handlers to run need to use g_signal_emitv(). * gtype.[hc] (g_type_query): new function to allow querying of class and object size (semantics like g_signal_query()). currently the implementation is better held conservative so as to only support types that are classed and static.
* fixed a bag full of subtle bugs of immensive screw-up potential inTim Janik2000-11-051-0/+100
Sun Nov 5 05:22:55 2000 Tim Janik <timj@gtk.org> * gsignal.c: fixed a bag full of subtle bugs of immensive screw-up potential in handlers_find(), luckily no one found out about them yet ;) fixed signal_handlers_foreach_matched_R() so it operates on an initial handler list snapshot provided by handlers_find() to work around general reentrancy problems and to avoid multiple callback() invocations on the same handlers. this code is now officially 80% bug free (10% remaining for interface types, and 10% remaining for destroyed signals ;) Sat Nov 4 02:01:33 2000 Tim Janik <timj@gtk.org> * gsignal.c (_g_signals_destroy): valid signal nodes start out at 1. * gtypeplugin.[hc]: new files holding a GTypePlugin interface implementation that provides the API required by GType to deal with dynamically loadable types. * gtype.[hc]: displace any GTypePlugin business to gtypeplugin.h.