glib/docs/reference/glib
Cosimo Cecchi 5ebd8f6e88 gmain: add g_clear_handle_id API
It's a very common pattern to see code that looks like this in
dispose() or finalize() implementations:

if (priv->source_id > 0)
  {
    g_source_remove (priv->source_id);
    priv->source_id = 0;
  }

This API allows to accomplish the same goal with a single line:

g_clear_handle_id (&priv->source_id, (GClearHandleFunc) g_source_remove);

Thanks to Emmanuele Bassi <ebassi@gnome.org> for making the patch
generic.

https://bugzilla.gnome.org/show_bug.cgi?id=788489
2017-11-07 08:28:45 -08:00
..
xml meson: Build all docs 2017-07-13 19:03:39 -04:00
building.xml Fix docs to talk about --enable-coverage 2014-09-07 22:50:36 -04:00
changes.xml docs: Use latest docbook dtd: 4.5 2012-04-23 02:46:18 +01:00
compiling.xml compiling.xml: Add note and fix gcc example 2012-08-15 02:34:50 +09:00
cross.xml spelling fixes of 'runtine' and 'adresses' in cross.xml and running.xml, respectively 2013-05-23 22:11:50 -04:00
file-name-encodings.png Huh? This was a 6-byte file. Replaced it with the correct one. 2006-01-12 19:47:02 +00:00
file-name-encodings.sxd Replaced with the correct file. 2006-01-12 19:49:32 +00:00
glib-docs.xml docs: Add 2.56 to the API version reference in glib-docs.xml 2017-11-07 14:50:23 +00:00
glib-gettextize.xml docs: Improve man page consistency 2012-08-03 23:36:45 -04:00
glib-overrides.txt docs: fix bogus override for GIConv 2017-10-27 12:06:41 +01:00
glib-sections.txt gmain: add g_clear_handle_id API 2017-11-07 08:28:45 -08:00
glib.types Add explicit path to tmpl files in dependencies. 2001-04-03 18:27:08 +00:00
gtester-report.xml Document all gtester-report options 2013-05-04 21:10:43 -04:00
gtester.xml docs: Improve man page consistency 2012-08-03 23:36:45 -04:00
gvariant-text.xml More consistent doc formatting 2011-11-12 21:54:42 -05:00
gvariant-varargs.xml gvariant: Add g_variant_get() example for dicts 2017-09-11 09:46:21 +01:00
mainloop-states.eps add images 2000-12-05 20:43:58 +00:00
mainloop-states.fig add images 2000-12-05 20:43:58 +00:00
mainloop-states.gif add images 2000-12-05 20:43:58 +00:00
mainloop-states.png add images 2000-12-05 20:43:58 +00:00
Makefile.am docs: Add version and deprecation decorators to gtk-doc ignore list 2017-11-07 14:50:23 +00:00
meson.build docs: Add version and deprecation decorators to gtk-doc ignore list 2017-11-07 14:50:23 +00:00
programming.xml docs: fix grammar in Writing GLib Applications/Threads 2016-01-31 12:54:28 -05:00
regex-syntax.xml docs: trivial typo fixes 2016-07-16 20:32:16 -04:00
resources.xml docs: Use latest docbook dtd: 4.5 2012-04-23 02:46:18 +01:00
running.xml docs/running: Remove outdated refs, fix name caps 2017-08-23 12:21:58 +01:00
Sorted_binary_tree_breadth-first_traversal.svg More GTree and GNode formatting and documentation fixes 2014-01-19 23:49:12 -05:00
Sorted_binary_tree_inorder.svg More GTree and GNode formatting and documentation fixes 2014-01-19 23:49:12 -05:00
Sorted_binary_tree_postorder.svg More GTree and GNode formatting and documentation fixes 2014-01-19 23:49:12 -05:00
Sorted_binary_tree_preorder.svg More GTree and GNode formatting and documentation fixes 2014-01-19 23:49:12 -05:00
version.xml.in Add version info to API docs. 2002-11-23 01:37:17 +00:00