dia r4304 - in trunk: . lib
- From: hans svn gnome org
- To: svn-commits-list gnome org
- Subject: dia r4304 - in trunk: . lib
- Date: Sat, 7 Mar 2009 00:08:00 +0000 (UTC)
Author: hans
Date: Sat Mar 7 00:08:00 2009
New Revision: 4304
URL: http://svn.gnome.org/viewvc/dia?rev=4304&view=rev
Log:
2009-03-07 Hans Breuer <hans breuer org>
* lib/persitence.c : updating/serializing window positions had issues,
now hopefully fixed, bug #574388
Modified:
trunk/ChangeLog
trunk/lib/persistence.c
Modified: trunk/lib/persistence.c
==============================================================================
--- trunk/lib/persistence.c (original)
+++ trunk/lib/persistence.c Sat Mar 7 00:08:00 2009
@@ -34,6 +34,7 @@
#include "dia_dirs.h"
#include "dia_xml_libxml.h"
#include "dia_xml.h"
+#include "message.h"
#include <gtk/gtk.h>
#include <libxml/tree.h>
@@ -516,6 +517,8 @@
wininfo->window = window;
g_object_ref(window);
}
+ /* catch the transistion */
+ wininfo->isopen = !isclosed;
}
/** Handler for window-related events that should cause persistent storage
@@ -528,14 +531,19 @@
static gboolean
persistence_window_event_handler(GtkWindow *window, GdkEvent *event, gpointer data)
{
-#if 0
switch (event->type) {
- case GDK_UNMAP : printf ("unmap (%s)\n", persistence_get_window_name(window)); break;
- case GDK_MAP : printf ("map (%s)\n", persistence_get_window_name(window)); break;
- case GDK_CONFIGURE : printf ("configure (%s)\n", persistence_get_window_name(window)); break;
+ case GDK_UNMAP :
+ dia_log_message ("unmap (%s)", persistence_get_window_name(window));
+ break;
+ case GDK_MAP :
+ dia_log_message ("map (%s)", persistence_get_window_name(window));
+ break;
+ case GDK_CONFIGURE :
+ dia_log_message ("configure (%s)", persistence_get_window_name(window));
+ break;
}
-#endif
persistence_update_window(window, (event->type == GDK_UNMAP));
+ /* continue processing */
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]