diff options
author | Tor Lillqvist <tml@novell.com> | 2005-04-04 00:12:26 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-04-04 00:12:26 +0000 |
commit | 0b2ac32cf5d8ed96ebf743cbfc112d7e52928c81 (patch) | |
tree | 36a7395abd82e5c8bc1ad3ca0aec863ae0c8bc57 /gdk/win32/gdkglobals-win32.c | |
parent | ba433af9fb2419f3429622d40300c7ac3659fd75 (diff) | |
download | gtk+-0b2ac32cf5d8ed96ebf743cbfc112d7e52928c81.tar.gz |
New debugging function, to log a clipboard format name symbolically.
2005-04-04 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
function, to log a clipboard format name symbolically.
(_gdk_win32_data_to_string): Also new, to log random data bytes.
Implement delayed rendering on Win32, specifically for transfering
images through the clipboard from GTK+ apps to other
apps (#168173, implementation by Ivan Wong):
* gdk/win32/gdkevents-win32.c (gdk_event_translate):
Handle WM_RENDERFORMAT.
* gdk/win32/gdkprivate-win32.h
* gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
_delayed_rendering_data and _image_bmp.
* gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
* gdk/win32/gdkproperty-win32.c (gdk_property_change):
Accept formats other than GDK_TARGET_STRING or _utf8_string, and
assume they are handled through delayed rendering.
* gdk/win32/gdkselection-win32.c (gdk_selection_convert):
Return all available formats (including those registered by GTK+
apps) on request_targets.
(gdk_selection_property_get): We should append a zero byte like
X11 does.
(gdk_win32_selection_add_targets): New function, for
gtkselection's use. Win32 requires that the clipboard owner
registers all valid formats even if the owner wants delayed
rendering.
(_gdk_win32_selection_convert_to_dib): New function. Convert
images to DIB using gdk-pixbuf.
* gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
* gtk/gtkselection.c (gtk_selection_add_target,
gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
to register target formats.
* gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
Diffstat (limited to 'gdk/win32/gdkglobals-win32.c')
-rw-r--r-- | gdk/win32/gdkglobals-win32.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdk/win32/gdkglobals-win32.c b/gdk/win32/gdkglobals-win32.c index 26fb203834..a178ccbf25 100644 --- a/gdk/win32/gdkglobals-win32.c +++ b/gdk/win32/gdkglobals-win32.c @@ -36,7 +36,7 @@ GdkWindow *_gdk_root = NULL; gint _gdk_num_monitors; GdkRectangle *_gdk_monitors = NULL; -gint _gdk_offset_x, _gdk_offset_y; +gint _gdk_offset_x, _gdk_offset_y; HDC _gdk_display_hdc; HINSTANCE _gdk_dll_hinstance; @@ -50,9 +50,11 @@ WORD _cf_rtf; WORD _cf_utf8_string; GdkAtom _utf8_string; -GdkAtom _text_uri_list; GdkAtom _targets; +GdkAtom _text_uri_list; +GdkAtom _image_bmp; + GdkAtom _local_dnd; GdkAtom _gdk_win32_dropfiles; GdkAtom _gdk_ole2_dnd; @@ -66,3 +68,6 @@ gint _gdk_max_colors = 0; gboolean _sizemove_in_progress = FALSE; gboolean _ignore_destroy_clipboard = FALSE; + +HGLOBAL _delayed_rendering_data = NULL; +GHashTable *_format_atom_table = NULL; |