changeset 2962:ba45ef731cf1 trunk

don't call ui_skinned_textbox_paint() directly, use gtk_widget_queue_draw() instead; fix ui_skinned_textbox_expose()
author Tomasz Mon <desowin@gmail.com>
date Mon, 02 Jul 2007 09:35:37 +0200
parents dd53d2d49b79
children 74a2471f8eb7
files src/audacious/ui_skinned_textbox.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c	Sun Jul 01 19:44:19 2007 -0500
+++ b/src/audacious/ui_skinned_textbox.c	Mon Jul 02 09:35:37 2007 +0200
@@ -251,8 +251,10 @@
 }
 
 static gboolean ui_skinned_textbox_expose(GtkWidget *widget, GdkEventExpose *event) {
-    if (GTK_WIDGET_DRAWABLE (widget))
+    if (GTK_WIDGET_DRAWABLE (widget)) {
+        ui_skinned_textbox_paint(UI_SKINNED_TEXTBOX(widget));
         (*GTK_WIDGET_CLASS (parent_class)->expose_event) (widget, event);
+    }
 
     return FALSE;
 }
@@ -392,6 +394,7 @@
     gtk_widget_set_uposition(widget, textbox->x*(1+priv->double_size), textbox->y*(1+priv->double_size));
 
     textbox->redraw = TRUE;
+    gtk_widget_queue_draw(GTK_WIDGET(textbox));
 }
 
 static void ui_skinned_textbox_paint(UiSkinnedTextbox *textbox) {
@@ -440,7 +443,7 @@
 
 static void ui_skinned_textbox_redraw(UiSkinnedTextbox *textbox) {
     textbox->redraw = TRUE;
-    ui_skinned_textbox_paint(textbox);
+    gtk_widget_queue_draw(GTK_WIDGET(textbox));
 }
 
 static gboolean ui_skinned_textbox_should_scroll(UiSkinnedTextbox *textbox) {