Re: GtkStatusbar and its GtkBox interface.



On Jan 18, 2008 1:16 PM, Bastiaan Veelo <bastiaan sarc nl> wrote:
> Hi,
>

Hi,

> I had a look at the source of GtkStatusbar after having failed to give
> it an extra child and have it look properly. The problem is that extra
> children are drawn overlapping the frame of the status bar, instead of
> inside the frame (only checked win32). Internally there is just one
> child in the frame: the label of the status bar. So anyone wanting to
> display extra widgets /inside/ the frame (why would you want anything
> else) will have to replace the frame's child -- which should be
> considered hacking with private data.
>
> A recent revision (#19245) makes GtkStatusbar detect just this hack and
> support it, and I wonder whether this is going to be recommended
> practice. Wouldn't it be better to change the implementation and give
> the frame an hbox and put any extra children in there, alongside the label?

Yes, I'm the perpretator of that hack
(http://bugzilla.gnome.org/show_bug.cgi?id=415677). It fixed a really
ugly problem in Epiphany at least, but some days ago we realized that
introduces another minor glitch.
It's probably possible to add yet another workaround to this, but I
agree with you that a cleaner design would
be much better.

If you have any ideas feel free to re-open the bug and comment there
or post some patch.

Cheers!
>
> This is itching me (I want an occasional progress bar in there) and I
> may be able to propose a patch if there is any interest.
>
>
> Best regards,
> Bastiaan.
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]