Re: Moving focus on Enter
- From: Lucas Clemente Vella <lvella gmail com>
- To: "Milosz Derezynski" <internalerror gmail com>, gtkmm-list gnome org
- Subject: Re: Moving focus on Enter
- Date: Wed, 12 Sep 2007 08:32:50 -0300
Em Quarta 12 Setembro 2007, você escreveu:
> (Sorry for reposting Lucas, i forgot to CC gtkmm-list)
> So it seems there is no functionality to move it to the next widget;
> you'd have to get the focus chain, get the pointer address of the
> current focus widget, find it in the list, get the next widget, and
> focus it using Gtk::Widget::grab_focus(). O(N) operation; too bad
> GtkContainer doesn't keep track of the current focus widget.
> (Previous post said O(1) operation, i meant O(N) operation of course)
> Addition: You might want to use std::tr1::unordered_map<> or just a
> Glib/C GHashTable to keep track of the focus widgets, would maybe
> speed things up a little although traversing that list should be
> exteremely fast anyway.
Thanks, I thought it would be easier than searching that list, but it will do
for my application.
Lucas Clemente Vella
lvella gmail com
] [Thread Prev