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

Re: What Event if Window is not visible anymore



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]