[gtkmm-documentation] Fix buildapp/Makefile.am and buildapp/README
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] Fix buildapp/Makefile.am and buildapp/README
- Date: Wed, 1 Nov 2017 11:48:26 +0000 (UTC)
commit 8afec05fe25dda5a14e68583655e08d0f9cfcc34
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Wed Nov 1 12:46:39 2017 +0100
Fix buildapp/Makefile.am and buildapp/README
* examples/book/buildapp/Makefile.am: Fix the build of resources.c in
steps 8 and 9.
* examples/book/buildapp/README: Describe how to make the application
find the saved preferences.
examples/book/buildapp/Makefile.am | 4 ++--
examples/book/buildapp/README | 17 +++++++++++++++++
2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/examples/book/buildapp/Makefile.am b/examples/book/buildapp/Makefile.am
index 6f6cb08..494e274 100644
--- a/examples/book/buildapp/Makefile.am
+++ b/examples/book/buildapp/Makefile.am
@@ -216,7 +216,7 @@ STEP8_RESOURCES = \
step8/gears_menu.ui \
step8/prefs.ui
-step8/resources.c: $(STEP7_RESOURCES)
+step8/resources.c: $(STEP8_RESOURCES)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(dir $<) --generate-source $<
STEP9_RESOURCES = \
@@ -227,6 +227,6 @@ STEP9_RESOURCES = \
step9/prefs.ui \
step9/exampleapp.png
-step9/resources.c: $(STEP7_RESOURCES)
+step9/resources.c: $(STEP9_RESOURCES)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(dir $<) --generate-source $<
diff --git a/examples/book/buildapp/README b/examples/book/buildapp/README
index 98d2a5b..1d4d26d 100644
--- a/examples/book/buildapp/README
+++ b/examples/book/buildapp/README
@@ -17,3 +17,20 @@ while running it uninstalled, do the following:
$ cd step1 # or step2, step3, etc.
$ make -f Makefile.example install-desktop-file
+To make Gio::Settings find the preferences in step[5-9], they must be stored
+where they can be found via one of the environment variables XDG_DATA_DIRS,
+XDG_DATA_HOME or GSETTINGS_SCHEMA_DIR. One way to achieve this is:
+
+ $ cd step5 # or step6, step7, etc.
+ $ export GSETTINGS_SCHEMA_DIR=.
+
+But then the program can only be run from that directory. Alternatively,
+set GSETTINGS_SCHEMA_DIR to an absolute path, such as
+
+ $ export GSETTINGS_SCHEMA_DIR=~/.local/share/glib-2.0/schemas
+
+and do the following:
+
+ $ cd step5 # or step6, step7, etc.
+ $ make -f Makefile.example install-gschema-file
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]