Set a style class for drag icons

This lets us use the new icon-size machinery to
ensure we don't have tiny drag icons when using
named icons.
This commit is contained in:
Matthias Clasen 2017-12-10 21:16:31 -05:00
parent 643a6c2311
commit c2bdae23a1

View File

@ -1362,10 +1362,8 @@ set_icon_helper (GdkDragContext *context,
GtkWidget *widget;
widget = gtk_image_new ();
gtk_widget_show (widget);
gtk_style_context_add_class (gtk_widget_get_style_context (widget), "drag-icon");
gtk_image_set_from_definition (GTK_IMAGE (widget), def);
gtk_drag_set_icon_widget_internal (context, widget, hot_x, hot_y, TRUE);
}