summaryrefslogtreecommitdiff
path: root/src/nautilus-window.c
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-12-19 17:53:30 +0000
committerAntónio Fernandes <antoniof@gnome.org>2022-12-19 17:53:30 +0000
commita5ca1f830aebe86413e364c63bf831bc027528fa (patch)
tree1d8e79ce50f584452b3e1290c3d8899dd3d40074 /src/nautilus-window.c
parent53a9b828e1fab983a8bb0562b0341f66073d5183 (diff)
downloadnautilus-a5ca1f830aebe86413e364c63bf831bc027528fa.tar.gz
general: Replace GtkStyleContext with GtkWidget functions
GtkStyleContext is deprecated in 4.10, use the corresponding GtkWidget functions. Also bump GTK version to use the new gtk_widget_get_color().
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r--src/nautilus-window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 1a28828d8..40a317f73 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -2086,8 +2086,7 @@ nautilus_window_init (NautilusWindow *window)
window->slots = NULL;
window->active_slot = NULL;
- gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (window)),
- "nautilus-window");
+ gtk_widget_add_css_class (GTK_WIDGET (window), "nautilus-window");
window_group = gtk_window_group_new ();
gtk_window_group_add_window (window_group, GTK_WINDOW (window));