mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 09:28:54 +02:00
docs: let go of *
Since we are no longer using sgml mode, using /* */ to escape block comments inside examples does not work anymore. Switch to using line comments with //
This commit is contained in:
@@ -84,16 +84,18 @@
|
||||
* the following sequence can be used:
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* /* save floating state */
|
||||
* // save floating state
|
||||
* gboolean was_floating = g_object_is_floating (object);
|
||||
* g_object_ref_sink (object);
|
||||
* /* protected code portion */
|
||||
* ...;
|
||||
* /* restore floating state */
|
||||
* // protected code portion
|
||||
*
|
||||
* ...
|
||||
*
|
||||
* // restore floating state
|
||||
* if (was_floating)
|
||||
* g_object_force_floating (object);
|
||||
* else
|
||||
* g_object_unref (object); /* release previously acquired reference */
|
||||
* g_object_unref (object); // release previously acquired reference
|
||||
* ]|
|
||||
*/
|
||||
|
||||
@@ -2239,7 +2241,7 @@ g_object_set (gpointer _object,
|
||||
* "obj-property", &objval,
|
||||
* NULL);
|
||||
*
|
||||
* /* Do something with intval, strval, objval */
|
||||
* // Do something with intval, strval, objval
|
||||
*
|
||||
* g_free (strval);
|
||||
* g_object_unref (objval);
|
||||
|
Reference in New Issue
Block a user