[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: What Event if Window is not visible anymore
- From: Jon Trowbridge <trow emccta com>
- To: gtk-app-devel-list redhat com
- Subject: Re: What Event if Window is not visible anymore
- Date: Wed, 23 Feb 2000 11:35:52 -0600
On Wed, Feb 23, 2000 at 05:55:08PM +0100, Steffen Raach wrote:
> I am trying to start a function whenever a (Popup-)Window gets (partly)
> invisible. I have tried
>
> gtk_signal_connect(GTK_OBJECT(window),
> "visibility_notify_event",
> GTK_SIGNAL_FUNC(visibility_notify_event_cb),
> NULL);
>
> but I never get a call of:
>
> static gint visibility_notify_event_cb(GtkWidget* window,
> GdkEventVisibility* e, gpointer data)
>
> Where is the problem?
You need to tell gtk that you want to get visibility events:
gtk_widget_add_events(GTK_WIDGET(window), GDK_VISIBILITY_NOTIFY_MASK);
-JT
--
GNU/Linux: Free your mind and your OS will follow.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]