RE: [gtkmm] Double Window Hell



There is a "visible" property in Glade. If it is set then the window will be
visible immediately.

Murray Cumming
www.murrayc.com
murrayc usa net

> -----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]