[gtk/wip/matthiasc/focus2: 16/32] Exclude non-drawable widgets from focus
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/focus2: 16/32] Exclude non-drawable widgets from focus
- Date: Sun, 3 Mar 2019 19:09:53 +0000 (UTC)
commit d71a030392b26a91d8cf846de565c4b2f8e8c17c
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 2 20:32:11 2019 -0500
Exclude non-drawable widgets from focus
This was showing up as confusion between palette
and editor in the color chooser.
gtk/gtkwidgetfocus.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkwidgetfocus.c b/gtk/gtkwidgetfocus.c
index 61c0239508..81dea61e0f 100644
--- a/gtk/gtkwidgetfocus.c
+++ b/gtk/gtkwidgetfocus.c
@@ -423,6 +423,7 @@ gtk_widget_focus_sort (GtkWidget *widget,
child = _gtk_widget_get_next_sibling (child))
{
if (_gtk_widget_get_realized (child) &&
+ _gtk_widget_is_drawable (child) &&
gtk_widget_get_sensitive (child))
g_ptr_array_add (focus_order, child);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]