[gnome-music/wip/mschraal/gtk4: 86/141] searchheaderbar: Remove Gd usage



commit 0aa0186bfa9af9bfe525e6756e1843f2bab7084d
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Oct 31 12:59:47 2019 +0100

    searchheaderbar: Remove Gd usage
    
    Disables search atm

 gnomemusic/widgets/searchheaderbar.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/widgets/searchheaderbar.py b/gnomemusic/widgets/searchheaderbar.py
index 2b6de962..877c3a6f 100644
--- a/gnomemusic/widgets/searchheaderbar.py
+++ b/gnomemusic/widgets/searchheaderbar.py
@@ -25,8 +25,7 @@
 from enum import IntEnum
 
 import gi
-gi.require_version("Gd", "1.0")
-from gi.repository import GLib, GObject, Gd, Gtk
+from gi.repository import GLib, GObject, Gtk
 
 from gnomemusic.search import Search
 from gnomemusic.widgets.headerbar import HeaderBar, SelectionBarMenuButton
@@ -62,13 +61,16 @@ class SearchHeaderBar(Gtk.HeaderBar):
         self._selection_mode = False
         self._timeout = None
 
-        self._entry = Gd.TaggedEntry()
+        self._entry = Gtk.Entry()
         self._entry.props.halign = Gtk.Align.CENTER
         self._entry.props.visible = True
         self._entry.props.width_request = 500
 
         self._selection_menu = SelectionBarMenuButton()
 
+        # FIXME: Fix entry.
+        return
+
         self.bind_property(
             "selection-mode", self, "show-close-button",
             GObject.BindingFlags.INVERT_BOOLEAN


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