Re: Widgets inside a GtkDrawingArea
- From: Sander Marechal <s marechal jejik com>
- To: Olexiy Avramchenko <aolexiy gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Widgets inside a GtkDrawingArea
- Date: Tue, 21 Mar 2006 00:23:06 +0100
Olexiy Avramchenko wrote:
Take a look at GtkLayout instead of GtkDrawingArea. This widget
provides a window GtkLayout::bin_window that can be used for custom
drawing like GtkDrawingArea and also it is a container like GtkFixed.
I'm also having trouble getting the GtkLayout resized properly if the
main window changes size. It looks like GtkLayout and it's container
element GtkScrolledWindow do not send out configure_event's when the
main GtkWindow is resized. Is this true?
I have tried attaching a configure_event to the window itself and
calling getting the size of the GtkScrolledWindow in the code, but that
doesn't work. The resizing of the GtkLayout starts to lag a couple of
frames behind the actual resize so it ends up at an incorrect size.
Setting the configure_event to shoot after the class function improved
it a little, but it still lags.
Any solutions to this? Thanks!
--
Sander Marechal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]