This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Fix for handling of key events by Button widgets
- From: Fernando Nasser <fnasser at redhat dot com>
- To: tromey at redhat dot com
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: Tue, 16 Dec 2003 12:12:48 -0500
- Subject: Re: [PATCH] Fix for handling of key events by Button widgets
- Organization: Red Hat Canada
- References: <3FDF2455.3040403@redhat.com> <87llpcpuqk.fsf@fleche.redhat.com>
Tom Tromey wrote:
"Fernando" == Fernando Nasser <fnasser@redhat.com> writes:
Fernando> Pressing a key when a button had the focus was having no effect.
Ok, with one formatting change.
Fernando> else
Fernando> ! /* GtkButton events go to the "event_window" and this is what
Fernando> ! we registered when the button was created. */
Fernando> ! if (GTK_IS_BUTTON (window->focus_widget))
Fernando> ! obj_window = GTK_BUTTON (window->focus_widget)->event_window;
Fernando> ! else
Fernando> ! obj_window = window->focus_widget->window;
In this situation we would either use "else if" (see the first
"else"...) or, alternatively, braces around the entire "if" statement
in the "else" clause.
Right, I should know better. I will make the change.
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9