forked from AuroraMiddleware/gtk
dragicon: No events, please
We run into trouble on X11 if the widgets in the drag icon have drop targets attached. Prevent this by suppressing event delivery to drag icons outright.
This commit is contained in:
parent
af2a172197
commit
bbb1404bd3
@ -386,6 +386,7 @@ gtk_drag_icon_class_init (GtkDragIconClass *klass)
|
|||||||
static void
|
static void
|
||||||
gtk_drag_icon_init (GtkDragIcon *self)
|
gtk_drag_icon_init (GtkDragIcon *self)
|
||||||
{
|
{
|
||||||
|
gtk_widget_set_can_target (GTK_WIDGET (self), FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -568,7 +569,7 @@ gtk_drag_icon_create_widget_for_value (const GValue *value)
|
|||||||
node = gsk_value_get_render_node (value);
|
node = gsk_value_get_render_node (value);
|
||||||
if (node == NULL)
|
if (node == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
gsk_render_node_get_bounds (node, &bounds);
|
gsk_render_node_get_bounds (node, &bounds);
|
||||||
paintable = gtk_render_node_paintable_new (node, &bounds);
|
paintable = gtk_render_node_paintable_new (node, &bounds);
|
||||||
image = gtk_image_new_from_paintable (paintable);
|
image = gtk_image_new_from_paintable (paintable);
|
||||||
|
Loading…
Reference in New Issue
Block a user