Allow a GtkWindow to prevent losing focus



Hi all,
  I made a subclass of GtkWindow for my particular needs, among which
there is this important one: when the user clicks on another window
of the same class in the same application, the window which currently
owns the focus should be notified of the event, and if needed be able to
prevent the focus to change.

I've seen the focus-in-event and focus-out-event, but they are called
only after the focus has been moved.

Is there some way to achive this behaviour, other than calling
gtk_window_present() to restore the focus to the window which originally
owned it?


-- 
Saluti,
    Mardy
http://interlingua.altervista.org
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 



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