- /*
- * XXX: This doesn't really belong here. Originally I wanted to pack PianoKeyboard into GtkFrame
- * packed into GtkAlignment. I failed to make it behave the way I want. GtkFrame would need
- * to adapt to the "proper" size of PianoKeyboard, i.e. to the useful_width, not allocated width;
- * that didn't work.
- */
- widget = GTK_WIDGET(pk);
- gtk_paint_shadow(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, NULL, widget, NULL, pk->widget_margin, 0,
- widget->allocation.width - pk->widget_margin * 2 + 1, widget->allocation.height);
+ if (note > 0 && !pk->notes[note - 1].white) {
+ draw_note(pk, cr, note - 1);
+ }