[glibmm] Removal of length parameter for g_settings_[gs]et_strv



commit d514876587ac7c44a9883c09225251bdd44bf33b
Author: Chris Kühl <blixtra gmail com>
Date:   Fri Jun 4 17:28:55 2010 +0200

    Removal of length parameter for g_settings_[gs]et_strv
    
    * gio/src/settings.ccg: Removed length parameter from
      get_string_array and set_string_array.

 ChangeLog            |    7 +++++++
 gio/src/settings.ccg |    4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 25c61df..5841344 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-06-04  Chris Kühl  <blixtra gmail com>
+
+	Removal of length parameter for g_settings_[gs]et_strv
+
+	* gio/src/settings.ccg: Removed length parameter from
+	  get_string_array and set_string_array.
+
 2010-06-04  Murray Cumming  <murrayc murrayc com>
 
     Avoid compiler warning.
diff --git a/gio/src/settings.ccg b/gio/src/settings.ccg
index 5b4eff0..479bfc0 100644
--- a/gio/src/settings.ccg
+++ b/gio/src/settings.ccg
@@ -13,14 +13,14 @@ Glib::ArrayHandle<Glib::ustring>
   Settings::get_string_array(const Glib::ustring& key) const
 {
   gchar** result = g_settings_get_strv(const_cast<GSettings*>(gobj()),
-    key.c_str(), 0);
+    key.c_str());
   return Glib::ArrayHandle<Glib::ustring>(result, Glib::OWNERSHIP_DEEP);
 }
 
 bool Settings::set_string_array(const Glib::ustring& key,
   const Glib::ArrayHandle<Glib::ustring>& value)
 {
-  return g_settings_set_strv(gobj(), key.c_str(), value.data(), value.size());
+  return g_settings_set_strv(gobj(), key.c_str(), value.data());
 }
 
 void Settings::bind(const Glib::ustring& key,



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