GApplication: g_settings_sync() on exit
authorRyan Lortie <desrt@desrt.ca>
Mon, 11 Apr 2011 07:30:24 +0000 (03:30 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 11 Apr 2011 07:41:10 +0000 (03:41 -0400)
Call g_settings_sync() just before g_applcation_run() returns.  This is
really the correct thing to do in every case that you're using GSettings
and it prevents every single application from having to do it for
themselves.

Closes bug #647419.

gio/gapplication.c

index c37c3db6500e76701a0d453af3ecd1f690bf8bb9..ee6cbe9c40762ad6d58aa16c8ab32c76b7d2d313 100644 (file)
@@ -1329,6 +1329,8 @@ g_application_run (GApplication  *application,
   if (application->priv->impl)
     g_application_impl_flush (application->priv->impl);
 
+  g_settings_sync ();
+
   return status;
 }