Skip to content

Commit eb65d22

Browse files
committed
icon-container: avoid deprecated 'gtk_style_context_get_border_color'
1 parent 6841bd7 commit eb65d22

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

libcaja-private/caja-icon-container.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2892,10 +2892,15 @@ start_rubberbanding (CajaIconContainer *container,
28922892
gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL,
28932893
GTK_STYLE_PROPERTY_BACKGROUND_COLOR,
28942894
&c, NULL);
2895+
28952896
bg_color = *c;
2896-
gdk_rgba_free (c);
28972897

2898-
gtk_style_context_get_border_color (context, GTK_STATE_FLAG_NORMAL, &border_color);
2898+
gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL,
2899+
GTK_STYLE_PROPERTY_BORDER_COLOR,
2900+
&c, NULL);
2901+
2902+
border_color = *c;
2903+
gdk_rgba_free (c);
28992904

29002905
gtk_style_context_restore (context);
29012906

0 commit comments

Comments
 (0)