Fix "chaining up" to parent class in key-press-event handler

Getting the parent class was done incorrectly in 819638a7, causing
the chain-up to go to the current class rather than the parent.
This commit is contained in:
Paul Cornett
2017-11-10 22:54:58 -08:00
parent 147eb12f91
commit 7a7f715160

View File

@@ -219,7 +219,8 @@ wxgtk_tlw_key_press_event(GtkWidget *widget, GdkEventKey *event)
if ( gtk_window_activate_key(window, event) )
return TRUE;
if (GTK_WIDGET_GET_CLASS(widget)->key_press_event(widget, event))
void* parent_class = g_type_class_peek_parent(G_OBJECT_GET_CLASS(widget));
if (GTK_WIDGET_CLASS(parent_class)->key_press_event(widget, event))
return TRUE;
return FALSE;