fix GTK3 build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2013-03-22 17:03:12 +00:00
parent 1eb194bf0e
commit 2a875213d3

View File

@ -209,11 +209,11 @@ gboolean gtk_frame_focus_out_callback(GtkWidget * WXUNUSED(widget),
}
// ----------------------------------------------------------------------------
// 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);
@ -232,8 +232,7 @@ wxgtk_tlw_key_press_event(GtkWidget *widget, GdkEventKey *event)
if ( gtk_window_activate_key(window, event) )
return TRUE;
GtkObjectClass* parent_class = &GTK_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;