1. 16 Nov, 2002 1 commit
  2. 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
  3. 03 Mar, 2002 1 commit
  4. 02 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Switch style of stamp file usage. · f832e348
      Owen Taylor authored
      Sat Mar  2 13:26:58 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/Makefile.am: Switch style of stamp file usage.
      
              * gtk/Makefile.am gtk/typeutils.[ch]: Switch all the exported
              enumeration/fags TYPE variables over to macros for get_type() functions,
              for lazy definition and to get rid of expensive relocations.
      
              * gtk/gtkiconfactory.[ch] gtk/gtkselection.[ch] gtk/gtkstyle.[ch]
              gtk/gtktextiter.[ch] gtk/gtktexttag.[ch] gtk/gtktreemodel.[ch]
              gtk/gtktypeutils.[ch] gtk/gtkwidget.[ch]: Switch boxed type
              definitions over manually coded get_type() functions.
      
              * gtk/gtk.def: Updates for above
      
              * gtk/{genmarshal.pl,makeenums.awk,makeenums.h,maketypes.awk}:
              Remove from CVS, no longer used.
      
              * configure.in: Remove checks for awk.
      f832e348
  5. 26 Feb, 2002 1 commit
  6. 23 Feb, 2002 1 commit
  7. 18 Feb, 2002 1 commit
    • Hans Breuer's avatar
      process WM_PAINT messages for bg_pixmap == GDK_NO_BG, fixes The GIMP's · 911700a3
      Hans Breuer authored
      2002-02-18  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkevents-win32.c : process WM_PAINT messages
      	for bg_pixmap == GDK_NO_BG, fixes The GIMP's canvas
      	rendering glitches on win32
      
      	* gdk/win32/gdkinput-win32.c : use g_object_new to create
      	GdkDevice instead of g_new
      
      	* gtk/gtkpaned.c : make LAST_SIGNAL the last in enum.
      	This avoids to smash totally unrelated static data and
      	resulting random crashes. (as reported on gtk-devel-list,
      	2002-02-10 : testgtk crashes)
      
      	* gtk/gtk.def : add new file selection entry points
      911700a3
  8. 30 Jan, 2002 2 commits
    • Owen Taylor's avatar
      1.3.13 · 4e8a284f
      Owen Taylor authored
      Tue Jan 29 22:52:36 2002  Owen Taylor  <otaylor@redhat.com>
      
              * 1.3.13
      
              * configure.in: Micro version 13, interface, binary
              age 0. Require GLIB-1.3.13, Pango 0.24.
      
              * docs/Makefile.am (EXTRA_DIST): Add widget_geometry.txt,
              sizing-test.txt, tree-column-sizing.txt
      
              * docs/Makefile.am (EXTRA_DIST): Don't distribute
              Changes-1.2.txt, Changes-2.0.txt, README.linux-fb,
              since they are no longer canonical.
      
              * gtk/gtk.def: Convert spaces to tabs in front of
              gtk_widget_set_accel_path in case it matters.
      
              * NEWS: Updated for 1.3.13.
      4e8a284f
    • Owen Taylor's avatar
      Export gtk_widget_set_accel_path(). · eb5f7ace
      Owen Taylor authored
      Tue Jan 29 22:31:07 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwidget.[ch] gtkmenuitem.c gtkitemfactory.c: Export
              gtk_widget_set_accel_path().
      
              * gtk/gtk.def: Add gtk_widget_set_accel_path.
      eb5f7ace
  9. 23 Nov, 2001 1 commit
    • Hans Breuer's avatar
      reflect Pango API change · 36ddd7d9
      Hans Breuer authored
      2001-11-23  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkfont-win32.c (gdk_font_from_description) :
      	reflect Pango API change
      
      	* gtk/gtk.def : updated externals
      
      	* gtk/gtkfixed.c (gtk_fixed_get_has_window) : use
      	g_return_val_if_fail() to avoid 'function must return a value'
      
      	* gtk/gtkrc.c : added spaces to fix small coding style issues
      	* gtk/gtkwidget.c : ... and linebreaks. Also a static for
      	'static correctness'
      
      	* gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
      	because they only can be build on win32 after applying my patch
      36ddd7d9
  10. 18 Nov, 2001 1 commit
    • Hans Breuer's avatar
      make it compile with msvc: !HAVE_UNISTD_H; no label without op, even if · d9eb9ba9
      Hans Breuer authored
      2001-11-18  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
      	no label without op, even if it's a no-op.
      
      	* gtk/gtk.def :
      	* gtk/makefile.msc.in : reflect marshaler split, some clean-up
      
      	* config.h.win32.in : remove definition of HAVE_DIRENT_H
      	* gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
      	required anymore, replace it.
      	* gtk/queryimmodules.c : DIR -> GDir replacement, also
      	getcwd() -> g_get_current_dir()
      
      	* gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
      	Even 'noisy laugh' scolling appears to work, though I still can't
      	claim to have fully understood what it is supposed to do ...
      d9eb9ba9
  11. 17 Nov, 2001 1 commit
  12. 09 Nov, 2001 1 commit
    • Hans Breuer's avatar
      use g_strcasecmp(), some poor platforms don't have strcasecmp() · be3809f0
      Hans Breuer authored
      2001-10-28  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
      	don't have strcasecmp()
      
      	* gtk/gtktextview.c : to fix crashing on e.g. TextView::find need
      	to remove the idle funcs in gtk_text_view_destroy (). To reduce
      	code duplication wrap it in its own function and use it in
      	gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
      
      	* gdk/win32/gdkdrawable-win32.c : implement the finalize
      	method like the X11 version does, allow to set_colormap NULL
      	* gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
      	set_colormap, also some adaption to X11 version :
      	(gdk_window_hide) call _gdk_window_clear_update_area
      	(gdk_window_reparent) call _gdk_window_init_position
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) :
      	call gdk_window_resize() after all hints are set, because the
      	window resizing process (WM_GETMINMAXINFO) takes all of them into
      	account
      
      	* gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
      
      	* gdk/win32/gdkvisual-win32.c : register GdkVisual with
      	sizeof (GdkVisualPrivate)
      
      	* gdk/gdk.def gtk/gtk.def : upated externals
      
      	* gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
      	  gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
      	from now on use make.msc from $(TOP)/glib/build/win32
      
      	* gtk/stock-icons/makefile.msc : add stock_missing_image
      be3809f0
  13. 03 Nov, 2001 1 commit
    • Tor Lillqvist's avatar
      Correct some renamed functions. · bee6f66b
      Tor Lillqvist authored
      2001-11-03  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/gtk.def: Correct some renamed functions.
      
      	* gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
      	Windows to turn build-time paths from a gtk.immodules distributed
      	as part of a binary package into runtime ones in the
      	end-user-chosen installation directory.
      	(gtk_im_module_init): Use it for module path and domain
      	directory.
      bee6f66b
  14. 02 Nov, 2001 1 commit
    • Tor Lillqvist's avatar
      Use -no-undefined on Windows. Look for .dll or .so as appropriate as · 1d15be15
      Tor Lillqvist authored
      2001-11-03  Tor Lillqvist  <tml@iki.fi>
      
      	* modules/input/Makefile.am: Use -no-undefined on Windows. Look
      	for .dll or .so as appropriate as module suffix.
      
      	* gtk-zip.sh.in: Use correct import library names.
      
      	* gtk/gtk.def: Add a couple of missing entry points. (#63585)
      
      2001-11-02  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
      	comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
      	Windows.
      
      2001-10-30  Tor Lillqvist  <tml@iki.fi>
      
      	* Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
      	files. Configure on Win32 (running on Cygwin) thinks symlinks
      	exist, but pkg-config is not necesarily a Cygwin program, and
      	doesn't understand them.
      1d15be15
  15. 29 Oct, 2001 1 commit
    • Tor Lillqvist's avatar
      Updates. · 06b4ef65
      Tor Lillqvist authored
      2001-10-29  Tor Lillqvist  <tml@iki.fi>
      
      	* README.win32: Updates.
      
      	* gtk-zip.sh.in: New file, used to build distribution package for
      	Windows.
      
      	* gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
      	applicable with GDKVAR.
      
      	* gtk/gtk.def: Update.
      
      	* gtk/gtkfilesel.c: Include <winsock.h> (if available) for
      	gethostname().
      
      	* gtk/gtkmain.c
      	* gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
      	entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
      	GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
      	g_win32_get_package_installation_subdirectory() with the actual
      	DLL name saved above. Redefine above directory name macros to call
      	these functions. Remove some ifdefs.
      
      	* gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
      	variable for export on Win32) also to the _vars file.
      
      	Changes for autoconfiscated build on Win32, and addition of Win32
      	backend to the related files:
      
      	* configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
      	when forming DLL name in some files. Set MS_LIB_AVAILABLE is
      	lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
      	PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
      	win32 target, using pangowin32. Don't use the
      	-export-symbols-regex option on Win32, we use .def files to list
      	exported symbols. Check <winsock.h> (for gethostname() in
      	gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
      	prevent premature m4 expansion.
      
      	* acconfig.h: Add HAVE_WINTAB.
      
      	* gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
      	macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
      	MS_LIB_AVAILABLE, build MS import library. Install the import
      	libraries. If HAVE_WINTAB, link with the Wintab library.
      
      	* gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
      	macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
      	file. Install import libraries.
      06b4ef65
  16. 27 Oct, 2001 1 commit
    • Hans Breuer's avatar
      to simplify parsing for exported functions: - made implementation · e2e69403
      Hans Breuer authored
      2001-10-27  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
      	  gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
      	  gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
      	  gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
      	  gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
      	  gtk/gtktreestore.c gtk/gtkvbbox.c :
      	to simplify parsing for exported functions:
      	- made implementation signature static, when the local
      	  prototype already was
      	- put the functions return value on it's own line
      	- added as space between the function name and the
      	  opening bracket
      
      	* gtk/gtk.def : added the remaining exported functions
      e2e69403
  17. 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
  18. 21 Sep, 2001 1 commit
    • Hans Breuer's avatar
      updated externals · 293d7877
      Hans Breuer authored
      2001-09-21  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def :
      	* gtk/gtk.def : updated externals
      
      	* gtk/gtkmain.h : define get_gtk_win32_directoty ()
      	* gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
      	Also handle that Win32 pathes cann't be hard-coded
      
      	* gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
      	module, themes etc directory calculations
      
      	* gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
      	>16 bit right. The size limit within Win9x appears _not_ to be 32767
      	but slightly smaller ...
      
      	* gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid
      	>16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
      
      	* gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
      
      	* gdk/win32/gdkevents-win32.c : some tweaking to get better expose
      	handling. I'm not sure if it is better now, but at least not worse
      
      	* gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
      
      	* gdk/win32/gdkwin32.h : reflect recent API restrictions
      293d7877
  19. 19 Aug, 2001 1 commit
    • Hans Breuer's avatar
      updated externals · f34e996b
      Hans Breuer authored
      2001-08-18  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def : updated externals
      
      	* gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
      	is required to get (at least) visible in entry fields. Some selections
      	are really handled now - even on win32 - but copying via middle
      	mouse button into a different app needs to wait ...
      
      	* gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
      	mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
      
      	* gdk/win32/gdkevents-win32.c : some tweaking to get better expose
      	handling. I'm not sure if it is better now, but at least not worse
      
      	* gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
      	with SetWindowPos () which allows more fine-tuning backing-store wise
      
      	* gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
      	Also changed move/resize to be more like the X version.
      
      	* gtk/gtk.def : updated externals
      f34e996b
  20. 04 Aug, 2001 2 commits
    • Alexander Larsson's avatar
      Add #ifdef HAVE_WINTAB around wintab.h include. · 81cfd5c9
      Alexander Larsson authored
      2001-08-04 Alexander Larsson <alexl@redhat.com>
      
      	* gdk/win32/gdkinput.c:
      	Add #ifdef HAVE_WINTAB around wintab.h include.
      
      	* gtk/gtk.def:
      	Removed marshals that have been moved to glib.
      	Commented out plug and socket. They didn't compile for me
      	on win32.
      81cfd5c9
    • Hans Breuer's avatar
      new file use it · afb6e60f
      Hans Breuer authored
      2001-08-04  Hans Breuer  <hans@breuer.org>
      
      	* gtk/stocks-icons/makefile.msc : new file
      	* gtk/makefile.msc.in : use it
      
      	* gtk/gtkstyle.c : not all platforms do provide M_PI and
      	friends, but luckily there is G_PI
      
      	* gtk/gtk.def : updated
      
      	* gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP
      	windows WS_POPUP, but only those without a parent. This fixes the
      	mis-alignment between the selectable (temp, input only) window and
      	the window text of GtkLabel.
      
      	(gdk_window_show) : respect private->state when actually showing
      	the window.
      
      	(gdk_window_set_transient_for) : Implementation from Wolfgang
      	Sourdeau <wolfgang@contre.com> ported to 2.0 and added some
      	error handling. Should fix #50586.
      
      	* gdk/win32/gdkevents-win32.c : beautify log output
      afb6e60f
  21. 20 Jul, 2001 1 commit
    • Hans Breuer's avatar
      gdk_device_get_history moved to gdk/gdkinput.c like the other backends · 4c5b559e
      Hans Breuer authored
      2001-07-20  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
      	gdk/gdkinput.c like the other backends
      
      	* gdk/win32/gdkinput-win32.h :
      	* gdk/win32/gdkinput.c :
      	* gdk/win32/gdkvisual-win32.c :
      	* gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
      	GdkVisual GObjectification. UNTESTED for pen-devices because
      	I simply have none.
      
      	* gdk/gdk.def :
      	* gtk/gtk.def : updated externals
      
      	* gtk/gtkiconfactory.c :
      	* gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL)
      	before passing &error to functions to avoid strange crashes
      
      	* gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
      
      	* gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
      
      	* gtk/makefile.msc.in : updated
      4c5b559e
  22. 22 Jun, 2001 1 commit
    • Hans Breuer's avatar
      updated externals · f0ee2996
      Hans Breuer authored
      2001-06-22  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def : updated externals
      
      	* gdk/win32/gdkdrawable-win32.c : corrected some casts
      	in GDK_NOTEs
      
      	* gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
      	to translate coordinates to the internal > 16 bit system
      	Try to handle WM_WINDOWPOSCHANGED to get better performance for
      	when moving/resizing
      
      	* gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
      	and gdk_keymap_get_direction (). The latter is untested for
      	the RTL case
      
      	* gtk/gtk.def : updated externals
      
      	* gtk/gtkmain.c : gtk_get_default_language () should reurn the result
      	from pango_language_from_string (), not an already freed pointer
      
      	* gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be
      	binary (-kb) to be useable on windoze
      f0ee2996
  23. 25 May, 2001 1 commit
    • Hans Breuer's avatar
      made fil mode GDK_STIPPLED actually work -> check boxes and radio buttons · b5db5d51
      Hans Breuer authored
      2001-05-25  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
      	work -> check boxes and radio buttons are drawn now, even on win9x.
      	Improved line settings a bit, still no clue how to get really dotted
      	lines on win9x, on NT it's PS_ALTERNATE.
      
      	* gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for
      	GDK_HINT_MIN_SIZE as well
      
      	* gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
      
      	* gtk/gtk.def : updated
      
      	* gtk/gtktreeprivate.h : change column_drop_func to be a function
      	pointer not a function pointer pointer
      
      	* tests/testdnd.c : include <stdlib.h> for putenv prototype
      
      	* tests/testsocket.c : made it compile on win32 again
      
      	* tests/makefile.msc : one more test-app uses prop-editor.obj
      b5db5d51
  24. 06 May, 2001 1 commit
    • Hans Breuer's avatar
      updated exports · 3eb0ecf4
      Hans Breuer authored
      2001-01-06  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def : updated exports
      
      	* gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
      	gdk won't compile anymore
      
      	* gdk/win32/gdkevents-win32.c : initialize ret_val when
      	processing GDK_FILTER functions, initialize event.key->hardware_keycode.
      	Improved gdk_flush () to not only do pending drawing operations
      	but also process all currently pending events. This should make
      	the behaviour more similar to the X11 version.
      
      	* gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
      	option needs to be set even if there is no GDK_GC_BACKGROUND.
      	(gdk_win32_hdc_get) : use predraw_set_background () independent
      	of value_mask. This allows to draw dashed lines leaving the original
      	background intact.
      
      	* gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
      	after processing, because we can't reuse it as the X11 version does.
      
      	* gtk/gtk.def : updated exports
      
      	* gtk/makefile.msc.in : added ATK, removed all test apps. (I
      	would like to get rid of this file again, and use straight
      	makefile.msc again, as the other Gtk+ subdirs do)
      
      	* test/makefile.msc (new file) : build the test apps here
      
      (phase two: something has send me a broken pipe signal :)
      3eb0ecf4
  25. 16 Apr, 2001 1 commit
    • Hans Breuer's avatar
      added all exports required to link PyGtk 0.7.1 · 0e432245
      Hans Breuer authored
      2001-04-16  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def :
      	* gtk/gtk.def : added all exports required to link PyGtk 0.7.1
      
      	* gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
      	we are interested in the functions return value not the function address
      	* gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
      
      	* gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
      0e432245
  26. 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
  27. 31 Mar, 2001 1 commit
    • Hans Breuer's avatar
      disable USE_MMX for msvc build cause the assembler doesn't fit and is out · 6ff97d2e
      Hans Breuer authored
      2001-03-31  Hans Breuer  <hans@breuer.org>
      
      	* config.h.win32.in : disable USE_MMX for msvc build cause
      	the assembler doesn't fit and is out of my scope. Disable
      	USE_GMODULE for msvc build as wel. The right way to share
      	binaries on win32 would be to use libtiff.dll etc. To reduce
      	installation hassles IMO it's better to include all fileformats
      	builtin to gdk-pixbuf
      
      	* gdk-pixbuf/makefile.msc : new file
      
      	* gdk/gdk.def : updated
      
      	* gdk/win32/gdkevents-win32.c : don't erase the background if
      	.no_bg is set. It improves the scrolling (e.g. of testgtk main
      	buttons
      	* gdk/win32/gdkgeometry-win32.c : added comment about the above
      
      	* gdk/win32/gdkwindow-win32.c : added three new functions like
      	the X version. Only one is implemented, because the other two
      	"gdk_window_begin_(resize|move)_drag" got no docs and appear to
      	be default behaviour on win32 anyway ...
      
      	* gtk/gtk.def : updated
      
      	* gtk/makefile.msc.in : update for new files, use glib-genmarshal
      	from where it was built and add an additional rule to automagically
      	build gtkmarshal.[hc]
      
      	* gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
      	before array access for the current entry isn't finished
      
      	* gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
      	use g_return_val_if_fail
      
      	* gtk/testgtk.c (window_controls) : don't use the *wrong* size
      	for the static array, but let the compiler calculate it. It
      	makes me wonder if gcc isn't capable to catch bugs like this ...
      6ff97d2e
  28. 18 Mar, 2001 1 commit
    • Tor Lillqvist's avatar
      New function. print_event_state, print_event): Use preprocessor macro to · 4f81f119
      Tor Lillqvist authored
      2001-03-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (print_window_state): New function.
      	print_event_state, print_event): Use preprocessor macro to make
      	code more compact. Print also GDK_WINDOW_STATE events.
      	(synthesize_crossing_events): Remove the old #ifdeffed-out code.
      
      	* gtk/gtk.def
      	* gtk/makefile.mingw.in: Update.
      
      	* gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
      	to catch also Cygwin.
      4f81f119
  29. 09 Mar, 2001 1 commit
    • Hans Breuer's avatar
      updated · f4cd3854
      Hans Breuer authored
      2001-03-09  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def : updated
      
      	* gdk/win32/gdkevents-win32.c : don't ask input_only windows
      	for their palette
      
      	* gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
      	removing
      
      	* gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
      	removing and implemented Havoc's GdkWindow state functions;
      	stick/unstick only as no-op, cause I don't know how to emulate
      	on win32 ...
      
      	* gtk/gtk.def : updated
      
      	* gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
      
      	* gtk/gtktypeutils.c : #include <string.h>
      
      	* gtk/gtkwindow.h : declare gtk_window_set_decorated ()
      f4cd3854
  30. 25 Feb, 2001 1 commit
  31. 11 Feb, 2001 1 commit
    • Tor Lillqvist's avatar
      New function, copied from X11 version. · e8aacae4
      Tor Lillqvist authored
      2001-02-11  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
      	function, copied from X11 version.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
      	DestroyCursor failures. The reason for the problem (despite the
      	inconsistent messages from GetLastError()) was that
      	DestroyCursor() cannot be called while a cursor is set in a
      	window. Set the new cursor first and then destroy the old one.
      	Thanks to jpe@archaeopteryx.com.
      
      	* gdk/win32/gdkcc-win32.c: Removed.
      
      	* gdk/gdk.def
      	* gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
      
      	* gtk/gtk.def
      	* gtk/makefile.mingw.in: Updates.
      e8aacae4
  32. 17 Jan, 2001 1 commit
    • Tor Lillqvist's avatar
      gtk/gtkmain.c Use the new · 576ef7f2
      Tor Lillqvist authored
      2001-01-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/gtkmain.c
      	* gtk/gtkrc.c: (Win32) Use the new
      	g_win32_get_package_installation_(sub)directory() functions.
      
      	* config.h.win32.in: New file.
      
      	* config.h.win32: Removed.
      
      	* configure.in: Output config.h.win32.
      
      	* Makefile.am: Add it to EXTRA_DIST.
      
      	* gtk/gtk.def: Update.
      
      2001-01-16  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
      	Eliminate redraws when input-only windows are shown or
      	hidden. Thanks to jpe@archaeopteryx.com.
      
      2001-01-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk-pixbuf-io.c (get_libdir): (Win32) Use the new
      	g_win32_get_package_installation_subdirectory() function.
      	(gtk_win32_get_installation_directory): Remove this then.
      576ef7f2
  33. 15 Jan, 2001 1 commit
    • Tor Lillqvist's avatar
      Include <stdlib.h> for getenv(). · 18e95c4e
      Tor Lillqvist authored
      2001-01-16  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
      	GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
      
      	* gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
      	to g_{locale,filename}_{to,from}_utf8 to match current API.
      
      	* gtk/makefile.msc.in (gtk_OBJECTS)
      	* gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
      
      	* gtk/gtk.def: Update.
      18e95c4e
  34. 07 Jan, 2001 1 commit
    • Tor Lillqvist's avatar
      Adapt calls to g_{locale,filename}_{to,from}_utf8 to match current API. · c921abb8
      Tor Lillqvist authored
      2001-01-07  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
      	gdk_window_new): Adapt  calls to g_{locale,filename}_{to,from}_utf8
      	to match current API.
      
      	* gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
      	environment variable is set, don't call g_error when on a
      	palettized (PseudoColor) display. Some people want to use GTK+
      	in 256-colour mode even though works only partially.
      
      	* gdk/gdk.def
      	* gtk/gtk.def
      	* gtk/makefile.mingw.in: Update.
      c921abb8
  35. 30 Dec, 2000 1 commit
    • Tor Lillqvist's avatar
      New function, as in the X11 backend. (gdk_window_new, · ee4c69b6
      Tor Lillqvist authored
      2000-12-30  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkwindow-win32.c
      	(gdk_window_impl_win32_get_visible_region): New function, as in
      	the X11 backend.
      	(gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
      	instead of duplicating the same code here.
      
      	* gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
      	GDK_COLORMAP macro.
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
      	destroy function.
      	(gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
      	access that.
      
      	* gtk/gtk.def: Update.
      
      	* gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
      
      2000-12-26  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
      	we are on a palettized display ("PseudoColor" in X11), as the code
      	for that doesn't work anyway, and never has.
      
      2000-12-30  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk_pixbuf.def: Update.
      ee4c69b6
  36. 14 Dec, 2000 1 commit
    • Tor Lillqvist's avatar
      Add gdkkeys. · 2e70f892
      Tor Lillqvist authored
      2000-12-15  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
      
      	* gtk/gtk.def
      	* gdk/gdk.def: Update.
      
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkkeys-win32.c: New file. Move some functions from
      	gdkmain-win32.c here.
      
      	* gdk/win32/makefile.mingw.in (all): No need to make
      	gdk-win32res.o here, the makefile one step up will call us to make
      	it.
      
      	* gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
      	gdkkeys-win32.
      
      	* gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
      
      	* gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
      	call to g_source_add().
      
      	* gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
      	leak. Thanks to Andreas Kemnade.
      2e70f892
  37. 30 Nov, 2000 1 commit
    • Tor Lillqvist's avatar
      Changes by Hans Breuer: · 68ae419b
      Tor Lillqvist authored
      2000-11-30  Tor Lillqvist  <tml@iki.fi>
      
      	Changes by Hans Breuer:
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
      	Dont't use negative width and height as max_hints. This fixes
      	Owen's recent testgtk changes for win32.
      
      	* gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
      	gdk_win32_hdc_release): These are exported and may be called with
      	other drawable types than our GdkDrawableImplWin32 (?).
      
      	* gdk/gdkwindow.c: Backing store appears to work on Windows now,
      	so always #define USE_BACKING_STORE.
      
      	* gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
      	of printf for debugging output.
      
      	* gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
      
      	* gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
      
      	* gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
      	declaration.
      
      	* gtk/gtktexttypes.h: Ditto.
      
      	* gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
      	(GDK_VoidSymbol) also if in case of arg check failure.
      
      	* gtk/gtkimcontextsimple.c
      	(gtk_im_context_simple_get_preedit_string): Don't assign cursor
      	position to the pointer, but to the variable it points to.
      
      	* gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
      
      	* gtk/gtk.def: Updates.
      68ae419b
  38. 17 Nov, 2000 1 commit
    • Tor Lillqvist's avatar
      Update. · 99b14ff2
      Tor Lillqvist authored
      2000-11-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/gtk.def: Update.
      
      	* gtk/gtktexttypes.h: Mark variables for export/import from DLL.
      99b14ff2