Re: Event for GtkWindow "focus"?



the "focus-in-event" and "focus-out-event" signals are emited
on the GtkWidget Class.

both can be handled with the same type handler
and inside the handler you can check

event->in == TRUE to check if the widget should have focus.

this is independant of any WM.

Cheers,
	-Tristan

Robert Roebling wrote:
> 
>   Hi,
> 
> under both GTK 1.2 and GTK 2.0, I would like to
> know (get notified about) which GtkWindow is
> currently "active" or "focussed" or whatever
> you call it, basically what the WM tells you
> by changing the title bar of a Window. (If
> a dialog comes up, the title bar of the original
> window will e.g. turn grey and the title bar
> of the new dialog will be e.g. blue or better
> visible.) Does the WM inform the app in some
> way about which window gets the focus or gets
> activated?
> 
> Thanks for any hint,
> 
>   Robert
> 
> --
> Robert Roebling, MD <robert roebling medizin uni-ulm de>
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list



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