diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-11-08 21:10:10 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-11-08 21:10:10 +0800 |
commit | 9bd86937bbf9842ed7884077a04f76757a086734 (patch) | |
tree | 7d26f1c572ec09295f377c464a6891bd131216c9 /embed/mozilla/mozilla-embed-single.cpp | |
parent | 120c3497530166c3d0c6ce1e40dd3713b2561b40 (diff) | |
download | gsoc2013-epiphany-9bd86937bbf9842ed7884077a04f76757a086734.tar gsoc2013-epiphany-9bd86937bbf9842ed7884077a04f76757a086734.tar.gz gsoc2013-epiphany-9bd86937bbf9842ed7884077a04f76757a086734.tar.bz2 gsoc2013-epiphany-9bd86937bbf9842ed7884077a04f76757a086734.tar.lz gsoc2013-epiphany-9bd86937bbf9842ed7884077a04f76757a086734.tar.xz gsoc2013-epiphany-9bd86937bbf9842ed7884077a04f76757a086734.tar.zst gsoc2013-epiphany-9bd86937bbf9842ed7884077a04f76757a086734.zip |
Make "network-status" property readwrite.
2005-11-08 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-embed-single.c: (ephy_embed_single_iface_init):
* embed/mozilla/mozilla-embed-single.cpp:
Make "network-status" property readwrite.
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 22 |
1 files changed, 19 insertions, 3 deletions
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); @@ -1026,6 +1026,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) { GObjectClass *object_class = G_OBJECT_CLASS (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"); |