diff options
author | David Bordoley <bordoley@msu.edu> | 2003-05-14 21:41:46 +0800 |
---|---|---|
committer | Dave Bordoley <Bordoley@src.gnome.org> | 2003-05-14 21:41:46 +0800 |
commit | 9d573dc9d9f047d1ec4bbb0776f3c7bc5e83768e (patch) | |
tree | 7c21262dfeb545257f7882a76c27bc7a090cf49b /lib/ephy-state.c | |
parent | ab4fc64696bd1f23bc41943b91939b77a86e164a (diff) | |
download | gsoc2013-epiphany-9d573dc9d9f047d1ec4bbb0776f3c7bc5e83768e.tar gsoc2013-epiphany-9d573dc9d9f047d1ec4bbb0776f3c7bc5e83768e.tar.gz gsoc2013-epiphany-9d573dc9d9f047d1ec4bbb0776f3c7bc5e83768e.tar.bz2 gsoc2013-epiphany-9d573dc9d9f047d1ec4bbb0776f3c7bc5e83768e.tar.lz gsoc2013-epiphany-9d573dc9d9f047d1ec4bbb0776f3c7bc5e83768e.tar.xz gsoc2013-epiphany-9d573dc9d9f047d1ec4bbb0776f3c7bc5e83768e.tar.zst gsoc2013-epiphany-9d573dc9d9f047d1ec4bbb0776f3c7bc5e83768e.zip |
Add some flags so that we can choose to save position or size or both.
2003-05-14 David Bordoley <bordoley@msu.edu>
* lib/ephy-state.c: (ephy_state_add_window):
* lib/ephy-state.h: (EphyStateWindowFlags):
Add some flags so that we can choose to save
position or size or both.
* lib/ephy-dialog.c: (setup_default_size):
* src/ephy-window.c: (ephy_window_show):
* src/window-commands.c: (window_cmd_edit_toolbar):
* src/bookmarks/ephy-bookmark-properties.c: (build_ui):
* src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_construct):
Only save size for dialogs and main windows.
* src/ephy-history-window.c: (ephy_history_window_construct):
* src/bookmarks/ephy-bookmarks-editor.c:
(ephy_bookmarks_editor_construct):
Save size and position.
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); |