[Gtk-sharp-list] Using a Dialog box defined with glade with an Gtk.Dialog herited class

mlgs mlgs at arsis.net
Wed Nov 15 15:10:32 EST 2006


On Wed, 2006-11-15 at 18:13 +0100, lordphoenix wrote:
> Le Wed, 15 Nov 2006 17:29:28 +0100,
> Gilles Fabio <gilles.fabio at gmail.com> a écrit :
> 
> > Hello there,
> > 
> > Yep, I also try and I think mlgs is right. So, specify the name as in
> > your gui.glade file. Probably, it's not "mydialog".
> > 
> > public class MyDialog : Gtk.Dialog {
> >  
> >     public MyDialog() : base()
> >     {
> >         Glade.XML gxml = new Glade.XML(null, "gui.glade",
> > "dialog_something", null); gxml.Autoconnect(this);
> >     }
> > }
> > 
> > dialog_something must be the name of the root widget.
> > 
> That's what I do! There is confusion because class name and widget name
> are the same and I've forgotten quotes in my message (sorry for the
> mistake). I've tried to change widget name and I've the same problem my
> dialog box is always empty.
> 

And looking at it again, you've probably retyped it instead of
copy/paste. Since mydialog.Run() should obviously be dlg.Run() and dlg
which is declared as dgl and used as dlg ;)

There would be no way to compile the source you gave:)

> Any other Idea??
> 

http://www.mono-project.com/GtkSharpBeginnersGuide

Try looking at this example (or even better try running it). There is
simply not enough info in your question.

Other option is that you send source with your question, so people can
test and see where the problem lies.


m.


> >  Nice to see french people on this mailing list :)
> Nice to read you here Play. Internet is not so big in fact :)
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



More information about the Gtk-sharp-list mailing list