diff options
Diffstat (limited to 'lib/ephy-state.c')
-rw-r--r-- | lib/ephy-state.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/ephy-state.c b/lib/ephy-state.c index bfab0e916..d6413ff76 100644 --- a/lib/ephy-state.c +++ b/lib/ephy-state.c @@ -303,7 +303,8 @@ void ephy_state_add_window (GtkWidget *window, const char *name, int default_width, - int default_height) + int default_height, + EphyStateWindowFlags flags) { EphyNode *node; @@ -358,8 +359,15 @@ ephy_state_add_window (GtkWidget *window, g_value_unset (&value); } - ephy_state_window_set_size (window, node); - ephy_state_window_set_position (window, node); + if (flags & EPHY_STATE_WINDOW_SAVE_SIZE) + { + ephy_state_window_set_size (window, node); + } + + if (flags & EPHY_STATE_WINDOW_SAVE_POSITION) + { + ephy_state_window_set_position (window, node); + } g_signal_connect_object (window, "configure_event", G_CALLBACK (window_configure_event_cb), node, 0); |