summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-15 15:10:08 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-12-15 15:10:08 -0500
commit06b28a610b07c1a30849195e538bc85da3623faf (patch)
treecddcaec647d0d34cdd3946b910ba84aeb8c938f1
parent8858c3aaa0f1df899b533c61459f4f37e8928442 (diff)
downloadgtk+-06b28a610b07c1a30849195e538bc85da3623faf.tar.gz
flowbox: Don't render focus erroneously
The gadget render function should only return TRUE if the widget has the focus, and wants it rendered.
-rw-r--r--gtk/gtkflowbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 2a1baac730..018804dd74 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -2767,7 +2767,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
cairo_restore (cr);
}
- return TRUE;
+ return gtk_widget_has_visible_focus (widget);
}
/* Autoscrolling {{{3 */