[Gtk-sharp-list] Getting the path from Fileselection dialog
monoman at gmail.com
Thu Jun 30 10:45:30 EDT 2005
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 at rudh.se> wrote:
> You can get the complete URI to the selected file through fs.Uri, or
> fs.Uris if you have multiple selection enabled.
> 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 at lists.ximian.com
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.
More information about the Gtk-sharp-list