[gnome-music] searchbar: Ensure the entry is realized before forwarding events to it



commit 9f19cddadbebb08ec7000807834faa9dc0a32993
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon May 30 11:26:32 2016 +0200

    searchbar: Ensure the entry is realized before forwarding events to it
    
    Otherwise we may get WIDGET_REALIZED_FOR_EVENT() warnings if typing before
    the revealer attempts to show its content.

 gnomemusic/searchbar.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/searchbar.py b/gnomemusic/searchbar.py
index 9f0fe48..637c65d 100644
--- a/gnomemusic/searchbar.py
+++ b/gnomemusic/searchbar.py
@@ -327,6 +327,7 @@ class Searchbar(Gtk.Revealer):
         self._search_button.set_active(show)
 
         if show:
+            self._search_entry.realize()
             if clear:
                 self._search_entry.set_text('')
             self._search_entry.grab_focus()


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