[maemo-commits] [maemo-commits] r14295 - in projects/haf/trunk/hildon-desktop: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Oct 3 14:14:08 EEST 2007
Author: lucasr
Date: 2007-10-03 14:14:06 +0300 (Wed, 03 Oct 2007)
New Revision: 14295

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hd-switcher-menu.c
Log:
2007-10-03  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/hd-switcher-menu.c (hd_switcher_menu_notification_deleted_cb):
	turn off led pattern blinking when a notification with led blinking
	closes. Fixes: NB#71832.


Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-10-03 08:25:43 UTC (rev 14294)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-10-03 11:14:06 UTC (rev 14295)
@@ -1,3 +1,9 @@
+2007-10-03  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* src/hd-switcher-menu.c (hd_switcher_menu_notification_deleted_cb):
+	turn off led pattern blinking when a notification with led blinking
+	closes. Fixes: NB#71832.
+
 2007-10-02  Johan Bilien  <johan.bilien at nokia.com>
 
 	* configure.ac: 0.0.40

Modified: projects/haf/trunk/hildon-desktop/src/hd-switcher-menu.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hd-switcher-menu.c	2007-10-03 08:25:43 UTC (rev 14294)
+++ projects/haf/trunk/hildon-desktop/src/hd-switcher-menu.c	2007-10-03 11:14:06 UTC (rev 14295)
@@ -2536,6 +2536,11 @@
                                           HDSwitcherMenu *switcher)
 {
   GList *children = NULL, *l;
+#ifdef HAVE_MCE  
+  GtkTreeIter iter;
+  GHashTable *hints;
+  GValue *hint;
+#endif
   
   children =
     hildon_desktop_popup_menu_get_children (switcher->priv->menu_notifications);    	  
@@ -2560,8 +2565,24 @@
         {
 	  hd_switcher_menu_reset_main_icon (switcher, TRUE);
 	  switcher->priv->blinking_notification = -1;
+
 	}
-	
+
+#ifdef HAVE_MCE  
+        if (hildon_desktop_notification_manager_find_by_id (switcher->nm, id, &iter))
+        {
+          gtk_tree_model_get (GTK_TREE_MODEL (switcher->nm),
+                              &iter,
+                              HD_NM_COL_HINTS, &hints,
+                              -1);
+
+          hint = g_hash_table_lookup (hints, "led-pattern");
+
+          if (hint)
+            hd_switcher_menu_set_led_pattern (g_value_get_string (hint), FALSE);
+        }
+#endif
+
         hildon_desktop_popup_menu_remove_item (switcher->priv->menu_notifications,
 	                                       menu_item);
 


More information about the maemo-commits mailing list