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:
Corey Berla 2022-12-27 08:11:53 -08:00
parent 0214cb5b1b
commit 4e694c1824

View File

@ -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;
}