[gnome-music/wip/mschraal/gtk4-v3: 238/248] Revert "searchheaderbar: Ensure that the entry gets the first key press"
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4-v3: 238/248] Revert "searchheaderbar: Ensure that the entry gets the first key press"
- Date: Mon, 14 Feb 2022 02:24:03 +0000 (UTC)
commit 04987f218cf900f68a10928c666badf81fafc71d
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Feb 13 20:13:25 2022 +0100
Revert "searchheaderbar: Ensure that the entry gets the first key press"
This reverts commit 6ec014ed359ae9ff88232add2c085261fd56de8d.
gnomemusic/widgets/searchheaderbar.py | 14 --------------
1 file changed, 14 deletions(-)
---
diff --git a/gnomemusic/widgets/searchheaderbar.py b/gnomemusic/widgets/searchheaderbar.py
index 65d7529e7..0e539e0eb 100644
--- a/gnomemusic/widgets/searchheaderbar.py
+++ b/gnomemusic/widgets/searchheaderbar.py
@@ -22,16 +22,12 @@
# code, but you are not obligated to do so. If you do not wish to do so,
# delete this exception statement from your version.
-from __future__ import annotations
from enum import IntEnum
-import typing
from gi.repository import Adw, GObject, Gtk
from gnomemusic.search import Search
from gnomemusic.widgets.headerbar import HeaderBar, SelectionBarMenuButton
-if typing.TYPE_CHECKING:
- from gnomemusic.application import Application
@Gtk.Template(resource_path="/org/gnome/Music/ui/SearchHeaderBar.ui")
@@ -105,16 +101,6 @@ class SearchHeaderBar(Adw.Bin):
self._entry.connect("search-changed", self._search_entry_changed)
- self._win_id = application.connect(
- "notify::window", self._on_window_ready)
-
- def _on_window_ready(
- self, application: Application,
- value: GObject.ParamSpecObject) -> None:
- self._entry.set_key_capture_widget(application.props.window)
- application.disconnect(self._win_id)
- self._win_id = 0
-
@GObject.Property(type=bool, default=False)
def selection_mode(self):
"""Selection mode
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]