diff src/audacious/ui_skinned_textbox.c @ 2943:a8f2c99727eb trunk

replace Textbox in playlistwin with UiSkinnedTextbox, textbox.c no longer needed, temporary comment out g_usleep in textbox_scroll as it needs to be run as new thread
author Tomasz Mon <desowin@gmail.com>
date Sat, 30 Jun 2007 19:46:21 +0200
parents 1a59a0ced6a8
children 3c66c8d03c53
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c	Sat Jun 30 18:44:20 2007 +0200
+++ b/src/audacious/ui_skinned_textbox.c	Sat Jun 30 19:46:21 2007 +0200
@@ -591,11 +591,11 @@
         if (priv->offset >= (priv->pixmap_width - priv->w)) {
             priv->scroll_back = TRUE;
             /* There are 1 million microseconds per second */
-            g_usleep(1000000);
+            //g_usleep(1000000);
         }
         if (priv->offset <= 0) {
             priv->scroll_back = FALSE;
-            g_usleep(1000000);
+            //g_usleep(1000000);
         }
         ui_skinned_textbox_redraw(textbox);
     }
@@ -839,3 +839,15 @@
     *x = tx * bmp_active_skin->properties.textbox_bitmap_font_width;
     *y = ty * bmp_active_skin->properties.textbox_bitmap_font_height;
 }
+
+void ui_skinned_textbox_move_relative(GtkWidget *widget, gint x, gint y) {
+        UiSkinnedTextbox *t = UI_SKINNED_TEXTBOX(widget);
+        UiSkinnedTextboxPrivate *priv = UI_SKINNED_TEXTBOX_GET_PRIVATE (widget);
+        gtk_fixed_move(GTK_FIXED(priv->fixed), widget, t->x+x, t->y+y);
+}
+
+void ui_skinned_textbox_resize_relative(GtkWidget *widget, gint w, gint h) {
+        UiSkinnedTextbox *t = UI_SKINNED_TEXTBOX(widget);
+        UiSkinnedTextboxPrivate *priv = UI_SKINNED_TEXTBOX_GET_PRIVATE (widget);
+        gtk_widget_set_size_request(widget, priv->w+w, t->height+h);
+}