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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue May 22 16:52:36 EEST 2007
Author: lucasr
Date: 2007-05-22 16:52:35 +0300 (Tue, 22 May 2007)
New Revision: 11759

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hn-app-button.c
Log:
2007-05-22  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/hn-app-button.c: don't show tooltip when tapping and holding on
	the application group. 
	Fixes: NB#57836


Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-05-22 13:08:47 UTC (rev 11758)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-05-22 13:52:35 UTC (rev 11759)
@@ -1,5 +1,11 @@
 2007-05-22  Lucas Rocha  <lucas.rocha at nokia.com>
 
+	* src/hn-app-button.c: don't show tooltip when tapping and holding on
+	the application group. 
+	Fixes: NB#57836
+
+2007-05-22  Lucas Rocha  <lucas.rocha at nokia.com>
+
 	* src/hd-plugin-loader-builtin.c: added applications menu to the
 	possible builtin plugins. 
 	* data/applications-menu.desktop.in, src/hd-applications-menu.[ch]: new two-pane 

Modified: projects/haf/trunk/hildon-desktop/src/hn-app-button.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hn-app-button.c	2007-05-22 13:08:47 UTC (rev 11758)
+++ projects/haf/trunk/hildon-desktop/src/hn-app-button.c	2007-05-22 13:52:35 UTC (rev 11759)
@@ -848,17 +848,20 @@
       return FALSE;
     }
 
-  if (!priv->tooltip)
-    priv->tooltip = hn_app_tooltip_new (GTK_WIDGET (app_button));
+  if (hd_entry_info_get_n_children (info) == 1)
+  {
+    if (!priv->tooltip)
+      priv->tooltip = hn_app_tooltip_new (GTK_WIDGET (app_button));
 
-  hn_app_tooltip_set_text (HN_APP_TOOLTIP(app_button->priv->tooltip),
-                           _(hd_entry_info_peek_app_name (info)));
+    hn_app_tooltip_set_text (HN_APP_TOOLTIP(app_button->priv->tooltip),
+                             _(hd_entry_info_peek_app_name (info)));
 
-  hn_app_tooltip_install_timer (HN_APP_TOOLTIP(app_button->priv->tooltip),
-                                NULL,
-                                NULL,
-                                NULL);
-  
+    hn_app_tooltip_install_timer (HN_APP_TOOLTIP(app_button->priv->tooltip),
+                                  NULL,
+                                  NULL,
+                                  NULL);
+  }
+    
   return TRUE;
 }
 


More information about the maemo-commits mailing list