[Mono-devel-list] Patch to make Gtk.FileChooserDialog somewhat useable

Rafael Teixeira monoman at gmail.com
Mon Jan 24 16:40:18 EST 2005


With this patch in place this snippet runs:

		using (FileChooserDialog chooser = 
			new FileChooserDialog("Choose new picture file", Gtk.Stock.Open,
this.MainWindow, FileChooserAction.Open)) {
			chooser.SelectMultiple = false;
			ResponseType response = (ResponseType) chooser.Run();
			if (response == ResponseType.Accept) {
				Console.WriteLine("FileChooserDialog filename = '{0}'", chooser.Filename);
				myLife.PathToPhoto  = chooser.Filename;
			} else {
				Console.WriteLine("FileChooserDialog response = '{0}'", response);
			}
			chooser.Destroy();
		}

Hope it can be accepted,

-- 
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FileChooserDialog.diff
Type: text/x-patch
Size: 1343 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050124/aae19d5b/attachment.bin 


More information about the Mono-devel-list mailing list