From 9bd86937bbf9842ed7884077a04f76757a086734 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 8 Nov 2005 13:10:10 +0000 Subject: Make "network-status" property readwrite. 2005-11-08 Christian Persch * embed/ephy-embed-single.c: (ephy_embed_single_iface_init): * embed/mozilla/mozilla-embed-single.cpp: Make "network-status" property readwrite. --- embed/mozilla/mozilla-embed-single.cpp | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'embed/mozilla/mozilla-embed-single.cpp') diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 2c1ac191a..201689516 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -1011,9 +1011,9 @@ impl_open_window (EphyEmbedSingle *single, static void mozilla_embed_single_get_property (GObject *object, - guint prop_id, - GValue *value, - GParamSpec *pspec) + guint prop_id, + GValue *value, + GParamSpec *pspec) { EphyEmbedSingle *single = EPHY_EMBED_SINGLE (object); @@ -1025,6 +1025,21 @@ mozilla_embed_single_get_property (GObject *object, } } +static void +mozilla_embed_single_set_property (GObject *object, + guint prop_id, + const GValue *value, + GParamSpec *pspec) +{ + EphyEmbedSingle *single = EPHY_EMBED_SINGLE (object); + + switch (prop_id) + { + case PROP_NETWORK_STATUS: + ephy_embed_single_set_network_status (single, g_value_get_boolean (value)); + break; + } +} static void mozilla_embed_single_class_init (MozillaEmbedSingleClass *klass) { @@ -1035,6 +1050,7 @@ mozilla_embed_single_class_init (MozillaEmbedSingleClass *klass) object_class->dispose = mozilla_embed_single_dispose; object_class->finalize = mozilla_embed_single_finalize; object_class->get_property = mozilla_embed_single_get_property; + object_class->set_property = mozilla_embed_single_set_property; g_object_class_override_property (object_class, PROP_NETWORK_STATUS, "network-status"); -- cgit