Re: [gtkmm] Double Window Hell



Dennis Craven <linuxnewb rogers com> writes:
> > > File MyWindow.hh:
> > > 
> > > class MyWindow : public Gtk::Window
> > > {
> > > public:
> > >   MyWindow();
> > >   virtual ~MyWindow();
> > > };
> > > 
> > > 
> > > File MyWindow.cc:
> > > 
> > > MyWindow::MyWindow()
> > > {
> > >   Glib::RefPtr<Gnome::Glade::Xml> refXml;
> > >   refXml = Gnome::Glade::Xml::create("gotter2.glade");
> > > }
> > > 
> > > MyWindow::~MyWindow()
> > > {
> > > }
> > > 
> > > 
> > > File main.cc:
> > > 
> > > #include "MyWindow.hh"
> > > 
> > > int main(int argc, char ** argv)
> > > {
> > >   Gtk::Main kit(argc, argv);
> > > 
> > >   MyWindow mainWindow;
> > >   kit.run(mainWindow);
> > > 
> > >   return (0);
> > > }

It seems that the MyWindow class is just an empty window. I don't know
much about glade, but I would think that the MyWindow class is not
necessary. All you need is the Gnome::Glade::Xml::create() call.

-- 
Fredrik Arnerup <e97_far e kth se>




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