Mercurial > audlegacy
diff src/audacious/ui_skinned_button.c @ 3052:b1b48ea20c16
Hooray, fix BadMatches
| author | Tomasz Mon <desowin@gmail.com> |
|---|---|
| date | Thu, 12 Jul 2007 21:10:16 +0200 |
| parents | 092f30bfae41 |
| children | 766a0fd12f7d f58cbfe8df1b |
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) {
