aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-03-14 21:42:14 +0800
committerXan Lopez <xan@igalia.com>2012-03-14 21:42:14 +0800
commit035fbe726fca2110054ac45965fe699ca8e30eed (patch)
tree0f26764f7e57ddc4b89513e5fd9da8a77bb9f05a /embed
parent4a0f71e24f7df2fe66a433416eb276d9b60992c7 (diff)
downloadgsoc2013-epiphany-035fbe726fca2110054ac45965fe699ca8e30eed.tar
gsoc2013-epiphany-035fbe726fca2110054ac45965fe699ca8e30eed.tar.gz
gsoc2013-epiphany-035fbe726fca2110054ac45965fe699ca8e30eed.tar.bz2
gsoc2013-epiphany-035fbe726fca2110054ac45965fe699ca8e30eed.tar.lz
gsoc2013-epiphany-035fbe726fca2110054ac45965fe699ca8e30eed.tar.xz
gsoc2013-epiphany-035fbe726fca2110054ac45965fe699ca8e30eed.tar.zst
gsoc2013-epiphany-035fbe726fca2110054ac45965fe699ca8e30eed.zip
ephy-embed-single: remove network status
We are not using it. Easy enough to bring it back if needed.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-single.c91
-rw-r--r--embed/ephy-embed-single.h5
2 files changed, 0 insertions, 96 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 3062d92b3..5192156fb 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -46,56 +46,13 @@
#define EPHY_EMBED_SINGLE_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_EMBED_SINGLE, EphyEmbedSinglePrivate))
struct _EphyEmbedSinglePrivate {
- guint online : 1;
-
GHashTable *form_auth_data;
SoupCache *cache;
};
-enum {
- PROP_0,
- PROP_NETWORK_STATUS
-};
-
static void ephy_embed_single_init (EphyEmbedSingle *single);
static void ephy_embed_single_class_init (EphyEmbedSingleClass *klass);
-static void
-ephy_embed_single_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec)
-{
- EphyEmbedSingle *single = EPHY_EMBED_SINGLE (object);
-
- switch (prop_id) {
- case PROP_NETWORK_STATUS:
- g_value_set_boolean (value, ephy_embed_single_get_network_status (single));
- break;
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- break;
- }
-}
-
-static void
-ephy_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;
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- break;
- }
-}
-
G_DEFINE_TYPE (EphyEmbedSingle, ephy_embed_single, G_TYPE_OBJECT)
static void
@@ -253,7 +210,6 @@ ephy_embed_single_init (EphyEmbedSingle *single)
EphyEmbedSinglePrivate *priv;
single->priv = priv = EPHY_EMBED_SINGLE_GET_PRIVATE (single);
- priv->online = TRUE;
priv->form_auth_data = g_hash_table_new_full (g_str_hash,
g_str_equal,
@@ -269,8 +225,6 @@ ephy_embed_single_class_init (EphyEmbedSingleClass *klass)
object_class->finalize = ephy_embed_single_finalize;
object_class->dispose = ephy_embed_single_dispose;
- object_class->get_property = ephy_embed_single_get_property;
- object_class->set_property = ephy_embed_single_set_property;
/**
* EphyEmbedSingle::new-window:
@@ -317,20 +271,6 @@ ephy_embed_single_class_init (EphyEmbedSingleClass *klass)
G_TYPE_STRING,
G_TYPE_STRING);
- /**
- * EphyEmbedSingle::network-status:
- *
- * Whether the network is on-line.
- */
- g_object_class_install_property
- (object_class,
- PROP_NETWORK_STATUS,
- g_param_spec_boolean ("network-status",
- "network-status",
- "network-status",
- FALSE,
- G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
-
g_type_class_add_private (object_class, sizeof (EphyEmbedSinglePrivate));
}
@@ -455,37 +395,6 @@ ephy_embed_single_clear_auth_cache (EphyEmbedSingle *single)
}
/**
- * ephy_embed_single_get_nework_status:
- * @single: the #EphyEmbedSingle
- * @offline: %TRUE if the network is on-line
- *
- * Sets the state of the network connection.
- **/
-void
-ephy_embed_single_set_network_status (EphyEmbedSingle *single,
- gboolean status)
-{
- if (status != single->priv->online)
- single->priv->online = status;
-
- g_object_notify (G_OBJECT (single), "network-status");
-}
-
-/**
- * ephy_embed_single_get_network_status:
- * @single: the #EphyEmbedSingle
- *
- * Gets the state of the network connection.
- *
- * Returns: %TRUE iff the network is on-line.
- **/
-gboolean
-ephy_embed_single_get_network_status (EphyEmbedSingle *single)
-{
- return single->priv->online;
-}
-
-/**
* ephy_embed_single_open_window:
* @single: the #EphyEmbedSingle
* @parent: the requested window's parent #EphyEmbed
diff --git a/embed/ephy-embed-single.h b/embed/ephy-embed-single.h
index bb4ffc67e..126dfcbeb 100644
--- a/embed/ephy-embed-single.h
+++ b/embed/ephy-embed-single.h
@@ -83,11 +83,6 @@ void ephy_embed_single_clear_cache (EphyEmbedSingle *single);
void ephy_embed_single_clear_auth_cache (EphyEmbedSingle *single);
-void ephy_embed_single_set_network_status (EphyEmbedSingle *single,
- gboolean online);
-
-gboolean ephy_embed_single_get_network_status (EphyEmbedSingle *single);
-
GSList * ephy_embed_single_get_form_auth (EphyEmbedSingle *single,
const char *uri);