RE: [gtkmm] Double Window Hell
- From: Dennis Craven <linuxnewb rogers com>
- To: Murray Cumming Comneon com
- Cc: gtkmm-list gnome org
- Subject: RE: [gtkmm] Double Window Hell
- Date: Mon, 15 Dec 2003 08:12:24 -0500
On Sat, 2003-12-13 at 09:39, Murray Cumming Comneon com wrote:
> There is a "visible" property in Glade. If it is set then the window will be
> visible immediately.
The issue isn't with the window NOT appearing. The window that I want to
appear does appear. The problem is that the second window is created
along with my application. Every time I execute my code, two windows
appear where I only want one. Of the two windows that appear, one is my
application, and the other is a blank window with the word "main" in its
title bar. That's the one I'd like to get rid of, but I don't know where
it is coming from. This window also seems to have control of killing the
application. Does this make sense?
Thanks for the help though,
~arker
> > -----Original Message-----
> > From: gtkmm-list-admin gnome org
> > [mailto:gtkmm-list-admin gnome org] On Behalf Of Dennis Craven
> > Sent: Samstag, 13. Dezember 2003 15:25
> > To: gtkmm-list gnome org
> > Subject: [gtkmm] Double Window Hell
> >
> >
> > Hey folks,
> >
> > This is something probably pretty simple, but it is making me
> > quite angry. I've used regular GTK+ before, but this is my
> > first time using gtkmm and also my first libglade(mm)
> > attempt. The problem is that when I execute my code, I get
> > two windows; one that I intended on getting, and one that is
> > just a blank window with the title "main". It appears that
> > the mystery window is dominant, as it is the only one (when
> > it's wm close button is clicked) that will kill the application.
> >
> > Here is a bit of the code that I have:
> >
> > 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);
> > }
> >
> >
> > I don't know if the contents of the .glade file is of
> > importance, but it maybe since my code doesn't look much
> > different than the examples that came with the packages.
> > Could it be that the problem lies in the .glade file? Is
> > there any documentation for the gtkmm/libglademm combo? If I
> > ever get this figured out, I might write up a simple tutorial
> > myself.. Something just to get people started using these two
> > packages in unison.
> >
> > Thanks in advance,
> > ~arker
> >
> > _______________________________________________
> > 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]