[gnome-font-viewer] font-view: Show search on ctrl+F
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer] font-view: Show search on ctrl+F
- Date: Sat, 13 Feb 2021 08:06:50 +0000 (UTC)
commit 28da1f78e43ba15096964741b86fd0fef233548c
Author: Diego Escalante Urrelo <diegoe gnome org>
Date: Sun May 3 00:35:27 2020 -0500
font-view: Show search on ctrl+F
Currently the UI only reacts to "search as you type" and explicitly
clicking the search button on the toolbar.
Signed-off-by: Christopher Davis <christopherdavis gnome org>
src/font-view.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/font-view.c b/src/font-view.c
index 710943b..73176b2 100644
--- a/src/font-view.c
+++ b/src/font-view.c
@@ -1308,6 +1308,12 @@ font_view_window_key_press_event_cb (GtkWidget *widget,
return TRUE;
}
+ if (event->keyval == GDK_KEY_f &&
+ (event->state & GDK_CONTROL_MASK) != 0) {
+ gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (self->search_bar), TRUE);
+ return TRUE;
+ }
+
return gtk_search_bar_handle_event (GTK_SEARCH_BAR (self->search_bar), (GdkEvent *)event);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]