[gnome-control-center] cc-window: Re-enable type-to-search
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] cc-window: Re-enable type-to-search
- Date: Wed, 5 Jan 2022 22:37:26 +0000 (UTC)
commit 4e2706fc6f6fa2d29afad5d6d6e8c535299686b8
Author: Christopher Davis <christopherdavis gnome org>
Date: Tue Jan 4 13:38:38 2022 -0800
cc-window: Re-enable type-to-search
This was lost in the GTK4 port. This commit uses
GtkSearchBar's API to capture events.
See https://gnome.pages.gitlab.gnome.org/gtk/gtk4/method.SearchBar.set_key_capture_widget.html
shell/cc-window.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index dad3fc24d..b3a960f48 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -411,6 +411,7 @@ update_headerbar_buttons (CcWindow *self)
gtk_widget_set_visible (GTK_WIDGET (self->previous_button), !is_main_view);
gtk_widget_set_visible (GTK_WIDGET (self->search_button), is_main_view);
+ gtk_search_bar_set_key_capture_widget (self->search_bar, is_main_view ? GTK_WIDGET (self) : NULL);
update_list_title (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]