Commit a4c0bfc8 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

If using composite, make dnd icons partially transparent.

2008-02-13  Alexander Larsson  <alexl@redhat.com>

        * libnautilus-private/nautilus-icon-dnd.c:
	If using composite, make dnd icons partially transparent.
	


svn path=/trunk/; revision=13739
parent 14cfae14
2008-02-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-dnd.c:
If using composite, make dnd icons partially transparent.
2008-02-13 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-canvas-item.[ch]:
......
......@@ -1461,6 +1461,17 @@ drag_begin_callback (GtkWidget *widget,
x_offset = start_x - winx;
y_offset = start_y - winy;
if (!use_mask) {
cairo_t *cr;
/* If composite works, make the icons partially transparent */
cr = gdk_cairo_create (pixmap);
cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OUT);
cairo_set_source_rgba(cr, 1,0,0,0.35);
cairo_paint (cr);
cairo_destroy (cr);
}
gtk_drag_set_icon_pixmap (context,
colormap,
pixmap, (use_mask ? mask : NULL),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment