mirror of https://github.com/GNOME/gimp.git
app: use gdk_drag_context_get_source_window()
instead of peeking into the struct
This commit is contained in:
parent
6e982cd0a4
commit
cfbec6b311
|
@ -105,7 +105,7 @@ gimp_dnd_xds_source_set (GdkDragContext *context,
|
|||
|
||||
g_object_unref (untitled);
|
||||
|
||||
gdk_property_change (context->source_window,
|
||||
gdk_property_change (gdk_drag_context_get_source_window (context),
|
||||
property, type, 8, GDK_PROP_MODE_REPLACE,
|
||||
(const guchar *) basename,
|
||||
basename ? strlen (basename) : 0);
|
||||
|
@ -114,7 +114,8 @@ gimp_dnd_xds_source_set (GdkDragContext *context,
|
|||
}
|
||||
else
|
||||
{
|
||||
gdk_property_delete (context->source_window, property);
|
||||
gdk_property_delete (gdk_drag_context_get_source_window (context),
|
||||
property);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -141,7 +142,8 @@ gimp_dnd_xds_save_image (GdkDragContext *context,
|
|||
property = gdk_atom_intern_static_string ("XdndDirectSave0");
|
||||
type = gdk_atom_intern_static_string ("text/plain");
|
||||
|
||||
if (! gdk_property_get (context->source_window, property, type,
|
||||
if (! gdk_property_get (gdk_drag_context_get_source_window (context),
|
||||
property, type,
|
||||
0, MAX_URI_LEN, FALSE,
|
||||
NULL, NULL, &length, &data))
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue