Re: [Inkscape-devel] Re: dnd [was: Re: export patches]

Okay, had to change
rnewdoc = sp_repr_read_mem (svgdata, data->length, NULL);
to
rnewdoc = sp_repr_read_mem (svgdata, data->length, SP_SVG_NS_URI);
now it should behave exactly like the import function. Updated patch attached and posted to the tracker. Works for me ;)
Thanks! Indeed it works well now. I think you can commit it.
Of course it'll need more testing when/if Gimp supports svg dnd too. And by the way, why can't I drag an svg document from my KDE desktop into Inkscape? Is this version of dnd Gnome-only?
_________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

On Tue, 2003-12-23 at 21:41, bulia byak wrote:
Of course it'll need more testing when/if Gimp supports svg dnd too. And by the way, why can't I drag an svg document from my KDE desktop into Inkscape? Is this version of dnd Gnome-only?
Depending on the versions of Gnome and KDE, DnD between the two may not be possible.
-mental

On Mi, Dez 24, 2003 at 02:41:11 +0000, bulia byak wrote:
Thanks! Indeed it works well now. I think you can commit it.
Okay, I'll do that.
Of course it'll need more testing when/if Gimp supports svg dnd too. And by the way, why can't I drag an svg document from my KDE desktop into Inkscape? Is this version of dnd Gnome-only?
Hmm... looking at the Gimp sources, i found a comment about Konqueror only offering GDK_ACTION_MOVE. Now works with Konqueror (tested with latest version), too. Added to the patch, will commit later today.
Thanks for the feedback,
Alex

On Wed, 24 Dec 2003, Alexander Clausen wrote:
On Mi, Dez 24, 2003 at 02:41:11 +0000, bulia byak wrote:
Of course it'll need more testing when/if Gimp supports svg dnd too. And by the way, why can't I drag an svg document from my KDE desktop into Inkscape? Is this version of dnd Gnome-only?
Hmm... looking at the Gimp sources, i found a comment about Konqueror only offering GDK_ACTION_MOVE. Now works with Konqueror (tested with latest version), too. Added to the patch, will commit later today.
Did you say you have drag and drop working between Inkscape and Konqueror?
Bryce

Hi
On Mi, Dez 24, 2003 at 12:08:34 -0800, Bryce Harrington wrote:
On Wed, 24 Dec 2003, Alexander Clausen wrote:
Hmm... looking at the Gimp sources, i found a comment about Konqueror only offering GDK_ACTION_MOVE. Now works with Konqueror (tested with latest version), too. Added to the patch, will commit later today.
Did you say you have drag and drop working between Inkscape and Konqueror?
You can drag a svg file from konqueror to inkscape, yes. But I have no idea how we could do the other way, we would have to add some kind of drag icon, or something...
Alex

On Wed, 24 Dec 2003, Alexander Clausen wrote:
Hi
On Mi, Dez 24, 2003 at 12:08:34 -0800, Bryce Harrington wrote:
On Wed, 24 Dec 2003, Alexander Clausen wrote:
Hmm... looking at the Gimp sources, i found a comment about Konqueror only offering GDK_ACTION_MOVE. Now works with Konqueror (tested with latest version), too. Added to the patch, will commit later today.
Did you say you have drag and drop working between Inkscape and Konqueror?
You can drag a svg file from konqueror to inkscape, yes. But I have no idea how we could do the other way, we would have to add some kind of drag icon, or something...
Alex
Wow, that's very cool. Does the patch you're putting in make this work or has it always done it? If this is a new feature, it's worth mentioning in the news and release notes. :-)
Drag and drop has been something that many people have inquired about, so whatever we doalong these lines is worth reporting.
Bryce

Hi
On Mi, Dez 24, 2003 at 12:32:59 -0800, Bryce Harrington wrote:
Wow, that's very cool. Does the patch you're putting in make this work or has it always done it? If this is a new feature, it's worth mentioning in the news and release notes. :-)
It worked with GNOME apps before (I tested with nautilus), but DND with KDE apps is indeed a new feature ;)
Alex

On Wed, 24 Dec 2003, Alexander Clausen wrote:
Hi
On Mi, Dez 24, 2003 at 12:32:59 -0800, Bryce Harrington wrote:
Wow, that's very cool. Does the patch you're putting in make this work or has it always done it? If this is a new feature, it's worth mentioning in the news and release notes. :-)
It worked with GNOME apps before (I tested with nautilus), but DND with KDE apps is indeed a new feature ;)
Cool, thanks. Make sure to add it to the ReleaseNotes page, and I'll add a news item for it.
Bryce

[I've been away for a week, sorry for the very late reply]
On Wed, 24 Dec 2003, Alexander Clausen wrote:
Date: Wed, 24 Dec 2003 21:25:02 +0100 From: Alexander Clausen <skip@...121...> Reply-To: Alexander Clausen <alex@...122...> To: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Re: dnd [was: Re: export patches]
Hi
On Mi, Dez 24, 2003 at 12:08:34 -0800, Bryce Harrington wrote:
On Wed, 24 Dec 2003, Alexander Clausen wrote:
Hmm... looking at the Gimp sources, i found a comment about Konqueror only offering GDK_ACTION_MOVE. Now works with Konqueror (tested with latest version), too. Added to the patch, will commit later today.
Did you say you have drag and drop working between Inkscape and Konqueror?
You can drag a svg file from konqueror to inkscape, yes. But I have no idea how we could do the other way, we would have to add some kind of drag icon, or something...
Drag and drop out of a program ... hmmm.
I cant quite think of the best way to implement this for Inkscape but I can tell you about how one can drag and drop things out of Microsoft Word which i hope might be helpful.
First I have to mention drag and drop editing, you can select a chunk of text or text and images/objects and move it around the document. Similarly if you drag this from the window to the desktop it will be dropped as a 'scrap object'. The cursor changes to a indicate that you are dragging something around. If nothing was selected you could probably just drop the whole of the current document to the folder.
Sorry, I'm not sure that description is actually helpful but as usual I'm in a terrible hurry and I'm going to be late.
I hope this is somehow encouraging, and I would like to try and provide a more useful description later. Being able to easily drag things out of Inkscape (particularly embedded raster images or other objects) as well would be a really great piece of desktop integration.
Thanks for the drag and drop, and I really hope you will continue to work on it.
Happy New Year
Sincerely
Alan Horkan http://advogato.org/person/AlanHorkan/
participants (5)
-
Alan Horkan
-
Alexander Clausen
-
Bryce Harrington
-
bulia byak
-
MenTaLguY