mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
54a4307128
Rename GdkWin32Selection to GdkWin32Clipdrop, since GdkSelection is mostly gone, and the word "selection" does not reflect the functionality of this object too well. Clipboard is now handled by a separate thread, most of the code for it now lives in gdkclipdrop-win32.c, gdkclipboard-win32.c just uses clipdrop as a backend. The DnD source part is also put into a thread. The DnD target part does not spin the main loop, it just emits a GDK event and returns a default value if it doesn't get a reply by the time the event is processed. Both clipboard and DnD use a new GOutputStream subclass to get data from GTK and put it into a HGLOBAL. GdkWin32DragContext is split into GdkWin32DragContext and GdkWin32DropContext, anticipating a similar change that slated to happen to GdkDragContext. OLE2 DnD protocol is now used by default, set GDK_WIN32_OLE2_DND envvar to 0 to make GDK use the old LOCAL and DROPFILES protocols. https://bugzilla.gnome.org/show_bug.cgi?id=773299
54 lines
1.8 KiB
C
54 lines
1.8 KiB
C
/* GDK - The GIMP Drawing Kit
|
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
* Copyright (C) 1998-2002 Tor Lillqvist
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/*
|
|
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
* files for a list of changes. These files are distributed with
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
*/
|
|
|
|
#include "config.h"
|
|
#include "gdktypes.h"
|
|
#include "gdkprivate-win32.h"
|
|
|
|
GdkDisplay *_gdk_display = NULL;
|
|
GdkDeviceManagerWin32 *_gdk_device_manager = NULL;
|
|
|
|
gint _gdk_offset_x, _gdk_offset_y;
|
|
|
|
HDC _gdk_display_hdc;
|
|
HINSTANCE _gdk_dll_hinstance;
|
|
HINSTANCE _gdk_app_hmodule;
|
|
|
|
gint _gdk_input_ignore_core;
|
|
|
|
HKL _gdk_input_locale;
|
|
gboolean _gdk_input_locale_is_ime;
|
|
UINT _gdk_input_codepage;
|
|
|
|
gint _gdk_input_ignore_wintab = FALSE;
|
|
gint _gdk_max_colors = 0;
|
|
|
|
GdkWin32ModalOpKind _modal_operation_in_progress = GDK_WIN32_MODAL_OP_NONE;
|
|
HWND _modal_move_resize_window = NULL;
|
|
|
|
/* The singleton clipdrop object pointer */
|
|
GdkWin32Clipdrop *_win32_clipdrop = NULL;
|
|
|
|
GThread *_win32_main_thread = NULL; |