[gtk+] flowbox: Don't render focus erroneously



commit 06b28a610b07c1a30849195e538bc85da3623faf
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Dec 15 15:10:08 2015 -0500

    flowbox: Don't render focus erroneously
    
    The gadget render function should only return TRUE if the
    widget has the focus, and wants it rendered.

 gtk/gtkflowbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 2a1baac..018804d 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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]