1. 02 Aug, 2013 1 commit
    • Chun-wei Fan's avatar
      Add Visual Studio Build Support for Broadway · dcb766c4
      Chun-wei Fan authored
      -Add Visual Studio 2008 projects and pre-configured gdkconfig.h for
       Broadway builds
      -Decouple the Visual Studio property sheets, to simplify maintenance and
       enhance flexibility for different builds
      
      Visual Studio 2010 projects updates will follow later.
      dcb766c4
  2. 28 May, 2013 1 commit
  3. 30 Dec, 2011 1 commit
    • Chun-wei Fan's avatar
      Update gdk/gdkconfig.h.win32 · bdb98fdf
      Chun-wei Fan authored
      Apparently the deprecation warning macros are placed into gdkconfig.h
      during the configure stage, so put these in the pre-configured
      gdkconfig.h.win32 as well, as their definitions are needed for all builds.
      bdb98fdf
  4. 11 Feb, 2011 1 commit
  5. 01 Feb, 2011 1 commit
  6. 04 Aug, 2008 1 commit
  7. 03 Aug, 2008 1 commit
  8. 20 Jun, 2008 1 commit
    • Hans Breuer's avatar
      must return a value of the appropriate type with g_return_val_if_fail · 8e2ef498
      Hans Breuer authored
      2008-06-20  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkmenuitem.c gtk/gtkmessagedialog.c gtk/gtkplug.c : must return
      	a value of the appropriate type with g_return_val_if_fail
      	
      	* gdk/gdkconfig.h.win32 : add the GSEAL definition here as well
      
      	* gtk/gtkfilesystem.c : don't add the "File System" on win32
      
      	* tests/makefile.msc : remove broken autotestfile(system|chooser) 
      	from build
      
      
      svn path=/trunk/; revision=20657
      8e2ef498
  9. 17 Feb, 2002 1 commit
    • Tor Lillqvist's avatar
      Massive changes. Too many to list here, but I'll try a summary: · bc1ec5c1
      Tor Lillqvist authored
      2002-02-17  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/*.c: Massive changes. Too many to list here, but I'll
      	try a summary:
      
      	1) Unify GdkPixmap and GdkImage implementation: For each
      	GdkPixmap, allocate a GdkImage, and vice versa.
      	GdkPixmapImplWin32Data has a pointer to the GdkImage.
      	GdkImage::windowing_data is a pointer to the GdkPixmap.
      
      	This simplifies many pixmap and image related functions a lot, and
      	reduces duplicated code snippets. For instance, there is only one
      	place in gdk/win32 where CreateDIBSection() is called, in the
      	function _gdk_win32_new_pixmap(). Converting a bitmap (GdkPixmap)
      	to a Windows region is almost trivial, with the bitmap bits being
      	readily accessible in the associated GdkImage.
      
      	All blitting between GdkPixmaps, GdkWindows and GdkImages goes
      	through handled the _gdk_win32_blit() function, which calls
      	different functions to handle the cases of blitting from pixmaps,
      	inside windows (scrolling), or from windows, which all require
      	somewhat different handling.
      
      	2) Support 256-color mode. This has long been very broken, now it
      	works more or less OK. Keep the logical palette for each colormap
      	as small as possible while allocating and freeing colors. Select
      	and realize the logical palette associated with a GdkColormap into
      	a DC before drawing or blitting.
      
      	When the display is in 256-color mode, make it possible for the
      	user to override the size of the palette(s) used with either the
      	GDK_WIN32_MAX_COLORS environment variable, or a -max-colors
      	command line option. It is possible to reduce the palette size all
      	the way down to using just the 16 static colors (which causes the
      	system visual to be of type GDK_VISUAL_STATIC_COLOR. This could
      	possibly be useful if one desperately wants to avoid color
      	flashing. (Note that in order for this to work properly, an as of
      	yet not commited fix to gdkrgb.c is needed.)
      
      	Handle the palette messages. On WM_PALETTECHANGED, call
      	UpdateColors() for the given window hierarchy. Do this only if a
      	window in some other top-level window hierarchy caused the palette
      	change (realized a palette). Do this max five times in a row (an
      	arbitrarily chosen limit), though, otherwise redraw by generating
      	expose events. On WM_QUERYNEWPALETTE, cause a redraw of the whole
      	window hierarchy by generating GDK_EXPOSE events.
      
      	3) Code cleanup in general. For instance, remove the "emulated"
      	X11 structs ColormapStruct, Visual and XStandardColormap. Use the
      	new GDK_DEBUG_* flags for debugging output in the relevant source
      	files. Remove the unused colormap hash table in gdkcolor-win32.c
      
      	4) Plug some resource leaks.
      
      2002-02-14  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Use
      	g_filename_to_uri() to actually create legal URIs in the
      	text/uri-list data.
      bc1ec5c1
  10. 21 Nov, 1999 1 commit
    • Tor Lillqvist's avatar
      Fix typo. · 7944e647
      Tor Lillqvist authored
      1999-11-21  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
      
      * gdk/gdkconfig.h.win32: New file.
      
      * gdk/win32/makefile.cygwin: Build just a static archive here.
      
      * gdk/makefile.cygwin: New file. Get the win32-specific stuff
      for the DLL from the static archive built above.
      
      * gdk/gdk.def: Moved here from the win32 subdirectory.
      
      * gdk/win32/*: Adapt for the changed private struct organisation.
      
      * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
      7944e647
  11. 08 Nov, 1999 1 commit
    • Tor Lillqvist's avatar
      New font private structures, related to fontsets. · 0ad4aa57
      Tor Lillqvist authored
      1999-11-07  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkprivate.h: New font private structures, related to
      fontsets.
      
      * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
      gdk_font_list_free(). On X11, will just be wrappers to
      XListFonts() and XFreeFontNames(). On Win32, the code previously
      in gtkfontsel.c is now here.
      
      New function gdk_font_xlfd_create(). On X11 will get the FONT
      property of the font (for GDK_FONT_FONTs), or call
      XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
      builds a XLFD style name from the font information in the LOGFONT
      struct(s).
      
      New function gdk_font_xlfd_free(), which correspondingly frees the
      string returned by gdk_font_xlfd_create().
      
      Implement fontsets on Win32. Add a function that iterates over a
      wide char string and calls a callback function for each substring
      of wide chars from the same Unicode subrange (and thus probably
      available in the same real font).
      
      Improve the XLFD emulation a bit.
      
      * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
      
      * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
      Beta3, WM_IME_CHAR messages don't seem to contain the composed
      multi-byte char as with the Active IMM on Win9x. Oh well, handle
      WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
      ImmGetCompositionStringW() to get the composed Unicode chars.
      
      * gdk/win32/gdkgc.c
      * gdk/win32/gdkdraw.c: Changes needed because of the font private
      struct changes.
      
      * gdk/win32/gdk.def: Add the new functions.
      0ad4aa57
  12. 31 Oct, 1999 1 commit
    • Tor Lillqvist's avatar
      Add new keysyms from X11R6.4 (including EuroSign). · 00c5e838
      Tor Lillqvist authored
      1999-10-31  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
      EuroSign).
      
      * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
      same type as GdkWChar, especially on Win32.
      
      * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
      
      * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
      before passing to Windows GDI for drawing etc. Convert to the
      system default codepage before passing to Windows as window
      titles.
      
      * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
      support changing input locale on the fly.
      
      * gdk/win32/gdkevent.c: Support input language (keyboard locale)
      on-the-fly changes. Convert incoming characters from the current
      codepage to Unicode (and then to a UTF-8 multi-byte string) based
      on the current input language. Use keysym<->Unicode mapping tables
      and functions borrowed from xterm sources.
      
      Support IMEs (Input Method Editors) for CJK languages. On non-CJK
      editions of Win9x, use the ActiveX-based Active IMM (Input Method
      Manager) if available. IMEs and the Active IMM are available under
      the disguise of Chinese, Korean and Japanese support for IE and
      Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
      support is present in all editions (as long as you install it).
      
      Call DispatchMessage from gdk_events_queue() (and thus
      gdk_WindowProc()), instead of duplicating the code in
      gdk_WindowProc().
      
      Reworked the grab handling and propagation code, factored out
      duplicated code snippets into separate functions. Other cleanups,
      too.
      
      * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
      the <dimm.h> header describing the Active IMM.
      
      * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
      just do the same as for "single" fonts.
      
      * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
      gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
      the new keysyms from gdkkeysyms.h.
      
      * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
      fontset, so that gtkentry uses wide characters.
      
      * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
      GTk+'s system directory "gtk+", not "gtk".
      00c5e838
  13. 29 Sep, 1999 1 commit
  14. 25 Apr, 1999 1 commit
    • Tor Lillqvist's avatar
      Support added for building using a GNU toolchain on Win32, · 1c84483f
      Tor Lillqvist authored
      	gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
      
      	* gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
      	* config.h.win32: Changes for gcc.
      	* gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
      	* gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
      	* gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
      	* gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
      	Protect shl stuff unavaiilable with mingw32 headers.
      	* gdk/win32/gdkevents.c: Fix typo.
      	* gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
      	* gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
      	* gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
      	* gdk/win32/gdkprivate.h: Make up for some stuff missing from
      	the mingw32 headers.
      	* gdk/win32/makefile.msc: Use latest Wintab kit and glib.
      	* gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
      	definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
      	* gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
      	Test for NATIVE_WIN32, not _MSC_VER.
      	* gtk/gtkmain.c: No use warning about developer version on Win32,
      	there aren't any non-developer versions anyhow.
      	* gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
      	* gtk/makefile.msc: Use pthread from another directory. Minor other
      	changes.
      1c84483f
  15. 17 Mar, 1999 1 commit
  16. 13 Mar, 1999 1 commit
    • Tor Lillqvist's avatar
      Configure now generates a gdkconfig.h file, in similar way as GLib's · a3c5d33f
      Tor Lillqvist authored
      configure generates glibconfig.h. Currently it only defines what
      windowing API GDK uses, and on Unix (where configure scripts are
      used), it's always X11...
      
      Include gdkconfig.h in gdktypes.h.
      
      gdkconfig.h is installed in @libdir@/gtk+/include (like glibconfig.h
      is in @libdir@/glib/include). (This might be debatable?) Add that to
      gtk-config --cflags.
      
      Merge in Win32 changes to gtkfontsel.c
      a3c5d33f