From 1fe24d8caf1a5df772860b7bf3c6e564413387f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= Date: Thu, 16 Dec 2021 01:52:06 +0000 Subject: general: Stop using GtkButton:relief and GtkScrolledWindow:shadow-type Both properties are gone in GTK 4. Use style classes instead. --- src/nautilus-notebook.c | 4 ++-- src/resources/ui/nautilus-batch-rename-dialog.ui | 8 ++++++-- src/resources/ui/nautilus-column-chooser.ui | 4 +++- src/resources/ui/nautilus-window.ui | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/nautilus-notebook.c b/src/nautilus-notebook.c index ad4945d65..ffde9a899 100644 --- a/src/nautilus-notebook.c +++ b/src/nautilus-notebook.c @@ -374,8 +374,8 @@ build_tab_label (NautilusNotebook *notebook, /* Tab close button */ close_button = gtk_button_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_MENU); - gtk_button_set_relief (GTK_BUTTON (close_button), - GTK_RELIEF_NONE); + gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (close_button)), + "flat"); /* don't allow focus on the close button */ gtk_widget_set_focus_on_click (close_button, FALSE); diff --git a/src/resources/ui/nautilus-batch-rename-dialog.ui b/src/resources/ui/nautilus-batch-rename-dialog.ui index 025628d9a..8920e4b20 100644 --- a/src/resources/ui/nautilus-batch-rename-dialog.ui +++ b/src/resources/ui/nautilus-batch-rename-dialog.ui @@ -369,7 +369,6 @@ True - none @@ -378,12 +377,14 @@ 1 + True - GTK_RELIEF_NONE @@ -392,6 +393,9 @@ 1 + diff --git a/src/resources/ui/nautilus-column-chooser.ui b/src/resources/ui/nautilus-column-chooser.ui index 21af73ae2..5f44ea8f9 100644 --- a/src/resources/ui/nautilus-column-chooser.ui +++ b/src/resources/ui/nautilus-column-chooser.ui @@ -22,7 +22,6 @@ True False - in True @@ -63,6 +62,9 @@ + False diff --git a/src/resources/ui/nautilus-window.ui b/src/resources/ui/nautilus-window.ui index 407014ecc..472ee7fce 100644 --- a/src/resources/ui/nautilus-window.ui +++ b/src/resources/ui/nautilus-window.ui @@ -80,7 +80,6 @@ True True True - none False @@ -92,6 +91,7 @@ @@ -148,7 +148,6 @@ True True True - none False @@ -161,6 +160,7 @@ -- cgit v1.2.1