From 1a8648b9fe64c194d39360fa05fc106ee210a554 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 7 Sep 2011 21:16:14 -0400 Subject: icon-dnd: remove hardcoded highlight frame The call to gtk_render_frame() should be enough; Now the .dnd style class setting from themes are used. Fixes https://github.com/mate-desktop/mate-themes/issues/194 origin commit: https://git.gnome.org/browse/nautilus/commit/?id=8d8979f --- libcaja-private/caja-icon-dnd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libcaja-private/caja-icon-dnd.c b/libcaja-private/caja-icon-dnd.c index ad5249b5..22114c53 100644 --- a/libcaja-private/caja-icon-dnd.c +++ b/libcaja-private/caja-icon-dnd.c @@ -1573,7 +1573,7 @@ drag_highlight_draw (GtkWidget *widget, style = gtk_widget_get_style_context (widget); gtk_style_context_save (style); - gtk_style_context_add_class (style, "dnd"); + gtk_style_context_add_class (style, GTK_STYLE_CLASS_DND); gtk_style_context_set_state (style, GTK_STATE_FLAG_FOCUSED); gtk_render_frame (style, @@ -1582,11 +1582,6 @@ drag_highlight_draw (GtkWidget *widget, gtk_style_context_restore (style); - cairo_set_line_width (cr, 1.0); - cairo_set_source_rgb (cr, 0, 0, 0); - cairo_rectangle (cr, 0.5, 0.5, width - 1, height - 1); - - cairo_stroke (cr); return FALSE; } -- cgit v1.2.1