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