From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stan Pinte Newsgroups: gmane.lisp.guile.user Subject: Re: bug in focus management Date: Tue, 18 Feb 2003 09:42:18 +0100 Organization: Alto Software Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <20030218094218.2bd8dd36.alto_stan@wanadoo.be> References: <20030216164417.19e791d2.alto_stan@wanadoo.be> <87k7g0ds6t.fsf@zagadka.ping.de> Reply-To: alto_stan@wanadoo.be NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1045556164 14764 80.91.224.249 (18 Feb 2003 08:16:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 18 Feb 2003 08:16:04 +0000 (UTC) Cc: guile-user@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18l2u1-0003nP-00 for ; Tue, 18 Feb 2003 09:14:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18l2vF-0006g4-0A for guile-user@m.gmane.org; Tue, 18 Feb 2003 03:16:13 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18l2te-0005jo-00 for guile-user@gnu.org; Tue, 18 Feb 2003 03:14:34 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18l2tA-00059d-00 for guile-user@gnu.org; Tue, 18 Feb 2003 03:14:10 -0500 Original-Received: from ev6.be.wanadoo.com ([195.74.212.41]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18l2t4-0004lw-00 for guile-user@gnu.org; Tue, 18 Feb 2003 03:13:58 -0500 Original-Received: from pablo (dial-45-204.wanadoo.be [212.65.45.204]) by ev6.be.wanadoo.com (8.11.1/8.11.1) with SMTP id h1I8Dlq29797; Tue, 18 Feb 2003 09:13:47 +0100 Original-To: Marius Vollmer In-Reply-To: <87k7g0ds6t.fsf@zagadka.ping.de> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i686-pc-linux-gnu) X-DCC-wanadoo-be-Metrics: ev6 1023; Body=2 Fuz1=2 Fuz2=2 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1672 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1672 indeed, calling 'has_focus after the "focus-in-event" does the trick!!!! thanks a lot, Stan. It is weird, though, because the property is documented as "has-focus" in the Gtk docs... Is this normal? Is there a rule to guess the right form? Stan. On 16 Feb 2003 18:57:30 +0100 Marius Vollmer wrote: > Stan Pinte writes: > > > Indeed, when a widget has the focus, a call to (gtk-widget-get ref-entry 'has-focus) returns #f. > > > > Any idea? > > Try 'has_focus instead of 'has-focus. Also, the focus flag seems to > be set only after the "focus-in-event" handler has returned. Try > printing the focus flag from the "insert-text" handler to observe > this. > > -- > GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 > _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user