changeset 2963:74a2471f8eb7 trunk

fix ui_skinned_button_expose(); don't call ui_skinned_button_paint() directly
author Tomasz Mon <desowin@gmail.com>
date Mon, 02 Jul 2007 10:11:37 +0200
parents ba45ef731cf1
children 7926d46872c8
files src/audacious/ui_skinned_button.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_button.c	Mon Jul 02 09:35:37 2007 +0200
+++ b/src/audacious/ui_skinned_button.c	Mon Jul 02 10:11:37 2007 +0200
@@ -231,8 +231,10 @@
 }
 
 static gboolean ui_skinned_button_expose(GtkWidget *widget, GdkEventExpose *event) {
-        if (GTK_WIDGET_DRAWABLE (widget))
+        if (GTK_WIDGET_DRAWABLE (widget)) {
+                ui_skinned_button_paint(UI_SKINNED_BUTTON(widget));
                 (*GTK_WIDGET_CLASS (parent_class)->expose_event) (widget, event);
+        }
 
         return FALSE;
 }
@@ -350,7 +352,7 @@
         if (pressed != button->pressed) {
                 button->pressed = pressed;
                 button->redraw = TRUE;
-                ui_skinned_button_paint(button);
+                gtk_widget_queue_draw(GTK_WIDGET(button));
         }
 }
 
@@ -427,7 +429,7 @@
         gtk_widget_set_uposition(widget, button->x*(1+priv->double_size), button->y*(1+priv->double_size));
 
         button->redraw = TRUE;
-        ui_skinned_button_paint(button);
+        gtk_widget_queue_draw(widget);
 }
 
 static void ui_skinned_button_paint(UiSkinnedButton *button) {
@@ -486,7 +488,7 @@
 
 static void ui_skinned_button_redraw(UiSkinnedButton *button) {
         button->redraw = TRUE;
-        ui_skinned_button_paint(button);
+        gtk_widget_queue_draw(GTK_WIDGET(button));
 }