diff options
author | Fabien Tassin <fta@sofaraway.org> | 2013-03-07 01:14:06 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-03-07 01:15:02 +0800 |
commit | 51bc12ddecbab5ecfadeaf02a35f142d8cca34cf (patch) | |
tree | 3c4598eaa428a82bbf0f585a77967437d897329b /e-util | |
parent | 8c903b93204d4ea1f72c588dda25643d608d6d2d (diff) | |
download | gsoc2013-evolution-51bc12ddecbab5ecfadeaf02a35f142d8cca34cf.tar.gz gsoc2013-evolution-51bc12ddecbab5ecfadeaf02a35f142d8cca34cf.tar.zst gsoc2013-evolution-51bc12ddecbab5ecfadeaf02a35f142d8cca34cf.zip |
Bug #695193 - Window size resets to default at exit with gtk 3.7.10+
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-misc-utils.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/e-util/e-misc-utils.c b/e-util/e-misc-utils.c index 7d1a0c6028..563a69c54c 100644 --- a/e-util/e-misc-utils.c +++ b/e-util/e-misc-utils.c @@ -178,11 +178,9 @@ window_unmap_cb (GtkWindow *window, if (data->timeout_id > 0) g_source_remove (data->timeout_id); - /* It's too late to record the window position. - * gtk_window_get_position() will report (0, 0). */ - data->flags &= ~E_RESTORE_WINDOW_POSITION; - - window_update_settings (data); + /* Reset the flags so the window position and size are not + * accidentally reverted to their default value at the next run. */ + data->flags = 0; return FALSE; } |