docs: Identify examples that are C code
https://bugzilla.gnome.org/show_bug.cgi?id=723119
This commit is contained in:
@ -55,7 +55,7 @@
|
||||
* </para>
|
||||
* <example>
|
||||
* <title>Typical main() function for a GTK+ application</title>
|
||||
* |[
|
||||
* |[<!-- language="C" -->
|
||||
* int
|
||||
* main (int argc, char **argv)
|
||||
* {
|
||||
@ -1121,7 +1121,7 @@ gtk_init_check_abi_check (int *argc, char ***argv, int num_checks, size_t sizeof
|
||||
* changed after GTK+ has already been initialized. In this case,
|
||||
* you can use it to update the default text direction as follows:
|
||||
*
|
||||
* |[
|
||||
* |[<!-- language="C" -->
|
||||
* setlocale (LC_ALL, new_locale);
|
||||
* direction = gtk_get_locale_direction ();
|
||||
* gtk_widget_set_default_direction (direction);
|
||||
@ -1253,7 +1253,7 @@ gtk_main_quit (void)
|
||||
*
|
||||
* <example>
|
||||
* <title>Updating the UI during a long computation</title>
|
||||
* |[
|
||||
* |[<!-- language="C" -->
|
||||
* /* computation going on... */
|
||||
*
|
||||
* while (gtk_events_pending ())
|
||||
@ -1828,7 +1828,7 @@ gtk_main_do_event (GdkEvent *event)
|
||||
*
|
||||
* <example>
|
||||
* <title>A persistent window</title>
|
||||
* |[
|
||||
* |[<!-- language="C" -->
|
||||
* #include <gtk/gtk.h><
|
||||
*
|
||||
* int
|
||||
|
||||
Reference in New Issue
Block a user