[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-gtk-sharp-list
Subject:    Re: [Gtk-sharp-list] Getting the path from Fileselection dialog
From:       Rafael Teixeira <monoman () gmail ! com>
Date:       2005-06-30 14:45:30
Message-ID: dd99b8c8050630074576de37ae () mail ! gmail ! com
[Download RAW message or body]

Also if you are using GTK# 2.4 or GTK# 2.6, it is better to use the
newer Gtk.FileChooserDialog or Gtk.FileChooserWidget that has a much
improved UI, and is the preferred choice.

On 6/29/05, Christian Rudh <lists-christian@rudh.se> wrote:
> Hi
> 
> You can get the complete URI to the selected file through fs.Uri, or
> fs.Uris if you have multiple selection enabled.
> 
> 
> /Christian
> 
> 
> On Wed, 2005-06-29 at 19:18 +0200, Michele Beltrame wrote:
> > Hi!
> >
> > This might sound as a silly question, but I'm no Gtk wizard (yet ;-)) so
> > I don't know how to achieve this.
> >
> > I have a Gtk.Fileselection dialog and I need to retrieve the chosen
> > filename and also the path. There's no problem for the filename of course:
> >
> > string fname = fs.SelectionEntry.Text
> >
> > but I can't find a way to get the path which is displayed in the
> > HistoryPulldown.
> > I tried to dig into this property and the objects behind it, but even
> > though I can go as down as MenuItems I don't know how to retrieve the
> > label at that point.
> >
> >       Thanks in advance, Michele.
> >
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 


-- 
Rafael "Monoman" Teixeira
---------------------------------------
I'm trying to become a "Rosh Gadol" before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic