]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
6aca5144d1953a2fd823db34a9a34b22327eedbc
[~andy/gtk] / ChangeLog.pre-2-8
1 Sat Jan  3 00:41:28 PST 1998 Manish Singh <yosh@gimp.org>
2
3         * gtk/gtkentry.c:
4         * gtk/gtkentry.h: applied Gordon Matzigkeit's patch to add
5         fixed-length entry fields (gtk_entry_new_with_max_length)
6         
7 Fri Jay  2 23:52 PST 1998 Jay Painter <jpaint@serv.net>
8         * reverted glibconfig.h and glib.h files back to the
9         way they were before my ugly hack
10         * gtk/gtkclist.c:
11         * glib/gscanner.c: removed inlines from clist and gscanner
12
13 Fri Jan  2 23:55:24 CST 1998 Shawn T. Amundson <amundson@gimp.org>
14
15         * Several portability fixes from Michael Callahan 
16           <callahan@xmission.com> including adding in missing
17           #includes and adding void in function prototypes.
18
19 Fri Jan  2 19:28:52 1988 Jay Painter <jpaint@serv.net>
20         * gtk/gtkclist.h:
21         * gtk/gtkclist.c:
22         * gtk/gtk.h:
23         * gtk/testgtk.c:
24         * gtk/testgtkrc: added GtkCList, column list widget, and a small test
25         to testgtk
26
27 Fri Jan  2 15:42:51 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>
28
29         * gtk/gtkmain.c (gtk_main_iteration): Make the big switch handle
30         GDK_NO_EXPOSE and GDK_VISIBILITY_NOTIFY events.
31
32 Fri Jan  2 12:07:33 CST 1998 Shawn T. Amundson <amundson@gimp.org>
33
34         * gtk/gtkviewport.c: corrects a small resize bug in the 
35           viewport widget.  The viewport widget provides a _set_shadow 
36           function to draw its shadows. But if GTK_SHADOW_NONE is sent 
37           to this function, the viewport isn't resized correctly (it's 
38           still considered as a shadowed widget).  (gtk-fortier-971213-0)
39
40         * gtk/gtknotebook.c: this patch fixes the redraw problems of 
41           notebook tabs, without using gdk_gc_set_clip_rectangle.
42           (gtk-hamann_jeske-971218-0)
43  
44         * add gtk_widget_(show/hide)_all (Stefan Wille)
45           (gtk-wille-301297-0)  Patch for testgtk not included
46           because it did not patch clean.  
47
48 Thu Jan  1 21:21:56 PST 1998 Manish Singh <yosh@gimp.org>
49
50         * configure.in: fixed up the xinput test
51         * Miscellaneous portability fixes.
52
53 Mon Dec 29 22:05:45 1997  Miguel de Icaza  <miguel@nuclecu.unam.mx>
54
55         * gdk/gdkgc.c (gdk_gc_copy): New function, used to copy the values
56         from one gc to another gc.
57
58 Sat Dec 27 20:39:99 1997  Elliot Lee <sopwith@redhat.com>
59         * gtk/gtkhandlebox.c: It mostly works now, please test it and make
60         fixes as needed.
61
62 Fri Dec 26 11:20:03 1997  Scott Goehring  <scott@poverty.bloomington.in.us>
63
64         * gtk/Makefile.am (gtkinclude_HEADERS): added gtkhandlebox.c
65
66         * gtk/gtkhandlebox.c (gtk_handle_box_reparent): eliminated a
67         compiler warning caused by not casting an argument in a debugging
68         message. :)
69
70 Fri Dec 26 02:59:39 1997  Federico Mena  <federico@bananoid.nuclecu.unam.mx>
71
72         * gdk/gdktypes.h gdk/gdk.c gdk/gdkwindow.c: Added new
73         GDK_NO_EXPOSE and GDK_VISIBILITY_NOTIFY events.  They are needed
74         for Alan Cox's TV widget and for GtkXmHTML.  Only missing with
75         respect to their Xlib counterparts are the major_code and
76         minor_code fields from the GdkEventNoExpose structure.  Does
77         anyone need them?
78
79 Tue Dec 23 03:03:17 1997  Tim Janik  <timj@psynet.net>
80
81         * gtk/gtkscrolledwindow.c (SCROLLBAR_SPACING): this macro computes
82         the spacing from klass->scrollbar_spacing now. adapted all functions
83         that used this macro (based on a patch from Patrice Fortier).
84         * gtk/gtkscrolledwindow.h (struct _GtkScrolledWindowClass): added
85         scrollbar_spacing to substitute a define (patch from Patrice Fortier).
86
87         * gtk/gtkrc.h (gtk_rc_parse_string): new function.
88         * gtk/gtkrc.c: many functions adapted to use GScanner for scanning.
89         (gtk_rc_parse): use gtk_rc_parse_any for parsing.
90         (gtk_rc_parse_string): new function to support parsing from
91         strings, just calls gtk_rc_parse_any.
92         (gtk_rc_parse_any): new function using GScanner as lexer.
93
94 Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
95
96         * GDK support for 1 bpp depth screens.
97
98 Thu Dec 18 23:46:11 CST 1997 Shawn T. Amundson <amundson@gimp.org>
99
100         * Changes from Bolliet Jerome <bolliet@in2p3.fr> to gtktree.
101           Corrects a bug in gtk_tree_remove_items and gtk_tree_item_destroy.
102           Adds the possibility to connect all items by lines. This is the 
103           default now.  You can overide this with the function 
104           gtk_tree_set_view_line which take a tree and a boolean.
105
106 Thu Dec 18 23:26:49 CST 1997 Shawn T. Amundson <amundson@gimp.org>
107
108         * removed configure, Makefile.in, and aclocal.m4 files
109
110 Wed Dec 17 23:36:57 1997  Scott Goehring  <scott@poverty.bloomington.in.us>
111
112         * gdk/gdkcc.c (gdk_color_context_free): Caught a stray
113         gdk_colormap_destroy that Owen missed (and Shawn found).
114
115 Wed Dec 17 20:59:52 1997  Owen Taylor  <owt1@cornell.edu>
116         * gdk/gdkinput.c gdk/gdkinput.h gdk/gdkinputcommon.h
117           gdk/gdkinputxfree.h gdk/gdkinputgxi.h gdk/gdkinputnone.h.
118           gtk/gtkinputdialog.h gtk/testinput.c
119         Added support for device keys mapping to key events.
120         Fixed various bugs.
121
122 Wed Dec 17 20:53:00 1997  Owen Taylor  <owt1@cornell.edu>
123         * gdk/gdk.c gdk/gdk.h: Changed gdk_get_event to remove
124         predicate filtering, and to allocate the events.
125         Added gdk_event_get_graphics_expose for scroll handling.
126         * gtk/gtkmain.c gtk/gtktext.c:
127         Use above changes. Interface change for gtk_get_current_event.
128         * testgtk.c
129         Added another test to test new scrolling mechanism.s
130         * gdk/gdk.c gdk/gdk.h gdk/gdkwindow.c gdk/gdkprivate.h: 
131         Added beginnings of event filtering. Removed obsolte
132         OtherEvent mechanism.
133         * gdk/gdk.c: Combined FocusIn/FocusOut events. Now ignore
134         focus events which aren't for window itself. (Only pay
135         attention to NotifyAncestor/Inferior/Nonlinear)
136         * gtk/gtkwindow.c gtk/gtkwindow.h: Virtualize set_focus 
137         function so it can be overridden.
138         * gtk/gtkwidget.c: Reparenting should now work for
139         containers. (Guillaume Laurent <glaurent@worldnet.fr>)
140         * gdk/gdkgc.c: By default, GraphicsExpose events are now
141         _not_ generated.
142         * gtk/testselection.c: Suppress a warning, fix a bug?
143
144 Wed Dec 17 20:47:42 1997  Owen Taylor  <owt1@cornell.edu>
145         * configure.in, glib/configure.in: 
146         Remember if user set CFLAGS, so we can set it for --enable-debug
147           only if they didn't. 
148         Added missing quotes. )Raphael.Quinet@eed.ericsson.se)
149         Only use -DX_LOCALE if setlocale doesn't work.
150         * gdk/gdki18n.h: Simplified system for trying to get iswalnum() -
151         include <wctype.h> if present, otherwise <wchar.h> if present.
152         
153 Wed Dec 17 21:09:12 1997  Owen Taylor  <owt1@cornell.edu>
154   1997-10-13  Marius Vollmer  <mvo@zagadka.ping.de>
155
156     Bug fixes:
157         
158         * gtksignal.c (gtk_params_get): Initialize the GtkArg even when
159         the return type is GTK_TYPE_NONE.
160
161     Revamped reference counting, see the file REFCOUNTING.
162
163         * Makefile.am (EXTRA_DIST): Added REFCOUNTING.
164         * REFCOUNTING: New file.
165
166         * gdk/gdk.c (received_destroy_notify, window_to_destroy): Removed.
167         (gdk_event_get): Code that deals with the above removed.
168         (gdk_event_translate): Abort when the GdkWindow for the XEvent
169         cannot be found.  For DestroyNotify: Do not use
170         receive_destroy_notify and window_to_destroy but call
171         gdk_window_destroy_notify.
172
173         * gdk/gdk.h: (gdk_pixmap_destroy, gdk_colormap_destroy,
174         gdk_fontset_free): Removed.
175         (gdk_pixmap_ref, gdk_pixmap_unref, gdk_bitmap_ref,
176         gdk_bitmap_unref): New prototypes.
177         (gdk_font_free, gdk_font_unref): Renamed gdk_font_free to
178         gdk_font_unref.
179
180         * gdk/gdkcolor.c (gdk_colormap_real_destroy): Made static.
181         (gdk_colormap_destroy): Removed.
182
183         * gdk/gdkfont.c (gdk_font_free): Renamed to gdk_font_unref.
184         Handle fontsets as well.
185         (gdk_fontset_free): Removed.
186
187         * gdk/gdkpixmap.c (gdk_pixmap_destroy): Removed.
188         (gdk_pixmap_ref, gdk_pixmap_unref, gdk_bitmap_ref,
189         gdk_bitmap_ref): New functions.
190
191         * gdk/gdkwindow.c: (gdk_window_new, gdk_window_foreign_new): Call
192         gdk_window_ref for the pointer in the xid table.
193         (gdk_window_internal_destroy): Renamed from gdk_window_destroy.
194         New parameter XDESTROY that takes the role of `destroyed==2';
195         removed special casing of `destroyed==2'.  Free dnd_data only when
196         really destroying.  Do not touch the ref_count.  Calling
197         gdk_window_destroy on a Pixmap is now a real error, not just a
198         warning.
199         (gdk_window_destroy): Just call gdk_window_internal_destroy and
200         gdk_window_unref, as advertised in REFCOUNTING.
201         (gdk_window_destroy_notify): New function.
202         (gdk_window_unref): Print a warning when the ref_count is zero and
203         the window has not been destroyed.  Should never happen.  Do not
204         destroy the window, just free the memory.
205         
206         * gdk/gdkprivate.h (gdk_window_real_destroy): Removed.
207
208         * gtk/gtkaccelerator.c (gtk_accelerator_table_destroy): Removed.
209         (gtk_accelerator_table_unref): Do the job of
210         gtk_accelerator_table_destroy directly.
211         (gtk_accelerator_table_init): Init ref_count with 1.
212
213         * gtk/gtkaccelerator.h (gtk_accelerator_table_destroy): Removed.
214
215         * gtk/gtkcurve.c, gtk/gtkgamma.c: Replaced gdk_pixmap_destroy with
216         gdk_pixmap_unref.
217
218         * gtk/gtkhscrollbar.c (gtk_hscrollbar_realize): Reflect the fact
219         that the widget->window is used as the range->trough in the
220         ref_count.
221         * gtk/gtkvscrollbar.c (gtk_vscrollbar_realize): Likewise.
222
223         * gtk/gtkmain.c (gtk_main_iteration): Protect event_widget with
224         ref/unref while handling the GDK_DELETE and GDK_DESTROY events.
225
226         * gtk/gtkmenu.c (gtk_menu_set_accelerator_table): Don't do
227         anything when the new accel_table is the old one.
228
229         * gtk/gtkmenufactory.c (gtk_menu_factory_destroy): Unref
230         factory->table if there is one.
231         (gtk_menu_factory_create, gtk_menu_factory_create_widget): Don't
232         ref newly created accel_table, it is now created with a ref_count
233         of 1.
234
235         * gtk/gtkmenuitem.c (gtk_menu_item_set_submenu):  Don't do
236         anything when the new submenu is the old one.
237
238         * gtk/gtkpixmap.c (gtk_pixmap_destroy): New static function.
239         (parent_class): New global variable.
240         (gtk_pixmap_init): Set object_class->destroy.
241         (gtk_pixmap_set): Don't do anything about the pixmap when the new
242         pixmap is the old one.  Likewise for the mask.
243
244         * gtk/gtkprogressbar.c, gtk/gtkruler.c: Replaced
245         gdk_pixmap_destroy with gdk_pixmap_unref.
246
247         * gtk/gtkrange.c (gtk_range_set_adjustment):  Don't do
248         anything when the new adjustment is the old one.
249
250         * gtk/gtkrc.c: Replaced gdk_fontset_free/gdk_font_free with
251         gdk_font_unref.
252
253         * gtk/gtkstyle.c (gtk_style_new): Initialize ref_count with 1.
254         (gtk_styles_init): Replace gtk_style_destroy with gtk_style_unref
255         for the cache.
256         (gtk_style_new_from_key): Ref style before returning it when it
257         has not been newly created.
258         (gtk_style_destroy): Don't look at the ref_count, destroy always.
259         Free style-font with gdk_font_unref, regardless of font->type.
260
261         * gtk/gtktooltips.c (gtk_tooltips_real_destroy): Renamed from
262         gtk_tooltips_destroy and made static.  Don't look at ref_count,
263         destroy always.
264         (gtk_tooltips_new): Initialize ref_count with 1.
265         (gtk_tooltips_unref): Don't look at pending_destroy, destroy
266         always when ref_count is 0.
267         (gtk_tooltios_widget_remove): Use gtk_tooltips_destroy_data
268         instead of hand-coded destruction.
269
270         * gtk/gtktooltips.h (GtkTooltips::pending_destroy): Removed.
271         (gtk_tooltips_destroy): Removed.
272
273         * gtk/gtkviewport.c (gtk_viewport_set_hadjustment,
274         gtk_viewport_set_vadjustment): Don't do anything when the new
275         adjustment is the old one.
276
277         * gtk/gtkwidget.c (gtk_widget_reparent): Protect the reparented
278         widget with ref/unref while moving it.
279         (gtk_widget_set_default_colormap): Replace gdk_colormap_destroy
280         with the proper ref/unref spell.
281         (gtk_widget_set_default_style): Don't do anything when the new
282         style is the old one.
283
284         * gtk/testinput.c (configure_event): Replaced gdk_pixmap_destroy
285         with gdk_pixmap_unref.
286         
287     More Interpreter support:
288
289         * gdk/gdktypes.h (GdkDestroyNotify): New type.
290         
291         * gdk/gdk.c (struct _GdkInput::destroy): New field.
292         (gdk_input_add_interp): New version of gdk_input_add that follows
293         the interp conventions for callbacks.
294         (gdk_input_add): Implement in terms of gdk_input_add_interp.
295         (gdk_input_remove): Call destroy notify when appropriate.
296
297         * gdk/gdk.h (gdk_input_add_interp): New prototype.
298
299         * gtk.defs: Updated from guile-gtk.
300         * gtk/gtktypebuiltins.c, gtk/gtktypebuiltins.h: Regenerated.
301         
302         * gtk/gtkmain.c (GtkInputFunction, struct _GtkInputFunction): New
303         types.
304         (gtk_invoke_input_function, gtk_destroy_input_function,
305         gtk_input_add_interp, gtk_input_remove): New functions.
306
307 Wed Dec 17 12:00:48 1997  Federico Mena  <federico@bananoid.nuclecu.unam.mx>
308
309         * gdk/gdkcc.c: New GdkColorContext functionality!  This should
310         eventually solve all of our color management problems.  Gdk still
311         needs to be modified to support visuals with less than 8 bpp.  Gtk
312         needs to be modified just a bit.
313
314 Wed Dec 17 13:56:17 PST 1997 Manish Singh <yosh@gimp.org>
315
316         * a small patch by Lauri Alanko that allows Gimp to pass
317         on --display to it's plugins.
318
319 Sun Dec 14 00:08:00 PST 1997 Raph Levien <raph@acm.org>
320         * a minor patch to make the file selection dialog not always
321         select the first file in a directory
322
323 Sat Dec 13 Jay Painter <jpaint@serv.net>
324         * gtk/gtkvscrollbar.c: added focus flag so vertical scrollbars
325         can get keyboard focus
326
327 Fri Dec 12 Owen Taylor <owt1@cornell.edu>
328         * Removed warning when XGetWindowProperty fails - this can
329           be the desired behavior.
330         
331 Fri Dec 12 Owen Taylor <owt1@cornell.edu>
332         * gdk/makecursor* gdk/makekeysym* gdk/Makefile.am
333           Removed old sed/awk code and replaced it with a 
334           spiffier awk-only code from Art_Haas@dril-quip.com
335         
336 Fri Dec 12 Owen Taylor <owt1@cornell.edu>
337         * gdk/gdkgc.c: If gdk_gc_set_clip_rectangle is called with
338           rectangle = NULL, remove clip mask, instead of segfaulting.
339         * gtk/gtknotebook.c: Set clip mask before redrawing, so that
340           we don't overwrite things outside of exposed areas when
341           drawing them shadows. (Based on a patch from 
342           Lars Hamann <hamann@braunschweig.netsurf.de>, and Stefan Jeske)
343         
344 Thu Dec 11 10:57:29 CST 1997 Shawn T. Amundson <amundson@gimp.org>
345         * Change to ltconfig to remove -z text for Solaris x86  
346         * Change to configure stuff so compile works on Solaris x86
347         * Added gdk/gdkkeysyms.h and gdk/gdkcursors.h back into the tree
348
349 Thu Dec 11 09:44:03 1997  Tim Janik  <timj@psynet.net>
350
351         * gdk.c: added gdk_progclass==NULL patch by Oliver Graf <ograf@fga.de>.
352
353 Wed Dec 10 23:40:03 1997  Tim Janik  <timj@psynet.net>
354
355         * fixed some compiler errors, because g_return_if_fail() wasn't used
356         with a trailing semicolon in some places. fixed few other warnings also.
357
358 Tue Dec  9 Owen Taylor <owt1@cornell.edu>
359         * configure changes: (configure.in, glib/configure.in)
360         Change test ! `...` to test -z `...`
361           (Harald Meland <Harald.Meland@usit.uio.no>)
362         Change $gtk_cv_x_locale to $need_x_locale so it isn't cached.
363         With --enable_debug, don't touch CFLAGS if they're already set.
364
365 Tue Dec  9 Owen Taylor <owt1@cornell.edu>
366         * gdk/gdkpixmap.c: don't use gdk_black/white for pixmap mask.
367          From Patrice Fortier <Patrice.Fortier@aquarel.fr>
368
369 Mon Dec  8 Owen Taylor <owt1@cornell.edu>
370         * gtk/testselection.c (selection_received): foreward -> forward.
371         * gtk/gtktext.c (gtk_text_forward_delete): Renamed; changed all
372         callers.
373         * gtk/gtktext.h: foreward -> forward.
374           From Tom Tromey  <tromey@cygnus.com>
375
376 Mon Dec  8 Owen Taylor <owt1@cornell.edu>
377         * gtk/gtkimage.c: Fixes to expose() handler
378           From Rob Browning <rlb@cs.utexas.edu>
379         
380 Mon Dec  8 21:09:43 PST 1997 Geoffrey T. Dairiki <dairiki@alumni.caltech.edu>
381         * gtk/gtklabel.h:
382         * gtk/gtklabel.c: Add support for GTK_JUSTIFY_FILL.  This support
383         is used by the new gtktooltips.c.
384         * gtk/testgtk.c (create_labels, create_main_window): A new test
385         window for labels (to test the new GTK_JUSTIFY_FILL'ed labels.)
386
387 Mon Dec  8 21:09:43 PST 1997 Geoffrey T. Dairiki <dairiki@alumni.caltech.edu>
388         * gtk/gtklabel.h:
389         * gtk/gtklabel.c: Add support for GTK_JUSTIFY_FILL.  This support
390         is used by the new gtktooltips.c.
391         * gtk/testgtk.c (create_labels, create_main_window): A new test
392         window for labels (to test the new GTK_JUSTIFY_FILL'ed labels.)
393
394 Sun Dec  7 Owen Taylor <owt1@cornell.edu>
395         * gdk/gdk.c, gdk/gdk.h, gdk/gdktypes.h: 
396           Remove dependencies of interfaces on USE_XIM
397         * gdki18n.h: Attempt to make wchar handling more portable
398         * gdkwindow.c: Include config.h. (For gdkinput.h)
399         
400 Sun Dec  7 Owen Taylor <owt1@cornell.edu>
401         * gtk/gtkentry.c, gtk/gtkentry.h: 
402            Fixed word motion
403            Added cut/copy/paste via X clipboard
404            Generalized extending selection using <Shift> to work with all types
405              of motion, not just arrow keys.
406            Don't change length of GtkEntry structure because of USE_XIM
407
408 Sun Dec  7 03:19:02 1997  Tim Janik  <timj@psynet.net>
409
410         * gtkfilesel.c: applied jamesa-971010-0 for stability.
411         * gtkrc.c: applied jamesa-971010-2 for a small optimization.
412         * gtkcheckmenuitem.h:
413         * gtkcheckmenuitem.c:
414         * gtkradiomenuitem.c:
415         * testgtk.c: applied johannes-971113-0 which adds
416         gtk_check_menu_item_set_show_toggle() to change the way check
417         menu items and radio menu items look.
418
419 Fri Dec 5 1997 Elliot Lee <sopwith@cuc.edu>
420         * gdk/gdk.c: clean up warnings, remove some un-ifdef'd debugging
421         printing, DnD is Bug Free now, etc.
422         * gtk/gtkcolorsel.c: fix DnD support.
423         * gtk/gtkmain.c: DnD events go to the original window even if
424         there is a grab - if I drop on a window the data had better go
425         to it and not some other window :)
426         * gtk/testgtk.c: Replace (GtkSignalFunc) with GTK_SIGNAL_FUNC(),
427         and do a nicer DnD demo.
428         * My very first ChangeLog entry, seeing as people have
429         a fixation on them (what's wrong with "rcs2log" output?)
430
431 Thu Dec 4 1997 Owen Taylor <owt1@cornell.edu>
432         * gdk/gdkgc.c: Ignore gdk_gc_set_font if font is a fontset.
433
434 Wed Dec 3 1997 Jay Painter <jpaint@serv.net>
435         * gtk/gtkstyle.c: fixed a problem introduced recently in 
436         gtk_style_detach witch crashed script_fu.
437
438 Wed Dec 3 1997 Owen Taylor <owt1@cornell.edu>
439         * gdk/Makefile.am: add a dependence for $(DEP_FILES) on
440         $(BUILT_SOURCES) to work around automake problem
441         
442 Wed Dec 3 1997 Owen Taylor <owt1@cornell.edu>
443         * configure.in glib/configure.in glib/glibconfig.h.in gdk/gdk.h
444         gdk/gdk18n.h gdk.c gtk/gtkentry.c: Try to handle variations in 
445         <wchar.h> headers gracefully. Do not automatically include 
446         gdk/gdki18n.h.
447         
448 Wed Dec 3 1997 Jay Painter <jpaint@serv.net>
449         * gtk/gtkoptionmenu.c: fixed a old bug where if you set a new 
450         menu for a optionmenu the widget would not get positioned correctly
451         inside of the optionmenu.
452
453 Tue Dec 2 1997 Owen Taylor <owt1@cornell.edu>
454         * gdk/gdkpixmap.c: Include unistd.h to get SEEK_END
455         for SunOS (john_johns@credence.com)
456         
457 Tue Dec 2 1997 Owen Taylor <owt1@cornell.edu>
458         * gtk+/fnmatch.c: Define _GNU_SOURCE before including
459         fnmatch.h to make sure all constants are defined.
460         (Yasuhiro SHIRASAKI <joke@awa.tohoku.ac.jp>)
461         
462 Tue Dec 2 1997 Owen Taylor <owt1@cornell.edu>
463         * configure.in, glib/configure.in: Make the logic to add -Wall,
464         -ansi, -pedantic for GCC operational.
465
466 Tue Dec 2 1997 Owen Taylor <owt1@cornell.edu>
467         * glib/glib.h, glib/configure.in. Disabled gldouble, since
468         it wasn't used anywhere and caused portability problems
469
470 Tue Dec 2 1997 Owen Taylor <owt1@cornell.edu>
471         * glib/glib.h, glib/configure.in, glib/glibconfig.h.in: Added a
472         g_memmove function which is simply memmove if it exists, otherwise
473         bcopy.(Should really check if bcopy has the correct semantics, and
474         create our own memmove is necessary) 
475         * glib/gstring.c, glib/garray.c, gtk/gtktext.c:
476         memmove => g_memmove
477         
478 Sun Nov 30 1997 Jay Painter <jpaint@serv.net>
479         * gtk/gtknotebook.c: fixed a old bug where all the notebook pages
480         which were not displayed when the notebook widget was realized were
481         never size allocated when they were realized.
482
483 Thr Nov 28 1997 Jay Painter <jpaint@serv.net>
484         * gtk/gtklist.h: removed GtkSelectionMode
485         * gtk/gtkenums.h: added GtkSelectionMode
486
487 Fri Nov 28 01:26:55 1997  Tim Janik  <timj@psynet.net>
488
489         * gtk/gtkwindow.c (gtk_window_show): propagate a size_request before
490         the initial window creations (prevents windows with size of -1x-1).
491
492         * gtk/gtkmain.c (gtk_main_level): new function to determine
493         the current recursion level of gtkmain().
494         (gtk_true) (gtk_false): new functions implemented as a convenience
495         for signals that just need a handler with the appropriate return value.
496
497 Tue Nov 25 1997 Owen Taylor <owt1@cornell.edu>
498         gdk.c: Fix so that "other_events" are actually generated
499
500 Tue Nov 25 1997 Owen Taylor <owt1@cornell.edu>
501         Patches to support internationalized input by:
502           Takashi Matsuda <matsu@arch.comp.kyutech.ac.jp>
503           TANAKA Shinya <shinya@race.u-tokyo.ac.jp>
504
505         From the README:
506         
507         Feature:
508           Followings are the main feature of this patch.
509             * support XIM protocol.
510             * GtkEntry widget support Over-The-Spot and Root style input.
511             * input style is configurable by command-line option.
512
513         Furthermore, this patch includes several changes which are useful 
514           without XIM too.
515         
516             * copy and paste with other clients by compound text.
517             * Window title can be specified by multi byte string.
518
519         configure.in: 
520           Added --with-locale and --enable-xim options
521         gdk/Makefile.am:
522         gdk/gdki18n.h [new file]
523           Multibyte string manipulation functions
524         gdk/gdk.c
525         gdk/gdk.h
526         gdk/gdkprivate.h
527           Input method and context handling functions
528           Command line options to control input methods
529           Changes to KeyPress handling to support input methods
530           Fixes to not return events for destroyed windows
531         gdk/gdkselection.c
532           Text property handling functions
533         gdk/gdkwindow.c
534           Set window title by multibyte string
535         gtk/gtkentry.c
536           Support for using an input context for XIM input.
537           Cut and paste using compound text.
538           Improvements to pasting (no longer replace the active selection
539             with itself OWT)
540         gtk/gtkselection.c
541           fix to send selection clear events to the right owner
542         gtk/testgtkrc
543           Added a default fontset that will allow international characters
544         INSTALL
545           Some rudimentary documentation about the new configuration options.
546         
547 Mon Nov 24 1997 Owen Taylor <owt1@cornell.edu>
548         gtk/gtkaspectframe.c:
549         Some minor improvements to rounding in aspectframes.
550         Make sure that child allocation is always >= 0
551         Always trigger size allocation with gtk_widget_queue_resize
552         to prevent calling size_allocate before allocation done.
553
554 Mon Nov 24 1997 Owen Taylor <owt1@cornell.edu>
555         gtk/gtkframe.c:
556         Changed tests for drawability to GTK_WIDGET_DRAWABLE
557         Always trigger size allocation with gtk_widget_queue_resize
558         to prevent calling size_allocate before allocation done.
559
560 Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
561         gtk-dairiki-971117-2.patch
562         gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): When
563         computing new dimensions of the subwidget, round to nearest
564         integer rather than truncating.
565
566 Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
567         gtk-dairiki-971117-1.patch
568         * gtk/gtkvruler.c (gtk_vruler_draw_ticks):
569         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Ensure that subticks
570         always are drawn when they should be (sometimes they were getting
571         drawn with zero length --- invisible).  Also clear rectangle
572         behind text labels to ensure they don't touch or overlap ticks. 
573
574 Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
575         * gtk/gtkaspectframe.c (gtk_aspect_frame_set): 
576         gtk-dairiki-971117-0.patch
577         Clear window when aspect ratio or alignment is changed.
578
579 Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
580         * gtk/gtkobject.h: fixed GTK_OBJECT_NSIGNALS macro
581
582 Mon Nov 24 1997 Jay Painter <jpaint@serv.net>
583         * gtk/gtklabel.h: modified gtklabel to clip its drawing to
584         its given area, now it will always draw in the area it's 
585         been given and clip accordingly.  Note: this may cause
586         the a label to disappear on widgets which don't give their
587         child labels proper area!
588
589 Mon, 17 Nov 1997 Michael K. Johnson <johnsonm@redhat.com>
590         * gtkwidget.c: gtk_set_style_recurse was not allowing updated
591         widget names to cause new styles to be applied.
592         * gtkentry.c gtkentry.h: The entry widget now has invisible
593         attribute.  The cursor does not move to show you typing; this
594         is an intentional design decision but I'm not so attached to it
595         that I'll reverse any patches that change it...  :-)
596
597         This patch is a modified version of a patch to which I have
598         lost the attribution.  I modified it by packing the "visible"
599         flag into the structure more tightly (without damaging backwards
600         compatibility on sane systems) and by allowing entry timers
601         to run.
602
603 Mon Nov 17 1997 Jay Painter <jpaint@serv.net>
604         * gtkviewport.c: Raph's Mon, 10 Nov 1997 patch to gtk-list 
605         to fix some viewport bugs
606
607 Mon Nov 17 1997 Jay Painter <jpaint@serv.net>
608         * gtk/gtkwidget.c: gtk-ajaborsk-971016-2
609         A little patch again to prevent user to use gtk_widget_set_events()
610         when a widget is already realized.
611         In this case, the gtk_widget_set_events() doesn't work.
612
613 Mon Nov 17 1997 Jay Painter <jpaint@serv.net>
614         * gtk/gtkwindow.c: gtk-ajaborsk-971016-1
615         This small patch correct position for GTK_WIN_POS_CENTER and
616         GTK_WIN_POS_MOUSE GtkWindow positions.
617
618 Sat Nov 15 1997 Jay Painter <jpaint@serv.net>
619         * gdk/gdkgc.c: added function gdk_gc_set_clip_rectangle
620         * gdk/gdk.h: header for above
621
622 Sat Nov 15 1997 Jay Painter <jpaint@serv.net>
623         * gdk/gdkgc.c: added function gdk_gc_set_clip_rectangle
624         * gdk/gdk.h: header for above
625
626 Wed Nov 12 1997 Jay Painter <jpaint@serv.net>
627         * gdk/gdkpixmap.c: Patrice Fortier's patch for transparent pixmaps.
628         * gdk/gdk.h:
629           gdk/gdkdraw.c: Patrice Fortier's patch to add pixel draw function.
630
631 Sun Nov  9 1997 Jay Painter <jpaint@serv.net>
632         * Fixed problems with makefiles relating to the bug
633         which required glib to be installed.
634         * Fixed makefiles to incluce the xpm's in gtk+/gtk needed
635         for testgtk.
636         * Updated gtk+ and gtk+/glib to libtool-1.0f
637
638 Fri Nov  7 1997 Jay Painter <jpaint@serv.net>
639         * gtk/gtktext.c: return char_widths[ch & 0xff]; in line 2152
640
641 Thr Nov  5 1997 Jay Painter <jpaint@serv.net>
642         * gtk/testgtk.c: added drag and drop test, removed the test hack
643         from the button test
644
645 Tue Nov  4 08:28:57 1997  Federico Mena  <federico@bananoid.nuclecu.unam.mx>
646
647         * gtk/gtkmain.c (gtk_handle_idle): Patch from David Mosberger to
648         avoid crashes when handling idle function (this manifested itself
649         in the Umax and Microtek backends in SANE.
650
651 Sun Nov  2 07:34:56 1997  Tim Janik  <timj@psynet.net>
652
653         * gtk/gtkfilesel.c: Small fixes about a segmentation viaolation
654         cause by a double click in the directoy list (introduced by my
655         previous changes).
656         
657         * gtk/gtklist.c: Small fixes to gtk_list_add() and gtk_list_remove().
658         
659         * gtk/testgtk.c (list_add): Applied Stefan Wille's patch to make this
660         function do something ;).
661
662 Fri Oct 31 Jay Painter <jpaint@serv.net>
663         *gdk/gdk.c: reformatted DND code for GTK coding standards
664         *gdk/gdkwindow.c: changed memory allocation for DND to q_mem stuff
665
666 Thu Oct 30 Jay Painter <jpaint@serv.net>
667         * gdk/gdkwindow.c: 
668         * gdk/gdk/gdk.h:
669         * gtk/gtkwidget.h:
670         * gtk/gtkwidget.c: Applied Stephan Willie's shaped window patch
671
672         * gdk/gdkwindow: 
673         * gdk/gdk.h:
674         * gtk/gtkwidget.h:
675         * gtk/gtkwidget.c: reformatted the DND code to conform to GTK
676                 coding standards
677
678         * gtk/testgtk: massive fixes, SW's shaped window example
679
680 Thu Oct 30 07:33:27 1997  Tim Janik  <timj@psynet.net>
681
682         * gtk/gtklistitem.c (gtk_real_list_item_toggle): applied Johannes
683         Keukelaar's <johannes@nada.kth.se> patch for keyboard support in
684         GtkList widgets.
685
686         * gtk/gtkfilesel.c: adapted dir and file list selection
687         behaviour to deal with keyboard selections. this is a little
688         bit tricky: in the dir list it just changes the entrys value on a one
689         button press. but on a keyboard selection via gtk_widget_activate() it
690         does a new population (likewise on a double click) as this seems more
691         obvious.
692
693 1997-10-25  Marius Vollmer  <mvo@zagadka.ping.de>
694
695         * gdk/gdkcolor.c (gdk_colormap_get_system): Initialize
696         private->ref_count.
697
698 Wed Oct 22 09:47:43 1997  Tim Janik  <timj@psynet.net>
699
700         * gtk/gtkwindow.c (gtk_window_key_release_event): Fixed a stupid
701         bug that caused the key_release_event to be propagated twice.
702
703 Sun Oct 12 11:01:43 1997  Tim Janik  <timj@psynet.net>
704
705         * acconfig.h:
706         * configure.in:
707         * gdk/gdkimage.c: Added configure check for IPC_RMID_DEFERRED_RELEASE,
708         because shmat() fails after a shmctl(..., IPC_RMID,...) for OSF1 V3.2,
709         SunOS 4.1.1, 5.5, 5.5.1, 5.6, IRIX 5.2 and 6.2.
710
711 Mon Oct  6 11:59:07 1997  Federico Mena  <federico@bananoid.nuclecu.unam.mx>
712
713         * gdk/gdk.c (gdk_event_translate): In line 1693, fixed typo that
714         would cause motion notify events not to be delivered.
715
716 Sun Oct  5 18:15:06 1997  Federico Mena  <federico@bananoid.nuclecu.unam.mx>
717
718         * gtk/gtkrc.c (gtk_rc_parse_bg_pixmap): Changed strdup() for
719         g_strdup().
720
721 Wed Sep 24 17:16:34 1997  Peter Mattis  <pmattis@bjork.inktomi.com>
722
723         * configure.in: Fixed a stupid error in the test for libXext that
724         would cause it to fail if X_EXTRA_LIBS was not empty.
725
726         * gtk/gtkmain.h (gtk-timj-970919.patch):
727         * gtk/gtkmain.c (gtk-timj-970919.patch): new function
728         `gtk_idle_remove_by_data' to remove all idle callbacks that take a
729         specific piece of data as argument.  (gtk_get_current_event):
730         remove idles through gtk_idle_remove_by_data.
731         
732         * gtk/gtkwidget.c (gtk-timj-970919.patch):
733         (gtk_widget_destroy): remove pending idles for
734         widgets that have GTK_REDRAW_PENDING or GTK_RESIZE_PENDING and
735         GTK_ANCHORED set (only anchored widgets can have a resize queue
736         handler pending). widgets that have GTK_RESIZE_NEEDED will be removed
737         from their anchored toplevels `resize_widgets' list.
738         
739         (gtk_widget_queue_draw): let the widget remember the queue handler
740         tag (through `redraw_handler_key') for later call to `gtk_idle_remove'.
741         
742         (gtk_widget_queue_resize): let the widget remember the queue handler
743         tag (through `resize_handler_key') for later call to `gtk_idle_remove'.
744         corrected referencing the toplevel widget for which the handler is
745         pending. if a widget is added to the `resize_widgets' list of a
746         toplevel widget, GTK_RESIZE_NEEDED is set and it's referenced.
747         
748         (gtk_real_widget_queue_resize): on the deletion of the `resize_widgets'
749         list, unset GTK_RESIZE_NEEDED and unreference the removed widgets.
750         
751         * gtk/gtkwindow.c (gtk-timj-970919.patch):
752         (gtk_real_window_move_resize): move `resize_containers = NULL'
753         initialization out of if-statement.
754         while stepping through the `resize_widgets' list, unreference the
755         widgets and clear GTK_RESIZE_NEEDED. if a widget realy needs are
756         resize, they are flagged through GTK_RESIZE_NEEDED now (instead of
757         GTK_RESIZE_PENDING, as this is indicative for a pending handler).
758         added checks to provide segfaulting if a widgets parent pointer
759         is NULL (e.g. on toplevel widgets that have GTK_RESIZE_NEEDED set).
760
761 Tue Sep 23 13:23:27 1997  Federico Mena  <federico@bananoid.nuclecu.unam.mx>
762
763         * gdk/gdkimage.c: Applied Tim Janik's patch to mark shm segments
764         as IPC_RMID so that they are automatically removed always.
765
766         * gdk/gdkfont.c: Removed casts from lvalues.
767
768         * gtk/gtkmain.c: Removed GTK_RETLOC_*() (which do a cast) from lvalues.
769
770         * gtk/gtkaccelerator.c (gtk_accelerator_table_remove): Added
771         "const" to the accelerator_key param to be consistent with the
772         declaration in gtkaccelerator.h.  The const is not useful in this
773         case, anyway.
774
775 Tue Sep 16 13:11:06 1997  Peter Mattis  <pmattis@bjork.inktomi.com>
776
777         * gtkpreview.c: Andrew Logan Kieschnick's change to eliminate
778         round-off error when gamma is set to 1.0.
779
780         * gtkrange.c:
781         * gtkviewport.c: Jay Painter's changes to modify the way in which
782         viewports resize.
783
784         * gdkinput.c:
785         * gdkinputgxi.h:
786         * gdkinputxfree.h:
787         * gtk/Makefile.am:
788         * gtk.h:
789         * gtkeventbox.c:
790         * gtkeventbox.h: Owen Taylor's event box widget and fixes for X
791         input support (that I had broken).
792
793         * gdk.h:
794         * gdkwindow.c:
795         * gtksignal.h:
796         * gtksignal.c: Elliot Lee's changes to support Objective C. (id is
797         apparently a reserved word in Objective C).
798
799 Sun Sep 14 22:33:15 1997  Peter Mattis  <pmattis@localhost>
800
801         * gtkwidget.c (gtk_widget_queue_resize): If the toplevel container
802         is invisible we simply call "gtk_container_need_resize" on
803         it. This fixes a bug with option menus not redrawing correctly.
804
805         * gtkmenuitem.c (gtk_menu_item_enter): (gtk_menu_item_leave):
806         These functions now simply pass the event on to their parent. This
807         is necessary for menus to work properly due to the change in how
808         grabs are dealts with.
809
810         * gtkwindow.c (gtk_real_window_move_resize): Fixed a bug that
811         caused the GTK_RESIZE_PENDING flag to not be unset in some cases.
812
813 Fri Sep  5 20:49:37 1997  Marius Vollmer  <mvo@zagadka.ping.de>
814
815         Bug fixes:
816
817         * Makefile.am: Added PATCHES to EXTRA_DIST.
818         * gtk/gtkpixmap.c (gtk_pixmap_new): Move the "pixmap != NULL" test
819         after the allocation of the pixmap.
820
821         To shut up the compiler:
822
823         * gtk/gtkfilesel.c (get_pwdb): Initialize home_dir.
824         * gtk/gtkmain.c (gtk_init): Replace comments around calls to
825         g_set_*_handler with "if (0)".
826         * gtk/gtkrc.c (gtk_rc_get_token): Initialize hex_number and
827         float_number.
828         * gtk/gtkwindow.c (gtk_window_key_press_event): Initialize
829         direction.
830
831         Changes to the type system in gtk/:
832
833         * Makefile.am: Added gtktypebuiltins.h to gtkinclude_HEADERS.
834         Added gtk.defs, runelisp, gentypeinfo.el and gtktypebuiltins.c to
835         EXTRA_DIST.  Added rules to generate gtktypebuiltins.* from
836         gtk.defs.
837
838         * runelisp, gentypeinfo.el, gtk.defs: New files.
839
840         * gtkaccelerator.c, gtkaccelerator.h (gtk_accelerator_table_ref):
841         Return the table so that this function can be used as the `copy'
842         function for GTK_TYPE_BOXED values.
843         * gtkstyle.c, gtkstyle.h (gtk_style_ref): Likewise.
844
845         * gtkenums.h: Removed GtkArgType enum.
846
847         * gtkmain.c (gtk_init): Call gtk_type_init to initialize the type
848         system.
849
850         * gtkobject.c (gtk_object_init_type): New function to take over
851         for gtk_object_get_type. (gtk_object_get_type): Just return the
852         constant GTK_TYPE_OBJECT. (gtk_object_collect_args): Do the right
853         thing for the new GTK_TYPE_* types.
854         * gtksignal.c (gtk_params_get): Likewise.
855
856         * gtktypeutils.c: (gtk_type_init_builtin_types): New
857         function. (gtk_type_init): Call it.  Also made non-static.
858         (gtk_type_unique): The allocation scheme for numerical ids has
859         changed: The low 8 bits hold the appropriate GtkFundamentalType of
860         a type, the rest is a globally unique sequence number.
861         (gtk_type_hash): Use the sequence number of a key to hash it.
862         (gtk_type_register_builtin): New function.
863
864         * gtktypeutils.h: (GtkFundamentalType): New enumeration of the
865         fundamental types. (GTK_TYPE_MAKE, GTK_FUNDAMENTAL_TYPE,
866         GTK_TYPE_SEQNO): New macros to work with the new id scheme.
867         (GtkArg): Added fields for new types and renamed old ones.  GtkArg
868         should now be a mostly opaque structure, except name and type.
869         (GTK_VALUE_*): New macros to access the values of a GtkArg.
870         (GTK_RETLOC_*): New macros to access the location of a return
871         value that is contained in a GtkArg.  * gtktypebuiltins.h: New
872         file to access the typeids of the builtin types.
873
874         * gtkwidget.h (GTK_TYPE_WIDGET): New macro to access the type id
875         of the widget class.
876
877         Thru out: Changed GTK_ARG_* to the appropriate GTK_TYPE_*.
878         Changed access to GtkArg structure to the appropriate GTK_VALUE_*
879         or GTK_RETLOC_* macro.  Changed GtkArgType to GtkType.  Changed
880         some guints to GtkType.
881
882         General changes in gtk/ to support interpreters:
883
884         * gtkradiobutton.c (gtk_radio_button_new_from_widget,
885         gtk_radio_button_new_with_label_from_widget): New functions.
886
887         * gtksignal.c (gtk_signal_connect_no_marshal): New function.
888         (struct _GtkHandler): Added no_marshal and destroy_func fields.
889         (gtk_signal_handler_new): Initialize them.
890         (gtk_signal_connect_by_type): Added no_marshal and destroy_func
891         arguments.  Changed all callers.
892         (gtk_signal_destroy): Invoke destroy_func if there is one and the
893         global destroy func does not apply.  (gtk_handlers_run): If the
894         handler has no_marshal set, call its function directly without
895         going thru the signal's marshaller.
896
897 Wed Sep  3 09:56:22 1997  RHS Linux User  <pmattis@bjork.inktomi.com>
898
899         * gtkrange.c: Changed the way the range control focus was drawn so
900         that the range control is drawn correctly when it does not have
901         the focus.
902
903 Tue Sep  2 17:41:17 1997  RHS Linux User  <pmattis@bjork.inktomi.com>
904
905         * gtkwidget.c: 'gtk_real_widget_queue_resize' should only remove
906         the "resize_widgets" if another resize is not pending.
907
908 Mon Sep  1 18:28:08 1997  Peter Mattis  <pmattis@localhost>
909
910         * gtkmain.c: Changed the way GDK_DELETE events are handled. Only,
911         if 'gtk_widget_event' returns TRUE is the widget destroyed. By
912         default, 'gtk_widget_event' will return FALSE causing the window
913         to not be destroyed. This prevents segfaults in the GIMP and other
914         programs that do not correctly handle GDK_DELETE events.
915
916         * gtkmain.c: Added modal dialog support by allowing events
917         destined for a child of the grab widget to go to the child instead
918         of the grab widget. (Added 'gtk_widget_is_ancestor' to determine
919         the relationship between the grab widget and the event widget).
920
921         * *.[ch]: Incorprated a whole mess of patches. (Started keeping
922         the ChangeLog up to date again).
923
924 Thu Jun  5 17:22:21 1997  Peter Mattis  <pmattis@localhost>
925
926         * gtkmenufactory.c:
927         * gtkmenufactory.h: Added 'gtk_menu_factory_remove_*'
928         calls. Removing entries/paths causes the associated widgets to be
929         destroyed.
930
931         * gtkwidget.c:
932         * gtkwidget.h: Calling 'gtk_widget_set_style' is used as an
933         indication that the programmer specifically wants that style to be
934         used. RC-style substitution is disabled for the widget after such
935         a call.
936
937         * gtkpixmap.c:
938         * gtkpixmap.h:
939         * gtkimage.c:
940         * gtkimage.h: Changed to use clip mask and a single pixmap (or
941         image) to deal with transparent areas.
942
943         * gdkpixmap.c: Modified xpm loading routines to optionally return
944         a clip mask.
945
946         * gdkgc.c:
947         * gdkdraw.c:
948         * gdktypes.h: Modifications to allow clip masks to be used with
949         gc's. Clip masks are bitmaps that specify drawable regions.
950
951 Thu May  1 03:11:51 1997  Peter Mattis  <pmattis@localhost>
952
953         * gtkscrolledwindow.c: Scrolled windows need to have the
954         GTK_NO_WINDOW flag set. Not having it set caused an obscure
955         redrawing bug.
956
957 Wed Apr 30 12:38:03 1997  Peter Mattis  <pmattis@localhost>
958
959         * gtkhruler.c:
960         * gtkvruler.c: Fixed a small bug that caused the indicator to be
961         positioned slightly off.
962
963 Sun Apr 27 14:28:21 1997  Peter Mattis  <pmattis@localhost>
964
965         * gtkmenushell.c:
966         * gtkmenushell.h:
967         * gtkmenu.c:
968         * gtkmenu.h: Changes so that if a menu is popped up there is a
969         timeout period during which a menu item will not be activated and
970         if the mouse button is released in that period the menu will stay
971         popped up.
972
973         * gtkcurve.c:
974         * gtkcurve.h: Included curve widget courtesy of David
975         Mosberger-Tang (davidm@azstarnet.com).
976
977         * gtkentry.c:
978         * gtkentry.h: Changed "insert" and "delete" signals to
979         "insert_text" and "delete_text" respectively. (The symbol "delete"
980         cannot be used since it is a C++ reserved word).
981
982 Sat Apr 19 01:43:49 1997  Peter Mattis  <pmattis@localhost>
983
984         * gtkmenufactory.c: A path which ends in "<nothing>" will cause an
985         invisible (hidden) menu entry to be created. This is useful for
986         setting an accelerator key for which a corresponding menu entry is
987         not desired.
988
989         * gtktooltips.c: Fixed some problems with destruction of the
990         active tip widget not properly updating the tooltips data
991         structures.
992
993 Fri Apr 18 15:09:45 1997  Peter Mattis  <pmattis@localhost>
994
995         * gtkcontainer.c:
996         * gtklist.c:
997         * gtkwidget.c:
998         * gtkwidget.h: Patch from Owen Taylor (owt1@cornell.edu) which
999         fixes problems with destruction of objects and with destruction of
1000         objects which hold the focus.
1001
1002 Thu Apr 17 11:29:15 1997  Peter Mattis  <pmattis@localhost>
1003
1004         * gtkmenushell.c: Incorrect logic in
1005         'gtk_menu_shell_button_release' for deciding when a menu should
1006         stay popped up when the mouse button is released.
1007
1008         * *.c: Miscellaneous fixes from folks on the net.
1009
1010 Tue Apr 15 02:43:17 1997  Peter Mattis  <pmattis@localhost>
1011
1012         * *.c:
1013         * gtkwidget.h: Added GTK_BASIC widget flag which when set
1014         specifies a widget as "basic". A "basic" widget is one which
1015         doesn't take input events. For example, labels, pixmaps, boxes,
1016         tables, alignments, etc.
1017
1018 Sat Apr 12 15:23:08 1997  Peter Mattis  <pmattis@localhost>
1019
1020         * gtkcolorsel.c: Add "#include <math.h>" to define M_PI.
1021
1022         * gtksignal.c: Fixed a bug in 'gtk_signal_emit' which showed up
1023         because of the new cast checking macros. The 'object' was being
1024         accessed after it had been destroyed.
1025
1026         * gtkoptionmenu.c: Fixed bug with using 'GTK_BIN' instead of
1027         'GTK_BUTTON' which showed up because of the new cast checking
1028         macros.
1029
1030         * *.h: 'GTK_CHECK_CAST', 'GTK_CHECK_CLASS_CAST' and
1031         'GTK_CHECK_TYPE' used by standard widget macros everywhere.
1032
1033 Wed Apr  9 00:54:17 1997  Peter Mattis  <pmattis@localhost>
1034
1035         * docs/gtk.texi: Started further work on documentation. Major
1036         changes and additions are being made.
1037
1038         * gtkarrow.c:
1039         * gtkarrow.h: Removed function 'gtk_arrow_get'.
1040
1041         * gtkcontainer.c: 'gtk_container_check_resize' no performs
1042         additional checking to account for the case where the containers
1043         allocation is no longer sufficient because its parent (or its
1044         parents parent, etc.) needs to resize its children.
1045
1046 Tue Apr  8 21:15:50 1997  Peter Mattis  <pmattis@localhost>
1047
1048         * gtkstyle.c: Fixed a bug in 'gtk_style_init' in which the font
1049         was not ref'd (via 'gdk_font_ref'), but was free'd (via in
1050         'gdk_font_free') in 'gtk_style_destroy'. (David
1051         Mosberger-Tang). Also cleaned up 'gtk_style_destroy' while I was
1052         at it.
1053
1054         * gtkmain.c: Fixed a bug in 'gtk_propogate_event' which caused
1055         entry widgets (and probably other widgets) not to be destroyed in
1056         some instances.
1057
1058 Mon Apr  7 01:20:38 1997  Peter Mattis  <pmattis@localhost>
1059
1060         * gtkentry.c:
1061         * gtkentry.h: Changed the "insert_text", "delete_text" and
1062         "changed_text" signals to "insert", "delete", and "changed"
1063         respectively. They really should have been named this way
1064         originally except the previous signal mechanism prevented
1065         duplicate signal names. ("changed" is also used by adjustments).
1066
1067         * gtkradiomenuitem.c:
1068         * gtkradiomenuitem.h: New widget.
1069
1070         * gtkcheckmenuitem.c:
1071         * gtkcheckmenuitem.h: New widget.
1072
1073         * gtksignal.c: Modified 'gtk_signal_lookup' to require an object
1074         type to be passed as a parameter. In addition, signals are now
1075         only needed to be uniquely defined in their branch of the class
1076         hierarchy. This allows the same signal name to be used in two
1077         different branches of the class hierarchy. For instance, the
1078         "changed" signal is used both by adjustments and entries...in
1079         different ways!
1080
1081         * gtktypeutils.c: Added 'gtk_type_parent' which returns the parent
1082         type for a given type.
1083
1084 Sun Apr  6 22:08:35 1997  Peter Mattis  <pmattis@localhost>
1085
1086         * gtkwidget.c: If a widget is set insensitive it loses the focus
1087         if it had it.
1088
1089         * gtkcontainer.c: Insensitive widgets no longer participate in tab
1090         traversal.
1091
1092         * gtkscrolledwindow.c: The "viewport" child is now destroyed and a
1093         container class "foreach" function was written (which fixes the
1094         sensitivity bug).
1095
1096 Sat Apr  5 14:25:38 1997  Peter Mattis  <pmattis@localhost>
1097
1098         * gtkhscrollbar.c:
1099         * gtkvscrollbar.c: Fixed trough size allocation bug.
1100
1101         * gtkhscale.c:
1102         * gtkvscale.c: Fixed trough size allocation and position bug that
1103         showed up when scales were placed in notebooks.
1104
1105 Thu Mar 27 17:45:54 1997  David Mosberger-Tang  <davidm@azstarnet.com>
1106
1107         * gtk/gtkmain.c (gtk_handle_idle): Fix appending pending_idles to
1108         idle_functions so it works even when idle_functions is empty.
1109
1110 Sat Mar 15 14:15:59 1997  Peter Mattis  <pmattis@localhost>
1111
1112         * *.[ch]: Moved '*_class_init' and '*_init' function declarations
1113         for widgets into the source file as those functions no longer had
1114         to be public.
1115
1116         * gtkcheckbutton.c: Fixed redrawing of check button.
1117
1118         * gtkframe.c: Fixed redrawing of frame when the shadow type is
1119         changed.
1120
1121 Sat Mar  8 15:19:23 1997  Peter Mattis  <pmattis@localhost>
1122
1123         * gdkimage.c: Fixed a stupid bug with 'gdk_image_new' which
1124         potentially added a NULL image to "image_list" and caused problems
1125         when 'gdk_image_exit' was called.
1126
1127 Wed Mar  5 00:40:08 1997  Peter Mattis  <pmattis@localhost>
1128
1129         * gtkpreview.c: Massively changed the colormap handling used by
1130         the preview widget. Gray previews are now dithered. A single
1131         visual and colormap is shared by the color and gray previews. A
1132         GTK_PREVIEW_INFO property is installed on the root window in
1133         certain cases to allow multiple GTK programs to share the system
1134         colormap.
1135
1136 Sun Mar  2 05:43:06 1997  Peter Mattis  <pmattis@localhost>
1137
1138         * gtkcheckbutton.c: 'gtk_checkbutton_size_allocate' was allocating
1139         too much space to its children and not leaving the check button
1140         room for the focus border.
1141
1142         * gtknotebook.c: 'gtk_notebook_size_request' wasn't requesting
1143         enough space when the notebook tabs are visible.
1144
1145 Sat Mar  1 01:59:35 1997  Peter Mattis  <pmattis@localhost>
1146
1147         * gtkpreview.c: Fixed a problem with 'gtk_preview_put' when the
1148         image byte order is GDK_MSB_FIRST.
1149
1150         * gtksignal.c:
1151         * gtksignal.h: Added 'gtk_signal_connect_after' and
1152         'gtk_signal_connect_object_after' functions. These connect signal
1153         handlers which will run after the class function associated with
1154         the signal.
1155
1156         * gtkstyle.c: Fixed a stupid bug in 'gtk_style_new_from_key' that
1157         was causing twice as many styles to be created as necesary.
1158
1159         * gtkwidget.c: 'gtk_real_widget_size_allocate' erases the widgets
1160         old allocation if it has the GTK_NO_WINDOW flag set.
1161
1162         * gtkwidget.c: 'gtk_real_widget_unmap' now erases the widget if it
1163         has the GTK_NO_WINDOW flag set.
1164
1165         * gtklabel.c: Removed 'gtk_label_unmap' as similar functionality
1166         was added to gtk_real_widget_unmap.
1167
1168         * gtkbin.c: Modified 'gtk_bin_map' and 'gtk_bin_unmap' so that it
1169         erases and draws the widget if it has the GTK_NO_WINDOW flag set.
1170
1171         * gtkframe.c: Modified 'gtk_frame_size_allocate' so that it erases
1172         the old allocation.
1173
1174 Fri Feb 28 03:27:05 1997  Peter Mattis  <pmattis@localhost>
1175
1176         * gtkwindow.c: 'gtk_window_set_title' now changes the window title
1177         if the window is already realized.
1178
1179         * gtkentry.c: 'gtk_entry_set_text' was emitting both a
1180         "delete_text" and a "changed_text" signal. Modified so that it
1181         only emits a "changed_text" signal.
1182
1183         * gtkpreview.c: Modified to work correctly on systems with MSB
1184         byte order. The colormap for TRUE and DIRECT color displays is now
1185         created if the default visual is not equal to the visual we are
1186         using.
1187
1188         * gtkstyle.c: 'gtk_style_attach' and 'gtk_style_find' weren't
1189         working properly in the presence of multiple colormaps are
1190         different depth visuals.
1191
1192         * gtkcontainer.c: Massively improved focus traversal using tab and
1193         arrow keys. It now uses the layout of the widgets to determine
1194         where to move the focus to.
1195
1196 Mon Feb 24 03:24:02 1997  Peter Mattis  <pmattis@localhost>
1197
1198         * gtkmenufactory.c: Set the accelerator table field for menus when
1199         they are created.
1200
1201         * gtkmenu.c:
1202         * gtkmenu.h: Added a default accelerator table field to menus so
1203         that runtime modification of accelerator keys in menus can work
1204         better.
1205
1206         * gtkrange.c: 'gtk_range_default_{h,v}motion' had faulty logic for
1207         deciding what to do when the slider was at the edge of the
1208         trough. They previously didn't update the adjustment value event
1209         if the value wasn't what it should be when the slider was at the
1210         edge of the trough.
1211
1212         * gtkviewport.c: 'gtk_viewport_size_allocate' and
1213         'gtk_viewport_adjustment_value_changed' both had the potential for
1214         performing a divide by 0. Checks are now in place to prevent this.
1215
1216         * gtkmenu.c: 'gtk_menu_map' now makes sure the menu lies on screen
1217         if the position function is NULL.
1218
1219         * gtkentry.c: Modified selection handling. 'gtk_delete_selection'
1220         actually removes the X selection now. 'gtk_entry_destroy' removes
1221         the selection as well and relies on the change in "gdk.c" to make
1222         sure the selection event will not be sent to a non-existant
1223         window.
1224
1225         * gdk.c: Selection events are only passed on if the selection
1226         owner is not NULL.
1227
1228         * gtkstyle.c: 'gtk_style_detach' and 'gtk_style_destroy' were not
1229         destroying the black and white gc's.
1230
1231 Sun Feb 23 19:17:56 1997  Peter Mattis  <pmattis@localhost>
1232
1233         * gtkwindow.c: 'gtk_window_size_request' was setting the window
1234         hints. This was also being done in 'gtk_window_map', so the
1235         instance being done in 'gtk_window_size_request' was removed.
1236
1237 Fri Feb 21 01:04:01 1997  Peter Mattis  <pmattis@localhost>
1238
1239         * gtkwidget.c: 'gtk_widget_draw' has to use the widgets allocated
1240         position for the drawing rectangle when the widget has the
1241         GTK_NO_WINDOW flag set.
1242
1243         * gtkwidget.c: In 'gtk_widget_init' the visual and colormap were
1244         being directly compared against 'default_visual' and
1245         'default_colormap' instead of calling
1246         'gtk_widget_get_default_{visual,colormap}'.
1247
1248         * gdkrectangle.c: Amazing! There was a bug in the
1249         'gtk_rectangle_intersect' logic. Its been there for near eternity
1250         and I never noticed.
1251
1252         * gtkpreview.c:
1253         * gtkpreview.h: Created preview widget which allows drawing to an
1254         rgb or grayscale buffer which is automatically displayed on the
1255         screen. Performs dithering as necessary.
1256
1257 Thu Feb 20 20:33:21 1997  Peter Mattis  <pmattis@localhost>
1258
1259         * gdkwindow.c: Modified the logic in 'gdk_window_new' which
1260         determined when to add a window to the WM_COLORMAP_WINDOWS
1261         property.
1262
1263 Wed Feb 19 19:55:29 1997  Peter Mattis  <pmattis@localhost>
1264
1265         * gtkruler.c: 'gtk_ruler_make_pixmap' was always destroying the
1266         old backing store and creating a new one even when it would create
1267         a new one of exactly the same size as the old one.
1268
1269 Tue Feb 18 18:32:10 1997  Peter Mattis  <pmattis@localhost>
1270
1271         * gmem.c: 'g_mem_chunk_alloc' was incorrectly modifying the mem
1272         areas free mem field when reallocating a previously freed
1273         atom. This caused a fairly severe memory leak.
1274
1275         * gtkmenushell.c: 'gtk_menu_shell_button_release' had a bug in the
1276         logic for deciding whether to initiate an X pointer grab or not
1277         when the mouse button was released. It now only initiates a grab
1278         if the mouse is released within an active menu item.
1279
1280 Fri Feb 14 00:57:40 1997  Peter Mattis  <pmattis@localhost>
1281
1282         * gtknotebook.c: Changed the look of notebook tabs slightly.
1283
1284         * gtkentry.c:
1285         * gtkentry.h: Deleting an entry widget which is holding the X
1286         selection presents some difficulties. The X selection must be
1287         released, but the widget can't be destroyed until the
1288         SELECTION_CLEAR event is received that the X server will send in
1289         response to clearing the X selection. There are probably still
1290         bugs in the current method of entry widget deletion when the X
1291         selection is held.
1292
1293         * gtkmain.c: 'gtk_propagate_event' was not properly destroying the
1294         toplevel window when receiving a key press event.
1295
1296         * gtkwidget.c: Setting a widget insensitive did not cause it to
1297         redraw. It now does.
1298
1299 Thu Feb 13 16:59:07 1997  Peter Mattis  <pmattis@localhost>
1300
1301         * gtkviewport.c: 'gtk_viewport_size_allocate' was allocating its
1302         child widget an adjusted allocation. Since the actual scrolling
1303         has handled by a subwindow this caused the child to be double
1304         scrolled. Modified to always set the child allocations origin to
1305         (0, 0).
1306
1307 Wed Feb 12 01:06:48 1997  Peter Mattis  <pmattis@localhost>
1308
1309         * gtkentry.c: Text is now centered vertically. Previously it was
1310         pushed up against the top. This problem was only evident when the
1311         widget was allocated more vertical space than it requested.
1312
1313         * gtkfilesel.c: 'gtk_file_selection_key_press' was previously only
1314         a stub for tab completion. The actual tab completion call had been
1315         left out. (Oops!)
1316
1317 Tue Feb 11 01:43:08 1997  Peter Mattis  <pmattis@localhost>
1318
1319         * gtksignal.c: 'gtk_signal_disconnect_by_data' was going into a
1320         loop and crashing. Bad logic. Fixed.
1321
1322         * gtkmain.c: An idle function which returns FALSE will be removed
1323         from the list of idle functions. This makes the functioning of
1324         idle functions and timeouts more similar.
1325
1326         * gtkentry.c: 'gtk_entry_get_text' now returns an empty string
1327         when the actual text is NULL. This allows "stupid" programs to use
1328         the value returned by 'gtk_entry_get_text' blindly (without
1329         checking to see if its NULL).
1330
1331         * gtkradiobutton.c: Modified 'gtk_radio_button_clicked' so that
1332         'gtk_toggle_button_toggled' is called _after_ the widget state is
1333         changed.
1334
1335         * gtksignal.c:
1336         * gtksignal.h: Added 'gtk_signal_name' which returns the character
1337         string name for a given signal number.
1338
1339         * gtkwidget.c: 'gtk_widget_set_parent' checks to see if the widget
1340         is now "anchored" through the parent chain to a widget which is
1341         GTK_ANCHORED. If it is, then it changes the widgets style using
1342         'gtk_rc_get_style' and recursively performs the same operation on
1343         the widgets children. This is necessary is 'gtk_rc_get_style' only
1344         works properly on "anchored" widgets.
1345
1346         * gtkwindow.c: Modified GTK_WIN_POS logic so that it is only used
1347         immediately after the window has been shown.
1348
1349         * gtkmenu.c: 'gtk_menu_key_press'. Can now change menu item
1350         accelerator keys on the fly. Why? Why not. Cool/useless feature of
1351         the day.
1352
1353         * gtkmenuitem.c: Accelerator key drawing. Somehow that never got
1354         finished. (Oops!)
1355
1356         * gtkdrawingarea.c: 'gtk_drawing_area_size_allocate' was not
1357         actually installed during 'gtk_drawing_area_class_init'. (Oops!)
1358
1359         * gtkframe.c: 'gtk_frame_size_request' fixed size requisition
1360         problem caused by unsigned arithmetic.
1361
1362         * gtkwindow.c: Modified window widget so that it only uses the
1363         widget uposition auxiliary information immediately after it has
1364         been shown. This prevents the annoying bug which can cause a
1365         uposition'ed window to jump back to its original position after
1366         the user moves it.
1367
1368         * gtkwidget.c: Need to ref and unref style in
1369         'gtk_widget_{push,pop}_style' to make sure that a style on the
1370         style stack is not destroyed.
1371
1372         * gtktogglebutton.c: 'gtk_toggle_button_set_state' now calls
1373         gtk_button_clicked to actually change the state of the
1374         button. In this way, radio buttons can now perform the appropriate
1375         actions when the toggle button state is set.
1376
1377 Mon Feb 10 00:27:39 1997  Peter Mattis  <pmattis@localhost>
1378
1379         * gtklist.c: 'gtk_list_select_item' and 'gtk_list_unselect_item'
1380         were casting a GList* variable to a a GtkWidget* variable. Bad bad
1381         bad. (Tim Janik).
1382
1383         * gtksignal.c: Modified 'gtk_signal_connect' and
1384         'gtk_signal_connect_object' to warn when a signal type cannot be
1385         found.
1386
1387 Sun Feb  9 00:15:30 1997  Peter Mattis  <pmattis@localhost>
1388
1389         * gtkoptionmenu.c:
1390         * gtkoptionmenu.h: Changed option menus back to being derived from
1391         buttons. This fixes up some screwiness with their user
1392         interaction.
1393
1394         * gtkwindow.c: Modified key press handler to support focus
1395         traversal.
1396
1397         * gtkcontainer.c:
1398         * gtkcontainer.h: Added default focus traversal back in.
1399
1400 Sat Feb  8 10:44:38 1997  Peter Mattis  <pmattis@localhost>
1401
1402         * gtkviewport.h:
1403         * gtkviewport.c: Massively sped up viewport scrolling. Used to be
1404         reallocating child's size (offset) each time a scrollbar
1405         moved. Now a subwindow is moved. All the children are moved
1406         automatically by moving the subwindow. Much much much faster.
1407
1408 Tue Feb  4 00:20:44 1997  Peter Mattis  <pmattis@localhost>
1409
1410         * gtree.c: Changed 'g_tree_node_search' to use a loop instead of
1411         recursion.
1412
1413 Mon Feb  3 11:30:03 1997  Peter Mattis  <pmattis@localhost>
1414
1415         * gtkbutton.c: Removed 'parent_destroy' global and replaced it
1416         with 'parent_class' global to reflect style used in other
1417         widgets.
1418
1419         * gtknotebook.c: Tab labels were being allocated less than their
1420         requested size.
1421
1422         * gtkrange.c:
1423         * gtkrange.h: Moved the "digits" field of scales into the range
1424         type. The adjustment value for scales is truncated to the number
1425         of visible digits instead of being left untouched.
1426
1427         * gtree.c: Fixed a bug in the AVL tree implementation. Single
1428         rotations were always being performed during insertion. It is
1429         sometimes necessary to perform a double rotation.
1430
1431         * gtklabel.c: Modified 'gtk_label_expose' to only draw the label
1432         when the allocated space is greater than or equal to the requested
1433         space.
1434
1435         * gtklabel.c: Added call to 'gtk_widget_unmap' to
1436         'gtk_label_destroy' in order for the label to redraw correctly
1437         (erase itself) when destroyed.
1438
1439         * gtklabel.c: Added 'gtk_label_unmap' call which erases the labels
1440         allocation when it gets unmapped.
1441
1442         * *.h: Removed a few remaining instances of using "class" as a
1443         parameter name. (Causes problems for C++).
1444
1445 Fri Jan 31 12:26:50 1997  Peter Mattis  <pmattis@localhost>
1446
1447         * gtkcontainer.c: 'gtk_container_enable_resize' needs to call
1448         'gtk_container_check_resize' instead of
1449         'gtk_container_need_resize'.
1450
1451         * gtkwidget.c: 'gtk_real_widget_show' now maps the widget if its
1452         parent is mapped.
1453
1454         * gtkscrolledwindow.c: Fixed size allocation when the scrollbar
1455         policy's are GTK_POLICY_AUTOMATIC. Doing it correctly is harder
1456         than I originally thought.
1457
1458         * gtklist.c: Added 'gtk_list_child_position' to determine the
1459         integer position in a list of a child. Filled in the
1460         'gtk_list_item_select' and 'gtk_list_item_unselect' stubs.
1461
1462 Thu Jan 30 16:08:06 1997  Peter Mattis  <pmattis@localhost>
1463
1464         * gmem.c: Changed the implementation of G_ALLOC_AND_FREE mem
1465         chunks. They used to allocate SIZEOF_VOID_P extra bytes per atom
1466         in order to keep track of which mem area they were allocated
1467         from. Now the mem area is determined by searching through an AVL
1468         tree of the mem areas for a mem chunk and comparing memory
1469         locations. A little slower, but makes G_ALLOC_AND_FREE mem chunks
1470         much more attractive.
1471
1472         * gtree.c: Added an AVL tree implementation to glib.
1473
1474         * gtksignal.c:
1475         * gstring.c: va_arg (arg_list, {char, short}) is
1476         invalid. Arguments passed in a variable argument list are
1477         promoted. ({char, short}->int). Seemed to work ok before under
1478         Linux. Crashed under FreeBSD.
1479
1480 Tue Jan 28 02:27:51 1997  Peter Mattis  <pmattis@localhost>
1481
1482         * gdkwindow.c: Fixed a major slowdown apparent in the file
1483         selection dialog which was caused by calling
1484         'gtk_window_add_colormap_windows' way way way too often.
1485
1486         * *.c: Many widgets called 'gtk_container_need_resize' when
1487         something internal changed which would cause the widget to grow or
1488         shrink. The assumption was made that the widget would change size
1489         and an expose event would be generated. This happens "most" of the
1490         time. But its possible for certain widgets to change size without
1491         generating expose events, or for its internal geometry to change
1492         without a change of size which would mean no expose event was
1493         generated. So a wrapper function called
1494         'gtk_container_check_resize' was created and
1495         'gtk_container_need_resize' was modified so that it returns FALSE
1496         if a resize was actually generated and TRUE if nothing
1497         changed. This allows 'gtk_container_check_resize' to initiate a
1498         'gtk_widget_size_allocate' and 'gtk_widget_draw' to emulate the
1499         expose event.
1500
1501 Sat Jan 25 14:17:44 1997  Peter Mattis  <pmattis@localhost>
1502
1503         * gtkmain.c: Fixed a bug with propogating key press events. The
1504         events were sent 2 times to the toplevel windows which caused the
1505         focus widget to be activated twice when the space bar was pressed.
1506
1507         * */configure.in:
1508         * */Makefile.am: Added support for libtool and removed the old
1509         shared library configuration craziness.
1510
1511 Fri Jan 24 12:59:22 1997  Peter Mattis  <pmattis@localhost>
1512
1513         * gtktext.c:
1514         * gtktext.h: Josh's fixes and additions to the text widget.
1515
1516         * gtkfill.c:
1517         * gtkfill.h: Filler widget useful for filling space in a
1518         table. Can specify a minimum size. Used by the canvas widget.
1519
1520         * gtknotebook.c:
1521         * gtknotebook.h: Made outline of notebook widget.
1522
1523         * gtkcanvas.c:
1524         * gtkcanvas.h: Started canvas widget. A composite of 2 rulers (w/
1525         an origin), 2 scrolllbars. Guides, grids, snap to.
1526
1527 Sun Jan 19 18:26:45 1997  Peter Mattis  <pmattis@localhost>
1528
1529         * gtkdialog.c:
1530         * gtkdialog.h: Created dialog widget which creates a standard
1531         looking dialog with buttons along the button and a separator.
1532
1533         * gtkxid.c: Generalized the window table code for looking up a gdk
1534         window based on an XID to work for any XID and a piece of
1535         data. Can now look up gdk fonts based on their XID.
1536
1537         * gtkruler.c:
1538         * gtkruler.h:
1539         * gtkhruler.c:
1540         * gtkhruler.h:
1541         * gtkvruler.c:
1542         * gtkvruler.h: Started conversion of the ruler widget.
1543
1544         * gtktext.c:
1545         * gtktext.h: Started conversion of the text widget. Scrolling
1546         doesn't work.
1547
1548         * gtkmain.c: Fixed a fairly major bug. The event widget needs to
1549         be in a call for the entire duration of handling an event. Not
1550         just for when the event widget itself is handling the event.
1551
1552         * gtkfilesel.c: Fixed up some bugs with resizing.
1553
1554 Fri Jan 10 14:18:03 1997  Peter Mattis  <pmattis@localhost>
1555
1556         * gtkwidget.c:
1557         * gtkwidget.h:
1558         * gtkentry.c:
1559         * gtkentry.h: Support for selections.
1560
1561         * gdkselection.c:
1562         * gdk.c:
1563         * gdktypes.h:
1564         * gdk.h: Gdk support for X selections. Currently only text
1565         selections are supported.
1566
1567         * gtksignal.c: Fixed a major bug which occurred when destroying an
1568         object. Memory was being written to after it was freed.
1569
1570         * gtkfilesel.c:
1571         * gtkfilesel.h: Hooked up more functionality to the file selection
1572         dialog.
1573
1574 Wed Jan  8 18:13:53 1997  Peter Mattis  <pmattis@localhost>
1575
1576         * gtkfilesel.c:
1577         * gtkfilesel.h: Mostly converted old file selection dialog
1578         widget. The widget is derived from the GtkWindow class and is
1579         quite a bit simpler in the widget code.
1580
1581         * gtkwidget.c: Fixed 'gtk_widget_grab_focus' and
1582         'gtk_widget_grab_default' to check that the toplevel widget is a
1583         type of window (which includes classes derived from windows).
1584
1585 Tue Jan  7 01:12:32 1997  Peter Mattis  <pmattis@localhost>
1586
1587         * gtkwindow.c: Was calling 'gtk_window_resize' twice in a
1588         row...why?
1589
1590         * gtksignal.c:
1591         * gtksignal.h:
1592         * *.c: Changed 'gtk_signal_new' so that the class function that is
1593         called when the signal is emitted can be called either before,
1594         after or both before and after the calling of any signal
1595         handlers.
1596
1597         * gtkobject.c:
1598         * gtkobject.h: Added 'object_data' mechanism for storing data
1599         associated with a character string key in objects. Removed
1600         'user_data' field of objects and changed
1601         'gtk_object_{get,set}_user_data' to use the object data
1602         mechanism. Removed 'handlers' field of objects.
1603
1604         * gtkwidget.c:
1605         * gtkwidget.h:
1606         * gtkwindow.c: Modified aux info mechanism to use object data
1607         mechanism.
1608
1609         * gtksignal.c: Modified signal mechanism to use object data
1610         mechanism instead of 'handlers' field.
1611
1612
1613 Mon Jan  6 15:10:16 1997  Peter Mattis  <pmattis@localhost>
1614
1615         * gtkmenushell.c: Fixed up button press handling so as to conform
1616         more closely to that used by Motif.
1617
1618 Wed Jan  1 21:27:17 1997  Peter Mattis  <pmattis@localhost>
1619
1620         * gtkmenu.c:
1621         * gtkmenu.h:
1622         * gtkmenubar.c:
1623         * gtkmenubar.h:
1624         * gtkmenushell.c:
1625         * gtkmenushell.h: Reorganization of menu-ing code so that code
1626         duplication is reduced. The menu shell now contains most of the
1627         code for menu-ing interaction while menus and menubars simply layout
1628         their child menu items in the appropriate place.
1629
1630 Sun Dec 29 17:48:18 1996  Peter Mattis  <pmattis@localhost>
1631
1632         * gtkmenu.c:
1633         * gtkmenubar.c:
1634         * gtkmenuitem.h:
1635         * gtkmenuitem.c: Modifications so that menu item accelerators and
1636         the submenu indicator are drawn correctly and the correct amount
1637         of space is allocated.
1638
1639 Sat Dec 28 00:32:13 1996  Peter Mattis  <pmattis@charnley.HIP.Berkeley.EDU>
1640
1641         * gtkmenufactory.h:
1642         * gtkmenufactory.c: Started menu factories as an easy method to
1643         create and manipulate menus.
1644
1645 Fri Dec 27 13:17:34 1996  Peter Mattis  <pmattis@charnley.HIP.Berkeley.EDU>
1646
1647         * gtkmenu.c:
1648         * gtkmenu.h:
1649         * gtkmenubar.c:
1650         * gtkmenubar.h:
1651         * gtkmenuitem.c:
1652         * gtkmenuitem.h:
1653         * gtkmenushell.c:
1654         * gtkmenushell.h: Implemented basic menu functionality. Menubars
1655         and popup menus work. Submenus work. (Much left to be done).
1656
1657 Wed Dec 18 15:27:05 1996  Peter Mattis  <pmattis@charnley.HIP.Berkeley.EDU>
1658
1659         * gtktypeutils.h:
1660         * gtktypeutils.c: Added 'gtk_type_from_name' which returns a type
1661         identifier given a type name. Implemented using a second hash
1662         table keyed by type names.
1663
1664         * gtkbutton.c:
1665         * gtktogglebutton.c: Fixed very small messed-up drawing bug when a
1666         button loses its focus.
1667
1668         * gtkwidget.h:
1669         * gtkwidget.c:
1670         * gtkbutton.c:
1671         * gtkwindow.c: Added default button handling. Default buttons now
1672         draw correctly and pressing return or enter causes the default
1673         button (if one exists) to be activated.
1674
1675 Tue Dec 17 19:32:21 1996  Peter Mattis  <pmattis@charnley.HIP.Berkeley.EDU>
1676
1677         * gtkhscale.c:
1678         * gtkvscale.c: Overrode 'draw_slider' method of ranges in order to
1679         draw the slider of scales with a line in them so as to be closer
1680         to the Motif look-and-feel.
1681
1682         * gtkwindow.c: Modified 'gtk_window_focus_in_event' so that focus
1683         in events are only handled when the window is visible. Fixes a bug
1684         where spurious focus in events get sent when a window is being
1685         hidden.
1686
1687         * gtkwidget.h: Added 'activate_signal' field to the GtkWidgetClass
1688         structure. Added 'gtk_widget_activate' call to emit the activate
1689         signal for a widget if it is non-zero.
1690
1691 Tue Dec 10 15:59:45 1996  Peter Mattis  <pmattis@charnley.HIP.Berkeley.EDU>
1692
1693         * gtkwidget.c: 'gtk_widget_set_name' oops in strdup'ing the old
1694         "widget->name" instead of the new one we are setting.
1695
1696         * gtkrc.c: 'gtk_rc_widget_path' changed to use
1697         'gtk_widget_get_name' instead of accessing the "widget->name"
1698         field directly.
1699
1700         * gtkwidget.c: Added 'gtk_widget_get_name' function which returns
1701         the widgets name if it exists and the widgets type name if it does
1702         not.
1703
1704         * gtkcheckbutton.c: Added 'gtk_check_button_draw'
1705         function. Modified 'gtk_check_button_expose' to pass an expose
1706         event to child instead of callings its draw function.
1707
1708         * gtkentry.c: 'gtk_entry_draw_text' why was "+1" being added to
1709         the font->ascent to calculate the font position? This was wrong
1710         and caused some characters in fonts to be clipped. (Notably "g").
1711
1712         * gtkentry.c: 'gtk_entry_realize' specify GTK_BUTTON1_MOTION_MASK
1713         and GTK_POINTER_MOTION_HINT_MASK for _both_ windows.
1714
1715         * gtkmain.c: 'gtk_propagate_event' needs to set the GTK_IN_CALL
1716         flag for the object before calling 'gtk_widget_event' and needs to
1717         destroy the object if necessary after 'gtk_widget_event' returns.
1718
1719         * gtkradiobutton.c: 'gtk_radio_button_clicked' needs to call
1720         'gtk_toggle_button_toggled' when the currently active button is
1721         toggled.
1722
1723         * gtkwidget.c: 'gtk_real_widget_hide' needs to call
1724         'gtk_widget_unmap' if the widget is currently mapped.
1725
1726         * gtkwindow.c: Prevent automatic resizing after the user has
1727         specified a new window size. Add 'handling_resize' flag to
1728         windows.
1729
1730         * gtkscrolledwindow.c: Implement the GTK_POLICY_AUTOMATIC
1731         scrollbar policy. Need to connect to the adjustments 'changed'
1732         signal and notice when the scrollbars aren't in use.
1733
1734         * gtkcontainer.c: 'gtk_container_init' must set 'auto_resize' and
1735         'need_resize' fields to TRUE and FALSE respectively.
1736
1737         * gtkwidget.c: 'gtk_widget_set_parent' must all set a widgets state
1738         to its parents state.
1739
1740 Sun Dec  1 01:31:01 1996  Peter Mattis  <pmattis@charnley.HIP.Berkeley.EDU>
1741
1742         * Started ChangeLog