From 1d13cff399e1cb4908bb4dbfb31e2661cd698c35 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Sat, 4 Feb 2006 13:06:06 +0000 Subject: [PATCH] I'm no fan of that focus ring being drawn inside the wxMiniFrame close button after a click (and release not on the button), making the button look weird. So... don't focus on click. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/minifram.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gtk/minifram.cpp b/src/gtk/minifram.cpp index e31c8d0d60..48acb9a499 100644 --- a/src/gtk/minifram.cpp +++ b/src/gtk/minifram.cpp @@ -302,6 +302,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),