# HG changeset patch # User Tomasz Mon # Date 1183108406 -7200 # Node ID 2abf3bb3e63d6ee825d3e87a7ab30d6cc9634c57 # Parent 4e71092ab29be5d9b707a60978f491ae4eda713e fix textbox resize diff -r 4e71092ab29b -r 2abf3bb3e63d src/audacious/ui_skinned_textbox.c --- a/src/audacious/ui_skinned_textbox.c Fri Jun 29 11:00:23 2007 +0200 +++ b/src/audacious/ui_skinned_textbox.c Fri Jun 29 11:13:26 2007 +0200 @@ -298,6 +298,14 @@ textbox->x = widget->allocation.x/(priv->double_size ? 2 : 1); textbox->y = widget->allocation.y/(priv->double_size ? 2 : 1); + + if (priv->w != widget->allocation.width) { + priv->w = widget->allocation.width; + if (priv->pixmap_text) g_free(priv->pixmap_text); + priv->pixmap_text = NULL; + priv->offset = 0; + ui_skinned_textbox_redraw(textbox); + } } static gboolean ui_skinned_textbox_textbox_press(GtkWidget *widget, GdkEventButton *event) {