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: Tom Tromey <tromey at redhat dot com>
- To: Fernando Nasser <fnasser at redhat dot com>
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: 16 Dec 2003 09:56:03 -0700
- Subject: Re: [PATCH] Fix for handling of key events by Button widgets
- References: <3FDF2455.3040403@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "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.
Tom