Re: [PATCH] Drop text in Nautilus window, new file created



Am Freitag, den 01.07.2005, 12:07 +0200 schrieb Alexander Larsson:
> On Thu, 2005-06-30 at 14:31 +0200, Christian Neumair wrote:
> > Am Donnerstag, den 23.06.2005, 22:07 +0200 schrieb Christian Neumair:
> > > Am Dienstag, den 07.06.2005, 11:36 +0200 schrieb Alexander Larsson:
> > > > On Thu, 2005-06-02 at 11:33 +0200, Christian Neumair wrote:
> > > > > One thing that bugged me for ages in Nautilus is that one can not drop
> > > > > text (from gedit, Epiphany) to Nautilus to create a new file. After
> > > > > applying the attached patch, this works.
> > > 
> > > > [patch review]
> > > 
> > > Thanks for your review! The attached patch should fix all the issues you pointed out.
> > 
> > OK, new version. I've now also fixed the handle_* method declarations
> > and the odd
> > nautilus_file_operations_new_file_from_template/target_filename variable
> > usage.
> 
> I tested this, and it doesn't seem to handle dnd of non-ascii. I tried
> to drop "åäö" into a file and got: "\u00e5\u00e4\u00f6".

A quick test revealed that dropping from gedit indeed results in the
behavior you described, but dropping from mozilla doesn't. Any ideas
Paolo? The relevant nautilus code is at
[1]:nautilus_file_operations_new_file. Do you know such (supposed)
encoding/escape messes?

[1] http://mail.gnome.org/archives/nautilus-list/2005-June/msg00214.html

-- 
Christian Neumair <chris gnome-de org>

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



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