I'm trying to edit a gsetting through a C++ program.
I've read this question and I'm able to get the value. If I try to set it (using set_uint method), change seems to be made (if I re-read it shows the new value) but, if I check manually, it is not so. Do I have to apply the edits? Or what else?
Example code:
#include <giomm/settings.h>
#include <iostream>
int main() {
    Glib::RefPtr<Gio::Settings> colorSetting = 
                  Gio::Settings::create("org.gnome.settings-daemon.plugins.color");
    Glib::ustring tempKey = "night-light-temperature";
    //Works!
    cout<<colorSetting->get_uint(tempKey)<<endl;
    //Seems to work
    colorSetting->set_uint(tempKey, (unsigned) 2300);
    //Reads new value correctly
    cout<<colorSetting->get_uint(tempKey)<<endl;
    return 0;
}
Thanks in advance.