gtk/examples
Matthias Clasen 111230f5f9 bloatpad: Call gtk_init in main
We end up using a display via gtk_application_set_accels_for_action,
and that can't happen before gtk_init anymore.
2024-10-21 21:17:00 -04:00
..
application1 examples: Use #pragma once consistently 2023-12-20 10:29:45 -05:00
application2 examples: Use #pragma once consistently 2023-12-20 10:29:45 -05:00
application3 examples: Use #pragma once consistently 2023-12-20 10:29:45 -05:00
application4 examples: Use #pragma once consistently 2023-12-20 10:29:45 -05:00
application5 examples: Use #pragma once consistently 2023-12-20 10:29:45 -05:00
application6 examples: Use #pragma once consistently 2023-12-20 10:29:45 -05:00
application7 examples: Use #pragma once consistently 2023-12-20 10:29:45 -05:00
application8 examples: Use #pragma once consistently 2023-12-20 10:29:45 -05:00
application9 examples: Use #pragma once consistently 2023-12-20 10:29:45 -05:00
bp bloatpad: Call gtk_init in main 2024-10-21 21:17:00 -04:00
hello Add a README to examples/hello 2023-05-13 21:56:29 -04:00
action-namespace.c examples: Stop using gtk_widget_show/hide 2022-12-13 13:46:02 -05:00
builder.c Stop using G_APPLICATION_FLAGS_NONE 2024-09-25 22:03:23 -04:00
builder.ui grid layout: Rename some properties 2020-08-02 17:58:03 -04:00
drawing.c Stop using G_APPLICATION_FLAGS_NONE 2024-09-25 22:03:23 -04:00
grid-packing.c Stop using G_APPLICATION_FLAGS_NONE 2024-09-25 22:03:23 -04:00
labels.js Add a simple Javascript example 2021-07-05 13:48:51 -04:00
meson.build Drop old style deprecation handling 2023-08-04 08:38:55 -04:00
plugman.c Replace deprecated CSS loading API 2023-05-16 16:59:05 -04:00
README examples: Fix multiple small problems 2020-08-13 17:30:47 -04:00
search-bar.c Stop using G_APPLICATION_FLAGS_NONE 2024-09-25 22:03:23 -04:00
squares.py Cosmetics 2021-07-03 09:10:27 -04:00
sunny.c examples: Stop using gtk_widget_show/hide 2022-12-13 13:46:02 -05:00
window-default.c Stop using G_APPLICATION_FLAGS_NONE 2024-09-25 22:03:23 -04:00

= Examples =

== Building the examples ==

The examples in this directory are built alongside the rest of GTK.

The examples under the `application[1-9]` directories are also included in
the GTK API reference documentation, and can be built independently, using
the system libraries, by doing:

    $ cd application1
    $ make -f Makefile.example

== Running the examples ==

The examples can be run uninstalled.

The later demos are using GSettings,so they need a GSettings schema.
The code for these demos contains a workaround to look for the schema
in the current directory, so this works:

    $ cd application5
    & ./exampleapp window.ui