lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] DragAcceptFiles() on GNU/Linux (was Re: Terse list of valuable pro


From: Vaclav Slavik
Subject: [lmi] DragAcceptFiles() on GNU/Linux (was Re: Terse list of valuable projects)
Date: Thu, 13 Nov 2008 23:32:46 +0100

Hi,

On Wed, 2008-10-29 at 13:26 +0000, Greg Chicares wrote:
> Make drag-and-drop work on GNU/Linux as well
>   instead of msw-specific DragAcceptFiles() in 'main_wx.cpp'

I did that, but Vadim pointed out that it would be even better to make
the simplified DragAcceptFiles() API available on all platforms. It was
checked in in r56758 and will be available starting with wx-2.8.10 and
the only change needed in LMI sources will be this (safe to apply now):

Index: main_wx.cpp
===================================================================
RCS file: /sources/lmi/lmi/main_wx.cpp,v
retrieving revision 1.123
diff -u -u -r1.123 main_wx.cpp
--- main_wx.cpp 26 Oct 2008 15:28:30 -0000      1.123
+++ main_wx.cpp 13 Nov 2008 22:16:12 -0000
@@ -657,10 +657,9 @@
         InitMenuBar();
         InitToolBar();
         frame_->CreateStatusBar();
-    // FSF !! Need to implement this in a generic way for GNU/linux.
-#ifdef LMI_MSW
+#if defined(LMI_MSW) || wxCHECK_VERSION(2,8,10)
         frame_->DragAcceptFiles(true);
-#endif // LMI_MSW defined.
+#endif // LMI_MSW defined or wx at least 2.8.10.
         frame_->Centre(wxBOTH);
         frame_->Maximize(true);


Regards,
Vaclav





reply via email to

[Prev in Thread] Current Thread [Next in Thread]