With the exceptions of DnD, wxGTk now works with
both GTK 1.0.6 and GTK 1.2.1 - the latter still produces warnings and blah. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -33,10 +33,8 @@
|
||||
// conditional compilation
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
#if (GTK_MINOR_VERSION == 1)
|
||||
#if (GTK_MICRO_VERSION >= 5)
|
||||
#define NEW_GTK_SCROLL_CODE
|
||||
#endif
|
||||
#if (GTK_MINOR_VERSION > 0)
|
||||
#define NEW_GTK_SCROLL_CODE
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -224,7 +222,7 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
|
||||
debug_focus_in( s_window->vscrollbar, "wxWindow::vsrcollbar", name );
|
||||
|
||||
#ifdef NEW_GTK_SCROLL_CODE
|
||||
GtkViewport *viewport = GTK_VIEWPORT(s_window->child);
|
||||
GtkViewport *viewport = GTK_VIEWPORT( GTK_BIN(s_window)->child );
|
||||
#else
|
||||
GtkViewport *viewport = GTK_VIEWPORT(s_window->viewport);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user