[epiphany] PasswordsDialog: Visual refresh (GtkActionBar, GtkSearchBar).
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] PasswordsDialog: Visual refresh (GtkActionBar, GtkSearchBar).
- Date: Sun, 1 Nov 2015 16:07:12 +0000 (UTC)
commit 6a9c458e9c4634a05e138c9ac336a1f9c726159d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Oct 30 14:21:32 2015 +0100
PasswordsDialog: Visual refresh (GtkActionBar, GtkSearchBar).
https://bugzilla.gnome.org/show_bug.cgi?id=757344
src/resources/passwords-dialog.ui | 86 ++++++++++++-------------------------
1 files changed, 28 insertions(+), 58 deletions(-)
---
diff --git a/src/resources/passwords-dialog.ui b/src/resources/passwords-dialog.ui
index d3aee62..9ff950e 100644
--- a/src/resources/passwords-dialog.ui
+++ b/src/resources/passwords-dialog.ui
@@ -51,16 +51,22 @@
</child>
<child internal-child="vbox">
<object class="GtkBox">
- <property name="border_width">5</property>
- <property name="spacing">6</property>
+ <property name="border_width">0</property>
<child>
- <object class="GtkSearchEntry">
+ <object class="GtkSearchBar">
<property name="visible">True</property>
- <property name="primary_icon_name">edit-find-symbolic</property>
- <property name="primary_icon_activatable">False</property>
- <property name="primary_icon_sensitive">False</property>
- <property name="placeholder_text" translatable="yes">Search passwords</property>
- <signal name="search-changed" handler="on_search_entry_changed"/>
+ <property name="search-mode-enabled">True</property>
+ <child>
+ <object class="GtkSearchEntry">
+ <property name="visible">True</property>
+ <property name="width-request">300</property> <!-- looks cool and large enough -->
+ <property name="primary_icon_name">edit-find-symbolic</property>
+ <property name="primary_icon_activatable">False</property>
+ <property name="primary_icon_sensitive">False</property>
+ <property name="placeholder_text" translatable="yes">Search passwords</property>
+ <signal name="search-changed" handler="on_search_entry_changed"/>
+ </object>
+ </child>
</object>
</child>
<child>
@@ -74,7 +80,6 @@
<property name="visible">True</property>
<property name="expand">True</property>
<property name="hscrollbar_policy">never</property>
- <property name="shadow_type">in</property>
<property name="min_content_width">300</property>
<property name="min_content_height">300</property>
<child>
@@ -136,74 +141,39 @@
</object>
</child>
<child>
- <object class="GtkToolbar">
+ <object class="GtkActionBar">
<property name="visible">True</property>
<child>
- <object class="GtkToolItem">
+ <object class="GtkButton">
<property name="visible">True</property>
+ <property name="tooltip_text" translatable="yes">Forget the selected passwords</property>
+ <property name="action-name">passwords.forget</property>
+ <accelerator key="Delete" signal="clicked"/>
+ <accelerator key="KP_Delete" signal="clicked"/>
<child>
- <object class="GtkBox">
+ <object class="GtkImage">
<property name="visible">True</property>
- <child>
- <object class="GtkButton">
- <property name="visible">True</property>
- <property name="tooltip_text" translatable="yes">Forget the selected
passwords</property>
- <property name="action-name">passwords.forget</property>
- <accelerator key="Delete" signal="clicked"/>
- <accelerator key="KP_Delete" signal="clicked"/>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="icon_name">list-remove-symbolic</property>
- </object>
- </child>
- </object>
- </child>
+ <property name="icon_name">list-remove-symbolic</property>
</object>
</child>
</object>
- <packing>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkSeparatorToolItem">
- <property name="visible">True</property>
- <property name="draw">False</property>
- </object>
- <packing>
- <property name="expand">True</property>
- </packing>
</child>
<child>
- <object class="GtkToolItem">
+ <object class="GtkToggleButton" id="show_passwords_button">
<property name="visible">True</property>
+ <property name="tooltip_text" translatable="yes">Reveal all the passwords</property>
+ <property name="action-name">passwords.show-passwords</property>
<child>
- <object class="GtkBox">
+ <object class="GtkImage">
<property name="visible">True</property>
- <child>
- <object class="GtkToggleButton" id="show_passwords_button">
- <property name="visible">True</property>
- <property name="tooltip_text" translatable="yes">Reveal all the
passwords</property>
- <property name="action-name">passwords.show-passwords</property>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="icon_name">dialog-password-symbolic</property>
- </object>
- </child>
- </object>
- </child>
+ <property name="icon_name">dialog-password-symbolic</property>
</object>
</child>
</object>
<packing>
- <property name="homogeneous">True</property>
+ <property name="pack-type">end</property>
</packing>
</child>
- <style>
- <class name="inline-toolbar"/>
- </style>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]