[maemo-commits] [maemo-commits] r12250 - in projects/haf/trunk/hildon-1: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jun 12 16:16:47 EEST 2007
Author: mdk
Date: 2007-06-12 16:16:46 +0300 (Tue, 12 Jun 2007)
New Revision: 12250

Modified:
   projects/haf/trunk/hildon-1/ChangeLog
   projects/haf/trunk/hildon-1/src/hildon-window.c
Log:
Hide the window before performing the destroy. Should make the app closing a little tiny bit more snappy. 


Modified: projects/haf/trunk/hildon-1/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-1/ChangeLog	2007-06-12 13:08:58 UTC (rev 12249)
+++ projects/haf/trunk/hildon-1/ChangeLog	2007-06-12 13:16:46 UTC (rev 12250)
@@ -1,3 +1,8 @@
+2007-06-12  Michael Dominic Kostrzewa  <michael.kostrzewa at nokia.com> 
+
+	* src/hildon-window.c: Hide the window before performing the destroy.
+	Should make the app closing a little tiny bit more snappy. 
+
 2007-06-12  Xan Lopez  <xan.lopez at nokia.com>
 
 	* src/hildon-seekbar.c: add gtkrange.h header

Modified: projects/haf/trunk/hildon-1/src/hildon-window.c
===================================================================
--- projects/haf/trunk/hildon-1/src/hildon-window.c	2007-06-12 13:08:58 UTC (rev 12249)
+++ projects/haf/trunk/hildon-1/src/hildon-window.c	2007-06-12 13:16:46 UTC (rev 12250)
@@ -770,6 +770,10 @@
     HildonWindowPrivate *priv = HILDON_WINDOW_GET_PRIVATE (obj);
     GList *menu_list = NULL;
     GList *menu_node = NULL;
+
+    gtk_widget_hide ((GtkWidget *) self);
+    while (gtk_events_pending ())
+        gtk_main_iteration ();
     
     g_assert (priv != NULL);
 
@@ -832,7 +836,6 @@
     GTK_OBJECT_CLASS (parent_class)->destroy (obj);
 }
 
-
 static void
 hildon_window_notify                            (GObject *gobject, 
                                                  GParamSpec *param)


More information about the maemo-commits mailing list