[epiphany] passwords-dialog.ui: Make search_bar toggleable.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] passwords-dialog.ui: Make search_bar toggleable.
- Date: Thu, 5 Nov 2015 20:48:06 +0000 (UTC)
commit aa0703cc8bcea7af8ceade9c77617219ce517411
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Nov 4 06:44:28 2015 +0100
passwords-dialog.ui: Make search_bar toggleable.
https://bugzilla.gnome.org/show_bug.cgi?id=757564
src/resources/passwords-dialog.ui | 31 +++++++++++++++++++++++++++++--
1 files changed, 29 insertions(+), 2 deletions(-)
---
diff --git a/src/resources/passwords-dialog.ui b/src/resources/passwords-dialog.ui
index cf69e1b..7c69985 100644
--- a/src/resources/passwords-dialog.ui
+++ b/src/resources/passwords-dialog.ui
@@ -29,6 +29,7 @@
<property name="default_height">600</property>
<property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
+ <signal name="key-press-event" handler="gtk_search_bar_handle_event" object="search_bar" swapped="true"/>
<child internal-child="headerbar">
<object class="GtkHeaderBar">
<property name="title" translatable="yes">Passwords</property>
@@ -47,15 +48,41 @@
</style>
</object>
</child>
+ <child>
+ <object class="GtkToggleButton" id="search_button">
+ <property name="visible">True</property>
+ <property name="valign">center</property>
+ <accelerator key="F" modifiers="GDK_CONTROL_MASK" signal="clicked"/>
+ <style>
+ <class name="image-button"/>
+ </style>
+ <child internal-child="accessible">
+ <object class="AtkObject">
+ <property name="AtkObject::accessible-name" translatable="yes">Search</property>
+ <property name="AtkObject::accessible-description" translatable="yes">Filter
passwords</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon-name">edit-find-symbolic</property>
+ <property name="icon-size">1</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="pack-type">end</property>
+ </packing>
+ </child>
</object>
</child>
<child internal-child="vbox">
<object class="GtkBox">
<property name="border_width">0</property>
<child>
- <object class="GtkSearchBar">
+ <object class="GtkSearchBar" id="search_bar">
<property name="visible">True</property>
- <property name="search-mode-enabled">True</property>
+ <property name="search-mode-enabled" bind-source="search_button" bind-property="active"
bind-flags="bidirectional|sync-create"/>
<child>
<object class="GtkSearchEntry">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]