Re: gtk_fixed: 2.0 bug



yumj wrote:

Gtk+-2.0 has a bug in gtk_fixed.
If put a drawing area on the fixed widget, and put a button widget
on the fixed widget with the button in the drawing area, then the
button not shown. This feature is ok in gtk+-1.2 version.
I don't think this is considered to be a bug. In GTK 2.0, the GtkButton widget was changed to be a NOWINDOW widget. This means that it draws directly onto its parent window. Since GtkDrawingArea has a window, if the button and drawing area overlap the button will be obscured. You can fix this by placing the GtkButton inside a GtkEventBox (which basically adds a window to a nowindow widget).

However, it may be better to switch to a different container widget. GtkFixed is almost always the wrong answer, especially if you want your app to appear okay under multiple themes/font sizes and translations. Consider using boxes or tables to layou out your interface instead.

James.

--
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






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