Commit Graph

3087 Commits

Author SHA1 Message Date
Tor Lillqvist
116a66a769 Remove surrogate-dimm.h.
2001-11-09  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/Makefile.am (libgdk_win32_la_SOURCES): Remove
	surrogate-dimm.h.
2001-11-08 23:26:09 +00:00
Tor Lillqvist
afed946500 Mention multi-thread problems.
2001-11-09  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Mention multi-thread problems.

	* gtk/gtkrc.ja: Add MS Gothic.
2001-11-08 23:10:13 +00:00
Tor Lillqvist
320761ec35 Add headers. Add section about ActiveIMM.
2001-11-08  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Add headers. Add section about ActiveIMM.

	* configure.in: Add --with-ie55 flag to specify the location of
	the "IE55 libs and headers" package downloadable from Microsoft,
	which contains, among other things, the Active IMM header dimm.h
	and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
	Require GLib 1.3.10.

	* acconfig.h: Add HAVE_DIMM_H.

	* config.h.win32: Add comment regarding dimm.h.

	* gdk/Makefile.am
	* gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.

	* gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM stuff.

	* gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
	available).

	* gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
	for uuid.lib. (Does it really have to be this hard to use an
	existing library with libtool? Probably I am missing something.)
2001-11-08 19:51:09 +00:00
Tor Lillqvist
cb25493118 Separate runtime and developer packages.
2001-11-06  Tor Lillqvist  <tml@iki.fi>

	* gtk+-zip.sh: Separate runtime and developer packages.

	The following seems to fix Bug#60620:

	* gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Add
	owner thread id.

	* gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): Instead of
	calling sending WM_ERASEBKGND to the window, call the window
	procedure directly. Clean out the #if 0 cruft.

	* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable): If the
	window is owned by another thread, don't call UpdateWindow(), but
	post WM_PAINT to the thread.
2001-11-05 23:31:19 +00:00
Tor Lillqvist
dc8487995a Plug region leak: Delete updateRgn after use. (Bug #56944)
2001-11-04  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable): Plug
	region leak: Delete updateRgn after use. (Bug #56944)
2001-11-04 22:00:14 +00:00
Tor Lillqvist
7d9357860f gtk+-1.3-win32-production.pc.in Should not use @prefix@ elsewhere than in
2001-10-30  Tor Lillqvist  <tml@iki.fi>

	* gtk+-1.3-win32-production.pc.in
	* gdk-1.3-win32-production.pc.in: Should not use @prefix@ elsewhere
	than in definition of the 'prefix' variable. @exec_prefix@,
	@libdir@ and @includedir@ are defined by configure to include
	'${prefix}' (literally like that), so everything will work as
	if by magic.
2001-10-30 00:01:32 +00:00
Tor Lillqvist
f772609e37 This file was supposed to be added already. 2001-10-28 22:32:03 +00:00
Tor Lillqvist
772d1338cb Use correct path to platform-dependent includes: ${libdir}/gtk+/include.
2001-10-28  Tor Lillqvist  <tml@iki.fi>

	* gdk-1.3-win32-production.pc.in (Cflags): Use correct
	path to platform-dependent includes: ${libdir}/gtk+/include.
2001-10-28 22:19:53 +00:00
Tor Lillqvist
df61f63589 *** empty log message *** 2001-10-28 02:11:08 +00:00
Tor Lillqvist
518317f6ff Exclude docs, quick hack as there is no texi2html on Cygwin (?).
2001-10-28  Tor Lillqvist  <tml@iki.fi>

	* Makefile.am (SUBDIRS): Exclude docs, quick hack as there is no
	texi2html on Cygwin (?).

	* gdk/win32/Makefile.am (libgdk_win32_la_SOURCES): There is no
	gdkdrawable-win32.h, gdkinput-win32.h, gdkpixmap-win32.h or
	gdkwindow-win32.h.

	* gdk/win32/Makefile.am
	* gdk/win32/rc/Makefile.am: (files): New target.

	* gdk/win32/rc/Makefile.am (EXTRA_DIST): There is no gdk.rc.in any
	longer.

	* README.win32: Updates.

	* gtk+-zip.sh: New file.
2001-10-28 02:10:53 +00:00
Tor Lillqvist
c70bff30a8 Rename makefile.cygwin to makefile.mingw.
2001-10-28  Tor Lillqvist  <tml@iki.fi>

	* makefile.mingw: Rename makefile.cygwin to makefile.mingw.
2001-10-28 01:14:47 +00:00
Tor Lillqvist
c4721d19d3 New file.
2001-10-28  Tor Lillqvist  <tml@iki.fi>

	* gtk+-zip.sh: New file.
2001-10-28 00:54:12 +00:00
Tor Lillqvist
50e2e00899 Check also $CC for -fnative-struct before adding it, to avoid (harmless)
2001-10-28  Tor Lillqvist  <tml@iki.fi>

	* configure.in: Check also $CC for -fnative-struct before adding
	it, to avoid (harmless) duplication.

	* gdk/gdkconfig.h.win32: Use configure-generated version.

	* gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Recognize
	also the tcvn and tis620.2533 registries as indicating Vietnamese
	and Thai charsets respectively. Also recognize "windows" or
	"microsoft" registry with "vietnamese" or "thai" encoding.

	* gtk/gtkrc.zh_TW.Big5: Delete, no need for encoding as part of
	the locale name on Win32, as GTK uses Unicode.

	* gtk/gtkrc.zh_TW: Add this instead.

	* gtk/Makefile.am: Corresponding change.

	* gtk/Makefile.am (install-data-local): Cannot use symbolic links
	for gtkrc files. The non-cygwin gtk dll doesn't understand Cygwin
	symbolic links.

	* gtk/gtkrc.zh_CN: Look for the SimHei font. Otherwise we get a
	match in Tahoma or somesuch, which claims to support the
	GB2312_CHARSET, even if it doesn't.
2001-10-28 00:52:16 +00:00
Tor Lillqvist
b350c23671 Use just @prefix@. (Cflags): Add libdir/gtk+.
2001-10-25  Tor Lillqvist  <tml@iki.fi>

	* gdk-1.3-win32-production.pc.in: Use just @prefix@.
	(Cflags): Add libdir/gtk+.

	* gtk+-1.3-win32-production.pc.in: Use just @prefix@.
2001-10-24 23:19:31 +00:00
Tor Lillqvist
9b1bbdfc4d Typo. 2001-10-24 23:02:27 +00:00
Tor Lillqvist
18fe65ee55 Add glib-2.0
2001-10-25  Tor Lillqvist  <tml@iki.fi>

	* gdk-1.3-win32-production.pc.in (Requires): Add glib-2.0

	* gtk+-1.3-win32-production.pc (Requires): Add gmodule-2.0.

	* configure.in: Define GDK_USE_UTF8_MBS on Win32.
2001-10-24 23:01:41 +00:00
Tor Lillqvist
bc893e2130 Use g_strcasecmp.
2001-10-24  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkcolor-win32.c (compare_xcolor_entries): Use
	g_strcasecmp.

	* {gdk,gtk}/makefile.{mingw,msc}.in
	* gdk/win32/makefile.msc: Use the stuff from
	build/win32. Fix typos and errors.

	* config.h.win32: Define HAVE_DIRENT_H as mingw has it, and with
	MSVC we use the same implementation, in build/win32/dirent.
2001-10-23 22:47:28 +00:00
Tor Lillqvist
f7e1740411 gtk/gtkprivate.h gtk/gtkmain.c As G_HARDCODED_PATH_WRAPPER didn't make it
2001-10-23  Tor Lillqvist  <tml@iki.fi>

	* gtk/gtkprivate.h
	* gtk/gtkmain.c
	* gtk/gtkrc.c: As G_HARDCODED_PATH_WRAPPER didn't make it into GLib
	after all, write out its expansion when defining the _gtk_get_*
	functions.
2001-10-23 18:40:57 +00:00
Tor Lillqvist
a2fc680bff Remove.
2001-10-23  Tor Lillqvist  <tml@iki.fi>

	* gtk-config.in: Remove.

	* gdk-1.3-win32-production.pc.in
	* gtk+-1.3-win32-production.pc.in: New files, use pkg-config.

	* gdk/win32/libwntab32x.la: New file, handwritten libtool archive
	for the Wintab library when available.

	* Makefile.am: Install the pkgconfig files.

	* config.h.win32
	* acconfig.h: Add HAVE_WINTAB_H.

	* acinclude.m4: Copy from HEAD.

	* configure.in: Enable Win32 (mingw) builds. Test for Wintab API
	(header and library). Changes to be more like the HEAD version.

	* ltconfig
	* ltmain.sh: Remove, not needed by libtool 1.4c, which I use for this.

	* gdk/Makefile.am
	* gdk/win32/Makefile.am
	* gtk/Makefile.am: Changes for Win32 (mingw) builds. Install MS
	and mingw import libraries.

	* gtk/Makefile.am: Don't pass -release to libtool in
	gtk/Makefile.am. This keeps DLL name simpler.

	* {gdk,gtk}/makefile.{mingw,msc}: Remove.

	* {gdk,gtk}/makefile.{mingw,msc}.in: Add these instead. Generate
	same name DLLs as libtool does (libgdk-0.dll and
	libgtk-0.dll). Import libraries are just libgdk.la and
	libgtk.la.

	* gdk/win32/*.c: Lint cleanups.

	* gtk/gtkmain.c
	* gtk/gtkrc.c: Use the G_WIN32_DLLMAIN_FOR_DLL_NAME and
	G_HARDCODED_PATH_WRAPPER macros to get DLL name at runtime, and
	determine installation subdirectories.
2001-10-22 23:27:22 +00:00
Tor Lillqvist
65ee13db63 gdk/makefile.{mingw,msc} gdk/win32/makefile.{mingw,msc} Update for current
2001-09-28  Tor Lillqvist  <tml@iki.fi>

	* gdk/makefile.{mingw,msc}
	* gdk/win32/makefile.{mingw,msc}
	* gtk/makefile.mingw: Update for current GLib and
	build/win32. Remove pthreads reference (and don't try to build
	testthreads.exe).

	* gdk/win32/gdkcolor-win32.c
	* gdk/win32/gdkfont-win32.c
	* gdk/win32/gdkgc-win32.c
	* gdk/win32/gdkevents-win32.c
	* gdk/win32/gdkinput-win32.c
	* gdk/win32/gdkmain-win32.c
	* gdk/win32/gdkpixmap-win32.c: Remove some unused variables to
	silence compilers.

	* gdk/win32/gdkevents-win32.c (print_event_mask): New debug print
	function.

	* gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Remove call to
	deprecated g_scanner_stat_mode().
2001-09-27 23:01:54 +00:00
Tor Lillqvist
702588a970 Remove the rc/*.cur files that have been removed; add the new xcursors.h
2001-03-08  Tor Lillqvist  <tml@iki.fi>

	* gdk\win32\Makefile.am (EXTRA_DIST): Remove the rc/*.cur files
	that have been removed; add the new xcursors.h and bdfcursor.c
	files.
2001-03-08 17:58:48 +00:00
Hans Breuer
8f72187e2d small portability fixed for msvc/win32 2001-02-25 16:23:15 +00:00
Tor Lillqvist
323603519f Set grabbing cursor here. When mouse is captured, no WM_SETCURSOR messages
2001-02-25  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set grabbing
	cursor here. When mouse is captured, no WM_SETCURSOR messages are
	sent. Copy the cursor before setting.
	(print_event): Print out more details of crossing and focus change
	events.
	(synthesize_enter_or_leave_event, etc): Also pass the
	GdkCrossingMode. Set focus field correctly.
	(synthesize_leave_app_events): New function, to generate the
	GDK_NOTIFY_NONLINEAR and GDK_NOTIFY_NONLINEAR_VIRTUAL leave events
	when the pointer has moved to another app.
	(gdk_event_translate): Use it for WM_NCMOUSEMOVE.

	Handle WM_CAPTURECHANGED messages, for which we now generate
	GDK_CROSSING_UNGRAB leave notifications, and destroy the grabbing
	cursor.

	At first I thought of handling WM_ACTIVATE messages about
	deactivated windows to generate (normal) leave notifications, but
	that is wrong (ifdeffed out).

	Keep track of focus window.

	* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable): Correct
	function name in GDK_NOTE call.

	* gtk/gtkmenushell.c (gtk_menu_shell_leave_notify): If we think we
	have the pointer grabbed, but get a GDK_CROSSING_UNGRAB leave
	notification, deactivate. This happens on Windows when switching
	apps. This now fixes menus being left active when switching apps.

	By jpe@archaeopteryx.com:

	* gtk/makefile.msc: Get gmodule library from right place.

	* gtk/gtktable.c (gtk_table_attach): Backported fix from gtk+
	1.2.something.
2001-02-25 02:25:19 +00:00
Tor Lillqvist
2ea0188760 New file. A program that generates xcursors.h. Thanks to Stefan
2001-02-23  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/bdfcursor.c: New file. A program that generates
	xcursors.h. Thanks to Stefan Ondrejicka.

	* gdk/win32/xcursors.h: New file, contains the X cursor font in a
	compact format.

	* gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
	function, uses xcursors.h.
	(gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
	cursor from inline data instead of using LoadCursor() to generate
	it from a resource.

	* gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
	event, must check the Windows message for mouse button state, as
	the GDK event state might not have been built if it is
	undelivered. Remove one goto.

	* gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
	SetCursor() if the current cursor as returned by GetCursor() is
	the window's previous cursor. The ChildWindowFromPoint() test
	apparently didn't work correctly.

	* gdk/win32/rc/*.cur: Remove.

	* gdk/win32/rc/gdk.rc: Remove cursors.
2001-02-23 03:14:21 +00:00
Tor Lillqvist
4a430f2f56 gdk/makefile.cygwin gdk/win32/makefile.cygwin Remove, i.e. rename to:
2001-02-23  Tor Lillqvist  <tml@iki.fi>

	* gdk/makefile.cygwin
	* gdk/win32/makefile.cygwin
	* gtk/makefile.cygwin: Remove, i.e. rename to:

	* gdk/makefile.mingw
	* gdk/win32/makefile.mingw
	* gtk/makefile.mingw: Renamed from makefile.cygwin.

	* gtk/testdnd.c
	* gtk/testgtk.c
	* gtk/testinput.c
	* gtk/testrgb.c
	* gtk/testselection.c
	* gtk/simple.c: Undefine GTK_COMPILATION (from the makefile).
2001-02-23 01:02:37 +00:00
Tor Lillqvist
da07edf39a gdk/makefile.cygwin gdk/win32/makefile.cygwin Remove, i.e. rename to:
2001-02-23  Tor Lillqvist  <tml@iki.fi>

	* gdk/makefile.cygwin
	* gdk/win32/makefile.cygwin
	* gtk/makefile.cygwin: Remove, i.e. rename to:

	* gdk/makefile.mingw
	* gdk/win32/makefile.mingw
	* gtk/makefile.mingw: Renamed from makefile.cygwin.


	* gdk/testgdk.c: New file (from HEAD). Maybe some day GDK will
	pass all tests on Win32.

	* gtk/testdnd.c
	* gtk/testgtk.c
	* gtk/testinput.c
	* gtk/testrgb.c
	* gtk/testselection.c
	* gtk/simple.c: Undefine GTK_COMPILATION (from the makefile).
2001-02-23 01:00:18 +00:00
Tor Lillqvist
6a3b65afa7 gdk/gdk.def Add gdk_ic_attr_{destroy,new}.
2001-02-23  Tor Lillqvist  <tml@iki.fi>

	* gdk/gdk.def
	* gdk/win32/gdkim-win32.c: Add gdk_ic_attr_{destroy,new}.

	* gdk/win32/gdkimage-win32.c: Cache pens and HDCs. Many new
	functions.
2001-02-23 00:13:59 +00:00
Tor Lillqvist
73473c5998 From now on, changes to the Win32 production branch go into CVS right
2001-02-23  Tor Lillqvist  <tml@iki.fi>

	From now on, changes to the Win32 production branch go into CVS
	right away. This is the last batch of changes accumulated for some
	time (since the 2000-12-26 snapshot).

	* README.win32: Update.

	* gdk/gdk.def: Add gdk_ic_attr_{destroy,new}.

	* gdk/gdkdraw.c (gdk_drawable_unref): Remove silly leftover
	debugging printout.

	* gdk/win32/gdkfont-win32.c
	* gtk/gtkfilesel.c
	* gtk/gtkcalendat.c: Adapt to new API for
	g_{filename,locale}_{from,to}_utf8.

	* gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
	implementaion that more closely mimics the events that an X server
	would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
	GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
	with nested preview widgets, for instance, more responsive when
	you move the mouse quickly into them.
	(gdk_event_translate): Set send_event to the value of
	InSendMessage (). This doesn't really mean the same as X11's
	send_event flag, but is close enough, says jpe@archaeopteryx.com

	* gdk/win32/gdkvisual-win32.c (gdk_visual_init): If the
	environment variable GDK_WIN32_ENABLE_BROKEN_PSEUDOCOLOR_VISUAL is
	set, do attempt to run on a palettized display.

	* gtk/gtkmain.c (gtk_init_check): Use
	g_win32_get_package_installation_subdirectory().

	* gtk/gtkrc.c (get_gtk_sysconf_directory): Remove
	(get_themes_directory): Use
	g_win32_get_package_installation_subdirectory().
	(gtk_rc_add_initial_default_files): Use
	g_win32_get_package_installation_directory().

	Optimisations by jpe@archaeopteryx.com:

	* gdk/win32/gdkevents-win32.c: Implement better mouse
	capturing. Do use SetCapture().
	(find_window_for_pointer_event): New function.
	(gdk_event_translate): Use it when handling mouse events.

	* gdk/win32/gdkevents-win32.c (gdk_win32_erase_background): New
	function, break out code from gdk_event_translate.

	* gdk/win32/gdkdrawable-win32.c (struct gdk_draw_text_arg): Add a
	total_len field.
	(gdk_draw_text_handler): Don't call SelectObject() unless the font
	would change. Don't call the slow GetTextExtentPoint32W() unless
	necessary (when printing string in parts).
	(gdk_win32_draw_text): Initialise total_len.
	(gdk_win32_draw_drawable): Use new GC functions.
	(gdk_win32_draw_segments): Use PatBlt() instead of LineTo() when
	possible (solid single-pixel pen, R2_COPYPEN rop). It is claimed
	to be much faster.

	* gdk/win32/gdkfont-win32.c: Don't unnecessarily select and
	unselect fonts in the global DC.
	(gdk_text_width): Shortcut for strings of length one.

	* gdk/win32/gdkgc-win32.c
	* gdk/win32/gdkpixmap-win32.c: Cache pens and HDCs. Many new
	functions.

	* gdk/win32/gdkwindow-win32.c: Eliminate redraws when input-only
	windows are shown and hidden. Don't call SetForegroundWindow() on
	non-toplevel windows.

	* gtk/gtklabel.c (gtk_label_finalize_lines): On Win32, draw
	underlines at the font's descent - 1 under the baseline.
2001-02-23 00:00:47 +00:00
Tor Lillqvist
238ffeda07 Changes from the gtk+-src-20001226.zip snapshot:
2000-12-26  Tor Lillqvist  <tml@iki.fi>

	Changes from the gtk+-src-20001226.zip snapshot:

	* config.h.win32: Remove alloca stuff, handled in GLib.

	* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_rectangle): Remove
	some old ifdeffed-out code. Add a start on an implementation of
	GDK_STIPPLED rectangles (incomplete, probably bogus, ifdeffed
	out).
	(gdk_win32_draw_polygon): Remove unused variable and dead code.
	(gdk_win32_draw_segments): Ditto.
	(gdk_win32_id): Remove.
	(gdk_win32_print_dc_attributes): New debugging function.

	* gdk/win32/gdkevents-win32.c: Adapt to new GLib main loop API.
	Add support for the alternative wheel mouse protocol
	(MSH_MOUSEWHEEL messages). Fix y coordinate bug in WM_MOUSEWHEEL
	handler.

	* gdk/win32/gdkfont-win32.c
	* gtk/gtkfilesel.c: Adapt to new API for g_filename_{from,to}_utf8.

	* gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
	Enhance debuggint output.
	(BitmapToRegion): Fix memory leak. Thanks to Andreas Kemnade.
	(gdk_win32_cap_style_to_string,gdk_win32_fill_style_to_string,
	gdk_win32_function_to_string,gdk_win32_join_style_to_string,
	gdk_win32_line_style_to_string): New debugging functions.

	* gdk/win32/gdkprivate-win32.h: Declare above new functions.

	* gdk/win32/gdkvisual-win32.c (gdk_visual_init): Bail out if
	palettized display mode. It has never worked correctly anyway.

	* gtk/gtk.def: Updates.

	* gtk/gtkcalendar.c (gtk_calendar_init): Convert day and month
	names from current codepage to UTF-8.
2001-02-22 22:25:58 +00:00
Tor Lillqvist
5d0b1d3690 Changes from the gtk+-src-20001023.zip snapshot:
2000-10-23  Tor Lillqvist  <tml@iki.fi>

	Changes from the gtk+-src-20001023.zip snapshot:

	* gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
	also the case fg==white and bg==black (but still not randomly
	coloured cursors). Thanks to Wolfgang Sourdeau.

	* gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): Use
	SendMessage(), not SendNotifyMessage().

	* gtk/gtk.def: Updates.
2001-02-22 21:58:23 +00:00
Tor Lillqvist
b6e03db310 Changes from the gtk+-src-20001007.zip snapshot:
2000-10-07  Tor Lillqvist  <tml@iki.fi>

	Changes from the gtk+-src-20001007.zip snapshot:

	* README.win32: Update.

	* gdk\win32\gdkevents-win32.c: gdk_event_prepare() and
	gdk_event_check() functions need an extra user_data parameter.
	(inner_window_proc,gdk_WindowProc): Better debugging output.
	(gdk_events_init): Don't register the g-pipe-readable message any
	longer.
	(gdk_event_translate): Handle more VK_OEM virtual keycodes. Bugfixes
	for non-US keyboards.
	(gdk_events_queue): Don't check for g_pipe_readable message.

	* gdk\win32\gdkfont-win32.c (gdk_font_load_internal): Try to use
	only TrueType fonts, and antialiasing.

	* gdk\win32\gdkprivate-win32.h (VK_OEM_COMMA..VK_OEM_8): Define
	here in case missing from headers.

	* gdk\win32\gdkwindow-win32.c (gdk_window_clear_area): Some
	testing coee, but ifdeffed out. Use SendNotifyMessage().
	(gdk_window_set_cursor): Message if DestroyCursor() fails.

	* gtk\makefile.cygwin
	* gtk\gtk.def: Updates.

	* gtk\gtkfilesel.c: Handle file names that are in the system
	codepage when passed to/from the C library, converting back and
	forth to the UTF-8 that GTK+ uses as necessary.

	* gtk\gtkmain.h
	* gtk\gtkmain.c (gtk_init_abi_check,gtk_init_check_abi_check):
	(Win32) New functions. Calling gtk_init() and gtk_init_check()
	from user code #defined to actually go to these wrappers that
	first check if the compiler's idea of sizeof(GtkWindow) is the
	same as when gtk was compiled. This catches not using gcc's
	-fnative-struct switch.
2001-02-22 21:49:17 +00:00
Tor Lillqvist
bc1b63a981 Change from the 2000-10-07 snapshot:
2000-10-07  Tor Lillqvist  <tml@iki.fi>

	Change from the 2000-10-07 snapshot:

	* makefile.cygwin: Updates for the Chinese locales.
2001-02-22 21:39:35 +00:00
Tor Lillqvist
33a2d9daea Use iconv instead of native2ascii.
2001-02-22  Tor Lillqvist  <tml@iki.fi>

	* makefile.cygwin: Use iconv instead of native2ascii.
2001-02-22 21:06:15 +00:00
Tor Lillqvist
065f473674 Started a CVS branch for the GTK+ in production use on Windows. First the
2001-02-22  Tor Lillqvist  <tml@iki.fi>

	Started a CVS branch for the GTK+ in production use on
	Windows. First the changes up to the gtk+-src-20000722.zip
	snapshot:

2000-07-22  Tor Lillqvist  <tml@iki.fi>

	* gdk/gdkdraw.c (gdk_drawable_unref): One silly line of debugging
	output.

	* gdk/gdkfont.h: Declare new functions gdk_font_list_new(),
	gdk_font_list_free(), gdk_font_full_name_get,
	gdk_font_full_name_free(). Temporary hack only in Win32 branch.

	* gdk/gdk.def
	* gtk/gtk.def: Updates.

	* gdk/makefile.cygwin
	* gdk/win32/makefile.cygwin
	* gtk/makefile.cygwin: Use factored-out common stuff from the
	build module.

	* gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Typo.
	(gdk_win32_color_to_string): Rename, and compile only if
	G_ENABLE_DEBUG.

	* gdk/win32/gdkcursor-win32.c: Rename a few cursors in a desperate
	attempt to fix some strange bug (?).
	(gdk_cursor_new): Use LoadImage() instead of LoadCursor().
	(_gdk_cursor_destroy): Use DestroyCursor() instead of
	DestroyIcon().

	* gdk/win32/gdkdnd-win32.c: Remove unneeded IID definitions.
	(resolve_link): Compile also with gcc.

	* gdk/win32/gdkdrawable-win32.c (gdk_win32_drawable_destroy): Add
	g_assert_not_reached(), should not be called.
	(gdk_win32_draw_arc): Don't try to draw too narrow arcs.
	(gdk_win32_draw_segments,gdk_win32_draw_lines,gdk_win32_draw_lines):
	Draw end pixel separately also for zero width pens.
	(gdk_win32_id): New function.

	* gdk/win32/gdkevents-win32.c: More debugging output enabled. Many
	changes, for instance:
	(gdk_WindowProc): Use a GdkEventPrivate variable, not GdkEvent.
	(event_mask_string,decode_key_lparam,gdk_win32_message_name): New
	debugging functions.
	(build_key_event_state): Ifdefify out never reached code.
	(build_keypress_event): Set GDK_CONTROL_MASK when appropriate.
	(gdk_event_translate): Fix to enable input of chars with
	Alt+numpad digits.

	* gdk/win32/gdkfont-win32.c: Fix Unicode subrange table to match
	reality.
	(check_unicode_subranges): Guess more subranges in some cases.

	* gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use 0 and 1 as
	default fg and bg, not black and white. Use PS_ENDCAP_FLAT and
	PS_JOIN_MITER pen style.
	(predraw_set_foreground): Don't use zero width pens.
	(gdk_gc_predraw): Better check whether to call SetROP2().
	(gdk_win32_hdc_get,gdk_win32_hdc_release): New functions, wrappers
	for gdk_gc_predraw() and gdk_gc_postdraw().

	* gdk/win32/gdkim-win32.c (gdk_set_locale): Use g_win32_getlocale().

	* gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's
	depth, not the bitspixel value.

	* gdk/win32/gdkprivate-win32.h (STRICT): Guard against
	redefinition.
	(WM_MOUSEWHEEL..WM_AFXLAST): Define in case headers don't.
	(gdk_win32_color_to_string,gdk_win32_message_name): Declare.

	* gdk/win32/gdkproperty-win32.c
	* gdk/win32/gdkselection-win32.c: Use DND debugging output
	selector, not MISC.

	* gdk/win32/gdkvisual-win32.c (gdk_visual_lookup,gdkx_visual_get):
	Remove these unneeded functions.

	* gdk/win32/gdkwin32.h: Wrap in extern "C" for C++. Update with
	new function prototypes.

	* gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): More
	debugging output. Destroy window's cursor here.
	(RegisterGdkClass): Use gdk_ProgInstance instead of calling
	GetModuleHandle(NULL).
	(gdk_window_internal_destroy): Set destroyed flag before calling
	DestroyWindow(), as that will call the window procedure, which
	will call the GDK event generating mechanism. If I remember
	correctly, this fixed a serious resource leak.
	(gdk_window_set_cursor): Use NULL cursor if none is wanted, not an
	arrow. Destroy old cursor. Copy the cursor before calling
	SetCursor(), as it is normal to destroy the GdkCursor while it is
	set in a window.
	(gdk_propagate_shapes): Fix = vs. == bug.

	* gdk/win32/makefile.msc (gdk.res): Define BUILDNUMBER as zero.

	* gdk/win32/rc/gdk.rc: Rename the same two cursors here as in
	gdkcursor-win32.c.

	* gtk/gtkaccellabel.c (gtk_accel_label_class_init): Set
	latin1_to_char FALSE on Win32 where we use UTF-8.

	* gtk/gtkclist.c (gtk_clist_motion): Set x and y in all cases.

	* gtk/gtklist.c (gtk_list_motion_notify): Ditto.

	* gtk/gtkdnd.c (gtk_drag_set_default_icon): Unref correct object.

	* gtk/gtkfontsel.c: Rewritten to use the temporary new GDK font
	functions. Only in this branch.

	* gtk/gtkhscrollbar.c (gtk_hscrollbar_calc_slider_size): Strange
	hack to fix some bug, don't remember why, don't know if actually
	needed any longer: hide and show slider.

	* gtk/gtkvscrollbar.c (gtk_vscrollbar_calc_slider_size): Ditto

	* gtk/gtkrc.{el,eo,he,hy,ru,tr,uk}: Specify font size in
	decipoints instead of pixels.

	* gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32) Get GTK+
	installation directory from Windows Registry.

	* gtk/gtksignal.c: Export a couple of variables from DLL.
2001-02-22 20:47:41 +00:00
Tor Lillqvist
5c05a787fb Test commit to check that it goes into a new branch. 2001-02-22 18:52:07 +00:00
Tor Lillqvist
2e70f892cc Add gdkkeys.
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.
2000-12-14 23:14:18 +00:00
Tor Lillqvist
ea099b2402 Simplify, now that the .po files are already in UTF-8.
2000-12-14  Tor Lillqvist  <tml@iki.fi>

	* makefile.mingw: Simplify, now that the .po files are already in
	UTF-8.
2000-12-14 21:15:05 +00:00
Kenneth Christiansen
817018aeeb Translations from keld
achtung/po/da.po balsa/po/da.po bonobo/po/da.po
bug-buddy/po/da.po control-center-HEAD/po/da.po ee/po/da.po
evolution/po/da.po galeon/po/da.po gconf/po/da.po
gdm2/po/da.po gernel/po/da.po gfloppy/po/da.po gimp/po/da.po
gimp/po-plug-ins/da.po glade/po/da.po gnome-chess/po/da.po
gnome-core/po/da.po gnome-db/po/da.po gnome-games/po/da.po
gnome-iconedit/po/da.po gnome-libs-HEAD/po/da.po
gnome-libs/po/da.po gnome-lokkit/po/da.po gnome-pilot/po/da.po
gnome-utils/po/da.po gnome-vfs/po/da.po gnopo/po/da.po
gnorpm/po/da.po gnumeric/po/da.po gtk+/po/da.po
guppi3/po/da.po helix-setup-tools/po/da.po libgtop/po/da.po
magicdev/po/da.po mc/po/da.po memprof/po/da.po pan/po/da.po
rp3/po/da.po xpdf/po/da.po
2000-12-14 14:52:14 +00:00
Havoc Pennington
be59b202e8 Remove double _ in front of some functions
2000-12-13  Havoc Pennington  <hp@pobox.com>

* gtk/gtktextbtree.h: Remove double _ in front of some functions

* gtk/gtktext*.[hc]: update accordingly
2000-12-14 04:58:44 +00:00
Havoc Pennington
bacb35ba3c Put _ in front of every function in this header file
2000-12-13  Havoc Pennington  <hp@pobox.com>

* gtk/gtktextbtree.h: Put _ in front of every function in this
header file

* gtk/gtktext*.[hc]: update to reflect renamed btree functions
2000-12-14 04:54:03 +00:00
3
02eac1c64d Add support for ps2 intellimouse.
2000-12-13    <alexl@redhat.com>

	* gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
	Add support for ps2 intellimouse.

	* gdkkeyboard-fb.c:
	Move shift-F1 repaint handling to xlate handler only.

	* docs/README.linux-fb:
	Add imps2 to docs.
	Document the new refresh keys.
2000-12-13 10:03:16 +00:00
Tim Janik
2c9eb3a572 doh, this was broken beyond believe.
Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>

	* gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.

	* gtk/gtkbox.c: change property types from (u)long to (u)int for
	::position and ::padding.

	* gtk/gtkcontainer.c: make ::border_width an INT property.

	* gtk/gtkpacker.c: make ::position an INT property.

	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
	guard against NULL h/v scrollbars, since this is used at construction
	time.

	* gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
	internal gtk_clist_constructor().

	* gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
	gtk_ctree_constructor().

	* gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
	::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.

	* docs/reference/Makefile.am: fun stuff, disabled docs generation
	again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.

	* gtk/gtkwidget.[hc]:
	removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
	and gtk_widget_get().
	(gtk_widget_new): use g_object_new_valist().
	(gtk_widget_set): use g_object_set_valist().

	* gtk/gtkobject.[hc]:
	removed gtk_object_arg_get_info(), gtk_object_getv(),
	gtk_object_query_args(), gtk_object_newv(),
	gtk_object_class_add_signals(),
	gtk_object_class_user_signal_new(),
	gtk_object_class_user_signal_newv(),
	gtk_object_arg_set(), gtk_object_arg_get(),
	gtk_object_args_collect(),
	gtk_object_default_construct(),
	gtk_object_constructed(),
	GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
	removed nsignals, signals and n_args members from GtkObjectClass.
	(gtk_object_new): use g_object_new_valist().
	(gtk_object_set): use g_object_set_valist().
	(gtk_object_get): use g_object_get_valist().

	* gtk/gtkcompat.h: define gtk_object_default_construct().

	* gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
	g_object_new().

	* gtk/*.c: removed gtk_object_class_add_signals() from class_init()
	fucntions, cleaned up method assignments (make sure your structures
	are setup properly before calling out). removed all GTK_CONSTRUCTED
	hacks ;)
2000-12-13 01:34:41 +00:00
Owen Taylor
90461d7def Fix off-by-one error in checks. (Dave Lambert)
Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
	off-by-one error in checks. (Dave Lambert)
2000-12-12 16:54:47 +00:00
Alexander Larsson
944046942a Don't free gdk_fb_keyboard twice.
2000-12-12  Alexander Larsson  <alexl@redhat.com>

	* gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
	Don't free gdk_fb_keyboard twice.
2000-12-12 12:11:14 +00:00
Tim Janik
53d7e43060 get rid of object_signal:: GtkObject argument uses, use GObject
Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>

        * gtk/testgtk.c:
        (create_tooltips):
        (create_statusbar): get rid of object_signal:: GtkObject argument uses,
        use GObject swapped_signal:: properties instead.

        * gtk/gtkcellrenderertoggle.c:
        * gtk/gtkcellrenderertextpixbuf.c:
        * gtk/gtkcellrenderertext.c:
        * gtk/gtkcellrendererpixbuf.c:
        * gtk/gtkcellrenderer.c:
        * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
        missing warnings for invalid property ids, install properties
        with g_object_class_install_property() now.

        * gtk/gtksignal.c:
        (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
2000-12-12 07:32:32 +00:00
Owen Taylor
0cdc00ec0b Add a function to determine if a window is the focus widget within its
Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
	to determine if a window is the focus widget within
	its toplevel.

	* gtk/gtkcontainer.[ch]: Fix the return type of ::focus
	to be boolean.

	* gtk/gtkcontainer.c (gtk_container_real_focus): Move handling
	of the case where the container CAN_FOCUS to here instead
	of having it in each individual move-the-focus place.

	* gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
	focusing to be geometric in a much more obvious sense. Arrowing
	around is still non-intuitive because it isn't perfect and
	because entries, etc, grab the arrow keys, but it at least
	usually will do what you expect now.

	* gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
	file.

	* gtk/gtknotebook.c: Change tabs to be a single item in
	the focus chain. Make movement of focus on tabs with arrow
	keys wrap around.

	* gtk/gtknotebook.c (gtk_notebook_find_child): Add
	CHECK_FIND_CHILD macro to give informative error messages
	instead of silent returns.

	* gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT
	flag since we handle GdkReturn on the tabs.

	* gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
	windows rather than sending expose events directly.

	* gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure
	definition for GtkNotebookPage into .c file, since it is private.

	* gtk/testgtk.c (create_notebook): Add option for
	testing borderless notebook.

	* gtk/testgtk.c (page_switch): Removed egregious poking
	around in GTK+ internals.

	* docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.

	* gtk/gtkclist.[ch]: Remove key press handler, handle focusing
	properly through gtk_clist_focus. Make the title headers a
	single item in the tab-focus chain, and make left-right wrap
	around.

	* gtk/gtkwindow.c (gtk_window_focus): Add a custom
	focus method so that wrapping around works properly.

	* gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() -
	that is handled for the widget now.
2000-12-11 17:47:24 +00:00
Owen Taylor
5a188a9f13 Flag invisible widgets as TOPLEVEL.
Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
	widgets as TOPLEVEL.

	* gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
	TOPLEVEL widgets are containers.

	* gtk/gtkinvisible.h: Remove useless include.
2000-12-11 16:43:47 +00:00
Havoc Pennington
310a0d4fcc Handle chopping off \r\n and 0x2029 in addition to \n before passing to
2000-12-11  Havoc Pennington  <hp@redhat.com>

	* gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
	Handle chopping off \r\n and 0x2029 in addition to \n before
	passing to PangoLayout

	* gtk/gtkimcontextsimple.c
	(gtk_im_context_simple_get_preedit_string):
	return an empty string if no match is pending

	* gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
	assertion that the returned preedit string was sane

	* gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
	s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
	s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
2000-12-11 15:51:20 +00:00
Owen Taylor
116853db94 Fix up finalizer to chain to its parent.
Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize):
	Fix up finalizer to chain to its parent.
2000-12-11 15:04:36 +00:00
Alexander Larsson
a2a237101a Clearified the difference between the keyboard types. Wrote a note about
2000-12-11  Alexander Larsson  <alexl@redhat.com>

	* docs/README.linux-fb (GDK_KEYBOARD_TYPE):
	Clearified the difference between the keyboard types. Wrote a note
	about the magic sysrq key to get out of raw mode.
2000-12-11 08:48:13 +00:00