No real changes, just check for 2.8.0 GTK+ version once instead of doing it
twice in a row.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62274
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
G_CALLBACK(size_allocate), this);
}
G_CALLBACK(size_allocate), this);
}
#if GTK_CHECK_VERSION(2, 8, 0)
#if GTK_CHECK_VERSION(2, 8, 0)
- if (!gtk_check_version(2,8,0))
+ if ( gtk_check_version(2,8,0) == NULL )
+ {
+ // Make sure we can notify the app when mouse capture is lost
+ if ( m_wxwindow )
- // Make sure we can notify the app when mouse capture is lost
g_signal_connect (m_wxwindow, "grab_broken_event",
G_CALLBACK (gtk_window_grab_broken), this);
}
g_signal_connect (m_wxwindow, "grab_broken_event",
G_CALLBACK (gtk_window_grab_broken), this);
}
- if ( connect_widget != m_wxwindow )
- {
-#if GTK_CHECK_VERSION(2, 8, 0)
- if (!gtk_check_version(2,8,0))
+ if ( connect_widget != m_wxwindow )
- // Make sure we can notify app code when mouse capture is lost
g_signal_connect (connect_widget, "grab_broken_event",
G_CALLBACK (gtk_window_grab_broken), this);
}
g_signal_connect (connect_widget, "grab_broken_event",
G_CALLBACK (gtk_window_grab_broken), this);
}
if ( GTKShouldConnectSizeRequest() )
{
if ( GTKShouldConnectSizeRequest() )
{