Re: TreeView and default widget
- From: David Nečas (Yeti) <yeti physics muni cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: TreeView and default widget
- Date: Sun, 4 Jun 2006 12:10:48 +0200
On Sun, Jun 04, 2006 at 12:07:17PM +0200, Attilio Fiandrotti wrote:
In my interface i have a button which grabs default focus like this
GTK_WIDGET_SET_FLAGS (GTK_WIDGET(my_button), GTK_CAN_DEFAULT);
so that it gets activated when the user presses enter key,
and i also have a Treeview which grabs focus like this
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
I suppose the treeview is completely passive when the user
can press Enter and nothing is supposed to happen in the
treeview itself. Then you can connect to its
"row-activated" signal and handle it as activation of the
Anonyms eat their boogers.
] [Thread Prev