FileChooserWidget does not seem to be working for me from Glade. I have
a test case attached, as well as a pygtk test that does the same thing
and works.

~ chris
using System;

using Gtk;

namespace Test
{
	public class MainClass
	{

		public static void Main (string[] args)
		{
			Application.Init ();
			new MainClass ();
			Application.Run ();
		}

		[Glade.Widget] private FileChooserWidget chooser;
		[Glade.Widget] private Window            window;

		public MainClass ()
		{
			Glade.XML gxml = new Glade.XML ("ChooserTest.glade", "window",
			                                null);
			gxml.Autoconnect (this);

			window.Show ();
		}
	}
}

Attachment: ChooserTest.glade
Description: application/glade

#!/usr/bin/env python
"""Test case to test FileChooserWidget from glade"""

import pygtk; pygtk.require('2.0')
import gtk, gtk.glade

class FileChooserTest:

	def __init__(self):
		widgets = gtk.glade.XML("ChooserTest.glade", "window")
		widgets.signal_autoconnect(self)
		gtk.main()

if __name__ == "__main__":
	FileChooserTest()
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to