Skip to content

Commit

Permalink
icon-container: avoid deprecated 'gtk_style_context_get_border_color'
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed May 20, 2018
1 parent 6841bd7 commit eb65d22
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libcaja-private/caja-icon-container.c
Expand Up @@ -2892,10 +2892,15 @@ start_rubberbanding (CajaIconContainer *container,
gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL, gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL,
GTK_STYLE_PROPERTY_BACKGROUND_COLOR, GTK_STYLE_PROPERTY_BACKGROUND_COLOR,
&c, NULL); &c, NULL);

bg_color = *c; 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); gtk_style_context_restore (context);


Expand Down

0 comments on commit eb65d22

Please sign in to comment.