changeset 4222:977877bb212f

fixed the textboxes
author Cristi Magherusan <majeru@atheme.org>
date Mon, 28 Jan 2008 01:27:43 +0200
parents c399e0fa9791
children 2c9c2b5caaee
files src/audacious/ui_skinned_textbox.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c	Mon Jan 28 00:33:23 2008 +0200
+++ b/src/audacious/ui_skinned_textbox.c	Mon Jan 28 01:27:43 2008 +0200
@@ -252,14 +252,14 @@
     if (GTK_WIDGET_REALIZED (widget))
         gdk_window_move_resize(widget->window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height);
 
-    if (textbox->x + priv->move_x == widget->allocation.x/(priv->scaled ? cfg.scale_factor : 1));
+    if (textbox->x + priv->move_x - widget->allocation.x/(priv->scaled ? cfg.scale_factor : 1) <3);
         priv->move_x = 0;
-    if (textbox->y + priv->move_y == widget->allocation.y/(priv->scaled ? cfg.scale_factor : 1));
+    if (textbox->y + priv->move_y - widget->allocation.y/(priv->scaled ? cfg.scale_factor : 1) <3);
         priv->move_y = 0;
     textbox->x = widget->allocation.x/(priv->scaled ? cfg.scale_factor : 1);
     textbox->y = widget->allocation.y/(priv->scaled ? cfg.scale_factor : 1);
 
-    if (textbox->width != (guint) (widget->allocation.width / (priv->scaled ? cfg.scale_factor : 1))) {
+    if (textbox->width - (guint) (widget->allocation.width / (priv->scaled ? cfg.scale_factor : 1)) > 2) {
             textbox->width = (guint) (widget->allocation.width / (priv->scaled ? cfg.scale_factor : 1));
             if (priv->pixbuf_text) g_free(priv->pixbuf_text);
             priv->pixbuf_text = NULL;