[gtk+] Remove a shortcut in gtk_widget_set_focus_child
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove a shortcut in gtk_widget_set_focus_child
- Date: Wed, 25 Oct 2017 22:37:22 +0000 (UTC)
commit 46d4deeb1e5c41c9d317235387d227de49718f61
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 25 18:26:06 2017 -0400
Remove a shortcut in gtk_widget_set_focus_child
Since focus can now be represented by more than one state,
just looking at the focus_child is no longer sufficient - we
may fail to propagate :focus(visible) if we do so. For now,
just remove the shortcut and always do the work.
gtk/gtkwidget.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 823b3ab..e1e7d73 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -15466,9 +15466,6 @@ gtk_widget_set_focus_child (GtkWidget *widget,
g_return_if_fail (GTK_IS_WIDGET (widget));
- if (child == priv->focus_child)
- return;
-
if (child != NULL)
{
g_return_if_fail (GTK_IS_WIDGET (child));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]