Le lundi 30 mai 2011 à 20:17 -0400, Morten Welinder a écrit : > Doing a g_return_val_if_fail is fine here. That will give the user a > chance of saving his work. This is in contrast to g_error which is a > sure way of eating data. There's no "work" of "data" here. Programs load GSettings on start, and OTC it's far better for users' data to ensure a program won't start without schemas. If it pretends to work, it might crash at any point because the code paths run when schemas are not present are poorly tested (if at all), and do nasty things to the data it works with.
Regards _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list