From 2a875213d3a7f8639e8e93199f35be3dbfac7966 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 22 Mar 2013 17:03:12 +0000 Subject: [PATCH] fix GTK3 build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/toplevel.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 0e476e2519..542cfc0cc5 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -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 = >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;