X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07d04e37fdffc1bafdadaee417244c3045b760b0..3ad4e2df049878c3a671ae6add4974192c02113e:/src/gtk/minifram.cpp diff --git a/src/gtk/minifram.cpp b/src/gtk/minifram.cpp index e31c8d0d60..f209407663 100644 --- a/src/gtk/minifram.cpp +++ b/src/gtk/minifram.cpp @@ -24,13 +24,6 @@ #include #include -//----------------------------------------------------------------------------- -// idle system -//----------------------------------------------------------------------------- - -extern void wxapp_install_idle_handler(); -extern bool g_isIdle; - //----------------------------------------------------------------------------- // data //----------------------------------------------------------------------------- @@ -302,6 +295,10 @@ bool wxMiniFrame::Create( wxWindow *parent, wxWindowID id, const wxString &title gtk_widget_show( pw ); GtkWidget *close_button = gtk_button_new(); +#ifdef __WXGTK24__ + if (!gtk_check_version(2,4,0)) + gtk_button_set_focus_on_click( GTK_BUTTON(close_button), FALSE ); +#endif gtk_container_add( GTK_CONTAINER(close_button), pw ); gtk_pizza_put( GTK_PIZZA(m_mainWidget),