aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-19 19:31:05 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-19 19:31:05 +0800
commita43f391a6c26f27d16ea8116bd62051a076733ca (patch)
treeb5f490e5d5cd94cfa32b4866d67112577056131a /src/ephy-shell.c
parent3c102efdf843bd1a8ff61875f1556037c163a95e (diff)
downloadgsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar.gz
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar.bz2
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar.lz
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar.xz
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar.zst
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.zip
With the gtk fullscreen api things can be cleaner: use the api instead of
2003-06-19 Marco Pesenti Gritti <marco@it.gnome.org> * embed/ephy-embed-types.h: * lib/ephy-state.c: (window_configure_event_cb), (window_state_event_cb): * src/ephy-window.c: (ephy_window_destroy), (ephy_window_class_init), (update_exit_fullscreen_popup_position), (size_changed_cb), (exit_fullscreen_button_clicked_cb), (update_chromes_visibility), (ephy_window_fullscreen), (ephy_window_unfullscreen), (ephy_window_state_event_cb), (setup_window), (sync_tab_icon), (sync_tab_load_progress), (sync_tab_load_status), (ephy_window_init), (save_window_chrome), (translate_default_chrome), (update_layout_toggles), (ephy_window_set_chrome), (ephy_window_show): * src/window-commands.c: (window_cmd_view_fullscreen): With the gtk fullscreen api things can be cleaner: use the api instead of chromes to handle fullscreen, dont persist window state when it's fullscreen. Destroy exit fullscreen button on window destroy. * src/ephy-shell.c: (ephy_shell_new_tab): Give up on cloning until we find a good way to do it :/
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 8e3201fda..5489222d6 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -399,25 +399,13 @@ ephy_shell_new_tab (EphyShell *shell,
jump_to);
gtk_widget_show (GTK_WIDGET(window));
- if (flags & EPHY_NEW_TAB_HOME_PAGE)
+ if (flags & EPHY_NEW_TAB_HOME_PAGE ||
+ flags & EPHY_NEW_TAB_NEW_PAGE)
{
toolbar_edit_location (toolbar);
load_homepage (embed);
}
- else if (flags & EPHY_NEW_TAB_NEW_PAGE)
- {
- char *previous_address = NULL;
-
- g_return_val_if_fail (previous_embed != NULL, NULL);
- ephy_embed_get_location (previous_embed, TRUE,
- &previous_address);
- toolbar_set_location (toolbar, previous_address);
- toolbar_edit_location (toolbar);
- g_free (previous_address);
-
- load_homepage (embed);
- }
else if (flags & EPHY_NEW_TAB_OPEN_PAGE)
{
g_assert (url != NULL);
@@ -436,8 +424,7 @@ ephy_shell_new_tab (EphyShell *shell,
if (flags & EPHY_NEW_TAB_FULLSCREEN_MODE)
{
- ephy_window_set_chrome (window, EMBED_CHROME_OPENASFULLSCREEN |
- EMBED_CHROME_DEFAULT);
+ gtk_window_fullscreen (GTK_WINDOW (window));
}
return tab;