summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);