Re: [glade--]bug fix for widgets with visible=false
Christof Petig <[email protected]>
| Newsgroups | gmane.comp.gnome.glademm |
|---|---|
| Organization | Adolf Petig GmbH & Co. KG |
| Message-ID | <[email protected]> |
Howdy Pierce wrote:
> Hello--
>
> Attached is a fix for what I believe to be a bug in src/writers/widget.cc.
>
> Briefly, I want to create a window without having the myWindow_glade()
> constructor call the myWindow->show() function. That way, my myWindow()
> constructor can make changes to the window before showing it.
>
> Based on the source code, it appears that I should be able to create the
> window in Glade and set the visible property to false. However, what
> happens in that case is that the "visible" property is not present in the
> .glade file. When visible=true, glade _always_ sets the visible property in
> the .glade file.
Looks like the default value is glade version dependant, I'll try to
address it for 0.6 and 1.1.3+.
>
> The bug is that glade-- interprets the absence of the visible property in
> the .glade file to mean visible=true, where Glade is expecting the reverse.
> Attached is a one-line change to src/writers/widget.cc to change the glade--
> behavior to match that of Glade.
Thank you for reporting
Christof