Re: [Fwd: Re: [gtk-list] ANNOUNCE: GTK+ 1.2.5pre1 (please test)]
- From: Mikael Hermansson <mikeh bahnhof se>
- To: Mikael Hermansson <mikeh bahnhof se>
- cc: Owen Taylor <otaylor redhat com>, gtk-devel-list redhat com
- Subject: Re: [Fwd: Re: [gtk-list] ANNOUNCE: GTK+ 1.2.5pre1 (please test)]
- Date: Mon, 6 Sep 1999 20:06:59 +0200 (CEST)
After a check in gtkwidget.c
I removed the if(need_paint) statement in gtk_widget_size_allocate
and now it works better on my system.
But this is probadly a bad hack because now the widget will always repaint
when calling gtk_widget_size_allocate....
Please check this and why need_paint==FALSE when it probadly should be
TRUE?
gtkwidget.c -> gtk_widget_size_allocate(...)
/* if(need_paint) */ <---- removed statement by me, and now it worksbetter*/
gtk_widget_queue_draw(widget);
Greats
MikeH
On Mon, 6 Sep 1999, Mikael Hermansson wrote:
> On 5 Sep 1999, Owen Taylor wrote:
>
> > Hmmm,
> >
> > That's reasonably normal in all respects; though not a very
> > reproducible configuration.
> >
> > Just to make sure we are debugging the right thing, could you
> > make sure:
> >
> > 1) You actually installed the new version of GTK+. (I've
> > made that mistake a few times. With glibc-2.0, testing
> > in place doesn't work)
> >
> > 2) (using ldd) Your apps are linking against the copy of
> > GTK+ that you've just installed.
> >
> > Beyond that - the lack of drawing on resizes should be the
> > easier thing to debug if you are interested in going in with
> > a debugger. When the user resizes a window, the
> >
> > if (window->handling_resizes)
> >
>
> Yes all Applications links against the new libs...
>
> I dont know if this could be something.
> But it looks like gtk should call all widgets size_allocate callback
> first time the childwidgets is shown/realized or when user resize the
> Topwindow.
>
> Am i right?
>
> Because the thing is that first time it calls size_allocate the height is
> 1 on the child widgets?
>
> The widget should the change this value if it want to have more?
> It looks like the callback is not reading this values first time and this
> means the widget height is set to 1. And all those widgets is only show a
> tiny line.
>
> Next when i resize the window it will show all widgets correctly. But
> there will still be problem with the menus because it only calls
> size_allocate ones. And ofcourse the menus will never be resized.
>
> Greats
>
> MikeH
>
> Sorry my poor english :-/
>
> ---
>
> Check out my homepage at (under heavy reconstruction):
> http://www.bahnhof.se/~mikeh
>
> Email: mikeh@bahnhof.se
> international Phone 46-44-126995
> Sweden Phone: 044-126995
> ICQ: Error fix later
>
>
> --
> To unsubscribe: mail gtk-devel-list-request@redhat.com with
> "unsubscribe" as the Subject.
>
---
Check out my homepage at (under heavy reconstruction):
http://www.bahnhof.se/~mikeh
Email: mikeh@bahnhof.se
international Phone 46-44-126995
Sweden Phone: 044-126995
ICQ: Error fix later
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]