Re: How to find width of a menubar?
- From: Vladislav Grinchenko <3rdshift comcast net>
- To: sudrien fusemail com
- Cc: Gtkmm list <gtkmm-list gnome org>
- Subject: Re: How to find width of a menubar?
- Date: Wed, 26 Jan 2005 08:35:55 -0500
On Wed, 2005-01-26 at 07:27, Paul Davis wrote:
this is not quite correct as a general solution, because many widgets
> render into their parent's window.
>
> the more general solution is to connect to the allocate signal for the
> widget, which is emitted every time GTK recomputes the size that the
> widget will be rendered at.
>
> --p
I second that. BTW, when you connect to the signal and trace the
frequency of the callback being fired, you would be surprised how often
that happens.
If you need the correct syntax, here is an example:
<http://cvs.sourceforge.net/viewcvs.py/granule/granule/src/DeckPlayer.cpp?rev=1.62&view=auto>
Search for 'signal_size_allocate' and 'size_allocate_cb'
-- Vlad
_____________________________________________________________
Vladislav Grinchenko http://home.comcast.net/~3rdshift/
e-mail: 3rdshift comcast net
Focus on quality, and productivity will follow.
_____________________________________________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]