aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-11-08 21:10:10 +0800
committerChristian Persch <chpe@src.gnome.org>2005-11-08 21:10:10 +0800
commit9bd86937bbf9842ed7884077a04f76757a086734 (patch)
tree7d26f1c572ec09295f377c464a6891bd131216c9
parent120c3497530166c3d0c6ce1e40dd3713b2561b40 (diff)
downloadgsoc2013-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.
-rw-r--r--ChangeLog7
-rw-r--r--embed/ephy-embed-single.c2
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp22
3 files changed, 27 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index e2ba2ff21..bf7eccc7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
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.
+
+2005-11-08 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/ephy-embed-single.c: (ephy_embed_single_iface_init):
* lib/egg/eggstatusicon.c: (egg_status_icon_class_init):
* lib/egg/eggtrayicon.c: (egg_tray_icon_class_init):
* lib/widgets/ephy-location-entry.c:
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 3421206f3..4f2c50000 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -183,7 +183,7 @@ ephy_embed_single_iface_init (gpointer g_iface)
"network-status",
"network-status",
FALSE,
- G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
+ G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
initialised = TRUE;
}
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");