Docs: Convert examples to |[ ]|

This commit is contained in:
Matthias Clasen
2014-01-31 21:56:33 -05:00
parent 4d12e0d66f
commit 17f51583a8
27 changed files with 346 additions and 442 deletions

View File

@@ -804,7 +804,7 @@ g_cond_broadcast (GCond *cond)
* passed.
*
* The following code shows how to correctly perform a timed wait on a
* condition variable (extended the example presented in the
* condition variable (extending the example presented in the
* documentation for #GCond):
*
* |[
@@ -820,12 +820,12 @@ g_cond_broadcast (GCond *cond)
* while (!current_data)
* if (!g_cond_wait_until (&data_cond, &data_mutex, end_time))
* {
* // timeout has passed.
* /* timeout has passed. */
* g_mutex_unlock (&data_mutex);
* return NULL;
* }
*
* // there is data for us
* /* there is data for us */
* data = current_data;
* current_data = NULL;
*
@@ -920,7 +920,7 @@ g_cond_wait_until (GCond *cond,
* |[
* static GPrivate name_key = G_PRIVATE_INIT (g_free);
*
* // return value should not be freed
* /* return value should not be freed */
* const gchar *
* get_local_name (void)
* {
@@ -934,7 +934,7 @@ g_cond_wait_until (GCond *cond,
* }
*
*
* static GPrivate count_key; // no free function
* static GPrivate count_key; /* no free function */
*
* gint
* get_local_count (void)