]> Pileus Git - ~andy/gtk/blob - gdk/win32/gdkglobals.c
Win32 version of GDK source files and resource files (cursors and icons).
[~andy/gtk] / gdk / win32 / gdkglobals.c
1 /* GDK - The GIMP Drawing Kit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 /*
21  * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
22  * file for a list of people on the GTK+ Team.  See the ChangeLog
23  * files for a list of changes.  These files are distributed with
24  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
25  */
26
27 #include "config.h"
28
29 #include <stdio.h>
30 #if !defined (X_DISPLAY_MISSING)
31 #include <X11/Xlib.h>
32 #endif
33 #include "gdk.h"
34 #include "gdkprivate.h"
35
36 guint             gdk_debug_flags = 0;
37 HWND              gdk_root_window;
38 HWND              gdk_leader_window;
39 GdkWindowPrivate  gdk_root_parent = { { NULL, }, NULL, };
40 #if !defined(X_DISPLAY_MISSING)
41 gchar            *gdk_display_name = NULL;
42 gint              gdk_use_xshm = TRUE;
43 Atom              gdk_wm_delete_window;
44 Atom              gdk_wm_take_focus;
45 Atom              gdk_wm_protocols;
46 Atom              gdk_wm_window_protocols[2];
47 GdkDndCursorInfo  gdk_dnd_cursorinfo = {None, None, NULL, NULL,
48                                         {0,0}, {0,0}, NULL};
49 GdkDndGlobals     gdk_dnd = {None,None,None,
50                              None,None,None,
51                              None,
52                              &gdk_dnd_cursorinfo,
53                              NULL,
54                              0,
55                              FALSE, FALSE, FALSE,
56                              None,
57                              {0,0},
58                              {0,0}, {0,0},
59                              {0,0,0,0}, NULL, None, 0};
60 #elif defined (WINDOWS_DISPLAY)
61
62 HDC               gdk_DC;
63 HINSTANCE         gdk_DLLInstance;
64 HINSTANCE         gdk_ProgInstance;
65
66 UINT              gdk_selection_notify_msg;
67 UINT              gdk_selection_request_msg;
68 UINT              gdk_selection_clear_msg;
69 GdkAtom           gdk_clipboard_atom;
70 GdkAtom           gdk_win32_dropfiles_atom;
71 GdkAtom           gdk_ole2_dnd_atom;
72
73 #endif /* WINDOWS_DISPLAY */
74
75 Atom              gdk_selection_property;
76 gchar            *gdk_progclass = NULL;
77 gint              gdk_error_code;
78 gint              gdk_error_warnings = TRUE;
79 gint              gdk_null_window_warnings = TRUE;
80 GList            *gdk_default_filters = NULL;
81
82 gboolean      gdk_xim_using;            /* using XIM Protocol if TRUE */
83 GdkWindow    *gdk_xim_window;           /* currently using Widow */
84
85 GdkWindowPrivate *gdk_xgrab_window = NULL;  /* Window that currently holds the
86                                              *  x pointer grab
87                                              */
88
89 GMutex *gdk_threads_mutex = NULL;          /* Global GDK lock */
90
91 #ifdef USE_XIM
92 GdkICPrivate *gdk_xim_ic;               /* currently using IC */
93 GdkWindow *gdk_xim_window;              /* currently using Window */
94 #endif