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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user