Re: GtkWidget "visibility-notify-event" and visibility.



On Wed, 25 Mar 2009 16:24:57 +0300
Alexander <b3nder yandex ru> wrote:
On Wednesday 25 March 2009, Chris Vine wrote:
On Tue, 24 Mar 2009 23:49:13 +0300
Alexander <b3nder yandex ru> wrote:
[snip]
Thanks, GTK_WIDGET_VISIBLE() may help me. Is there any way to
catch event when widget is actualy hiding? 

You could use the hide signal that GtkWidget objects emit.

Chris.


I've tried to catch show and hide signals on GtkWidgetClass structure
while widget class initialization ( in the way it done for
GDK_VISIBILITY_NOTIFY and other widget events) and on
g_signal_connect() while widget realization stage. 

The second way just do nothing and the first way only emits show
signal, but not hide one.

Alexander,

I think we must be at cross purposes because a hide signal cannot be
emitted on a widget until it has been shown, and during construction it
has not been shown.  In any event, I do not really understand what you
are trying to do so I do not think I help you any further on this I am
afraid.

Also be careful with expressions like "catching" a signal, as GObject
signals have nothing to do with unix asynchronous signals.  Also, you
use g_signal_connect() to connect to the signal, not to emit it.

Chris



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]