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