mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
clipboard: Fix #14639
This is the recommended fix from Gtk to use our own mime type rather than depend on a mimetype that has a different expectation of payload. This means drag and drop of colors uses `application/x-geglcolor` rather than `application/x-color` which expects an RGBA color rather than a structure.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
{ "XdndDirectSave0", 0, GIMP_DND_TYPE_XDS }
|
||||
|
||||
#define GIMP_TARGET_COLOR \
|
||||
{ "application/x-color", 0, GIMP_DND_TYPE_COLOR }
|
||||
{ "application/x-geglcolor", 0, GIMP_DND_TYPE_COLOR }
|
||||
|
||||
#define GIMP_TARGET_SVG \
|
||||
{ "image/svg", 0, GIMP_DND_TYPE_SVG }
|
||||
|
@@ -138,7 +138,7 @@ G_DEFINE_TYPE (GimpColorArea, gimp_color_area, GTK_TYPE_DRAWING_AREA)
|
||||
|
||||
static guint gimp_color_area_signals[LAST_SIGNAL] = { 0 };
|
||||
|
||||
static const GtkTargetEntry target = { "application/x-color", 0 };
|
||||
static const GtkTargetEntry target = { "application/x-geglcolor", 0 };
|
||||
|
||||
|
||||
static void
|
||||
@@ -609,7 +609,7 @@ gimp_color_area_set_type (GimpColorArea *area,
|
||||
* @drag_mask: The bitmask of buttons that can start the drag.
|
||||
*
|
||||
* Allows dragging the color displayed with buttons identified by
|
||||
* @drag_mask. The drag supports targets of type "application/x-color".
|
||||
* @drag_mask. The drag supports targets of type "application/x-geglcolor".
|
||||
*
|
||||
* Note that setting a @drag_mask of 0 disables the drag ability.
|
||||
**/
|
||||
|
Reference in New Issue
Block a user