[maemo-commits] [maemo-commits] r14081 - in projects/haf/trunk/hildon-desktop: . libhildonwm

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Sep 25 16:58:46 EEST 2007
Author: jobi
Date: 2007-09-25 16:58:45 +0300 (Tue, 25 Sep 2007)
New Revision: 14081

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/libhildonwm/hd-wm.c
Log:

2007-09-25 Johan Bilien  <johan.bilien at nokia.com>

	* libhildonwm/hd-wm.c: do not send the application-starting signal
	if the application has a window already or has requested not
	to show notifications.



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-25 13:40:31 UTC (rev 14080)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-25 13:58:45 UTC (rev 14081)
@@ -1,5 +1,11 @@
 2007-09-25 Johan Bilien  <johan.bilien at nokia.com>
 
+	* libhildonwm/hd-wm.c: do not send the application-starting signal
+	if the application has a window already or has requested not
+	to show notifications.
+
+2007-09-25 Johan Bilien  <johan.bilien at nokia.com>
+
 	* libhildondesktop/hildon-thumb-menu-item.c: do not disable
 	ellipses. Fixes: NB#70867
 

Modified: projects/haf/trunk/hildon-desktop/libhildonwm/hd-wm.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildonwm/hd-wm.c	2007-09-25 13:40:31 UTC (rev 14080)
+++ projects/haf/trunk/hildon-desktop/libhildonwm/hd-wm.c	2007-09-25 13:58:45 UTC (rev 14081)
@@ -582,11 +582,11 @@
 	return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
     }
 
-    g_debug ("application starting: %s", service);
-
     app = hd_wm_lookup_application_via_service (service);
 
-    if (app)
+    if (app &&
+        !hd_wm_application_has_windows (app) &&
+        hd_wm_application_has_startup_notify (app))
     {
       g_signal_emit_by_name (hdwm,
                              "application-starting",


More information about the maemo-commits mailing list