Commit 42fd499a authored by Matthias Clasen's avatar Matthias Clasen
Browse files

dragicon: Make color icons work in X11

We need to disable the DND support in
GtkColorSwatch completely for this to work
in X11.
parent de5b8847
......@@ -546,6 +546,8 @@ gtk_drag_icon_create_widget_for_value (const GValue *value)
GtkWidget *swatch;
swatch = gtk_color_swatch_new ();
gtk_color_swatch_set_can_drag (GTK_COLOR_SWATCH (swatch), FALSE);
gtk_color_swatch_set_can_drop (GTK_COLOR_SWATCH (swatch), FALSE);
gtk_color_swatch_set_rgba (GTK_COLOR_SWATCH (swatch), g_value_get_boxed (value));
return swatch;
......
Supports Markdown
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