mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Remove references to nonexisting functions
* glib/gmain.c: Remove references to nonexisting functions g_source_set_callback_closure(), g_source_poll(), g_source_add() from docs. * glib/gdir.c (g_dir_open): Typo fix in docs. * glib/gasyncqueue.c (g_async_queue_lock): (g_async_queue_unref_and_unlock): Fix markup to avoid erroneous <link>s in docs. * glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs. * glib/gtree.c: Replace some occurances of Gtree by GTree in docs. * glib/gstring.c (g_string_insert_unichar): Typo fix in docs. * glib/tmpl/conversions.sgml: Add GIConv. * glib/tmpl/main.sgml: Fix references to nonexisting functions g_main_loop_destroy(), g_source_add(), g_source_connect(). * glib/glib-sections.txt: Add GIConv, g_str_has_prefix, g_str_has_suffix. * glib/tmpl/linked_lists_single.sgml: * glib/tmpl/linked_lists_double.sgml: GListAllocator doesn't exist. * glib/glib-docs.sgml: Declare hash entity. * glib/tmpl/macros.sgml: Escape # in #ifdef to suppress erroneous links. * gobject/Makefile.am, gobject/gobject-docs.sgml, gobject/tmpl/*: * glib/Makefile.am, glib/glib-docs.sgml, glib/tmpl/*: Produce XML, not SGML.
This commit is contained in:
@@ -440,7 +440,7 @@ without invoking it's destroy() function (if any was
|
||||
set).
|
||||
Usually, calling this function is only required to update
|
||||
user data pointers with a destroy notifier, for example:
|
||||
<msgtext><programlisting>
|
||||
<programlisting>
|
||||
void
|
||||
object_add_to_user_list (GObject *object,
|
||||
const gchar *new_string)
|
||||
@@ -464,7 +464,7 @@ free_string_list (gpointer data)
|
||||
g_free (node->data);
|
||||
g_list_free (list);
|
||||
}
|
||||
</programlisting></msgtext>
|
||||
</programlisting>
|
||||
Using g_object_get_qdata() in the above example, instead of g_object_steal_qdata()
|
||||
would have left the destroy function set, and thus the partial string list would
|
||||
have been freed upon g_object_set_qdata_full().
|
||||
|
Reference in New Issue
Block a user