[gtk+] Revert "Bug 590959 - Set child_has_focus flag properly"
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Revert "Bug 590959 - Set child_has_focus flag properly"
- Date: Fri, 7 Aug 2009 12:51:41 +0000 (UTC)
commit dfe0c8c0ca4823c77fa71b0048f6454958170b4e
Author: Xan Lopez <xan gnome org>
Date: Fri Aug 7 15:39:49 2009 +0300
Revert "Bug 590959 - Set child_has_focus flag properly"
This reverts commit 6e0af6c25225440263792a3cbecd8f4301e3def5.
The patch seems to break focus handling in some applications, like
Epiphany.
gtk/gtknotebook.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index a349add..aa1a5ad 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -3094,6 +3094,8 @@ static gint
gtk_notebook_focus_in (GtkWidget *widget,
GdkEventFocus *event)
{
+ GTK_NOTEBOOK (widget)->child_has_focus = FALSE;
+
gtk_notebook_redraw_tabs (GTK_NOTEBOOK (widget));
return FALSE;
@@ -3976,8 +3978,6 @@ gtk_notebook_set_focus_child (GtkContainer *container,
}
}
}
- else
- notebook->child_has_focus = FALSE;
GTK_CONTAINER_CLASS (gtk_notebook_parent_class)->set_focus_child (container, child);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]