Re: gtk_fixed: 2.0 bug
- From: Owen Taylor <otaylor redhat com>
- To: yumj <yumj opencjk org>, gtk-devel-list gnome org
- Subject: Re: gtk_fixed: 2.0 bug
- Date: 09 Jun 2003 09:48:28 -0400
On Mon, 2003-06-09 at 03:09, James Henstridge wrote:
> 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).
There's also gtk_fixed_set_has_window(); but I think the problem
is slightly different - the problem is that button widgets no
longer draw onto separate windows, so the button widget will never
appear *above* another child of the fixed which has a separate
window.
You may have best luck drawing using
gtk_fixed_set_has_window(fixed,TRUE)
then whatever you were drawing on the drawing area directly
on the GtkFixed.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]