[epiphany] cookies-dialog.ui: Make search_bar toggleable.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] cookies-dialog.ui: Make search_bar toggleable.
- Date: Thu, 5 Nov 2015 20:48:01 +0000 (UTC)
commit 6614f2c24c8c0439e8f84c8da4a888357a911ca4
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Nov 4 06:40:45 2015 +0100
cookies-dialog.ui: Make search_bar toggleable.
https://bugzilla.gnome.org/show_bug.cgi?id=757564
src/resources/cookies-dialog.ui | 31 +++++++++++++++++++++++++++++--
1 files changed, 29 insertions(+), 2 deletions(-)
---
diff --git a/src/resources/cookies-dialog.ui b/src/resources/cookies-dialog.ui
index 331e089..56fec7d 100644
--- a/src/resources/cookies-dialog.ui
+++ b/src/resources/cookies-dialog.ui
@@ -25,6 +25,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">Cookies</property>
@@ -43,15 +44,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
cookies</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]