From 85939a287cbb2b9c789581ddc6d529dd24d2c870 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 12 Oct 2005 19:45:07 +0000 Subject: Remove the "network-status" signal from the embed single, and make it a 2005-10-12 Christian Persch * embed/ephy-embed-single.c: (ephy_embed_single_iface_init), (ephy_embed_single_set_network_status), (ephy_embed_single_get_network_status): * embed/ephy-embed-single.h: * embed/mozilla/EphySingle.cpp: * embed/mozilla/EphySingle.h: * embed/mozilla/mozilla-embed-single.cpp: * src/ephy-window.c: (sync_tab_icon), (sync_network_status), (ephy_window_dispose), (ephy_window_init): * src/epiphany.defs: * src/window-commands.c: (window_cmd_file_work_offline): Remove the "network-status" signal from the embed single, and make it a property instead. Keep track of the network status in EphySingle, and emit property notification when it changes. --- embed/ephy-embed-single.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'embed/ephy-embed-single.h') diff --git a/embed/ephy-embed-single.h b/embed/ephy-embed-single.h index d275ea116..a89399b2b 100644 --- a/embed/ephy-embed-single.h +++ b/embed/ephy-embed-single.h @@ -61,10 +61,6 @@ struct _EphyEmbedSingleIface char *mime_type, char *uri); - void (* network_status) (EphyEmbedSingle *single, - gboolean offline); - - gboolean (* add_sidebar) (EphyEmbedSingle *single, const char *url, const char *title); @@ -88,9 +84,9 @@ struct _EphyEmbedSingleIface const char *features); void (* clear_cache) (EphyEmbedSingle *shell); void (* clear_auth_cache) (EphyEmbedSingle *shell); - void (* set_offline_mode) (EphyEmbedSingle *shell, + void (* set_network_status)(EphyEmbedSingle *shell, gboolean offline); - gboolean (* get_offline_mode) (EphyEmbedSingle *single); + gboolean (* get_network_status)(EphyEmbedSingle *single); GList * (* get_font_list) (EphyEmbedSingle *shell, const char *langGroup); }; @@ -107,10 +103,10 @@ void ephy_embed_single_clear_cache (EphyEmbedSingle *single); void ephy_embed_single_clear_auth_cache (EphyEmbedSingle *single); -void ephy_embed_single_set_offline_mode (EphyEmbedSingle *single, - gboolean offline); +void ephy_embed_single_set_network_status (EphyEmbedSingle *single, + gboolean online); -gboolean ephy_embed_single_get_offline_mode (EphyEmbedSingle *single); +gboolean ephy_embed_single_get_network_status (EphyEmbedSingle *single); GList *ephy_embed_single_get_font_list (EphyEmbedSingle *single, const char *lang_group); -- cgit v1.2.3