Re: GtkEntry and default buttons. GtkEntry eats the "Enter"
- From: John Sullivan <sullivan eazel com>
- To: Jeff Shipman <shippy nmt edu>, Norman Black <stonybrk ix netcom com>
- Cc: gtk-list <gtk-list gnome org>, gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: GtkEntry and default buttons. GtkEntry eats the "Enter"
- Date: Tue, 27 Mar 2001 18:46:54 -0800
I wrote a utility function in Nautilus called nautilus_gtk_button_auto_click
that visibly highlights the button as well as calling its "clicked" signal.
It's intended for exactly this kind of thing. You can find it in the
nautilus sources in libnautilus-extensions/nautilus-gtk-extensions.c.
John
on 3/27/01 5:56 PM, Jeff Shipman at shippy nmt edu wrote:
> Hook up the "activate" signal of the entry to
> emit the "clicked" signal on your default button.
>
> Jeff "Shippy" Shipman E-Mail: shippy nmt edu
> Computer Science Major ICQ: 1786493
> New Mexico Institute of Mining and Technology
> Homepage: http://www.nmt.edu/~shippy
>
> On Tue, 27 Mar 2001, Norman Black wrote:
>
>> I have a dialog with a GtkEntry (GtkCombo also has this issue) and the
>> dialog has a default button.
>> Entering text and pressing Enter does not activate the default button. You
>> have to tab off of any control with a GtkEditable and then you can press
>> enter to activate the default button.
>>
>> How can I get the desired behavior. I must be missing something because this
>> is too obvious to have been missed.
>>
>> Best Regards,
>> Norman Black
>> Stony Brook Software
>>
>>
>>
>> _______________________________________________
>> gtk-list mailing list
>> gtk-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtk-list
>>
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]