From: Olivier Andrieu MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: <17654.42381.853096.532862 at karryall.dnsalias.org> Date: Thu, 31 Aug 2006 11:02:05 +0200 To: Maxence Guesdon Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: Getting the focused widget In-Reply-To: <20060831102549.0857e375 at tintin.inria.fr> References: <20060831102549.0857e375 at tintin.inria.fr> Content-Type: text/plain; charset=us-ascii Content-Length: 464 Salut Maxence, 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()) -- Olivier