Re: Detecting whether a widget is displayed.
- From: Lars Wirzenius <liw liw fi>
- To: gtk-app-devel-list gnome org
- Subject: Re: Detecting whether a widget is displayed.
- Date: Thu, 05 Nov 2009 18:11:14 +0200
On Thu, 2009-11-05 at 07:58 -0800, Daniel Burrows wrote:
On Thu, Nov 05, 2009 at 04:31:27PM +0200, Lars Wirzenius <liw liw fi> was heard to say:
On Thu, 2009-11-05 at 06:28 -0800, Daniel Burrows wrote:
I'm trying to write a custom widget (in GTK--) that would benefit
from knowing whether it's currently visible or not.
Do the map-event and unmap-event signals on GtkWidget do what you need?
I tried them earlier -- it didn't seem like my object was ever
receiving the map or unmap events, though. I can take another look;
maybe my test was wrong.
Did you connect to map or map-event? Both signals seem to exist. I think
the latter is the one you'd want. (Ditto for unmap and unmap-event.)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]