1. 19 Aug, 2000 1 commit
    • Tor Lillqvist's avatar
      gdk/gdkimage.h No need any longer on Win32 for the shared memory · 617e17da
      Tor Lillqvist authored
      2000-08-20  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdkimage.h
      	* gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
      	shared memory image+pixmap GdkImage type, or
      	gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
      	I am dropping that.
      
      	* gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
      	actually call gtk_init_abi_check(), passing also
      	sizeof(GtkWindow). Ditto for gtk_init_check().
      
      	* gtk/gtk.def
      	* gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
      	New functions, used to check that the GTK+-using code has been
      	compiled using the correct compiler and switches. In particular,
      	with gcc one has to use the -fnative-struct switch as GTK+ is
      	compiled with that.
      617e17da
  2. 26 Jul, 2000 1 commit
  3. 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
  4. 23 Jul, 2000 2 commits
    • Tor Lillqvist's avatar
      46587958
    • Tor Lillqvist's avatar
      More work on GDK for Win32. Still in an intermediate state. · 20b5d8ec
      Tor Lillqvist authored
      2000-07-23  Tor Lillqvist  <tml@iki.fi>
      
      	More work on GDK for Win32. Still in an intermediate state.
      
      	* gdk/makefile.cygwin
      	* gdk/win32/makefile.cygwin: Removed.
      
      	* gdk/makefile.mingw.in
      	* gdk/win32/makefile.mingw.in: New files.
      
      	* gdk/Makefile.am
      	* gdk/win32/Makefile.am: Generate and distribute them.
      
      	* gdk/win32/gdkwindow-win32.h
      	* gdk/win32/gdkdrawable-win32.h
      	* gdk/win32/gdkpixmap-win32.h: New files.
      
      	* gdk/win32/gdkcolor-win32.c
      	* gdk/win32/gdkcursor-win32.c
      	* gdk/win32/gdkgc-win32.c
      	* gdk/win32/gdkimage-win32.c
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
      	don't use fields and variables called xcursor, xid, etc (leftovers
      	from the X11 backend).
      20b5d8ec
  5. 11 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      Win32 changes, still doesn't build though. · 28239637
      Tor Lillqvist authored
      2000-07-12  Tor Lillqvist  <tml@iki.fi>
      
      Win32 changes, still doesn't build though.
      
      * gdk/makefile.cygwin
      * gdk/win32/makefile.cygwin
      * gtk/makefile.cygwin: Updates.
      
      * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
      default values for fg and bg pixel as X11 does (0 and 1), not
      black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
      Use 0 for pen width by default (treated as 1 anyway later, but for
      apps that might check the value in the GdkGC).
      (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
      interface to gdk_gc_predraw and _postdraw.
      
      * gdk/win32/gdkwin32.h
      * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
      
      * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
      extraneous semicolon.
      
      * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
      
      * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
      not the Win32 bitspixel value.
      28239637
  6. 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
  7. 08 Mar, 2000 1 commit
    • Tor Lillqvist's avatar
      Internal GDK error reporting changes: (gdk_win32_gdi_failed) New function · ec1e8f1f
      Tor Lillqvist authored
      2000-03-07  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
      (gdk_win32_gdi_failed) New function for reporting errors from GDI,
      for which it is no use to call GetLastError on Win9x.
      (gdk_other_api_failed) New function, for
      general error reporting without calling GetLastError.
      (gdk_win32_api_failed) OTOH, this function always calls
      GetLastError. (gdk_win32_last_error_string) Remove this function,
      GLib has the equivalent now.
      
      * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
      call them with function name, file name and line number in the
      arguments.
      
      * gdk/win32/*.c: Use the new macros for reporting errors from GDI
      functions.
      
      * gtk/gtk.def: Add some missing entry points.
      
      * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
      gtk_paned_set_gutter_size, which don't exist any longer, as void.
      
      Fixes by Hans Breuer:
      
      * gdk/makefile.msc: Update for debugging.
      
      * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
      implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
      PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
      in the dash_list.
      
      * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
      the x11 backend.
      
      * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
      
      * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
      ec1e8f1f
  8. 13 Feb, 2000 1 commit
    • Tor Lillqvist's avatar
      Add an extra parameter so that we don't have to do unnecessary settings to · ff99eb7c
      Tor Lillqvist authored
      2000-02-13  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
      so that we don't have to do unnecessary settings to the HDC.
      
      * gdk/win32/gdkdrawable-win32.c
      * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
      gdk_gc_predraw.
      
      * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
      the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
      GDI paths, call WidenPath to get the outline of the stroken path,
      and then fill the outline (with the brush that was built from the
      stipple).
      
      * gdk/win32/gdkgc-win32.c: Factor out common code from
      _gdk_win32_gc_new and gdk_win32_gc_set_values into
      gdk_win32_gc_values_to_win32values.
      
      * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
      gdk_win32_api_failed): New functions for error logging.
      
      * gdk/win32/gdkprivate-win32.h: Declare them, and a macro
      WIN32_API_FAILED to call them, passing function or file name and
      line number.
      
      * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
      
      * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
      GdkColor for foreground and background in GdkGCWin32Data.
      
      * gdk/makefile.cygwin: Link in the resource object separately.
      
      * gdk/win32/rc/gdk.rc
      * gtk/gtk.rc (New file)
      * gdk/win32/makefile.cygwin
      * gtk/makefile.cygwin: Update build number in DLLs automatically,
      as in GLib.
      ff99eb7c
  9. 05 Dec, 1999 1 commit
    • Tor Lillqvist's avatar
      New function. Guesstimate what Unicode subranges a font covers based on · 0f5c8e85
      Tor Lillqvist authored
      1999-12-06  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
      function. Guesstimate what Unicode subranges a font covers based
      on the codepages. Windows tells us it covers. This will hopefully
      help those Windows versions or fonts that don't give us any useful
      Unicode subrange information with GetTextCharsetInfo. Call this
      function in gdk_font_load_internal.
      
      * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
      minor changes.
      0f5c8e85
  10. 20 Nov, 1999 1 commit
  11. 12 Nov, 1999 1 commit
  12. 10 Nov, 1999 1 commit
  13. 05 Oct, 1999 1 commit
    • Tor Lillqvist's avatar
      Corresponding changes as in X11 backend. · d23e3848
      Tor Lillqvist authored
      1999-10-05  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
      
      * gdk/win32/gdkcompat.c: New file, actually provide an
      implementation for the deprecated functions. (Just temporarily.)
      
      * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
      
      * gtk/makefile.{cygwin,msc}: Update gdk_headers.
      
      * gdk/win32/gdk.def gtk/gtk.def: Updates.
      d23e3848
  14. 02 Oct, 1999 1 commit
    • Tor Lillqvist's avatar
      Change GDK_WINDOWING_WIN32 usage to #ifdef also here. · c50941c8
      Tor Lillqvist authored
      1999-10-03  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
      to #ifdef also here.
      
      * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
      Owen did to the X11 backend.
      
      * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
      ScrollWindowEx when blitting inside a window, it can't be correct
      in the general case.
      
      * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
      WM_GETMINMAXINFO is easier.
      
      * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
      depth equal to the bitspixel value, not the visual's depth.
      
      * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
      to 24 even if the bitspixel value is 32.
      
      * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
      need to check for depth==32 when bpp==32, depth will always be 24.
      c50941c8
  15. 28 Jun, 1999 1 commit
  16. 18 May, 1999 1 commit
    • Tor Lillqvist's avatar
      Copy our gdkprivate.h and gdkx.h to a gdk subdirectory, so that · 330dd2f7
      Tor Lillqvist authored
      	* gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
       	gdkx.h to a gdk subdirectory, so that applications can include
       	these with <gdk/*.h> without trouble.
      
      	* gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
      	(gdk_image_destroy): Plugged resource leak, some GdkImages didn't
      	have their bitmap destroyed.
      
      	* gdk/win32/gdk.def: Add gdk_root_parent.
      330dd2f7
  17. 17 Mar, 1999 1 commit
  18. 07 Mar, 1999 1 commit
  19. 05 Mar, 1999 1 commit