On Wed, 2003-06-25 at 20:44, Loban A Rahman wrote:
(1) How do I know if a particular GtkWindow is currently "in focus by the window manager"? Yes, I can capture the focus-in-event and focus-out-event. I could store the focused state inside a variable from those callbacks. I was wondering if given a GtkWindow, if there was a function or property that would tell me if it is in focus by the window manager (2) How do I know if the mouse is currently inside a particular GtkWindow. I could capture the enter-notify-event and leave-notify-event. However, these work weirdly. For example, suppose I have a GtkWindow that contains a Gtk:abel and a GtkButton. When the mouse enters anywhere in the GtkWindow, and enter-event fires. However, if I move from the GtkLabel into the GtkButton, a leave-event fires, even though the mouse is still inside the entire GtkWindow. I'm suspecting this is because it has moved over a new GdkWindow (which the button uses). So, is there a signal I can use that only fires when the mouse enter/leaves the entire GtkWindow? Cheers, Loban
I'm not sure about the second question, but as for the first, there is a struct member: (GtkWindow *)->has_focus; -- Peace, Jim Cape http://ignore-your.tv "It is literally true that, like Christianity, Socialism has conquered the world by defeating itself." -- Alexander Berkman, ABC of Anarchism
Attachment:
signature.asc
Description: This is a digitally signed message part