glib/gobject
Philip Withnall c639b628ec gparamspecs: Recommend use of most specific GParamSpec types
It’s quite common to see a g_param_spec_pointer() used for GObject or
boxed types which, while not incorrect, does make memory management
unsafe, since no copying or reference counting can be performed
automatically.

Similarly, people often use g_param_spec_boolean() when an enum would be
more appropriate, cf.
    http://blog.ometer.com/2011/01/20/boolean-parameters-are-wrong/
Using enums also means that the set of allowable values can be extended
in future if needed.

In the hope that people who write code like that read the documentation,
mention the more specific types in the documentation.

https://bugzilla.gnome.org/show_bug.cgi?id=741779
2015-03-03 18:40:33 +00:00
..
tests gobject: Add g_set_object() convenience function to set GObject pointers 2014-12-18 11:32:56 +00:00
.gitignore Stop using glib-genmarshal at build time 2011-06-20 17:24:07 -04:00
ChangeLog Update README files to refer to git 2009-03-31 19:39:16 -04:00
gatomicarray.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gatomicarray.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gbinding.c gbinding: warn on failed value transformation 2014-03-17 17:43:19 -04:00
gbinding.h GObject: Remove more leftover markup from headers 2014-03-07 06:10:36 -05:00
gboxed.c goption: Add boxed type for GOptionGroup 2015-02-11 15:32:00 +01:00
gboxed.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gclosure.c docs: fix many documentation issues in gobject/ 2015-02-05 16:01:17 +01:00
gclosure.h docs: fix many documentation issues in gobject/ 2015-02-05 16:01:17 +01:00
genums.c docs: code example for enumeration types 2015-02-08 16:06:17 +01:00
genums.h Updated FSF's address 2014-01-31 14:31:55 +01:00
glib-genmarshal.c Updated FSF's address 2014-01-31 14:31:55 +01:00
glib-mkenums.in glib-mkenums: fix handling of forward enum declarations 2012-02-07 13:32:22 -05:00
glib-types.h goption: Add boxed type for GOptionGroup 2015-02-11 15:32:00 +01:00
gmarshal.c docs: add a bunch of pointless documentation 2015-02-04 15:37:27 +01:00
gmarshal.h gmarshal.h: replace "extern" with GLIB_AVAILABLE_IN_ALL 2013-01-13 13:13:55 -05:00
gmarshal.list Update the comment in gmarshal.list 2012-06-23 17:53:22 -04:00
gobject_probes.d Add missing semicolons to gobject_probes.d 2012-10-15 19:48:44 -04:00
gobject_trace.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gobject-autocleanups.h gobject: Add missing autocleanup for GInitiallyUnowned 2015-02-20 19:54:07 +00:00
gobject-query.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gobject.c gobject: Fix a typo in a documentation comment 2015-01-25 17:09:35 +00:00
gobject.h gobject.h: Use correct format specifier for __LINE__ 2015-02-26 12:32:43 +01:00
gobject.py Try to make gobject.py work with both pythons 2014-06-16 15:25:42 -04:00
gobject.rc.in Update the year in the *.rc.in files 2011-06-07 08:55:31 +08:00
gobject.stp.in Add dtrace and systemtap support for gobject 2010-05-27 14:51:41 -04:00
gobjectnotifyqueue.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gparam.c docs: fix many documentation issues in gobject/ 2015-02-05 16:01:17 +01:00
gparam.h docs: fix many documentation issues in gobject/ 2015-02-05 16:01:17 +01:00
gparamspecs.c gparamspecs: Recommend use of most specific GParamSpec types 2015-03-03 18:40:33 +00:00
gparamspecs.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gsignal.c docs: fix many documentation issues in gobject/ 2015-02-05 16:01:17 +01:00
gsignal.h gsignal: Add an example to the g_signal_connect_swapped() documentation 2014-06-23 12:30:51 +01:00
gsourceclosure.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gsourceclosure.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtype-private.h gobject: move _g_type_debug_flags from gtype.h to gtype-private.h 2014-06-28 14:00:32 -04:00
gtype.c Fix a return_if_fail confusion 2014-10-11 15:53:13 -04:00
gtype.h make *_get_instance_private const-compliant 2015-02-27 08:51:08 +01:00
gtypemodule.c GObject: Convert docs to markdown 2014-02-01 10:22:45 -05:00
gtypemodule.h docs: fix many documentation issues in gobject/ 2015-02-05 16:01:17 +01:00
gtypeplugin.c Annotate all examples with their language 2014-02-01 15:11:49 -05:00
gtypeplugin.h GObject: Remove more leftover markup from headers 2014-03-07 06:10:36 -05:00
gvalue.c gvalue: New g_value_init_from_instance 2014-06-24 14:21:10 -04:00
gvalue.h gvalue: New g_value_init_from_instance 2014-06-24 14:21:10 -04:00
gvaluearray.c Docs: Drop entities, switch away from sgml mode 2014-02-09 02:07:26 -05:00
gvaluearray.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvaluecollector.h docs: fix many documentation issues in gobject/ 2015-02-05 16:01:17 +01:00
gvaluetransform.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gvaluetypes.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gvaluetypes.h Updated FSF's address 2014-01-31 14:31:55 +01:00
libgobject-gdb.py.in Avoid shadowing the dir builtin 2010-12-03 14:08:36 -05:00
Makefile.am gobject: add support for g_auto() and g_autoptr() 2015-01-30 16:52:36 +01:00
makefile.msc.in gobject/: fully remove gobjectalias hacks 2010-07-07 19:40:48 -04:00
marshal-genstrings.pl Hacky script to fix up your .msc.in files on windows. Dunno if this is a 2001-08-04 15:49:55 +00:00