[dconf-editor] Wrap searchbar in a revealer.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Wrap searchbar in a revealer.
- Date: Tue, 10 Jan 2017 23:52:07 +0000 (UTC)
commit 62444463954649331d8af6930f946bd5c611cc8b
Author: Trinh Anh Ngoc <atw1990 gmail com>
Date: Tue Jan 10 15:10:50 2017 +0700
Wrap searchbar in a revealer.
Workaround for the gtk+ bug: https://bugzilla.gnome.org/show_bug.cgi?id=724096
editor/registry-view.ui | 48 ++++++++++++++++++++++++++--------------------
1 files changed, 27 insertions(+), 21 deletions(-)
---
diff --git a/editor/registry-view.ui b/editor/registry-view.ui
index 5e37f21..2eaa7b0 100644
--- a/editor/registry-view.ui
+++ b/editor/registry-view.ui
@@ -14,34 +14,40 @@
</object>
</child>
<child>
- <object class="GtkSearchBar" id="search_bar">
+ <object class="GtkRevealer">
<property name="visible">True</property>
- <property name="search-mode-enabled">False</property>
- <property name="show-close-button">False</property>
+ <property name="reveal-child" bind-source="search_bar" bind-property="search-mode-enabled"
bind-flags="bidirectional">False</property>
<child>
- <object class="GtkBox"> <!-- https://bugzilla.gnome.org/show_bug.cgi?id=769876 -->
+ <object class="GtkSearchBar" id="search_bar">
<property name="visible">True</property>
- <property name="orientation">horizontal</property>
- <style>
- <class name="linked"/>
- </style>
+ <property name="search-mode-enabled">False</property>
+ <property name="show-close-button">False</property>
<child>
- <object class="GtkSearchEntry" id="search_entry">
+ <object class="GtkBox"> <!-- https://bugzilla.gnome.org/show_bug.cgi?id=769876 -->
<property name="visible">True</property>
- <property name="width-request">350</property>
- <signal name="activate" handler="find_next_cb"/>
- </object>
- </child>
- <child>
- <object class="GtkButton" id="search_next_button">
- <property name="visible">True</property>
- <signal name="clicked" handler="find_next_cb"/>
- <property name="sensitive" bind-source="search_bar" bind-property="search-mode-enabled"/>
+ <property name="orientation">horizontal</property>
+ <style>
+ <class name="linked"/>
+ </style>
<child>
- <object class="GtkImage">
+ <object class="GtkSearchEntry" id="search_entry">
<property name="visible">True</property>
- <property name="icon-size">1</property>
- <property name="icon-name">go-down-symbolic</property>
+ <property name="width-request">350</property>
+ <signal name="activate" handler="find_next_cb"/>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="search_next_button">
+ <property name="visible">True</property>
+ <signal name="clicked" handler="find_next_cb"/>
+ <property name="sensitive" bind-source="search_bar" bind-property="search-mode-enabled"/>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon-size">1</property>
+ <property name="icon-name">go-down-symbolic</property>
+ </object>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]