#include "collect.h"
#include "image.h"
#include "ui_fileops.h"
+#include "pixbuf_util.h"
GtkTargetEntry dnd_file_drag_types[] = {
}
}
+/*
static void pixbuf_draw_rect(GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h, guint8 val)
{
gboolean alpha;
}
}
}
-
+*/
void dnd_set_drag_icon(GtkWidget *widget, GdkDragContext *context, GdkPixbuf *pixbuf, gint items)
{
GdkPixbuf *dest;
lw = CLAMP(lw, 0, w - x - 1);
lh = CLAMP(lh, 0, h - y - 1);
- pixbuf_draw_rect(dest, x, y, lw, lh, 128);
+ pixbuf_draw_rect_fill(dest, x, y, lw, lh, 128, 128, 128, 255);
}
if (layout)