[gnome-builder] prefs: activate search with ctrl+f
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] prefs: activate search with ctrl+f
- Date: Mon, 4 May 2015 19:23:43 +0000 (UTC)
commit 799d4918300ad0b153cbe84829be57edcd0d17c3
Author: Christian Hergert <christian hergert me>
Date: Mon May 4 12:23:29 2015 -0700
prefs: activate search with ctrl+f
src/preferences/gb-preferences-window.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/preferences/gb-preferences-window.c b/src/preferences/gb-preferences-window.c
index 8860336..962c2ea 100644
--- a/src/preferences/gb-preferences-window.c
+++ b/src/preferences/gb-preferences-window.c
@@ -194,5 +194,13 @@ gb_preferences_window_class_init (GbPreferencesWindowClass *klass)
static void
gb_preferences_window_init (GbPreferencesWindow *self)
{
+ GtkAccelGroup *accel_group;
+
gtk_widget_init_template (GTK_WIDGET (self));
+
+ accel_group = gtk_accel_group_new ();
+ gtk_widget_add_accelerator (GTK_WIDGET (self->search_bar), "reveal",
+ accel_group, GDK_KEY_f, GDK_CONTROL_MASK, 0);
+ gtk_window_add_accel_group (GTK_WINDOW (self), accel_group);
+ g_clear_object (&accel_group);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]