]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Add gdk_threads_mutex.
[~andy/gtk] / ChangeLog.pre-2-10
1 1999-09-17  Tor Lillqvist  <tml@iki.fi>
2
3         * gdk/win32/gdk.def: Add gdk_threads_mutex.
4
5         * gtk/makefile.msc: Correct path to libintl.
6
7         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
8         use of gint vs. int, and gint vs. gboolean in headers and
9         definitions. Use GtkType for the *_get_type functions. Note that
10         these changes preserve binary compatibility.
11
12         * gdk/gdk.c
13         * gdk/win32/gdk.c
14         * gdk/gdk.h: Fix inconsistencies: gint vs int.
15
16         * gtk/gtkmain.c
17         * gtk/gtkclist.c
18         * gtk/gtkmenufactory.c
19         * gtk/gtknotebook.c
20         * gtk/gtkwidget.c: Fix inconsistencies, also gint
21         vs. gboolean.
22
23         * gtk/gtkcolorsel.[ch]
24         * gtk/gtkcombo.[ch]
25         * gtk/gtkdrawingarea.[ch]
26         * gtk/gtkgamma.[ch]
27         * gtk/gtkhandlebox.[ch]
28         * gtk/gtkhpaned.[ch]
29         * gtk/gtkhruler.[ch]
30         * gtk/gtkplug.[ch]
31         * gtk/gtkpreview.[ch]
32         * gtk/gtkruler.[ch]
33         * gtk/gtksocket.[ch]
34         * gtk/gtkstatusbar.[ch]
35         * gtk/gtktoolbar.[ch]
36         * gtk/gtkvbbox.[ch]
37         * gtk/gtkvpaned.[ch]
38         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
39         functions.
40
41         * gtk/gtkgamma.h: Fix bug, missing () in call of
42         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
43
44 1999-09-14  Tor Lillqvist  <tml@iki.fi>
45
46         * gdk/gdkcolor.c (gdk_colormap_new)
47         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
48         colormap->colors was allocated twice.
49
50         * gdk/win32/gdk.c: Remove some unused stuff.
51
52         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
53         colormap.
54
55         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
56         * gtk/gtklabel.h (gtk_label_get_type)
57         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
58         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
59         in a couple of places, not guint.
60
61 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
62
63         * configure.in,po/et.po: added Estonian language file
64
65 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
66
67         * configure.in,po/da.po: added Danish file
68
69 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
70
71         * docs/gtkfaq.sgml: Minor FAQ Update
72
73 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
74
75         * docs/gtkfaq.sgml: FAQ update
76
77 1999-08-27  Tor Lillqvist  <tml@iki.fi>
78
79         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
80         way to get window contents continually refreshed while resizing. I
81         didn't like the effects myself, so it's not on by default.
82
83         * gdk/win32/gdkprivate.h: New flag variable
84         gdk_event_func_from_window_proc, FALSE by default.
85
86         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
87         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
88         are passed --gdk-event-func-from-window-proc.
89
90         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
91         and we have am event_func, call it instead of enqueing the event.
92
93 1999-08-23  Tor Lillqvist  <tml@iki.fi>
94
95         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
96         Kelley: Set expose_count in GdkEventExposes correctly.
97
98         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
99         MULTIPLE_WINDOW_CLASSES).
100
101         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
102         for bug in NT, apparently NT *does* draw the end pixel, too, in
103         LineTo with a one-pixel pen, so we don't have to do it ourselves.
104
105 1999-08-21  Tor Lillqvist  <tml@iki.fi>
106
107         Improvements by Hans Breuer: 
108
109         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
110
111         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
112         CS_?REDRAW flags as they cause lots of (late) redraws when "show
113         window contents while dragging" is turned on. Allocate at least
114         one unique class for every GdkWindowType. If support for single
115         window-specific icons is ever needed (eg. Dialog specific), every
116         such window should get its own class.
117
118 1999-08-19  Tor Lillqvist  <tml@iki.fi>
119
120         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
121         error that caused crashes.
122
123 1999-08-17  Tor Lillqvist  <tml@iki.fi>
124
125         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
126         window, use ScrollWindowEx, and call UpdateWindow. This prevents
127         bugs when for instance part of the window was outside the
128         display. Thanks to Philippe Colantoni for finding and fixing this.
129
130 1999-08-16  Tor Lillqvist  <tml@iki.fi>
131
132         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
133         endpoint calculations which were totally wrong. (A little RTFMing
134         helps a lot ;-)
135
136         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
137         from a separate directory, not from gettext, because of licensing
138         issues (we want to use the LGPL version).
139
140         * README.win32: Mention the intl from glibc vs from gettext issue.
141
142 1999-08-13  Tor Lillqvist  <tml@iki.fi>
143
144         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
145         in the key event handling: Now AltGr chars work again. Also,
146         now Alt-digits are passed up as well as Control-digits.
147         Pass keypad plus and minus as normal plus and minus.
148
149 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
150
151         * docs/gtkfaq.sgml: FAQ Update
152
153 1999-07-25  Tor Lillqvist  <tml@iki.fi>
154
155         * README.win32
156         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
157         the Wintab SDK.
158
159         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
160         OK, but getting closer. Guard against bogus tilt data from Wacom
161         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
162         enable easier building without Wintab.
163
164         * gdk/win32/gdkinput.h
165         * gdk/win32/gdkevents.c 
166         * gdk/win32/gdkwindow.c: Minor changes related related to above.
167         
168         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
169         code. As we have just one visual on Win32, no sense to have it in a
170         table, and no need for the hash table.
171
172         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
173         better on white background.
174
175 1999-07-21  Tor Lillqvist  <tml@iki.fi>
176
177         * README.win32: Update gcc build instructions. Mention gettext is
178         GPL.
179
180         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
181         supported cursor size with GetSystemMetrics.
182
183         * gdk/win32/gdkfont.c
184         * gtk/gtkfontsel.c: Guard against some font weight and charset
185         symbols being undefined (in mingw32 headers).
186
187         * gdk/win32/makefile.cygwin
188         * gtk/makefile.cygwin
189         * gtk/gtkthemes.c: No longer need to have differently named
190         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
191
192 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
193
194         * docs/gtkfaq.sgml: Long awaited FAQ update.
195
196 1999-07-15  Tor Lillqvist  <tml@iki.fi>
197
198         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
199         it. Obscure bit manipulation needed.
200
201         * gdk/win32/gdkevents.c: Logging.
202         
203         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
204         style (file name include compiler name) for theme engines.
205
206 1999-07-13  Tor Lillqvist  <tml@iki.fi>
207
208         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
209
210         * gdk/win32/gdkevents.c: Fix long-standing bug in key
211         events. The key.string wasn't zero-terminated, still we strdup'ed
212         it in gdk_event_copy(). Synthesize crossing events for button
213         events before possible propagation.
214
215         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
216
217         * gdk/win32/makefile.cygwin
218         * gtk/makefile.cygwin: Use new DLL naming style for the
219         GCC-compiled ones.
220
221         * gdk/win32/makefile.msc
222         * gtk/makefile.msc: Cosmetics mostly.
223
224         * gtk/gtk.def: Add missing entry points.
225
226         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
227
228 1999-07-09  Tor Lillqvist  <tml@iki.fi>
229
230         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
231         or height is zero. Don't print a warning if Pie or Arc fails, they
232         always fail (?) for very narrow ellipses.
233
234         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
235         the part or the destination window corresponding to source area
236         outside of the source drawable's boundary.
237
238         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
239         anything if less than two points.
240
241         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
242         return NULL. Gtk cut-and-paste inside a single program works
243         better this way. (It always gets the clipboard contents from
244         Windows, not from its own copy, which is cleared anyway. I can't
245         say I fully understand what happens... Emulating the X selection
246         and property stuff is a bit of a mess.)
247
248         * gdk/win32/gdkevents.c
249         * gdk/win32/gdkproperty.c: A bit more verbose logging.
250
251         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
252         that never got deleted). Revamp gdk_region_shrink.
253
254         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
255         after use.
256
257         * gtk/gtk.def: Add some missing entry points.
258
259         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
260         component.
261
262 1999-07-04  Tor Lillqvist  <tml@iki.fi>
263
264         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
265         Control-digits specially.
266
267 1999-07-03  Tor Lillqvist  <tml@iki.fi>
268
269         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
270
271 1999-06-28  Tor Lillqvist  <tml@iki.fi>
272
273         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
274         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
275         finding this.)
276
277 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
278
279         * gtk+.spec.in: Corrected some typos in files section.
280         
281 1999-06-15  Tor Lillqvist  <tml@iki.fi>
282
283         * README.win32: Mention using GNU gettext.
284         * config.h.win32: Enable NLS stuff.
285         * gtk/makefile.msc: Use GNU gettext.
286         * gdk/win32/gdkdnd.c: Minor header reorg.
287         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
288         cosmetics.
289         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
290         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
291
292 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
293
294         * acinclude.m4
295         * config.guess
296         * config.status
297         * ltconfig
298         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
299
300 1999-05-30  Tor Lillqvist  <tml@iki.fi>
301
302         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
303         SafeAdjustWindowRectEx. Don't override all calls to
304         AdjustWindowRectEx by it, but use it only in two places: When
305         creating a new top-level window and when moving a top-level
306         window.
307
308         Use screen coordinate rectangle, not client rectangle, in
309         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
310         when we try to place a window so that the decoration (mainly,
311         title bar) isn't visible.
312
313         These changes fix the bug that showed up for instance as the
314         GIMP's saved top-level windows moving right and down (by an amount
315         equal to the window decoration) for each session. This bug showed
316         up also in testgtk's "Saved Position".
317
318         gdk_window_resize also redone a bit.
319
320 1999-05-25  Tor Lillqvist  <tml@iki.fi>
321
322         * gtk/testgtkrc: Add (commented out) Windows-style theme
323         include line.
324
325         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
326
327 1999-05-18  Tor Lillqvist  <tml@iki.fi>
328
329         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
330         gdkx.h to a gdk subdirectory, so that applications can include
331         these with <gdk/*.h> without trouble.
332
333         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
334         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
335         have their bitmap destroyed.
336
337         * gdk/win32/gdk.def: Add gdk_root_parent.
338
339 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
340
341         * configure.in
342           gtk-config.in
343           ltconfig
344           ltmain.sh     
345           gtk/Makefile.am: changes to compile nicely (with xlib) 
346           on BeOS
347
348 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
349
350         * acinclude.m4
351         * config.guess
352         * config.sub
353         * ltconfig
354         * ltmain.sh: upgrade to libtool 1.3
355
356 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
357
358         * gtk/gtkclist.c:
359         * gtk/gtkctree.c: merges from gtk-1-2
360
361 1999-04-25  Tor Lillqvist  <tml@iki.fi>
362
363         Support added for building using a GNU toolchain on Win32,
364         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
365
366         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
367         * config.h.win32: Changes for gcc.
368         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
369         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
370         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
371         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
372         Protect shl stuff unavaiilable with mingw32 headers.
373         * gdk/win32/gdkevents.c: Fix typo.
374         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
375         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
376         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
377         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
378         the mingw32 headers.
379         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
380         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
381         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
382         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
383         Test for NATIVE_WIN32, not _MSC_VER.
384         * gtk/gtkmain.c: No use warning about developer version on Win32,
385         there aren't any non-developer versions anyhow.
386         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
387         * gtk/makefile.msc: Use pthread from another directory. Minor other
388         changes. 
389
390 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
391
392         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
393           default filter from the list
394
395 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
396
397         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
398          when gtk_widget_grab_default() is called for a widget that
399          is not within a GtkWindow.
400
401 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
402
403         * docs/gtk_tut.sgml, examples/clist.c: use a
404           scrolled window in the clist example. Minor
405           tutorial fixes.
406
407 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
408
409         * docs/gtk_tut.sgml: Style check from David King
410           <dking@youvegotmail.net>
411
412 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
413
414         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
415         compile with unknown value of GDK_WINDOWING
416
417 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
418
419         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
420         after the rule is fired.
421         (install-exec-local): Install gdkconfig.h only if the contents are
422         different from the currently installed gdkconfig.h.
423
424 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
425
426         * gdk/Makefile.am (configexecincludedir): Rename from 
427         configincludedir so that gdkconfig.h will be installed 
428         as part of `make install-exec'. 
429
430 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
431
432         * acinclude.m4
433         * config.guess
434         * config.sub
435         * ltconfig
436         * ltmain.sh: upgrade to libtool 1.2f
437
438         * autogen.sh: libtool is not required to autogen gtk+
439
440         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
441         needed)
442
443 1999-03-18  Tor Lillqvist  <tml@iki.fi>
444
445         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
446         declaring gdk variables exported/imported from the DLL. New image
447         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
448         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
449         GDK_DRAG_PROTO_OLE2.
450
451         * gdk/gdk.h: Merge in Win32 version: Two new functions,
452         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
453         declared only for the Win32 version, but could be in the X11
454         version as well. (Needed for a Xlib-less gdk_imlib.)
455         gdk_color_hash should have only one parameter. Declare
456         gdk_threads_mutex with GDKVAR.
457         
458         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
459         just one parameter.
460
461         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
462         per pixel, not bits.
463
464         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
465         Fetch bpp (which means bits-per-pixel here) from another place on
466         Win32. Accept also depth==32 (which we might get on Win32) with
467         bpp==32.
468
469         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
470         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
471         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
472         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
473         in the backend-dependent directory, not in the common gdk
474         directory.
475
476         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
477         headers.
478
479 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
480
481         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
482         want to use the Gtk+ devel version (which is true, and yes - even i am
483         currently working with the 1.2.x branch). so everyone reading this, you
484         probably want to issue
485         cvs checkout -r glib-1-2 glib
486         and
487         cvs checkout -r gtk-1-2 gtk+
488         as your next two comands.
489
490 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
491
492         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
493         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
494
495         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
496         file. strongly deprecated the GTK_HAVE_* macros, we provide
497         GTK_CHECK_VERSION() for people that need to check for certain
498         Gtk+ versions.
499
500         * gtk/gtkcompat.h: removed this from CVS.
501         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
502         idea right from the start, it just didn't seem like that back then.
503
504 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
505
506         * merges from gtk-1-2:
507
508 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
509
510         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
511         item factory class has been created.
512         (gtk_item_factory_parse_rc): likewise.
513
514         * gtk/gtkmenu.c:
515         keep proper references for old_active_menu_item.
516         (gtk_menu_reparent): unset the usize of the new parent,
517         so the menu can sanely be size requested and we don't get nasty screen
518         artefacts upon next reparentation.
519         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
520         enter notify. only synthesize enter notifies if the pointer really is
521         inside the event window.
522         (gtk_menu_popdown): use gtk_menu_shell_deselect().
523         (gtk_menu_popup): move the background setting stuff into
524         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
525
526         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
527         gtk_menu_shell_select_item() to select the new item.
528         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
529         do the right thing for deselection as well.
530
531 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
532
533         * gtk/gtkwidget.[hc]:
534         (gtk_widget_accelerators_locked): return whether a widget's accelerators
535         are locked.
536
537         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
538         existing accelerators if the widget's accelerators are locked.
539
540 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
541
542         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
543
544         * gtk/gtkmenu.c: truely forward key press and key release events to
545         the menu widget from the toplevel or tearoff window. we can't simply
546         connect to that, we need to stop further processing of the events as
547         well.
548
549 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
550
551         * gtk/gtkmenu.c:
552         (gtk_menu_key_press): pass event->keyval, event->state to
553         gtk_accelerator_valid, instead of event->keyval twice.
554         refuse to install single letter accelerators for menus that use
555         single letter shortcuts.
556
557         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
558         gtk_menu_ensure_uline_accel_group().
559
560         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
561         which will always return an uline accel group, made
562         gtk_menu_get_uline_accel_group() return NULL if the group isn't
563         yet created.
564
565 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
566
567         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
568
569         * gtk/gtkclist.c (gtk_clist_column_title_passive):
570         Leave button sensitive, trap  button_press, button_release,
571         motion_notify, enter_notify and leave_notify events instead.
572         (gtk_clist_column_title_active): disconnect event handler.
573         (gtk_clist_drag_data_get): fixed memory leak. Reported by
574         Guillaume Laurent <glaurent@worldnet.fr>
575
576 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
577
578         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
579         width/height mixups.
580
581         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
582         if needed.
583
584 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
585
586         * gtk/testgtk.c (create_item_factory): unref the item factory after
587         window's destruction.
588
589         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
590         count on the menu shell around the menu item's activation, since the
591         signal emission may cause menu shell destruction.
592
593         * gtk/gtkitemfactory.c:
594         the previous code leaked one accel group per menu. we use
595         gtk_menu_get_uline_accel_group() now to fix that, and with that
596         also create the underline accelerator group of the menus only if
597         required (i.e. an underline accelerator has been specified).
598         (gtk_item_factory_construct):
599         (gtk_item_factory_create_item): removed code that would create an
600         extra accel group for the menu (and leak references).
601         (gtk_item_factory_create_item): adapted the underline accelerator
602         installation code to properly feature gtk_menu_get_uline_accel_group().
603
604         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
605         menu->accel_group, this may return NULL if the accelerator group
606         hasn't been set yet.
607         added gtk_menu_get_uline_accel_group() to retrive the underline
608         accelerator group of the menu, this will be created on demand
609         and proper care is taken about its reference count.
610
611         * gtk/gtkitemfactory.h:
612         * gtk/gtkitemfactory.c:
613         dumped the approach of keeping a widgets by action list on the
614         factory since the factory<->widget destroy negotiation didn't work
615         and would be hard to get going at all. instead we keep a list of
616         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
617         persistant throughout a program's life time).
618         also, i removed the static const gchar *key_* variables, and made
619         them inline strings (they weren't actually used anyways).
620         (gtk_item_factory_add_item): update ifactory->items.
621         (gtk_item_factory_destroy): destroy ifactory->items (and remove
622         the item factory pointer from the remaining ifactory widgets).
623         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
624         list to find the widget.
625         (gtk_item_factory_get_item): new function that works around
626         gtk_item_factory_get_widget() limitations, this function will only
627         return menu items, even for <Branch> entries.
628
629 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
630
631         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
632         font hash table, if we have a GdkFontPrivate entry for this font
633         already, simply increment its reference count, provided by Olaf Dietsche
634         <olaf.dietsche+list.gtk@netcologne.de>.
635
636         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
637         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
638
639 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
640
641         * gtk/gtkcontainer.c:
642         (gtk_container_add_with_args):
643         (gtk_container_addv):
644         (gtk_container_add): before adding a child to a conatiner, make sure
645         it is (default) constructed, this is neccessary because under certain
646         circumstances the child will get relized and mapped immediatedly, in
647         which case it has to be constructed already.
648
649 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
650
651         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
652         values > 1 as TRUE also.
653
654 1999-03-16  Tor Lillqvist  <tml@iki.fi>
655
656         * README.win32: New file.
657                 
658         * configure.in: Check for lstat.
659
660         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
661         completeness.
662
663         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
664
665         * gtk/gtk.def: Removed CRs.
666
667         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
668         ..\gdk\win32).
669
670         * gdk/win32/makefile.msc: Correct upwards relative paths.
671         
672 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
673
674         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
675           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
676           it was connecting a void function to expose_event and the int
677           returning function to the draw signal
678
679 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
680
681         * configure.in:
682         Use correct path to libgmodule.la when ref'ing uninstalled copy
683         of glib.  (Already in stable branch, Bug #417)
684
685 1999-03-15  Tor Lillqvist  <tml@iki.fi>
686
687         Win32 merge and general portability stuff:
688                 
689         * acconfig.h,configure.in: Check for <sys/time.h>.
690
691         * gdk/win32: New directory (actually, been there for a while).
692         
693         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
694         NATIVE_WIN32, and use these. Always case fold on Win32. No
695         backslashed escapes on native Win32.
696
697         * gtk/{gtk.def,makefile.msc}: New files.
698
699         * gtk/Makefile.am: Add above new files.
700         
701         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
702         instead of <strings.h>.
703
704         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
705         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
706         <unistd.h> appropriately.
707
708         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
709         Use ABS() (from <glib.h>) instead of abs().
710         
711         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
712         of gtk (and thus glib) headers, so that WIN32 will be
713         defined. With MS C, include <direct.h> for mkdir prototype.
714
715         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
716         some casts, needed by MS C.
717
718         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
719         implemented).
720
721         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
722         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
723         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
724
725         * gtk/gtkmain.h: Mark variables for export/import on Win32.
726                 
727         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
728         the event is not a hint, or its window is not the slider. Needed
729         on Win32, at least.
730
731         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
732         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
733         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
734         a subdirectory of the Windows directory as gtk system
735         configuration directory.
736
737         * gtk/gtkselection.c: No chunks on Win32.
738
739         * gtk/gtksocket.c: Not implemented on Win32.
740
741         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
742
743         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
744
745         * gtk/maketypes.awk: Declare variables with a macro that expands to
746         necessary export/import magic in the case of Win32.
747                 
748         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
749
750 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
751
752         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
753         since those were meant only for gdki18n.h.  
754         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
755         for widechar tests.
756         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
757
758 1999-03-13  Tor Lillqvist  <tml@iki.fi>
759
760         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
761         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
762
763         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
764         installed) to CFLAGS.
765
766         * gdk/Makefile.am: Add rules for gdkconfig.h.
767
768         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
769         APIs.
770
771         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
772         gdkx.h anyway when compiling for X11.
773         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
774         general): Merge in Win32 version.
775         
776         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
777         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
778         expansion (if we don't have HAVE_PWD_H), allow for drive
779         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
780         included code from Craig Setera's port to Win32 (the one that uses
781         X11, and the cygwin dll), even if it probably will be abandoned.
782
783         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
784         the user entered one herself.  This way one can complete *.h and
785         don't get matches on any .help files, for instance.
786         
787 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
788
789         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
790         font hash table, if we have a GdkFontPrivate entry for this font
791         already, simply increment its reference count, provided by Olaf Dietsche
792         <olaf.dietsche+list.gtk@netcologne.de>.
793
794         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
795         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
796
797 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
798
799         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
800         the number of calls to gdk_draw_point() (and thus to X) by
801         clipping the points by hand.
802
803         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
804         the clip parameter.
805         (gtk_handle_box_paint): Only paint the handle if the expose area
806         intersects it.
807
808 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
809
810         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
811
812 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
813
814         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
815         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
816
817 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
818
819         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
820          textmode (O_TEXT) for OS/2 version.
821
822 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
823
824         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
825         GtkSpinButton, "input" and "output", to make the output more flexible.
826         The user has to provide a mapping between adjustment->value and the
827         output string (and vice versa, if the spin button is editable). 
828         See testgtk for examples.
829
830 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
831
832         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
833         new one.
834         
835         * configure.in: set gtk+ version to 1.3.0.