mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
drop: Don't use g_object_get()
This commit is contained in:
parent
c0a63e6dd2
commit
7427f4f311
@ -785,14 +785,11 @@ gdk_drop_read_value_internal (GdkDrop *self,
|
||||
if (priv->drag)
|
||||
{
|
||||
GError *error = NULL;
|
||||
GdkContentProvider *content;
|
||||
gboolean res;
|
||||
|
||||
g_object_get (priv->drag, "content", &content, NULL);
|
||||
|
||||
res = gdk_content_provider_get_value (content, value, &error);
|
||||
|
||||
g_object_unref (content);
|
||||
res = gdk_content_provider_get_value (gdk_drag_get_content (priv->drag),
|
||||
value,
|
||||
&error);
|
||||
|
||||
if (res)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user