diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-06-27 02:28:44 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-06-27 02:28:44 +0800 |
commit | e497b299846293f001ad98f2b7dca3e68db2bf26 (patch) | |
tree | 967f73acbdd043c9f935d8e86093d7c35718b2bf /src/window-commands.c | |
parent | 4119e2dbc0194ff0bc2d7c903b10cd35180b32b0 (diff) | |
download | gsoc2013-epiphany-e497b299846293f001ad98f2b7dca3e68db2bf26.tar.gz gsoc2013-epiphany-e497b299846293f001ad98f2b7dca3e68db2bf26.tar.zst gsoc2013-epiphany-e497b299846293f001ad98f2b7dca3e68db2bf26.zip |
Implement File->Work Off-Line command and backend. No DBUS/HAL/whatever
2004-06-26 Christian Persch <chpe@cvs.gnome.org>
* data/ui/epiphany-ui.xml:
* embed/ephy-embed-single.c: (ephy_embed_single_iface_init),
(ephy_embed_single_set_offline_mode),
(ephy_embed_single_get_offline_mode):
* embed/ephy-embed-single.h:
* embed/mozilla/EphySingle.cpp:
* embed/mozilla/mozilla-embed-single.cpp:
* src/ephy-window.c: (network_status_changed), (ephy_window_init),
(ephy_window_finalize):
* src/window-commands.c: (window_cmd_file_save_as),
(window_cmd_file_work_offline):
* src/window-commands.h:
Implement File->Work Off-Line command and backend.
No DBUS/HAL/whatever integration yet.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r-- | src/window-commands.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/window-commands.c b/src/window-commands.c index 4139b6932..38724702f 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -22,6 +22,8 @@ #include "config.h" #endif +#include "ephy-embed-shell.h" +#include "ephy-embed-single.h" #include "ephy-shell.h" #include "ephy-embed-factory.h" #include "ephy-embed-persist.h" @@ -430,6 +432,19 @@ window_cmd_file_save_as (GtkAction *action, g_object_unref (G_OBJECT(persist)); } + +void +window_cmd_file_work_offline (GtkAction *action, + EphyWindow *window) +{ + EphyEmbedSingle *single; + gboolean offline; + + single = EPHY_EMBED_SINGLE (ephy_embed_shell_get_embed_single (embed_shell)); + offline = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); + ephy_embed_single_set_offline_mode (single, offline); +} + void window_cmd_file_close_window (GtkAction *action, EphyWindow *window) |