[maemo-commits] [maemo-commits] r13392 - in projects/haf/branches/hildon-control-panel/refactoring: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Aug 24 13:47:15 EEST 2007
Author: lucasr
Date: 2007-08-24 13:47:13 +0300 (Fri, 24 Aug 2007)
New Revision: 13392

Modified:
   projects/haf/branches/hildon-control-panel/refactoring/ChangeLog
   projects/haf/branches/hildon-control-panel/refactoring/src/hcp-app-list.c
   projects/haf/branches/hildon-control-panel/refactoring/src/hcp-window.c
Log:
2007-08-10  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/hcp-window.c (hcp_window_quit): save state before closing
	control panel in order to restore the last focused applet.
	Fixes NB#66542.


Modified: projects/haf/branches/hildon-control-panel/refactoring/ChangeLog
===================================================================
--- projects/haf/branches/hildon-control-panel/refactoring/ChangeLog	2007-08-24 10:00:22 UTC (rev 13391)
+++ projects/haf/branches/hildon-control-panel/refactoring/ChangeLog	2007-08-24 10:47:13 UTC (rev 13392)
@@ -1,5 +1,11 @@
 2007-08-10  Lucas Rocha  <lucas.rocha at nokia.com>
 
+	* src/hcp-window.c (hcp_window_quit): save state before closing
+	control panel in order to restore the last focused applet.
+	Fixes NB#66542.
+
+2007-08-10  Lucas Rocha  <lucas.rocha at nokia.com>
+
 	* src/hcp-grid.c (hcp_grid_init): do not set "follow-state" to true in
 	the pixbuf renderer. Fixes NB#61741.
 

Modified: projects/haf/branches/hildon-control-panel/refactoring/src/hcp-app-list.c
===================================================================
--- projects/haf/branches/hildon-control-panel/refactoring/src/hcp-app-list.c	2007-08-24 10:00:22 UTC (rev 13391)
+++ projects/haf/branches/hildon-control-panel/refactoring/src/hcp-app-list.c	2007-08-24 10:47:13 UTC (rev 13392)
@@ -492,7 +492,7 @@
                     "text-domain", text_domain,
                     NULL);
     }
-   
+  
     g_hash_table_insert (priv->apps, g_strdup (plugin), app);
 
     g_free (name);

Modified: projects/haf/branches/hildon-control-panel/refactoring/src/hcp-window.c
===================================================================
--- projects/haf/branches/hildon-control-panel/refactoring/src/hcp-window.c	2007-08-24 10:00:22 UTC (rev 13391)
+++ projects/haf/branches/hildon-control-panel/refactoring/src/hcp-window.c	2007-08-24 10:47:13 UTC (rev 13392)
@@ -133,7 +133,7 @@
 
     app = g_hash_table_lookup (apps,
                                priv->saved_focused_filename);
-
+    
     if (app)
       hcp_app_focus (app);
 
@@ -307,7 +307,7 @@
 
   if (ret != OSSO_OK)
   {
-    g_warning ("An error occured when reading application state");
+    g_warning ("An error occured when writing application state");
   }
 
   /* If a plugin is running, save its state */
@@ -699,7 +699,7 @@
   g_return_if_fail (window);
   g_return_if_fail (HCP_IS_WINDOW (window));
 
-  hcp_window_save_state (window, TRUE);
+  hcp_window_save_state (window, FALSE);
 
   gtk_widget_destroy (GTK_WIDGET (window));
 


More information about the maemo-commits mailing list