[yelp] yelp-application: Fix bookmark updating



commit 8b5ad3261bf1a7df86a1c5f50f8f6e8104d97aa5
Author: Shaun McCance <shaunm gnome org>
Date:   Fri Jan 20 15:33:30 2012 -0500

    yelp-application: Fix bookmark updating
    
    I was calling g_settings_set incorrectly, and it cleared out the
    bookmarks for a document whenever one had to be updated. This might
    fix bug #649432, though I couldn't reproduce a crash.

 src/yelp-application.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/yelp-application.c b/src/yelp-application.c
index a0a3604..4aafade 100644
--- a/src/yelp-application.c
+++ b/src/yelp-application.c
@@ -672,7 +672,8 @@ yelp_application_update_bookmarks (YelpApplication   *app,
         g_variant_iter_free (iter);
 
         if (updated)
-            g_settings_set (settings, "bookmarks", "a(sss)", builder);
+            g_settings_set_value (settings, "bookmarks",
+                                  g_variant_builder_end (&builder));
         else
             g_variant_builder_clear (&builder);
     }



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