[dconf-editor] Make window notification work on small screens.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Make window notification work on small screens.
- Date: Wed, 14 Nov 2018 13:48:02 +0000 (UTC)
commit 8ddd09ffd402817a4962055b830b077fedb1c555
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Oct 18 18:51:05 2018 +0200
Make window notification work on small screens.
editor/dconf-editor.css | 9 +++++++++
editor/dconf-editor.ui | 1 +
editor/dconf-window.vala | 8 ++++++++
3 files changed, 18 insertions(+)
---
diff --git a/editor/dconf-editor.css b/editor/dconf-editor.css
index 43b0068..9b68c82 100644
--- a/editor/dconf-editor.css
+++ b/editor/dconf-editor.css
@@ -373,6 +373,15 @@ window:not(.extra-small-window) .keys-list:dir(rtl) > row > .key > grid >
min-width:0;
}
+/*\
+* * app notification
+\*/
+
+.extra-small-window .app-notification,
+ .small-window .app-notification {
+ border-radius:0;
+}
+
/*\
* * text formating
\*/
diff --git a/editor/dconf-editor.ui b/editor/dconf-editor.ui
index 02dfae3..7821b4f 100644
--- a/editor/dconf-editor.ui
+++ b/editor/dconf-editor.ui
@@ -60,6 +60,7 @@
<child>
<object class="GtkLabel" id="notification_label">
<property name="visible">True</property>
+ <property name="wrap">True</property>
</object>
</child>
<child>
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index d8f95ca..9c4d799 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -434,6 +434,8 @@ private class DConfWindow : ApplicationWindow
}
context.remove_class ("small-window");
context.add_class ("large-window");
+ notification_revealer.hexpand = false;
+ notification_revealer.halign = Align.CENTER;
}
else if (allocation.width < 590)
{
@@ -446,6 +448,8 @@ private class DConfWindow : ApplicationWindow
headerbar.extra_small_window = true;
browser_view.extra_small_window = true;
}
+ notification_revealer.hexpand = true;
+ notification_revealer.halign = Align.FILL;
}
else if (allocation.width < 787)
{
@@ -458,6 +462,8 @@ private class DConfWindow : ApplicationWindow
browser_view.extra_small_window = false;
}
context.add_class ("small-window");
+ notification_revealer.hexpand = true;
+ notification_revealer.halign = Align.FILL;
}
else
{
@@ -470,6 +476,8 @@ private class DConfWindow : ApplicationWindow
headerbar.extra_small_window = false;
browser_view.extra_small_window = false;
}
+ notification_revealer.hexpand = false;
+ notification_revealer.halign = Align.CENTER;
}
/* save size */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]