API: gdk: Make GdkEventSelection.requestor a GdkWindow

instead of a GdkNativeWindow. Also change gdk_selection_notify() API to
take a GdkWindow to match this change.
This commit is contained in:
Benjamin Otte
2011-02-01 17:22:04 +01:00
parent c2a5d715d5
commit 5bc04bc07b
10 changed files with 36 additions and 25 deletions

View File

@ -2324,15 +2324,7 @@ _gtk_selection_request (GtkWidget *widget,
info->selection = event->selection;
info->num_incrs = 0;
/* Create GdkWindow structure for the requestor */
#ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (display))
info->requestor = gdk_x11_window_foreign_new_for_display (display, event->requestor);
else
#endif
info->requestor = NULL;
info->requestor = g_object_ref (event->requestor);
/* Determine conversions we need to perform */
if (event->target == gtk_selection_atoms[MULTIPLE])