Replace deprecated gtk_type_new with g_object_new.
This commit is contained in:
parent
c1fe0e7c15
commit
44980fc2f5
@ -591,7 +591,7 @@ piano_keyboard_new(void)
|
|||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
PianoKeyboard *pk;
|
PianoKeyboard *pk;
|
||||||
|
|
||||||
widget = gtk_type_new(piano_keyboard_get_type());
|
widget = g_object_new(TYPE_PIANO_KEYBOARD, NULL);
|
||||||
pk = PIANO_KEYBOARD(widget);
|
pk = PIANO_KEYBOARD(widget);
|
||||||
|
|
||||||
pk->maybe_stop_sustained_notes = 0;
|
pk->maybe_stop_sustained_notes = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user