[maemo-commits] [maemo-commits] r9013 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildonwm src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jan 9 20:04:01 EET 2007
Author: moimart
Date: 2007-01-09 20:04:00 +0200 (Tue, 09 Jan 2007)
New Revision: 9013

Modified:
   projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
   projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm-watched-window.c
   projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm.c
   projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm.h
   projects/haf/branches/maemo-af-desktop/hildon-desktop/src/hn-app-switcher.c
Log:

	* libhildonwm/hd-wm-watched-window.c:
        - Adding the application when is a watched window.
        * libhildonwm/hd-wm.[ch]:
        - (hd_wm_add_applications) made public.
        * src/hn-app-switcher.c: Decreased refreshing time.
	* ChangeLog updated.



Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog	2007-01-09 17:37:55 UTC (rev 9012)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog	2007-01-09 18:04:00 UTC (rev 9013)
@@ -1,12 +1,20 @@
-2006-01-09  Johan Bilien  <johan.bilien at nokia.com>
+2007-01-09  Moises Martinez  <moises.martinez at nokia.com>
 
+	* libhildonwm/hd-wm-watched-window.c:
+	- Adding the application when is a watched window.
+	* libhildonwm/hd-wm.[ch]:
+	- (hd_wm_add_applications) made public.
+	* src/hn-app-switcher.c: Decreased refreshing time.
+
+2007-01-09  Johan Bilien  <johan.bilien at nokia.com>
+
 	* libhildondesktop/home-applet-handler.[ch]: Removed (replaced
 	by the legacy plugin loader)
 	* libhildondesktop/hildon-home-applet.c:
 	- removed reference to applet handler
 	- use the signal instead for callbacks
 
-2006-01-09  Johan Bilien  <johan.bilien at nokia.com>
+2007-01-09  Johan Bilien  <johan.bilien at nokia.com>
 
 	* libhildondesktop/hildon-home-l10n.h, src/hd-home-l10n.h: Moved
 	home translations to hildon-desktop

Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm-watched-window.c
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm-watched-window.c	2007-01-09 17:37:55 UTC (rev 9012)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm-watched-window.c	2007-01-09 18:04:00 UTC (rev 9013)
@@ -603,6 +603,8 @@
           HN_DBG("adding view info to AS");
           info = hd_wm_watched_window_view_get_info (new_view);
 
+	  hd_wm_add_applications (hdwm,info);
+
 	  g_signal_emit_by_name (hdwm,"entry_info_added",info);
   
           /* The window may have been 'viewless' before this 

Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm.c
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm.c	2007-01-09 17:37:55 UTC (rev 9012)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm.c	2007-01-09 18:04:00 UTC (rev 9013)
@@ -1637,7 +1637,7 @@
   return NULL;
 }
 
-static void 
+void 
 hd_wm_add_applications (HDWM *hdwm, HDEntryInfo *entry_info)
 {
   HDWMWatchableApp *app;
@@ -1648,7 +1648,7 @@
     g_warning ("No entry info provided!");
     return;
   }
-
+  
   switch(entry_info->type)
   {
     case HD_ENTRY_WATCHED_WINDOW:
@@ -1669,8 +1669,8 @@
           g_warning ("Could not create HDEntryInfo for app.");
           return;
         }
-            
-        hdwm->priv->applications = g_list_prepend (hdwm->priv->applications, e);
+        
+	hdwm->priv->applications = g_list_prepend (hdwm->priv->applications, e);
       }
 
       g_debug ("add_child: %p %p",e,entry_info);        
@@ -1681,12 +1681,12 @@
       
     case HD_ENTRY_WATCHED_APP:
       /* we handle adding of applications internally in AS */
-      g_warning("asked to append HD_ENTRY_WATCHED_APP "
-                "-- this should not happen");
+      g_warning ("asked to append HD_ENTRY_WATCHED_APP "
+                 "-- this should not happen");
       return;
       
     default:
-      g_warning("Unknown info type");
+      g_warning ("Unknown info type");
       return;
   }
 

Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm.h
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm.h	2007-01-09 17:37:55 UTC (rev 9012)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildonwm/hd-wm.h	2007-01-09 18:04:00 UTC (rev 9013)
@@ -243,6 +243,9 @@
 GList * 
 hd_wm_get_applications (HDWM *hdwm);
 
+void 
+hd_wm_add_applications (HDWM *hdwm, HDEntryInfo *entry_info);
+
 gboolean  
 hd_wm_remove_applications (HDWM *hdwm, HDEntryInfo *entry_info);
 

Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/src/hn-app-switcher.c
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/src/hn-app-switcher.c	2007-01-09 17:37:55 UTC (rev 9012)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/src/hn-app-switcher.c	2007-01-09 18:04:00 UTC (rev 9013)
@@ -1427,7 +1427,7 @@
 
   if (!priv->queue_refresh_id)
     priv->queue_refresh_id = g_timeout_add_full (G_PRIORITY_HIGH,
-		    				 200,
+		    				 100,
 		                                 refresh_buttons,
 					         app_switcher,
 					         queue_refresh_done);
@@ -1442,11 +1442,9 @@
   HNAppSwitcher *app_switcher = HN_APP_SWITCHER (data);
   HNAppSwitcherPrivate *priv = app_switcher->priv;
   
-  g_debug ("In hn_app_switcher_real_add_info");
-
   if (!entry_info)
   {
-    g_warning ("No entry info provided!");
+    g_warning ("%s: No entry info provided!",__FILE__);
     return;
   }
 


More information about the maemo-commits mailing list