Re: mixing glade and subclassed dialogs



On Sat, 2009-09-26 at 13:16 -0400, Christopher Harvey wrote:
> Hi list,
> Just wondering if there was a way I could design a dialog box in glade, then 
> create a class in my code like this:
> 
> class Gtk::Dialog : public MyDialog {
>   MyDialog() :
>   Dialog() {
>      //setup widgets here from xml.
>   }
> };
> 

I suppose you wrote this example code too hasty. You can have MyDialog,
which derives from Gtk::Dialog, not otherwise.

> and somehow implement all the functionality for my dialog in that class and at 
> the same time have the xml do all the widget setup.
> 
> the problem I see is that the xml dialog already has a dialog when it is 
> created, so how can I tell gtk builder to use my subclass dialog and not the 
> from from gtk builder...
> 

http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-builder-using-derived-widgets.html.en

> thanks!
> -Chris

Krzem

> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]