Re: [gtk-list] Activate event



Wednesday Sep 8 08:32:47 +0100 1999 Janos Vegh <janos.vegh@sysdata.siemens.hu> wrote:
> Hi,
> 
> could somebody, please tell me:
> 
> How can I find out how can I find out if some window
> gets selected/deselected?
> (i.e. I need the same event/action which changes heading color, etc.)

Are the "focus_in_event" and "focus_out_event" events the ones you need ?

If yes, you'll need to write code:

gtk_widget_add_events(GTK_OBJECT (wigdet), GDK_FOCUS_CHANGE_MASK);

gtk_signal_connect(GTK_OBJECT (wigdet), "focus_in_event",
                   GTK_SIGNAL_FUNC (focus_in), data_p);
gtk_signal_connect(GTK_OBJECT (widget), "focus_out_event",
                   GTK_SIGNAL_FUNC (focus_out), data_p);

> 
> Please also CC: a mail to me
> Janos.Vegh@cern.ch
> 
> Thanks in advance
> 
> janos

Tomi



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