summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkdnd-win32.c
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2015-12-18 00:36:57 +0100
committerIgnacio Casal Quinteiro <icq@gnome.org>2016-01-14 14:30:37 +0100
commit3cd79c11fcd14daf1058077e58a5ff154e09b06c (patch)
tree8c2d4f53e45c939ca0bd0945c4ddebd659f8802b /gdk/win32/gdkdnd-win32.c
parente44b42061737ec4f6dbdad8f1a6dc2d53ea3dd02 (diff)
downloadgtk+-3cd79c11fcd14daf1058077e58a5ff154e09b06c.tar.gz
win32: remove _gdk_root global variable
Diffstat (limited to 'gdk/win32/gdkdnd-win32.c')
-rw-r--r--gdk/win32/gdkdnd-win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/win32/gdkdnd-win32.c b/gdk/win32/gdkdnd-win32.c
index 376ea0f654..379c80db19 100644
--- a/gdk/win32/gdkdnd-win32.c
+++ b/gdk/win32/gdkdnd-win32.c
@@ -728,7 +728,7 @@ idropsource_givefeedback (LPDROPSOURCE This,
else
{
if (ctx->context->dest_window == NULL)
- ctx->context->dest_window = g_object_ref (_gdk_root);
+ ctx->context->dest_window = g_object_ref (gdk_get_default_root_window ());
}
return DRAGDROP_S_USEDEFAULTCURSORS;
@@ -1445,7 +1445,7 @@ gdk_dropfiles_filter (GdkXEvent *xev,
device = gdk_device_manager_get_client_pointer (device_manager);
gdk_drag_context_set_device (context, device);
- context->source_window = _gdk_root;
+ context->source_window = gdk_get_default_root_window ();
g_object_ref (context->source_window);
context->dest_window = event->any.window;