From e1182ec0e1ee09d2995011ccfbb88359187b862c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 6 Nov 2015 22:47:16 -0500 Subject: [PATCH] window: Don't pass wrong state to context GtkStyleContext warns nowadays if one queries properties from a different state. So, don't do that. --- gtk/gtkwindow.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 59a1f976ef..9c4fcb29db 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -6822,16 +6822,14 @@ update_border_windows (GtkWindow *window) GtkBorder border; GtkBorder window_border; GtkStyleContext *context; - GtkStateFlags state; if (!priv->client_decorated) return; - state = _gtk_widget_get_state_flags (widget); context = _gtk_widget_get_style_context (widget); gtk_style_context_save_to_node (context, priv->decoration_node); - gtk_style_context_get_margin (context, state, &border); + gtk_style_context_get_margin (context, gtk_style_context_get_state (context), &border); gtk_widget_style_get (widget, "decoration-resize-handle", &handle, NULL);