summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-05-17 13:31:58 +0200
committerPablo Barciela <[email protected]>2018-05-20 22:13:49 +0200
commiteb65d2246ed81f1235d94cec51b0659ca655e169 (patch)
treeb4f2efdf45730451f8a37f5282188bd0fa443861
parent6841bd73832a0f2373f38c3a99e341a9bcdc5db4 (diff)
downloadcaja-eb65d2246ed81f1235d94cec51b0659ca655e169.tar.bz2
caja-eb65d2246ed81f1235d94cec51b0659ca655e169.tar.xz
icon-container: avoid deprecated 'gtk_style_context_get_border_color'
-rw-r--r--libcaja-private/caja-icon-container.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index 17e671a0..182bdc69 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -2892,10 +2892,15 @@ start_rubberbanding (CajaIconContainer *container,
gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL,
GTK_STYLE_PROPERTY_BACKGROUND_COLOR,
&c, NULL);
+
bg_color = *c;
- gdk_rgba_free (c);
- gtk_style_context_get_border_color (context, GTK_STATE_FLAG_NORMAL, &border_color);
+ gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL,
+ GTK_STYLE_PROPERTY_BORDER_COLOR,
+ &c, NULL);
+
+ border_color = *c;
+ gdk_rgba_free (c);
gtk_style_context_restore (context);