[g-a-devel]Reg setting default focus on the 'Close' button in a Dialog (Menu Bar)



Hi,

In the Menu Bar applet, it is possible to add additional menu's with
configurable names to the Menu Bar. This is done via a dialog which has
a GtkEntry Widget to take in user input.

This gtkEntry Widget has been given the default focus using the call
gtk_widget_grab_focus().

I want to set default focus on the "close" button so that pressing
"enter" will close the dialog. I will be doing this by overriding
gtkEntry widget's default focus.

Is this ok? Or would I be breaking a 'feature' of the dialog - wherein
focus is meant to be on the gtkEntry Widget?

Regards,
Hema.
**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.


 ********************************************************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]