}
// ----------------------------------------------------------------------------
-// key_press_event
+// "key_press_event"
// ----------------------------------------------------------------------------
+
extern "C" {
-static
-gint
+static gboolean
wxgtk_tlw_key_press_event(GtkWidget *widget, GdkEventKey *event)
{
GtkWindow* const window = GTK_WINDOW(widget);
if ( gtk_window_activate_key(window, event) )
return TRUE;
- GtkObjectClass* parent_class = >K_WIDGET_GET_CLASS(widget)->parent_class;
- if ( GTK_WIDGET_CLASS(parent_class)->key_press_event(widget, event) )
+ if (GTK_WIDGET_GET_CLASS(widget)->key_press_event(widget, event))
return TRUE;
return FALSE;