Fix for compilation under GTK+ 2.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1537,7 +1537,8 @@ static gint gtk_window_button_press_callback( GtkWidget *widget,
|
|||||||
|
|
||||||
wxEventType event_type = wxEVT_NULL;
|
wxEventType event_type = wxEVT_NULL;
|
||||||
|
|
||||||
#ifdef __WXGTK20__
|
// GdkDisplay is a GTK+ 2.1.0 thing
|
||||||
|
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2, 1, 0)
|
||||||
if ( gdk_event->type == GDK_2BUTTON_PRESS &&
|
if ( gdk_event->type == GDK_2BUTTON_PRESS &&
|
||||||
gdk_event->button >= 1 && gdk_event->button <= 3 )
|
gdk_event->button >= 1 && gdk_event->button <= 3 )
|
||||||
{
|
{
|
||||||
|
@@ -1537,7 +1537,8 @@ static gint gtk_window_button_press_callback( GtkWidget *widget,
|
|||||||
|
|
||||||
wxEventType event_type = wxEVT_NULL;
|
wxEventType event_type = wxEVT_NULL;
|
||||||
|
|
||||||
#ifdef __WXGTK20__
|
// GdkDisplay is a GTK+ 2.1.0 thing
|
||||||
|
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2, 1, 0)
|
||||||
if ( gdk_event->type == GDK_2BUTTON_PRESS &&
|
if ( gdk_event->type == GDK_2BUTTON_PRESS &&
|
||||||
gdk_event->button >= 1 && gdk_event->button <= 3 )
|
gdk_event->button >= 1 && gdk_event->button <= 3 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user