[polari] Replace relief and shadow-type with has-frame
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] Replace relief and shadow-type with has-frame
- Date: Fri, 3 Sep 2021 11:17:32 +0000 (UTC)
commit 4374b248da18475a6e7c4ab10c6ba5298436d826
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Sep 25 19:18:29 2020 +0200
Replace relief and shadow-type with has-frame
In GTK4, both shadow type and relief have been replaced with
a boolean has-frame property.
Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/228>
data/resources/user-details.ui | 1 -
src/appNotifications.js | 2 +-
src/userList.js | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/data/resources/user-details.ui b/data/resources/user-details.ui
index 65043306..d367af53 100644
--- a/data/resources/user-details.ui
+++ b/data/resources/user-details.ui
@@ -8,7 +8,6 @@
<property name="margin-top">9</property>
<property name="margin-bottom">9</property>
<property name="hexpand">True</property>
- <property name="visible">True</property>
<child>
<object class="GtkBox" id="spinnerBox">
<property name="spacing">6</property>
diff --git a/src/appNotifications.js b/src/appNotifications.js
index 705f7701..5640ec67 100644
--- a/src/appNotifications.js
+++ b/src/appNotifications.js
@@ -47,7 +47,7 @@ class MessageNotification extends AppNotification {
visible: true,
}));
- let closeButton = new Gtk.Button({ relief: Gtk.ReliefStyle.NONE, visible: true });
+ let closeButton = new Gtk.Button({ has_frame: false, visible: true });
closeButton.image = new Gtk.Image({ icon_name: 'window-close-symbolic', visible: true });
closeButton.connect('clicked', this.close.bind(this));
this._box.pack_end(closeButton, false, false, 0);
diff --git a/src/userList.js b/src/userList.js
index 230bcace..356a0ae7 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -557,7 +557,7 @@ class UserList extends Gtk.ScrolledWindow {
_init(room) {
super._init({
hexpand: true,
- shadow_type: Gtk.ShadowType.ETCHED_IN,
+ has_frame: true,
hscrollbar_policy: Gtk.PolicyType.NEVER,
propagate_natural_height: true,
propagate_natural_width: true,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]