Re: why is class HelloWorld : public Gtk::Window ?
- From: Murray Cumming <murrayc murrayc com>
- To: Damon Register <damon w register lmco com>
- Cc: gtkmm-list gnome org
- Subject: Re: why is class HelloWorld : public Gtk::Window ?
- Date: Thu, 12 Feb 2009 16:46:12 +0100
On Thu, 2009-02-12 at 09:06 -0500, Damon Register wrote:
> Murray Cumming wrote:
> > Your window probably just has visible-true in the Glade defnition,
> > meaning that it is visible as soon as you parse the Glade file. I have
> Mine is set to false
>
> > never seen the point of that Glade/libglade feature myself - it confuses
> > many people.
> Yes, it does confuse me but I am less bothered by whether or not the
> glade window is visible or not and more bothered by the existence of two
> windows, visible or not. Now if I understand correctly, this
>
> hello window;
>
> creates one Gtk::Window instance because
>
> class hello : public Gtk::Window
>
> Next, in main()
>
> xml_interface = Gtk::Builder::create_from_file("hello.xml");
>
> creates a second invisible (because visible is False in the Glade
> file) Gtk::Window instance.
[snip]
If you use the derived window system, you should get only one window.
The class instance will use the one that you get from Glade.
But maybe there's a bug. If so, please do file a bug report with a test
case.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]