[libgsf] GsfOutput:name is writable.



commit 8e77cec8867b9aeb9010df403e360070e30681e5
Author: Morten Welinder <terra gnome org>
Date:   Fri Mar 8 10:26:10 2013 -0500

    GsfOutput:name is writable.

 ChangeLog        |    3 +++
 gsf/gsf-output.c |    7 +++++--
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c488cb7..5182b52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-03-08  Morten Welinder  <terra gnome org>
 
+       * gsf/gsf-output.c (gsf_output_set_property): Make name property
+       writable.
+
        * gsf/gsf-input.c (gsf_input_dup): Simplify.  Prevent leak of
        container ref if derived class set one.
 
diff --git a/gsf/gsf-output.c b/gsf/gsf-output.c
index 4d2b4a9..b0cc2cd 100644
--- a/gsf/gsf-output.c
+++ b/gsf/gsf-output.c
@@ -55,12 +55,15 @@ enum {
 static void
 gsf_output_set_property (GObject      *object,
                         guint         property_id,
-        G_GNUC_UNUSED   GValue const *value,
+                        GValue const *value,
                         GParamSpec   *pspec)
 {
        GsfOutput *output = GSF_OUTPUT (object);
 
        switch (property_id) {
+       case PROP_NAME:
+               gsf_output_set_name (output, g_value_get_string (value));
+               break;
        case PROP_MODTIME: {
                GDateTime *modtime = g_value_get_boxed (value);
                if (modtime)
@@ -170,7 +173,7 @@ gsf_output_class_init (GObjectClass *gobject_class)
                                      _("The output's name"),
                                      NULL,
                                      GSF_PARAM_STATIC |
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READWRITE));
 
        /**
         * GsfOutput:size:


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