X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cb93e456545c9c14a48b5f517d0d3d3e7fa87d4..c9f00f2fce9cacd46ae25417d6c3a5add7640320:/src/gtk1/window.cpp?ds=sidebyside diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 9bd0dc994e..345274e55d 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -507,7 +507,7 @@ void wxgtk_combo_size_request_callback(GtkWidget *widget, (gcombo->button, &entry_req ); requisition->width = w - entry_req.width; - requisition->height = entry_req.height+4; // TODO: why +4? + requisition->height = entry_req.height; } } @@ -1704,6 +1704,7 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, // GdkDisplay is a GTK+ 2.2.0 thing #if defined(__WXGTK20__) && GTK_CHECK_VERSION(2, 2, 0) if ( gdk_event->type == GDK_2BUTTON_PRESS && + !gtk_check_version(2,2,0) && gdk_event->button >= 1 && gdk_event->button <= 3 ) { // Reset GDK internal timestamp variables in order to disable GDK