]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Call XFreeDeviceState() on results of XQueryDeviceState().
[~andy/gtk] / ChangeLog.pre-2-10
1 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
2
3         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
4         on results of XQueryDeviceState().
5
6 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
7
8         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
9         we need to accesss only ->children. We need an accessor
10         for the children.
11
12         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
13         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
14         to get rid of gdkx.h include.
15         
16         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
17         and random references to 'None'.
18
19         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
20         Get rid of unused #include <gdk/gdkx.h>
21
22         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
23         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
24         gdkconfig.h.
25
26 1999-11-08  Tor Lillqvist  <tml@iki.fi>
27
28         * gdk/win32/gdkdraw.c
29         * gdk/win32/gdkfont.c
30         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
31         following yesterday's changes. (Unrelated to Owen's reorg.)
32
33 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
34
35         * gdk/x11/gdkinput-gxi.c: Add missing include,
36           fix GdkWindowPrivate => GdkDrawablePrivate.
37
38         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
39
40         * gdk/x11/Makefile.am (xinput_sources): Add missing
41         backslash to fix building with --with-xinput=none
42
43 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
44
45         Move all X specific code into the x11/ directory.
46         Aside from shuffling things around, did the following:
47
48        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
49          gdk_arg_context_* - a simple argument parsing system
50          in the style of popt.
51
52        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
53          gdk/x11/gdkprivate-x11.h:
54          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
55          add ->klass and ->klass_data fields. The klass_data
56          field points to an auxilliary structure that is
57          windowing system dependent.
58
59        * gdk/gdkfont.c: Make most of the measurement functions
60          simply wrappers around gdk_text_extents().
61
62        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
63          _gdk_font_strlen() function that hides the weird
64          behavior in gtk+-1.[02] where a string is interpreted
65          differently for 8-bit and 16-bit fonts.
66
67        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
68          to store common code for synthesizing double/triple
69          press events.
70         
71        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
72          Make all the function that modify an existing GC
73          simply wrappers around gdk_gc_set_values().
74          
75        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
76          for throwing out later.
77
78        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
79          GdkImagePrivate and GdkColormapPrivate to have a
80          windowing system dependent part (GdkFontPrivateX etc.)
81          that "derives" from the system-independent part.
82
83        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
84          Got rid of the included-source-files for XInput in
85          favor of automake conditionals. (Which didn't exist
86          when XInput support was originally added.)
87
88        * gdk/gdkrgb.c: Remove the visual id from the debugging
89          statements since that is X11 specific; print out
90          type/depth info instead.
91          
92
93 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
94
95         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
96         loading duplicates of hashed fonts.
97
98         * gdk/gdk.c (gdk_keysym_convert_case): rename
99         gdk_XConvertCase to gdk_keysym_convert_case, allow
100         results to be NULL in the GTK+ style.
101
102         * gdk/gdkcompat.h: Started compatibility header
103         for renames.
104
105 1999-11-07  Tor Lillqvist  <tml@iki.fi>
106
107         * gdk/win32/gdkprivate.h: New font private structures, related to
108         fontsets.
109
110         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
111         gdk_font_list_free(). On X11, will just be wrappers to
112         XListFonts() and XFreeFontNames(). On Win32, the code previously
113         in gtkfontsel.c is now here.
114
115         New function gdk_font_xlfd_create(). On X11 will get the FONT
116         property of the font (for GDK_FONT_FONTs), or call
117         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
118         builds a XLFD style name from the font information in the LOGFONT
119         struct(s).
120
121         New function gdk_font_xlfd_free(), which correspondingly frees the
122         string returned by gdk_font_xlfd_create().
123
124         Implement fontsets on Win32. Add a function that iterates over a
125         wide char string and calls a callback function for each substring
126         of wide chars from the same Unicode subrange (and thus probably
127         available in the same real font).
128
129         Improve the XLFD emulation a bit.
130
131         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
132
133         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
134         Beta3, WM_IME_CHAR messages don't seem to contain the composed
135         multi-byte char as with the Active IMM on Win9x. Oh well, handle
136         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
137         ImmGetCompositionStringW() to get the composed Unicode chars.
138
139         * gdk/win32/gdkgc.c
140         * gdk/win32/gdkdraw.c: Changes needed because of the font private
141         struct changes.
142
143         * gdk/win32/gdk.def: Add the new functions.
144
145 1999-11-04  Tor Lillqvist  <tml@iki.fi>
146
147         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
148         get the Platform SDK to get <dimm.h>.
149
150         * gdk/win32/gdkevents.c: More event handling fixes and
151         simplification. Never generate motion events with is_hint true. We
152         used to do that on bogus grounds earlier. Windows sends
153         WM_MOUSEMOVE messages on button events even if the mouse hasn't
154         moved, ignore these.
155
156         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
157
158         * gdk/win32/gdkglobals.c
159         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
160         the TrackMouseEvent function, and use it.
161
162         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
163         char before calling WideCharToMultiByte in order to get a string
164         for the window title.
165
166         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
167
168         * gdk/win32/gdk.def: Remove obsolete functions.
169
170         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
171         /nodefaultlib and /defaultlib switches.
172
173         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
174
175 1999-10-31  Tor Lillqvist  <tml@iki.fi>
176
177         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
178         EuroSign).
179
180         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
181         same type as GdkWChar, especially on Win32.
182
183         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
184
185         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
186         before passing to Windows GDI for drawing etc. Convert to the
187         system default codepage before passing to Windows as window
188         titles.
189
190         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
191         support changing input locale on the fly.
192
193         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
194         on-the-fly changes. Convert incoming characters from the current
195         codepage to Unicode (and then to a UTF-8 multi-byte string) based
196         on the current input language. Use keysym<->Unicode mapping tables
197         and functions borrowed from xterm sources.
198
199         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
200         editions of Win9x, use the ActiveX-based Active IMM (Input Method
201         Manager) if available. IMEs and the Active IMM are available under
202         the disguise of Chinese, Korean and Japanese support for IE and
203         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
204         support is present in all editions (as long as you install it).
205
206         Call DispatchMessage from gdk_events_queue() (and thus
207         gdk_WindowProc()), instead of duplicating the code in
208         gdk_WindowProc().
209
210         Reworked the grab handling and propagation code, factored out
211         duplicated code snippets into separate functions. Other cleanups,
212         too.
213
214         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
215         the <dimm.h> header describing the Active IMM.
216
217         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
218         just do the same as for "single" fonts.
219
220         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
221         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
222         the new keysyms from gdkkeysyms.h.
223
224         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
225         fontset, so that gtkentry uses wide characters.
226
227         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
228         GTk+'s system directory "gtk+", not "gtk".
229
230 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
231
232         * docs/gtkfaq.sgml: FAQ update
233
234 1999-10-21  Tor Lillqvist  <tml@iki.fi>
235
236         * gdk/win32/gdkprivate.h: Add more font private data.
237
238         * gdk/win32/gdkfont.c
239         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
240         fonts and strings. Now works much better. You still have to
241         have a correct font selected, though. No fontset emulation yet.
242
243 1999-10-19  Tor Lillqvist  <tml@iki.fi>
244
245         * gtk/maketypes.awk: Use G_OS_WIN32.
246
247         * gtk/gtk.def: Add some missing entry points. Also some non-public
248         ones, but PyGTK porter claims to need them.
249
250         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
251         built-in type generation.
252
253 1999-10-14  Tor Lillqvist  <tml@iki.fi>
254
255         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
256         GDK_FONT_FONT fonts (which is all we have for now, we don't
257         emulate fontsets). The X11 version uses plain XDrawString in that
258         case, too. The string passed to gdk_draw_text_wc seems to be in
259         fact (at least, when used by gtkentry and gtktext) either in a
260         single-byte charset, or a DBCS. Not Unicode.
261
262         This fixes the problem in gtkfontsel, where even if you had
263         selected a font with a non-Latin1 charset (windows-greek, for
264         instance), the preview still used Latin-1 glyphs.
265
266         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
267         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
268         (gdk_font_load): Recognize the demibold etc weights, even if we
269         don't have the corresponding constants in the headers.
270         (gdk_font_hash_insert): Use same hash mechanism as in the X11
271         version. Should save font resources a bit, when we don't have
272         multiple HFONTs for the same font.
273
274         * gdk/win32/gdkprivate.h: Add the names field as in the X11
275         version.
276
277 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
278
279         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
280         X values
281
282 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
283
284         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
285         layout support (as mentioned on
286         http://www.jcinteractive.com/gnome-ui/software/widgets/)
287
288 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
289
290         * gtk/fnmatch.c
291         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
292
293 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
294
295         * configure.in (ALL_LINGUAS): Added Galician (gl)
296
297 1999-10-05  Tor Lillqvist  <tml@iki.fi>
298
299         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
300
301         * gdk/win32/gdkcompat.c: New file, actually provide an
302         implementation for the deprecated functions. (Just temporarily.)
303
304         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
305
306         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
307
308         * gdk/win32/gdk.def gtk/gtk.def: Updates.
309
310 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
311
312         * configure.in: Added "uk" to ALL_LINGUAS.
313         
314 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
315
316         * configure.in: correct checking for BeOS check
317
318         * gdk/gdktypes.h
319         * gtk/fnmatch.c
320         * gtk/gtkfilesel.c
321         * gtk/gtkitemfactory.c
322         * gtk/gtkmain.[ch]
323         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
324
325 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
326
327         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
328         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
329         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
330         by Bulgarian). 
331
332 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
333
334         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
335         Fix a reference to window_private->destroyed.   
336
337         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
338         (ugly) setting of an internal GdkWindow member to use
339         a _slightly_ cleaner macro.
340
341         * gdk/gdkprivate.h: Split GdkWindowPrivate into
342         GdkDrawablePrivate and GdkWindowPrivate.
343         Add extra macros for accessing GDK_DRAWABLE_ components.
344
345         * *.[ch]: Massive adjustments for the above, use the
346         new macros in a lot of places.
347
348 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
349
350         * gdk/gdktypes.h: Make GdkDrawable the base type,
351         not GdkWindow.
352
353 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
354
355         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
356
357 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
358
359         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
360
361 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
362
363         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
364         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
365
366         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
367
368         * docs/gtk-config.1: Now autogenerated.
369         * docs/Changes-1.4.txt: started
370         
371 1999-10-03  Tor Lillqvist  <tml@iki.fi>
372
373         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
374         to #ifdef also here.
375
376         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
377         Owen did to the X11 backend.
378
379         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
380         ScrollWindowEx when blitting inside a window, it can't be correct
381         in the general case.
382
383         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
384         WM_GETMINMAXINFO is easier.
385
386         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
387         depth equal to the bitspixel value, not the visual's depth.
388
389         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
390         to 24 even if the bitspixel value is 32.
391
392         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
393         need to check for depth==32 when bpp==32, depth will always be 24.
394
395 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
396
397         * docs/Changes-1.4.txt: Started
398         
399         * gtk/Makefile.am (gdk_headers): Include all the new headers.
400
401         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
402         
403         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
404         into C file.
405         
406         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
407         header to gdkinputprivate.h.
408
409         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
410         unused since before 1.2.
411
412 1999-09-30  Tor Lillqvist  <tml@iki.fi>
413
414         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
415         expand possible hex escapes in the font family (put there by
416         logfont_to_xlfd if the font name isn't a legal XLFD font family,
417         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
418         On Win32, add hex escapes here, too.
419
420 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
421
422         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
423         to #ifdef GDK_WINDOWING_X11.
424
425 [ Merges from gtk-1-2 ]
426
427 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
428
429         * configure.in: fixed "GNU Make" check to pass with new make version
430         3.77.95.
431
432 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
433
434         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
435         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
436         AM_PATH_GTK() macros don't get confused by the -pre1.
437
438 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
439
440         * configure.in (REBUILD): Change check for perl5
441           to check explicitely for v >= 5.002. (5.001
442           does not work with our scripts.)
443
444 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
445
446         * configure.in: evaluate $PERL for the perl version check. added
447         --disable-rebuilds to give the user an option to completely disable
448         any source autogeneration rules.
449
450 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
451
452         * configure.in: evaluate $ac_make when checking for GNU Make.
453
454 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
455
456         * docs/Makefile.am: added generation.txt.
457
458         * Makefile.am: require automake 1.4, build README from README.in and
459         INSTALL from INSTALL.in in dist-hook.
460         
461         * README.in:
462         * INSTALL.in: new files to autogenerate README and INSTALL from.
463
464         * configure.in: figure whether we have GNU Make
465
466         * docs/generation.txt: minor additions/corrections.
467
468 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
469
470         * docs/gtkfaq.sgml: FAQ Update
471
472 July 30, 1999 Elliot Lee <sopwith@redhat.com>
473         
474         * configure.in: Fix autoconf warnings about cross compilation by
475         trying to provide sane defaults for AC_TRY_RUN.
476
477 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
478
479         * ltconfig
480         * ltmain.sh: upgrade to libtool 1.3.3
481
482 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
483
484         * INSTALL: Indicate that the --with-glib= configure
485         time flag is unsupported.
486
487 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
488
489         * docs/generation.txt: Added a file that gives
490         documenation about the autogeneration process for
491         various autogenerated files.
492         
493 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
494
495         * configure.in (LIBS): Look for libgmodule in the
496         right location.
497
498 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
499
500         * docs/gtk_tut.sgml: Removed references to
501         code examples in my directory on gtk.org as
502         they should all be in the tutorial now.
503
504         * docs/gtk_tut.sgml: Added sources for dial-test
505         and scribble-xinput programs that were previously
506         missing.
507
508 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
509
510         * TODO: Added entry about menu keyboard navigation, removed
511         some finished items.
512
513 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
514
515         * acinclude.m4: Standardize on func_dgettext
516         not func_gettext, so that the checks for dgettext
517         actually are paid attention to.
518
519 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
520
521         * configure.in (LIBS): Add $INTLLIBS into $LIBS
522         directly, rather than repeating the checks for
523         gettext.
524
525         * INSTALL: Added information about gettext and
526         NLS support.
527
528         * acinclude.m4 (LIBM): Check for dgettext, not
529         just gettext. This should hopefully fix things wrt
530         systems with old versions of GNU gettext installed.
531
532 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
533
534         * configure.in (LIBS): Look for libgmodule in the
535         right location.
536
537 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
538
539         * autogen.sh: add --enable-maintainer-mode
540
541         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
542
543 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
544
545         * docs/gtk-config.1.in:
546           docs/Makefile.am:
547           configure.in: gtk-config is now generated.
548
549         * docs/gtk-config.1: Removed, now generated.
550
551 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
552
553         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
554         handle CreateNotify itself, still put out a debuging message for
555         --gdk-debug=events. made the ReparentNotify debugging message more
556         verbose.
557         wrap xcoords translation for ConfigureEvents into an error trap,
558         a destroy event may already be pending, and in that case, the
559         actuall coordinate values are not at all critical.
560
561 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
562
563         * gdk/gdkcc.c: Stop leaking the color_hash all over
564         the place. Simplify and improve the logic.
565
566 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
567
568         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
569         for prototypes and function implementations consistent (reported
570         by Tomas Ogren).
571
572 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
573
574         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
575         send_event set in debugging output.
576         (gdk_compress_exposures): default initialize the event so we don't
577         operate on bogus values (namely send_event).
578
579 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
580
581         * gdk/gdkwindow.c: When we receive an unexpected
582         destroy notify on one of our windows, don't just
583         warn about it, also mark our windows as destroyed.
584
585 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
586
587         * gdk/gdkfont.c (gdk_font_hash_insert): Add
588           name => font and name => fontset hashes. The 
589           name => fontset hash is a _big_ win since we
590           weren't previously caching fontsets at all and loading
591           fontsets is expensive. The name => font hash
592           is less of a win, but it does save us from doing
593           repeated XQueryFont calls on the same font.
594
595         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
596           list so we can remove font/fontset from hash.
597
598 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
599
600         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
601           and slightly confusing test. [ XInternAtom (,,TRUE)
602           will never return None ].
603
604 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
605
606         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
607           gdk/gdkwindow.c (gdk_window_set_hints):
608
609         Don't omit setting the properties if flags == 0 -
610         there may be an existing set of properties there
611         already. (Very old bug. Would it be better to
612         delete the property instead?)
613
614         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
615           spelling error in comment.
616
617 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
618
619         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
620           to avoid stomping over gdk_error_warnings.
621
622         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
623           as (bits_per_pixel + 7) / 8. This gives the same
624           result as before for multiples of 8, but actually
625           a "reasonable" value for 1bit or 4bit displays.
626
627 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
628
629         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
630         GNU Make.
631
632 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
633
634         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
635         discarding configure events.
636
637 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
638
639         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
640         refcount is greater than zero.
641
642         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
643
644         * gdk/gdkfont.c (gdk_font_unref): Likewise.
645
646         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
647
648         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
649
650 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
651
652         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
653         that format 32 => sizeof(item) == 4. It really is
654         sizeof(long).
655
656 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
657
658         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
659         core dump at all on X IO errors, only core dump
660         if --enable-debug for X errors.
661
662 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
663
664         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
665         unknown window:" message. disabled ConfigureNotify discarding code,
666         because it led to events being processed out of order.
667
668 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
669
670         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
671
672         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
673         we export this function, supress error warnings and don't reset the
674         error code in the first half of this function.
675
676         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
677         code (instead of just -1) so gdk_error_trap_pop() reveals something
678         actually informative about the error that happened.
679
680         * gdk/*.c:
681         don't rely on gdk_error_code being -1 if an error occoured, but just
682         gdk_error_code != 0.
683
684 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
685
686         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
687         pointer *before* invoking the filter function, so we at least don't
688         crash if a filter is removed that is currently executed. window filters
689         *really* need to be made truely reentrant at some point.
690
691 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
692
693         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
694         PropertyNotify debug messages.
695
696 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
697         
698         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
699         
700         * gdk/gdkim.c: Fix cut-and-paste errors for 
701         x/y and PreeditAttributes/StatusAttributes.
702
703 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
704
705         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
706         G_MAXINT to 2^16 to alleviate overflow problems in
707         various window managers.
708
709 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
710
711         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
712         for fontsets.
713
714 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
715
716         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
717         Initialize size_hints.x and size_hints.y because kwm
718         brokenly pays attention to them.
719         (Bug #1181 -  Lars Heete <hel@admin.de>)
720
721 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
722
723         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
724         return value of gdk_list_visuals(). 
725         (Bug #1193 - Morten Welinder <terra@diku.dk>)
726
727 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
728
729         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
730         XSetIMValues to (void *) when comparing to NULL, to workaround
731         the problem of some compilers barfing since older X headers don't
732         have the prototype for it.
733
734 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
735
736         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
737         for pseudocolor where colormap->colors was double
738         allocated.
739
740         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
741         color value in the hash table with the pixel filled
742         in so when we do later hash table lookups, the color
743         value is correct.
744         
745 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
746
747         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
748         making the call
749
750 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
751
752         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
753         pointed out by Morten Welinder <terra@diku.dk>.
754
755 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
756
757         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
758           default filter from the list
759
760 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
761
762         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
763           default filter from the list
764
765 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
766
767         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
768
769         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
770         g_strdup_printf instead of calcing the length separately
771
772 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
773
774         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
775         that we don't do in many other places. (Fixing duplicate 
776         #include of config.h)
777
778         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
779         Otherwise, #ifndef XINPUT_NONE check in the latter
780         doesn't work. (Bug #546)
781
782 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
783
784         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
785         "None" case insensitive.
786
787 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
788
789         * gdk/gdkselection.c: 
790         Add error traps so if the other end of the connection
791         dies, we survive.
792
793 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
794
795         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
796         dest_xid field into two fields - one for the window
797         to send in messages, one to indicate the last looked
798         up window for caching purposes. This is needed, so
799         that Leave messages get the correct window.
800
801 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
802
803         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
804         Fix warning created by people mucking around
805         with the gsource API.
806
807         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
808         Change mapping between GIOCondition and GdkInputCondition
809         to match the way the Linux kernel does it. This should
810         fix problems where closed pipes were no longer signalling
811         GDK_INPUT_READ on systems with a native poll().
812
813 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
814
815         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
816         explicitly for the string "None" - it is in the XPM
817         spec and some servers treat unknown colors in odd ways
818         (like asking the user!)
819
820 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
821
822         * gdk/gdkevents.c: made "->" into a "." of previous change so
823         it compiles
824
825 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
826
827         * gdk/gdkevents.c (gdk_compress_exposures): Set the
828         window field of the event structure before calling
829         user filters.
830
831 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
832
833         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
834         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
835
836 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
837
838         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
839         intermediate text property - prevents major memory
840         leak when gdk_use_mb.
841         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
842
843 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
844
845         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
846         gtk-a-higuti-990322-[0-3]
847
848         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
849         sizeof(wchar_t) != sizeof (GdkWChar)
850
851         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
852         that was causing -DX_LOCALE not to work.
853
854         * gtk/gtkrc.c (gtk_rc_init):
855         X_LOCALE will never have LC_MESSAGES defined
856
857         * gdk/gdk.c (gdk_init_check):
858         Remove --xim-preedit and --xim-status from argv properly.
859
860         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
861         that the client window is present on the X server
862         before we pass it to the input method.
863
864 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
865
866         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
867         if --display is specified on the command line, than
868         the drag window will not be created on that display.
869         
870 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
871
872         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
873         lookups with only_if_exists == TRUE were inserting
874         bogus values into the atom cache.
875
876 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
877
878         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
879         then reset it to NULL.
880
881         * gdk/gdkcolor.c:
882         (gdk_colors_free): 
883         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
884         key for g_hash_table_remove() in both functions, this prevents us
885         from accessing possibly uninitialized portions of a GdkColor structure
886         where we are only interested in its pixel value.
887
888 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
889
890         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
891         font hash table, if we have a GdkFontPrivate entry for this font
892         already, simply increment its reference count, provided by Olaf Dietsche
893         <olaf.dietsche+list.gtk@netcologne.de>.
894
895 1999-09-21  Tor Lillqvist  <tml@iki.fi>
896
897         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
898         just to be sure.
899
900         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
901         unused variables, leftovers from the X11 version.
902
903         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
904
905         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
906         downcase fields on X11.
907
908 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
909         
910         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
911         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
912
913 1999-09-17  Tor Lillqvist  <tml@iki.fi>
914
915         * gdk/win32/gdk.def: Add gdk_threads_mutex.
916
917         * gtk/makefile.msc: Correct path to libintl.
918
919         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
920         use of gint vs. int, and gint vs. gboolean in headers and
921         definitions. Use GtkType for the *_get_type functions. Note that
922         these changes preserve binary compatibility.
923
924         * gdk/gdk.c
925         * gdk/win32/gdk.c
926         * gdk/gdk.h: Fix inconsistencies: gint vs int.
927
928         * gtk/gtkmain.c
929         * gtk/gtkclist.c
930         * gtk/gtkmenufactory.c
931         * gtk/gtknotebook.c
932         * gtk/gtkwidget.c: Fix inconsistencies, also gint
933         vs. gboolean.
934
935         * gtk/gtkcolorsel.[ch]
936         * gtk/gtkcombo.[ch]
937         * gtk/gtkdrawingarea.[ch]
938         * gtk/gtkgamma.[ch]
939         * gtk/gtkhandlebox.[ch]
940         * gtk/gtkhpaned.[ch]
941         * gtk/gtkhruler.[ch]
942         * gtk/gtkplug.[ch]
943         * gtk/gtkpreview.[ch]
944         * gtk/gtkruler.[ch]
945         * gtk/gtksocket.[ch]
946         * gtk/gtkstatusbar.[ch]
947         * gtk/gtktoolbar.[ch]
948         * gtk/gtkvbbox.[ch]
949         * gtk/gtkvpaned.[ch]
950         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
951         functions.
952
953         * gtk/gtkgamma.h: Fix bug, missing () in call of
954         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
955
956 1999-09-14  Tor Lillqvist  <tml@iki.fi>
957
958         * gdk/gdkcolor.c (gdk_colormap_new)
959         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
960         colormap->colors was allocated twice.
961
962         * gdk/win32/gdk.c: Remove some unused stuff.
963
964         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
965         colormap.
966
967         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
968         * gtk/gtklabel.h (gtk_label_get_type)
969         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
970         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
971         in a couple of places, not guint.
972
973 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
974
975         * configure.in,po/et.po: added Estonian language file
976
977 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
978
979         * configure.in,po/da.po: added Danish file
980
981 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
982
983         * docs/gtkfaq.sgml: Minor FAQ Update
984
985 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
986
987         * docs/gtkfaq.sgml: FAQ update
988
989 1999-08-27  Tor Lillqvist  <tml@iki.fi>
990
991         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
992         way to get window contents continually refreshed while resizing. I
993         didn't like the effects myself, so it's not on by default.
994
995         * gdk/win32/gdkprivate.h: New flag variable
996         gdk_event_func_from_window_proc, FALSE by default.
997
998         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
999         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
1000         are passed --gdk-event-func-from-window-proc.
1001
1002         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
1003         and we have am event_func, call it instead of enqueing the event.
1004
1005 1999-08-23  Tor Lillqvist  <tml@iki.fi>
1006
1007         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
1008         Kelley: Set expose_count in GdkEventExposes correctly.
1009
1010         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
1011         MULTIPLE_WINDOW_CLASSES).
1012
1013         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
1014         for bug in NT, apparently NT *does* draw the end pixel, too, in
1015         LineTo with a one-pixel pen, so we don't have to do it ourselves.
1016
1017 1999-08-21  Tor Lillqvist  <tml@iki.fi>
1018
1019         Improvements by Hans Breuer: 
1020
1021         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
1022
1023         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
1024         CS_?REDRAW flags as they cause lots of (late) redraws when "show
1025         window contents while dragging" is turned on. Allocate at least
1026         one unique class for every GdkWindowType. If support for single
1027         window-specific icons is ever needed (eg. Dialog specific), every
1028         such window should get its own class.
1029
1030 1999-08-19  Tor Lillqvist  <tml@iki.fi>
1031
1032         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
1033         error that caused crashes.
1034
1035 1999-08-17  Tor Lillqvist  <tml@iki.fi>
1036
1037         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
1038         window, use ScrollWindowEx, and call UpdateWindow. This prevents
1039         bugs when for instance part of the window was outside the
1040         display. Thanks to Philippe Colantoni for finding and fixing this.
1041
1042 1999-08-16  Tor Lillqvist  <tml@iki.fi>
1043
1044         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
1045         endpoint calculations which were totally wrong. (A little RTFMing
1046         helps a lot ;-)
1047
1048         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
1049         from a separate directory, not from gettext, because of licensing
1050         issues (we want to use the LGPL version).
1051
1052         * README.win32: Mention the intl from glibc vs from gettext issue.
1053
1054 1999-08-13  Tor Lillqvist  <tml@iki.fi>
1055
1056         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
1057         in the key event handling: Now AltGr chars work again. Also,
1058         now Alt-digits are passed up as well as Control-digits.
1059         Pass keypad plus and minus as normal plus and minus.
1060
1061 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
1062
1063         * docs/gtkfaq.sgml: FAQ Update
1064
1065 1999-07-25  Tor Lillqvist  <tml@iki.fi>
1066
1067         * README.win32
1068         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
1069         the Wintab SDK.
1070
1071         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
1072         OK, but getting closer. Guard against bogus tilt data from Wacom
1073         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
1074         enable easier building without Wintab.
1075
1076         * gdk/win32/gdkinput.h
1077         * gdk/win32/gdkevents.c 
1078         * gdk/win32/gdkwindow.c: Minor changes related related to above.
1079         
1080         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
1081         code. As we have just one visual on Win32, no sense to have it in a
1082         table, and no need for the hash table.
1083
1084         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
1085         better on white background.
1086
1087 1999-07-21  Tor Lillqvist  <tml@iki.fi>
1088
1089         * README.win32: Update gcc build instructions. Mention gettext is
1090         GPL.
1091
1092         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
1093         supported cursor size with GetSystemMetrics.
1094
1095         * gdk/win32/gdkfont.c
1096         * gtk/gtkfontsel.c: Guard against some font weight and charset
1097         symbols being undefined (in mingw32 headers).
1098
1099         * gdk/win32/makefile.cygwin
1100         * gtk/makefile.cygwin
1101         * gtk/gtkthemes.c: No longer need to have differently named
1102         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
1103
1104 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
1105
1106         * docs/gtkfaq.sgml: Long awaited FAQ update.
1107
1108 1999-07-15  Tor Lillqvist  <tml@iki.fi>
1109
1110         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
1111         it. Obscure bit manipulation needed.
1112
1113         * gdk/win32/gdkevents.c: Logging.
1114         
1115         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
1116         style (file name include compiler name) for theme engines.
1117
1118 1999-07-13  Tor Lillqvist  <tml@iki.fi>
1119
1120         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
1121
1122         * gdk/win32/gdkevents.c: Fix long-standing bug in key
1123         events. The key.string wasn't zero-terminated, still we strdup'ed
1124         it in gdk_event_copy(). Synthesize crossing events for button
1125         events before possible propagation.
1126
1127         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
1128
1129         * gdk/win32/makefile.cygwin
1130         * gtk/makefile.cygwin: Use new DLL naming style for the
1131         GCC-compiled ones.
1132
1133         * gdk/win32/makefile.msc
1134         * gtk/makefile.msc: Cosmetics mostly.
1135
1136         * gtk/gtk.def: Add missing entry points.
1137
1138         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
1139
1140 1999-07-09  Tor Lillqvist  <tml@iki.fi>
1141
1142         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
1143         or height is zero. Don't print a warning if Pie or Arc fails, they
1144         always fail (?) for very narrow ellipses.
1145
1146         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
1147         the part or the destination window corresponding to source area
1148         outside of the source drawable's boundary.
1149
1150         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
1151         anything if less than two points.
1152
1153         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
1154         return NULL. Gtk cut-and-paste inside a single program works
1155         better this way. (It always gets the clipboard contents from
1156         Windows, not from its own copy, which is cleared anyway. I can't
1157         say I fully understand what happens... Emulating the X selection
1158         and property stuff is a bit of a mess.)
1159
1160         * gdk/win32/gdkevents.c
1161         * gdk/win32/gdkproperty.c: A bit more verbose logging.
1162
1163         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
1164         that never got deleted). Revamp gdk_region_shrink.
1165
1166         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
1167         after use.
1168
1169         * gtk/gtk.def: Add some missing entry points.
1170
1171         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
1172         component.
1173
1174 1999-07-04  Tor Lillqvist  <tml@iki.fi>
1175
1176         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
1177         Control-digits specially.
1178
1179 1999-07-03  Tor Lillqvist  <tml@iki.fi>
1180
1181         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
1182
1183 1999-06-28  Tor Lillqvist  <tml@iki.fi>
1184
1185         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
1186         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
1187         finding this.)
1188
1189 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
1190
1191         * gtk+.spec.in: Corrected some typos in files section.
1192         
1193 1999-06-15  Tor Lillqvist  <tml@iki.fi>
1194
1195         * README.win32: Mention using GNU gettext.
1196         * config.h.win32: Enable NLS stuff.
1197         * gtk/makefile.msc: Use GNU gettext.
1198         * gdk/win32/gdkdnd.c: Minor header reorg.
1199         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
1200         cosmetics.
1201         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
1202         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
1203
1204 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
1205
1206         * acinclude.m4
1207         * config.guess
1208         * config.status
1209         * ltconfig
1210         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
1211
1212 1999-05-30  Tor Lillqvist  <tml@iki.fi>
1213
1214         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
1215         SafeAdjustWindowRectEx. Don't override all calls to
1216         AdjustWindowRectEx by it, but use it only in two places: When
1217         creating a new top-level window and when moving a top-level
1218         window.
1219
1220         Use screen coordinate rectangle, not client rectangle, in
1221         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
1222         when we try to place a window so that the decoration (mainly,
1223         title bar) isn't visible.
1224
1225         These changes fix the bug that showed up for instance as the
1226         GIMP's saved top-level windows moving right and down (by an amount
1227         equal to the window decoration) for each session. This bug showed
1228         up also in testgtk's "Saved Position".
1229
1230         gdk_window_resize also redone a bit.
1231
1232 1999-05-25  Tor Lillqvist  <tml@iki.fi>
1233
1234         * gtk/testgtkrc: Add (commented out) Windows-style theme
1235         include line.
1236
1237         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
1238
1239 1999-05-18  Tor Lillqvist  <tml@iki.fi>
1240
1241         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
1242         gdkx.h to a gdk subdirectory, so that applications can include
1243         these with <gdk/*.h> without trouble.
1244
1245         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
1246         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
1247         have their bitmap destroyed.
1248
1249         * gdk/win32/gdk.def: Add gdk_root_parent.
1250
1251 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
1252
1253         * configure.in
1254           gtk-config.in
1255           ltconfig
1256           ltmain.sh     
1257           gtk/Makefile.am: changes to compile nicely (with xlib) 
1258           on BeOS
1259
1260 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
1261
1262         * acinclude.m4
1263         * config.guess
1264         * config.sub
1265         * ltconfig
1266         * ltmain.sh: upgrade to libtool 1.3
1267
1268 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
1269
1270         * gtk/gtkclist.c:
1271         * gtk/gtkctree.c: merges from gtk-1-2
1272
1273 1999-04-25  Tor Lillqvist  <tml@iki.fi>
1274
1275         Support added for building using a GNU toolchain on Win32,
1276         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
1277
1278         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
1279         * config.h.win32: Changes for gcc.
1280         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
1281         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
1282         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
1283         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
1284         Protect shl stuff unavaiilable with mingw32 headers.
1285         * gdk/win32/gdkevents.c: Fix typo.
1286         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
1287         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
1288         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
1289         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
1290         the mingw32 headers.
1291         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
1292         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
1293         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
1294         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
1295         Test for NATIVE_WIN32, not _MSC_VER.
1296         * gtk/gtkmain.c: No use warning about developer version on Win32,
1297         there aren't any non-developer versions anyhow.
1298         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
1299         * gtk/makefile.msc: Use pthread from another directory. Minor other
1300         changes. 
1301
1302 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
1303
1304         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
1305           default filter from the list
1306
1307 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
1308
1309         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
1310          when gtk_widget_grab_default() is called for a widget that
1311          is not within a GtkWindow.
1312
1313 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
1314
1315         * docs/gtk_tut.sgml, examples/clist.c: use a
1316           scrolled window in the clist example. Minor
1317           tutorial fixes.
1318
1319 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
1320
1321         * docs/gtk_tut.sgml: Style check from David King
1322           <dking@youvegotmail.net>
1323
1324 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
1325
1326         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
1327         compile with unknown value of GDK_WINDOWING
1328
1329 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
1330
1331         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
1332         after the rule is fired.
1333         (install-exec-local): Install gdkconfig.h only if the contents are
1334         different from the currently installed gdkconfig.h.
1335
1336 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
1337
1338         * gdk/Makefile.am (configexecincludedir): Rename from 
1339         configincludedir so that gdkconfig.h will be installed 
1340         as part of `make install-exec'. 
1341
1342 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
1343
1344         * acinclude.m4
1345         * config.guess
1346         * config.sub
1347         * ltconfig
1348         * ltmain.sh: upgrade to libtool 1.2f
1349
1350         * autogen.sh: libtool is not required to autogen gtk+
1351
1352         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
1353         needed)
1354
1355 1999-03-18  Tor Lillqvist  <tml@iki.fi>
1356
1357         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
1358         declaring gdk variables exported/imported from the DLL. New image
1359         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
1360         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
1361         GDK_DRAG_PROTO_OLE2.
1362
1363         * gdk/gdk.h: Merge in Win32 version: Two new functions,
1364         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
1365         declared only for the Win32 version, but could be in the X11
1366         version as well. (Needed for a Xlib-less gdk_imlib.)
1367         gdk_color_hash should have only one parameter. Declare
1368         gdk_threads_mutex with GDKVAR.
1369         
1370         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
1371         just one parameter.
1372
1373         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
1374         per pixel, not bits.
1375
1376         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
1377         Fetch bpp (which means bits-per-pixel here) from another place on
1378         Win32. Accept also depth==32 (which we might get on Win32) with
1379         bpp==32.
1380
1381         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
1382         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
1383         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
1384         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
1385         in the backend-dependent directory, not in the common gdk
1386         directory.
1387
1388         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
1389         headers.
1390
1391 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
1392
1393         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
1394         want to use the Gtk+ devel version (which is true, and yes - even i am
1395         currently working with the 1.2.x branch). so everyone reading this, you
1396         probably want to issue
1397         cvs checkout -r glib-1-2 glib
1398         and
1399         cvs checkout -r gtk-1-2 gtk+
1400         as your next two comands.
1401
1402 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
1403
1404         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
1405         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
1406
1407         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
1408         file. strongly deprecated the GTK_HAVE_* macros, we provide
1409         GTK_CHECK_VERSION() for people that need to check for certain
1410         Gtk+ versions.
1411
1412         * gtk/gtkcompat.h: removed this from CVS.
1413         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
1414         idea right from the start, it just didn't seem like that back then.
1415
1416 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
1417
1418         * merges from gtk-1-2:
1419
1420 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
1421
1422         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
1423         item factory class has been created.
1424         (gtk_item_factory_parse_rc): likewise.
1425
1426         * gtk/gtkmenu.c:
1427         keep proper references for old_active_menu_item.
1428         (gtk_menu_reparent): unset the usize of the new parent,
1429         so the menu can sanely be size requested and we don't get nasty screen
1430         artefacts upon next reparentation.
1431         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
1432         enter notify. only synthesize enter notifies if the pointer really is
1433         inside the event window.
1434         (gtk_menu_popdown): use gtk_menu_shell_deselect().
1435         (gtk_menu_popup): move the background setting stuff into
1436         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
1437
1438         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
1439         gtk_menu_shell_select_item() to select the new item.
1440         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
1441         do the right thing for deselection as well.
1442
1443 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
1444
1445         * gtk/gtkwidget.[hc]:
1446         (gtk_widget_accelerators_locked): return whether a widget's accelerators
1447         are locked.
1448
1449         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
1450         existing accelerators if the widget's accelerators are locked.
1451
1452 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
1453
1454         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
1455
1456         * gtk/gtkmenu.c: truely forward key press and key release events to
1457         the menu widget from the toplevel or tearoff window. we can't simply
1458         connect to that, we need to stop further processing of the events as
1459         well.
1460
1461 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
1462
1463         * gtk/gtkmenu.c:
1464         (gtk_menu_key_press): pass event->keyval, event->state to
1465         gtk_accelerator_valid, instead of event->keyval twice.
1466         refuse to install single letter accelerators for menus that use
1467         single letter shortcuts.
1468
1469         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
1470         gtk_menu_ensure_uline_accel_group().
1471
1472         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
1473         which will always return an uline accel group, made
1474         gtk_menu_get_uline_accel_group() return NULL if the group isn't
1475         yet created.
1476
1477 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
1478
1479         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
1480
1481         * gtk/gtkclist.c (gtk_clist_column_title_passive):
1482         Leave button sensitive, trap  button_press, button_release,
1483         motion_notify, enter_notify and leave_notify events instead.
1484         (gtk_clist_column_title_active): disconnect event handler.
1485         (gtk_clist_drag_data_get): fixed memory leak. Reported by
1486         Guillaume Laurent <glaurent@worldnet.fr>
1487
1488 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
1489
1490         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
1491         width/height mixups.
1492
1493         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
1494         if needed.
1495
1496 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
1497
1498         * gtk/testgtk.c (create_item_factory): unref the item factory after
1499         window's destruction.
1500
1501         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
1502         count on the menu shell around the menu item's activation, since the
1503         signal emission may cause menu shell destruction.
1504
1505         * gtk/gtkitemfactory.c:
1506         the previous code leaked one accel group per menu. we use
1507         gtk_menu_get_uline_accel_group() now to fix that, and with that
1508         also create the underline accelerator group of the menus only if
1509         required (i.e. an underline accelerator has been specified).
1510         (gtk_item_factory_construct):
1511         (gtk_item_factory_create_item): removed code that would create an
1512         extra accel group for the menu (and leak references).
1513         (gtk_item_factory_create_item): adapted the underline accelerator
1514         installation code to properly feature gtk_menu_get_uline_accel_group().
1515
1516         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
1517         menu->accel_group, this may return NULL if the accelerator group
1518         hasn't been set yet.
1519         added gtk_menu_get_uline_accel_group() to retrive the underline
1520         accelerator group of the menu, this will be created on demand
1521         and proper care is taken about its reference count.
1522
1523         * gtk/gtkitemfactory.h:
1524         * gtk/gtkitemfactory.c:
1525         dumped the approach of keeping a widgets by action list on the
1526         factory since the factory<->widget destroy negotiation didn't work
1527         and would be hard to get going at all. instead we keep a list of
1528         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
1529         persistant throughout a program's life time).
1530         also, i removed the static const gchar *key_* variables, and made
1531         them inline strings (they weren't actually used anyways).
1532         (gtk_item_factory_add_item): update ifactory->items.
1533         (gtk_item_factory_destroy): destroy ifactory->items (and remove
1534         the item factory pointer from the remaining ifactory widgets).
1535         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
1536         list to find the widget.
1537         (gtk_item_factory_get_item): new function that works around
1538         gtk_item_factory_get_widget() limitations, this function will only
1539         return menu items, even for <Branch> entries.
1540
1541 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
1542
1543         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
1544         font hash table, if we have a GdkFontPrivate entry for this font
1545         already, simply increment its reference count, provided by Olaf Dietsche
1546         <olaf.dietsche+list.gtk@netcologne.de>.
1547
1548         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
1549         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
1550
1551 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
1552
1553         * gtk/gtkcontainer.c:
1554         (gtk_container_add_with_args):
1555         (gtk_container_addv):
1556         (gtk_container_add): before adding a child to a conatiner, make sure
1557         it is (default) constructed, this is neccessary because under certain
1558         circumstances the child will get relized and mapped immediatedly, in
1559         which case it has to be constructed already.
1560
1561 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
1562
1563         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
1564         values > 1 as TRUE also.
1565
1566 1999-03-16  Tor Lillqvist  <tml@iki.fi>
1567
1568         * README.win32: New file.
1569                 
1570         * configure.in: Check for lstat.
1571
1572         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
1573         completeness.
1574
1575         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
1576
1577         * gtk/gtk.def: Removed CRs.
1578
1579         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
1580         ..\gdk\win32).
1581
1582         * gdk/win32/makefile.msc: Correct upwards relative paths.
1583         
1584 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
1585
1586         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
1587           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
1588           it was connecting a void function to expose_event and the int
1589           returning function to the draw signal
1590
1591 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
1592
1593         * configure.in:
1594         Use correct path to libgmodule.la when ref'ing uninstalled copy
1595         of glib.  (Already in stable branch, Bug #417)
1596
1597 1999-03-15  Tor Lillqvist  <tml@iki.fi>
1598
1599         Win32 merge and general portability stuff:
1600                 
1601         * acconfig.h,configure.in: Check for <sys/time.h>.
1602
1603         * gdk/win32: New directory (actually, been there for a while).
1604         
1605         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
1606         NATIVE_WIN32, and use these. Always case fold on Win32. No
1607         backslashed escapes on native Win32.
1608
1609         * gtk/{gtk.def,makefile.msc}: New files.
1610
1611         * gtk/Makefile.am: Add above new files.
1612         
1613         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
1614         instead of <strings.h>.
1615
1616         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
1617         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
1618         <unistd.h> appropriately.
1619
1620         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
1621         Use ABS() (from <glib.h>) instead of abs().
1622         
1623         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
1624         of gtk (and thus glib) headers, so that WIN32 will be
1625         defined. With MS C, include <direct.h> for mkdir prototype.
1626
1627         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
1628         some casts, needed by MS C.
1629
1630         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
1631         implemented).
1632
1633         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
1634         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
1635         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
1636
1637         * gtk/gtkmain.h: Mark variables for export/import on Win32.
1638                 
1639         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
1640         the event is not a hint, or its window is not the slider. Needed
1641         on Win32, at least.
1642
1643         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
1644         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
1645         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
1646         a subdirectory of the Windows directory as gtk system
1647         configuration directory.
1648
1649         * gtk/gtkselection.c: No chunks on Win32.
1650
1651         * gtk/gtksocket.c: Not implemented on Win32.
1652
1653         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
1654
1655         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
1656
1657         * gtk/maketypes.awk: Declare variables with a macro that expands to
1658         necessary export/import magic in the case of Win32.
1659                 
1660         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
1661
1662 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
1663
1664         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
1665         since those were meant only for gdki18n.h.  
1666         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
1667         for widechar tests.
1668         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
1669
1670 1999-03-13  Tor Lillqvist  <tml@iki.fi>
1671
1672         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
1673         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
1674
1675         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
1676         installed) to CFLAGS.
1677
1678         * gdk/Makefile.am: Add rules for gdkconfig.h.
1679
1680         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
1681         APIs.
1682
1683         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
1684         gdkx.h anyway when compiling for X11.
1685         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
1686         general): Merge in Win32 version.
1687         
1688         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
1689         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
1690         expansion (if we don't have HAVE_PWD_H), allow for drive
1691         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
1692         included code from Craig Setera's port to Win32 (the one that uses
1693         X11, and the cygwin dll), even if it probably will be abandoned.
1694
1695         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
1696         the user entered one herself.  This way one can complete *.h and
1697         don't get matches on any .help files, for instance.
1698         
1699 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
1700
1701         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
1702         font hash table, if we have a GdkFontPrivate entry for this font
1703         already, simply increment its reference count, provided by Olaf Dietsche
1704         <olaf.dietsche+list.gtk@netcologne.de>.
1705
1706         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
1707         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
1708
1709 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
1710
1711         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
1712         the number of calls to gdk_draw_point() (and thus to X) by
1713         clipping the points by hand.
1714
1715         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
1716         the clip parameter.
1717         (gtk_handle_box_paint): Only paint the handle if the expose area
1718         intersects it.
1719
1720 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
1721
1722         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
1723
1724 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
1725
1726         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
1727         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
1728
1729 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
1730
1731         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
1732          textmode (O_TEXT) for OS/2 version.
1733
1734 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
1735
1736         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
1737         GtkSpinButton, "input" and "output", to make the output more flexible.
1738         The user has to provide a mapping between adjustment->value and the
1739         output string (and vice versa, if the spin button is editable). 
1740         See testgtk for examples.
1741
1742 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
1743
1744         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
1745         new one.
1746         
1747         * configure.in: set gtk+ version to 1.3.0.