[dconf-editor] Fix BookmarksList shadows.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Fix BookmarksList shadows.
- Date: Wed, 14 Nov 2018 13:49:28 +0000 (UTC)
commit 28a480e5d418d0b83f44cfa77e0c8338f38cd634
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Oct 26 10:41:37 2018 +0200
Fix BookmarksList shadows.
editor/bookmarks-list.ui | 1 -
editor/bookmarks-list.vala | 11 +++++++++++
editor/bookmarks.ui | 1 +
editor/browser-view.ui | 1 +
4 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/editor/bookmarks-list.ui b/editor/bookmarks-list.ui
index a901981..7b64085 100644
--- a/editor/bookmarks-list.ui
+++ b/editor/bookmarks-list.ui
@@ -10,7 +10,6 @@
<property name="expand">True</property>
<!-- property name="window-placement">top-right</property -->
<property name="hscrollbar-policy">never</property>
- <property name="shadow-type">etched-in</property>
<property name="max-content-height">300</property>
<property name="propagate-natural-width">True</property>
<property name="propagate-natural-height">True</property>
diff --git a/editor/bookmarks-list.vala b/editor/bookmarks-list.vala
index 5cfca6c..9975661 100644
--- a/editor/bookmarks-list.vala
+++ b/editor/bookmarks-list.vala
@@ -36,6 +36,17 @@ private class BookmarksList : Overlay
}
}
+ public bool needs_shadows
+ {
+ construct
+ {
+ if (value)
+ scrolled.shadow_type = ShadowType.ETCHED_IN;
+ else
+ scrolled.shadow_type = ShadowType.NONE;
+ }
+ }
+
[GtkChild] private RegistryPlaceholder placeholder;
public bool big_placeholder { internal construct { placeholder.big = value; }}
diff --git a/editor/bookmarks.ui b/editor/bookmarks.ui
index 661b6f9..3b3eae2 100644
--- a/editor/bookmarks.ui
+++ b/editor/bookmarks.ui
@@ -88,6 +88,7 @@
<child>
<object class="BookmarksList" id="bookmarks_list">
<property name="visible">True</property>
+ <property name="needs-shadows">True</property>
<property name="big-placeholder">False</property>
<property name="edit-mode-action-prefix">bookmarks</property>
<signal name="writability-changed" handler="on_writability_changed"/>
diff --git a/editor/browser-view.ui b/editor/browser-view.ui
index 200d4d5..b9dea1b 100644
--- a/editor/browser-view.ui
+++ b/editor/browser-view.ui
@@ -23,6 +23,7 @@
<child>
<object class="BookmarksList" id="bookmarks_list">
<property name="visible">True</property>
+ <property name="needs-shadows">False</property>
<property name="big-placeholder">True</property>
<property name="edit-mode-action-prefix">bmk</property>
<property name="schema-path">/ca/desrt/dconf-editor/</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]