forked from AuroraMiddleware/gtk
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:
parent
643a6c2311
commit
c2bdae23a1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user