Re: [gtkmm] Double Window Hell
- From: Fredrik Arnerup <e97_far e kth se>
- To: Dennis Craven <linuxnewb rogers com>
- Cc: Murray Cumming Comneon com, gtkmm-list gnome org
- Subject: Re: [gtkmm] Double Window Hell
- Date: 15 Dec 2003 14:55:05 +0100
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]