TreeView and default widget
- From: Attilio Fiandrotti <fiandro tiscali it>
- To: gtk-app-devel-list gnome org
- Subject: TreeView and default widget
- Date: Sun, 04 Jun 2006 12:07:17 +0200
Hi
In my interface i have a button which grabs default focus like this
GTK_WIDGET_SET_FLAGS (GTK_WIDGET(my_button), GTK_CAN_DEFAULT);
gtk_widget_grab_default (button)
so that it gets activated when the user presses enter key,
and i also have a Treeview which grabs focus like this
gtk_widget_grab_focus(view)
so that the user can scroll the list without tabbing into it.
Obviously, when the treeview is active, the enter key no longer
activates the button and the user has to tab over it and press space or
enter to activate it.
Is there a solution for this that doesn't require dealing with
key_press_event signal?
thanks
Attilio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]