summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorCosimo Cecchi <[email protected]>2011-09-07 21:16:14 -0400
committerraveit65 <[email protected]>2017-09-02 12:50:15 +0200
commitf5609987a6cd013dcf8754ab406a276b8f78092b (patch)
treede63a8e5218f3e5bca94956fc604b0e956f1e488 /libcaja-private
parentb9cf3667fa5563d52bffb9e3618aa41c7c908aa6 (diff)
downloadcaja-f5609987a6cd013dcf8754ab406a276b8f78092b.tar.bz2
caja-f5609987a6cd013dcf8754ab406a276b8f78092b.tar.xz
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
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-icon-dnd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libcaja-private/caja-icon-dnd.c b/libcaja-private/caja-icon-dnd.c
index 9ea34a03..0917960c 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;
}