[Gtk-sharp-list] Gtk Dialog from glade files?

underdog10 at netcourrier.com underdog10 at netcourrier.com
Sun Jul 10 08:54:53 EDT 2005


I'd like to know (and if possible: 'how') if I can load some
Gtk.Dialog, but the main 'layout' window is not load from a Glade File.

For example, I'd like to create some Dialog that will be inherited from
my main window but loading from a Glade file (a Dialog that I have in a

Something like this:

[Glade.Widget] Gtk.Dialog dialog1;
[Glade.Widget] Gtk.Button button4;

public void CreateGui() 
	Glade.XML gxml = new Glade.XML (null, "pref.glade", "dialog1", null);
	gxml.Autoconnect (this);
    catch(Exception ex){
	Console.WriteLine("Glade Pref Dialog error: " + ex.Message);
   	dialog1.Title = "Configuration";
     catch(Exception ex){
	Console.WriteLine("Glade Pref signal Dialog error: " + ex.Message);

I keep getting exception trying to set dialog title or any widget:

Exception i got : "Object reference not set to an instance of an object".

Can I do something similar?.


NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,16 € TTC/min)

More information about the Gtk-sharp-list mailing list