changeset 2840:53dd8641b4d1 trunk

fix flickering
author Tomasz Mon <desowin@gmail.com>
date Sat, 16 Jun 2007 20:29:46 +0200
parents ef9446cebfcb
children b2fb6a4e02b8
files src/audacious/ui_main.c src/audacious/ui_skinned_window.c
diffstat 2 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_main.c	Fri Jun 15 13:52:40 2007 -0500
+++ b/src/audacious/ui_main.c	Sat Jun 16 20:29:46 2007 +0200
@@ -518,10 +518,6 @@
                 g_object_unref(img);
             }
 
-            gdk_window_clear(mainwin->window);
-
-        }
-        else {
             GList *iter;
             for (iter = GTK_FIXED (SKINNED_WINDOW(mainwin)->fixed)->children; iter; iter = g_list_next (iter)) {
                 GtkFixedChild *child_data = (GtkFixedChild *) iter->data;
@@ -529,6 +525,8 @@
                 g_signal_emit_by_name(child, "redraw");
             }
 
+        }
+        else {
             for (wl = mainwin_wlist; wl; wl = g_list_next(wl)) {
                 w = WIDGET(wl->data);
 
@@ -2901,7 +2899,6 @@
     gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(err),
                                              "Boo! Bad stuff! Booga Booga!");
 
-    gtk_container_add(GTK_CONTAINER(mainwin), GTK_WIDGET(SKINNED_WINDOW(mainwin)->fixed));
     /* XXX: eventually update widgetcore API to not need this */
 
     ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_eject));
--- a/src/audacious/ui_skinned_window.c	Fri Jun 15 13:52:40 2007 -0500
+++ b/src/audacious/ui_skinned_window.c	Sat Jun 16 20:29:46 2007 +0200
@@ -175,7 +175,7 @@
        means that the logo must be drawn on the container widget, instead of the
        window; otherwise, it won't be displayed correctly */
     SKINNED_WINDOW(widget)->fixed = gtk_fixed_new();
-
+    gtk_container_add(GTK_CONTAINER(widget), GTK_WIDGET(SKINNED_WINDOW(widget)->fixed));
     return widget;
 }