1. 12 Nov, 2010 1 commit
  2. 04 Apr, 2010 1 commit
    • Tor Lillqvist's avatar
      Work on OLE2-based generic DND · af37f76b
      Tor Lillqvist authored
      Intermediate commit of work in progress on integrating the old code
      for OLE2-based generic drag and drop from Arhaeopteryx Software, from
      a long time ago in the GTK+ 1.3 timeframe. Does still not work and is
      as before not compiled in unless OLE2_DND is defined in
      gdkdnd-win32.c. (Thus, for inter-process DND, still only WM_DROPFILES
      style dropping of files on GTK+ apps works.)
      
      Related slight refactoring of other code that shouldn't change how it
      works. Add more global variables for run-time constants (once
      initialized) representing well-known GdkAtoms and registered Windows
      clipboard formats, as they with the generic DND code will be needed in
      several source files. Some improved debugging output.
      af37f76b
  3. 16 Dec, 2009 1 commit
    • Tor Lillqvist's avatar
      Work on OLE2-based generic DND · eb21a7df
      Tor Lillqvist authored
      Intermediate commit of work in progress on integrating the old code
      for OLE2-based generic drag and drop from Arhaeopteryx Software, from
      a long time ago in the GTK+ 1.3 timeframe. Does still not work and is
      as before not compiled in unless OLE2_DND is defined in
      gdkdnd-win32.c. (Thus, for inter-process DND, still only WM_DROPFILES
      style dropping of files on GTK+ apps works.)
      
      Related slight refactoring of other code that shouldn't change how it
      works. Add more global variables for run-time constants (once
      initialized) representing well-known GdkAtoms and registered Windows
      clipboard formats, as they with the generic DND code will be needed in
      several source files. Some improved debugging output.
      eb21a7df
  4. 30 Jan, 2009 1 commit
    • Tor Lillqvist's avatar
      Bug 559408 - Transparency lost when images are copied between GTK+ and the · 3f4c73d0
      Tor Lillqvist authored
      2009-01-29  Tor Lillqvist  <tml@novell.com>
      
      	Bug 559408 - Transparency lost when images are copied between GTK+
      	and the clipboard on Windows
      
      	The code in gdkselection-win32.c is simplified quite a lot. When
      	an image is stored on the clipboard from GTK+, only the "PNG" and
      	CF_DIB formats are advertised. PNG is our preferred format because
      	it can losslessly represent any image that gdk-pixbuf can handle,
      	even with alpha, unambiguously. CF_DIB is also advertised because
      	of its ubiquitous support in Windows software.
      
      	Delayed rendering is used as before, so for other data than text
      	nothing is actually stored on the clipboard until some app asks
      	for it.
      
      	It's pointless to advertise images formats like "image/png" or
      	"image/x-MS-bmp" that no other Windows application is going to
      	look for anyway. Likewise it's pointless to store text under
      	formats like "text/plain" or "UTF8_STRING". Just store
      	CF_UNICODETEXT. CF_TEXT will be available as a synthesized format
      	anyways.
      
      	Office 2007 offers and asks for images in PNG format using the
      	registered clipboard format name "PNG", so we do likewise. If the
      	"PNG" format is available that is preferred when copying to GTK+
      	from the clipboard.
      
      	Unfortunately Word 2007 still uses CF_DIB without handling
      	alpha. But PowerPoint 2007 uses PNG if available and handles alpha
      	correctly. Both Word and Powerpoint offer PNG with alpha nicely.
      
      	Firefox and IE7 offer images that contain alpha as 32-bit version
      	3 BI_RGB DIBs with the undocumented "extra" bytes actually being
      	alpha. Also, alpha is premultiplied into the RGB bytes, presumably
      	because that is how AlphaBlend() wants such DIBs. That is also
      	taken care of. At least for Firefox it easy to be sure that a
      	CF_DIB on the clipboard is from Firefox.
      
      	Also some general stylistic cleanup, comment improvements, and
      	improvements of debugging printout especially in the clipboard
      	handling. Those are not detailled below.
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkgmain-win32.c: Move some globals that were used
      	only in gdkselection-win32.c to be local to that file.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_property_change): Don't
      	bother checking if text to be placed on the clipboard consists of
      	only ASCII.
      
      	* gdk/win32/gdkselection-win32.c: Add static variables for a list
      	of GdkPixbuf-supported formats, well-known registered clipboard
      	formats for images, and for GdkAtoms for well-known image and text
      	formats.
      
      	(_gdk_win32_selection_init): Initialize above static variables.
      
      	(selection_property_store) (gdk_selection_property_get)
      	(_gdk_selection_property_delete): Don't use a FIFO of GdkSelProps
      	for a window after all, it breaks testtext. See bug #163844.
      
      	(gdk_selection_convert): When converting to the TARGETS format,
      	i.e. when the caller wants to know what clipboard formats are
      	available, if PNG is available we report just that and skip
      	CF_DIB, JPEG and GIF even if advertised.
      
      	If CF_UNICODETEXT is available, report only UTF8_STRING.
      
      	When converting to the UTF8_STRING format, i.e. when the caller
      	wants text from the clipboard, try just CF_UNICODETEXT. There is
      	no point in trying CF_TEXT as Windows will synthesize
      	CF_UNICODETEXT from CF_TEXT anyway, if some app has stored just
      	CF_TEXT.
      
      	When converting to the image/bmp format, i.e. when the caller
      	wants an CF_DIB image from the clipboard, we check if the DIB is a
      	version 3 32-bit BI_RGB one that is likely to actually contain
      	alpha in the "extra" bytes. Such a DIB is likely to have
      	premultiplied alpha even, at least in the case of Firefox 3 and
      	IE7. We then edit the DIB in-place into a version 5 one in
      	BI_BITFIELDS format and undo the alpha premultiplication.
      
      	In any case, prepend a BMP file header before letting go of the
      	data which will be fed to the gdk-pixbuf bmp loader by upper
      	levels.
      
      	(gdk_win32_selection_add_targets): If some kind of pixmap image
      	format is being added, actually advertise just PNG and
      	CF_DIB. Note that alpha won't be stored on the clipboard through
      	CF_DIB. This is because gdk-pixbuf's bmp loader doesn't save
      	alpha. Furthermore, few if any non-GTK+ Windows apps seem to
      	understand a version 5 DIB with proper alpha anyway.
      
      	(_gdk_win32_selection_convert_to_dib): Simplified muchly.
      
      
      
      svn path=/trunk/; revision=22255
      3f4c73d0
  5. 04 Aug, 2008 1 commit
    • Tor Lillqvist's avatar
      Bug 544684 - Win64 issue, window handles are assumed to be 32-bit · a860ec7d
      Tor Lillqvist authored
      2008-08-05  Tor Lillqvist  <tml@novell.com>
      
      	Bug 544684 - Win64 issue, window handles are assumed to be 32-bit
      
      	* gdk/win32/gdkproperty-win32.c
      	* gdk/win32/gdkselection-win32.c: Add some guchar and char pointer
      	casts to get rid of gcc 4.4 warnings. Print GdkAtom values in
      	debugging output using the %p format.
      
      
      svn path=/trunk/; revision=20993
      a860ec7d
  6. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  7. 18 Dec, 2007 1 commit
    • Matthias Clasen's avatar
      Add a gtk-im-module GTK setting · f8a1be3a
      Matthias Clasen authored
      2007-12-17  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtksettings.c: Add a gtk-im-module GTK setting
              * gdk/win32/gdkproperty-win32.c:
              * gdk/x11/gdksettings.c: ...and back it by a Gtk/IMModule X setting.
      
              * gtk/gtkimmodule.[hc]:
              * gtk/gtkimmulticontext.[hc]: When determining the default context,
              look at the gtk-im-module setting, and listen for changes to the
              setting.  (#502446, Akira Tagoh)
      
      
      svn path=/trunk/; revision=19195
      f8a1be3a
  8. 09 Mar, 2007 1 commit
  9. 27 Dec, 2006 1 commit
    • Kristian Rietveld's avatar
      Support inverting arrows via XSetting. (#377979, Yevgen Muntyan). · 0677ad8e
      Kristian Rietveld authored
      2006-12-27  Kristian Rietveld  <kris@gtk.org>
      
      	Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).
      
      	* gtk/gtksettings.c (gtk_settings_class_init): add new setting
      	gtk-alternative-sort-arrows.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): add
      	new setting.
      
      	* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: set new
      	gtk-alternative-sort-arrows setting to true.
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
      	invert direction if gtk-alternative-sort-arrows is TRUE.
      0677ad8e
  10. 29 Aug, 2006 1 commit
    • Tor Lillqvist's avatar
      Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x since 2.6 or · 1ff434a6
      Tor Lillqvist authored
      2006-08-29  Tor Lillqvist  <tml@novell.com>
      
      	Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x
      	since 2.6 or 2.8. It's pointless to keep the Win9x code in here as
      	it isn't being maintained anyway. If somebody is interested, it
      	can always be found in older GTK+ versions, and in CVS.
      
      	* gdk/win32/gdkcursor-win32.c
      	* gdk/win32/gdkdnd-win32.c
      	* gdk/win32/gdkdrawable-win32.c
      	* gdk/win32/gdkgc-win32.c
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkkeys-win32.c
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkproperty-win32.c
      	* gdk/win32/gdkselection-win32.c: Remove the G_WIN32_IS_NT_BASED()
      	and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
      	branches, and any variables or static functions used only by the
      	Win9x branches.
      
      	* gdk/win32/gdkprivate-win32.h: Remove backup definitions for
      	constants that aren't missing from current mingw and MSVC6
      	headers.
      
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkprivate-win32.h: Remove the _gdk_win32_gdi_failed()
      	function. On NT-based Windows GetLastError() returns error codes
      	also for failed GDI calls, so we can use _gdk_win32_api_failed()
      	always.
      1ff434a6
  11. 11 Jun, 2006 1 commit
  12. 01 Nov, 2005 1 commit
    • Tor Lillqvist's avatar
      gdk/win32/gdkprivate-win32.h gdk/win32/gdkglobals-win32.c Add more · 4d1b5589
      Tor Lillqvist authored
      2005-11-01  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Add more
      	pre-interned GdkAtoms and pre-registered clipboard formats. Sort
      	their declarations, definitions and assignments into a more
      	logical and consistent order.
      
      	* gdk/win32/gdkmain-win32.c (_gdk_win32_cf_to_string): Include the
      	CF_ prefix for the predefined clipboard format names. Put quotes
      	around registered format names to distinguish them.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_property_change): Return
      	immediately with a warning if the property type is STRING, TEXT,
      	COMPOUND_TEXT or SAVE_TARGETS, as these are X11-specific that we
      	should never pretend to handle on Win32. Handle only UTF8_STRING
      	here, other formats with delayed rendering. Use \uc1 instead of
      	\uc0 when generating Rich Text Format for easier testability on
      	XP, where WordPad misinterprets \uc0 encoded characters. Add more
      	GDK_NOTE debugging output for Clipboard operations.
      
      	* gdk/win32/gdkselection-win32.c: Debugging printout improvements.
      	(gdk_selection_convert): Don't pretent to handle STRING, just
      	UTF8_STRING. Streamline error handling, don't unnecessarily have a
      	GError which then isn't used for anything anyway if it gets set.
      	(gdk_win32_selection_add_targets): Skip also STRING, TEXT,
      	COMPOUND_TEXT and SAVE_TARGETS in addition to UTF8_STRING.
      4d1b5589
  13. 18 Sep, 2005 1 commit
    • Hans Breuer's avatar
      fix typo for GTK_VER; define HAVE_CONFIG_H cause gtkprogressbar.c has · e5d06c7c
      Hans Breuer authored
      2005-09-18  Hans Breuer  <hans@breuer.org>
      
      	* gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H
      	cause gtkprogressbar.c has #include <config.h> conditionally; less
      	noise from generated gtk.def
      	* gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated
      
      	* gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile.
      	For me it works as well as the *NIX implemenation, that is not at all.
      
      	* gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
      
      	* gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use
      	only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall
      	back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0
      	again - if compiled properly.
      
      	* tests/teststatusicon.c : don't use GNOME icons for testing, but icons
      	already coming with Gtk+. Makes it compile on win32.
      e5d06c7c
  14. 24 May, 2005 1 commit
  15. 10 May, 2005 1 commit
  16. 04 Apr, 2005 1 commit
    • Tor Lillqvist's avatar
      New debugging function, to log a clipboard format name symbolically. · 0b2ac32c
      Tor Lillqvist authored
      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().
      0b2ac32c
  17. 16 Mar, 2005 2 commits
    • Tor Lillqvist's avatar
      gdk/win32/gdkprivate-win32.h Drop global variable _gdk_root_window, just · 34bfd712
      Tor Lillqvist authored
      2005-03-16  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/*.c: Drop global variable _gdk_root_window, just call
      	GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
      	_gdk_root.
      
      	* gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
      	toplevel_window_type field.
      
      	* gdk/win32/gdkwindow-win32.c: As there is only one root
      	window in GDK on Win32, we can compare directly to _gdk_root
      	instead of checking the window type.
      	(gdk_window_reparent): When reparenting a child of the desktop
      	clear out the window decorations. Correspondingly, when
      	reparenting to the desktop, add decorations. As in the X11
      	backend, save the window type of a toplevel window when
      	reparenting, in case it is reparented back to toplevel.
      34bfd712
    • Tor Lillqvist's avatar
      Print debugging output only if asked for, not always. · df9768cf
      Tor Lillqvist authored
      2005-03-16  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
      	debugging output only if asked for, not always.
      
      	* gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
      	debugging printout instead of +%d+%d. Misc other additions and
      	cosmetic improvements to debugging printouts. Use API_CALL() and
      	GDI_CALL() macros in more places.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
      	gdk_window_move_resize): To detect child windows, check whether
      	the real parent is not the desktop window, instead of relying on
      	the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
      	windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
      	de facto child windows.
      df9768cf
  18. 31 Oct, 2004 1 commit
  19. 01 Sep, 2004 1 commit
  20. 07 Jul, 2004 1 commit
    • Tor Lillqvist's avatar
      gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text) · d8b2f46c
      Tor Lillqvist authored
      2004-07-07  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text)
      	* gdk/win32/gdkfont-win32.c (gdk_text_extents)
      	* gdk/win32/gdkproperty-win32.c (find_common_locale,
      	gdk_property_change)
      	* gdk/win32/gdkselection-win32.c (gdk_selection_convert): Use
      	g_utf8_to_utf16() instead of the removed _gdk_utf8_to_ucs2() (see
      	below).
      
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkmain-win32.c (_gdk_windowing_init)
      	* gdk/win3/gdkprivate-win32.h: Add a variable for the TARGETS
      	atom. Initialize it. Declare it. Drop the variable for the
      	COMPOUND_TEXT atom.
      
      	* gdk/win32/gdkim-win32.c (gdk_wcstombs): Don't return UTF-8. This
      	function is supposed to return the string in the locale's charset
      	and encoding. Use g_convert().
      
      	(gdk_mbstowcs): Similarily, don't take an UTF-8 string, but a
      	string in the locale's charset. Use g_convert().
      
      	(_gdk_ucs2_to_utf8, _gdk_utf8_to_wcs, _gdk_utf8_to_ucs2):
      	Delete. The UCS-2 functions didn't handle surrogates anyway. Use
      	GLib's UTF-16 functions instead. Windows uses UTF-16.
      
      	* gdk/win32/gdkprivate-win32.h: Remove declarations of the deleted
      	functions mentioned above.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_property_change): Use CF_TEXT
      	also if the string is of type STRING, i.e. ISO-8859-1, and the
      	current codepage is 1252, and contains no C1 chars. Accept
      	also UTF8_STRING.
      
      	* gdk/win32/gdkselection-win32.c (_gdk_selection_property_store):
      	Mark as static. When storing STRING data, convert to
      	Latin-1. (#140537)
      	(gdk_selection_owner_set_for_display): Now that STRING is always
      	ISO-8859-1, use UTF8_STRING when sending the selection request
      	to ourselves.
      
      	(gdk_selection_convert): Handle also UTF8_STRING. (#140537, John
      	Ehresman)
      
      	(gdk_text_property_to_text_list_for_display): Make work more like
      	X11 version. Do obey the encoding parameter.
      
      	(gdk_string_to_compound_text_for_display,
      	gdk_utf8_to_compound_text_for_display): Don't even pretend
      	supporting COMPOUND_TEXT.
      
      	(gdk_utf8_to_string_target): Convert to ISO-8859-1, like on X11.
      
      	(sanitize_utf8): Zero-terminate string.
      d8b2f46c
  21. 07 Mar, 2004 1 commit
    • Hans Breuer's avatar
      some more settings from system, also reflect some name changes done a · 985e3a24
      Hans Breuer authored
      2004-03-07  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) :
      	some more settings from system, also reflect some name changes
      	done a while ago in the x11 backend
      
      	* gdk/win32/makefile.msc : build gdkspawn-win32.c
      
      	* gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4"
      
      	* gtk/makefile.msc.in : build gtkpathbar, link shell32.lib
      
      	* tests/makefile.msc : some more tests get build
      985e3a24
  22. 06 Mar, 2004 1 commit
  23. 25 Jan, 2004 1 commit
    • Tor Lillqvist's avatar
      If the WM_TRANSIENT_FOR property is being deleted, set the owner of the · 15567341
      Tor Lillqvist authored
      2004-01-25  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
      	WM_TRANSIENT_FOR property is being deleted, set the owner of the
      	window to the root window (i.e., effectively unset it). (#132411)
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkmain-win32.c: Declare, define and initialize
      	_wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
      
      	* acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
      15567341
  24. 15 Dec, 2002 1 commit
    • Matthias Clasen's avatar
      Use g_printf instead of system printf. (#99327) · 8ba71578
      Matthias Clasen authored
      2002-12-15  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcalendar.c:
      	* gtk/gtkfilesel.c:
      	* gtk/gtkfontsel.c:
      	* gtk/gtkhruler.c:
      	* gtk/gtkinputdialog.c:
      	* gtk/gtkprogress.c:
      	* gtk/gtktreemodel.c:
      	* gtk/gtkvruler.c:
      	* gtk/queryimmodules.c:
      	* gtk/theme-bits/decompose-bits.c:
      	* gdk-pixbuf/gdk-pixbuf-csource.c:
      	* gdk-pixbuf/make-inline-pixbuf.c:
      	* gdk-pixbuf/queryloaders.c:
      	* gdk/gdkkeynames.c:
      	* gdk/gdkrgb.c:
      	* gdk/linux-fb/gdkfbmanager.c:
      	* gdk/win32/gdkevents-win32.c:
      	* gdk/win32/gdkmain-win32.c:
      	* gdk/win32/gdkproperty-win32.c:
      	* gdk/x11/gdkmain-x11.c: Use g_printf instead of system
      	printf.  (#99327)
      8ba71578
  25. 12 Nov, 2002 1 commit
    • Tor Lillqvist's avatar
      gdk/win32/gdkprivate-win32.h Rename all global variables and functions to · e96a41be
      Tor Lillqvist authored
      2002-11-12  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/*.c: Rename all global variables and functions to
      	start with underscore.
      
      	Merge from stable:
      
      	More work on the Win32 backend. The cause of some scrolling
      	problems was that SetWindowPos() and ScrollWindowEx() don't blit
      	those parts of the window they think are invalid. As we didn't
      	keep Windows's update region in synch with GDK's, Windows thought
      	those areas that in fact had been updated were invalid. Calling
      	ValidateRgn() in _gdk_windowing_window_queue_antiexpose() seems to
      	be an elegant and efficient solution, removing from Windows's
      	update region those areas we are about to repaint proactively.
      
      	In some cases garbage leftover values were used for the clip
      	origin in GdkGCWin32. This showed up as odd blank areas around the
      	pixmaps included in the Text Widget in gtk-demo.
      
      	Having the clip region either as a GdkRegion or a HRGN in
      	GdkGCWin32 was unnecessary, it's better to just use a HRGN.
      
      	The translation and antiexpose queue handling in
      	gdkgeometry-win32.c seems unnecessary (and not implementable in
      	the same way as on X11 anyway, no serial numbers) on Windows,
      	ifdeffed out.
      
      	Don't (try to) do guffaw scrolling as there is no static window
      	gravity on Windows. Guffaw scrolling would be unnecessary anyway,
      	as there is the ScrollWindow() API. This improves the behaviour of
      	the Text Widget demo in gtk-demo a lot. But I have no idea how the
      	lack of static win gravity should be handled in other places where
      	the X11 code uses it. Especially _gdk_window_move_resize_child().
      
      	There is still some problem in expose handling. By moving an
      	obscuring window back and forth over testgtk's main window, for
      	instance, every now and then you typically get narrow vertical or
      	horizontal strips of pixels that haven't been properly redrawn
      	after being exposed. A fencepost error somewhere?
      
      	Otherwise, all of testgtk and gtk-demo except "big windows" now
      	seem to work pretty well.
      
      	Bug #79720 should be fixed now.
      
      	* gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string,
      	gdk_win32_print_paletteentries, gdk_win32_print_system_palette,
      	gdk_win32_print_hpalette)
      	* gdk/win32/gdkdrawable-win32.c (gdk_win32_drawable_description)
      	* gdk/win32/gdkevents-win32.c (gdk_win32_message_name):
      	Move all debugging helper functions to gdkmain-win32.c.
      
      	* gdk/win32/gdkdrawable-win32.c (_gdk_win32_draw_tiles):
      	Rewrite. Make static. Must take tile origin parameters, too.
      
      	(gdk_win32_draw_rectangle): Pass the tile/stipple origin to
      	_gdk_win32_draw_tiles(). Remove #if 0 code.
      
      	(blit_inside_window): Don't call ScrollDC(), that didn't work at
      	all like I thought. A simple call to BitBlt() is enough.
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate) Remove unused
      	latin_locale_loaded variable.
      
      	(_gdk_win32_get_next_tick): New function. Used to make sure
      	timestamps of events are always increasing, both in events
      	generated from the window procedure and in events gotten via
      	PeekMessage(). Not sure whether this is actually useful, but it
      	seemed as a good idea.
      
      	(real_window_procedure): Don't use a local GdkEventPrivate
      	variable. Don't attempt any compression of configure or expose
      	events here, handled elsewhere.
      
      	(erase_background): Accumulate window offsets when traversing up
      	the parent chain for GDK_PARENT_RELATIVE_BG, in order to get
      	correct alignment of background pixmaps. Don't fill with
      	BLACK_BRUSH if GDK_NO_BG.
      
      	(gdk_event_get_graphics_expose): A bit more verbose debugging output.
      
      	(gdk_event_translate): Use _gdk_win32_get_next_tick(). In the
      	WM_PAINT handler, don't check for empty update rect. When we get a
      	WM_PAINT, the update region isn't empty. And if it for some
      	strange reason is, that will be handled later anyway. Call
      	GetUpdateRgn() before calling BeginPaint() and EndPaint() (which
      	empty the update region).
      
      	* gdk/win32/gdkdnd-win32.c
      	* gdk/win32/gdkinput-win32.c:
      	Use _gdk_win32_get_next_tick().
      
      	* gdk/win32/gdkfont-win32.c: Use %p to print HFONTs.
      
      	(gdk_text_size): Remove, unused.
      
      	* gdk/win32/gdkgc-win32.c:  Set clip origins to zero
      	when appropriate.
      
      	(gdk_gc_copy): Increase refcount on colormap if present.
      
      	(gdk_win32_hdc_get): Handle just hcliprgn. If we have a stipple,
      	combine it with clip region after selecting into the DC.
      
      	(_gdk_win32_bitmap_to_hrgn): Rename from _gdk_win32_bitmap_to_region.
      
      	(_gdk_win3_gdkregion_to_hrgn): New function, code snippet
      	extracted from gdk_win32_hdc_get().
      
      	* gdk/win32/gdkgeometry-win32.c: Ifdef out the translate_queue
      	handling.
      
      	(gdk_window_copy_area_scroll): Increase clipRect to avoid
      	ScrollWindowEx() not scrolling pixels it thinks are invalid.
      	Scroll also children with the ScrollWindowEx() call. No need to
      	call gdk_window_move() on the children.
      
      	(gdk_window_scroll): Don't do guffaw scrolling.
      
      	(gdk_window_compute_position): Fix typo, used win32_y where x was
      	intended.
      
      	(gdk_window_premove, gdk_window_postmove,
      	gdk_window_clip_changed): Add debugging output.
      
      	(_gdk_windowing_window_queue_antiexpose): Just call ValidateRgn()
      	on the region.
      
      	(_gdk_window_process_expose): No use for the serial number
      	parameter now. Instead of a rectangle, take a region parameter, as
      	Windows gives us one in WM_PAINT.
      
      	* gdk/win32/gdkmain-win32.c (_gdk_win32_lbstyle_to_string,
      	_gdk_win32_pstype_to_string, _gdk_win32_psstyle_to_string,
      	_gdk_win32_psendcap_to_string, _gdk_win32_psjoin_to_string,
      	_gdk_win32_rect_to_string, _gdk_win32_gdkrectangle_to_string,
      	_gdk_win32_gdkregion_to_string): New debugging functions.
      
      	(static_printf): Helper function for the above. sprintfs into a
      	static circular buffer, return value should be used "soon".
      
      	* gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Plug memory
      	leak, free list after use.
      
      	(gdk_window_gravity_works): Remove, we know that there is no such
      	thing on Windows.
      
      	(gdk_window_set_static_bit_gravity,
      	gdk_window_set_static_win_gravity): Ditto, remove, they didn't do
      	anything anyway.
      
      	(_gdk_windowing_window_init, gdk_window_foreign_new): Call
      	_gdk_window_init_position() like in the X11 backend.
      
      	(gdk_window_reparent): Don't call the now nonexistent
      	gdk_window_set_static_win_gravity(). No idea what should be done
      	instead.
      
      	(gdk_window_get_geometry): The returned x and y should be relative
      	to parent. Used to be always zero..
      
      	(gdk_window_set_static_gravities): Return FALSE if trying to set
      	static gravity.
      
      	* gdk/win32/gdkprivate-win32.h: Drop the clip_region field from
      	GdkGCWin32. Only use the HRGN hcliprgn. Declare new
      	functions.
      
      	* gdk/win32/*.c: Use new debugging functions.
      
      	* gdk/win32/rc/gdk.rc.in: Update copyright year.
      e96a41be
  26. 04 Sep, 2002 1 commit
  27. 20 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Renames: · 28c2b0a3
      Owen Taylor authored
      Thu Jun 20 19:41:09 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplay.h gdk/gdkscreen.h gdk/**.c gtk/*.c
              tests/*.c: Renames:
      
               gdk_get_default_display => gdk_display_get_default
               gdk_get_default_screen  => gdk_screen_get_default
               gdk_open_display        => gdk_display_open
      28c2b0a3
  28. 06 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Changes multihead reorganizing code for win32 support, mostly from a patch · aeaaae04
      Owen Taylor authored
      Wed Jun  5 18:34:47 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Changes multihead reorganizing code for win32 support,
      	mostly from a patch by Hans Breuer.
      
      	* gdk/gdkcolor.c gdk/x11/gdkcolor-x11.c gdk/gdkcursor.c
      	  gdk/x11/gdkcursor-x11.c gdk/gdkevents.c gdk/x11/gdkevents-x11.c
      	  gdk/gdkfont.c gdk/x11/gdkfont-x11.c gdk/gdkkeys.c
      	  gdk/x11/gdkkeys-x11.c gdk/gdkimage.c gdk/x11/gdkimage-x11.c
      	  gdk/gdkscreen.c gdk/x11/gdkmain-x11.c
      	  gdk/gdkdisplay.c gdk/gdkevents-x11.c gdk/gdkpango.c
      	  gdk/x11/gdkpango-x11.c gdk/gdkselection.c
      	  gdk/x11/gdkselection-x11.c gdk/gdkwindow.c
      	  gdk/x11/gdkwindow-x11.c gdk/gdkvisual.c gdk/x11/gdkvisual-x11.c:
      	  Move port-independent singlehead wrapper functions into
      	  port-independent part of GDK. (#80009)
      
      	* gdk/win32/gdkcolor-win32.c gdk/win32/gdkcursor-win32.c
      	  gdk/win32/gdkevents-win32.c gdk/win32/gdkfont-win32.c
      	  gdk/win32/gdkimage-win32.c gdk/win32/gdkkeys-win32.c
      	  gdk/win32/gdkmain-win32.c gdk/win32/gdkproperty-win32.c
      	  gdk/win32/gdkselection-win32.c gdk/win32/gkwindow-win32.c:
      	Turn singlehead functions into "multihead" functions that ignore
      	their GdkDisplay or GdkScreen arguments.
      
      	* gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
      	gdk/win32/gdkinput-win32.c gdk/win32/gdkprivate-win32.h:
      	Misc multihead-compatibility changes.
      
      	* gtk/gtk.def gdk/gdk.def: Update for multihead functions.
      
      	* gdk/gdkcolormap.h gdk/gdkvisual.h gdk/x11/gdkcolormap-x11.c
      	gdk/x11/gdkvisual-x11.c: Remove the screen fields
      	from the public parts of the colormap/visual structures, add accessors
      	instead.
      
      	* gdk/gdkpixbuf-render.c gdk/gdkpixmap.c gdk/gdkrgb.c
      	  gdk/x11/gdkcolormap-x11.c gdk/x11/gdkimage-x11.c
      	  gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.h gtk/gtkgc.c
      	  gtk/gtkstyle.c gtk/gtkwidget.c: Use accessors to get the screen
      	for colormaps, visuals; move the fields into the private
      	structures for the x11 backend.
      
      	* gdk/gdkdisplay.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	  gdk/gdkscreen.[ch] gdk/x11/gdkscreen-x11.c:
      	Remove virtualization of screen and display functions.
      	(#79990, patch from Erwann Chenede)
      
      	* gdk/win32/gdkdisplay-x11.c gdk/win32/gdkscreen-win32.c
      	gdk/win32/{Makefile.am, makefile.msc, makefile.mingw}:
      	New files containing stub implementations of Display,
      	Screen functions.
      
      	* gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	gdk/x11/gdkx.h: Clean up function exports and what
      	headers they are in. (#79954)
      
      	* gdk/x11/gdkx.h: Fix macro that was referring to a non-existant
      	screen->screen_num. (In the patch for #79972, Erwann Chenede)
      
      	* gdk/gdkscreen.c gdk/gdkwindow.c gdk/x11/gdkinternals.h
      	 gdk/x11/gdkscreen-x11.c: Fix gdk_screen_get_window_at_pointer()
      	to use window hooks. (#79972, patch partly from Erwann Chenede)
      
      	* gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c: Fix
      	some warnings.
      aeaaae04
  29. 10 Jan, 2002 1 commit
    • Tor Lillqvist's avatar
      Apply the same fixes and improvements as to the gtk-1-3-win32-production · 1b7cff47
      Tor Lillqvist authored
      2002-01-10  Tor Lillqvist  <tml@iki.fi>
      
      	Apply the same fixes and improvements as to the
      	gtk-1-3-win32-production branch: Bug fixes and cleanup of
      	selection and DND functionality. Still doesn't work as well as the
      	win32-production branch, though, but getting closer.
      
      	After this, need to add Archaeopteryx Software's OLE2 DND support.
      
      	* gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
      	gdk_selection_send_notify, generate_selection_notify): Don't use
      	SendMessage() to generate events for the same app, instead use
      	gdk_event_put().
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
      	initialisation and handling of gdk_selection_notify_msg,
      	gdk_selection_request_msg and gdk_selection_clear_msg.
      
      	* gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
      	gdk_free_text_list, gdk_string_to_compound_text,
      	gdk_free_compound_text): Implement trivially, witrh a text_list
      	always having a single element, and a compound text always
      	consisting of just a single (UTF-8!) string. Let's see how well
      	this works.
      
      	* gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
      	non-ASCII paste from the clipboard: Try getting the same formats
      	from the Windows clipboard that gdk_property_change() puts there:
      	CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_property_change): When
      	storing text on the clipboard, handle non-ASCII text
      	correctly. The logic is as follows:
      
      	If we have only ASCII characters, use CF_TEXT.
      
      	Else, if we are on NT, use CF_UNICODETEXT.
      
      	Else (we are on Win9x), if all the characters are present in the
      	code page of some installed locale, use CF_TEXT and also set
      	CF_LOCALE to that locale.
      
      	Else (still on Win9x) store as RTF. We use a very simple RTF
      	string, just the text, no fonts or other crap, with the non-ASCII
      	characters as Unicode \uN keywords. Additionally, also store the
      	UTF-8 string as such, under the format "UTF8_STRING", so that GDK
      	can also paste from the Clipboard what it has copied there. (Thus
      	no need to implement any RTF parser.)
      
      	(find_common_locale): New function, implements the search for a
      	locale for case 3 above.
      
      	* gdk/win32/gdkglobals-win32.c: New global variables
      	compound_text, text_uri_list, utf8_string, cf_rtf and
      	cf_utf8_string.
      
      	* gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
      	converts from a wchar_t string to UTF-8.
      	(_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
      	(_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
      
      	* gdk/win32/gdkevents-win32.c (build_keypress_event): Use
      	_gdk_ucs2_to_utf8().
      
      	* gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
      
      	* gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
      	gdk_drag_context_ref() was called unnecessarily in a couple of
      	places, meaning drag contexts were never freed. The same memory
      	leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
      
      	(gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
      	stored file list.
      
      	* gdk/win32/gdkselection-win32.c: Clarify the use of the
      	sel_prop_table. Now it is used only for storing the GDK_SELECTION
      	"properties".
      
      	The file names dropped with WM_DROPFILES -style DND is stored
      	temporarily (between the drop and the target picking them up) in a
      	separate place.
      
      	Have a separate hash table to map selection atoms to owner
      	windows. This used to be quite mixed up.
      
      	(_gdk_dropfiles_store): New function, to store the dropped file
      	list for the drop target to possibly fetch, and clear it
      	afterwards, from gdk_drop_reply().
      
      	(gdk_selection_owner_get): Much simplified now.
      1b7cff47
  30. 29 Oct, 2001 1 commit
    • Tor Lillqvist's avatar
      New file, hand-written wrapper for the Wintab library. · a53f14a6
      Tor Lillqvist authored
      2001-10-29  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
      	Wintab library.
      
      	* gdk/win32/gdkwin32.h
      	* gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
      	X11 headers better, and to enable gdkwin32.h to be installed and
      	included from applications, but not the *-win32.h headers.
      
      	* gdk/win32/*.c: Corresponding small changes, simplifications of
      	#includes.
      
      	* gdk/win32/gdkregion-win32.c: Remove.
      
      	* gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
      
      	* gdk/win32/gdkfont-win32.c
      	* gdk/win32/gdkgeometry-win32.c: Remove unused variables.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
      	GDK_NONE values into hash table.
      
      	Changes for autoconfiscated build on Win32, and addition of Win32
      	backend to the related files:
      
      	* gdk/win32/Makefile.am: Actually enable building the win32
      	objects here, not just list all files in EXTRA_DIST. Link in the
      	compiled resource fi...
      a53f14a6
  31. 28 Oct, 2001 1 commit
    • Hans Breuer's avatar
      static correct-ness, underscore prefixing of library internal functions · 93f12bd6
      Hans Breuer authored
      2001-10-28  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.c gdk/gdkevents.c
      	  gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
      	  gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
      	  gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
      	  gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
      	  gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
      	  gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
      	  gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
      	static correct-ness, underscore prefixing of library internal
      	functions
      	(applied the undisputed and the win32 part. Of the latter
      	 I'm probably the one who will change it back again, if Owen
      	 decides that the Gdk*Impl types should not be private to Gdk)
      
      	* gdk/gdk.def : added the remaining exported functions
      93f12bd6
  32. 26 Oct, 2001 1 commit
    • Hans Breuer's avatar
      updated externals · 11e6236b
      Hans Breuer authored
      2001-10-26  Hans Breuer  <hans@breuer.org>
      
      	* gdk-pixbuf/gdk_pixbuf.def :
      	* gdk/gdk.def :
      	* gtk/gtk.def : updated externals
      
      	* gdk/win32/gdkpixmap-win32.c : removed duplicate of
      	gdk_window_lookup implementation. It already was in
      	gdk/win32/gdkwindow-win32.c
      
      	* gdk/win32/gdkproperty-win32.c : made it compile again
      	after GdkAtom API change
      
      	* gtk/gtk/makefile.msc.in : updated
      11e6236b
  33. 22 Oct, 2001 1 commit
    • Owen Taylor's avatar
      Fix problem with g_return_if_fail return value. · 46dde804
      Owen Taylor authored
      Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
      	problem with g_return_if_fail return value.
      
       	* gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the
      	virtual atom code from the gdk-multihead branch, removing the per-display
      	part. Virtualizing atoms needs to be done now to prevent compat
      	breakage in direct Xlib accessing code in the future. (#62208)
      
       	* gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
       	gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
      
      	* gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
      	an opaque pointer type so the compiler catches attempts
      	to mingle it with X atoms.
      
      	* gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
      	  gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c,
      	  gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
      	  gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
      	  tests/testdnd.c,tests/testselection.c:
      	Fix up for ab...
      46dde804
  34. 07 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Make gdkx.h the only installed header from gdk/x11. All structures in · 1bbf2ac7
      Owen Taylor authored
      Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
      
            Make gdkx.h the only installed header from gdk/x11.
            All structures in gdk/x11 are opaque.
      
      	* gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
      	Don't install gdk{drawable,pixmap,window}-x11.h.
      
      	* gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c:
      	Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11,
      	GdkVisualClass into C files.
      
      	* gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
      
      	* gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
      	gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
      	Add public functions to replace previously exported direct
      	structure access.
      	gdk_x11_colormap_get_{xdisplay,xcolormap}
      	gdk_x11_cursor_get_{xdisplay,xcursor},
      	gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual,
      	gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
      	g...
      1bbf2ac7
  35. 13 Apr, 2001 1 commit
    • Hans Breuer's avatar
      updated · eed3dbb6
      Hans Breuer authored
      2001-04-14  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def :
      	* gdk/makefile.msc : updated
      
      	* gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is
      	"fill with tile" do so with new helper function	gdk_win32_draw_tiles
      	(the testgtk::text backgound pixmap is drawn again)
      	Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect
      	Win32 Pango change
      	* gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
      
      	* gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
      	Not sure if the returned settings have the right unit, because I couldn't
      	find any docs for the X version ...
      
      	* gtk/gtk.def :
      	* gtk/makefile.msc.in : updated
      eed3dbb6
  36. 25 Oct, 2000 1 commit
    • Tor Lillqvist's avatar
      Include x11/gdkx.h only when building for X11. · fb212745
      Tor Lillqvist authored
      2000-10-25  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
      
      	* gdk/win32/gdkdrawable-win32.c
      	* gdk/win32/gdkimage-win32.c
      	* gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
      	X11 backend.
      
      	* gdk/win32/gdkcc-win32.c
      	* gdk/win32/gdkcolor-win32.c
      	* gdk/win32/gdkfont-win32.c
      	* gdk/win32/gdkinput-win32.c
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
      fb212745
  37. 26 Jul, 2000 1 commit
  38. 25 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      Include the build directory. · 5ac61d3e
      Tor Lillqvist authored
      2000-07-25  Tor Lillqvist  <tml@iki.fi>
      
      	* Makefile.am: Include the build directory.
      
      	* configure.in: Generate build/Makefile and build/win32/Makefile.
      
      	* config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Updates.
      
      	* gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
      	PANGOWIN32_LIBS and gdk_pixbuf.
      
      	* gdk/win32: Compiles, but no doubt doesn't work at all.
      
      	* gdk/win32/makefile.mingw.in: Define GDK_COMPILATION.
      
      	* gdk/win32/gdkinput.c: New file, temporarily.
      
      	* gdk/win32/gdkinput-win32.h: New file
      
      	* gdk/win32/gdkinputprivate.h: Remove.
      
      	* gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
      	made externally visible.
      5ac61d3e
  39. 01 May, 2000 1 commit
    • Tor Lillqvist's avatar
      Large changes to the Win32 backend, partially made necessary by the · 1f149b3a
      Tor Lillqvist authored
      2000-05-02  Tor Lillqvist  <tml@iki.fi>
      
      Large changes to the Win32 backend, partially made necessary by
      the changes to the backend-independent internal
      structures. Attempts to implement similar backing store stuff as
      on X11. The current (CVS) version of the Win32 backend is *not* as
      stable as it was before the no-flicker branch was merged. A
      zipfile with that version is available from
      http://www.gimp.org/win32/. That should be use by "production"
      code until this CVS version is usable. (But note, the Win32
      backend has never been claimed to be "production quality".)
      
      * README.win32: Add the above comment about versions.
      
      * gdk/gdkwindow.c: Don't use backing store for now on Win32.
      
      * gdk/gdk.def: Update.
      
      * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
      presumably be replaced by some more better mechanism as 1.4 gets
      closer to release shape.
      
      * gdk/makefile.{cygwin,msc}: Update.
      
      * gdk/win32/*.c: Correct inclusions of the backend-specific and
      internal headers. Change code according to changes in these. Use
      gdk_drawable_*, not gdk_window_* where necessary.
      
      * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
      our old DND.
      
      * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
      to interpret single characters as UTF-8. Thanks to Hans Breuer.
      Use correct function name in warning messages.
      
      * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
      GSourceFuncs gdk_event_prepare and gdk_event_check.
      (gdk_event_get_graphics_expose): Do implement, use
      PeekMessage. Thanks to Hans Breuer.
      (event_mask_string): Debugging function to print an GdkEventMask.
      (gdk_pointer_grab): Use it.
      
      * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
      (old) book I used claimed was Hangul actually is CJK Unified
      Ideographs Extension A. Also, Hangul Syllables were missing.
      Improve logging.
      
      * gdk/win32/gdkgc-win32.c: Largish changes.
      
      * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
      g_win32_getlocale() from GLib, and not setlocale() to get current
      locale name.
      
      * gdk/win32/gdkprivate-win32.h
      * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
      gdkwin32.h, similarily as in the X11 backend.
      
      * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
      assignment was used instead of equals in if test. Thanks to Hans
      Breuer.
      
      * gdk/win32/makefile.{cygwin,msc}
      * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
      path to the Win32 headers that works also with the mingw compiler.
      
      * gtk/gtkstyle.c: Include <string.h>.
      1f149b3a