Date: Thu, 31 Aug 2006 11:25:20 +0200 From: Maxence Guesdon To: Olivier Andrieu Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: Getting the focused widget Message-ID: <20060831112520.0ba56922 at tintin.inria.fr> In-Reply-To: <17654.42381.853096.532862 at karryall.dnsalias.org> References: <20060831102549.0857e375 at tintin.inria.fr> <17654.42381.853096.532862@karryall.dnsalias.org> Organization: INRIA Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Content-Length: 678 On Thu, 31 Aug 2006 11:02:05 +0200 Olivier Andrieu wrote: > Salut Maxence, Salut, > Maxence Guesdon [Thursday 31 August 2006] : > > Is there a way to get the focused widget ? > > Good question, I don't know. > > > or at least to know whether a given widget has the focus ? > > w#misc#get_flag `HAS_FOCUS > or Gobject.get w#as_widget GtkBase.Widget.P.has_focus > > and Gobject.get w#as_widget GtkBase.Widget.P.is_focus > > They seem to be a bit different (cf. the documentation of > gtk_widget_is_focus() and GTK_WIDGET_HAS_FOCUS()) Ok, merci beaucoup. Maxence -- Maxence Guesdon http://yquem.inria.fr/~guesdon/ http://devel.inria.fr/rocq/