[maemo-commits] [maemo-commits] r10280 - in projects/haf/branches/hildon-libs/hildon-1: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Mar 1 14:04:15 EET 2007
Author: mdk
Date: 2007-03-01 14:04:14 +0200 (Thu, 01 Mar 2007)
New Revision: 10280

Modified:
   projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2
   projects/haf/branches/hildon-libs/hildon-1/src/hildon-banner.c
Log:
In infobanner, do not set the text on the label if it's exactly same as the existing text. Fixes some wrapping problems. Fixes NB#50496.


Modified: projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2
===================================================================
--- projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2	2007-03-01 11:22:03 UTC (rev 10279)
+++ projects/haf/branches/hildon-libs/hildon-1/ChangeLog.2	2007-03-01 12:04:14 UTC (rev 10280)
@@ -1,3 +1,9 @@
+2007-03-01  Michael Dominic Kostrzewa  <michael.kostrzewa at nokia.com> 
+
+	* src/hildon-banner.c: Do not set the text on the label if it's
+	exactly same as the existing text. Fixes some wrapping problems. Fixes
+	NB#50496.
+
 2007-02-28  Michael Dominic Kostrzewa  <michael.kostrzewa at nokia.com> 
 
 	* src/hildon-window.c: When the window name is empty, don't put

Modified: projects/haf/branches/hildon-libs/hildon-1/src/hildon-banner.c
===================================================================
--- projects/haf/branches/hildon-libs/hildon-1/src/hildon-banner.c	2007-03-01 11:22:03 UTC (rev 10279)
+++ projects/haf/branches/hildon-libs/hildon-1/src/hildon-banner.c	2007-03-01 12:04:14 UTC (rev 10280)
@@ -1033,7 +1033,8 @@
     g_assert (priv);
 
     label = GTK_LABEL (priv->label);
-    gtk_label_set_text (label, text);
+    if (strcmp (gtk_label_get_text (label), text) != 0)
+            gtk_label_set_text (label, text);
 
     hildon_banner_check_position (GTK_WIDGET (self));
 }


More information about the maemo-commits mailing list