forked from AuroraMiddleware/gtk
win32: fix gdk clipboard
https://bugzilla.gnome.org/show_bug.cgi?id=648931
This commit is contained in:
parent
254b9a4c54
commit
da746d5169
@ -1239,6 +1239,8 @@ gdk_window_destroy_notify
|
||||
gdk_win32_window_is_win32
|
||||
gdk_win32_begin_direct_draw_libgtk_only
|
||||
gdk_win32_end_direct_draw_libgtk_only
|
||||
gdk_win32_window_lookup_for_display
|
||||
gdk_win32_window_foreign_new_for_display
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -1328,6 +1328,11 @@ selection_set_compound_text (GtkSelectionData *selection_data,
|
||||
result = TRUE;
|
||||
}
|
||||
g_free (tmp);
|
||||
#elif defined GDK_WINDOWING_WIN32
|
||||
result = FALSE; /* not needed on Win32 */
|
||||
#else
|
||||
g_warning ("%s is not implemented", G_STRFUNC);
|
||||
result = FALSE;
|
||||
#endif
|
||||
|
||||
return result;
|
||||
@ -2280,7 +2285,12 @@ _gtk_selection_request (GtkWidget *widget,
|
||||
/* Create GdkWindow structure for the requestor */
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
info->requestor = gdk_x11_window_foreign_new_for_display (display, event->requestor);
|
||||
#elif defined GDK_WINDOWING_WIN32
|
||||
info->requestor = gdk_win32_window_lookup_for_display (display, event->requestor);
|
||||
if (!info->requestor)
|
||||
info->requestor = gdk_win32_window_foreign_new_for_display (display, event->requestor);
|
||||
#else
|
||||
g_warning ("%s is not implemented", G_STRFUNC);
|
||||
info->requestor = NULL;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user