[glib] GApplication: g_settings_sync() on exit



commit ff57ed5d6a67f91ef35ae947f3fea7ecce12ee7b
Author: Ryan Lortie <desrt desrt ca>
Date:   Mon Apr 11 03:30:24 2011 -0400

    GApplication: g_settings_sync() on exit
    
    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 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index c37c3db..ee6cbe9 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -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;
 }
 



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