(no subject)
- From: "Padraig O'Briain" <Padraig Obriain Sun COM>
- To: gtk-devel-list gnome org
- Subject: (no subject)
- Date: Thu, 4 Oct 2001 15:09:45 +0100 (BST)
While figuring out how focus moves from one widget to another I noticed an
optimization which saves a couple of function calls when all children are
unfocusable.
OK to commit?
Padraig
--- gtkcontainer.c 2001/09/24 16:54:41 1.88
+++ gtkcontainer.c 2001/10/04 14:04:40
@@ -1603,12 +1603,12 @@ gtk_container_focus (GtkWidget *w
children = g_list_reverse (children);
}
+ /* Remove any children which are inappropriate for focus movement
+ */
+ children = filter_unfocusable (container, children);
+
if (children)
{
- /* Remove any children which are inappropriate for focus movement
- */
- children = filter_unfocusable (container, children);
-
switch (direction)
{
case GTK_DIR_TAB_FORWARD:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]