Re: GSettings are not saved



Le lundi 27 août 2012, à 01:37 +0200, Lanoxx a écrit :
> The reason was also that my schema did not have a path set. But for
> some reason panel_applet_settings_new() does not warn about this,
> when I switched to g_settings_new() i got a Gtk-Critical exception,
> thats when I noticed my schema needs a path.

As I said, panel_applet_settings_new() is a wrapper around
g_settings_new_with_path(). That's why you don't need a path in the
schema -- the path is defined by gnome-panel for your applet.

Vincent

> On 26/08/12 20:21, Vincent Untz wrote:
> >Le dimanche 26 août 2012, à 19:15 +0200, Lanoxx a écrit :
> >>Maybe panel_applet_settings_new should get the comment in the docs,
> >>that it does not retain the settings.
> >Not sure what you mean -- the settings should definitely be saved.
> >panel_applet_settings_new() is simply a wrapper around
> >g_settings_new_with_path(), with a path provided by gnome-panel.
> >
> >Vincent
> >
> 
> _______________________________________________
> desktop-devel-list mailing list
> desktop-devel-list gnome org
> https://mail.gnome.org/mailman/listinfo/desktop-devel-list
> 

-- 
Les gens heureux ne sont pas pressés.


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