mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
gtkdroptarget: Notify value property on local drag
The value property is only getting notified when it's unset or when it's set from gdk_drop_real_value_async(). Make sure to always notify :value when its changed
This commit is contained in:
parent
0214cb5b1b
commit
4e694c1824
@ -292,9 +292,13 @@ gtk_drop_target_load_local (GtkDropTarget *self,
|
||||
if (gdk_content_provider_get_value (gdk_drag_get_content (drag),
|
||||
&self->value,
|
||||
NULL))
|
||||
return TRUE;
|
||||
{
|
||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_VALUE]);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
g_value_unset (&self->value);
|
||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_VALUE]);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user