[glib] giostream: "closed" property should not be marked writable
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] giostream: "closed" property should not be marked writable
- Date: Fri, 23 Sep 2011 12:54:56 +0000 (UTC)
commit bec571dc790f67a9ee13683b13011ae45ffd393c
Author: Dan Winship <danw gnome org>
Date: Fri Sep 23 08:53:47 2011 -0400
giostream: "closed" property should not be marked writable
https://bugzilla.gnome.org/show_bug.cgi?id=659920
gio/giostream.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/gio/giostream.c b/gio/giostream.c
index b892c84..593eeda 100644
--- a/gio/giostream.c
+++ b/gio/giostream.c
@@ -148,19 +148,6 @@ g_io_stream_get_property (GObject *object,
}
static void
-g_io_stream_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec)
-{
- switch (prop_id)
- {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- }
-}
-
-static void
g_io_stream_class_init (GIOStreamClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
@@ -169,7 +156,6 @@ g_io_stream_class_init (GIOStreamClass *klass)
gobject_class->finalize = g_io_stream_finalize;
gobject_class->dispose = g_io_stream_dispose;
- gobject_class->set_property = g_io_stream_set_property;
gobject_class->get_property = g_io_stream_get_property;
klass->close_fn = g_io_stream_real_close;
@@ -181,7 +167,7 @@ g_io_stream_class_init (GIOStreamClass *klass)
P_("Closed"),
P_("Is the stream closed"),
FALSE,
- G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_INPUT_STREAM,
g_param_spec_object ("input-stream",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]