зеркало из https://github.com/mono/mail-archives.git
103 строки
4.4 KiB
HTML
103 строки
4.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Gtk-sharp-list] Getting the path from Fileselection dialog
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Getting%20the%20path%20from%20Fileselection%20dialog&In-Reply-To=1120066404.29517.11.camel%40localhost">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="006083.html">
|
|
<LINK REL="Next" HREF="006084.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Gtk-sharp-list] Getting the path from Fileselection dialog</H1>
|
|
<B>Rafael Teixeira</B>
|
|
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Getting%20the%20path%20from%20Fileselection%20dialog&In-Reply-To=1120066404.29517.11.camel%40localhost"
|
|
TITLE="[Gtk-sharp-list] Getting the path from Fileselection dialog">monoman at gmail.com
|
|
</A><BR>
|
|
<I>Thu Jun 30 10:45:30 EDT 2005</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="006083.html">[Gtk-sharp-list] Getting the path from Fileselection dialog
|
|
</A></li>
|
|
<LI>Next message: <A HREF="006084.html">[Gtk-sharp-list] Toolbar Space
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#6087">[ date ]</a>
|
|
<a href="thread.html#6087">[ thread ]</a>
|
|
<a href="subject.html#6087">[ subject ]</a>
|
|
<a href="author.html#6087">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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 <<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">lists-christian at rudh.se</A>> wrote:
|
|
><i> Hi
|
|
</I>><i>
|
|
</I>><i> You can get the complete URI to the selected file through fs.Uri, or
|
|
</I>><i> fs.Uris if you have multiple selection enabled.
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> /Christian
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> On Wed, 2005-06-29 at 19:18 +0200, Michele Beltrame wrote:
|
|
</I>><i> > Hi!
|
|
</I>><i> >
|
|
</I>><i> > This might sound as a silly question, but I'm no Gtk wizard (yet ;-)) so
|
|
</I>><i> > I don't know how to achieve this.
|
|
</I>><i> >
|
|
</I>><i> > I have a Gtk.Fileselection dialog and I need to retrieve the chosen
|
|
</I>><i> > filename and also the path. There's no problem for the filename of course:
|
|
</I>><i> >
|
|
</I>><i> > string fname = fs.SelectionEntry.Text
|
|
</I>><i> >
|
|
</I>><i> > but I can't find a way to get the path which is displayed in the
|
|
</I>><i> > HistoryPulldown.
|
|
</I>><i> > I tried to dig into this property and the objects behind it, but even
|
|
</I>><i> > though I can go as down as MenuItems I don't know how to retrieve the
|
|
</I>><i> > label at that point.
|
|
</I>><i> >
|
|
</I>><i> > Thanks in advance, Michele.
|
|
</I>><i> >
|
|
</I>><i>
|
|
</I>><i> _______________________________________________
|
|
</I>><i> Gtk-sharp-list maillist - <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">Gtk-sharp-list at lists.ximian.com</A>
|
|
</I>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</A>
|
|
</I>><i>
|
|
</I>
|
|
|
|
--
|
|
Rafael "Monoman" Teixeira
|
|
---------------------------------------
|
|
I'm trying to become a "Rosh Gadol" before my own eyes.
|
|
See <A HREF="http://www.joelonsoftware.com/items/2004/12/06.html">http://www.joelonsoftware.com/items/2004/12/06.html</A> for enlightment.
|
|
It hurts!
|
|
</PRE>
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="006083.html">[Gtk-sharp-list] Getting the path from Fileselection dialog
|
|
</A></li>
|
|
<LI>Next message: <A HREF="006084.html">[Gtk-sharp-list] Toolbar Space
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#6087">[ date ]</a>
|
|
<a href="thread.html#6087">[ thread ]</a>
|
|
<a href="subject.html#6087">[ subject ]</a>
|
|
<a href="author.html#6087">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
|
|
mailing list</a><br>
|
|
</body></html>
|