changeset 3052:b1b48ea20c16

Hooray, fix BadMatches
author Tomasz Mon <desowin@gmail.com>
date Thu, 12 Jul 2007 21:10:16 +0200
parents befb8b7df9e6
children 712b3d476e06
files src/audacious/ui_skinned_button.c src/audacious/ui_skinned_horizontal_slider.c src/audacious/ui_vis.c
diffstat 3 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_button.c	Thu Jul 12 16:40:37 2007 +0200
+++ b/src/audacious/ui_skinned_button.c	Thu Jul 12 21:10:16 2007 +0200
@@ -207,6 +207,7 @@
     if (button->type == TYPE_SMALL || button->type == TYPE_NOT_SET) {
         attributes.wclass = GDK_INPUT_ONLY;
         attributes_mask = GDK_WA_X | GDK_WA_Y;
+        GTK_WIDGET_SET_FLAGS (widget, GTK_NO_WINDOW);
     } else {
         attributes.wclass = GDK_INPUT_OUTPUT;
         attributes.event_mask |= GDK_EXPOSURE_MASK;
@@ -218,6 +219,9 @@
     widget->style = gtk_style_attach(widget->style, widget->window);
 
     gdk_window_set_user_data(widget->window, widget);
+
+    if (attributes.wclass == GDK_INPUT_ONLY)
+        gdk_window_show (widget->window);
 }
 
 static void ui_skinned_button_size_request(GtkWidget *widget, GtkRequisition *requisition) {
--- a/src/audacious/ui_skinned_horizontal_slider.c	Thu Jul 12 16:40:37 2007 +0200
+++ b/src/audacious/ui_skinned_horizontal_slider.c	Thu Jul 12 21:10:16 2007 +0200
@@ -203,6 +203,7 @@
     attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
     widget->window = gdk_window_new(widget->parent->window, &attributes, attributes_mask);
 
+    widget->style = gtk_style_attach(widget->style, widget->window);
     gdk_window_set_user_data(widget->window, widget);
 }
 
--- a/src/audacious/ui_vis.c	Thu Jul 12 16:40:37 2007 +0200
+++ b/src/audacious/ui_vis.c	Thu Jul 12 21:10:16 2007 +0200
@@ -166,17 +166,22 @@
       attributes.wclass = GDK_INPUT_OUTPUT;
       attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
       widget->window = gdk_window_new(widget->parent->window, &attributes, attributes_mask);
+      GTK_WIDGET_UNSET_FLAGS(widget, GTK_NO_WINDOW);
     }
     else
     {
       attributes.wclass = GDK_INPUT_ONLY;
       attributes_mask = GDK_WA_X | GDK_WA_Y;
       widget->window = gdk_window_new (widget->parent->window, &attributes, attributes_mask);
+      GTK_WIDGET_SET_FLAGS (widget, GTK_NO_WINDOW);
     }
 
     widget->style = gtk_style_attach(widget->style, widget->window);
 
     gdk_window_set_user_data(widget->window, widget);
+
+    if (attributes.wclass == GDK_INPUT_ONLY)
+        gdk_window_show (widget->window);
 }
 
 static void ui_vis_unrealize(GtkWidget *widget) {