Re: GtkScrolledWindow can_focus
- From: "Matthias Clasen" <Matthias Clasen poet de>
- To: gtk-devel-list gnome org
- Subject: Re: GtkScrolledWindow can_focus
- Date: Wed, 3 Jul 2002 10:02:40 +0200
Hi Michael,
> Having struggled for some time trying to work out where
focus was
> disappearing too, I discover that it's the GtkScrolledWindow [ with no
> scrollbars ] that is getting the focus.
>
> It seems rather confusing to me to give focus to a widget
that doesn't
> express the fact that it has focus - [ in the case that the child
> doesn't take focus ].
I think http://bugzilla.gnome.org/show_bug.cgi?id=63480 is tracking the status of
this.
> Is this a feature ?
Probably yes, judging from the mentioned bugzilla entry.
> Also, does gtk_container_focus cull realized, but
> unmapped children from the focus chain ? it looks like if there are
> unmapped but realised children with an allocation that things might go
> wrong [ no idea if that's the case ].
This seems to be handled in gtk_widget_child_focus, which gets called to
move the focus between
the containers children. From the docs:
* This function replaces gtk_container_focus() from GTK+ 1.2. It was
* necessary to check that the child was visible, sensitive, and
* focusable before calling
* gtk_container_focus(). gtk_widget_child_focus() returns %FALSE if
* the widget is not currently in a focusable state, so there's no
* need for those checks.
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]