Re: GSettings are not saved



I figured it out, I was calling panel_applet_settings_new() instead of g_settings new, and also my schema had no path set.

Maybe panel_applet_settings_new should get the comment in the docs, that it does not retain the settings.

On 26/08/12 17:13, Jasper St. Pierre wrote:
On Sun, Aug 26, 2012 at 11:11 AM, Lanoxx <lanoxx gmx net> wrote:
I have a very weired issue with GSettings in my application:

I am using the following code:

     g_settings_set_boolean (mainapp->settings, key, is_active);
     if(g_settings_get_has_unapplied (mainapp->settings)) {
         g_warning("Found unapplied settings");
     }

The warning is never printed, so I assume that the changes are applied
directly, but when I restart my application, then all settings are
forgotten. Is GSettings not supposed to remember the option through a
restart of the application? Or ist there any other magic involved that I do
not know about?
Does GSettings say anything about using the memory backend when you
start your app from a terminal?

Kind Regards
Lanoxx
_______________________________________________
desktop-devel-list mailing list
desktop-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]