1. 03 Mar, 2000 1 commit
    • Tor Lillqvist's avatar
      Store just pixel value of background colour. · 5a4e1abb
      Tor Lillqvist authored
      2000-03-04  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
      just pixel value of background colour.
      
      * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
      containing code snippet previously duplicated in a couple of
      places.
      
      * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
      gdk_colormap_color.
      
      * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
      GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
      events for autorepeated Shift, Control and Alt keys. Use
      gdk_colormap_color.
      
      * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
      pointer is inside the window the cursor of which we are setting,
      call SetCursor immediately.
      
      * gdk/win32/makefile.cygwin
      * gtk/makefile.cygwin: If we don't have the build number stamp
      file, use zero.
      
      * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
      gtk_paned_set_gutter_size as empty.
      
      * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
      5a4e1abb
  2. 13 Feb, 2000 3 commits
    • Tor Lillqvist's avatar
      Move the test for no segments before the assertion for non-NULL segment · 37cfb7d7
      Tor Lillqvist authored
      2000-02-14  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
      before the assertion for non-NULL segment list.
      
      * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
      Seems that pattern brushes *must* be 8x8 pixels! At least on my
      machine, but it might be display driver dependent. Sigh, so make
      sure the stipple is that size. Does Windows suck or what?
      
      * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
      places.
      37cfb7d7
    • Havoc Pennington's avatar
      init refcount to 1 (gdk_cursor_new): init refcount to 1 · 95a9052d
      Havoc Pennington authored
      2000-02-13  Havoc Pennington  <hp@pobox.com>
      
      	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
      		refcount to 1
      			(gdk_cursor_new): init refcount to 1
      
      				* gdk/win32/gdkcursor-win32.c
      (gdk_cursor_new): init refcount to 1
      95a9052d
    • 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
  3. 09 Feb, 2000 1 commit
  4. 03 Feb, 2000 1 commit
    • Tor Lillqvist's avatar
      Use g_filename_to_utf8 to convert the font names Windows gives us from · e57b1afa
      Tor Lillqvist authored
      2000-02-04  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
      g_filename_to_utf8 to convert the font names Windows gives us from
      whatever is the default codepage to UTF-8.
      (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
      in the other direction.
      
      * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
      error in debugging output.
      
      2000-02-02  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
      and height parameters to gdk_window_clear_area(). Not minus one.
      
      2000-02-01  Tor Lillqvist  <tml@iki.fi>
      
      * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
      g_filename_from_utf8 functions (which were added a moment ago to
      GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
      size buffers.
      
      * gtk/gtkfilesel.h: Add comment about
      gtk_file_selection_get_filename returning the filename in the C
      runtime's encoding.
      
      * README.win32
      * gdk/gdk.def
      * gdk/makefile.{cygwin,msc}
      * gtk/gtk.def: Updates.
      
      * gdk/gdkcursor-win32.c: Initialise refcount.
      e57b1afa
  5. 29 Jan, 2000 1 commit
    • Havoc Pennington's avatar
      use gdk_cursor_unref instead of destroy · 4d48b106
      Havoc Pennington authored
      2000-01-30  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
      		destroy
      
      			* gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
      
      				* gdk/gdkprivate.h: declare
      _gdk_cursor_destroy which is then
      	implemented in platform-specific code
      
      		* gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
      
      			* gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy):
      rename with an
      	underscore in front
      
      		* gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
      			put an underscore in front
      
      				* gdk/gdkcursor.c: new file, implements
      					gdk_cursor_ref/gdk_cursor_unref
      
      						* gdk/gdkcursor.h: Refcount GdkCursor
      
      							* gdk/gdkcompat.h
      (gdk_cursor_destroy): compat
      4d48b106
  6. 21 Jan, 2000 1 commit
  7. 18 Jan, 2000 1 commit
    • Tor Lillqvist's avatar
      The correct semantics (to mimic the X11 backend, which just calls · cf51b479
      Tor Lillqvist authored
      2000-01-19  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
      semantics (to mimic the X11 backend, which just calls XClearArea)
      is to check for zero width (and height), and in that case use the
      window's width minus x (height minus y). This fixes for instance
      some redraw problems with gtkclist, which were easily noticeable
      in the gtk file selection widget.
      
      (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
      windows.
      cf51b479
  8. 15 Jan, 2000 1 commit
  9. 09 Jan, 2000 1 commit
  10. 02 Jan, 2000 1 commit
    • Tor Lillqvist's avatar
      Clean up some more leftovers from before Owen's reorganization: Don't have · d4755803
      Tor Lillqvist authored
      2000-01-02  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
      before Owen's reorganization: Don't have queued_events and
      queued_tail statics in this file, but use gdk_queued_events and
      gdk_queued_tail. This makes exposure event compression work again.
      
      (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
      seem to be needed?
      d4755803
  11. 30 Dec, 1999 1 commit
    • Tor Lillqvist's avatar
      gdk/win32/gdkprivate-win32.h gdk/win32/gdkevents-win32.c · 605c562f
      Tor Lillqvist authored
      1999-12-30  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkprivate-win32.h
      * gdk/win32/gdkevents-win32.c
      * gdk/win32/gdkinput-win32.c
      * gdk/win32/gdkwindow-win32.c: Remove the superfluous
      extension_events field in the GdkWindowWin32Data struct. Use only
      the extension_events field in GdkWindowPrivate. Previously one was
      set, and the other one tested, which broke tablet functionality.
      605c562f
  12. 18 Dec, 1999 1 commit
  13. 12 Dec, 1999 1 commit
  14. 11 Dec, 1999 3 commits
    • Tor Lillqvist's avatar
      gdk/Makefile.am Distribute Win32 files. · 4f5b0142
      Tor Lillqvist authored
      1999-12-11  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/Makefile.am
      * gdk/win32/Makefile.am: Distribute Win32 files.
      
      * gdk/makefile.msc: New file.
      
      * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
      after label).
      
      * gdk/win32/makefile.msc: Update.
      4f5b0142
    • Tor Lillqvist's avatar
      Distribute README.win32. · 913cb7cd
      Tor Lillqvist authored
      1999-12-11  Tor Lillqvist  <tml@iki.fi>
      
      * Makefile.am: Distribute README.win32.
      
      * gdk/Makefile.am
      * gdk/win32/Makefile.am: Distribute gdk/win32.
      913cb7cd
    • Tor Lillqvist's avatar
      Must mark also gdk_error_warnings and gdk_error_code as GDKVAR, as they · 9c00803e
      Tor Lillqvist authored
      1999-12-11  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
      gdk_error_code as GDKVAR, as they are referred outside GDK.
      
      * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
      
      * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
      non-NULL.
      
      * gtk/gtkdnd.c
      * gtk/gtklayout.c
      * gtk/gtkplug.c
      * gtk/gtkselection.c
      * gtk/gtksocket.c
      * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
      appropriate. There must be a cleaner way to handle this?
      
      * gtk/gtkrc.c: Must include windows.h on Win32.
      
      * gtk/testgtk.c: No need to include gdkx.h.
      
      * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
      9c00803e
  15. 06 Dec, 1999 1 commit
  16. 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
  17. 25 Nov, 1999 2 commits
    • Tor Lillqvist's avatar
      f0e6c2b1
    • Tor Lillqvist's avatar
      Fix two copy&paste errors. · 72fc0427
      Tor Lillqvist authored
      1999-11-25  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin):
      Fix two copy&paste errors.
      
      * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
      win32 has changed.
      
      * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
      GdkWin32SingleFont struct.
      
      * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
      subranges of loaded fonts. Clear font signature first, in case
      GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
      ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
      
      * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
      Unoffset clip region.
      72fc0427
  18. 23 Nov, 1999 1 commit
  19. 21 Nov, 1999 2 commits
    • Tor Lillqvist's avatar
      Remove, as this is a file generated by configure (or copied from · 143002ca
      Tor Lillqvist authored
      1999-11-21  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/gdkconfig.h: Remove, as this is a file generated by configure
      (or copied from gdkconfig.h.win32 on Win32, sigh).
      
      * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
      
      * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
      143002ca
    • 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
  20. 20 Nov, 1999 1 commit
  21. 19 Nov, 1999 1 commit
  22. 18 Nov, 1999 1 commit
    • Tor Lillqvist's avatar
      Also for truecolor drawables use just the pixel field in the foreground · c00a9a84
      Tor Lillqvist authored
      1999-11-18  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
      drawables use just the pixel field in the foreground and
      background GdkColor of the GdkGC.
      
      gdk_gc_set_{fore,back}ground() are called in the GIMP with
      GdkColors containing uninitialized (red,green,blue) fields, and
      just the pixel field filled in, and furthermore in the
      visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
      It thus turns out that we really don't need to have the full
      GdkColor for fg and bg in GdkGCWin32Data after all. Will change
      it later to have just the pixel values.
      
      (Note that this version of gdkgc-win32.c still is the old gdkgc.c,
      it won't compile in the reorganised directory structure.)
      c00a9a84
  23. 17 Nov, 1999 1 commit
  24. 15 Nov, 1999 1 commit
  25. 12 Nov, 1999 2 commits
  26. 11 Nov, 1999 4 commits
  27. 10 Nov, 1999 1 commit
  28. 08 Nov, 1999 3 commits
    • Tor Lillqvist's avatar
      gdk/win32/gdkdraw.c gdk/win32/gdkfont.c Various minor cleanups and · b5f414a1
      Tor Lillqvist authored
      1999-11-08  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkdraw.c
      * gdk/win32/gdkfont.c
      * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
      following yesterday's changes. (Unrelated to Owen's reorg.)
      b5f414a1
    • Owen Taylor's avatar
      Move all X specific code into the x11/ directory. Aside from shuffling · e9b6bfcc
      Owen Taylor authored
      Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
      
      	Move all X specific code into the x11/ directory.
      	Aside from shuffling things around, did the following:
      
             * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
      	 gdk_arg_context_* - a simple argument parsing system
      	 in the style of popt.
      
             * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
      	 gdk/x11/gdkprivate-x11.h:
      	 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
      	 add ->klass and ->klass_data fields. The klass_data
      	 field points to an auxilliary structure that is
      	 windowing system dependent.
      
             * gdk/gdkfont.c: Make most of the measurement functions
      	 simply wrappers around gdk_text_extents().
      
             * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
      	 _gdk_font_strlen() function that hides the weird
      	 behavior in gtk+-1.[02] where a string is interpreted
      	 differently for 8-bit and 16-bit fonts.
      
             * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
      	 to store common code for synthesizing double/triple
      	 press events.
      
             * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
      	 Make all the function that modify an existing GC
      	 simply wrappers around gdk_gc_set_values().
      
             * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
      	 for throwing out later.
      
             * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
      	 GdkImagePrivate and GdkColormapPrivate to have a
      	 windowing system dependent part (GdkFontPrivateX etc.)
      	 that "derives" from the system-independent part.
      
             * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
      	 Got rid of the included-source-files for XInput in
      	 favor of automake conditionals. (Which didn't exist
      	 when XInput support was originally added.)
      
             * gdk/gdkrgb.c: Remove the visual id from the debugging
      	 statements since that is X11 specific; print out
      	 type/depth info instead.
      e9b6bfcc
    • 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