[evolution] Bug 201362 - Evolution doesn't remember window positions



commit 186faf3821d20ad3073bc3a23bd7e427b59be069
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Mar 10 22:42:27 2010 -0500

    Bug 201362 - Evolution doesn't remember window positions
    
    Finally found the bug in GConfBridge...

 e-util/gconf-bridge.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/e-util/gconf-bridge.c b/e-util/gconf-bridge.c
index ac1b4d4..d0f884d 100644
--- a/e-util/gconf-bridge.c
+++ b/e-util/gconf-bridge.c
@@ -739,6 +739,10 @@ window_binding_unmap_cb (GtkWindow     *window,
         if (binding->sync_timeout_id > 0)
                 g_source_remove (binding->sync_timeout_id);
 
+        /* XXX It's too late to record the window position.
+         *     gtk_window_get_position() will report (0, 0). */
+        binding->bind_pos = FALSE;
+
         window_binding_perform_scheduled_sync (binding);
 
         return FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]