[Gtk-sharp-list] Getting the path from Fileselection dialog
Christian Rudh
lists-christian at rudh.se
Wed Jun 29 13:33:24 EDT 2005
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.
>
More information about the Gtk-sharp-list
mailing list