[nautilus] icon-dnd: remove hardcoded highlight frame
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] icon-dnd: remove hardcoded highlight frame
- Date: Thu, 8 Sep 2011 01:19:08 +0000 (UTC)
commit 8d8979f53cea0e8e48faa9ffba82950013e18ad0
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Sep 7 21:16:14 2011 -0400
icon-dnd: remove hardcoded highlight frame
The call to gtk_render_frame() should be enough; the problem is with
Adwaita which does not define a CSS style for the "dnd" class.
libnautilus-private/nautilus-icon-dnd.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-dnd.c b/libnautilus-private/nautilus-icon-dnd.c
index 3009709..cacbc52 100644
--- a/libnautilus-private/nautilus-icon-dnd.c
+++ b/libnautilus-private/nautilus-icon-dnd.c
@@ -1364,7 +1364,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,
@@ -1373,11 +1373,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]