[maemo-commits] [maemo-commits] r8639 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildondesktop

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Dec 5 16:16:40 EET 2006
Author: jobi
Date: 2006-12-05 16:16:38 +0200 (Tue, 05 Dec 2006)
New Revision: 8639

Modified:
   projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
   projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-home-window.c
Log:

2006-12-05  Johan Bilien  <johan.bilien at nokia.com>

	* libhildondesktop/hildon-home-window.c: when an applet is added,
	only save after layout mode ends.



Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog	2006-12-05 14:14:17 UTC (rev 8638)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog	2006-12-05 14:16:38 UTC (rev 8639)
@@ -1,5 +1,10 @@
 2006-12-05  Johan Bilien  <johan.bilien at nokia.com>
 
+	* libhildondesktop/hildon-home-window.c: when an applet is added,
+	only save after layout mode ends.
+
+2006-12-05  Johan Bilien  <johan.bilien at nokia.com>
+
 	* debian/libhildonwm*.install:
 	- added
 

Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-home-window.c
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-home-window.c	2006-12-05 14:14:17 UTC (rev 8638)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hildon-home-window.c	2006-12-05 14:16:38 UTC (rev 8639)
@@ -172,6 +172,16 @@
   g_signal_emit_by_name (window, "select-plugins", NULL);
   g_debug ("After select-plugins ");
   priv->selecting_applets = FALSE;
+
+  if (HILDON_IS_HOME_AREA (priv->applet_area))
+    {
+      HildonHomeArea *area = HILDON_HOME_AREA (priv->applet_area);
+
+      /* If we are in layout mode, we only save when layout mode is
+       * accepted */
+      if (!hildon_home_area_get_layout_mode (area))
+        g_signal_emit_by_name (window, "save", NULL);
+    }
 }
 
 static void


More information about the maemo-commits mailing list