# HG changeset patch # User Tomasz Mon # Date 1184267416 -7200 # Node ID b1b48ea20c163807a1a925f6d161edc0e6a82c19 # Parent befb8b7df9e6a7e482b737979fbab83209f6fe7f Hooray, fix BadMatches diff -r befb8b7df9e6 -r b1b48ea20c16 src/audacious/ui_skinned_button.c --- 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) { diff -r befb8b7df9e6 -r b1b48ea20c16 src/audacious/ui_skinned_horizontal_slider.c --- 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); } diff -r befb8b7df9e6 -r b1b48ea20c16 src/audacious/ui_vis.c --- 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) {