Re: visibility_notify_event
- From: Federico Mena Quintero <federico helixcode com>
- To: Aaron Kennedy <aaron icr com au>
- Cc: Gnome Devel <gnome-devel-list gnome org>
- Subject: Re: visibility_notify_event
- Date: Tue, 31 Oct 2000 11:46:00 -0600
Aaron Kennedy <aaron icr com au> writes:
> I am having a problem getting a GtkWindow to emit the event
> visibility_notify_event. In the Gtk Documentation, I see that this event
> is emitted for a GtkWidget, but not it's "derived" widget GtkWindow. Is
> there a way to get GtkWindow to emit this also? An example is given
> below, where the function "function()" is never called...
>
> GtkWidget *window;
> window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
> gtk_signal_connect(GTK_OBJECT(window), "visibility_notify_event",
> GTK_SIGNAL_FUNC(function), NULL);
Try
gtk_widget_add_events (window,
(gtk_wiget_get_events (window)
| GDK_VISIBILITY_NOTIFY_MASK));
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]