Skip to content
Permalink
Browse files

icon-container: avoid deprecated 'gtk_style_context_get_border_color'

  • Loading branch information...
sc0w committed May 17, 2018
1 parent 6841bd7 commit eb65d2246ed81f1235d94cec51b0659ca655e169
Showing with 7 additions and 2 deletions.
  1. +7 −2 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);

0 comments on commit eb65d22

Please sign in to comment.
You can’t perform that action at this time.