[gimp/gtk3-port: 137/227] app: use gdk_drag_context_get_source_window()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 137/227] app: use gdk_drag_context_get_source_window()
- Date: Mon, 11 Jun 2012 23:13:57 +0000 (UTC)
commit efea9be6a13ada862d348fb10a0b467551a6870e
Author: Michael Natterer <mitch gimp org>
Date: Wed Dec 22 21:57:05 2010 +0100
app: use gdk_drag_context_get_source_window()
instead of peeking into the struct
app/widgets/gimpdnd-xds.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpdnd-xds.c b/app/widgets/gimpdnd-xds.c
index 5c65d14..e5f3b9a 100644
--- a/app/widgets/gimpdnd-xds.c
+++ b/app/widgets/gimpdnd-xds.c
@@ -97,7 +97,7 @@ gimp_dnd_xds_source_set (GdkDragContext *context,
}
- 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);
@@ -107,7 +107,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);
}
}
@@ -133,7 +134,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]