Re: Is there a way to access to the GtkFileChooser's file list ??



On Wed, 2004-05-26 at 20:52 +0200, simonartige free fr wrote:
> Hi !
> 
> I’m a newbie and I really need your help ! I’m currently using a GtkFileChooser 
> for an application I’m programming and I need something I can’t happen to find 
> anywhere. I’d like to access to the file list field. Indeed, I’d like to 
> implement a drag&drop between the treeview which contains the file list and 
> another treeview so I can add easily a file in my treeview.
> 
> I know it’s possible to access to the file list in a GtkFileSelection by using 
> the field file_list. However, is it possible to do the same thing with a 
> GtkFileChooser ? If so, could you guys tell me how ?
> 
> Thanks so much for advance ! I really need this information, so please help 
> meeee !
> 
> Simon.

There currently is no way to do what you want, though that functionality
arguably belongs in FileChooser (so you don't need to bother with DnD
for the file-chooser, just add the "text/x-uri-list" target to your
TreeView). I'd recommend filing a bug on GTK+ for this (if you write a
patch to implement this, attach it to the bug, then drop a mail here it
has a good chance of getting into the next release).

The relevant file in the GTK+ source tree is:

gtk/gtkfilechooserdefault.c

-- 
Peace,

    Jim Cape
    http://ignore-your.tv

    "We still name our military helicopter gunships after victims
     of genocide. Nobody bats an eyelash about that: Blackhawk.
     Apache. And Comanche. If the Luftwaffe named its military
     helicopters Jew and Gypsy, I suppose people would notice."
       -- Noam Chomsky, "Propaganda and the Public Mind"

Attachment: signature.asc
Description: This is a digitally signed message part



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