diff --git a/docs/reference/gtk/getting_started.xml b/docs/reference/gtk/getting_started.xml.in similarity index 92% rename from docs/reference/gtk/getting_started.xml rename to docs/reference/gtk/getting_started.xml.in index 1808513419..0a6f99ca55 100644 --- a/docs/reference/gtk/getting_started.xml +++ b/docs/reference/gtk/getting_started.xml.in @@ -44,7 +44,7 @@ Create a new file with the following content named example-0.c. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT @@ -153,7 +153,7 @@ Hello World in GTK+ Create a new file with the following content named example-1.c. - + MISSING XINCLUDE CONTENT @@ -233,7 +233,7 @@ Packing buttons Create a new file with the following content named example-2.c. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT You can compile the program above with GCC using: @@ -257,9 +257,9 @@ Packing buttons with GtkBuilder Create a new file with the following content named example-3.c. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT Create a new file with the following content named builder.ui. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT You can compile the program above with GCC using: @@ -346,7 +346,7 @@ of our application class. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT All the application logic is in the application class, which @@ -364,7 +364,7 @@ GIO documentation. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT Another important class that is part of the application support @@ -373,7 +373,7 @@ window. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT As part of the initial setup of our application, we also @@ -388,7 +388,7 @@ - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT Note that @bindir@ needs to be replaced @@ -420,7 +420,7 @@ - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT To make use of this file in our application, we revisit @@ -460,7 +460,7 @@ example_app_window_class_init (ExampleAppWindowClass *class) - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT This file has to be converted into a C source file that will be @@ -599,7 +599,7 @@ example_app_window_open (ExampleAppWindow *win, in a ui file, and add it as a resource to our binary. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT To associate the app menu with the application, we have to call @@ -698,7 +698,7 @@ example_app_class_init (ExampleAppClass *class) GSettings requires a schema that describes our settings: - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT Before we can make use of this schema in our application, @@ -747,13 +747,13 @@ example_app_window_init (ExampleAppWindow *win) Lets start with the template. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT Next comes the dialog subclass. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT Now we revisit the preferences_activated() function in our @@ -805,7 +805,7 @@ preferences_activated (GSimpleAction *action, to slide out the search bar below the header bar. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT Implementing the search needs quite a few code changes that @@ -882,7 +882,7 @@ example_app_window_init (ExampleAppWindow *win) which demonstrates #GtkMenuButton, #GtkRevealer and #GtkListBox. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT The code to populate the sidebar with buttons for the words @@ -893,7 +893,7 @@ example_app_window_init (ExampleAppWindow *win) ui file. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT To connect the menuitem to the show-words setting, we use @@ -952,7 +952,7 @@ example_app_window_init (ExampleAppWindow *win) triggers the show-lines action: - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT To make this menu item do something, we create a property @@ -1012,7 +1012,7 @@ example_app_window_init (ExampleAppWindow *win) be a direct child of the window, and set its type to be titlebar. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT A small extra bonus of using a header bar is that we get @@ -1068,7 +1068,7 @@ example_app_window_init (ExampleAppWindow *win) Drawing in response to input Create a new file with the following content named example-4.c. - MISSING XINCLUDE CONTENT + MISSING XINCLUDE CONTENT You can compile the program above with GCC using: diff --git a/docs/reference/gtk/meson.build b/docs/reference/gtk/meson.build index e6948491e5..66dfc0291f 100644 --- a/docs/reference/gtk/meson.build +++ b/docs/reference/gtk/meson.build @@ -340,7 +340,6 @@ content_files = [ 'css-overview.xml', 'css-properties.xml', 'drawing-model.xml', - 'getting_started.xml', 'glossary.xml', 'gtk4-broadwayd.xml', 'gtk4-builder-tool.xml', @@ -372,7 +371,6 @@ content_files = [ expand_content_files = [ 'compiling.sgml', 'drawing-model.xml', - 'getting_started.xml', 'glossary.xml', 'input-handling.xml', 'migrating-2to4.xml', @@ -383,6 +381,7 @@ expand_content_files = [ ] configure_file(input: 'version.xml.in', output: 'version.xml', configuration: version_conf) +configure_file(input: 'getting_started.xml.in', output: 'getting_started.xml', configuration: src_dir_conf) types_conf = configuration_data() if os_win32 diff --git a/docs/reference/meson.build b/docs/reference/meson.build index 53458a6c90..d69068124e 100644 --- a/docs/reference/meson.build +++ b/docs/reference/meson.build @@ -12,6 +12,9 @@ docpath = join_paths(gtk_datadir, 'gtk-doc', 'html') version_conf = configuration_data() version_conf.set('GTK_VERSION', meson.project_version()) +src_dir_conf = configuration_data() +src_dir_conf.set('SRC_DIR', meson.source_root()) + subdir('gdk') subdir('gsk') subdir('gtk')