Re: Drag from treeview to eventbox
- From: Doug Blank <doug blank gmail com>
- To: gtk-list gnome org
- Subject: Re: Drag from treeview to eventbox
- Date: Mon, 7 Feb 2011 10:24:57 -0500
New subscriber following up on a post from last month:
> On 01/14/2011 05:26 PM, Paul Davis wrote:
>
>> the treeview in gtk 2.* doesn't support DnD to other widgets, let
>> alone other windows.
>
> Not sure what you're talking about. I have DnD from and to other widgets and other X11 clients just fine without any hacks.
> I wrote this example a long time ago when I was a n00b00n2.
> http://en.wikibooks.org/wiki/GTK%2B_By_Example/Tree_View/DnD#Dragging_Rows_from_One_Tree_to_Another
> It can be done even simpler. But it works fine as-is and can be extended to any widget.
>
> Vikram.
I'd like to use the Gtk.TreeView from gtk-sharp under Linux, Windows,
and Mac. I see that there are some known issues, but some workarounds
in C++.
I'm looking for some advice on how to make TreeView (or something)
work in a drag-and-drop managed Mono Gtk# app on Win, Linux, and Mac.
I have some sample code dragging treeview items onto other widgets:
http://svn.cs.brynmawr.edu/viewvc/Pyjama/trunk/dragdropbug.cs?view=markup
that works fine in Linux, doesn't allow the drop in Windows (using
Mono after version 2.6.7), and just crashes on the drop (because of no
Context.Targets I suspect) on all versions of Mac Mono.
I've reported the Windows issue as a bug:
https://bugzilla.novell.com/show_bug.cgi?id=664824
Is there a way I can work-around these limitations in Managed C#? Or,
if I need to drop down to unsafe, I could do that too. As long as it
would allow the drop on Windows, and not crash on Mac.
Any assistance much appreciated!
-Doug
PS - here is my goal:
http://www.youtube.com/user/dsblank007?feature=mhum#p/u/4/wV1m-DIHC5c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]