changeset 2177:8ebc85e1c559 trunk

[svn] - fix all hardcoded values
author nenolod
date Tue, 19 Dec 2006 07:54:26 -0800
parents 17b152fca694
children 64ff5aaf0b18
files ChangeLog audacious/widgets/textbox.c
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Dec 19 07:48:03 2006 -0800
+++ b/ChangeLog	Tue Dec 19 07:54:26 2006 -0800
@@ -1,3 +1,11 @@
+2006-12-19 15:48:03 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [3357]
+  - somewhat fix textboxBitmapFontWidth,Height hints
+  
+  trunk/audacious/widgets/textbox.c |    7 ++++---
+  1 file changed, 4 insertions(+), 3 deletions(-)
+
+
 2006-12-19 15:32:23 +0000  William Pitcock <nenolod@nenolod.net>
   revision [3355]
   - fix skin.hints parsing for textbox
--- a/audacious/widgets/textbox.c	Tue Dec 19 07:48:03 2006 -0800
+++ b/audacious/widgets/textbox.c	Tue Dec 19 07:54:26 2006 -0800
@@ -150,7 +150,7 @@
             return TRUE;
     }
 
-    if (g_utf8_strlen(tb->tb_text, -1) * 5 > tb->tb_widget.width)
+    if (g_utf8_strlen(tb->tb_text, -1) * bmp_active_skin->properties.textbox_bitmap_font_width > tb->tb_widget.width)
         return TRUE;
 
     return FALSE;
@@ -559,7 +559,7 @@
     TextBox *tb;
 
     tb = g_new0(TextBox, 1);
-    widget_init(&tb->tb_widget, parent, gc, x, y, w, 6, 1);
+    widget_init(&tb->tb_widget, parent, gc, x, y, w, bmp_active_skin->properties.textbox_bitmap_font_height, 1);
     tb->tb_widget.button_press_cb = textbox_button_press;
     tb->tb_widget.button_release_cb = textbox_button_release;
     tb->tb_widget.motion_cb = textbox_motion;