[gnome-builder] search: fix popover bug when clearing search text



commit 1c27f5d9fc8ddefbe8aabe4fc247fe35da773167
Author: Christian Hergert <christian hergert me>
Date:   Wed Sep 16 20:51:06 2015 -0700

    search: fix popover bug when clearing search text
    
    Sometimes this would not show up after clearing some text.

 src/search/gb-search-box.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/search/gb-search-box.c b/src/search/gb-search-box.c
index 0f61bc2..3e8b41e 100644
--- a/src/search/gb-search-box.c
+++ b/src/search/gb-search-box.c
@@ -164,7 +164,9 @@ gb_search_box_entry_changed (GbSearchBox    *self,
 
   button = GTK_TOGGLE_BUTTON (self->button);
   text = gtk_entry_get_text (GTK_ENTRY (entry));
-  active = !gb_str_empty0 (text);
+  active = !gb_str_empty0 (text) ||
+           (self->delay_timeout != 0) ||
+           gtk_widget_has_focus (GTK_WIDGET (entry));
 
   if (gtk_toggle_button_get_active (button) != active)
     gtk_toggle_button_set_active (button, active);


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