diff options
author | Pablo Barciela <[email protected]> | 2018-05-17 13:31:58 +0200 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2018-05-20 22:13:49 +0200 |
commit | eb65d2246ed81f1235d94cec51b0659ca655e169 (patch) | |
tree | b4f2efdf45730451f8a37f5282188bd0fa443861 /libcaja-private/caja-icon-container.c | |
parent | 6841bd73832a0f2373f38c3a99e341a9bcdc5db4 (diff) | |
download | caja-eb65d2246ed81f1235d94cec51b0659ca655e169.tar.bz2 caja-eb65d2246ed81f1235d94cec51b0659ca655e169.tar.xz |
icon-container: avoid deprecated 'gtk_style_context_get_border_color'
Diffstat (limited to 'libcaja-private/caja-icon-container.c')
-rw-r--r-- | libcaja-private/caja-icon-container.c | 9 |
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); |