# HG changeset patch
# User Tomasz Mon <desowin@gmail.com>
# Date 1183308696 -7200
# Node ID c859aa1a1a4e1b2b11ebdf269f758976fba6c118
# Parent  45f0c83ed7a22b080f067eead1d605df3860852b
don't update text if it haven't changed

diff -r 45f0c83ed7a2 -r c859aa1a1a4e src/audacious/ui_skinned_textbox.c
--- a/src/audacious/ui_skinned_textbox.c	Mon Jul 02 01:14:57 2007 +0900
+++ b/src/audacious/ui_skinned_textbox.c	Sun Jul 01 18:51:36 2007 +0200
@@ -268,6 +268,7 @@
     textbox->height = bmp_active_skin->properties.textbox_bitmap_font_height;
     textbox->x = x;
     textbox->y = y;
+    textbox->text = g_strdup("");
     priv->gc = gc;
     textbox->width = w;
     priv->scroll_allowed = allow_scroll;
@@ -514,6 +515,8 @@
     UiSkinnedTextbox *textbox = UI_SKINNED_TEXTBOX (widget);
     UiSkinnedTextboxPrivate *priv = UI_SKINNED_TEXTBOX_GET_PRIVATE (textbox);
 
+    if (!strcmp(textbox->text, text))
+         return;
     if (textbox->text)
         g_free(textbox->text);