In infobanner, do not set the text on the label if it's exactly same as the existing...
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Thu, 1 Mar 2007 12:04:14 +0000 (12:04 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Thu, 1 Mar 2007 12:04:14 +0000 (12:04 +0000)
ChangeLog.2
src/hildon-banner.c

index fe38dce..a631274 100644 (file)
@@ -1,3 +1,9 @@
+2007-03-01  Michael Dominic Kostrzewa  <michael.kostrzewa@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@nokia.com> 
 
        * src/hildon-window.c: When the window name is empty, don't put
index 81db2e1..507e0f1 100644 (file)
@@ -1033,7 +1033,8 @@ hildon_banner_set_text                          (HildonBanner *self,
     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));
 }