[gnome-builder/wip/chergert/shortcuts: 14/24] shortcuts: get access to search entry
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/shortcuts: 14/24] shortcuts: get access to search entry
- Date: Sun, 30 Aug 2015 02:54:10 +0000 (UTC)
commit d6f630a9d8e026f162ce9ff0af52a572e2531c21
Author: Christian Hergert <christian hergert me>
Date: Thu Aug 27 21:58:30 2015 -0700
shortcuts: get access to search entry
data/ui/gb-shortcuts-window.ui | 2 +-
src/keybindings/gb-shortcuts-window.c | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/gb-shortcuts-window.ui b/data/ui/gb-shortcuts-window.ui
index 465b78a..6585bfc 100644
--- a/data/ui/gb-shortcuts-window.ui
+++ b/data/ui/gb-shortcuts-window.ui
@@ -40,7 +40,7 @@
<object class="EggSearchBar" id="search_bar">
<property name="visible">true</property>
<child internal-child="entry">
- <object class="GtkSearchEntry">
+ <object class="GtkSearchEntry" id="search_entry">
<property name="placeholder-text" translatable="yes">Search keyboard shortcuts</property>
<property name="width-chars">50</property>
</object>
diff --git a/src/keybindings/gb-shortcuts-window.c b/src/keybindings/gb-shortcuts-window.c
index e312ba7..f63fc44 100644
--- a/src/keybindings/gb-shortcuts-window.c
+++ b/src/keybindings/gb-shortcuts-window.c
@@ -28,6 +28,7 @@ struct _GbShortcutsWindow
GtkStack *stack;
GtkMenuButton *menu_button;
+ GtkSearchEntry *search_entry;
};
G_DEFINE_TYPE (GbShortcutsWindow, gb_shortcuts_window, GTK_TYPE_WINDOW)
@@ -268,8 +269,9 @@ gb_shortcuts_window_class_init (GbShortcutsWindowClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/builder/ui/gb-shortcuts-window.ui");
- gtk_widget_class_bind_template_child (widget_class, GbShortcutsWindow, stack);
gtk_widget_class_bind_template_child (widget_class, GbShortcutsWindow, menu_button);
+ gtk_widget_class_bind_template_child (widget_class, GbShortcutsWindow, search_entry);
+ gtk_widget_class_bind_template_child (widget_class, GbShortcutsWindow, stack);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]