summaryrefslogtreecommitdiff
path: root/examples/settings
Commit message (Collapse)AuthorAgeFilesLines
* Run clang-format on the examples.Murray Cumming2016-02-261-20/+20
|
* C++11: examples/tests: More use of auto.Murray Cumming2015-07-151-1/+1
|
* Gio::Settings: Replace connect_changed() by signal_changed(key)Kjell Ahlstedt2015-05-231-0/+14
| | | | | * gio/src/settings.[hg|ccg]: Add signal_changed(key). Remove connect_changed(). * examples/settings/settings.cc: Test signal_changed(key). Bug #749034.
* Revert "C++11: Use auto in examples."Murray Cumming2013-06-271-2/+2
| | | | | | This reverts commit 9b0554e2c9deca2399e654e7984c9dfe3b67e387. This was not meant to be in the master branch.
* C++11: Use auto in examples.Murray Cumming2013-06-261-2/+2
|
* Variant<>: Make this usable as an ouput parameter.Murray Cumming2010-07-221-1/+8
| | | | | | | | | * glib/src/variant.[hg|ccg]: VariantBase: Added init(), like Value::init(). This just changes the gobject_, with appropriate unref and ref. * gio/src/settings.[hg|ccg]: get_value(): Use an output parameter for the VariantBase, instead of a return value, as we do for Value, allowing the caller to use a derived (templated) type. * examples/settings/settings.cc: Show how Variant<> can be used.
* Settings example: Minor change.Murray Cumming2010-07-221-2/+2
| | | | | * examples/settings/settings.cc: Remove the unnecessary use of Glib::ustring::raw().
* Revert changes that I did not mean to commit yet.Murray Cumming2010-07-221-8/+1
|
* Variant: Added some methods.Murray Cumming2010-07-221-28/+40
| | | | | | | | | | * glib/src/variant.[hg|ccg]: ValueBase: Wrap some simple functions with _WRAP_METHOD(). * glib/src/variant_basictypes.h.m4: Syntax changes, and make the castitem constructor explicit. * tools/m4/convert_gio.m4: Added necessary conversion. We need to decide how to use this in get*() methods and add some tests.
* Do not install the schema of the gsettings exampleDaniel Elstner2010-06-071-10/+10
| | | | | | | | | | | | | | | | * examples/Makefile.am: Do not install the schema file of the settings example to the user's system. Instead, compile the binary shema cache in a local directory and have the example use that. As a side effect, this also resolves the "make distcheck" failure when trying to install the schema. * examples/settings/settings.cc (main): Do not try to determine the schema directory from the executable name, as it depends too much on the libtool setup with the hidden .libs directory being part of the path name. Requiring the user to change to the example directory is good enough. Also, initialize the C++ locale on program startup, and call Gio::init() instead of Glib::init(). (on_key_changed): Call ustring::raw() to suppress the locale-aware comparison ustring performs by default.
* Avoid compiler warning.Murray Cumming2010-06-041-1/+1
| | | | | * examples/settings/settings.cc: Comment out an unused paramter to fix a compiler warning, to partly fix the distcheck.
* Add basic Gio::Settings exampleJonathon Jongsma2010-04-212-0/+80