Re: ---Can I remove the focus



A widget can be focused only if GTK_CAN_FOCUS is set on the widget.

You can unset this using GTK_WIDGET_UNSET_FLAGS (widget, GTK_CAN_FOCUS);

Padraig

Zhao Qing wrote:
I am creating a window having 2 entries. I need to have 2 cases as below:

1. both of them will not accept the user's input.
   no focus moving when pressing arrow keys

2. only one of them accept user input.
   the focus still holding the one which accepting user input even after
moving arrow keys.

Thanks in advance!

Bill Zhao

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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