[gnome-music/wip/mschraal/gtk4: 27/81] searchheaderbar: Remove Gd usage



commit dec7073bbfe47064621a5058172710cabbd2bacd
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]