1. 28 Feb, 2002 1 commit
    • Owen Taylor's avatar
      ed Feb 27 19:16:50 2002 Owen Taylor <otaylor@redhat.com> · 7ea17ce7
      Owen Taylor authored
              * gdk/x11/gdkwindow-x11.c (gdk_window_new):
              * gdk/x11/gdkwindow-x11.c (gdk_window_get_events):
              * gdk/x11/gdkwindow-x11.c (gdk_window_set_events):
              * gdk/win32/gdkwindow-win32.c (gdk_window_set_events):
              * gdk/win32/gdkwindow-win32.c (gdk_window_new):
              * gdk/gdkwindow.h (struct _GdkWindowObject):
              * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_events):
              Save the window's event mask in window->event_mask.
      
              * gdk/gdkwindow.c (gdk_window_process_updates_internal): Only
              generate expose events if GDK_EXPOSE_MASK is included
              window->event_mask. (#54506)
      7ea17ce7
  2. 26 Feb, 2002 1 commit
    • Tor Lillqvist's avatar
      Implement the functions that until now just were non-functional stubs. For · 93fa867e
      Tor Lillqvist authored
      2002-02-26  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkkeys-win32.c: Implement the functions that until
      	now just were non-functional stubs. For "hardware keycodes", we
      	use Windows virtual keycodes. Not scancodes, although that at
      	first might seem more low-level and a better match to X11
      	keycodes.
      
      	The Windows API is really mixed up and confused with respect to
      	scancodes and virtual keycodes. (Surprised?) Some scancodes are
      	generated by two keys on the keyboard (!), and although the
      	keyboard messages do have a flag to indicate which key the user
      	pressed, other API that take a scan code as input don't let you
      	specify which actual key you mean.
      
      	(update_keymap): Function to build a X11-like representation of
      	the keyboard. Each key has four keysyms: two levels (nonshifted
      	and shifted) and two groups (normal and with AltGr).
      
      	(gdk_keymap_get_direction): Use the codepage corresponding to the
      	thread's input locale, not the system codepage.
      
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkwindow-win32.h
      	* gdk/win32/gdkwindow-win32.c: Remove the input_locale and
      	charset_info fields from GdkWindowImplWin32. Input locale is
      	per-thread in Windows, and as GDK on Windows really only works
      	when the GDI interaction all happens in just one thread anyway,
      	this state can be global. Use globals _gdk_input_locale and
      	_gdk_input_codepage instead. Set these based on the thread's input
      	locale (keyboard layout, or which IME is active).
      
      	* gdk/win32/gdkevents-win32.c: Set the group and hardware_keycode
      	fields in GDK key events. On input locale change messages, set
      	the global state variables, and inform update_keymap() that it
      	has to rebuild the keymap.
      93fa867e
  3. 17 Feb, 2002 1 commit
    • Tor Lillqvist's avatar
      Massive changes. Too many to list here, but I'll try a summary: · bc1ec5c1
      Tor Lillqvist authored
      2002-02-17  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/*.c: Massive changes. Too many to list here, but I'll
      	try a summary:
      
      	1) Unify GdkPixmap and GdkImage implementation: For each
      	GdkPixmap, allocate a GdkImage, and vice versa.
      	GdkPixmapImplWin32Data has a pointer to the GdkImage.
      	GdkImage::windowing_data is a pointer to the GdkPixmap.
      
      	This simplifies many pixmap and image related functions a lot, and
      	reduces duplicated code snippets. For instance, there is only one
      	place in gdk/win32 where CreateDIBSection() is called, in the
      	function _gdk_win32_new_pixmap(). Converting a bitmap (GdkPixmap)
      	to a Windows region is almost trivial, with the bitmap bits being
      	readily accessible in the associated GdkImage.
      
      	All blitting between GdkPixmaps, GdkWindows and GdkImages goes
      	through handled the _gdk_win32_blit() function, which calls
      	different functions to handle the cases of blitting from pixmaps,
      	inside windows (scrolling), or from windows, which all require
      	somewhat different handling.
      
      	2) Support 256-color mode. This has long been very broken, now it
      	works more or less OK. Keep the logical palette for each colormap
      	as small as possible while allocating and freeing colors. Select
      	and realize the logical palette associated with a GdkColormap into
      	a DC before drawing or blitting.
      
      	When the display is in 256-color mode, make it possible for the
      	user to override the size of the palette(s) used with either the
      	GDK_WIN32_MAX_COLORS environment variable, or a -max-colors
      	command line option. It is possible to reduce the palette size all
      	the way down to using just the 16 static colors (which causes the
      	system visual to be of type GDK_VISUAL_STATIC_COLOR. This could
      	possibly be useful if one desperately wants to avoid color
      	flashing. (Note that in order for this to work properly, an as of
      	yet not commited fix to gdkrgb.c is needed.)
      
      	Handle the palette messages. On WM_PALETTECHANGED, call
      	UpdateColors() for the given window hierarchy. Do this only if a
      	window in some other top-level window hierarchy caused the palette
      	change (realized a palette). Do this max five times in a row (an
      	arbitrarily chosen limit), though, otherwise redraw by generating
      	expose events. On WM_QUERYNEWPALETTE, cause a redraw of the whole
      	window hierarchy by generating GDK_EXPOSE events.
      
      	3) Code cleanup in general. For instance, remove the "emulated"
      	X11 structs ColormapStruct, Visual and XStandardColormap. Use the
      	new GDK_DEBUG_* flags for debugging output in the relevant source
      	files. Remove the unused colormap hash table in gdkcolor-win32.c
      
      	4) Plug some resource leaks.
      
      2002-02-14  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Use
      	g_filename_to_uri() to actually create legal URIs in the
      	text/uri-list data.
      bc1ec5c1
  4. 10 Feb, 2002 1 commit
    • Hans Breuer's avatar
      don't reduce the scroll rect size by the scroll amount · 6d33d1c7
      Hans Breuer authored
      2002-02-10  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
      	rect size by the scroll amount
      
      	* gdk/win32/gdkwindow-win32.c
      	* gdk/win32/gdkselection-win32.c : added some casts to
      	make it compile with msvc's strict type checking
      
      	* gtk/fnmatch.c : #include <ctype.h> again for tolower
      	prototype. The fnmatch() code assumes to be in the crt
      	locale though it is feeded by utf8 strings from gtkfilesel.c
      
      	* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
      	_CompletionDir instead of referencing already freed memory
      
      	* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
      	gtk_rc_parse_string (theDefaultTooltipColor) once as it
      	was intended
      
      	* tests/makefile.msc : added more tests
      
      	* tests/testgtk.c (create_list) : don't try to load gtkenums.h
      	from the current directory use ../gtk/gtkenums.h instead
      6d33d1c7
  5. 11 Jan, 2002 1 commit
    • Tor Lillqvist's avatar
      Fixes contributed by Archaeopteryx Software: This is a first small part of · ffcd6039
      Tor Lillqvist authored
      2002-01-12  Tor Lillqvist  <tml@iki.fi>
      
      	Fixes contributed by Archaeopteryx Software: This is a first small
      	part of their changes. Will commit more later.
      
      	* gdk/win32/*.c: Add some more checks for failed GDI calls. If a
      	call fails, don't use bogus values.
      
      	* gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
      	memory leak: g_free() the AND and XOR bitmaps after use.
      	(_gdk_cursor_destroy): If we are destroying the current Windows
      	cursor, set the Windows cursor to none first.
      
      	* gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
      	brush that was in the DC, like the win32-procution branch does. I
      	guess this plugs a resource leak? With the HDC cache, the old
      	brush might be something we created ourselves, and not a stock
      	brush. And it doesn't do any harm to call DeleteObject on stock
      	brushes.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
      	the window has a cursor which is the current Windows cursor,
      	before destroying it set the current Windows cursor to none.
      	(gdk_window_set_cursor): Also here, if destroying the current
      	Windows cursor, set the current Windows cursor to none first.
      	(gdk_window_get_pointer): Revamp logic.
      ffcd6039
  6. 10 Jan, 2002 1 commit
    • Tor Lillqvist's avatar
      Apply the same fixes and improvements as to the gtk-1-3-win32-production · 1b7cff47
      Tor Lillqvist authored
      2002-01-10  Tor Lillqvist  <tml@iki.fi>
      
      	Apply the same fixes and improvements as to the
      	gtk-1-3-win32-production branch: Bug fixes and cleanup of
      	selection and DND functionality. Still doesn't work as well as the
      	win32-production branch, though, but getting closer.
      
      	After this, need to add Archaeopteryx Software's OLE2 DND support.
      
      	* gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
      	gdk_selection_send_notify, generate_selection_notify): Don't use
      	SendMessage() to generate events for the same app, instead use
      	gdk_event_put().
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
      	initialisation and handling of gdk_selection_notify_msg,
      	gdk_selection_request_msg and gdk_selection_clear_msg.
      
      	* gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
      	gdk_free_text_list, gdk_string_to_compound_text,
      	gdk_free_compound_text): Implement trivially, witrh a text_list
      	always having a single element, and a compound text always
      	consisting of just a single (UTF-8!) string. Let's see how well
      	this works.
      
      	* gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
      	non-ASCII paste from the clipboard: Try getting the same formats
      	from the Windows clipboard that gdk_property_change() puts there:
      	CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_property_change): When
      	storing text on the clipboard, handle non-ASCII text
      	correctly. The logic is as follows:
      
      	If we have only ASCII characters, use CF_TEXT.
      
      	Else, if we are on NT, use CF_UNICODETEXT.
      
      	Else (we are on Win9x), if all the characters are present in the
      	code page of some installed locale, use CF_TEXT and also set
      	CF_LOCALE to that locale.
      
      	Else (still on Win9x) store as RTF. We use a very simple RTF
      	string, just the text, no fonts or other crap, with the non-ASCII
      	characters as Unicode \uN keywords. Additionally, also store the
      	UTF-8 string as such, under the format "UTF8_STRING", so that GDK
      	can also paste from the Clipboard what it has copied there. (Thus
      	no need to implement any RTF parser.)
      
      	(find_common_locale): New function, implements the search for a
      	locale for case 3 above.
      
      	* gdk/win32/gdkglobals-win32.c: New global variables
      	compound_text, text_uri_list, utf8_string, cf_rtf and
      	cf_utf8_string.
      
      	* gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
      	converts from a wchar_t string to UTF-8.
      	(_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
      	(_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
      
      	* gdk/win32/gdkevents-win32.c (build_keypress_event): Use
      	_gdk_ucs2_to_utf8().
      
      	* gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
      
      	* gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
      	gdk_drag_context_ref() was called unnecessarily in a couple of
      	places, meaning drag contexts were never freed. The same memory
      	leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
      
      	(gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
      	stored file list.
      
      	* gdk/win32/gdkselection-win32.c: Clarify the use of the
      	sel_prop_table. Now it is used only for storing the GDK_SELECTION
      	"properties".
      
      	The file names dropped with WM_DROPFILES -style DND is stored
      	temporarily (between the drop and the target picking them up) in a
      	separate place.
      
      	Have a separate hash table to map selection atoms to owner
      	windows. This used to be quite mixed up.
      
      	(_gdk_dropfiles_store): New function, to store the dropped file
      	list for the drop target to possibly fetch, and clear it
      	afterwards, from gdk_drop_reply().
      
      	(gdk_selection_owner_get): Much simplified now.
      1b7cff47
  7. 01 Jan, 2002 1 commit
    • Tor Lillqvist's avatar
      Append EXEEXT to ../gdk-pixbuf/gdk-pixbuf-csource. · c8940d6f
      Tor Lillqvist authored
      2002-01-01  Tor Lillqvist  <tml@iki.fi>
      
      	* demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
      	../gdk-pixbuf/gdk-pixbuf-csource.
      
      2001-12-31  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
      	handling.
      	(gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
      
      	* gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
      	-Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
      	one more place.
      
      	* gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
      	-Wall.
      
      	* gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
      c8940d6f
  8. 18 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Include glib-object.h instead of gobject/gsignal.h · 86dbeabc
      Owen Taylor authored
      Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkenums.h: Include glib-object.h instead of
      	gobject/gsignal.h
      
      	* gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
      	  x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
      	argument to the window_at_pointer() field of
      	GdkPointerHooks. (Patch from Erwann Chenede)
      
      	* gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
      	to 6 pointers.
      86dbeabc
  9. 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
  10. 29 Oct, 2001 1 commit
    • Tor Lillqvist's avatar
      New file, hand-written wrapper for the Wintab library. · a53f14a6
      Tor Lillqvist authored
      2001-10-29  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
      	Wintab library.
      
      	* gdk/win32/gdkwin32.h
      	* gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
      	X11 headers better, and to enable gdkwin32.h to be installed and
      	included from applications, but not the *-win32.h headers.
      
      	* gdk/win32/*.c: Corresponding small changes, simplifications of
      	#includes.
      
      	* gdk/win32/gdkregion-win32.c: Remove.
      
      	* gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
      
      	* gdk/win32/gdkfont-win32.c
      	* gdk/win32/gdkgeometry-win32.c: Remove unused variables.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
      	GDK_NONE values into hash table.
      
      	Changes for autoconfiscated build on Win32, and addition of Win32
      	backend to the related files:
      
      	* gdk/win32/Makefile.am: Actually enable building the win32
      	objects here, not just list all files in EXTRA_DIST. Link in the
      	compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
      	copy the Wintab library into the .libs directory.
      
      	* gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
      	name of the GDK DLL when fetching the icon. Use the HMODULE saved
      	in gdk_dll_hinstance by DllMain.
      
      	* gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
      	build/win32/lt-compile-resource script.
      
      	* gdk/win32/rc/gdk.rc.in
      	* gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
      a53f14a6
  11. 28 Oct, 2001 1 commit
    • Hans Breuer's avatar
      static correct-ness, underscore prefixing of library internal functions · 93f12bd6
      Hans Breuer authored
      2001-10-28  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.c gdk/gdkevents.c
      	  gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
      	  gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
      	  gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
      	  gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
      	  gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
      	  gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
      	  gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
      	static correct-ness, underscore prefixing of library internal
      	functions
      	(applied the undisputed and the win32 part. Of the latter
      	 I'm probably the one who will change it back again, if Owen
      	 decides that the Gdk*Impl types should not be private to Gdk)
      
      	* gdk/gdk.def : added the remaining exported functions
      93f12bd6
  12. 24 Oct, 2001 1 commit
    • Owen Taylor's avatar
      Always set window->parent (except or the root window itself); if the · b7c639ea
      Owen Taylor authored
      Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always
      	set window->parent (except or the root window itself); if
      	the window's parent is not a GdkWindow, or is a window of
              type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
      
      	* gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
      	windows of type GDK_WINDOW_FOREIGN.
      b7c639ea
  13. 18 Oct, 2001 1 commit
    • Matthias Clasen's avatar
      Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup and · 73e845ee
      Matthias Clasen authored
              * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
              gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
              gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
              gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
              gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
              Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
              and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
      
              * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
      73e845ee
  14. 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
  15. 07 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Make gdkx.h the only installed header from gdk/x11. All structures in · 1bbf2ac7
      Owen Taylor authored
      Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
      
            Make gdkx.h the only installed header from gdk/x11.
            All structures in gdk/x11 are opaque.
      
      	* gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
      	Don't install gdk{drawable,pixmap,window}-x11.h.
      
      	* gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c:
      	Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11,
      	GdkVisualClass into C files.
      
      	* gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
      
      	* gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
      	gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
      	Add public functions to replace previously exported direct
      	structure access.
      	gdk_x11_colormap_get_{xdisplay,xcolormap}
      	gdk_x11_cursor_get_{xdisplay,xcursor},
      	gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual,
      	gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
      	gdk_x11_gc_get_{xdisplay,ximage}
      
      	* gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
      	GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
      
            Fix a number of variables and functions that were exported
            "accidentally" from GDK.
      
      	* gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
      	gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit,
      	gdk_input_exit,	gdk_windowing_exit, gdk_event_func, gdk_event_data,
      	gdk_event_notify, gdk_queued_events, gdk_queued_tail,
      	gdk_event_new, gdk_events_queue, gdk_events_unqueue,
      	gdk_event_queue_find_first, gdk_event_queue_remove_link,
      	gdk_event_queue_append, gdk_event_button_generate,
      	gdk_debug_flags, gdk_default_filters, gdk_parent_root.
      
      	* gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c,
      	   gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
      	gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks,
      	gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
      	gdk_use_xshm, gdk_input_ignore_core.
      
      	* gdk/x11/xsettings-common.h (xsettings_list_insert): Add
      	#defines to namespace functions into the private _gdk_
      	namespace.
      
      	* gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
      	to replace gdk_parent_root exported variable. Adjust and
      	deprecate GDK_ROOT_PARENT().
      
      	* demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
      	GDK_ROOT_PARENT usage, remove includes of port-specific
      	headers.
      
      	* gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for
      	_gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core,
      	gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
      
      	* gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
      	docs/Changes-2.0.txt: Remove gdk_wm_protocols,
      	gdk_wm_delete_window functions, gdk_wm_take_focus,
      	use gdk_atom_intern() instead.
      
      	* gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
      	  gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h}
      	  gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
      	  gtk/gtkselection.c
              Unexport gdk_selection_property, just use
      	gdk_atom_intern ("GDK_SELECTION").
      
      	* gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}:
      	Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type,
      	GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate,
      	GdkVisualprivate, gdk_x11_gc_flush.
      
            Make a number of public exports of variables into functions
            to increase encapsulation.
      
      	* gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h
      	gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer,
      	move to gdkinternals.h. Add gdk_device_get_core_pointer ().
      
      	* gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
      	docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code,
      	gdk_error_warnings.
      
      	* gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
      	  docs/Changes-2.0.txt:
      	s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
      	s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
      	Add gdk_x11_get_default_xdisplay().
      
      	* gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c
      	win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c
      	gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class,
      	Don't export gdk_progclass, move --class command line
      	option and handling to common portion of GDK.
      
            Miscellaneous fixes:
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
      	g_return_val_if_fail that should have been g_return_if_fail.
      
      	* gdk/gdkinternals.h gdk/gdkprivate.h: Move
      	gdk_synthesize_window_state() to the semi-public gdkprivate.h.
      
      	* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
      	X11 dependency.
      
      	* gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO:
      	Remove unused gdk_key_repeat_disable/restore.
      
      	* linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c
      	x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
      	Remove unused gdk_null_window_warnings variable.
      
      	* gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
      	it can be retrieved from the repository; it is too far
      	from functional to be worth having people check out;
      	it would be easier to start from scratch, I suspect.
      
      	* gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
      
      	* gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
      	gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
      	Fix some accidentally global variables and unused global variables.
      
      	* gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
      	gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
      	Fix some accidentally global variables and unused global variables.
      
            Add some space for future expansion to multihead.
      
      	* gdk/gdkdrawable.h: Add four reserved function pointers
      	for future expansion of GdkDrawableClass.
      
      	* gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
      	where we can put a GdkScreen * later.
      1bbf2ac7
  16. 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
  17. 11 Aug, 2001 1 commit
    • Hans Breuer's avatar
      coalescing property notifies · 0b5db507
      Hans Breuer authored
      2001-08-11  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
      	  gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c,
      	  gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c,
      	  gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c,
      	  gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
      	  gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
      
      	* gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
      	  gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
      	GDK_TYPE_EVENT signals
      
      	* gtk/gtkalignment.c : removed 'direct allocation bug',
      	which Tim discovered while reading the patch
      0b5db507
  18. 04 Aug, 2001 1 commit
    • 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
  19. 28 Jul, 2001 1 commit
    • Hans Breuer's avatar
      build in the backend dir after auto-generating files · da155bb7
      Hans Breuer authored
      2001-07-29  Hans Breuer  <hans@breuer.org>
      
      	* gdk/makefile.msc : build in the backend dir after
      	auto-generating files
      
      	* gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
      	with code from win32-production-branch.
      
      	*  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
      	before calling DestroyWindow, which indirectly calls
      	gdk_window_destroy_notify ()
      
      	(performance patch merged from win32-production-branch)
      	* gdk/win32/gdkdrawable-win32.c (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.
      da155bb7
  20. 05 Jul, 2001 1 commit
    • Owen Taylor's avatar
      Add gdk_set_pointer_hooks() to allow pointer-querying to be hooked by an · 191e83b3
      Owen Taylor authored
      Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
      
       	* gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
       	gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
       	Add gdk_set_pointer_hooks() to allow pointer-querying to
       	be hooked by an event record/playback system like GERD.
      	(#56914)
      191e83b3
  21. 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
  22. 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
  23. 10 Mar, 2001 1 commit
    • Hans Breuer's avatar
      updated · 0f6d1b4a
      Hans Breuer authored
      2001-03-10  Hans Breuer  <hans@breuer.org>
      
      	* gdk/gdk.def : updated
      
      	* gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
      	to offseting the clip_mask at the right place
      
      	* gdk/win32/gdkwindow-win32.c : don't create background brushes
      	for all the gdkClasses, especially not for the input_only case.
      	Otherwise flickering wont be avoidable, because we don't get
      	WM_ERASEBKGND message for these windows.
      
      	* gdk/win32/gdkevents-win32.c : initialize event->expose.region
      	and fixed massive redraw problems apparently triggered by Alexanders
      	recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
      	but it seems to work quite well :-)
      
      	* gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
      	prototype
      0f6d1b4a
  24. 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
  25. 23 Feb, 2001 1 commit
    • Tor Lillqvist's avatar
      Update. Mention the gtk-1-3-win32-production branch. · 3dcfcddf
      Tor Lillqvist authored
      2001-02-23  Tor Lillqvist  <tml@iki.fi>
      
      	* README.win32: Update. Mention the gtk-1-3-win32-production
      	branch.
      
      	* 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/Makefile.am (EXTRA_DIST): Add new files.
      
      	* 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.in: Remove cursors.
      
      	* gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
      
      	* gtk/makefile.{mingw,msc}.in: Updates.
      3dcfcddf
  26. 19 Feb, 2001 1 commit
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 12 Nov, 2000 1 commit
  33. 11 Nov, 2000 1 commit
    • Tor Lillqvist's avatar
      gdk/gdk.def Update. · 22a0c3a5
      Tor Lillqvist authored
      2000-11-11  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Update.
      
      	* gdk/win32/*.c: Add last argument to g_type_register_static()
      	calls.
      
      	* gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
      
      	* gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
      	generated by older wheel mouse drivers. Get the correct y
      	coordinate from WM_MOUSEWHEEL messages.
      
      	* gdk/win32/gdkgc-win32.c (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):
      	Debugging functions.
      
      	* gdk/win32/gdkprivate-win32.h: Declare them.
      
      	* gdk/win32/gdkinput-win32.h: Add declaration for
      	gdk_input_window_destroy().
      
      	* gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
      
      	* gdk_pixbuf.def: Add gdk_pixbuf_new_subpixbuf.
      22a0c3a5
  34. 22 Oct, 2000 1 commit
    • Tor Lillqvist's avatar
      gdk/win32/gdkgc-win32.c Remove gcc -Wall warnings. · f49a2a00
      Tor Lillqvist authored
      2000-10-22  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkgc-win32.c
      	* gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
      
      	Patches by Hans Breuer:
      
      	* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
      	SetBkMode() and SetTextAlign() before calling
      	pango_win32_render().
      
      	* gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
      	Set hcliprgn to NULL after destroying it.
      	(gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
      
      	* gdk/win32/gdkgeometry-win32.c
      	(_gdk_windowing_window_queue_antiexpose): More effective
      	implementation.
      
      	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
      	depth as default, not the visual's.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
      	against empty title.
      
      	* gdk/win32/gdkprivate-win32.h: Define a helper macro,
      	IMAGE_PRIVATE_DATA.
      
      	* gdk/win32/gdkimage-win32.c (gdk_image_get_type): Use it.
      f49a2a00
  35. 09 Oct, 2000 1 commit
    • Tor Lillqvist's avatar
      Update. · 658b4b1d
      Tor Lillqvist authored
      2000-10-09  Tor Lillqvist  <tml@iki.fi>
      
      	* README.win32: Update.
      
      	* gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
      	lines that had been deleted by mistake (?).
      
      	* 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/*.c: Silence gcc -Wall.
      
      	* gtk/gtk.def: Add missing entry points.
      
      	Fixes by Hans Breuer:
      
      	* gdk/makefile.msc
      	* gdk/win32/makefile.msc: Update.
      
      	* gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
      	some MSVC thing, presumably), cause breakpoint on failures. Add
      	GDK_NOR case. Call g_log_set_always_fatal.
      
      	* gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
      	should be pased by reference.
      
      	* gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
      
      	* gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
      
      	* gdk/win32/gdkevents-win32.c
      	* gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
      
      	* gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
      	implementation object.
      
      	* gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
      	not just windows.
      
      	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
      	Use the wrapper object.
      658b4b1d
  36. 26 Jul, 2000 1 commit
  37. 25 Jul, 2000 2 commits
    • Tor Lillqvist's avatar
      Generate gtk/makefile.mingw. · 20e675e1
      Tor Lillqvist authored
      2000-07-25  Tor Lillqvist  <tml@iki.fi>
      
      	* configure.in: Generate gtk/makefile.mingw.
      
      	* config.h.win32: Add GETTEXT_PACKAGE.
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Updates.
      
      	* gdk/gdkfont.h
      	* gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
      	need them any longer.
      
      	* gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
      
      	* gdk/win32/*.c: More work.
      
      	* gdk/win32/gdkpango-win32.c: New file.
      
      	* gtk/makefile.mingw.in: New file
      
      	* gtk/makefile.cygwin: Removed
      
      	* gtk/Makefile.am: Update accordingly.
      
      	* gtk/gtkmain.c: Use gtk_win32_get_installation_directory().
      
      	* gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
      	is enough.
      
      	* gtk/gtktypeutils.c: Mark glib_debug_objects for import.
      20e675e1
    • 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
  38. 23 Jul, 2000 1 commit
  39. 04 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      Handle also WM_SYSCHAR, and other changes to get handling of Alt+nnn or · a1260f86
      Tor Lillqvist authored
      2000-07-04  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
      WM_SYSCHAR, and other changes to get handling of Alt+nnn or
      Alt+0nnn on the numpad (used to enter characters by numeric code
      from current DOS or ANSI codepage) working correctly, as in other
      Windows apps.
      
      * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
      same argument validity tests as in X11 version.
      (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
      
      * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
      definitions in case missing from headers.
      
      * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): ALso
      destroy the window-specific cursor.
      (RegisterGdkClass): Use the global gdk_ProgInstance instead of
      calling GetModuleHandle(NULL).
      (gdk_window_set_cursor): Reworked to always copy the passed cursor
      with CopyCursor before setting it. It is OK for the caller to
      destroy the GdkCursor (and thus also the Windows cursor) after
      calling this function. Also, destroy any previous cursor for this
      window.
      
      2000-05-29  Tor Lillqvist  <tml@iki.fi>
      
      * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
      variable should be of type GdkEventPrivate.
      a1260f86