This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix for handling of key events by Button widgets


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]