[Gtk-sharp-list] LibGlade

Miguel de Icaza miguel@ximian.com
12 Aug 2002 14:58:40 -0400


Hello!

>     - I've left some funtions out:
>         glade_xml_construct: This is useless, AFAIKS
>         
>         glade_set_custom_handle
>         glade_xml_signal_connect
>         glade_xml_signal_connect_full
>         glade_xml_signal_connect_data: Don't know how to wrap these.
>         Ideas?
>         
>         glade_xml_signal_autoconnect
>         glade_xml_signal_autoconnect_full: I don't think that wrapping
>         these is useful. Instead, something should be written using
>         reflection.

I agree entirely.  It would be nice if we had something like:

	public GladeXML (string filename, object t);

This would load the GUI from the file, and would connect the signals as
specified to the methods specified on the existing object `t'.

So you could do things like:

class PrintDialog {
	void Ok () { do_print (); }
	void Cancel () { do_close (); } 
	PrintDialog ()
	{
		xml = new GladeXML ("print-dialog.glade", this);
	}
}

Miguel