]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
Some small drawing fixes for scroll arrows.
[~andy/gtk] / ChangeLog.pre-2-4
1 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
2
3         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
4
5 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
6  
7         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
8         gdk_window_invalidate_maybe_recurse() for recursion.
9         (Soeren Sandmann)
10
11         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
12  
13         * gtk/gtkcontainer.c (gtk_container_expose): Call
14         gtk_container_forall() not _foreach() to propagate,
15         since we need to propagate exposes to internal children
16         as well.
17
18         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
19         Remove the restriction of only being able to call these
20         on window widgets, since we have lots of NO_WINDOW widgets
21         with windows now; for add events, recurse over the children
22         of widget->window to find one owned by the widget.
23
24         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
25         window to catch events.
26
27         * gtk/gtktogglebutton.[ch]: Remove the code for switching
28         between NO_WINDOW and WINDOW widgets based on the mode.
29
30         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
31         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
32
33         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
34
35         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
36         change for range.
37
38         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
39  
40         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
41
42 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
43
44         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
45         "message_type" and "buttons" CONSTRUCT properties. (#64069)
46
47         * tests/testsocket.c: Expand tests to add a "local passive
48         child" (Test case for #64428)
49
50 2001-11-14  jacob berkman  <jacob@ximian.com>
51
52         * gtk/gtkgamma.c (button_clicked_callback): create the label with
53         a mnemonic
54
55 2001-11-15  Sven Neumann  <sven@gimp.org>
56
57         * tests/testgtk.c: make it compile without warnings.
58
59 2001-11-14  Alex Larsson  <alexl@redhat.com>
60
61         * gtk/gtklabel.c:
62         Don't recalculate the layout on each gkt_label_ensure_layout () for
63         wrapped labels.
64
65 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
66
67         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
68         the currently selected column when we get the column, #64380
69
70         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
71         to cancel CellRendererText editting, #63613
72
73         * gtk/gtkcellrenderertext.c: ditto
74
75         * gtk/gtkcellrenderertext.h: formatting changes
76
77 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
78
79         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
80
81         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
82
83         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
84
85         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
86
87         * gtk/gtklabel.c: Documentation fixes (#64452)
88
89 2001-11-14  Daniel Egger  <degger@fhm.edu>
90
91         * gdk-pixbuf/io-xpm.c: 
92         (xpm_skip_whitespaces): Remove unused static function.
93         (xpm_skip_string): Dito.        
94         (xpm_extract_color): Declare const variable const to avoid warnings. 
95
96         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
97         
98         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
99         
100         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
101         a long.
102
103 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
104
105         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
106         out accidental commit of debugging timing code.
107
108 2001-11-14  Havoc Pennington  <hp@redhat.com>
109
110         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
111         it doesn't move to a new line each time you press it
112
113         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
114         return value, #62987
115
116 2001-11-14  Havoc Pennington  <hp@redhat.com>
117
118         * tests/testtextbuffer.c (main): bulk of the tests were commented
119         out, oops.
120
121         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
122         function work, should resolve #63426
123         (gtk_text_iter_ends_line): return TRUE for the end iterator
124
125         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
126         a couple things that might get cached in here.
127
128 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
129
130         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
131         "model" construct property for language bindings.
132
133         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
134         function to let you set the column types of a GtkTreeStore for
135         language bindings.
136
137         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
138
139 2001-11-13  Havoc Pennington  <hp@redhat.com>
140
141         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
142         including reference to bugzilla bug about how we should have 
143         a better way of positioning children
144
145         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
146
147         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
148         size to side rects if they don't exist, #63438
149
150 2001-11-13  Havoc Pennington  <hp@redhat.com>
151
152         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
153         properly replace selection with Return or Tab
154
155         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
156         that didn't locate the end of the line correctly, should fix #63800
157
158 2001-11-13  Havoc Pennington  <hp@redhat.com>
159
160         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
161         to requisition, request non-anchored children
162         (gtk_text_view_size_allocate): handle border width, allocate
163         non-anchored children
164         (text_view_child_new_window): set the child as object data
165         (gtk_text_view_move_child): allow children at negative
166         coordinates, no reason why not
167         (gtk_text_view_forall): make it copy the list of children before
168         walking it, to avoid reentrancy issues  
169         (gtk_text_view_move_child): short-circuit if position is unchanged
170         (changed_handler): only queue_resize if requisition has changed
171         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
172         a better job of invalidation ourselves
173
174         * tests/testtext.c: add tests for the fixed-position children
175
176 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
177
178         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
179         with gdk threads macro.
180
181 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
182
183         * gtk/maketypes.awk: fix type utils generation on unix.
184
185         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
186         registry.
187
188         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
189         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
190         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
191         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
192         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
193         introduced ::accel_changed signal for change notification, and
194         gtk_accel_group_connect/disconnect to connect closures to accel groups.
195         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
196         functions.
197         deprecated gtk_accel_group_ref/unref.
198
199         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
200         to accel group changed notification and basically operate on closures.
201         removed gtk_accel_label_get_accel_object and
202         gtk_accel_label_set_accel_object.
203         introduced gtk_accel_label_set_accel_closure, and for convenience,
204         gtk_accel_label_set_accel_widget.
205
206         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
207         which mostly moved into gtkaccelmap.[hc].
208         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
209         and gtk_item_factory_print_func.
210
211         * gtk/gtkmain.c: call _gtk_accel_map_init().
212
213         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
214         that associates an accelerator path with menu items, through which
215         persistent accelerator settings on menu items are enabled.
216
217         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
218         paths of menu item can be default constructed to allow installation
219         of accelerators on menu items that don't come with an accelerator
220         binding by default.
221
222         * gtk/gtksettings.c: fix STRING type rc settings by special casing
223         them appropriately in the parser.
224
225         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
226         gtk_signal_newv().
227
228         * gtk/gtkwidget.[hc]: accelerator API revamp.
229         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
230         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
231         gtk_widget_(un)lock_accelerators.
232         accelerators maintained through gtk_widget_add/remove_accelerator()
233         are not runtime changable now, the correct sequence to setup a
234         widget for runtime changable accelerators is now:
235           gtk_accel_map_add_entry(accel_path, key, mods);
236           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
237
238         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
239         group changes (as well as mnemonic changes) through the new signal
240         ::accels_changed.
241
242 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
243
244         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
245         GString->string conversions.
246
247 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
248
249         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
250         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
251
252 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
253
254         * gtk/gtktreeview.c: Documentation fixes. (#64377)
255         
256         * gtk/gtktreestore.c: Documentation fixes. (#64376)
257
258 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
259
260         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
261         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
262         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
263         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
264
265 2001-11-10  Hans Breuer  <hans@breuer.org>
266
267         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
268         we know what we are talking about when asked for MINMAXINFO.
269         Also some cleaning for !HAVE_DIMM_H etc.
270
271 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
272
273         * gtk/gtktreeviewcolumn.c: Fix docs for 
274         gtk_tree_view_column_set_sort_order. (#62647)
275         
276         * gtk/gtkcontainer.c: Fix docs for 
277         gtk_container_set_border_width. (#64139)
278
279         * gtk/gtkcolorsel.c: Documentation fixes.
280
281 2001-11-10  Hans Breuer  <hans@breuer.org>
282
283         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
284         don't have strcasecmp()
285
286         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
287         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
288         code duplication wrap it in its own function and use it in 
289         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
290
291         * gdk/win32/gdkdrawable-win32.c : implement the finalize
292         method like the X11 version does, allow to set_colormap NULL
293         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
294         set_colormap, also some adaption to X11 version :
295         (gdk_window_hide) call _gdk_window_clear_update_area
296         (gdk_window_reparent) call _gdk_window_init_position
297
298         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
299         call gdk_window_resize() after all hints are set, because the
300         window resizing process (WM_GETMINMAXINFO) takes all of them into 
301         account
302
303         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
304
305         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
306         sizeof (GdkVisualPrivate)
307
308         * gdk/gdk.def gtk/gtk.def : upated externals
309
310         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
311           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
312         from now on use make.msc from $(TOP)/glib/build/win32
313
314         * gtk/stock-icons/makefile.msc : add stock_missing_image
315
316 2001-11-08  Tor Lillqvist  <tml@iki.fi>
317
318         * README.win32: Add headers. Add section about ActiveIMM.
319
320         * configure.in: Add --with-ie55 flag to specify the location of
321         the "IE55 libs and headers" package downloadable from Microsoft,
322         which contains, among other things, the Active IMM header dimm.h
323         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
324         Require GLib 1.3.10.
325         
326         * config.h.win32.in: New version, produced by merging two
327         configure-generated ones (for gcc and MSVC). Hopefully #defines
328         the same flags that the previous, hand-written one, did.
329
330         * gdk/Makefile.am
331         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
332
333         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
334         stuff. Remove unused GdkIOClosure.
335
336         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
337         available).
338
339         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
340         for uuid.lib. (Does it really have to be this hard to use an
341         existing library with libtool? Probably I am missing something.)
342
343 2001-11-08  Darin Adler  <darin@bentspoon.com>
344
345         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
346         typo where it says LEFT instead of CENTER.
347
348 2001-11-07  Darin Adler  <darin@bentspoon.com>
349
350         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
351         (gtk_dialog_set_default_response): Add g_return_if_fail.
352
353 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
354
355         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
356         Add row_draggable() vfunc, and wrapper function.
357
358         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
359         row_drop_possible take a GtkSelectionData, rather than
360         model/row pair.
361
362         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
363         new DND interfaces.
364
365         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
366         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
367         and rename them to enable_model_drag_source/dest.
368
369         * gtk/treeviewcolumn.c: Add DND of columns between rows.
370         Still can't drop _to_ the left tree, but other places
371         work.
372
373         * gtk/gtktreeview.c (unset_reorderable): Unset the
374         reorderable property if unset/enable_model_drag_source/dest
375         are called manually.
376
377         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
378         Correct for change in depth count handling.
379
380         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
381         Pass in a expose area to gtk_tree_view_column_cell_render()
382
383 2001-11-06  Havoc Pennington  <hp@redhat.com>
384
385         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
386
387 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
388
389         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
390
391 2001-11-05  Havoc Pennington  <hp@redhat.com>
392
393         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
394         widgets in here
395         (gtk_text_view_realize): set parent window of child widgets
396         (gtk_text_view_size_request): use child req to decide whether
397         to invalidate layout, not widget->requisition
398
399         * gtk/gtktextdisplay.c (render_layout_line): set
400         shaped_width_pixels for NULL shape objects, so that we properly
401         draw the "missing pixbuf/widget" thing
402         (render_layout_line): don't draw the widget here
403         (gtk_text_layout_draw): pass out a list of widgets that need exposing
404
405         * demos/gtk-demo/textview.c (insert_text): add demo of child
406         widgets
407
408         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
409
410         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
411
412         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
413         scroll offsets
414         (gtk_text_view_value_changed): poke new X and Y into child allocations
415
416 2001-11-06  Tor Lillqvist  <tml@iki.fi>
417
418         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
419         -specific directory on Windows, too (#63759).
420
421 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
422
423         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
424         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
425         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
426         directly to Picture objects instead of using XftDraw.
427         This fixes the problem where we weren't able to 
428         properly destroy XftDraw objects before destroying
429         the accompanying windows, and probably improves
430         efficiency a bit too. (#50214)
431
432 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
433
434         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
435         Clamp max window width/height to 32767, not 32768 since
436         we have to be able to deal with a dx/y of -32768 without
437         getting a width of 65536 when guffaw scrolling.
438
439         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
440         for the guffaw scrolling case, fixing some problems with
441         copy-area case as well. Fix BadValue bug with moving windows
442         by large amounts.
443
444         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
445         clip in window structue before calling gdk_window_invalidate_region
446         since that trims new invalidations to the window's visible
447         region.
448
449         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
450         Really set the static window gravity on the children, not
451         repeatedly on the window.
452
453         * gtk/testgtk.c: Add a torture test for big windows and 
454         gdk_window_scroll().
455
456 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
457
458         * acconfig.h configure.in: sigsetjmp is macroized in some places,
459         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
460
461 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
462
463         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
464         in terms of pango_color_parse().
465
466         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
467         gdk_color_parse() implementations.
468
469 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
470
471         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
472         queue_resize_on_group with both the old and new mode, not
473         just the new mode. (#60171, Nicolas Setton). Also, notify
474         the "mode" property.
475         
476 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
477
478         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
479         for use in "shallow invalidation" of a widget. (Windows belonging
480         to the widget, but not to the widget's children)
481
482         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
483         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
484         up on ancestors up to the resize container on queue_resize. Size
485         requests only actually take place if GTK_REQUEST_NEEDED, size
486         allocations only take place if GTK_ALLOC_NEEDED or the size
487         changed.
488
489         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
490         container->resize_widgets and the RESIZE_NEEDED flag since the
491         above flags are sufficient to figure out what needs to be
492         resized/reallocated. Remove code manipulating
493         container->resize_widget.
494
495         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
496         allows widgets to turn off being automatically invalidated is when
497         they are resized.
498
499         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
500         a widget is resized or moved is "shallow" as described above -
501         only the windows that need to be invalidated are invalidated.
502
503         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
504         Make these widget's init functions call 
505         gtk_widget_set_redraw_on_allocate(widget,FALSE).
506
507         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
508         _gtk_container_queue_resize(), since we don't want
509         redrawing. (Probably could be done for other 
510         calls to gtk_widget_queue_resize() in gtkwindow.c,
511         but this is the most important one.)
512
513         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
514         gtk_widget_queue_draw() - size_allocate() handles
515         that as appropriate.
516
517         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
518         of queue_clear() to avoid invalidating children.
519
520 2001-11-04  jacob berkman  <jacob@ximian.com>
521
522         * gtk/gtkmain.c (find_module): don't free the module name until
523         after we load the module
524
525 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
526  
527         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
528         derivation instead of boxed derivation.
529  
530         * gtk/gtkmarshal.list: Remove some now unused marshallers.
531  
532 2001-11-04  Tor Lillqvist  <tml@iki.fi>
533
534         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
535         include yesterday, without really thinking), as that defeats the
536         working of correct_libdir_prefix() (it becomes a no-op.). Add
537         comment mentioning that. Thanks to Hans Breuer for noticing.
538         
539 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
540
541         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
542         signal argument (was GtkWidget*).
543
544         * gtk/gtkwindow.c (gtk_window_frame_event),
545           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
546         Fixed argument types as above, removed GTK_WINDOW casts and
547         added some GTK_WIDGET casts instead.
548
549 2001-11-03  Hans Breuer  <hans@breuer.org>
550
551         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
552         finalize to parent class to get removed from the toplevel_list.
553         Should fix 'random' crashes of #63474.
554
555         * gtk/gtktreemodelsort.c : chain finalize() to parent class
556
557 2001-11-03  Tor Lillqvist  <tml@iki.fi>
558
559         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
560         for .dll or .so as appropriate as module suffix.
561
562         * gtk-zip.sh.in: Use correct import library names.
563
564         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
565
566         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
567         Windows to turn build-time paths from a gtk.immodules distributed
568         as part of a binary package into runtime ones in the
569         end-user-chosen installation directory.
570         (gtk_im_module_init): Use it for module path and domain
571         directory.
572
573 2001-11-02  Tor Lillqvist  <tml@iki.fi>
574
575         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
576         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
577         Windows.
578
579 2001-10-30  Tor Lillqvist  <tml@iki.fi>
580
581         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
582         files. Configure on Win32 (running on Cygwin) thinks symlinks
583         exist, but pkg-config is not necesarily a Cygwin program, and
584         doesn't understand them.
585
586 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
587
588         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
589         a bit.  I don't think it's completely correct yet, but it's
590         getting there.
591
592 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
593
594         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
595         random + 5 for width and height. If people want padding,
596         they should add padding. (Note the +5 isn't padding
597         that will always appear - it just appears in the case
598         where the widget is allocated it's requisition.)
599         (#51018, Janet Davis)
600
601 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
602
603         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
604         the structure for future expansion.
605
606 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
607
608         Patch from HideToshi Tajima (#51922)
609         
610         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
611
612         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
613         set_use_preedit().
614         
615         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
616         to destroy the input context because we change the
617         client window or use_preedit, make sure we empty
618         the preedit string.
619
620 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
621
622         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
623         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
624         proposed ordering of buttons with [OK] in the lower
625         right hand corner. Patch from Gregory Merchan,
626         #56331.
627
628 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
629
630         * gtk/gtklabel.c (gtk_label_select_region_index): remove
631         extraneous gtk_label_clear_layout (label)
632
633 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
634
635         * tests/makefile.msc, gtk/makefile.msc.in: Removed
636         -DGTK_DISABLE_COMPAT_H.
637
638         * docs/Changes-2.0.txt:
639         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
640
641         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
642
643 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
644
645         * examples/**/Makefile.am: Convert to use pkg-config
646         rather than gtk-config. (#53375, Skip Montanaro)
647
648 2001-11-02  Matt Wilson  <msw@redhat.com>
649
650         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
651         broken unused, non-compiling, static function.
652
653 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
654
655         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
656         Iterate through children of the action area, not of
657         the vbox. (#58278, Sergey Kuzminov)
658
659 2001-11-01  Havoc Pennington  <hp@pobox.com>
660
661         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
662         order to remove a workaround in Nautilus that forced
663         GTK_ENABLE_BROKEN
664
665         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
666
667 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
668
669         * gtk/gtkrange.c: Patch from George Lebl to 
670         fix division by zero for full scroll bars. (#62114)
671
672 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
673
674         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
675         around gtk_widget_event() if we are going to
676         set a flag afterwards. (#63464)
677
678 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
679
680         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
681         Actually add the missing/broken image icon as the
682         image for the "missing image" stock icon.
683
684 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
685
686         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
687         Set a reasonable default height for the window.
688
689         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
690         bug where subsequent '-' weren't converted to '_'.
691         (#59550, Matthias Clasen)
692
693         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
694         justify the Help menu - just include a comment on
695         how to do it. (#63539,  Marius Andreiana)
696
697         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
698         list GTK_ICON_SIZE_INVALID.
699
700         * demos/gtk-demo/stock_browser.c: Show the biggest available
701         size, not a fixed size. (Often reported, including #63539, 
702         Marius Andreiana)
703
704 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
705
706         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
707         #59583
708
709         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
710         warning.
711
712 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
713
714         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
715         (Daniel Elstner).
716
717 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
718
719         * gtk/gtkimcontext.[ch]: Add:
720           - A ::retrieve_surrounding signal that asks the widget for
721             context around the insertion point.
722           - A ::delete_surrounding signal that asks the widget to 
723             delete context aroudn the insertion point.
724           - gtk_im_context_set_context() for widgets to set context
725             around the insertion point in response to ::retrieve_context.
726           - gtk_im_context_get_context() for context to get context
727             around the insertion point
728
729         * gtkmarshal.list: Add BOOL:INT,INT
730
731         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
732         set_surrounding() methods, and the ::retrieve_surrounding /
733         ::delete_surrounding signals.
734
735         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
736         GtkIMContext::retrieve_surrounding / ::delete_surrounding
737         signals.
738
739 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
740
741         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
742         it's amazing how well things work sometimes, even when they're
743         completely wrong.
744
745         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
746         where you could try to collapse a node w/o it having children.
747
748         (gtk_tree_view_class_init): remove Shift L<->R as they already
749         existed for expand/collapse.
750
751 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
752
753         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
754         found by Matt Wilson.
755
756 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
757
758         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
759         Control, and Shift|Control L<->R, #63475
760
761 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
762
763         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
764         infinite loop noticed by yosh.
765
766 2001-11-01  Michael Meeks  <michael@ximian.com>
767
768         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
769         GTK_REALIZED flag so we don't re-enter when we are
770         destroyed from the plug side.
771
772 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
773
774         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
775         Add a "menu" property and notify on it. (#62798,
776         Padraig O'Briain)
777
778         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
779         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
780         Fix set_text to take a gchar, not a guchar, and to have 
781         a len argument.
782
783 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
784
785         * gtk/gtkstock.c: fix typo to make it compile
786
787 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
788
789         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
790         the widget is insensitive, draw the text insensitively, #63306
791
792 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
793
794         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
795
796 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
797
798         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
799         gtk_selection_data_set_tree_row, #60218
800         (gtk_tree_get_row_drag_data): rename
801         gtk_selection_data_get_tree_row, #60218
802
803         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
804         get this right, after the third try, #63122.
805
806 2001-10-31  jacob berkman  <jacob@ximian.com>
807
808         * gdk/gdkselection.h (GDK_TARGET_STRING): 
809         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
810         for Xatoms (and not using the XA_* macros)!
811
812 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
813
814         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
815         gtk_window_get_focus() getter to determine the currently
816         focused widget within the window. (#63145, request
817         from Damian Ivereigh)
818
819 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
820
821         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
822
823         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
824         GTK_SELECTION_NONE enum.
825         (_gtk_tree_selection_internal_select_node): ditto
826
827         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
828         constness.
829
830         * gtk/gtkcellrenderertoggle.c: more yummy constness.
831
832         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
833         if mode == GTK_SELECTION_NONE
834
835 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
836
837         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
838         "cursor_changed" signal, #62850.
839
840 2001-10-31  Matt Wilson  <msw@redhat.com>
841
842         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
843         allocating the treedatalist, zero it to make sure the values are
844         cleared from any garbage that was in this chunk.
845
846 2001-10-31  Murray Cumming  <murrayc@usa.net>
847
848         * gtk/cellrenderertext.h: "edited" default signal handler
849         gchar* args are now const.
850         gtk/cellrenderertoggle.h: "toggled" default signal handler
851         gchar* arg is now const.
852         Also changed other signal handlers for "edited" and "toggled" to
853         have the same signature.
854
855 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
856
857         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
858         rewrite.  Static models now totally work.  I'm not 100% sure about
859         row_inserted and row_changed, but I'll get those later.
860
861 2001-10-30  Sven Neumann  <sven@gimp.org>
862
863         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
864         output for configure --help.
865
866 2001-10-30  Havoc Pennington  <hp@pobox.com>
867
868         * gtk/gtktextview.c (changed_handler): Update the IM spot location
869         here, if text was invalidated in the visible area, because the
870         scroll offset doesn't normally change in that case, and the mark
871         isn't set, just implicitly moved over as text is added/removed
872         
873 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
874
875         * gtk/gtkseparatormenuitem.c: Code cleanup.
876         (gtk_separator_menu_item_class_init): Fix bugs in this code.
877
878 2001-10-29  jacob berkman  <jacob@ximian.com>
879
880         * gdk/Makefile.am (LDFLAGS): 
881         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
882         LDFLAGS, so put win32 flags in here
883
884 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
885
886         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
887         I can't believe this took this long to fix.
888
889 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
890
891         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
892         reordered signal.
893
894 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
895
896         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
897         the focus to the fileop entry for create dir / rename
898         file. (#62838)
899
900 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
901
902         * configure.in: Don't use AC_CHECK_FILE to check for a 
903         file since it always spits warnings about cross compilation,
904         use -f instead. It's not like we cross compile properly
905         anyways.
906
907         * configure.in (gtktargetlib): Move call to AC_PROG_CC
908         to suppress autoconf warning.
909
910         * acconfig.h: Add some missing #undefs from recent
911         Win32 additions.
912
913 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
914
915         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
916         when we didn't find it. (#62944, Eric Lemings)
917
918         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
919         sign in assignment. (#63209, Arkadiusz Miskiewicz)
920
921 2001-10-29  Anders Carlsson  <andersca@gnu.org>
922
923         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
924         the buttons size request before using it. Fixes #61696.
925
926 2001-10-29  Tor Lillqvist  <tml@iki.fi>
927
928         * README.win32: Updates.
929
930         * gtk-zip.sh.in: New file, used to build distribution package for
931         Windows.
932
933         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
934         applicable with GDKVAR.
935
936         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
937         Wintab library.
938
939         * gdk/win32/gdkwin32.h
940         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
941         X11 headers better, and to enable gdkwin32.h to be installed and
942         included from applications, but not the *-win32.h headers.
943
944         * gdk/win32/*.c: Corresponding small changes, simplifications of
945         #includes.
946         
947         * gdk/win32/gdkregion-win32.c: Remove.
948
949         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
950
951         * gdk/win32/gdkfont-win32.c
952         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
953
954         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
955         GDK_NONE values into hash table.
956
957         * gtk/gtk.def: Update.
958
959         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
960         gethostname().
961
962         * gtk/gtkmain.c 
963         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
964         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
965         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
966         g_win32_get_package_installation_subdirectory() with the actual
967         DLL name saved above. Redefine above directory name macros to call
968         these functions. Remove some ifdefs.
969
970         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
971         variable for export on Win32) also to the _vars file.
972
973         Changes for autoconfiscated build on Win32, and addition of Win32
974         backend to the related files:
975         
976         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
977         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
978         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
979         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
980         win32 target, using pangowin32. Don't use the
981         -export-symbols-regex option on Win32, we use .def files to list
982         exported symbols. Check <winsock.h> (for gethostname() in
983         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
984         prevent premature m4 expansion.
985
986         * acconfig.h: Add HAVE_WINTAB.
987
988         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
989         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
990         MS_LIB_AVAILABLE, build MS import library. Install the import
991         libraries. If HAVE_WINTAB, link with the Wintab library.
992
993         * gdk/win32/Makefile.am: Actually enable building the win32
994         objects here, not just list all files in EXTRA_DIST. Link in the
995         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
996         copy the Wintab library into the .libs directory. 
997
998         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
999         name of the GDK DLL when fetching the icon. Use the HMODULE saved
1000         in gdk_dll_hinstance by DllMain.
1001
1002         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
1003         build/win32/lt-compile-resource script.
1004
1005         * gdk/win32/rc/gdk.rc.in
1006         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
1007
1008         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
1009         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
1010         file. Install import libraries.
1011
1012 2001-10-29  Anders Carlsson  <andersca@gnu.org>
1013
1014         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
1015
1016 2001-10-28  Hans Breuer  <hans@breuer.org>
1017
1018         * gdk/gdk.c gdk/gdkevents.c
1019           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
1020           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
1021           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
1022           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
1023           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
1024           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
1025           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
1026         static correct-ness, underscore prefixing of library internal 
1027         functions
1028         (applied the undisputed and the win32 part. Of the latter 
1029          I'm probably the one who will change it back again, if Owen
1030          decides that the Gdk*Impl types should not be private to Gdk)
1031
1032         * gdk/gdk.def : added the remaining exported functions
1033
1034 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
1035
1036         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
1037         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
1038         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
1039
1040 2001-10-28  jacob berkman  <jacob@ximian.com>
1041
1042         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
1043         gtk_settings_get_default() here as that requires an X connection
1044         (which breaks doc building with no X connection) and is not
1045         multihead safe
1046         (gtk_color_selection_init): delay palette loading until realize
1047         time
1048         (gtk_color_selection_realize): load the palette, and initialize
1049         the global palette if it hasn't been already
1050
1051         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
1052         visual/cmap fields of klass->info since they are gone
1053         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
1054         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
1055         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
1056
1057         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
1058         cmap fields
1059         (gtk_preview_get_visual):
1060         (gtk_preview_get_cmap): mark as deprecated
1061
1062         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
1063         changes
1064
1065 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
1066
1067         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
1068         structure to have GObject not GtkObject as
1069         parent_instance. (Jeff Franks.)
1070
1071 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
1072
1073         * gdk/x11/gdkinput.c: Typo fix.
1074
1075 2001-10-26  Havoc Pennington  <hp@pobox.com>
1076
1077         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
1078         update_im_spot_location here explicitly
1079         (gtk_text_view_reset_im_context): don't update the spot location
1080         here
1081
1082 2001-10-27  Anders Carlsson  <andersca@gnu.org>
1083
1084         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
1085         This fixes #62942.
1086
1087         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
1088         Clarify that we're returning a spin button in the _new function.
1089         This fixes #54097.
1090         
1091 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
1092
1093         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
1094         Unfortunately, people apparently erroneously connect
1095         to ::clicked for GtkToggleButton and expect
1096         they know what happened in the default signal handler
1097         instead of appropriately connecting to notification
1098         signal ::toggled. When the revolution comes, such
1099         people will be first against the wall.
1100
1101         We'll just have to go back to the old less-reliable
1102         set-it-back hacks for handling model-view check
1103         buttons and radio buttons. :-(. 
1104
1105 2001-10-27  Hans Breuer  <hans@breuer.org>
1106
1107         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
1108           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
1109           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
1110           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
1111           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
1112           gtk/gtktreestore.c gtk/gtkvbbox.c : 
1113         to simplify parsing for exported functions:
1114         - made implementation signature static, when the local 
1115           prototype already was
1116         - put the functions return value on it's own line
1117         - added as space between the function name and the 
1118           opening bracket
1119
1120         * gtk/gtk.def : added the remaining exported functions
1121
1122 2001-10-27  Anders Carlsson  <andersca@gnu.org>
1123
1124         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
1125         Add note about width having to be greater than 0. This fixes
1126         #55574. 
1127
1128         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
1129         Fix docs to say previous instead of next.
1130         (gtk_text_iter_backward_word_start): Likewise.
1131         This fixes bug #62980.
1132
1133         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
1134         that the valid width is in range 0-65535 pixels. Fixes bug 
1135         #56754.
1136
1137         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
1138         a dot in the documentation. Fixes bug #62632.
1139
1140         * gdk/x11/gdkmain-x11.c: Replace int and guint with
1141         long and gulong in some places to make the code 64-bit
1142         clean.
1143         (_gdk_windowing_init_check): Replace gint with gulong.
1144         This patch was made by George Lebl and fixes bug #62113.
1145
1146         * tests/testgtk.c (create_range_controls): Don't set a 
1147         fixed height on the hscale widget. This fixes "bug" 
1148         #55840.
1149         (create_window_states): Set up destroy signals so that
1150         all windows will be destroyed when one is. This fixes 
1151         bug #58133.
1152
1153 2001-10-26  Anders Carlsson  <andersca@gnu.org>
1154
1155         * gtk/gtktreeview.c: 
1156         (gtk_tree_view_class_init): Create new "indent_expander"
1157         style property.
1158
1159         (gtk_tree_view_get_arrow_xrange): Add a tree argument
1160         to the function since the xrange can change depending
1161         on where in the tree we are. 
1162         
1163         (coords_are_over_arrow): Update function call to
1164         gtk_tree_view_get_arrow_xrange.
1165         (gtk_tree_view_draw_arrow): Likewise.
1166         
1167         (gtk_tree_view_real_expand_collapse_cursor_row):
1168         Call real_{expand|collapse}_row, so that we'll have an
1169         animation.
1170
1171 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
1172
1173         * tests/Makefile.am: fixed a small typo
1174
1175 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
1176
1177         * demos/gtk-demo/list_store.c (create_model): Anders
1178         Carlsson suggested to use G_N_ELEMENTS here
1179
1180 2001-10-26  Sven Neumann  <sven@gimp.org>
1181
1182         * gtk/gtkbutton.[ch]
1183         * gtk/gtkdnd.c: fixed inline comments
1184         
1185         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
1186
1187 2001-10-26  Hans Breuer  <hans@breuer.org>
1188
1189         * gdk-pixbuf/gdk_pixbuf.def : 
1190         * gdk/gdk.def : 
1191         * gtk/gtk.def : updated externals
1192
1193         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
1194         gdk_window_lookup implementation. It already was in
1195         gdk/win32/gdkwindow-win32.c
1196
1197         * gdk/win32/gdkproperty-win32.c : made it compile again
1198         after GdkAtom API change
1199
1200         * gtk/gtk/makefile.msc.in : updated
1201
1202 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
1203
1204         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
1205         require GLib 1.3.10.
1206
1207         * NEWS: updates.
1208
1209 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
1210
1211         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
1212         invalid nodes.
1213          (_gtk_rbnode_rotate_right): Ditto.
1214          (_gtk_rbtree_node_mark_invalid): New function.
1215          (_gtk_rbtree_node_mark_valid): New function.
1216
1217         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
1218         GObject, not a GtkObject.
1219         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
1220         correct.
1221         (gtk_tree_model_sort_row_deleted): ditto.
1222         (gtk_tree_model_sort_{un,}ref_node): Fix.
1223
1224         * gtk/gtktreeview.c: Protean incremental reflow support (commented
1225         out)
1226
1227         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
1228         to const char *key.
1229
1230         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
1231         Important 1 line fix to fix a lot of refcounting woes.
1232
1233 2001-10-25  Matt Wilson  <msw@redhat.com>
1234
1235         * gtk/gtktextview.c (gtk_text_view_destroy): call
1236         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
1237         now invalidates) so that we remove our idle functions.
1238         (gtk_text_view_destroy_layout): remove the first_validate_idle as
1239         well.
1240
1241         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
1242         the 'indent' property is G_MININT to G_MAXINT.  Don't use
1243         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
1244         instead.
1245
1246 2001-10-24  Anders Carlsson  <andersca@gnu.org>
1247
1248         * gtk/gtktreeview.c: 
1249         (gtk_tree_view_real_expand_row): add an animate argument
1250         (gtk_tree_view_real_collapse_row): likewise
1251         
1252         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
1253         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
1254         (gtk_tree_view_collapse_row): update functions that call
1255         real_{expand|collapse}_row to set the animate argument 
1256         accordingly.
1257         
1258 2001-10-24  Alex Larsson  <alexl@redhat.com>
1259
1260         * gdk/linux-fb/gdkfont-fb.c:
1261         Update to new Pango APIs
1262
1263         * gdk/linux-fb/gdkproperty-fb.c:
1264         Update to new GdkAtom APIs
1265
1266         * gdk/linux-fb/gdkwindow-fb.c:
1267         Remove warnings
1268
1269 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
1270
1271         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
1272
1273 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
1274
1275         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
1276         s_path as a child path
1277
1278 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
1279
1280         * gtk/gtktreemodelsort.c: more changes in an attempt to get
1281         it right. It's not yet ready for general consumption.
1282
1283         * tests/treestoretest.c: add a button and entry for the new
1284         iter_change function
1285         (iter_change): new function, to test
1286         the row_changed signal implementation of the GtkTreeModelSort
1287
1288         * tests/testtreesort.c: cleanups, changes to test more features
1289         of the GtkTreeModelSort at once
1290
1291 2001-10-24  Havoc Pennington  <hp@redhat.com>
1292
1293         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
1294         remove hack to strip off the bogus newline, since we killed the
1295         bogus newline; fixes #61779
1296
1297 2001-10-24  Havoc Pennington  <hp@redhat.com>
1298
1299         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
1300         create layout if we didn't have one
1301         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
1302         as appropriate, avoids blanking the screen 
1303         (gtk_text_view_invalidate): new function to do invalidation,
1304         containing old guts of invalidated_handler
1305
1306 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
1307
1308         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
1309         dreadful tooltips.
1310
1311 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
1312
1313         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
1314         set window->parent (except or the root window itself); if 
1315         the window's parent is not a GdkWindow, or is a window of 
1316         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
1317
1318         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
1319         windows of type GDK_WINDOW_FOREIGN.
1320
1321 2001-10-24  Havoc Pennington  <hp@pobox.com>
1322
1323         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
1324         the front of a segment, use the "slow" technique for moving
1325         backward, so we don't mess up the any_segment field in the iter. 
1326         Fixes #57707
1327
1328         * tests/testtextbuffer.c: add code to detect #57707, to avoid
1329         regression
1330
1331 2001-10-23  Havoc Pennington  <hp@redhat.com>
1332
1333         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
1334         if selection contains some editable text, #60975
1335         (gtk_text_view_scroll_to_iter): remove warning about scrolling
1336         prior to map; it should actually be OK to do so in many cases, 
1337         it would be nice to warn about scrolling when many lines have
1338         height 0, but I don't know what to do about that. Perhaps 
1339         move part of flush_scroll into this function? comment added 
1340         to consider this.
1341
1342 2001-10-23  Havoc Pennington  <hp@redhat.com>
1343
1344         * gtk/gtktextview.c (changed_handler): Correctly keep the same
1345         text on the top of the screen, considering that the changed region
1346         may have overlapped the first paragraph. Should fix msw's "text
1347         widget scrolled to wrong place on map" bug, and probably some
1348         other scrolling cases as well.
1349         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
1350         instead of some random value
1351
1352         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
1353         grab_focus, so #59708 is really fixed
1354
1355 2001-10-24  Anders Carlsson  <andersca@gnu.org>
1356
1357         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
1358         (popup_targets_received): Call append_action_signal with stock items
1359         
1360         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
1361         (gtk_label_do_popup): Call append_action_signal with stock items
1362         
1363         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
1364         (popup_targets_received): Call append_action_signal with stock items
1365
1366 2001-10-23  Havoc Pennington  <hp@redhat.com>
1367
1368         * gtk/gtktextview.c (changed_handler): queue a resize here; will
1369         temporarily slow down the widget a lot, until we figure out how to
1370         optimize to avoid full redraw everytime we queue a resize.
1371
1372 2001-10-23  Havoc Pennington  <hp@redhat.com>
1373
1374         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
1375         0 and char_len == 0, bug #61729
1376
1377 2001-10-23  Havoc Pennington  <hp@redhat.com>
1378
1379         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
1380         return value, #61714 (Vitaly Tishkov)
1381         (gtk_text_iter_backward_sentence_starts): ditto
1382         (gtk_text_iter_backward_word_starts): ditto
1383         (gtk_text_iter_forward_word_ends): ditto
1384         (gtk_text_iter_forward_sentence_ends): ditto
1385         (gtk_text_iter_backward_cursor_positions): ditto
1386
1387 2001-10-23  Havoc Pennington  <hp@redhat.com>
1388
1389         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
1390         fix from Dov Grobgeld, #61858
1391
1392 2001-10-23  Havoc Pennington  <hp@redhat.com>
1393
1394         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
1395         Update IM spot location at appropriate times, #50626
1396         (Hidetoshi Tajima)
1397
1398 2001-10-23  Havoc Pennington  <hp@redhat.com>
1399
1400         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
1401         on grab focus, unless it's caused by button click, #59708
1402
1403 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
1404
1405         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
1406
1407         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
1408         G_CONST_RETURN. (Murray Cumming)        
1409
1410         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
1411         Make G_CONST_RETURN.
1412
1413         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
1414         results of g_get_home_dir().
1415
1416         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
1417         copy. Storing the return from gtk_entry_get_text() is evil.
1418
1419         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
1420         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
1421         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
1422         gtk/gtksignal.c: Add const.
1423
1424         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
1425
1426         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
1427         if we are setting them on private widgets.
1428
1429         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
1430         Duplicate entry->text before setting it as object data.
1431
1432 2001-10-22  Havoc Pennington  <hp@redhat.com>
1433
1434         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
1435         up a char from the end iterator, fixes #61859 ("can't put cursor
1436         at the end of the buffer")
1437
1438         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
1439         to work with delimiters other than newline.
1440
1441         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
1442         get_bytes_in_line
1443
1444         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
1445         last line, since the newline is no longer counted.
1446         (gtk_text_iter_get_bytes_in_line): ditto
1447
1448 2001-10-22  Havoc Pennington  <hp@redhat.com>
1449
1450         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
1451         #58290 would trigger if it reappeared, I think
1452
1453 2001-10-22  Havoc Pennington  <hp@redhat.com>
1454
1455         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1456         add temporary code to dump btree contents on assertion failure
1457         described in #62656
1458         
1459         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
1460         assertions that we're getting the right end iter segment
1461
1462         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1463         verify that we aren't on the end iterator after moving 
1464         forward one segment - fixes return value in an obscure case. 
1465         Also, some trivial code cleanup/rearranging.
1466         
1467 2001-10-22  Havoc Pennington  <hp@redhat.com>
1468
1469         * gtk/gtktextlayout.h: add a #error unless you define
1470         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
1471
1472         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
1473         
1474 2001-10-22  Havoc Pennington  <hp@redhat.com>
1475
1476         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
1477         #62365
1478
1479 2001-10-22  Havoc Pennington  <hp@redhat.com>
1480
1481         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
1482         #62436
1483
1484 2001-10-22  Havoc Pennington  <hp@redhat.com>
1485
1486         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
1487         #62366
1488
1489 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
1490
1491         * gtk/gtklabel.c: Add cursor-position, selection-bound 
1492         properties. (#62148, reported by Padraig O'Briain)
1493
1494         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
1495         to cursor_position. (1.3.x addition, text_position is an awful
1496         name.) Make cursor_position read-only to avoid sticky questions
1497         of interaction with selection_bound. (#62636, reported by
1498         Padraig O'Briain)
1499
1500 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
1501
1502         Fixing popup menus to have "Paste" sensitized correctly. Original
1503         patches from Damian Ivereigh, much mangled.
1504
1505         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
1506         gtk_selection_data_targets_include_text(). (#60854)
1507
1508         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
1509         the clipboard has text" function gtk_clipboard_wait_is_text_available.
1510         (#60854)
1511
1512         * gtk/gtkentry.c: Only enable the paste item if the clipboard
1513         contains text. (#60973)
1514
1515         * gtk/gtktextview.c: Only enable the paste item if the clipboard
1516         contains text. (#60975)
1517
1518 2001-10-22  Havoc Pennington  <hp@redhat.com>
1519
1520         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
1521         "height_lines" and "width_columns" properties, it doesn't make
1522         sense to set the size request on a text view really. #62103
1523
1524 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
1525
1526         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
1527         g_node_depth is broken, and that it's not worth being consistent
1528         with it.
1529
1530 2001-10-22  Havoc Pennington  <hp@redhat.com>
1531
1532         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
1533         docs, #61777
1534         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
1535         change the two boolean args to a flags field, so we can extend 
1536         to add case insensitive, regexp searches later. #61852
1537
1538 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
1539
1540         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
1541         reflect reality, #62810
1542
1543 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
1544
1545         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
1546
1547         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
1548         system.  Instead of having a window the size of the tree, we have
1549         a window the size of widget->allocation, and simply draw with the
1550         offset.
1551         (coords_are_over_arrow): ditto.  Move to window coordinates.
1552         (do_prelight): ditto
1553         (do_unprelight): ditto
1554
1555         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
1556         Minor fix from Kristian Rietveld to fix unsorted case.
1557
1558 2001-10-22  jacob berkman  <jacob@ximian.com>
1559
1560         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
1561         a PIXMAP cell (fixes crash when using PIXTEXT cells)
1562
1563 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
1564
1565         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
1566         (#58768, Vitaly Tishkov)
1567         
1568         * gtk/gtkobject.h: Deprecate with abandon. 
1569         (#61942, Vitaly Tishkov, Matthias Clasen)
1570
1571         * gtk/gtksignal.h: Deprecate everything.
1572
1573         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
1574         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
1575         (#61942, Matthias Clasen)
1576
1577         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
1578         Havoc Pennington)
1579
1580         * gtk/gtkitemfactory.h: Deprecate compat functions
1581         for GtkMenuFactory code. (#62071)
1582
1583         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
1584         gdk_draw_text,gdk_draw_text_wc. (#62071)
1585
1586 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
1587
1588         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
1589         g_thread_init(), we don't want to link to -lgthread if we don't
1590         have to.
1591
1592 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
1593
1594         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
1595         Add a function, gdk_threads_init() that must be explicitely 
1596         called to enable the GDK thread mutex.
1597
1598 2001-10-22  Jakub Steiner <jimmac@ximian.com>
1599
1600         * gtk/stock-icons/stock_stop.png: no body parts
1601         
1602 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
1603
1604         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
1605         problem with g_return_if_fail return value.
1606
1607         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
1608         virtual atom code from the gdk-multihead branch, removing the per-display
1609         part. Virtualizing atoms needs to be done now to prevent compat
1610         breakage in direct Xlib accessing code in the future. (#62208)
1611  
1612         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
1613         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
1614  
1615         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
1616         an opaque pointer type so the compiler catches attempts
1617         to mingle it with X atoms.
1618
1619         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
1620           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
1621           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
1622           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
1623           tests/testdnd.c,tests/testselection.c: 
1624         Fix up for above atom changes.
1625
1626         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
1627         now have the ability to add custom predefines.
1628
1629         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
1630         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
1631         to gtk_clipboard_get().
1632
1633         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
1634         for GdkAtom => pointer change.
1635
1636         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
1637         atoms, fix for GdkAtom => pointer change.
1638
1639 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
1640
1641         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
1642         new function spin_button_get_arrow_size() instead.
1643
1644         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
1645         arrow was hardcoded, it's now variable.
1646
1647         Fixes bug #50200
1648
1649 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
1650
1651         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
1652         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
1653         for those
1654
1655 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
1656
1657         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
1658         in favor of g_signal_*, gtk_object_* in favor of 
1659         g_object_*.
1660
1661 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
1662
1663         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
1664         from GObject now, we have to use the g_object_* functions, not
1665         gtk_object_*.
1666
1667 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
1668
1669         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
1670         nailed down now (this code is not yet ready for general consumption)
1671
1672 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
1673
1674         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
1675         for use_align
1676
1677 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
1678
1679         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
1680
1681 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
1682
1683         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
1684         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
1685         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
1686         GObject, not GtkObject. (#62621)
1687
1688 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
1689
1690         * tests/testsocket.c: Remove now useless include of unistd.h,
1691         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
1692         
1693 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
1694
1695         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
1696         Pango font API. #61933. (Untested, even for compilation.)
1697
1698 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
1699
1700         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
1701         export gtk_disable_setlocale(). (Caught by Sven Neumann)
1702
1703 2001-10-18  Havoc Pennington  <hp@redhat.com>
1704
1705         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
1706
1707 2001-10-18  Havoc Pennington  <hp@redhat.com>
1708
1709         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
1710         to GTK_RUN_LAST, #50239
1711
1712 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
1713
1714         * gtk/gtkimmodule.c (match_locale):
1715         Support "*" for all locales with least priority
1716         when to select default im module, #58201
1717
1718 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
1719
1720         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
1721         Fix docs. (#61976)
1722  
1723         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
1724
1725         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
1726
1727         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
1728         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
1729         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
1730         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
1731         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
1732         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
1733         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
1734
1735         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
1736
1737         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
1738         Don't restrict the width of the spinbutton entry field 
1739         to 10 digits. (#58681)
1740
1741 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
1742
1743         * tests/testtreeflow.c: new test program for the tree.
1744
1745 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
1746
1747         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
1748         reported by (Oleg Maiboroda), #62600
1749
1750 2001-10-18  Michael Meeks  <michael@ximian.com>
1751
1752         * gtk/gtkentry.c (gtk_entry_set_property),
1753         (gtk_entry_get_property): impl 'text'
1754         (gtk_entry_class_init): add the 'text' prop.
1755         (gtk_entry_insert_text): notify 'text' changed.
1756         (gtk_entry_delete_text): ditto.
1757
1758 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
1759
1760         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
1761         Documentation updates.
1762
1763 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
1764
1765         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
1766         in truncating length of text to MAX_SIZE. (Found by 
1767         Padraig O'Briain, #62055)
1768
1769 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
1770
1771         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
1772         MNEMONIC_ACTIVATE; signal was changed a long time
1773         ago.
1774
1775         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
1776         Fix wrong return statement. (Reported by HideToshi
1777         Tajima and others.)
1778
1779         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
1780         left over select_all vfunc.
1781
1782 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
1783
1784         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
1785         a utility function to translate coordinates relative to
1786         one widget's allocation to coordinates relative to another
1787         widget's allocation.
1788
1789         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
1790         that:
1791          - only accepts external focus if there is no active
1792            member of the group or the button is active.
1793          - makes arrow keys move the active button as well
1794            as the focus
1795          - make tab tab out directly.
1796         This makes a radio button group act as a single focus location.
1797         (#53577).
1798         
1799         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
1800         it was only a small optimization that didn't matter and made
1801         things more complicated.
1802
1803         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
1804         sorter for FOCUS_TAB as we did for the other focus directions,
1805         sort by center of widgets, not upper-left corner. (Shouldn't
1806         matter in general.)
1807
1808         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
1809         from the different types of focusing: encapsulate sorting the
1810         widgets for the focus direction into one routine
1811         (gtk_container_focus_sort()) and then share the work of moving the
1812         focus between the different focus directions.
1813
1814         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
1815         work correctly with focus chains containing non-immediate
1816         children. Sorting was being done using allocation coordinates for
1817         each widget in the focus chain, and if there were intermediate
1818         window-widgets, these allocations would not be in the same
1819         coordinate system.
1820
1821 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
1822
1823         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
1824         mnemonic_activate function to option menu.
1825
1826 2001-10-15  Murray Cumming <murrayc@usa.net>
1827
1828         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
1829           Corrected the type names used in some calls to g_signal_new().
1830         
1831 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
1832
1833         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
1834         specs, use g_pattern_spec_equal() instead of direct field accesses.
1835         upon compressing two equal paths of the same type, the resulting
1836         priority has to be the maximum.
1837         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
1838         GtkPathPriorityType enum and make it a macro.
1839
1840 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
1841
1842         * gtk/gtkwidget.c: Fix some doc comments.
1843
1844 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
1845
1846         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
1847         on empty models.
1848
1849 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
1850
1851         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
1852         Remove stale gdk backend includes.
1853  
1854 2001-10-10  Michael Meeks  <michael@ximian.com>
1855
1856         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
1857         and value_in_list properties.
1858         (gtk_combo_set_value_in_list): notify change.
1859         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
1860
1861 2001-10-11  James Henstridge  <james@daa.com.au>
1862
1863         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
1864         that gtk+ can be built with automake 1.5 while not breaking
1865         things for automake 1.4.
1866
1867 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
1868
1869         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
1870         (#60606)
1871
1872         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
1873         to disable calling setlocale (LC_ALL, "").
1874
1875         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
1876         docs that this function is not typically useful.
1877
1878         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
1879         Automatically initialize GDK for the current locale
1880         on gdk_init(). Don't reset locale to C when
1881         XSupportsLocale() fails.
1882
1883         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
1884         useless checks for UTF-8 locale breakage that mattered
1885         only for X.
1886
1887         * examples/calendar/calendar.c
1888         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
1889         gtk_set_locale().
1890
1891         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
1892         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
1893
1894 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
1895
1896         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
1897
1898         Fixes bug #61904
1899
1900 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
1901
1902         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
1903         new function, #61923
1904         (gtk_tree_selection_path_is_selected): Ditto
1905
1906 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
1907
1908         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
1909         not a GtkObject.  Thanks andersca.
1910
1911         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
1912
1913 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
1914
1915         * gtk/gtktreeviewcolumn.c
1916         (gtk_tree_view_model_sort_column_changed): fix broken code.
1917
1918 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
1919
1920         * gtk/gtkselection.c: s/succesfully/successfully/g
1921
1922 2001-10-08  Havoc Pennington  <hp@pobox.com>
1923
1924         * demos/gtk-demo/stock_browser.c: remove unused enum
1925
1926         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
1927         pass the current selection state of the node in to the user
1928         selection func
1929
1930 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
1931
1932         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
1933         non-existent function gdk_x11_cursor_get_xid 
1934         by gdk_x11_cursor_get_xcursor.
1935
1936 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
1937
1938         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
1939         warning.
1940
1941         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
1942         unref nodes, #okay61676
1943
1944         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
1945         to the property; no need to clear the other columns.  Also, we go
1946         to 'unsorted' if the model supports it.
1947
1948 2001-10-05  Sven Neumann  <sven@gimp.org>
1949
1950         * demos/testpixbuf-save.c
1951         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
1952         feature.
1953
1954 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
1955
1956         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
1957         destroy the search dialog
1958
1959         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1960         added check to prevent creation of a search dialog if there's
1961         already one around
1962
1963         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
1964         it instead of "search-dialog" (when getting/setting the search dialog
1965         widget).
1966
1967 2001-10-05  Jakub Steiner <jimmac@ximian.com>
1968
1969         * gtk/stock-icons/stock_broken_image.png: broken images icon
1970
1971 2001-10-04  Havoc Pennington  <hp@pobox.com>
1972
1973         Fix #56586
1974         
1975         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
1976         accelerator setting here...
1977
1978         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
1979         because we try to use it when a menu bar hasn't necessarily been 
1980         initialized.
1981
1982 2001-10-03  Havoc Pennington  <hp@redhat.com>
1983
1984         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
1985         it previously verified incorrect behavior
1986
1987         Fixes for #61565
1988         
1989         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
1990         off the end
1991         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
1992         the end
1993         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
1994         the end
1995         (gtk_text_iter_forward_lines): if on the last line, move to end of
1996         it
1997
1998         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
1999         don't return a line off the end
2000
2001 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
2002
2003         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
2004         functions to do_insert_text and do_delete_text, add signals
2005         insert_text, delete_text and changed
2006
2007         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
2008         and changed. Updates to match new situation.
2009
2010         * gtk/gtkspinbutton.c: updates to match new situation
2011
2012         * gtk/gtkoldeditable.h: remove signals changed, insert_text
2013         and delete_text
2014
2015         * gtk/gtkoldeditable.c: updates to match new situation
2016
2017         * gtk/gtktext.c: updates to match new situation
2018
2019         Fixes bug #59803
2020
2021 2001-10-03  Havoc Pennington  <hp@redhat.com>
2022
2023         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
2024         position
2025
2026         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
2027         changes
2028
2029         * tests/testtextbuffer.c (logical_motion_tests): updates
2030
2031 2001-10-03  jacob berkman  <jacob@ximian.com>
2032
2033         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
2034         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
2035         * gtk/gtksettings.c (apply_queued_setting): 
2036         * gtk/gtkmain.c (gtk_init_check): 
2037         * gtk/gtkcontainer.c (gtk_container_child_get_property):
2038         s/retrive/retrieve/
2039
2040 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
2041
2042         * gtk/gtktreemodelsort.[ch]: preparation for surgery
2043         * tests/testtreesort.c: ditto
2044
2045 2001-10-02  Havoc Pennington  <hp@redhat.com>
2046
2047         Throughout: assorted docs
2048         
2049         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
2050         gdk_window_set_geometry_hints() should be used instead.
2051
2052         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
2053         document them
2054
2055         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
2056         seem to exist in any .c files
2057
2058         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
2059         g_return_if_fail (pixel < colormap->size).
2060
2061 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
2062
2063         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
2064         NULL for @target_list to mean, use
2065         gtk_drag_dest_get_target_list (widget).
2066
2067         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
2068         drop could hang when calling gtk_drag_finish with 
2069         success == FALSE and del == TRUE.
2070
2071         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
2072         drops without a matching target found would propagate
2073         to the parent widget rather than being rejected.
2074
2075         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
2076         Use text_view->dnd_mark instead of mark name to be
2077         consistent with the rest of the code.
2078
2079         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
2080         pendantically correct for a drop-only-in-some-places
2081         widget. (Check whether you can insert in drag_drop,
2082         not just in drag_motion ... matters in theory, and
2083         for Motif drag and drop in practice.)
2084
2085         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
2086         Damian Ivereigh to not allow drops on non-editable
2087         entries. (#61124)
2088
2089         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
2090         text to be moved from a non-editable entry.
2091         
2092 2001-10-03  James Henstridge  <james@daa.com.au>
2093
2094         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
2095         s/width/fixed_width/ in order to get things to compile.
2096
2097 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
2098
2099         * gtk/gtkcelleditable.c: docs
2100
2101         * gtk/gtktreemodel.h: more docs.
2102
2103 2001-10-02  Havoc Pennington  <hp@redhat.com>
2104
2105         * gdk/x11/gdkwindow-x11.c: docs
2106
2107         * tests/testtextbuffer.c (logical_motion_tests): add sentence
2108         boundary tests
2109
2110 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
2111
2112         * demos/gtk-demo/Makefile.am: add editable_cells.c,
2113         list_store.c and tree_store.c
2114
2115         * demos/gtk-demo/appwindow.c: remove tearoff item from
2116         File menu, put menubar and toolbar in handle boxes.
2117
2118         * demos/gtk-demo/genincude.pl: various changes to support trees
2119
2120         * demos/gtk-demo/main.c: various changes to support trees
2121
2122         * demos/gtk-demo/stock_browser.c: changed name of demo
2123         to Stock Item and Icon Browser, so geninclude.pl doesn't see
2124         it as child
2125
2126         * demos/gtk-demo/editable_cells.c: new file/demo
2127         * demos/gtk-demo/list_store.c: new file/demo
2128         * demos/gtk-demo/tree_store.c: new file/demo
2129
2130 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
2131
2132         * gtk/gtkrc.c gtk/gtksettings.c: 
2133         g_string_printfa => g_string_append_printf.
2134
2135 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
2136
2137         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
2138         and destroy handler.
2139
2140         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
2141
2142         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
2143         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
2144         Singh <yosh@gimp.org>.
2145
2146 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
2147
2148         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
2149         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
2150
2151         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
2152
2153 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
2154
2155         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
2156         scroll_to_cell delayed code to happen in size_allocate.
2157
2158         * gtk/gtkstyle.c (gtk_default_draw_expander): change
2159         prelight/normal arrow drawing.
2160
2161         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
2162
2163         * gtk/gtktreestore.c: refactor.
2164
2165 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
2166
2167         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
2168         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
2169         centers the child in relation to the to indicator height.
2170
2171 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
2172
2173         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
2174         correct
2175
2176 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
2177
2178         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
2179         property code using g_param_spec_int and changed from
2180         g_value_get_enum to g_value_get_int instead. Probably a better way
2181         to fix the problem :-)
2182
2183 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
2184
2185     * gtk/gtkcellrenderertext.c changed "weight" property type from 
2186       g_param_spec_int to g_param_spec_enum.
2187
2188 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
2189
2190         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
2191         fix: s/Wether/Whether/ in reorderable property description
2192
2193 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
2194
2195         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
2196         start editing when you select with a keyboard.
2197
2198         (gtk_tree_view_button_press_event): much more graceful now.
2199
2200         * gtk/gtkstyle.c: Draw togglebutton better.
2201
2202 2001-09-26  Havoc Pennington  <hp@redhat.com>
2203
2204         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
2205         of passing non-stock label in to gtk_dialog_new_with_buttons
2206
2207         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
2208         debugging updates
2209
2210         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
2211         are private
2212
2213         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
2214         exist, fall back to mnemonic label, not plain label, bug #61184
2215         
2216 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
2217
2218         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
2219         stupid and emitting the signal every time.
2220
2221         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
2222
2223 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
2224
2225        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
2226
2227        * contrib/gdk-pixbuf-xlib/Makefile.am: install
2228        gdk-pixbuf-xlib-2.0.pc.
2229
2230 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
2231
2232         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
2233         problem where menmonic wasn't removed properly when
2234         setting a label when there already is a label.
2235         Also, handle setting the tab label back to the same
2236         value. (#61160, #61161)
2237
2238         * gtk/gtkentry.c (paste_received): Patch from 
2239         Damian Ivereigh to replace selection if there is 
2240         one. (#61121)
2241
2242 2001-09-25  Darin Adler  <darin@bentspoon.com>
2243
2244         * tests/.cvsignore: Ignore new test program.
2245
2246 2001-09-25  Havoc Pennington  <hp@redhat.com>
2247
2248         * gtk/gtktextview.c: fix for #50317
2249         
2250 2001-09-25  Havoc Pennington  <hp@redhat.com>
2251
2252         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
2253         gtk_text_iter_can_insert
2254         
2255         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
2256
2257         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
2258          (gtk_text_iter_can_insert): new function to fix #60282, should
2259         also fix msw's "can paste into empty buffer" bug.
2260
2261         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
2262         "event object,"  #59091
2263
2264         * gtk/gtktextbtree.c: indentation fixes
2265
2266         * gtk/gtktextiter.c (find_by_log_attrs): fixes
2267
2268 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
2269
2270         * configure.in: Version 1.3.9, interface age 0, binary age 0.
2271
2272         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
2273
2274         * NEWS: Updates.
2275
2276 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
2277
2278         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
2279         function for drawing cursors between gtkentry/gtklabel/gtktextview.
2280         Should this be public? It has a bit of an odd interface, but
2281         custom editing widgets probably should be using it.
2282         Function will draw with wider width for taller cursors, and
2283         draws a little indicator arrow to indicate directoin for split 
2284         cursors.
2285
2286         * gtk/gtktextview.c: Add a "cursor_color" property.
2287
2288         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
2289         gtk_text_layout_draw().
2290
2291         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
2292         _gtk_draw_insertion_cursor().
2293
2294 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
2295
2296         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
2297         the behavior where you could turn family_set (etc) back on
2298         and get back the values you had before.
2299
2300         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
2301         g_string_ascii_up() rather than looping through the
2302         string ourself.
2303
2304 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
2305
2306         * gtk/gtktreeviewcolumn.c
2307         (gtk_tree_view_column_set_cell_renderer): Removed
2308         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
2309
2310         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
2311         Patch from Detlef Reichl
2312
2313 2001-09-25  Havoc Pennington  <hp@redhat.com>
2314
2315         * tests/testtextbuffer.c (line_separator_tests): Add tests for
2316         line separators, addresses bug #57428
2317
2318 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
2319
2320         * gtk/gtkentry.c: Make a GtkCellEditable
2321         (get_widget_window_size): Change to let it honor size_allocate
2322         when a CellEditable.
2323
2324         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
2325         editable changes.
2326         (gtk_tree_view_set_cursor): Now you can set the cursor
2327         horizontally, as well as start editing.
2328
2329         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
2330         code to look more like the other check buttons.
2331
2332         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
2333         Change the way we calculate cell size.
2334
2335         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
2336
2337         * demos/gtk-demo/sizegroup.c: Add mnemonics.
2338
2339         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
2340         Fix logic.
2341
2342         * gtk/gtkcellrenderertext.c: Change to be editable.
2343
2344         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
2345
2346         * test/testtreesort.c: Fix misspelling
2347
2348         * test/testreecolumns.c: Add mnemonics.
2349
2350         * test/testreeedit.c: New test program.
2351
2352 2001-09-25  Havoc Pennington  <hp@pobox.com>
2353
2354         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
2355         etc. docs about how these are not going to do what you want for 
2356         the X/win32 ports. Futile attempt to avoid a FAQ...
2357
2358 2001-09-24  James Henstridge  <james@daa.com.au>
2359
2360         * gtk/gtkmarshal.list (VOID): add marshal function types.
2361
2362         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
2363         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
2364         GTK_TYPE_POINTER.
2365         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
2366         with no-op copy/free functions.
2367
2368         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
2369         GtkCTreeNode get_type function.
2370
2371 2001-09-24  Havoc Pennington  <hp@redhat.com>
2372
2373         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
2374         gtktextlayout.c:
2375         Get rid of the newline-that-could-not-be-deleted; buffers may 
2376         now be zero-length. Much easier to fix than expected, once 
2377         I figured out the right way to do it. However, there are 
2378         various subtle bugs introduced by this that will have to get 
2379         sorted out. Please use bugzilla.
2380
2381 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
2382
2383         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
2384         response back from the window manager if our size hasn't changed 
2385         since we won't get a response back from the window manager;
2386         there was code in there to do this, but it was in the wrong
2387         place so if the hints change and the size didn't we'd expect
2388         a response.
2389
2390         Also, optimize the position-only-changed case by running
2391         the resize queue immediately, and clean up some comments
2392         for the changes.
2393
2394 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
2395
2396         * gtk/gtknotebook.h: Add a compat macro that got lost.
2397
2398         * gtk/gtktreestore.c: Doc fixes.
2399
2400         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
2401         leak for windows that receive events after being destroyed.
2402         (#60863, Joshua N. Pritikin)
2403
2404         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
2405         rather than gtk_container_queue_resize().
2406
2407         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
2408         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
2409         gtk_container_child_composite_name. (#60217.)
2410
2411 2001-09-22  Hans Breuer  <hans@breuer.org>
2412
2413         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
2414
2415 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
2416
2417         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
2418         weight value should be an int
2419
2420 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
2421
2422         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
2423         to gtk_menu_scroll_item_visible(). Only call
2424         gtk_menu_scroll_item_visible() if the menu widget has been
2425         realized. Fixes bug #55310.
2426
2427 2001-09-21  Havoc Pennington  <hp@redhat.com>
2428
2429         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
2430         key press to IM context if cursor isn't in an editable location;
2431         bug #58425, patch from Hidetoshi Tajima
2432
2433 2001-09-21  Havoc Pennington  <hp@redhat.com>
2434
2435         Bug #60862
2436         
2437         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
2438         (_gtk_text_btree_unref): fix up mark memory management
2439
2440         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
2441
2442 2001-09-20  Havoc Pennington  <hp@redhat.com>
2443
2444         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
2445         try to handle alignment here, because it's done by PangoLayout
2446         after we set the layout width. Fix from Dov.
2447
2448 2001-09-21  Hans Breuer  <hans@breuer.org>
2449
2450         * gdk/gdk.def :
2451         * gtk/gtk.def : updated externals
2452
2453         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
2454         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
2455         Also handle that Win32 pathes cann't be hard-coded      
2456
2457         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
2458         module, themes etc directory calculations
2459
2460         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
2461         >16 bit right. The size limit within Win9x appears _not_ to be 32767
2462         but slightly smaller ...
2463
2464         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
2465         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
2466
2467         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
2468
2469         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
2470         handling. I'm not sure if it is better now, but at least not worse
2471
2472         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
2473
2474         * gdk/win32/gdkwin32.h : reflect recent API restrictions
2475
2476 2001-09-21  Matt Wilson  <msw@redhat.com>
2477
2478         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
2479         radio_menu_item->group to NULL after removing it from the list, as
2480         it is no longer in the group. (#60869)
2481
2482         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
2483
2484 2001-09-20  Havoc Pennington  <hp@pobox.com>
2485
2486         * configure.in (PANGO_REQUIRED_VERSION)
2487         (ATK_REQUIRED_VERSION): add variables and checks for specific 
2488         versions of dependencies. Previously we didn't verify the 
2489         Pango or ATk versions.
2490
2491 2001-09-09  Havoc Pennington  <hp@pobox.com>
2492
2493         * gtk/gtktextiter.c: fool with indentation
2494         (gtk_text_iter_in_range): add g_return_if_fail
2495
2496 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
2497
2498         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
2499         ref count on new tag to be 1.  Update doc.  (#60836)
2500
2501 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
2502
2503         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
2504         call to gdk_image_new_bitmap(). (#59094, reported by
2505         by Sven Neumann)
2506
2507 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
2508
2509         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
2510         day, as well as the current month and year.
2511         (#59047, reported by Vitaly Tishkov)
2512
2513 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
2514
2515         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
2516         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
2517         
2518 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
2519
2520         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
2521
2522         (build_option_menu): add func argument, connect ::changed
2523         signal to option menu instead of connecting the ::activate
2524         signal to the menu items,
2525
2526         (toplevel): get rid of RADIOMENUTOGGLED macro,
2527
2528         (list_toggle_sel_mode), (clist_toggle_sel_mode),
2529         (ctree_toggle_line_style), (ctree_toggle_expander_style),
2530         (ctree_toggle_justify), (ctree_toggle_sel_mode),
2531         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
2532         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
2533
2534         (notebook_type_changed): merged standard_notebook(),
2535         notabs_notebook(), scrollable_notebook() and borderless_notebook()
2536         into notebook_type_changed()
2537
2538         (create_list), (create_ctree), (create_notebook),
2539         (create_progress_bar): changed OptionMenuItem arrays into
2540         gchar * arrays. Removed "Extended" item where used.
2541
2542         Fixes bug #59885
2543
2544 2001-09-20  Sven Neumann  <sven@gimp.org>
2545
2546         * configure.in
2547         * gdk/Makefile.am
2548         * gtk/Makefile.am
2549         * gtk/gtkselection.c
2550         * gtk/gtktreeview.c
2551         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
2552
2553 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
2554
2555         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
2556         a missing pango_layout_iter_free ().
2557
2558 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
2559
2560         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
2561         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
2562
2563         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
2564         the function definition so we don't accidentally rely on
2565         the compat #define from gtk_radio_menu_item_group.
2566         (#60782, Jeff Franks)
2567
2568 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
2569
2570         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
2571         incorrect values for top, right and bottom due to cut-and-paste
2572         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
2573
2574 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
2575
2576         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
2577         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
2578         window, not just on the client leader. (#58463)
2579
2580 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
2581
2582         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
2583
2584         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
2585         non-public _gtk_menu_item_set_placement.
2586
2587         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
2588
2589 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
2590
2591         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
2592           gdk/linux-fb/gdkcolor-fb.c:
2593         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
2594         (#59723)
2595
2596 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
2597
2598         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
2599         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
2600         #59723)
2601
2602 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
2603
2604         Patch from Frank Belew #59037 for Solaris compilation.
2605
2606         * gtk/maketypes.awk: Change syntax slightly for a call
2607         to sub(), apparently making awk on Solaris happier.
2608
2609         * gtk/gtktreeview.c: Remove C++ comments.
2610
2611 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
2612
2613         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
2614         to handle '99% of the time. (#60473, reported by Christian Rose)
2615
2616         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
2617         which no longer exists. (#60379, reported by Vitaly Tishkov)
2618
2619 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
2620
2621         * Released 1.3.8.
2622
2623         * gdk/Makefile.am: kill EXTRA_DIST clearing.
2624         
2625 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
2626
2627         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
2628         as its broken in automake 1.4, add explicit object rule to
2629         generate this.
2630         
2631         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
2632         get rid of uneccessary stamps, group stuff more logically, and build
2633         sources due to object rules. fix srcdir!=builddir.
2634
2635 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
2636
2637         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
2638         incorrect parameter to compute_double_length
2639         (#58680, patch from Matthias Clasen)
2640
2641         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
2642
2643         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
2644
2645         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
2646         for GDK_RELEASE_MASK to avoid warnings with Forte.
2647
2648         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
2649         break; statements.
2650
2651 2001-09-18  Alex Larsson  <alexl@redhat.com>
2652
2653         * gtk/gtkcheckbutton.c:
2654         * gtk/gtkradiobutton.c:
2655         Don't draw with GTK_STATE_ACTIVE.
2656
2657         * gtk/gtkclist.c:
2658         * gtk/gtkctree.c:
2659         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
2660
2661         * gtk/gtktextdisplay.c:
2662         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2663         unfocused with base_gc [GTK_STATE_ACTIVE].
2664         
2665         * gtk/gtkentry.c:
2666         Add select all menu-item.
2667         Default cursor color is red.
2668         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2669         unfocused with base_gc [GTK_STATE_ACTIVE].
2670
2671         * gtk/gtklabel.[ch]:
2672         Add keynav + menu to selectable lables.
2673         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2674         unfocused with base_gc [GTK_STATE_ACTIVE].
2675
2676         * gtk/gtkfilesel.c:
2677         Add drag and drop support.
2678
2679         * gtk/gtkstyle.c:
2680         (This was checked in earlier)
2681         New default values for text/base SELECTED and ACTIVE
2682         
2683 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
2684
2685         * configure.in: up version to 1.3.8, interface age 0,
2686         binary age 0, depend on glib 1.3.8.
2687
2688         * NEWS: 1.3.8 updates.
2689
2690 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
2691
2692         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
2693         the editing code
2694
2695         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
2696         reason to call it beyond emiting the two signals.
2697
2698         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
2699         to GtkEntry.
2700
2701 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
2702
2703         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
2704           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
2705         PangoFontDescription.
2706
2707         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
2708         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
2709         structure.
2710   
2711         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
2712
2713         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
2714         direct access to style->font. Deprecate gtk_style_ref/unref.
2715   
2716         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
2717         Remove gtk_style_ref/unref with g_object_ref/unref.
2718   
2719         * gtk/gtkcalendar.c: Remove leftover macros accessing
2720         style->font.
2721   
2722         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
2723         variable.
2724   
2725         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
2726         style->font.
2727
2728 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
2729
2730         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
2731         "can_activate" properties in favor of
2732         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
2733         and GTK_CELL_RENDERER_MODE_EDITABLE
2734
2735 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
2736
2737         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
2738         editable widgets.  This function is private, and should only be
2739         used by GtkTreeView.
2740
2741 2001-09-18  Matt Wilson  <msw@redhat.com>
2742
2743         * docs/Makefile.am (EXTRA_DIST): don't use += before =
2744
2745         * docs/faq/Makefile.am (EXTRA_DIST): likewise
2746
2747         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
2748         
2749         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
2750         (EXTRA_HEADERS): likewise
2751
2752         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
2753         (EXTRA_HEADERS): likewise
2754         (EXTRA_DIST): likewise
2755         (CLEANFILES): likewise
2756
2757         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
2758
2759         * tests/Makefile.am (EXTRA_DIST): likewise
2760         
2761         * Makefile.am (install-data-local): changed to use
2762         install-data-hook, which runs after install-pkgconfigDATA, so that
2763         the pkgconfigdir will have been created and populated first.
2764
2765 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
2766
2767         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
2768         be the last big GtkTreeView API change.
2769
2770         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
2771         replace with "activate" and "start_editing".  Also, added a
2772         "can_activate" and "can_edit" property.
2773
2774         * gtk/gtktreeviewcolumn.c: modify to use above.
2775
2776 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
2777
2778         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
2779
2780 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
2781
2782         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
2783         icon instead of one with ugly white background.
2784
2785 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
2786
2787         * demos/gtk-demo/stock_browser.c (id_to_macro): make
2788         the uppercasing work. (#59550)
2789
2790 2001-09-14  Jakub Steiner <jimmac@ximian.com>
2791
2792         * gtk/stock-icons/dialog_error.png:
2793         * gtk/stock-icons/dialog_question.png: more road signs
2794
2795 2001-09-13  Jakub Steiner <jimmac@ximian.com>
2796
2797         * gtk/stock-icons/dialog_question.png:
2798         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
2799           like a road sign.
2800
2801 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
2802
2803         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
2804         signals to make them more clear.  Also, change ::range_changed to
2805         ::row_changed.
2806         * gtk/gtktreemodel.c: Adjust to interface change
2807         * gtk/gtktreemodel.h: ditto
2808         * gtk/gtktreemodelsort.c: ditto
2809         * gtk/gtktreestore.c: ditto
2810         * gtk/gtkliststore.c: ditto
2811         * gtk/gtktreeview.c: ditto
2812         * tests/testtreecolumns.c: ditto
2813         * gtk/gtkmarshal.list: Actually remove a marshaller!
2814
2815 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
2816
2817         * gtk/gtktextview.c
2818         Add support for Ctrl+Up/Down arrow to move cursor to beginning
2819         of previous/next paragraph. If within a paragraph cursor moves to
2820         beginning of that paragraph.
2821
2822 2001-09-12  Jakub Steiner <jimmac@ximian.com>
2823
2824         * gtk/stock-icons/dialog_question.png: replacing the shaky
2825           question mark with a sans-serif one.
2826         * gtk/stock-icons/stock_top.png, stock_bottom.png,
2827      stock_first.png, stock_last.png: using the new style arrows
2828         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
2829      colors.
2830         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
2831      color.
2832         * gtk/stock-icons/stock_zoom*: anti-aliased
2833         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
2834      '-' with a '_', removed the wrong files
2835
2836 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
2837  
2838         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
2839  
2840         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
2841         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
2842         than in gtk-2.0/major.minor.micro/<type>/. This
2843         works better for a search path for modules.
2844  
2845         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
2846         gtk_binary_version variable holding major.minor.(micro-binary_age).
2847  
2848         * modules/input/Makefile.am (moduledir): Fix installation
2849         directory to match change in lookup location.
2850  
2851         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
2852         suffixes. Needs to be handled in g_module_build_path().
2853
2854         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
2855         appropriate.
2856  
2857 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
2858
2859         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
2860         causing RC properties not to work.
2861
2862 2001-09-11  Jakub Steiner <jimmac@ximian.com>
2863
2864         * gtk/stock-icons/dialog-error.png: less drastic
2865         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
2866           "STOP" is international enough.
2867         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
2868         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
2869
2870 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
2871
2872         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
2873         (add|remove)_selection_clipboard symmetric. (bug #59836)
2874
2875         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
2876         Avoid SEGV for empty tree. (bug #60243)
2877
2878 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
2879
2880         * tests/testgtk.c (create_idle_test): slight fix for
2881         g_object_set() not usable for nesting anymore.
2882
2883         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
2884         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
2885         properties, supply ::shadow_type properties instead as most
2886         other widgets do.
2887
2888 2001-09-10  Alex Larsson  <alexl@redhat.com>
2889
2890         * demos/gtk-demo/stock_browser.c:
2891         * gdk/gdkcolor.c:
2892         * gdk/gdkfont.c:
2893         * gdk/gdkcursor.c:
2894         * gdk/gdkevents.c:
2895         * gdk/gdkrectangle.c:
2896         * gtk/gtktypeutils.c:
2897         Update to use the new g_boxed_type_register_static API.
2898
2899 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
2900
2901         * gtk/gtktreestore.c:
2902         Fix looping in gtk_tree_store_init() waiting for zero random int.
2903
2904 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
2905
2906         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
2907         behaviour which havoc broke. they have to default to 1.0 for
2908         expand behaviour.
2909
2910         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
2911
2912 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
2913
2914         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
2915         Amend previous change to avoid runtime error in g_param_spec_ref()
2916
2917 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
2918
2919         * gtk/gtkrc.c (insert_rc_property): Fix blank line
2920         in the wrong place.
2921
2922 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
2923
2924         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
2925         do a lookup immediately after creating style->property_cache,
2926         since bsearch crashes on zero length for Solaris.
2927         (Found by Padraig O'Briain.)
2928
2929 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
2930
2931         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
2932         Really return NULL if not set.
2933         (gtk_widget_init): Remove unused varaible.
2934         
2935 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
2936
2937         * configure.in:
2938         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
2939         in cvs.
2940
2941 2001-09-08  Havoc Pennington  <hp@pobox.com>
2942
2943         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
2944         people might want to use
2945
2946 2001-09-08  Havoc Pennington  <hp@pobox.com>
2947
2948         * gtk/gtkalignment.c (gtk_alignment_class_init): default
2949         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
2950
2951         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
2952
2953         * gtk/gtktextiter.c: fix docs
2954         (gtk_text_iter_spew): get rid of this
2955
2956         * gtk/gtklayout.c: docs
2957
2958         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
2959         to center image and label together, instead of having image on
2960         left and label centered, patch/suggestion from Jacob
2961
2962         * gtk/gtkdialog.c: docs
2963
2964 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
2965
2966         * gtk/gtkliststore.c: Write documentation
2967         * gtk/gtktreestore.c: Write documentation
2968
2969 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
2970
2971         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
2972         with GArray and bsearch(), to remove dependency on a still
2973         evolving interface that we want to keep private to glib/gobject. 
2974
2975 2001-09-08  Havoc Pennington  <hp@pobox.com>
2976
2977         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
2978         docs fixes
2979
2980         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
2981
2982         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
2983
2984         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
2985
2986         * gtk/gtkscrolledwindow.h: docs fixes
2987
2988         * gtk/gtkimage.c (gtk_image_new): docs fixes
2989
2990 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
2991
2992         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
2993         false alarm  constness warning with a cast.
2994
2995         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
2996         for the inside-gdk case.
2997
2998 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
2999
3000         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
3001         remove g_print.
3002
3003         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
3004         change models, #59899
3005
3006 2001-09-07  Havoc Pennington  <hp@pobox.com>
3007
3008         * gtk/gtkmain.c: move some docs inline
3009
3010 2001-09-07  Havoc Pennington  <hp@pobox.com>
3011
3012         * gtk/gtk.h: tsk tsk, jrb broke the build
3013
3014 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
3015
3016         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
3017         Removed 'fill' attribute.  It was silly b/c that was a property of
3018         the cell renderer, anyway.
3019         (gtk_tree_view_column_render): Actually render the packed
3020         renderers.
3021         * doc/tree-column-sizing.txt: initial devel documentation.
3022         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
3023         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
3024
3025         * tests/testtreefocus.c: fix up to reflect above changes.
3026         * tests/testtreeview.c: ditto
3027         * demos/gtk-demo/stock_browser.c: ditto
3028
3029 2001-09-07  Alex Larsson  <alexl@redhat.com>
3030
3031         * gdk/linux-fb/gdkcolor-fb.c:
3032         Removed unused function.
3033         
3034         * gdk/linux-fb/gdkdrawable-fb2.c
3035         * gdk/linux-fb/gdkfont-fb.c:
3036         Use PangoLanguage functions.
3037
3038         * gdk/linux-fb/gdkinput.c:
3039         * gdk/linux-fb/gdkselection-fb.c:
3040         Fix const warnings.
3041         
3042         * gdk/linux-fb/gdkwindow-fb.c:
3043         Fix warning. Implement gdk_window_set_icon_list() and
3044         gdk_window_get_frame_extents(). (No icon support yet though.)
3045
3046         * gtk/gtkwindow.c (gtk_window_get_position):
3047         If window->frame is set get the extents of it instead.
3048         
3049 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
3050
3051         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
3052         Make the default default colormap the GdkRGB colormap,
3053         not the system colormap.
3054
3055         * gtk/gtkinvisible.c (gtk_invisible_init) 
3056           gtk/gtkwindow.c (gtk_window_init): Set the current
3057         colormap, as returned by _gtk_widget_peek_colormap()
3058         on the widget.
3059
3060         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
3061         to GTK+. Make it return %NULL instead of the default
3062         colormap if no colormap has explicitely been pushed.
3063
3064         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
3065         colormaps on ancestral widgets before defaulting the
3066         the system default colormap.
3067
3068         * docs/Changes-2.0.txt: explain colormap changes.
3069
3070 2001-09-07  Havoc Pennington  <hp@redhat.com>
3071
3072         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
3073         #57424
3074
3075 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
3076
3077         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
3078         make gdk_set_use_xshm a noop. Remove --no-xshm command line
3079         option. If we aren't autodetecting properly, we need
3080         to fix the problem, or at least make it an environment
3081         variable setting, to avoid problems with propagating
3082         to embedded children, plugins, etc.
3083
3084         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
3085
3086         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
3087         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
3088         New function to render a pixmap and mask for a particular colormap.
3089
3090         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
3091         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
3092         of internal implementation of the same.
3093
3094 2001-09-07  Havoc Pennington  <hp@redhat.com>
3095
3096         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
3097         debug code that seems to have caused a breakpoint in valid cases
3098         
3099         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
3100         pointer on the first view when adding the second view, fixes
3101         crash when closing gtk-demo text test with active selection
3102
3103         * gtk/gtktextbuffer.c
3104         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
3105         clipboards in the list of clipboards - probably fixes #59836
3106
3107 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
3108
3109       Make gdkx.h the only installed header from gdk/x11.
3110       All structures in gdk/x11 are opaque.
3111
3112         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
3113         Don't install gdk{drawable,pixmap,window}-x11.h.
3114
3115         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
3116         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
3117         GdkVisualClass into C files.
3118
3119         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
3120
3121         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
3122         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
3123         Add public functions to replace previously exported direct
3124         structure access.
3125         gdk_x11_colormap_get_{xdisplay,xcolormap} 
3126         gdk_x11_cursor_get_{xdisplay,xcursor},
3127         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
3128         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
3129         gdk_x11_gc_get_{xdisplay,ximage}
3130         
3131         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
3132         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
3133
3134       Fix a number of variables and functions that were exported
3135       "accidentally" from GDK.
3136
3137         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
3138         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
3139         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
3140         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
3141         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
3142         gdk_event_queue_find_first, gdk_event_queue_remove_link,
3143         gdk_event_queue_append, gdk_event_button_generate,
3144         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
3145
3146         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
3147            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
3148         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
3149         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
3150         gdk_use_xshm, gdk_input_ignore_core.
3151
3152         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
3153         #defines to namespace functions into the private _gdk_ 
3154         namespace.
3155
3156         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
3157         to replace gdk_parent_root exported variable. Adjust and
3158         deprecate GDK_ROOT_PARENT().
3159
3160         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
3161         GDK_ROOT_PARENT usage, remove includes of port-specific
3162         headers.
3163
3164         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
3165         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
3166         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
3167
3168         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
3169         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
3170         gdk_wm_delete_window functions, gdk_wm_take_focus, 
3171         use gdk_atom_intern() instead.
3172
3173         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
3174           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
3175           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
3176           gtk/gtkselection.c 
3177         Unexport gdk_selection_property, just use 
3178         gdk_atom_intern ("GDK_SELECTION").
3179
3180         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
3181         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
3182         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
3183         GdkVisualprivate, gdk_x11_gc_flush.
3184
3185       Make a number of public exports of variables into functions
3186       to increase encapsulation.
3187
3188         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
3189         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
3190         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
3191
3192         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
3193         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
3194         gdk_error_warnings.
3195
3196         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
3197           docs/Changes-2.0.txt: 
3198         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
3199         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
3200         Add gdk_x11_get_default_xdisplay().
3201
3202         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
3203         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
3204         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
3205         Don't export gdk_progclass, move --class command line
3206         option and handling to common portion of GDK.
3207
3208       Miscellaneous fixes:
3209
3210         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
3211         g_return_val_if_fail that should have been g_return_if_fail.
3212
3213         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
3214         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
3215
3216         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
3217         X11 dependency.
3218
3219         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
3220         Remove unused gdk_key_repeat_disable/restore.
3221
3222         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
3223         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
3224         Remove unused gdk_null_window_warnings variable.
3225
3226         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
3227         it can be retrieved from the repository; it is too far
3228         from functional to be worth having people check out;
3229         it would be easier to start from scratch, I suspect.
3230
3231         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
3232
3233         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
3234         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
3235         Fix some accidentally global variables and unused global variables.
3236
3237         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
3238         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
3239         Fix some accidentally global variables and unused global variables.
3240
3241       Add some space for future expansion to multihead.
3242
3243         * gdk/gdkdrawable.h: Add four reserved function pointers
3244         for future expansion of GdkDrawableClass.
3245
3246         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
3247         where we can put a GdkScreen * later.
3248
3249 2001-09-07  Havoc Pennington  <hp@redhat.com>
3250
3251         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
3252         adjustments after validating destination yrange; fixes #53918
3253         (This may cause other issues, but I hope it won't)
3254         
3255 2001-09-05  Havoc Pennington  <hp@redhat.com>
3256
3257         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
3258         line into start line, update the character counts in parent nodes; 
3259         caused a bug when end and start line had different parent nodes.
3260
3261 2001-08-30  Havoc Pennington  <hp@redhat.com>
3262         
3263         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
3264         assertion that tag is in a table
3265
3266 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
3267
3268         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
3269         g_strcasecmp on NULL strings. (#59058)
3270
3271 2001-09-06  Alex Larsson  <alexl@redhat.com>
3272
3273         * gtk/gtkbin.c:
3274         * gtk/gtkfontsel.c:
3275         * gtk/gtkspinbutton.c:
3276         * gtk/gtktipsquery.c:
3277         Use GtkType/GType instead of uint.
3278
3279 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
3280
3281         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
3282         sort column.
3283
3284         * gtk/gtktreestore.c (gtk_list_store_init): ditto
3285
3286         * gtk/gtktreesortable.c: add docs.
3287
3288 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
3289
3290         * Version 1.3.7
3291
3292         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
3293         docs for gtk-config
3294
3295         * modules/input/Makefile.am (install-data-local): Don't
3296         run gtk-query-immodules if DESTDIR is set.
3297
3298         * NEWS: Various additions.
3299
3300 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
3301
3302         * NEWS: updates for 1.3.7 release.
3303
3304 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
3305
3306         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
3307         handle default sort feature
3308
3309         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
3310         new function to handle default sort.
3311         (gtk_tree_sortable_has_default_sort_func): check if default sort
3312         is set.
3313
3314         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
3315         handle default sort feature
3316
3317 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
3318
3319         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
3320         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
3321         #59731
3322
3323 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
3324
3325         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
3326         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
3327         time, #59727
3328
3329         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
3330         correctly.
3331
3332 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
3333
3334         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
3335         so that we don't eternally update the keymap after we
3336         get a change notification.
3337
3338         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
3339         incorrect cast.
3340
3341 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
3342
3343         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
3344         it working. It mostly works now, although there're still a few issues
3345         to be worked out.
3346
3347         * tests/testtreesort.c (main): changes to have a better test
3348         application for the GtkTreeModelSort.
3349
3350 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
3351
3352         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
3353         fix for bug #59222.
3354
3355         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
3356         gpointer search_data argument to function definition and
3357         prototype, to match GtkTreeViewSearchEqualFunc typedef.
3358
3359 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
3360
3361         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
3362         per jrb's request.
3363
3364 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
3365
3366         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
3367
3368         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
3369
3370 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
3371
3372         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
3373         Instead of always mirroring the selection to a single PRIMARY
3374         selection, allow it to be mirrored to any number of clipboards.
3375
3376         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
3377         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
3378
3379         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
3380         GtkClipboard argument, and for paste_clipboard, the
3381         @override_location argument from @paste_primary.
3382
3383         * gtk/gtktextview.c: Adapt to above change.
3384         
3385 2001-08-30  Havoc Pennington  <hp@redhat.com>
3386
3387         * gtk/gtktextview.c (invalidated_handler): put validate idle at
3388         resize - 2 just for flexibility
3389
3390 2001-08-30  Havoc Pennington  <hp@redhat.com>
3391
3392         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
3393         object from the empty-child-anchor case by drawing a little box.
3394         
3395         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
3396         if the child anchor has no anchored widgets - fixes #59328.
3397
3398         Also, remove bizarre deletion of preedit string that seems to have
3399         gotten in here somehow.
3400
3401 2001-08-30  Havoc Pennington  <hp@redhat.com>
3402
3403         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
3404         to #58420 from Hidetoshi Tajima and Matthias Clasen
3405
3406 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
3407
3408         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
3409         change color when the GtkTreeView loses focus.
3410
3411         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
3412         ditto.
3413         
3414         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
3415
3416 2001-08-28  Havoc Pennington  <hp@pobox.com>
3417
3418         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
3419
3420 2001-08-28  Havoc Pennington  <hp@pobox.com>
3421
3422         * demos/gtk-demo/main.c (setup_default_icon): add default icon
3423
3424         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
3425         warning fix
3426         (gtk_radio_button_new_with_label): warning fix
3427
3428         * gtk/gtkdnd.c: used some random GtkImage private structs, 
3429         update to reflect GtkImage changes
3430
3431         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
3432         whether the hint is supported, just always set the icon. A task
3433         list might want to use it even if the WM doesn't, and the WM may
3434         change over time. Also, XDeleteProperty() if list == NULL.
3435
3436         * gtk/gtkwindow.c (gtk_window_set_icon_list)
3437         (gtk_window_get_icon_list)
3438         (gtk_window_set_icon)
3439         (gtk_window_get_icon)
3440         (gtk_window_set_default_icon_list)
3441         (gtk_window_get_default_icon_list):
3442         new functions
3443
3444         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
3445
3446         * gtk/gtkimage.c: Implement property support, bug #59408
3447
3448         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
3449         on reparent-without-removing-first a bit more helpful.
3450         Let's just destroy this FAQ.
3451
3452 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
3453
3454         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
3455         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
3456
3457 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
3458
3459         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
3460         of use_text_format to the end of the function. (#56447)
3461
3462 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
3463
3464         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
3465         only in response to an area_prepared signal.
3466
3467 2001-08-28  Alex Larsson  <alexl@redhat.com>
3468
3469         * gtk/gtkwidget.c (gtk_widget_class_init):
3470         Make unrealize GTK_RUN_LAST.
3471
3472 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
3473
3474         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
3475         with_label and with_mnemonic should create radio buttons, not
3476         check buttons
3477
3478 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
3479
3480         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
3481         * tests/treestoretest.c (make_window): ditto
3482         * demos/gtk-demo/main.c (create_tree): ditto
3483         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
3484
3485 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
3486
3487         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
3488         GTK selection types rather than GtkTreeSelectionMode.
3489
3490         * docs/Changes-2.0: Add comment about selection change.
3491
3492 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
3493
3494         * gtk/gtkenums.h (GtkSelectionMode): deprecate
3495         GTK_SELECTION_EXTENDED.
3496
3497         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
3498         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
3499
3500         * gtk/gtkctree.c: ditto
3501
3502         * gtk/gtklist.c: ditto
3503
3504         * gtk/gtktree.c: ditto
3505
3506 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
3507
3508         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
3509         of typos in compat macros. (#59624, Skip Montaro)
3510
3511 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
3512
3513         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
3514         macro.
3515
3516          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
3517  
3518         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
3519         interface to be a standard setter from gtk_menu_item_right_justify.
3520         (gtk_menu_item_get_right_justified): a getter to go with the setter
3521
3522         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
3523         gtk_menu_item_right_justify.
3524
3525         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
3526         gtk_menu_item_set_right_justified.
3527  
3528 2001-08-27  Jens Finke <jens@gnome.org>
3529
3530         * gtk+.spec.in: Updated to match gpp requirements, reworked the
3531         files section to make it work with 1.3.x releases.
3532
3533 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
3534
3535         * gtk/gtkbutton.[ch]:
3536         Add properties for labels, mnemonics and stock items.
3537         Added C accessor functions for the properties.
3538         Removed deprecated button->child.
3539
3540         * gtk/gtkradiobutton.c:
3541         * gtk/gtktogglebutton.c:
3542         Update to use the functions in GtkButton.
3543
3544         * gtk/gtkcheckbutton.c:
3545         Update to use the functions in GtkButton.
3546         Changed size allocation of child. Now only gets as much
3547         space as it requests.
3548
3549         * gtk/gtkclist.c:
3550         Don't use GtkButton->child
3551
3552         * gtk/gtklabel.c:
3553         Fixed typo in docs
3554         
3555 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
3556
3557         * tests/testgtk.c:
3558         * tests/Makefile.am:
3559         Ressurect the properties test.
3560         I don't care if it is inferior, I just want to test my property code.
3561
3562 2001-08-25  Chema Celorio  <chema@celorio.com>
3563
3564         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
3565         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
3566         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
3567
3568 2001-08-24  Havoc Pennington  <hp@pobox.com>
3569
3570         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
3571         these are already in gtkmenu.h, and the copies
3572         here were broken.
3573
3574         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
3575
3576         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
3577         special-case bitmaps to allow no colormap
3578         (bitmap1): implement no-colormap bitmap-getting
3579         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
3580         alpha
3581         (rgb8): indentation
3582         (rgb1a, rgb1): change the way we read the data out of the image, 
3583         old way didn't seem to work quite right.
3584
3585         I'm pretty sure a lot of the rgbconvert code is still broken.
3586         
3587         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
3588         above position constraint (I really intended to do this before,
3589         don't know what's up with that)
3590         (gtk_XParseGeometry): shut up gcc
3591
3592         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
3593         and "0" should have been. remove the attempted 4-bytes-at-once
3594         optimization, it was totally broken.
3595
3596 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
3597
3598         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
3599         on push to buttons (based on patch from Soeren Sandmann, #54720)
3600
3601           - Add child_displacement_x/y style properties to control how far the
3602             child moves when the button is depressed.
3603
3604           - Add non-exported function _gtk_button_set_depressed to clean
3605             up the handling of the in/out shadow and separate it frmo
3606             widget->state.
3607
3608           - Lots of code cleanup and simplification of state handling
3609             for GtkButton/GtkToggleButton.
3610  
3611         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
3612         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
3613
3614 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
3615
3616         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
3617         and make gtk_image_new() take no arguments. The compiler will
3618         catch it, and it is vastly more useful than having
3619         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
3620
3621         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
3622         to add tearoff-title property (#51319, Lee Mallabone)
3623
3624 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
3625
3626         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
3627         gtk_menu_item_configure(). (#58925)
3628
3629 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
3630
3631         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
3632         "use_align" to give people the option to just make a cell visible.
3633
3634         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
3635         we were scrolling past the end of the tree.
3636
3637         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
3638         rename gtk_tree_view_column_pack_start_cell_renderer to
3639         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
3640
3641 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
3642
3643         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
3644         a stray g_object_ref() left over from gtk_object_ref/sink.
3645         (Pointed out by Josh Pritikin.)
3646
3647 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
3648
3649         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
3650         to gtk_container_get_children. Added deprecated compatibility
3651         macro. (Suggested by Vitaly Tishkov, #59051)
3652
3653         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
3654         calls.
3655
3656 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
3657
3658         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
3659         gtk_menu_bar_append/prepend/insert, forgot to do this
3660         when we deprecated gtk_menu_append/prepend/insert.
3661
3662         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
3663         compat macros.
3664
3665         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
3666         renamed by compat macro.
3667
3668         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
3669         gtk_font_selection_dialog_get_font(). (Suggested by
3670         Vitaly Tishkov, #59383)
3671
3672 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
3673
3674         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
3675         Rename from gtk_text_tag_table_size(). (#59366)
3676
3677 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
3678
3679         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
3680         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
3681         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
3682         (#59173).
3683
3684 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
3685
3686         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
3687         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
3688         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
3689
3690 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
3691
3692         [ Patch from Sebastian Wilhelmi, 52790 ]
3693
3694         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
3695
3696         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
3697         Move compatibility macros from g[dt]kcompat.h to within 
3698         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
3699
3700         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
3701
3702         * demos/Makefile.am demos/gtk-demo/Makefile.am 
3703           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
3704           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
3705
3706         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
3707                  testpixbuf.c}: Fix usages of deprecated functions.
3708
3709 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
3710
3711         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
3712         when changing models.
3713
3714 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
3715
3716         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
3717         We check the current event for modifiers rather than try to trap
3718         all presses.
3719
3720 2001-08-22  Anders Carlsson  <andersca@gnu.org>
3721
3722         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
3723         It's LIST_STORE, not LISTSTORE.
3724
3725 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
3726
3727         * gtk/gtk.h: Remove commented out gtkpacker reference.
3728
3729 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3730
3731         * configure.in (all_loaders): Add tga loader, 
3732         patch by Nicola Girardi. (#56067)
3733
3734 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
3735
3736         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
3737         a little.  More needs to be done tomorrow.
3738
3739 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
3740
3741         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
3742
3743 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
3744
3745         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
3746         reported by Kristian Rietveld <kristian@planet.nl> to handle row
3747         == NULL.
3748         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
3749         <kristian@planet.nl> to change destroy order.
3750
3751 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
3752
3753         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
3754         correct marshaller.
3755
3756 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
3757
3758         * gtk/gtkliststore.c: Fix up warnings, #58928.
3759
3760         * gtk/gtktreeselection.h: Change signal prototype, #58647
3761
3762         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
3763         #59221.
3764
3765         * gtk/gtkstyle.c: Actually prelight arrow, #50981
3766         
3767 2001-08-18  Hans Breuer  <hans@breuer.org>
3768
3769         * gdk/gdk.def : updated externals
3770
3771         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
3772         is required to get (at least) visible in entry fields. Some selections
3773         are really handled now - even on win32 - but copying via middle
3774         mouse button into a different app needs to wait ... 
3775
3776         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
3777         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
3778
3779         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
3780         handling. I'm not sure if it is better now, but at least not worse
3781
3782         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
3783         with SetWindowPos () which allows more fine-tuning backing-store wise
3784
3785         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
3786         Also changed move/resize to be more like the X version.
3787
3788         * gtk/gtk.def : updated externals
3789
3790 2001-08-19  Sven Neumann  <sven@gimp.org>
3791
3792         * gtk/gtktooltips.c
3793         * tests/testtreesort.c
3794         * tests/treestoretest.c: inserted some casts to get rid of compiler
3795         warnings.
3796
3797 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
3798
3799         * gtk/gtktreeviewcolumn.c
3800         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
3801
3802         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
3803         (_gtk_tree_view_find_node): If *node is NULL,
3804         *tree should be NULL too.
3805
3806         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
3807         column/renderers.
3808         * tests/testtreecolumns.c: ditto
3809         * tests/testtreefocus.c: ditto
3810         * tests/testtreesort.c: ditto
3811         * tests/testtreeview.c: ditto
3812         * tests/treestoretest.c: ditto
3813
3814 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
3815
3816         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
3817         signals; is_expander/is_expanded.
3818
3819         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
3820         pixbufs.
3821
3822         * gtk/gtktreeview.c: set above properties.
3823
3824 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
3825
3826         * gtk/gtkwidget.h: Really remove set_default_style().
3827
3828         * docs/Changes-2.0.txt: added a note about
3829         gtk_widget_push/pop/set_default_style.
3830
3831 2001-08-18  Havoc Pennington  <hp@pobox.com>
3832
3833         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
3834         hints_changed in addition to the other cases.
3835         (gtk_window_move_resize): include last position from configure
3836         notify in debug spew
3837
3838 2001-08-18  James Henstridge  <james@daa.com.au>
3839
3840         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
3841         second argument to the weak ref notify, cleaning up some uglyness.
3842         (gtk_accel_group_attach): remove and add the weak notifier when
3843         changing the accel groups slist.
3844         (gtk_accel_group_detach): same here.
3845
3846 2001-08-17  Darin Adler  <darin@bentspoon.com>
3847
3848         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
3849         missing parameters to utf8 functions to make it compile.
3850
3851 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
3852
3853         * gtk/gtktreeprivate.h:
3854         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
3855         (gtk_tree_view_init), (gtk_tree_view_set_property),
3856         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
3857         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
3858         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
3859         (gtk_tree_view_set_destroy_count_func),
3860         (gtk_tree_view_set_enable_search),
3861         (gtk_tree_view_get_enable_search),
3862         (gtk_tree_view_get_search_column),
3863         (gtk_tree_view_set_search_column),
3864         (gtk_tree_view_get_search_equal_func),
3865         (gtk_tree_view_set_search_equal_func),
3866         (gtk_tree_view_search_dialog_destroy),
3867         (gtk_tree_view_search_position_func),
3868         (gtk_tree_view_interactive_search),
3869         (gtk_tree_view_search_delete_event),
3870         (gtk_tree_view_search_button_press_event),
3871         (gtk_tree_view_search_key_press_event),
3872         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
3873         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
3874         * gtk/gtktreeview.h:
3875         Add heavily modified patch from Kristian Rietveld to handle
3876         interactive searching.
3877
3878 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
3879
3880         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
3881         string parameter.
3882
3883         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
3884         GtkMenuShell::selection_done, now that we have it, instead of 
3885         ::deactivate so we're not tearing the menu apart and notify
3886         the user prematurely.
3887
3888 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
3889
3890         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
3891         window, clear window->need_default_position to avoid infinite loops.
3892         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
3893
3894 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
3895
3896         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
3897         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
3898         (gtk_tree_view_set_property): don't cast possible NULL objects.
3899         (gtk_tree_view_destroy): reset the model to NULL.
3900
3901         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
3902         parent_class handler.
3903
3904 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3905
3906         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
3907
3908 2001-08-17  Anders Carlsson  <andersca@gnu.org>
3909
3910         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
3911         point numbers so that the result will be floating point.
3912
3913 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3914
3915         * tests/testgtk.c (create_handle_box): 
3916         (create_toolbar): Replace gtk_window_set_policy calls by
3917         gtk_window_set_resizable.
3918
3919 2001-08-16  Jakub Steiner <jimmac@ximian.com>
3920
3921         * gtk/stock-icons/dialog_info.png: new style bulb
3922         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
3923         * gtk/stock-icons/dialog_warning.png: need a hand?
3924         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
3925           the aa border gets chopped off ok
3926         * gtk/stock-icons/stock_colorselector.png: using the new hand
3927         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
3928           this one is for, but the old icon was butt ugly.
3929         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
3930         * gtk/stock-icons/stock*_insert_object.png: "
3931         * gtk/stock-icons/stock_index.png: using new hand icon
3932         * gtk/stock-icons/stock*_new.png: the document template being used 
3933           elsewhere too
3934         * gtk/stock-icons/stock*_print*.png: new print and print preview 
3935           icons (panel/menu)  
3936         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
3937           icons based on Tuomas' floppy image.
3938         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
3939         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
3940         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
3941         * gtk/stock-icons/stock*_undelete.png: "
3942         * gtk/stock-icons/stock_preferences.png: I have a version with a 
3943           document base if the sliders are no good.
3944         * gtk/stock-icons/stock_properties.png: properties 
3945         
3946
3947         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
3948           (tigert@ximian.com) clipboard icons
3949         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
3950         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
3951         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
3952           little bigger IMHO
3953
3954 2001-08-16  Sven Neumann  <sven@gimp.org>
3955
3956         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
3957
3958 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
3959
3960         * gtk/gtkcellrenderertext.c:
3961         Avoid warning when specifying NULL for "attributes" property
3962
3963 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3964
3965         * docs/debugging.txt: Add a warning about --enable-debug=no,
3966         some editorial changes.
3967
3968 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3969
3970         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
3971         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
3972         debugging info, remove unused debug flags. (#58330)
3973
3974 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
3975
3976         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
3977         (gtk_tree_selection_select_all): Remove strict checking for rows.
3978
3979 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3980         
3981         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
3982         Don't remove the tooltip window when the tip text changes. (#15891)
3983
3984 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
3985
3986         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
3987         $(srcdir).
3988
3989 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
3990
3991         * Makefile.am (EXTRA_DIST): Fix problem with trying to
3992         dist files from intl/, which is no longer there.
3993
3994 2001-08-11  Hans Breuer  <hans@breuer.org>
3995
3996         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
3997           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
3998           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
3999           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
4000           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
4001           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
4002
4003         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
4004           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
4005         GDK_TYPE_EVENT signals
4006
4007         * gtk/gtkalignment.c : removed 'direct allocation bug',
4008         which Tim discovered while reading the patch
4009
4010 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
4011
4012         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
4013         compat macros for push/pop/set_visual that were supposed
4014         to be added a long time ago, but got dropped. 
4015
4016 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
4017
4018         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
4019         property notifies.
4020
4021 2001-08-07  Havoc Pennington  <hp@pobox.com>
4022
4023         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
4024
4025         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
4026         some fixage is needed here, but nothing simple. Owen understands
4027         it. ;-)
4028
4029         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
4030         sizing and positioning.  Also, fix bug in compute_geometry_hints
4031         (width/height confusion for setting min size). 
4032         (gtk_window_move): new function
4033         (gtk_window_resize): new function
4034         (gtk_window_get_size): new function
4035         (gtk_window_get_position): new function
4036         (gtk_window_parse_geometry): new function
4037         
4038         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
4039         (gtk_widget_get_size_request): new function
4040         (gtk_widget_get_usize): delete, that was a short-lived function
4041         ;-)
4042         (gtk_widget_set_usize): deprecate
4043         (gtk_widget_set_uposition): deprecate, make it a trivial 
4044         gtk_window_move() wrapper
4045         (gtk_widget_class_init): remove x/y/width/height properties,
4046         add width_request height_request
4047         
4048         * demos/*: update to avoid deprecated functions
4049         
4050         * gtk/gtklayout.c: add x/y child properties
4051
4052         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
4053         uses of "gint16"
4054
4055         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
4056         sizing test
4057
4058         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
4059         configure events on toplevel windows are always in root window
4060         coordinates, following ICCCM spec that all synthetic events 
4061         are in root window coords already, while real events are 
4062         in parent window coords. Previously the code assumed that 
4063         coords of 0,0 were parent window coords, which was 
4064         really broken.
4065   
4066         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
4067         warning
4068  
4069         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
4070         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
4071         hints in gtk_window_parse_geometry()
4072  
4073         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
4074         new USER_POS USER_SIZE hints    
4075
4076 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4077
4078         * tests/prop-editor.c (properties_from_type): Use 
4079         g_object_class_list_properties to get the param specs 
4080         for a given type. (#58609)
4081
4082 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4083
4084         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
4085         free the text_aa parts. (#57549)
4086
4087 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4088
4089         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
4090         not the foreground color. (#57621)
4091
4092 2001-08-09  Alexander Larsson <alexl@redhat.com>
4093
4094         * gdk/win32/gdkfont-win32.c:
4095         Update to the new pango win32 api.
4096
4097 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
4098
4099         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
4100         COMPOUND_TEXT instead of TEXT
4101         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
4102         interpret the return value of g_string_to_compound_text()
4103         (#55152)
4104
4105 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4106
4107         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
4108         fail if iter is NULL. (#58347)
4109
4110 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4111
4112         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
4113         some off-by-one issues, fixing selection of line-ends. (#50323)
4114
4115 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4116
4117         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
4118         functions in order to make mouse operation work again in the
4119         color wheel. (#58604)
4120
4121 2001-08-07  James Henstridge  <james@daa.com.au>
4122
4123         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
4124         the accelerator when the accel object is changed.  Fixes bug
4125         #58628.
4126
4127 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
4128
4129         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
4130         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
4131         (gnome bugzilla #58202)
4132
4133 2001-08-06  Havoc Pennington  <hp@pobox.com>
4134  
4135         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
4136         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
4137         it was expecting a GdkWindow, not a GdkWindowImplX11.
4138  
4139         Also, we were getting the window rect in screen coords 
4140         and the screen rect in window coords then intersecting 
4141         them; instead, get window rect in window coords.
4142  
4143         Finally, there were codepaths that resulted in a stuck server grab
4144         (when the window was fully onscreen, or on gdk_image_new()
4145         failure); make the server ungrab thing a bit more
4146         robust/consistent.
4147
4148 2001-08-06  Sven Neumann  <sven@gimp.org>
4149
4150         * gdk/gdkpango.c (gdk_pango_context_destroy): 
4151         check if info->colormap != NULL before unref'ing it. It might have
4152         been set to NULL using gdk_pango_context_set_colormap().
4153
4154 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
4155
4156         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
4157         Fix conversion from float to int so that we don't get
4158         skew in the int => float => int roundtrip. 
4159         (#58120, reported by Vitaly Tishkov). Also fix problem
4160         where if no alpha was set, the returned alpha
4161         from (say) set_current_alpha() was returned as 1, not 65535.
4162
4163 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
4164
4165         * gtk/gtklist.c (gtk_list_clear_items): Fix
4166         problem with selecting a new focus child.
4167
4168         * gtk/gtklist.c (gtk_list_clear_items): Clear 
4169         list->undo/list_focus_child after unparenting
4170         child, since unparenting the child can result
4171         in list->last_focus_child being set. (#58024)
4172
4173         * Makefile.am (SUBDIRS): Add target specific pc
4174         files to DISTCLEANFILES.
4175
4176         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
4177         (58327, Matthias Clasen)
4178
4179 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
4180
4181         * tests/testgtk.c: Patch from Hans (with various modifications),
4182         to add the ability to use testgtk as a rough-and-ready
4183         benchmark. Try, 'testgtk --bench all:5' (if you want decent
4184         numbers, run without a window manager)
4185
4186 2001-08-04 Alexander Larsson <alexl@redhat.com>
4187
4188         * gdk/win32/gdkinput.c:
4189         Add #ifdef HAVE_WINTAB around wintab.h include.
4190
4191         * gtk/gtk.def:
4192         Removed marshals that have been moved to glib.
4193         Commented out plug and socket. They didn't compile for me 
4194         on win32.
4195
4196 2001-08-04  Hans Breuer  <hans@breuer.org>
4197
4198         * gtk/stocks-icons/makefile.msc : new file
4199         * gtk/makefile.msc.in : use it
4200
4201         * gtk/gtkstyle.c : not all platforms do provide M_PI and
4202         friends, but luckily there is G_PI
4203
4204         * gtk/gtk.def : updated
4205
4206         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
4207         windows WS_POPUP, but only those without a parent. This fixes the 
4208         mis-alignment between the selectable (temp, input only) window and 
4209         the window text of GtkLabel.
4210
4211         (gdk_window_show) : respect private->state when actually showing
4212         the window.
4213
4214         (gdk_window_set_transient_for) : Implementation from Wolfgang 
4215         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
4216         error handling. Should fix #50586.
4217
4218         * gdk/win32/gdkevents-win32.c : beautify log output
4219
4220 2001-08-04  Michael Natterer  <mitch@gimp.org>
4221
4222         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
4223         Need to show the image after adding it to the GtkImageMenuItem.
4224         This used to work without in testgtk because of the
4225         gtk_widget_show_all() at the end of the function.
4226         (Closes #54978).
4227
4228 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
4229
4230         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
4231         (gtk_notebook_set_child_property): fix finding of child's page,
4232         since we have to validly deal with labels and menus here as well.
4233         (gtk_notebook_get_child_property): fix warning.
4234         (gtk_notebook_class_init): property tab_pack is of type
4235         GTK_TYPE_PACK_TYPE (enum) not boolean.
4236         (gtk_notebook_find_child): don't always warn, we might be looking
4237         for a label or menu child.
4238         (gtk_notebook_map): fix mapping of panel.
4239
4240         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
4241         widget's mapped state, regardless of the value being set equals
4242         old settings, since things like REALIZED(parent) or MAPPED(parent)
4243         may have changed since the old value was set. make it an error to
4244         invoke this function on a toplevel widget.
4245
4246 2001-07-31  Darin Adler  <darin@bentspoon.com>
4247
4248         * gdk/gdkprivate.h:
4249         * gdk/x11/gdkx.h:
4250         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
4251
4252         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
4253         GTK_OBJECT.
4254
4255 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
4256
4257         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
4258         scoping error pointed out by matthiasc@poet.de.
4259
4260 2001-07-31  Sven Neumann  <sven@gimp.org>
4261
4262         * demos/gtk-demo/appwindow.c
4263         * demos/gtk-demo/item_factory.c
4264         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
4265
4266 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
4267
4268         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
4269         argument order for g_signal_has_handler_pending.
4270
4271 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
4272
4273         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
4274         instead of long deprecated g_scanner_stat_mode().
4275
4276 2001-07-29  Hans Breuer  <hans@breuer.org>
4277
4278         * gdk/makefile.msc : build in the backend dir after
4279         auto-generating files
4280
4281         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
4282         with code from win32-production-branch.
4283
4284         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
4285         before calling DestroyWindow, which indirectly calls 
4286         gdk_window_destroy_notify ()
4287
4288         (performance patch merged from win32-production-branch)
4289         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
4290         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
4291         R2_COPYPEN rop). It is claimed to be much faster.
4292
4293 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
4294
4295         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
4296         add an "attributes" property to the text renderer for ATK.
4297
4298 2001-07-26  Alex Larsson  <alexl@redhat.com>
4299
4300         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
4301         Initialize image->bits_per_pixel from the drawable, not from
4302         the root window.
4303
4304         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
4305         Fix cast. argument is an IMPL already.
4306
4307 2001-07-15  James Henstridge  <james@daa.com.au>
4308
4309         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
4310         (gtk_window_remove_accel_group): same here.
4311         (gtk_window_key_press_event): same here.
4312
4313         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
4314         (gtk_widget_remove_accelerator): same here.
4315         (gtk_widget_remove_accelerators): same here.
4316
4317         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
4318
4319         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
4320         instead of GtkObject.
4321
4322         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
4323         now takes GObjects.
4324
4325         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
4326         pass a GObject to gtk_accel_group_entries_from_object.
4327         (gtk_item_factory_create_item): s/accel_widget/accel_object/
4328
4329         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
4330
4331         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
4332
4333         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
4334         GObjects can have accelerators set now.  Add compatibility
4335         defines.
4336
4337         * gtk/gtkmarshal.list: add missing marshallers.
4338
4339         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
4340         accelerators on plain GObjects.  gtk_accel_group_object_destroy
4341         has been converted into a weak reference, and
4342         gtk_accel_group_delete_entries is now a destroy notify for that
4343         piece of data.
4344
4345 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
4346
4347         * gdk/gdkdraw.c: Added a check on the colormap depth to
4348         gdk_drawable_set_colormap()
4349         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
4350         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
4351         for pixmaps without visuals (more specifically, bitmaps)
4352         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
4353         doesn't set a colormap with the wrong depth
4354
4355
4356 2001-07-22  Anders Carlsson  <andersca@gnome.org>
4357
4358         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
4359         expander_height and expander_width properties with a single
4360         property, expander_size.
4361         (gtk_tree_view_init): Set the tab_offset to expander_size
4362         plus some padding.
4363         (gtk_tree_view_unrealize): Remove the expand/collapse
4364         timeout if it exists.
4365         (coords_are_over_arrow): Fix a small bug.
4366         (gtk_tree_view_motion_draw_column_motion_arrow): Use
4367         expander_size.
4368         (gtk_tree_view_draw_focus): Use "treeview" instead of
4369         "add-mode" as detail when drawing the focus.
4370         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
4371         instead of "add-mode" as detail when drawing the focus.
4372         (gtk_tree_view_deleted): If we have a node currently being
4373         expanded or collapsed, remove the timeout and set the node 
4374         to NULL.
4375         (gtk_tree_view_queue_draw_arrow): New function that just
4376         redraws the arrow of a node.
4377         (gtk_tree_view_draw_arrow): Use expander_size instead of
4378         expander_width/expander_height, also pass a different
4379         expander_style to gtk_paint_expander depending on the 
4380         state of the node being drawn.
4381         (expand_collapse_timeout): New function for expanding 
4382         or collapsing a node depending on the previous state.
4383         (gtk_tree_view_real_expand_row): Add timeout and set 
4384         correct state for node being expanded.
4385         (gtk_tree_view_real_collapse_row): Add timeout and set
4386         correct state for node being collapsed.
4387
4388         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
4389         information about the node currently being expanded or
4390         collapsed, and also a timeout id.
4391
4392         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
4393         with expander_style for draw_expander.
4394
4395         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
4396         expander_style.
4397         (create_expander_affine): New function for creating an 
4398         expander affine.
4399         (apply_affine_on_point): New function for applying an 
4400         affine to a point.
4401         (gtk_default_draw_expander): Modified to take expander_style
4402         instead of is_open, and to draw the rectangle rotated differently
4403         depending on the expander style.
4404         (gtk_paint_expander): Replace is_open with expander_style.
4405
4406         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
4407
4408         * gtk/gtkenums.h: Add expander style enum.
4409
4410 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
4411
4412         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
4413         value from gtk_tree_model_get_iter, the model might be empty.
4414
4415 2001-07-20  Hans Breuer  <hans@breuer.org>
4416
4417         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
4418         gdk/gdkinput.c like the other backends
4419
4420         * gdk/win32/gdkinput-win32.h :
4421         * gdk/win32/gdkinput.c :
4422         * gdk/win32/gdkvisual-win32.c :
4423         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
4424         GdkVisual GObjectification. UNTESTED for pen-devices because
4425         I simply have none.
4426
4427         * gdk/gdk.def :
4428         * gtk/gtk.def : updated externals
4429
4430         * gtk/gtkiconfactory.c :
4431         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
4432         before passing &error to functions to avoid strange crashes
4433         
4434         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
4435
4436         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
4437
4438         * gtk/makefile.msc.in : updated
4439
4440 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
4441
4442         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
4443         Add property support. (#51858)
4444
4445 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
4446
4447         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
4448         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
4449         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
4450
4451 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
4452
4453         * gtk/gtkcolorsel.c: Add propery support (roughly
4454         based on patch from Lee Mallabone, #51014)
4455
4456         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
4457         deprecated, since we already g_warning() on it.
4458
4459 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
4460
4461         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
4462         typo that sometimes caused selection not to work properly.
4463
4464         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
4465         entry when tabbing in. (#57743)
4466         
4467         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
4468         user drags up above or down below the entry, move
4469         to the end or the beginning of the entry. (Suggestion
4470         from Jay Cox, #50940)
4471
4472         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
4473         a current selection, then when moving by chars or
4474         words, move to the end of the selection rather than
4475         from entry->current_pos. (Suggestion from Jay Cox,
4476         #50942)
4477         
4478 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
4479
4480         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
4481         set window->decorated. (Patch from Hidetoshi Tajima,
4482         #55846)
4483
4484 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
4485
4486         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
4487         the widget/child realization/mapping invariants.
4488
4489         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
4490         gtk_widget_[get/set]_child_visible() to control
4491         whether visible children of a mapped window are
4492         mapped.
4493
4494         * docs/widget_system.txt: Updated for changes in
4495         container contract, and addition of GTK_CHILD_VISIBLE.
4496
4497         * gtk/gtkcontainer.c: Add generic map()/unmap()
4498         functions that work for almost all containers.
4499
4500         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
4501         gtk_widget_set_child_visible() where necessary.
4502
4503         * gtk/*.c: Remove excess map(), unmap(), and 
4504         realization/mapping invariant enforcing code
4505         from many containers.
4506
4507 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
4508
4509         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
4510         Get the foreground color from 'text', nor 'fg'. (#57568)
4511
4512 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
4513
4514         * gtk/*.c: Patch from Matthias Clasen to remove remove
4515         all instances of g_return_if_fail (foo != NULL); that are
4516         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
4517         since the second check catches the NULL anyways.
4518
4519 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
4520
4521         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
4522         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
4523         GDK_THREADS_ENTER()/LEAVE() pairs.
4524
4525         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
4526         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
4527         pairs. (Problem found by M. Meeks)
4528
4529 2001-07-18  Darin Adler  <darin@bentspoon.com>
4530
4531         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
4532         that we don't get a g_warning message every time we register a new
4533         icon size.
4534
4535         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
4536         using pixel variable of the correct type.
4537         
4538 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
4539
4540         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
4541         so that using X functions on a GdkWindow is possible, if
4542         a little hairy.
4543
4544         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
4545         and ts_origin of a GC, so that external parties can offset/restore
4546         a GC, when using gdk_window_get_internal_paint_info().
4547
4548 2001-07-17  Darin Adler  <darin@bentspoon.com>
4549
4550         * .cvsignore: Ignore the sgml directory made by gtkdoc.
4551         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
4552         instead of the deprecated gtk_window_set_policy.
4553         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
4554         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
4555         function to get rid of warning and some code too.
4556         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
4557         missing const.
4558         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
4559         unused local.
4560         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
4561         const.
4562         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
4563         (gdk_utf8_to_compound_text): Add missing const.
4564         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
4565         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
4566         cast and get rid of an unnecessary one.
4567         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
4568         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
4569         local.
4570         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
4571         Remove unused local.
4572         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
4573         missing const.
4574         * tests/testsocket.c: (add_child): Add cast so the printf format
4575         doesn't make us implicitly depend on what integer type
4576         gtk_socket_get_id returns.
4577         * tests/testtextbuffer.c: Add missing const.
4578         * tests/testtreefocus.c: (main): Remove unused local.
4579         * tests/treestoretest.c: (iter_remove): Remove unused local.
4580         (uppercase_value): Remove unused function.
4581         (make_window): Add statement to quiet the compiler's uninitialized
4582         variable warning.
4583
4584 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
4585
4586         * gtk/gtkrange.c:
4587         (second_timeout): 
4588         (initial_timeout): 
4589         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
4590         (gtk_range_calc_layout): compute the new layout based on an
4591         adjustment->value being passed in as argument.
4592         (gtk_range_button_press): for button2 slider warps, first recalc
4593         the layout, then adjust the value. also, use update_slider_position()
4594         for adjusting the value, so we keep pixel quantisation at which we
4595         usually operate (upon motion or button releases). the reason for this
4596         is that, we can't change the adjustment upon button2 presses to a non
4597         quantised value and upon button2 release re-quantise the value since
4598         that'd alter the value even if we didn't get any motion events (causing
4599         unexpected scroll area warps upon release and/or slider pixel-jitter).
4600         (gtk_range_motion_notify): update the slider position from queried
4601         coordinates, not event coordinates.
4602
4603 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
4604
4605         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
4606         the default gc values are: width=0, CapBut, JoinMiter.
4607
4608 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
4609
4610         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
4611         into account the xpad and ypad when calculating the width and the
4612         height of the pixbuf cel.
4613
4614 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
4615
4616         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
4617         Rename to gtk_radio_menu_item_get_group(), add deprecated
4618         alias. (#57044)
4619
4620         * gtk/gtkfilesel.c: Indentation fix.
4621
4622 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
4623
4624         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
4625         Hasselmann to fix warnings in compat macros. 
4626         (#56773)
4627
4628         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
4629         stupid wrong cast added in last patch.
4630
4631 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
4632
4633         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
4634         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
4635
4636 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
4637
4638         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
4639         missing cast.
4640
4641         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
4642         NULL/FALSE return value confusion.
4643
4644         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
4645         problem when scrollbar completely fills range. (Patch
4646         from  Matthias Clasen, #57047)
4647
4648 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
4649
4650         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
4651         clean up when handling events for move-resize emulation.
4652         (Problem traced down by Matthias Clasen, #57271)
4653
4654 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
4655
4656         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
4657           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
4658           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
4659           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
4660           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
4661           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
4662           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
4663         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
4664
4665 2001-07-09  Peter Williams  <peterw@ximian.com>
4666
4667         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
4668         for when srcdir != builddir
4669
4670 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
4671
4672         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
4673         gtk_tree_model_get_iter_root.
4674
4675         * gtk/gtkliststore.c: Add a bunch of g_return statements.
4676         (gtk_list_store_iter_n_children): Fix up.
4677
4678         * gtk/gtktreestore.c: Add a bunch of g_return statements.
4679
4680 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
4681
4682         * gtk/gtkwidget.c (gtk_widget_class_init):
4683         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
4684         restore some workingness.
4685
4686         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
4687         handle of window type for input-only windows.
4688
4689 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
4690
4691         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
4692         Patch from Gregory Merchan to add 
4693         gtk_button_box_set_secondary(), which separates
4694         the child into a separate group from the normal
4695         buttons. (#56331)
4696
4697         * gtk/gtkdialog.c: Make help buttons secondary by
4698         default.
4699
4700         * gtk/gtkbbox.c: Added a child property "secondary".
4701
4702         * gtk/testgtk.c: Turn on the help button for the 
4703         color selector to check that it properly appears
4704         as secondary.
4705
4706 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
4707  
4708         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
4709         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
4710         Add gdk_set_pointer_hooks() to allow pointer-querying to
4711         be hooked by an event record/playback system like GERD.
4712         (#56914)
4713         
4714 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
4715
4716         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
4717         in the right value of initial_emission to
4718         gtk_widget_set_style_internal (#57091)
4719
4720 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
4721
4722         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
4723         Make compile.
4724
4725         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
4726         with calling gtk_widget_set_style_internal() with
4727         the old style, not the new style. (#56989)
4728
4729 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
4730
4731         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
4732           gtk/gtkwidget.c:
4733         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
4734         not GTK_WIDGET_GET_ANCESTOR ... see 
4735         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
4736         Indicate the best practice in the docs for gtk_widget_get_toplevel().
4737
4738         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
4739         so GtkPlug can give the correct signals when transforming
4740         from a child to a toplevel.
4741         
4742         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
4743         reparentation correctly.
4744
4745         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
4746         Propagate the previous_toplevel argument down properly.
4747
4748         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
4749         of wrong atr list.
4750
4751         * gtk/gtkplug.[ch]: Add an "embedded" signal.
4752
4753         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
4754         signals.
4755
4756         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
4757         functions gtk_plug_get_id(), gtk_socket_get_id(),
4758         to avoid the user having to worry about realization,
4759         and gdkx.h.
4760
4761         * tests/testsocket.c: Extend to try out the new signals
4762         and gtk_plug/socket_get_id().
4763
4764         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
4765         setting of underline attributes.
4766
4767         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
4768         DestroyNotify events from SubstructureNotifyMask
4769
4770         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
4771         Switch GDK_WINDOW_TYPE (window) as needed.
4772
4773         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
4774         allow creation of toplevel windows as children of
4775         foreign windows.
4776
4777         * gtk/gtkplug.c: Remove hacks involving changing private
4778         fields of GdkWindow.
4779
4780         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
4781         exactly the same signals and notification
4782         be emitted for local embedding as for inter-process
4783         embedding.
4784
4785 2001-07-04  James Henstridge  <james@daa.com.au>
4786
4787         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
4788
4789 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
4790
4791         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
4792         XEMBED embedding add a _XEMBED_INFO property to the
4793         client with version number and a "mapped" flags.
4794         Use the mapped flag instead of the racy MapRequestEvent
4795
4796         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
4797         code to reliably set things (when the child is a passive
4798         embedder participating in the XEMBED protocol) intead
4799         of just being a hack for embedding non-participating
4800         programs. Fix various bugs and race conditions.
4801         
4802         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
4803         work by simply making the GtkSocket the gtk parent
4804         of the GtkPlug. Set a flag in this case and make
4805         the GtkPlug work like a normal container by overriding
4806         methods such as check_resize and "chaining past" GtkWindow
4807         to GtkBin.
4808
4809         * gtk/gtkentry.c (gtk_entry_real_activate)
4810           gtk/gtkmain.c (gtk_propagate_event): 
4811         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
4812         
4813         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
4814         gtk_widget_get_ancestor):
4815         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
4816         might not give the expected result and recommend
4817         an alternative.
4818
4819         * tests/testsocket.c tests/testsocket_child.c
4820         tests/testsocket_common.c tests/Makefile.am: Extended
4821         to test different type of adding plugs to sockets
4822         (local,active,passive), and to test mapping/unmapping
4823         the plug.
4824
4825         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
4826         mark the window as destroyed until after we
4827         called _gdk_windowing_window_destroy().
4828         (_gdk_windowing_window_destroy() may use GDK functions
4829         on the window.)
4830
4831         * gdk/x11/gdkinput.c: Remove the check for finalization - 
4832         devices can be finalized under some circumnstances.
4833  
4834         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
4835         small problem with GDK_TYPE_DEVICE.
4836  
4837 2001-07-02  Havoc Pennington  <hp@pobox.com>
4838
4839         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
4840         use constants not atoms.
4841
4842 2001-07-02  James Henstridge  <james@daa.com.au>
4843
4844         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
4845         PANGO_TYPE_TAB_ARRAY.
4846
4847         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
4848         for PANGO_TYPE_TAB_ARRAY.
4849
4850         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4851         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
4852
4853         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
4854         the file.  Remove Pango types from defs -- they are now defined in
4855         libpango.
4856
4857 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
4858
4859         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
4860
4861         * gtk/gtkobject.c (gtk_object_destroy): invoke
4862         g_object_run_dispose().
4863
4864         * gtk/gtkwindow.c: 
4865         * gtk/gtkwidget.c: 
4866         * gtk/gtkobject.c:
4867         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
4868         method.
4869
4870 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
4871
4872         * gtk/gtktypeutils.c (gtk_type_class): Remove
4873         change check for GTK_TYPE_OBJECT derivation to
4874         G_TYPE_OBJECTS - it's Tim-approved to use this 
4875         for arbitary objects.
4876
4877         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
4878         prefix gtk_container_dequeue_resize_handler().
4879
4880         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
4881         to the hierarachy_changed signal, since you otherwise
4882         have to always keep that around.
4883
4884         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
4885         for extra argument to hierarchy_changed.
4886
4887 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
4888
4889         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
4890         for style to mean "revert to default style"
4891
4892         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
4893           gtk_widget_restore_default_style): Make this functions
4894         deprecated aliases for gtk_widget_set_style (widget, NULL).
4895
4896         * gtk/gtkwidget.[ch]: Remove:
4897            gtk_widget_set_default_style ()
4898            gtk_widget_push_style ()
4899            gtk_widget_pop_style ()
4900         These functions interact are overriden by RC files, and
4901         thus virtually useless, and complicated.
4902
4903 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
4904
4905         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
4906         most of the previous global variables in gtkrc.c. This is
4907         in preparation for multi-head, since each screen can
4908         have different GtkSettings and RC information.
4909
4910         * gtk/gtkrc.[ch]: 
4911
4912         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
4913         GtkSettings parameter to GtkRcStyle::parse.
4914
4915         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
4916         Add two new settings gtk-theme-name, gtk-key-theme-name,
4917         for RC files that are loaded by name after reading
4918         the default RC files.
4919         
4920         * gtk/gtkrc.c: Allow priorities for styles, as wll as
4921         bindings.
4922
4923         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
4924         and use it by default for RC files loaded via 
4925         gtk-theme-name, gtk-key-theme-name.
4926
4927         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
4928         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
4929         tests/testgtkrc: Require pathnames to be absolute.
4930
4931         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
4932         the source when parsing, since the operation of looking up a
4933         pixmap from an RC file depends on the parsing context.
4934
4935         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
4936         reset RC styles on all widgets when files are reparsed.
4937
4938         * tests/testgtk.c (create_rc_file) 
4939           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
4940         Simplify, now that gtk_rc_reparse_all() resets styles on
4941         all widgets itself.
4942
4943         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
4944         return value.
4945
4946         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
4947         GtkSettings argument.
4948
4949         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
4950         gtk_settings_get_global().
4951
4952         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
4953         to get the appropriate GtkSettings for a widget. (For now,
4954         just gets the default GtkSetttings.) 
4955
4956         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
4957           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
4958         changes.
4959
4960         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
4961         getting a style for a path without actually having a widget.
4962         (Allows using a style for a subpart of a widget, for
4963         example.)
4964
4965         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
4966         the RC files to be reloaded for just one GtkSettings
4967         (not sure how useful this really is.)
4968
4969         * gtk/gtkrc.h: Deprecate
4970         gtk_rc_add_widget_name/widget_class/class_style
4971
4972 2001-06-30  Alex Larsson  <alexl@redhat.com>
4973
4974         * gdk/linux-fb/gdkinput-none.c:
4975         * gdk/linux-fb/gdkinput.c:
4976         * gdk/linux-fb/gdkinputprivate.h:
4977         Convert GdkDevice to a GObject.
4978
4979         * linux-fb/gdkprivate-fb.h:
4980         * linux-fb/gdkvisual-fb.c:
4981         Convert GdkVisual to a GObject.
4982
4983 2001-06-29  Alex Larsson  <alexl@redhat.com>
4984
4985         * gdk/gdkvisual.h:
4986         * gdk/gdkcolor.c:
4987         * gdk/x11/gdkx.h:
4988         * gdk/x11/gdkvisual-x11.c:
4989         Convert GdkVisual to a GObject.
4990
4991         * gdk/gdkinput.h:
4992         * gdk/gdkevents.c:
4993         * gdk/x11/gdkinputprivate.h:
4994         * gdk/x11/gdkinput-gxi.c:
4995         * gdk/x11/gdkinput-none.c:
4996         * gdk/x11/gdkinput-x11.c:
4997         * gdk/x11/gdkinput-xfree.c:
4998         * gdk/x11/gdkinput.c:
4999         Convert GdkDevice to a GObject.
5000
5001 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
5002
5003         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
5004         to just plain new, fixing the number of columns, and column types
5005         at creation time.
5006
5007         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
5008
5009         * gtk/gtkcellrenderertext.c
5010         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
5011         height to a specific font.
5012
5013         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
5014
5015         * tests/*c: change to work with new store models.
5016
5017 2001-06-29  Havoc Pennington  <hp@redhat.com>
5018
5019        * Throughout: fixes to compile with G_DISABLE_COMPAT
5020         (s/g_signal_connectc/g_signal_connect/,
5021         s/g_signal_newc/g_signal_new/,
5022         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
5023
5024 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
5025
5026         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
5027         add path argument to selection callbacks.
5028
5029 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
5030
5031         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
5032         walk through a model in a depth first manner, with the option to
5033         break out.
5034
5035 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
5036
5037         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
5038         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
5039         column and follow it when draged, rather than a location in the
5040         view. "expander_column" property and drawing functions changed
5041         accordingly.  Fixes bug #55942.
5042
5043         (gtk_tree_view_{set,get}_expander_column): Now works with a
5044         GtkTreeViewColumn* instead of int.
5045
5046 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
5047
5048         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
5049
5050 2001-06-28  Havoc Pennington  <hp@pobox.com>
5051
5052         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
5053         image data to the screen, using a server grab to avoid race
5054         conditions.
5055
5056         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
5057         check for NULL return from gtk_image_new_from_stock(), it never
5058         returns NULL.
5059         (gtk_item_factory_create_item): fix bug where we parsed the stock
5060         ID as an inline pixbuf
5061
5062         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
5063
5064         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
5065         support (should be using binding set here)
5066
5067         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
5068         support (should be using binding set here)
5069
5070         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
5071         support
5072
5073         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
5074
5075         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
5076
5077         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
5078
5079         * gtk/gtkimcontextsimple.c
5080         (gtk_im_context_simple_filter_keypress): keypad
5081
5082         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
5083
5084         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
5085
5086         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
5087
5088         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
5089         should be binding-setted)
5090
5091         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
5092
5093         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
5094
5095         * gtk/gtkcalendar.c: numeric keypad fixes
5096
5097         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
5098         support
5099
5100         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
5101         screwup
5102
5103         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
5104         clip the render area to the drawable's clip region in advance,
5105         so we don't get data from the server that we don't need.
5106
5107         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
5108         check return value of gdk_pixbuf_get_from_drawable(), fall back 
5109         to bilevel alpha if we can't get the pixbuf to composite against.
5110
5111         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
5112
5113         * gdk/gdkimage.c (gdk_image_get_colormap): add
5114         gdk_image_set_colormap, gdk_image_get_colormap
5115
5116         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
5117         take a region of the image, instead of converting the entire
5118         image.
5119
5120         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
5121         keybinding signal. Add default bindings for it. Add default
5122         handler for show_help that shows the tooltip for the widget.
5123
5124         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
5125         "close" keybinding signal, remove key press handler.
5126
5127         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
5128         it's not our usual practice to leave a deprecated function around
5129         with a runtime warning, plus we don't want it to appear in docs,
5130         plus if we make them yellow no one will want to change them
5131         anyhow.
5132
5133 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
5134
5135         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
5136         GTK_WIDGET_REALIZE() for resize queueing.
5137
5138         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
5139         GTK_WIDGET_REALIZE() for post event delivery destruction upon
5140         GDK_DESTROY.
5141         
5142         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
5143         sompensate for former (pre-2.0) connect_after() facility.
5144         (gtk_widget_send_expose): 
5145         (gtk_widget_event): assert the widget is realized, since event delivery
5146         to non-realized widgets is essentially a bug. event handlers should
5147         be able to unconditionally rely on widget->window (unless they
5148         emit events on their own which can trigger widget destruction).
5149         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
5150         logic. event delivery happens as follows:
5151         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
5152         b) if !was_handled in (a) and the widget is still realized, emit event-
5153            specific signal (RUN_LAST handler). returns was_handled.
5154         c) emission of GtkWidget::event-after for notification if the widget is
5155            still realized (regardless of was_handled from previous stages, no
5156            class handler). no return value.
5157         d) was_handled gets passed on to caller, to determine further
5158            propagation. if the widget got unrealized meanwhile, was_handled
5159            is returned as TRUE.
5160
5161         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
5162         gdk_event_get_coords().
5163
5164 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
5165
5166         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
5167         age 0, binary age 0. depend on glib 1.3.7.
5168
5169         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
5170
5171         * gtk/gtkmenubar.c: same here.
5172         
5173         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
5174
5175         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
5176
5177         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
5178         
5179         * gtk/gtkmenubar.c (add_to_window): likewise.
5180         
5181         * gtk/gtktextbtree.c: and here...
5182         
5183         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
5184         
5185         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
5186         
5187         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
5188         
5189         * gtk/gtktreeviewcolumn.c:
5190         (_gtk_tree_view_column_set_tree_view): yet again.
5191
5192         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
5193         signal connections without g_signal_connect_data().
5194         
5195         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
5196         demo of the matter.
5197         
5198         * demos/testpixbuf.c (main): running out of equality phrases for the
5199         ChangeLog, but had to adapt connections here as well.
5200         
5201         * demos/testanimation.c (progressive_timeout): and for the fun of it,
5202         tackled this the same way.
5203         
5204         * tests/testtext.c (create_view): ok, it's becoming a pain at this
5205         point, but had enough enery for one more fix.
5206
5207         * tests/testtreecolumns.c (main): stand up man, do your work!
5208
5209         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
5210         fix, either that's been all of it or CVS gtk is broken yet again.
5211         
5212 2001-06-29  James Henstridge  <james@daa.com.au>
5213
5214         The following changes correspond to bug #56812
5215
5216         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
5217         code for GdkDevice.
5218
5219         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
5220         GdkCursor.
5221
5222 2001-06-19  Havoc Pennington  <hp@pobox.com>
5223
5224         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
5225         for mapping a window without fooling with stacking order, but
5226         updating the "withdrawn" flag
5227
5228         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
5229         filtering as soon as possible, moving move resize and wmspec_check
5230         handling after the event filter.  Make default filter apply to all
5231         events, not just those with no GdkWindow wrapped around the X
5232         window. Fix a FIXME about how the window could be a pixmap using 
5233         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
5234
5235         Also, be robust against events not on a known GdkWindow.
5236
5237         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
5238         gdk_x11_ungrab_server): export reference-counted server grabs, so
5239         other people can grab server over a GDK function that also does
5240         so.
5241
5242 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
5243
5244         * gtk/gtktreeviewcolumn.c
5245         (gtk_tree_view_column_pack_start_cell_renderer): New function to
5246         reflect that you can (hypothetically) pack cell renderers into a
5247         column.
5248         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
5249         (gtk_tree_view_column_cell_is_visible): Move more functionality to
5250         the column.
5251         (gtk_tree_view_column_cell_can_focus): Move more functionality to
5252         the column.
5253
5254         * gtk/gtktreeview.c: Move to use new column-packing code.
5255         (gtk_tree_view_real_expand_row): remove totally braindead code.
5256         (gtk_tree_view_real_collapse_row): ditto.
5257
5258 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
5259
5260         * gtk/gtktreeviewcolumn.c: Fix a typo.
5261         
5262 2001-06-26  Joel Becker  <jlbec@evilplan.org>
5263
5264         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
5265           at the end of the file
5266
5267 2001-06-26  Havoc Pennington  <hp@redhat.com>
5268
5269         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
5270
5271 2001-06-26  Havoc Pennington  <hp@redhat.com>
5272
5273         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
5274         property
5275
5276 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
5277
5278         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
5279         stupid missing statement
5280
5281         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
5282         private function for ATK.  It notifies you of how many _visible_
5283         children are deleted when a node is deleted.  Should be used by
5284         atk only.
5285
5286 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
5287
5288         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
5289         Use new pango_context_get_metrics() to fix problems
5290         with font lists in descriptions. (#56184, reported by
5291         Jonas Borgström)
5292
5293 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
5294
5295         * gtk/gtkiconfactory.c:
5296         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
5297         item factory so inlined pixbufs actually work.
5298
5299 2001-06-25  Havoc Pennington  <hp@redhat.com>
5300
5301         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
5302         s/RESIZEABLE/RESIZABLE/
5303
5304         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
5305
5306 2001-06-25  Alexander Larsson  <alexl@redhat.com>
5307
5308         * configure.in:
5309         Added --enable-fbmanager. This is some experimental code
5310         that lets several GtkFB apps coordinate their access to the
5311         framebuffer.
5312         
5313         * acconfig.h:
5314         Added ENABLE_FB_MANAGER.
5315
5316         * gdk/linux-fb/Makefile.am:
5317         Added gdkfbmanager and gdkfbswitch.
5318
5319         * gdk/linux-fb/gdkkeyboard-fb.c:
5320         * gdk/linux-fb/gdkmouse-fb.c:
5321         * gdk/linux-fb/gdkprivate-fb.h:
5322         Split device init and open so that
5323         they can be opened and closed while switched
5324         away.
5325
5326         * gdk/linux-fb/gdkmain-fb.c:
5327         Add the basic manager communication.
5328
5329         * gdk/linux-fb/gdkrender-fb.c:
5330         Don't update to the shadow fb if we're
5331         blocked by the fb manager.
5332
5333 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
5334
5335         * docs/Changes-2.0.txt: Add note about child property
5336         changes.
5337
5338 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
5339
5340         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
5341         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
5342
5343         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
5344         with un'reffing wrong list reported by Jeff Franks.
5345
5346         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
5347
5348         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
5349         for the default icon. Remove inline XPM.
5350
5351         * gtk/gtkstock.h gtk/gtkiconfactory.c:
5352         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
5353         is used for GTK_STOCK_DND, but it is a bit too small.)
5354
5355         * gtk/stock-icons/stock_dnd_multiple.png
5356         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
5357
5358         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
5359         TRUE when starting a drag. In other cases, we are
5360         just observing. (#52995)
5361
5362         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
5363         function to set the icon for a drag from a GdkPixbuf
5364         or stock ID.
5365
5366         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
5367         Likewise, for drag sources.
5368
5369         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
5370         (Now should be done using the stock system.)
5371
5372 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
5373
5374         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
5375         Removed - didn't work and not particularly useful anyways
5376         if it did. 
5377
5378 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
5379
5380         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
5381         introduced last night that was making things decidedly not work.
5382
5383         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
5384         so that we have getter/setter pairing everywhere it makes
5385         sense. (#55767)
5386
5387         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
5388         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
5389         deprecated compat macro. (#55516)
5390
5391         * gtk/gtklabel.[ch]: Add functions
5392         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
5393         gtk_label_set_label(), which mirror the property API for GtkLabel.
5394         Make gtk_label_get_attributes() only reflect the attributes
5395         set by gtk_label_set_attributes.
5396
5397         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
5398         from gtk_notebook_set_page().
5399
5400 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
5401
5402         * configure.in: Fix tests for XShm.h.
5403
5404         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
5405         gdk_image_new() by use of goto, properly use g_object_unref().
5406
5407 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
5408
5409         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
5410         calls, as GdkImage is an object. these should be g_obejct_unref()
5411         instead but that won't work because of the g_error() statement
5412         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
5413         to spot these places.
5414
5415 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
5416
5417         * modules/input/gtkimcontextxim.c: Fixup some problems with 
5418         text length handling in error cases.
5419
5420         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
5421         a bit to make test actually warn on attempt to allocation
5422         a negative size. (#56101, Matthias Clasen)
5423
5424 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
5425
5426         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
5427         noticed by Brian Cameron.
5428         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
5429         Cameron.
5430
5431 2001-06-22  Hans Breuer  <hans@breuer.org>
5432
5433         * gdk/gdk.def : updated externals
5434
5435         * gdk/win32/gdkdrawable-win32.c : corrected some casts
5436         in GDK_NOTEs
5437
5438         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
5439         to translate coordinates to the internal > 16 bit system
5440         Try to handle WM_WINDOWPOSCHANGED to get better performance for
5441         when moving/resizing
5442
5443         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
5444         and gdk_keymap_get_direction (). The latter is untested for
5445         the RTL case
5446
5447         * gtk/gtk.def : updated externals
5448
5449         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
5450         from pango_language_from_string (), not an already freed pointer
5451
5452         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
5453         binary (-kb) to be useable on windoze
5454  
5455 2001-06-21  Alexander Larsson  <alexl@redhat.com>
5456
5457         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
5458         Update to new PangoLanguage changes.
5459         
5460         * gtk/gtkwindow-decorate.c:
5461         * gtk/gtkwindow.[ch]:
5462         Added setting argument to gtk_window_set_has_frame ()
5463         
5464 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
5465
5466         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
5467         the case without XKB properly.
5468
5469         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
5470         unused gtk_rc_auto_parse variable.
5471
5472         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
5473         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
5474         longer needed with GdkPixbuf.
5475
5476         * gtk/gtkrc.c (_gtk_rc_init): Make private.
5477
5478 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
5479
5480         * gtk/gtkentry.h: Mark deprecated functions with
5481         GTK_DISABLE_DEPRECATED.
5482
5483 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
5484
5485         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
5486
5487         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
5488
5489         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
5490           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
5491           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
5492           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
5493           to recent changes in Pango.
5494
5495         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
5496           to test whether the basic engine honors them.
5497
5498 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
5499
5500         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
5501         gtk_container_child_get_property().
5502
5503 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
5504
5505         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
5506         (gtk_tree_view_move_cursor_page_up_down): implement.
5507
5508 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
5509
5510         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
5511         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
5512         don't use automatic fixed size buffer for printf-ing floats, doubles
5513         can expand to really _huge_ strings, use g_strdup_printf() instead.
5514
5515 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
5516
5517         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
5518         construct property in 1.2 and still needs to be.
5519
5520         * gtk/gtkwidget.c: "composite_child" is not a settable property.
5521
5522 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
5523
5524         * gtk/gtkliststore.c (gtk_list_store_clear): 
5525         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
5526         clear a model.
5527
5528 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
5529
5530         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
5531
5532         * gtk/Makefile.am:
5533         * gtk/gtk.h: disabled GtkPacker compilation.
5534
5535         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
5536
5537         * gtk/gtknotebook.c:
5538         * gtk/gtktable.c:
5539         * gtk/gtkbox.c: ported this over to child properties.
5540
5541         * gtk/gtksettings.c: fetch class properties via
5542         g_object_class_list_properties().
5543
5544         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
5545         child arg interface. use gobjectnotifyqueue.c for child property
5546         notification.
5547
5548         * gtk/gtkwidget.[hc]: provide necessary means for container child
5549         properties, i.e. ::child_notify signal,
5550         gtk_widget_freeze_child_notify(),
5551         gtk_widget_child_notify(),
5552         gtk_widget_thaw_child_notify().
5553
5554         * tests/testgtk.c: removed inferior property handling code, for
5555         property editing, a generic module should be used, and GLE
5556         coincidentally fullfills that purpose.
5557
5558         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
5559         needs to be adapted to g_object_class_list_properties() before this
5560         builds again.
5561
5562 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
5563
5564         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
5565         test if a node is expanded.
5566
5567 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
5568
5569         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
5570         where collapsing a selected row would result in the cursor/anchor
5571         getting screwed up.
5572
5573 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
5574
5575         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
5576         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
5577         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
5578         Now I can really reorder/sort all Store widgets.  treesorttest
5579         seems to just work now.
5580         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
5581         testtreesort worked through a big coincidence all this time.
5582         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
5583         code.
5584         * tests/testtreecolumns.c: Big 'ol warning at the top letting
5585         people know that this code should never ever ever be copied.
5586
5587 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
5588
5589         * gtk/gtkwindow.h: Fixed a small typo, it should be
5590         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
5591         on line 134.
5592
5593 2001-06-14  Havoc Pennington  <hp@redhat.com>
5594
5595         Docs fixups, and:
5596         
5597         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
5598         GTK_DISABLE_DEPRECATED
5599
5600 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
5601
5602         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
5603         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
5604         finish it off tonight, though it basically works now when it's a
5605         list.  Also, I have a sinking feeling neither GtkTreeStore or
5606         GtkListStore actually resort when adding a new item.  I'll look
5607         into it.
5608
5609 2001-06-14  Havoc Pennington  <hp@redhat.com>
5610
5611         * demos/gtk-demo/main.c (load_file): fix bug identified by
5612         warnings I just added to gtktextbuffer
5613
5614 2001-06-14  Havoc Pennington  <hp@redhat.com>
5615
5616         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
5617
5618         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
5619
5620         * gtk/gtktextbtree.c: don't leak node data all over the place.
5621
5622         * demos/gtk-demo/main.c (main): create fontify tags for the right
5623         buffer
5624
5625         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
5626         to mention tags in the same table can't have the same name,
5627         suggested by Skip Montanaro
5628
5629 2001-06-11  Havoc Pennington  <hp@redhat.com>
5630
5631         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
5632         for trying to add two tags with same name to the tag table
5633
5634         * demos/gtk-demo/main.c (main): fix colors ;-)
5635
5636 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
5637
5638         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
5639         that allows grouping together multiple windows so that grabs
5640         within that set of windows only affect those windows.
5641
5642         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
5643         signal for notification when a widget becomes shadowed
5644         by a grab or is no longer shadowed by a grab.
5645
5646         * gtk/gtkwidget.c (gtk_widget_propagate_state)
5647           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
5648         insenstive widgets to maintain a grab.
5649
5650 2001-06-14  Alexander Larsson  <alexl@redhat.com>
5651
5652         * docs/README.linux-fb:
5653         Add some example config files that can be used with the URW fonts.
5654         
5655         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
5656         Set up the color ramps for DirectColor mode.
5657
5658 2001-06-11  Havoc Pennington  <hp@redhat.com>
5659
5660         * Release 1.3.6
5661          
5662 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
5663
5664         * gdk/linux-fb/gdkwindow-fb.c:
5665         Unify shaped window code and make it repaint the area that used
5666         to be part of the shape, but isn't anymore.
5667
5668 2001-06-11  Havoc Pennington  <hp@redhat.com>
5669
5670         * NEWS: Updates
5671
5672         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
5673
5674         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
5675         
5676 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
5677
5678         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
5679         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
5680         passes zero instead, so do we.
5681         
5682 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
5683
5684         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
5685         Deep copy dash_list too.
5686         (_gdk_fb_gc_new): Set default cap_style before
5687         setting values.
5688
5689 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
5690
5691         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
5692         gdk_keymap_get_direction): New functions.
5693
5694 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
5695
5696         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
5697         gtk_tree_model_get_flags by adding a second flag for atk.
5698
5699         * gtk/gtktreemodel.c: make cursor behavior interact better with
5700         mouse presses.
5701
5702 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
5703
5704         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
5705         expand_row/collapse_row to be 2 signals each -- test_expand_row
5706         and row_expanded as well as test_collapse_row and row_collapsed.
5707
5708 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
5709
5710         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
5711         signal name to be changed instead of selection_changed.
5712
5713 2001-06-08  Havoc Pennington  <hp@redhat.com>
5714
5715         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
5716         "scroll_offset" property for notification when the layout offsets
5717         may have changed
5718         (gtk_entry_adjust_scroll): add notify for scroll_offset
5719         (gtk_entry_layout_index_to_text_index): function to compensate for
5720         preedit string when doing coordinate stuff on the entry's layout
5721         (gtk_entry_text_index_to_layout_index): inverse function
5722         (gtk_entry_get_layout_offsets): hook to get current position of
5723         the layout      
5724         (gtk_entry_get_layout): hook to get the layout itself.
5725
5726         * gtk/gtklabel.c (gtk_label_get_layout): new function
5727
5728 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
5729
5730         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
5731         keybinding.
5732         (gtk_tree_view_focus): Fix merge conflict.
5733
5734 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
5735
5736         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
5737         clean up cursor handling.
5738
5739 2001-06-08  Havoc Pennington  <hp@redhat.com>
5740
5741         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
5742         function
5743
5744         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
5745         this function
5746
5747 2001-06-08  Alex Larsson  <alexl@redhat.com>
5748
5749         * gtk/gtkcompat.h.in:
5750         Added compat macros for all old GTK_TYPE_GDK_xxx types.
5751         Fixes bug #52892
5752
5753 2001-06-08  Havoc Pennington  <hp@redhat.com>
5754         
5755         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
5756         parent still
5757
5758 2001-06-08  Havoc Pennington  <hp@redhat.com>
5759
5760         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
5761         don't call g_list funcs on GSList
5762
5763         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
5764         gtk_container_focus(), since some widgets have focusable locations
5765         which are not other widgets. These widgets should not have to be 
5766         containers just to manage the focus. For example, GtkHSV is
5767         currently a container for no good reason. Also, this cleans
5768         up the "if (is_container && is_sensitive && is_drawable)
5769         container_focus ()" mess in widget implementations.
5770
5771         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
5772         function, and have it just call gtk_widget_child_focus().
5773
5774         * gtk/gtkhsv.c: derive from widget not container
5775         
5776         Throughout: fix to reflect GtkContainer::focus change
5777         
5778 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
5779
5780         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
5781         range.  Fix bug #55921
5782
5783         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
5784         (#55920).
5785
5786 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
5787
5788         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
5789         and gdk_keymap_get_current_direction().
5790
5791         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
5792           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
5793         the current locked group, use it to set the keymap
5794         direction.
5795
5796         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
5797         to determine whether we draw a split cursor or use
5798         a jumping cursor based on the current direction.
5799
5800         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
5801         Obey the split cursor setting. 
5802
5803 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
5804
5805         * gtk/gtkimmulticontext.c (activate_cb): Only activate
5806         when toggling on, not when toggling off... (#55906)
5807
5808 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
5809
5810         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
5811         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
5812         in docs. (#55812, Vitaly Tishkov)
5813
5814 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
5815
5816         * demos/gtk-demo/main.c (create_tree): Changed signal name from
5817         selection_changed to changed in signal connection to GtkTreeSelection,
5818         also used g_signal_connectc since GtkTreeSelection is now a GObject.
5819
5820 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
5821
5822         * gtk/gtktreeselection.c: Now it's a GObject instead of a
5823         GtkObject.  The GtkTreeSelection::selection_changed signal is now
5824         the GtkTreeSelection::changed signal.
5825
5826         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
5827         object.
5828
5829         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
5830         object.
5831
5832 2001-06-07  Havoc Pennington  <hp@redhat.com>
5833
5834         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
5835
5836 2001-06-07  Havoc Pennington  <hp@redhat.com>
5837         
5838         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
5839         (not tested yet because with absolute path to srcdir I can't build
5840         atk, but it was broken anyway so this may help) 
5841
5842 2001-06-07  Havoc Pennington  <hp@redhat.com>
5843
5844         * configure.in: output m4macros/Makefile
5845         
5846 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
5847
5848         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
5849         buttons.  Fixes #55460 reported by matthiasc@poet.de.
5850
5851 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
5852
5853         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
5854         expansion/collapsing so it only happens in one place.
5855         (gtk_tree_view_real_expand_row): ditto.
5856
5857 2001-06-07  Havoc Pennington  <hp@redhat.com>
5858
5859         * tests/Makefile.am: add missing -I flag
5860
5861         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
5862
5863         * configure.in: use pkg-config to see if GModule is
5864         supported; fix to properly turn on included loaders 
5865         when GModule isn't supported; don't use AC_CHECK_LIB 
5866         when libs are not installed yet
5867
5868         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
5869
5870         * Makefile.am (SUBDIRS): add m4macros subdir
5871
5872         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
5873         dependencies also.
5874
5875 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
5876
5877         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
5878         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
5879
5880 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
5881
5882         * gtk/gtktreeview.c
5883         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
5884         bindings to expand and collapse rows.
5885         (gtk_tree_view_real_select_cursor_parent): New key binding.
5886         (gtk_tree_view_real_toggle_cursor_row): New key binding.
5887
5888         * gtk/gtkmarshal.list: new
5889         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
5890
5891 2001-06-06  Havoc Pennington  <hp@redhat.com>
5892
5893         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
5894
5895         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
5896         Down to move visually rather than logically, since it confuses 
5897         people. Add -/+ and Ctrl--/+ bindings for logical movement.
5898
5899 2001-06-06  Alex Larsson  <alexl@redhat.com>
5900
5901         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
5902         Fix up error messages.
5903
5904 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
5905
5906         * gtk/gtktooltips.h: Include gtkwidget.h 
5907         (#55798, Karl Nelson)
5908
5909         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
5910         a valid latin-1 character. (Marc Lehmann, #35467)
5911
5912         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
5913         (Marc Lehmann, #35467)
5914         
5915 2001-06-05  Alex Larsson  <alexl@redhat.com>
5916
5917         * demos/gtk-demo/appwindow.c (do_appwindow):
5918         Don't swap the order of the args to gtk_widget_destroyed.
5919
5920         * tests/testgtk.c (destroy_properties):
5921         Don't crash when the properties window is destroyed.
5922
5923         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
5924         Use with_mnemonics to handle the case of stock items with
5925         underscores in them.
5926
5927 2001-06-05  Havoc Pennington  <hp@redhat.com>
5928
5929         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
5930         gtk_text_iter_reorder
5931
5932 2001-06-05  Havoc Pennington  <hp@redhat.com>
5933
5934         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
5935
5936 2001-06-05  Havoc Pennington  <hp@redhat.com>
5937
5938         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
5939         to the range that was set
5940
5941         * gtk/gtkrange.c: add value_changed signal, primarily 
5942         intended for use with GtkScale
5943         (gtk_range_set_increments): new function
5944         (gtk_range_set_range): new function with weird name
5945         (gtk_range_set_value): new function
5946         (gtk_range_get_value): new function
5947
5948         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
5949         from gtk_spin_button_get_value_as_float(). Compat #define
5950         added for get_value_as_float.
5951
5952         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
5953
5954         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
5955
5956 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
5957
5958         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
5959
5960 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
5961
5962         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
5963
5964         * tests/testgtk.c (create_tooltips): Remove usage of
5965         gtk_widget_set().
5966
5967 2001-06-05  Havoc Pennington  <hp@redhat.com>
5968
5969         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
5970
5971         Applying patch from Jeff Franks, with function docs added.
5972         
5973         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
5974         remove call to set_mnemonic_widget, change docs a bit.  
5975
5976         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
5977         new function
5978
5979         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
5980         new function
5981
5982         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
5983
5984         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
5985         function
5986         (gtk_radio_button_new_with_mnemonic_from_widget): new function
5987
5988         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
5989         new function
5990
5991         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
5992         function        
5993
5994         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
5995         auto-selection of mnemonic widget.
5996
5997 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
5998
5999         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
6000         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
6001         (gtk_tree_view_column_set_min_width): ditto.
6002
6003 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
6004
6005         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
6006         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
6007
6008 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
6009
6010         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
6011         gtk_clist_thaw().
6012
6013 2001-06-04  Havoc Pennington  <hp@pobox.com>
6014
6015         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
6016 r       eleases for buttons 6, 7
6017
6018 2001-06-04  Havoc Pennington  <hp@redhat.com>
6019
6020         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
6021         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
6022         #55562
6023
6024 2001-06-04  Havoc Pennington  <hp@redhat.com>
6025
6026         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
6027         where text_view->layout == NULL by assuming its size is 0, 
6028         i.e. same as if we haven't done any reflow. Reported by 
6029         Hidetoshi Tajima #55448 
6030
6031 2001-06-04  Havoc Pennington  <hp@redhat.com>
6032
6033         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
6034         and 7 for scroll left/right, from Thomas Broyer
6035
6036 2001-05-10  Havoc Pennington  <hp@redhat.com>
6037
6038         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
6039         we need to parse the xsetting as if it were an RC file string.
6040
6041         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
6042         value of palette from settings, not from static variable
6043
6044         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
6045         xsettings translation table
6046
6047         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
6048         hardcoding the toolbar style conflicts with new customizable 
6049         toolbar style philosophy
6050         (gtk_toolbar_class_init): add settings for default toolbar style;
6051         these are used unless the app specifically forces a toolbar style
6052
6053         * gtk/gtksettings.c (settings_install_property_parser): only
6054         return at the start if we warn and parser == NULL
6055
6056         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
6057         palette changed handler so we don't notify dead color selections
6058
6059         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
6060         xthickness/ythickness of 0 or 1 properly 
6061         (gtk_default_draw_resize_grip): clear the background behind the
6062         resize grips, and align to bottom right if we square the 
6063         area to be drawn.
6064
6065         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
6066         statusbar label to 1, so it doesn't make toplevels resize oddly
6067         (gtk_statusbar_size_request): add grip size to request
6068         (gtk_statusbar_size_allocate): hack so the hbox still works with 
6069         the grip size in the request
6070
6071         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
6072         bug where showing all on a toplevel makes the toolbar 
6073         button text appear despite the toolbar mode
6074
6075         * gtk/gtkmenubar.c: add internal padding style property
6076
6077         * gtk/gtktoolbar.c: Add internal padding style property; add
6078         shadow type style property
6079
6080         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
6081         state; and put Container::border_width outside the frame
6082
6083         * gtk/gtktextview.c: don't draw focus rectangle if we're in
6084         interior focus mode, we just use blinking cursor
6085
6086 2001-06-04  Havoc Pennington  <hp@redhat.com>
6087
6088         * configure.in: Make gdk-pixbuf have same version number as GTK
6089
6090 2001-06-04  Havoc Pennington  <hp@redhat.com>
6091
6092         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
6093         digits greater than 6. If there actually are limits (which there
6094         likely aren't), should clamp to them not warn.
6095         (gtk_spin_button_new_with_range): don't take log of 0
6096         (gtk_spin_button_size_request): use digits to compute size
6097         request, rather than step increment.
6098
6099         * tests/testgtk.c (create_spins): test larger values of digits
6100         
6101         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
6102         font on map not expose, so we don't get weirdness during scrolling
6103
6104 2001-06-04  Havoc Pennington  <hp@redhat.com>
6105
6106         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
6107         Sam Solon, bug #54577, update value even if not drawable.
6108
6109 2001-06-04  Havoc Pennington  <hp@redhat.com>
6110
6111         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
6112         SCROLL_LEFT, reported by Thomas Broyer.
6113
6114 2001-06-04  Havoc Pennington  <hp@redhat.com>
6115
6116         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
6117         Process updates immediately, to prevent funny lag effect
6118         when scrolling, at some mild potential efficiency cost.
6119
6120 2001-06-04  Havoc Pennington  <hp@redhat.com>
6121
6122         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
6123         slider on the click.
6124
6125 2001-06-03  Havoc Pennington  <hp@pobox.com>
6126
6127         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
6128         hscale/vscale details, so we can use it for scrollbar as well.
6129
6130         * tests/testgtk.c (reformat_value): honor digits from GtkScale
6131
6132         * gtk/gtkenums.h (GtkTroughType): Remove this enum
6133         (GtkScrollType): add START and END from GtkTroughType
6134
6135         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
6136         its x/y arguments
6137
6138         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
6139         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
6140         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
6141         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
6142         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
6143
6144         Notable changes in the process:
6145          
6146         - stepper_size style property is the height for vertical 
6147           ranges, width for horizontal; the other dimension matches
6148           the trough size
6149         - add ability to do NeXT-style steppers (and several other styles
6150           that don't make any sense)
6151         - added min_slider_length, fixed_slider_length properties to
6152           GtkScrollbar
6153         - cleaned some private (or at least useless) functions out of
6154           gtkscale.h    
6155         - moved bindings to GtkScale from subclasses, even arrow keys,
6156           since blind users don't know scale orientation.
6157         - change move_slider action signal to use new GtkScrollType,
6158           remove GtkTroughType argument
6159         - digits rounds the values a range will input to the given 
6160           number of decimals, but will not try to force adjustment 
6161           values set by other controllers. That is, we no longer
6162           modify adjustment->value inside a value_changed handler.
6163         - added getters for GtkScale setters
6164         - middle-click begins a slider drag
6165         
6166 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
6167
6168         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
6169         getting the focus code to work.
6170         (gtk_tree_view_class_init): Add a bunch of keybindings.
6171
6172         * gtk/gtktreeviewcolumn.c
6173         (gtk_tree_view_column_set_cell_data_func):
6174         s/GtkCellDataFunc/GtkTreeCellDataFunc.
6175         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
6176         of "properties_changed" to help justify the death of the latter
6177         signal. (-:
6178
6179         * tests/testtreefocus.c (main): Let some columns be focussable to
6180         test focus better.
6181
6182 2001-06-01  Havoc Pennington  <hp@redhat.com>
6183
6184         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
6185         
6186         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
6187         overwrite in overwrite mode if we already deleted the selection
6188         and replaced it with new text.  
6189
6190         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
6191         selection to an empty range, clear the clipboard if we owned it.
6192         (gtk_label_set_selectable): give up selection if we become
6193         unselectable.
6194         (gtk_label_state_changed): override state changed to unselect text
6195         when insensitive
6196         (get_text_callback): add paranoia check that indexes aren't
6197         outside of label->text
6198         (gtk_label_select_region): make -1 for start_offset mean "end of
6199         label," for consistency with GtkEditable
6200
6201         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
6202         GTK_DIALOG_NO_SEPARATOR flag
6203
6204 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
6205
6206         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
6207         notifications on non-existant "enable_arrow_keys".
6208         (#53753, Skip Montanaro)
6209
6210 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
6211
6212         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
6213         GDK_TYPE_RECTANGLE.
6214
6215         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
6216         of allocation argument be GDK_TYPE_RECTANGLE.
6217
6218 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
6219
6220         * gtk/gtkoptionmenu.c: Account for the fact that the border
6221         width is _outside_ the window. (Fixes #54585, bug found
6222         by Bastien Nocera.)
6223
6224 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
6225
6226         * gtk/gtksettings.c (gtk_settings_get_property): Validate
6227         value from GDK settings against parameter spec.
6228
6229         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
6230         to temporary values and use g_value_transform(), since
6231         thinking that GValue was going to be easy or efficient
6232         to use was, of course, a mistake.
6233
6234         * gtk/gtksettings.c: Add cursor blink setting.
6235         
6236         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
6237
6238         * gtk/gtkentry.c: Add cursor blinking.
6239
6240         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
6241         cursor blink global settings.
6242
6243         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
6244         for :text_position in places where it is missing.
6245
6246 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
6247
6248         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
6249
6250 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
6251
6252         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
6253         not pkg-config. (#51032)
6254
6255         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
6256         (fixes #51952, James Henstridge)
6257         
6258 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
6259
6260         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
6261         Rename to the more correct gtk-go-up.
6262
6263         * gtk/stock-icons/stock_menu_sort_ascending.png:
6264         Added new file.
6265         
6266         * gtk/stock-icons/stock_menu_sort_descending.png:
6267         Changed to show descending instead of ascending.
6268
6269         * gtk/gtkiconfactory.c:
6270         Added menu size icon to sort ascending.
6271
6272         * gtk/stock-icons/Makefile.am:
6273         Added stock_menu_sort_ascending.png.
6274         
6275         * gtk/gtkseparatormenuitem.c:
6276         Use correct typenames.
6277
6278 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
6279
6280         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
6281         gulong as in GSignal.
6282
6283 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
6284
6285         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
6286         instances of GtkCellRenderer in code (all but dnd icon code).
6287         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
6288         there, and I can do multiple Cells per column.
6289
6290         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
6291
6292         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
6293         when model was unreffed prior to removing the row reference.
6294
6295 2001-05-25  Havoc Pennington  <hp@redhat.com>
6296
6297         * gtk/gtkiconfactory.c: fix so that default icons are created if 
6298         you call gtk_stock_list_ids()
6299
6300         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
6301         in list
6302
6303 2001-05-25  Havoc Pennington  <hp@redhat.com>
6304
6305         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
6306         set can render without falling back to missing image icon
6307
6308         * gtk/gtktextview.c (gtk_text_view_size_request): request full
6309         size of text, instead of random values
6310
6311         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
6312         size of tree view, instead of random values
6313
6314         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
6315         image in an appropriate size
6316
6317         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
6318         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
6319
6320         Throughout: fix GTK_STOCK_BUTTON_ instances
6321         
6322         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
6323         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
6324         Add a bunch of new stock items/icons
6325
6326         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
6327         new function, convenience for inserting columns with a data func
6328
6329         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
6330         (_gtk_icon_factory_list_ids): use list of all factories to
6331         generate a list of all known IDs
6332
6333         * gtk/gtkstock.c (gtk_stock_list_ids): replace
6334         gtk_stock_list_items() with a function that returns all IDs known
6335         including those for GtkIconFactory.
6336
6337 2001-05-25  Hans Breuer  <hans@breuer.org>
6338
6339         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
6340         work -> check boxes and radio buttons are drawn now, even on win9x.
6341         Improved line settings a bit, still no clue how to get really dotted
6342         lines on win9x, on NT it's PS_ALTERNATE.
6343
6344         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
6345         GDK_HINT_MIN_SIZE as well
6346
6347         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
6348
6349         * gtk/gtk.def : updated
6350
6351         * gtk/gtktreeprivate.h : change column_drop_func to be a function
6352         pointer not a function pointer pointer
6353
6354         * tests/testdnd.c : include <stdlib.h> for putenv prototype
6355
6356         * tests/testsocket.c : made it compile on win32 again
6357
6358         * tests/makefile.msc : one more test-app uses prop-editor.obj
6359
6360 2001-05-22  Havoc Pennington  <hp@pobox.com>
6361
6362         * gtk/gtkbin.c (gtk_bin_get_child): New function
6363
6364 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
6365
6366         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
6367         to ignore when doing compose processing.
6368
6369 2001-05-22  Joe Shaw  <joe@ximian.com>
6370
6371         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
6372         Simplify as suggested by Havoc. Just get the last iter and work
6373         backward to the tag instead of getting a line and working back from
6374         there. Fixes passing in an invalid offset to
6375         iter_init_from_byte_offset().
6376
6377 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
6378
6379         * gtk/gtktreeview*.h: 
6380         * gtk/gtkcell*.h:
6381         * gtk/gtk*store.h:
6382         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
6383         macros to all objects.
6384
6385 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
6386
6387         * gtk/gtkcellrenderertext.c
6388         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
6389         with very large (TM) amounts of text.  May be moved to
6390         GtkCellRenderer in the future, though I'm not sure it wants to be
6391         this accessible.
6392
6393         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
6394         More sanity brought to this class.  I like it.
6395
6396         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
6397         case.  Kids, don't try this at home.
6398
6399         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
6400         convenience function.
6401
6402         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
6403
6404 2001-05-21  Alexander Larsson  <alexl@redhat.com>
6405
6406         * gtk/gtkfontsel.c:
6407         Added properties. Based on patch by Lee Mallabone.
6408
6409         * gtk/gtkruler.c:
6410         * gtk/gtkhruler.c:
6411         * gtk/gtkvruler.c:
6412         * gtk/gtktext.c:
6413         * gtk/gtktextview.c:
6414         Converted GtkArg to GParam. Based on patches by John Margaglione.
6415
6416         * tests/Makefile.am:
6417         * tests/testtext.c:
6418         Add a property editor to testtext.
6419         
6420 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
6421
6422         * gtk/gtk{h,v,}paned.c: Only show the separator if 
6423
6424         * configure.in: Fixed reversed conditional causing all image
6425         libraries to be linked in.
6426
6427 2001-05-21  Joe Shaw  <joe@ximian.com>
6428
6429         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
6430         that top_y needs to be >= 0.
6431
6432 2001-05-11  Havoc Pennington  <hp@pobox.com>
6433         
6434         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
6435         losing connection to the X server.
6436
6437 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
6438
6439         * configure.in: Start checks for X from pangox/pangoxft
6440         CFLAGS to avoid duplicate libraries.
6441
6442         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
6443
6444         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
6445         to include gobject.
6446         
6447 2001-05-18  Alexander Larsson  <alexl@redhat.com>
6448
6449         * gtk/gtkspinbutton.c:
6450         Convert GtkArgs to GParams. Based on patch by John Margaglione.
6451         Also do size request reasonable for MAXDOUBLE. Previously it printed
6452         the limits to a buffer and overran it. Instead do it using log10() and
6453         limit the width to 10 digits.
6454         
6455         * gtk/gtkwidget.c (gtk_widget_get_property):
6456         Correctly handle setting the parent property to NULL.
6457
6458 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
6459
6460         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
6461         style attributes even if the widget isn't realized.
6462
6463         * demos/gtk-demo/main.c: Use a slightly smaller font.
6464
6465 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
6466
6467         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
6468         This is something that only a widget writer would ever want
6469         to change.
6470
6471         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
6472         gtk_signal_emit_by_name().
6473
6474         * gtk/gtkviewport.c: Fix some warnings.
6475
6476         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
6477         allowing the requisitions of multiple widgets to be grouped
6478         together.
6479
6480         * tests/testgtk.c: Add GtkSizeGroup test
6481
6482         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
6483
6484         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
6485         warnings.
6486
6487         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
6488
6489 2001-04-28  Martin Baulig  <baulig@suse.de>
6490
6491         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
6492         to gtk_image_menu_item_set_icon() and made it work if there's already
6493         an image.
6494         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
6495         (gtk_image_menu_item_new_with_label): New function.
6496
6497 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
6498
6499         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
6500         highlighting code!!!!  The result is okay so long as you don't try
6501         to stress it.  It also highlights a bug in the TextView so it's in
6502         an unproportional font right now until it's fixed.
6503
6504         *demos/gtk-demo/*.c: Clean up code a bit to make it
6505         ugly-parser(TM) friendly. (-:
6506
6507 2001-05-17  Joe Shaw  <joe@ximian.com>
6508
6509         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
6510         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
6511         if it is only partially onscreen.
6512
6513 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
6514
6515         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
6516         not by characters.
6517
6518         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
6519         are not zero or one; that is, when graphemes of multiple characters
6520         are involved.
6521
6522         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
6523         FIXME.
6524
6525 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
6526         
6527         * gtk/gtkbbox.c:
6528         Add properties, based on patch by Lee Mallabone.
6529
6530         * gtk/gtknotebook.c:
6531         * gtk/gtktoolbar.c:
6532         Convert from GtkArg to GParam, based on patch by John Margaglione.
6533         
6534         * gtk/gtkhscale.c:
6535         * gtk/gtkvscale.c:
6536         * gtk/gtkhscrollbar.c:
6537         * gtk/gtkvscrollbar.c:
6538         * gtk/gtkrange.c:
6539         Move adjustment property to GtkRange.
6540
6541         * gtk/gtklabel.c:
6542         Setup mnemonics on property changes
6543
6544         * gtk/gtkwidget.c (gtk_widget_get_property):
6545         GdkExtensionMode is an enum, not a flag. Set it with
6546         g_value_set_enum ().
6547
6548         * tests/prop-editor.c:
6549         Better propery editor.
6550
6551         * tests/testgtk.c:
6552         Add new property test. Pass zero to the property editor to
6553         get properties from all derived types.
6554         
6555 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
6556
6557         * autogen.sh (have_automake): Require libtool-1.4,
6558         automake-1.4p1.
6559
6560         * acinclude.m4: Remove libtool macros.
6561
6562         * gdk-pixbuf/Makefile.am: Add dependencies to loade
6563         modules.
6564
6565         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
6566         for libgdk.
6567
6568         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
6569         libgdk.la for libgtk.
6570
6571         * modules/input/Makefile.am: Make modules have full
6572         dependencies.
6573
6574 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
6575
6576         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
6577         #54699 where paths weren't being checked for correctness.
6578
6579 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
6580
6581         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
6582         in any order you wan, whether or not the column is added to the
6583         tree, or the tree is realized.  Yay!
6584
6585         * gtk/gtktreeviewcolumn.c
6586         (gtk_tree_view_column_setup_sort_column_id_callback): handle
6587         sorting columns a lot saner
6588
6589         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
6590         new function to actually set wether or not a column is
6591         reorderable.
6592
6593         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
6594         if we have 'em.
6595
6596         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
6597         Fix nasty bug where we were showing the button just before
6598         realizing it.  As a result, the parent window was
6599         tree_view->window instead of tree_view->priv->header_window.
6600
6601         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
6602         to let you easily reorder a list or tree.
6603
6604 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
6605
6606         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
6607         from args to properties.
6608
6609 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
6610
6611         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
6612         from args to properties. (#51957)
6613
6614         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
6615         calls to after ->set_property call.
6616
6617 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
6618
6619         * tests/prop-editor.c: Block against redundant changes.
6620
6621         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
6622         properties.
6623
6624 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
6625
6626         * gdk/gdkpixmap.h: Remove creative formatting.
6627
6628 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
6629
6630         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
6631         property API. (#51669)
6632
6633         * gtk/gtkscale.c: Patch from John Margaglione converting to
6634         property API. (#51891)
6635
6636         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
6637         to property API. (#50985)
6638
6639 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
6640
6641         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
6642         buffering state across expose event, so we still call end_paint().
6643
6644 2001-05-11  Alexander Larsson  <alexl@redhat.com>
6645
6646         * gtk/gtkhsv.c (paint_triangle):
6647         Expose the ring in the triangle at the correct place when
6648         exposing just a part of the triangle.
6649
6650         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
6651         Return FALSE, or window focusing will not work.
6652
6653 2001-05-11  Havoc Pennington  <hp@pobox.com>
6654
6655         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
6656         #54144
6657
6658         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
6659         bug #54330
6660
6661 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
6662
6663         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
6664         propagate exposes to NULL child.
6665
6666         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
6667         against not having one of the scrollbars.
6668
6669         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
6670         we don't keep a mnemonic window if we have no mnemonic installed.
6671
6672 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
6673
6674         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
6675         it has the _important_ side effect of initializing a class.
6676
6677 2001-05-10  Alexander Larsson  <alexl@redhat.com>
6678
6679         * gdk/linux-fb/gdkprivate-fb.h:
6680         Make sure you can compile out the implementation/wrapper assert
6681         macros.
6682
6683         * gdk/linux-fb/gdkdrawable-fb2.c:
6684         Check implementation/wrappers, initialize type for pixmap dummys.
6685
6686         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
6687         Hide the cursor if reading from the screen.
6688
6689         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
6690         Fix sign bug in tiling code.
6691
6692         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
6693         Handle background pixmaps.
6694
6695 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
6696
6697         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
6698         function to let user control where columns are dragged.
6699
6700         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
6701         Escape is pressed.
6702
6703 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
6704
6705         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
6706         "columns_changed" signal.
6707         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
6708         motion code to draw arrows to the side if indicator is outside the
6709         widget.
6710         (gtk_tree_view_map_expanded_rows): Implement.
6711
6712 2001-05-07  Alexander Larsson  <alexl@redhat.com>
6713
6714         * demos/testpixbuf-save.c: 
6715         * demos/testpixbuf-drawable.c:
6716         Include gdkfb.h on linux-fb.
6717
6718 2001-05-07  Alexander Larsson  <alexl@redhat.com>
6719
6720         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
6721         New function for getting toplevel window at position.
6722         (gdk_drag_find_window): Use get_toplevel_window () instead
6723         of gdk_window_get_pointer(). (gdk_drag_status): Use
6724         correct context for getting window.
6725
6726         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
6727         g_strdup the atom name.
6728
6729         * gdk/linux-fb/gdkwindow-fb.c:
6730         Costmetic fix.
6731
6732         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
6733         Add code for changing cursor on linux-fb backend (same as
6734         win32).
6735
6736 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
6737
6738         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
6739         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
6740         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
6741         report was not for the development branch of GTK+, but it applies
6742         anyways).
6743
6744 2001-05-04  Havoc Pennington  <hp@redhat.com>
6745
6746         * configure.in: fix some shell typos
6747
6748         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
6749
6750         * gtk/gtkimage.c: handle animations
6751
6752         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
6753         border_width * 2, not just border_width
6754
6755         * gtk/gtkscale.c: add "format_value" signal to allow people
6756         to override the way values are drawn.
6757         (gtk_scale_get_value_size): fix width/height mistake,
6758         and compute size from actual displayed text, not 
6759         from made-up text.
6760
6761         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
6762         signal registration
6763
6764         * tests/testtext.c: Add "Remove all tags" menu item for testing
6765
6766         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
6767
6768         * demos/gtk-demo/main.c (main): add hack so we can find modules
6769         without installing gtk
6770
6771         * demos/gtk-demo/textview.c (insert_text): demo font scaling
6772
6773         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
6774         factor)
6775         (gtk_cell_renderer_text_set_property): remove some bogus
6776         g_object_notify
6777
6778         * gtk/gtktexttag.c: add "scale" property which is a font scaling
6779         factor
6780
6781         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
6782         to layout
6783
6784         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
6785         gtk_text_iter_is_first
6786
6787 2001-01-06  Hans Breuer  <hans@breuer.org>
6788
6789         * gdk/gdk.def : updated exports
6790
6791         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
6792         gdk won't compile anymore
6793  
6794         * gdk/win32/gdkevents-win32.c : initialize ret_val when
6795         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
6796         Improved gdk_flush () to not only do pending drawing operations
6797         but also process all currently pending events. This should make
6798         the behaviour more similar to the X11 version.  
6799
6800         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
6801         option needs to be set even if there is no GDK_GC_BACKGROUND.
6802         (gdk_win32_hdc_get) : use predraw_set_background () independent
6803         of value_mask. This allows to draw dashed lines leaving the original
6804         background intact.
6805
6806         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
6807         after processing, because we can't reuse it as the X11 version does.
6808
6809         * gtk/gtk.def : updated exports
6810
6811         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
6812         would like to get rid of this file again, and use straight
6813         makefile.msc again, as the other Gtk+ subdirs do)
6814
6815         * test/makefile.msc (new file) : build the test apps here
6816
6817 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
6818
6819         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
6820         strike-through setting
6821         (gdk_draw_layout_line_with_colors): Render strike-through
6822
6823 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
6824
6825         * Release 1.3.5
6826
6827         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
6828
6829         * NEWS: Updated
6830
6831         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
6832         Makefile breakage.
6833
6834 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
6835
6836         * demos/gtk-demo/images.c (progressive_timeout): Fix
6837         typo in filename.
6838
6839         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
6840         out FIXME warning; just too annoying.
6841
6842 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
6843
6844         * gdk/linux-fb/gdkcolor-fb.c:
6845         Better error messages.
6846
6847         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
6848         Initialize abs_x and abs_y.
6849         
6850         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
6851         Correct handling of stipple offset.
6852
6853         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
6854         Treat directcolor framebuffers as truecolor.
6855         
6856 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
6857
6858         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
6859         dependency on Atk for accessibility support.
6860
6861         * configure.in **/Makefile.am: Major reworking of substituted
6862         variables for CFLAGS/LIBS to make a lot more sane and 
6863         keep the the compile/link lines a bit shorter.
6864
6865         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
6866
6867 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
6868
6869         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
6870         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
6871         use _gtk_boolean_handled_accumulator.
6872
6873 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
6874
6875         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
6876         to fix things so clicking inside selection leaves cursor
6877         at point where clicked. (#50324)
6878
6879         * gtk/gtksettings.c (gtk_settings_class_init): Restore
6880         sane value for default double click time.
6881
6882         * tests/testtext.c (test_init): Really path to input modules.
6883
6884 2001-05-03  Sven Neumann  <sven@convergence.de>
6885
6886         * demos/testpixbuf-save.c: include target-specific headers as
6887         done in testpixbuf-drawable.c
6888
6889 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
6890
6891         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
6892         new_text_length appropriately when we run into the 
6893         size limit for the entry. (#53445, reported by Jeff Franks)
6894
6895         * tests/testgtk.c (create_entry): Remove most of the
6896         property toggle buttons. Replace with a "Props" button
6897         that brings up a property editor.
6898
6899         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
6900         Split the property editor code out for reuse, improve.
6901
6902 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
6903
6904         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
6905         trap errors around calls to XSetInputFocus since we have
6906         no way of knowing reliably whether we are viewable or
6907         not. (#53947)
6908
6909 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
6910
6911         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
6912         fix bug in dropping columns.  Moving columns now basically works
6913         modula some fine tuning.
6914
6915 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
6916
6917         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
6918         autoscroll support.  It mostly works, but could use some fine
6919         tuning.
6920         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
6921         Actually move the column.
6922
6923 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
6924
6925         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
6926           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
6927           New default theme! A slighly improved version of the 2.0 Raleigh
6928           theme, with Windows-esque focus/drawing default. 
6929           (GtkWidget::interior_focus defaults to TRUE.)
6930
6931         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
6932
6933 2001-04-30  Havoc Pennington  <hp@pobox.com>
6934
6935         * tests/testtext.c (line_numbers_expose): fix to work with
6936         gtk_paint_layout change
6937
6938 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
6939
6940         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
6941           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
6942           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
6943           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
6944
6945         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
6946           with GtkWidget::interior_focus = TRUE better.
6947
6948         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
6949         ::default_outside_border for more flexibility.
6950
6951         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
6952         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
6953         change that had to be made with g_object_get.
6954
6955 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
6956
6957         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
6958         (gtk_tree_view_move_column_after): Clean up interface. 
6959
6960 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
6961
6962         * gtk/gtkpacker.h:
6963         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
6964          to gtkenum.h.
6965
6966         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
6967         handled in switch).
6968
6969         * gtk/Makefile.am:
6970         (gtk.defs): generate enum portions with  glib-mkenums.
6971         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
6972         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
6973         
6974         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
6975         addition.
6976
6977         * docs/Changes-2.0.txt: keep a note on signal handlers now
6978         not getting emitted during the emission they were connected within.
6979
6980 2001-04-28  Havoc Pennington  <hp@pobox.com>
6981
6982         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
6983
6984 2001-04-24  Havoc Pennington  <hp@redhat.com>
6985
6986         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
6987         (gtk_text_layout_move_iter_to_next_line): fix these two for
6988         invisible text, lots of other stuff still hosed.
6989
6990         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
6991         new function, replaces the get/set palette stuff. This function 
6992         is intended for use by libgnomeui which should set the hook to a
6993         thing which sets the palette in GConf, and we need the
6994         GConf-to-xsettings proxy which will result in the change being
6995         propagated back to the GTK app.
6996
6997         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
6998         about unusable signals that it may be because the signal has 
6999         parameters.
7000
7001         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
7002         style, otherwise gtkrc.c won't know to create a new GtkStyle for
7003         it.
7004         (gtk_widget_modify_color_component): call
7005         gtk_widget_modify_style() so the rc style will get copied.
7006         (gtk_widget_modify_font): ditto
7007
7008         * gtk/gtkrc.c: make a couple variables static
7009
7010         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
7011         help button by default, since it does nothing
7012
7013         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
7014         around with UI
7015
7016         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
7017         so we can have tooltips
7018
7019         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
7020         can have tooltips
7021
7022         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
7023         GDK_ENABLE_BROKEN, because its memory behavior is completely
7024         hosed.
7025
7026         * gtk/gtknotebook.c: remove key press handler, replace with
7027         binding set, add numeric keypad support
7028
7029         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
7030
7031         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
7032
7033         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
7034         addition to plain Delete
7035
7036         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
7037         GDK_KP_Enter in addition to GDK_Return
7038
7039         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
7040         activate on entry instead of key press
7041         (gtk_font_selection_on_clist_key_press): get
7042         rid of this signal handler, not needed with new font sel.
7043
7044         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
7045         no-longer-needed emit_stop_by_name(), just return TRUE
7046
7047         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
7048         cruft, this widget is no longer focusable.
7049
7050         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
7051         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
7052         move_slider action signal, add binding set for vscale/hscale, in
7053         the process support numeric keypad
7054
7055         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
7056         make GDK_Return and GDK_KP_Enter activate the entry via 
7057         binding set, instead of hardcoded.
7058
7059 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
7060
7061         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
7062         code.  Some documentation added.
7063
7064 2001-04-27  Havoc Pennington  <hp@redhat.com>
7065
7066         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
7067
7068         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
7069
7070         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
7071         line/para separators
7072         (gtk_entry_create_layout): set single paragraph mode on the layout
7073
7074         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
7075         spacing between the image and label; instead, inside a button box 
7076         the button will get extra space that will go there, but if people 
7077         configure button box for 0 chubbiness, then there's no spacing.
7078
7079         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
7080         and min/max size style properties, so people can tune their
7081         chubbiness.
7082
7083         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
7084         functions
7085
7086         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
7087         space_style, and button_relief into style properties, remove
7088         functions for setting them
7089         
7090         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
7091         it back down
7092
7093         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
7094         types from gtk_widget_style_get
7095
7096         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
7097         with a style property.
7098
7099         * gdk/x11/gdkevents-x11.c: namespace the settings
7100
7101         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
7102
7103         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
7104         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
7105         be used. Also, translate doc strings for settings. Also, namespace
7106         the double-click-time property. Also, remove bell properties crap.
7107
7108 2001-04-27  Sven Neumann  <sven@gimp.org>
7109
7110         * Makefile.am: before creating links, check if pkg-config files
7111         exist for the default target. Otherwise link to the pkg-config files
7112         that got installed with this build.
7113
7114 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
7115
7116         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
7117         dragging code.  Revealed some (potential) GdkWindow bugs.
7118
7119         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
7120         _gdk_window_init_position to the end of reparent to fix the case
7121         of reparenting when new_x != old_x and new_y != old_y.
7122
7123 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
7124
7125         * gtk/gtkentry.c (strstr_len): Fix optimization that
7126         was correct for the use here, but completely incorrect
7127         in general.
7128
7129 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
7130
7131         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
7132         until patch adding gtk_window_set_size() is recommitted. 
7133
7134         * **Makefile.am configure.in gdk/x11/gdkim-11.c
7135           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
7136           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
7137           (#10784)
7138
7139 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
7140
7141         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
7142         window == NULL in a number of cases.
7143
7144         * tests/testdnd.c: Set module path for gdk-pixbuf.
7145
7146 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
7147
7148         * gtk/Makefile.am xembed.h: File containing #defines
7149         for XEMBED protocol.
7150
7151         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
7152
7153         - Change protocol from old plug/socket specific protocol
7154           to XEMBED draft
7155         - Various fixes to work with GTK+-2.0
7156
7157         Still quite a bit of work to do here to handle initiation
7158         from the socket side (as specified by XEMBED), to handle
7159         the more advanced features of XEMBED, and to figure out
7160         a good way to handle same-app embedding with less overhead
7161         than using full XEMBED.
7162
7163 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
7164
7165         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
7166         track of whether the toplevel has the focus; only send
7167         focus-in events to the focus widget when the window
7168         actually has the focus.
7169
7170 2001-04-25  Havoc Pennington  <hp@pobox.com>
7171
7172         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
7173         were still in the header
7174
7175 2001-04-24  Alexander Larsson  <alexl@redhat.com>
7176
7177         * gtk/gtkclist.[ch]:
7178         * gtk/gtkctree.c:
7179         When there is a row highlighted for D'n'D it must alse
7180         be painted hightlighted on exposes. Otherwise exposes from
7181         the icon being dragged will mess up the hightlight.
7182
7183         * gtk/gtkfontsel.c:
7184         Don't recenter selected font when exposing the font family
7185         clist. This means you can now actually scroll the font family
7186         list.
7187
7188         * gtk/gtknotebook.c:
7189         Fix focus movement on scrolling tabs that are placed on the left
7190         and right.
7191
7192 2001-04-21  Havoc Pennington  <hp@pobox.com>
7193
7194         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
7195         empty/invisible lines.
7196
7197         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
7198         (gtk_text_iter_set_visible_line_index): new functions to set
7199         indexes excluding invisible text
7200
7201         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
7202         index
7203
7204         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
7205         (gtk_text_iter_get_visible_line_offset): new functions to 
7206         get indexes excluding invisible text
7207
7208         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
7209         bunch of extra padding that served no purpose
7210
7211         * gtk/gtkdialog.c: Make all the spacings configurable via style
7212         properties, for chubbiness configuration in themes
7213
7214         * tests/testtext.c: fix path to the immodules.
7215         
7216 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
7217
7218         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
7219         got munched by #endif.
7220
7221         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
7222
7223         * gtk/gtktreeview.c: Refactored code to clean up a number of
7224         events.
7225
7226         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
7227         values to make consistent with other functions.  Spotted by Jeff
7228         Franks <jcf@tpg.com.au>.
7229
7230         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
7231         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
7232
7233 2001-04-23  Sven Neumann  <sven@gimp.org>
7234
7235         * gtk/Makefile.am
7236         * gtk/gtkplug.c
7237         * gtk/gtksocket.c: on request of Owen, reverted my last change 
7238         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
7239
7240 2001-04-23  Sven Neumann  <sven@gimp.org>
7241
7242         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
7243         compile for non-X11 targets again
7244
7245 2001-04-20  Alexander Larsson  <alexl@redhat.com>
7246
7247         * gtk/gtkcolorsel.[ch]:
7248         API Change. Take GdkColor arguments instead of gdouble *.
7249         Leave the old gtk_color_selection_set_color for compatibility,
7250         but marked deprecated.
7251         Do correct rounding when converting RGB <-> HSV.
7252         
7253         * gtk/gtkcolorseldialog.c:
7254         * tests/testgtk.c:
7255         Use new GtkColorSelection API.
7256
7257         * gtk/gtkhsv.c:
7258         Fix problem selecting colors in triangle when Hue is 330.
7259         Fix some black dots around the HSB triangle.
7260         
7261         * gtk/gtkfilesel.c:
7262         return FALSE from the focus_in_event handler to fix focus problems.
7263
7264 2001-04-18  Havoc Pennington  <hp@redhat.com>
7265
7266         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
7267         set, so keybindings are configurable    
7268         (gtk_window_activate_default): Change to activate the focus widget
7269         instead if there's a focus widget, to be consistent with the
7270         behavior that previously existed in key_press_event
7271
7272 2001-04-18  Havoc Pennington  <hp@redhat.com>
7273
7274         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
7275
7276 2001-04-18  Havoc Pennington  <hp@redhat.com>
7277
7278         Close bug #50615:
7279         
7280         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
7281         the layout
7282
7283         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
7284
7285         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
7286
7287         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
7288         
7289         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
7290         to blue for base, in addition to bg
7291         
7292 2001-04-18  Havoc Pennington  <hp@redhat.com>
7293
7294         * tests/testgtk.c (create_image): allow shrinking the image window
7295         to test that we clip to allocation.
7296
7297         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
7298         #9845
7299
7300         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
7301
7302 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
7303
7304         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
7305         mode on shm segments to 0600. We'll see who complains.
7306
7307         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
7308         _gdk_windowing_window_destroy() AFTER recursing through
7309         children.
7310
7311         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
7312         testsocket_child on X.
7313
7314         * tests/testsocket[_child].c: Fix uses of
7315         gtk_window_get_default_accel_group().
7316
7317         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
7318
7319         * gdk/gdkimage.c: (gdk_image_get):
7320         Deal with the possibility that XGetImage() might return NULL.
7321         Allocate the GdkImagePrivate structure only after XGetImage()
7322         succeeds in order not to dereference a NULL ximage pointer.  This
7323         prevents a core dump when XGetImage() fails - which is unlikely,
7324         but can happen due to race conditions accessing the geometries of
7325         drawables.  An x error will still be triggered, but the gdk image
7326         wrapper at least wont seg fault.
7327         
7328 2001-04-18  Havoc Pennington  <hp@redhat.com>
7329
7330         * gtk/gtkimage.c: fix to properly queue resizes when the image is
7331         set
7332
7333         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
7334         if the insertion point isn't editable
7335
7336         * demos/gtk-demo/images.c: Added a GtkImage demo
7337
7338         * demos/gtk-demo/drawingarea.c: drawing area demo
7339         
7340         * demos/gtk-demo/menus.c (create_menu): cleanups
7341
7342 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
7343
7344         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
7345           gdk/x11/gdkevents-x11.c: Introduce an extra child
7346         of toplevel windows that serves to hold the focus to
7347         avoid events being delivered to embedded windows.
7348
7349         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
7350         some extra variables to clean up code and reduce the
7351         number of casts.
7352
7353         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
7354         guint for 1 bit bit fields, not gboolean.
7355
7356 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
7357
7358         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
7359         not TRUE. (Fixes #52925)
7360
7361 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
7362
7363         * Released 1.3.4
7364
7365         * NEWS: Updated
7366
7367         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
7368         use GTK_TYPE_ENUM.
7369
7370 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
7371
7372         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
7373
7374         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
7375         names to compatibility #defines so docs work.
7376
7377         * gtk/gtkenums.h: Remove GtkMenuFactoryType
7378
7379         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
7380
7381         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
7382
7383         * tests/testgtkrc: No magenta cursors, please.
7384
7385         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
7386
7387         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
7388         
7389 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
7390
7391         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
7392         grabs, since they are no longer necessary.
7393
7394         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
7395         by signal_connect() and call gtk_button_pressed() rather
7396         than signal_connect_after().
7397
7398         * tests/testgtk.c: Restore radio menu items to combos 
7399         since they'll look OK with Raleigh, and it is easier
7400         than finishing the process of removing them that was
7401         started earlier.
7402
7403 2001-04-16  Hans Breuer  <hans@breuer.org>
7404
7405         * gdk/gdk.def :
7406         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
7407
7408         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
7409         we are interested in the functions return value not the function address
7410         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
7411
7412         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
7413
7414 2001-04-14  Hans Breuer  <hans@breuer.org>
7415
7416         * gdk/gdk.def :
7417         * gdk/makefile.msc : updated
7418
7419         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
7420         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
7421         (the testgtk::text backgound pixmap is drawn again)
7422         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
7423         Win32 Pango change
7424         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
7425
7426         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
7427         Not sure if the returned settings have the right unit, because I couldn't
7428         find any docs for the X version ...
7429
7430         * gtk/gtk.def :
7431         * gtk/makefile.msc.in : updated
7432
7433 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
7434
7435         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
7436         wording problems. (Compared to version from Johannes Stezenbach to
7437         check correctness.)
7438
7439 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
7440
7441         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
7442         this to compile.
7443
7444 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
7445
7446         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
7447         not pixbufpos.
7448
7449         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
7450
7451         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
7452         are unsigned insts, therefore use g_value_set_uint.
7453         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
7454
7455 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
7456
7457         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
7458
7459         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
7460         GTK_TYPE_STRING.
7461
7462         * gtk/gtktreeview.c: New functions to allow initial column
7463         dragging work.
7464
7465         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
7466
7467         * tests/testtreefocus.c: give dave some love.
7468
7469         * tests/testtreesort.c: Modify test to check really long samples.
7470
7471 2001-04-11  Alexander Larsson  <alexl@redhat.com>
7472
7473         * gtk-2.0.m4: Pass pkg-config options
7474         before the other args so it works even if
7475         POSIXLY_CORRECT is set.
7476
7477 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
7478
7479         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
7480         0, interface 0).
7481
7482 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
7483
7484         * gtk/gtkcalendar.c (gtk_calendar_button_press):
7485         check for action_func != NULL
7486
7487 2001-04-04  Sven Neumann  <sven@gimp.org>
7488
7489         * tests/testgtk.c (test_init): corrected path to gtk.immodules
7490
7491 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
7492
7493         * Released Gtk+-1.3.3.
7494
7495 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
7496
7497         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
7498
7499 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
7500
7501         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
7502         files to/from source dir. (if we don't stay in builddir, we
7503         can't reach make-inline-pixbuf.
7504
7505         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
7506         deps.
7507
7508         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
7509         ages 0).
7510
7511 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
7512
7513         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
7514         moved to the GtkTreeSortable interface.
7515
7516         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
7517         Make more efficient (fixes #50262).
7518
7519 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
7520
7521         * NEWS: Updated.
7522
7523         * configure.in: Remove support for uninstalled glib.
7524
7525         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
7526         so as not to stop emission.
7527
7528         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
7529         is no longer supported.
7530
7531         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
7532         into tests, change build order to build modules before
7533         gtk/.
7534
7535         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
7536         to here.
7537
7538 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
7539
7540         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
7541         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
7542         GPatternSpec. this is actually unlikely to cause breakage in
7543         third-party apps since except for gle, pretty much ever caller
7544         passes NULL here.
7545
7546         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
7547
7548         * *.c: use g_pattern_*() API.
7549
7550         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
7551
7552         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
7553         directions aren't passed in.
7554
7555         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
7556         functionality to be usable from gtkstyle.c as well, give precedence
7557         for conversion to user-supplied parsers.
7558         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
7559
7560         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
7561         _gtk_settings_parse_convert() for rcporperty value conversion.
7562
7563 2001-04-03  Alexander Larsson  <alexl@redhat.com>
7564
7565         * gdk/linux-fb/gdkevents-fb.c:
7566         Add empty gdk_setting_get().
7567
7568 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
7569
7570         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
7571         variable names.
7572         
7573         * gtk/makeenums.pl: touch this so enum files get remade.
7574
7575 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
7576
7577         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
7578         work again when not sorted.
7579
7580         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
7581         and "expand_row" signal, closing bug 52578.
7582
7583         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
7584         support.
7585
7586         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
7587         support.
7588
7589 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
7590
7591         * gdk/gdkevents.h: Add GdkEventSetting event for notification
7592         of changes to system settings, gdk_setting_get() to retrieve
7593         a single system setting.
7594
7595         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
7596         to the draft XSETTINGS mechanism.
7597
7598         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
7599         XSETTINGS.
7600
7601         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
7602         of GDK settings changes to the GtkSettings object.
7603
7604         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
7605         double-click-timeout property to GDK.
7606
7607         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
7608         Define GDK boxed types here.
7609
7610         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
7611         gdk/gdkenumtypes.[ch] for enum definitions.
7612
7613         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
7614         * gtk/gtk-boxed.defs: Comment out GDK types
7615         * gtk/gtktypeutils.h: Remove GDK types
7616         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
7617
7618 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
7619
7620         * Applied patch from Ron Steinke to add signal accumulators
7621         so that signals with the convention 'TRUE return means
7622         handled' stop emission on a TRUE return.
7623
7624         * gtk/gtkmain.[ch]: Add private accumulator 
7625         _gtk_boolean_handled_accumulator, used throughout GTK+.
7626         
7627         * gtk/gtkspinbutton.c: Add accumulator for ::output.
7628
7629         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
7630         
7631         * gtk/gtkwidget.c: Add accumulators for event signals,
7632         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
7633         for ::mnemonic-activate.
7634
7635         * gtk/gtkwindow.c: Add accumulator for ::frame_event
7636
7637 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
7638
7639         * gtk/gtkwidget.c: Add missing include.
7640
7641 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
7642
7643         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
7644         marshaller.
7645
7646         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
7647         "changed" signal to "range_changed".
7648
7649         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
7650         removing a tree from one model would remove all trees from that
7651         model.
7652         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
7653         changed signal instead.
7654
7655 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
7656
7657         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
7658         chaining up to parent impl, since we have a INPUT_ONLY
7659         window.
7660
7661         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
7662         foreground color for the cursor.
7663
7664 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
7665
7666         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
7667         param spec when caching property values, since we unref it
7668         later when we free the style.
7669
7670         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
7671         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
7672
7673 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
7674
7675         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
7676         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
7677         stupidity.
7678
7679 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
7680
7681         [ First pass at adding style properties. Still needs some definite
7682         fine-tuning. ]
7683
7684         * gtk/gtkbutton.c: Add ::default_spacing style property.
7685          
7686         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
7687         ::indicator_spacing style properties.
7688
7689         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
7690         style properties.
7691
7692         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
7693         rather than a normal property.
7694
7695         * gtk/gtkwidget.c: Add an ::interior_focus style property to
7696         draw focus inside buttons, in the Windows/Java Metal/etc. style.
7697
7698         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
7699         Honor ::interior_focus.
7700         
7701         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
7702         TRUE.
7703
7704         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
7705         Add ::slider_width, ::trough_border, ::stepper_size,
7706         ::stepper_spacing style properties.
7707
7708         * gtk/gtkscale.[ch] Add ::slider-length style property.
7709
7710 2001-04-02 Alexander Larsson   <alexl@redhat.com>
7711
7712         * gdk/linux-fb/gdkwindow-fb.c:
7713         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
7714         warnings that were spewed on startup.
7715
7716         * gtk/gtkwindow-decorate.c:
7717         gtk_window_reposition -> _gtk_window_reposition
7718
7719 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
7720
7721         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
7722         Add boxed type for GtkRequistion. Use it for ::size-request.
7723
7724         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
7725         Add a new GtkBorder structure useful for geometry properties
7726         for widgets. Add corresponding GTK_TYPE_BORDER.
7727         
7728         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
7729         Support automatic parser selection like
7730         gtk_settings_install_property_parser().
7731
7732         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
7733         functionality for use by gtk_widget_class_install_style_property.
7734         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
7735
7736 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
7737
7738         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
7739         g_param_spec_unichar(). 
7740
7741 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
7742
7743         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
7744         _NET window managers.
7745
7746         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
7747
7748 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
7749
7750         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
7751         bad needs to be nuked, not just deprecated.
7752
7753         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
7754         gtk_widget_popup().
7755
7756         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
7757         
7758         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
7759         widget.
7760         
7761         * docs/Changes-2.0.txt: updates.
7762         
7763 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
7764
7765         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
7766         for (i = 0; i < 100; i ++)
7767           g_print ("I will confirm it compile before committing\n");
7768
7769 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
7770
7771         * gtk/gtktreestore.c: Initial work on implementing the
7772         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
7773
7774 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
7775
7776         * gtk/gtkwidget.c: fixed a bunch of notifications, added
7777         reference counts around emissions where the widget is used afterwards.
7778         added freeze/thaws around multiple properties being notified.
7779         (_gtk_widget_get_aux_info): cleanups.
7780         
7781         * gtk/gtksettings.c (gtk_settings_install_property): provide
7782         default parsing functions for gdkcolor, enums and flags.
7783
7784         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
7785         applied by owen.
7786         backed out gtk_window_get_location(), gtk_window_set_location(),
7787         gtk_window_get_size() and gtk_window_set_size(), these
7788         have to be sorted out wrg x/y/width/height/default_with/default_height
7789         properties.
7790         kept a flag in GtkWindowGeometryInfo to handle user
7791         resetting default sizes.
7792         cleaned up ZVT comments.
7793         bunch of assorted bug fixes, notification fixes.
7794         (_gtk_window_reposition): make this a really internal function.
7795         
7796         * gtk/testgtk.c: fixups.
7797         
7798 2001-03-31  Hans Breuer  <hans@breuer.org>
7799
7800         * config.h.win32.in : disable USE_MMX for msvc build cause
7801         the assembler doesn't fit and is out of my scope. Disable
7802         USE_GMODULE for msvc build as wel. The right way to share
7803         binaries on win32 would be to use libtiff.dll etc. To reduce
7804         installation hassles IMO it's better to include all fileformats
7805         builtin to gdk-pixbuf
7806
7807         * gdk-pixbuf/makefile.msc : new file
7808
7809         * gdk/gdk.def : updated
7810
7811         * gdk/win32/gdkevents-win32.c : don't erase the background if
7812         .no_bg is set. It improves the scrolling (e.g. of testgtk main
7813         buttons
7814         * gdk/win32/gdkgeometry-win32.c : added comment about the above
7815
7816         * gdk/win32/gdkwindow-win32.c : added three new functions like
7817         the X version. Only one is implemented, because the other two
7818         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
7819         be default behaviour on win32 anyway ...
7820
7821         * gtk/gtk.def : updated
7822
7823         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
7824         from where it was built and add an additional rule to automagically
7825         build gtkmarshal.[hc]
7826
7827         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
7828         before array access for the current entry isn't finished
7829
7830         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
7831         use g_return_val_if_fail
7832
7833         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
7834         for the static array, but let the compiler calculate it. It
7835         makes me wonder if gcc isn't capable to catch bugs like this ...
7836
7837 2001-03-31  James Henstridge  <james@daa.com.au>
7838
7839         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
7840         constant "-1" in the aux info structure.
7841
7842 2001-03-30  Alexander Larsson  <alexl@redhat.com>
7843
7844         * gtk/gtkbutton.c (gtk_button_get_property):
7845         * gtk/gtklabel.c:
7846         Remove leaks.
7847         
7848         * gtk/gtkcontainer.c:
7849         * gtk/gtkhscale.c:
7850         * gtk/gtkhscrollbar.c:
7851         * gtk/gtklayout.c:
7852         * gtk/gtkmisc.c:
7853         * gtk/gtkprogress.c:
7854         * gtk/gtkprogressbar.c:
7855         * gtk/gtkrange.c:
7856         * gtk/gtktable.c:
7857         * gtk/gtkviewport.c:
7858         * gtk/gtkvscale.c:
7859         * gtk/gtkvscrollbar.c:
7860         * gtk/gtkwidget.c:
7861         Property patches, based on patches from John Margaglione and Lee Mallabone.
7862
7863 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
7864
7865         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
7866         adjustment. Cleaned redundant preconditions (spin != NULL). Added
7867         inline API function docs.
7868         (gtk_spin_button_new_with_range): New convenience constructor.
7869         (gtk_spin_button_set_increments): New adjustment helper.
7870         (gtk_spin_button_set_range): New adjustment helper.
7871
7872         * gtk/testgtk.c : added test of the new convenince constructor and
7873         value_changed signals.
7874
7875 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
7876
7877         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
7878         listen to the reorder signal.
7879
7880 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
7881
7882         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
7883         to get the aux info structure fo the widget.
7884
7885         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
7886         above function.
7887
7888         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
7889
7890         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
7891         to get the size of the window manager frame, basically the same
7892         code that gdk_window_get_root_origin() had
7893         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
7894
7895         * gtk/gtkwindow.c (gtk_window_set_default_size): use
7896         gdk_window_resize() if the window is realized and resizeable
7897
7898         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
7899         typo so that setting gravity works
7900
7901         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
7902         allocation if auto_shrink is on, even if the default size
7903         has not changed.
7904
7905         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
7906         g_return_if_fail
7907
7908 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
7909
7910         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
7911         reordering/sorting work.  Now pretty much works.
7912
7913         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
7914         reorder mostly work.  Still need to get the parity correct.
7915
7916         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
7917         signal, so I can listen for the sort_column_changed signal so I
7918         can change my "sort_indicator" property.  Cool.
7919
7920 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
7921
7922         [ Patch from Havoc Pennington, hp@redhat.com ]
7923
7924         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
7925         Add functions gdk_window_begin_resize_drag/begin_move_drag
7926         to start resizing or moving a toplevel window. This
7927         is done either using the _NET_WM_MOVERESIZE protocol,
7928         or, if that isn't present, by emulation.
7929
7930         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
7931         to export the above to GTK+-land.
7932
7933         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
7934         
7935         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
7936         Move this function into gdkwindow, since we need it
7937         when implementing fallback resizing.
7938
7939         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
7940         Fix typo when setting gravity.
7941
7942         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
7943         Add an optional (but on by default) resize grip for resizing 
7944         the parent window.
7945
7946 01-03-29  Alexander Larsson  <alexl@redhat.com>
7947
7948         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
7949         Don't return TRUE from the event handler, that blocks all
7950         event signals on the tooltip widget. Now you can press buttons
7951         in toolbars again.
7952
7953 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
7954
7955         * gtk/testtext.c (create_buffer): Add missing NULL on
7956         valist.
7957
7958         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
7959         c-n-p problem with INCONSISTENT property.
7960
7961         [ Patch from Havoc Pennington  <hp@redhat.com> ]
7962
7963         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
7964         hook.
7965
7966         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
7967         signal as a hook for extending the default popup menu
7968
7969         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
7970         use radio menu items for the input method menuitems
7971
7972         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
7973         inserted unicode from Ctrl-Shift-hex input method
7974
7975         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
7976         validatation here, already done at GtkTextBuffer level.
7977
7978         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
7979         popup_menu run action signal and Shift+F10 and Menu keybindings.
7980
7981         * gtk/gtkentry.c: implement a default handler for popup_menu
7982
7983         * gtk/gtktextview.c: implement a default handler for popup_menu
7984
7985         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
7986         from a key event
7987         
7988         * gtk/gtklabel.c: remove "trailer" cruft
7989
7990 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
7991
7992         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
7993         handle reordering of trees.  Seems to mostly work w/ the exception
7994         of the parity flag.
7995
7996         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
7997         signal.
7998
7999 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
8000
8001         * gtk/gtkwidget.h: c++ fixes.
8002
8003 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
8004
8005         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
8006         memory.
8007
8008 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
8009
8010         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
8011         Nils Barth fixing event return values. (#51041)
8012
8013         * gtk/gtkwidget.c: Fix some return values for default
8014         functions.
8015
8016         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
8017         return values for trough_keys functions.
8018
8019         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
8020         value for add_accelerator (shoudl have been a void
8021         return.)
8022
8023         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
8024         Fix return type of EVENT.
8025
8026         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
8027         signal return a boolean.
8028
8029 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
8030
8031         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
8032         reordered signal.
8033
8034         * tests/testtreesort.c (main): fix spelling.
8035
8036 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
8037
8038         * gtk/gtkliststore.c: More work on implementing sortable
8039         interface.
8040
8041 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
8042
8043         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
8044         reference the widgets in the resulting list. (#11821)
8045         This makes this consistent with gtk_container_children.
8046
8047         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
8048         uses of gtk_window_list_toplevels.
8049
8050 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
8051
8052         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
8053         a virtual function to set whether the IM context should use 
8054         the preedit string. (#51922)
8055         
8056 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
8057
8058         * gdk/gdkpango.h: Remove stale FIXME comment.
8059
8060 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
8061
8062         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
8063         Fixed bug that returned NULL if a filename was selected.
8064
8065 2001-03-24  Havoc Pennington  <hp@pobox.com>
8066
8067         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
8068         to contain the word "theme"
8069
8070 2001-03-24  Havoc Pennington  <hp@pobox.com>
8071
8072         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
8073         slower but finer-grained
8074         (gtk_hsv_focus): get initial focus on the ring or triangle 
8075         according to tab direction
8076
8077         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
8078
8079 2001-03-23  Havoc Pennington  <hp@pobox.com>
8080
8081         * gtk/gtkhsv.c: make this somewhat key-navigable
8082
8083         * gtk/gtkfontsel.c: mnemonics
8084
8085         * gtk/gtkgamma.c: mnemonics
8086
8087         * gtk/gtkcolorsel.c: add mnemonics to labels
8088
8089 2001-03-22  Havoc Pennington  <hp@pobox.com>
8090
8091         Applied big patch from Seth Lytle to fix event handler return
8092         values, slightly modified.
8093
8094         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
8095         handled.
8096         (gtk_calendar_key_press): return TRUE for GDK_space triggers
8097         select_day
8098
8099         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
8100         (gtk_clist_button_release): return TRUE if handled
8101
8102         * gtk/gtkcolorsel.c (mouse_release):
8103         (palette_activate): 
8104         (palette_press): 
8105         (palette_new): 
8106         (mouse_press): 
8107         (get_screen_color): 
8108         fixed return type (void to gboolean), return TRUE,
8109         added GTK_SIGNAL_FUNC cast
8110
8111         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
8112         (void to gboolean), and return TRUE
8113         (gtk_combo_button_release): changed return value to TRUE after
8114         gtk_grab_add on combo->popwin
8115
8116         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
8117         collapse or expand
8118
8119         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
8120         button/motion
8121
8122         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
8123         press/release and motion that trigger act
8124
8125         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
8126
8127         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
8128         for GDK_Return
8129         
8130         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
8131         (gtk_list_button_release): return TRUE if selection
8132
8133         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
8134         press
8135
8136         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
8137         (gtk_menu_shell_button_release): chain parent_menu_shell retval
8138
8139         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
8140         nothing triggered
8141         (gtk_notebook_button_release): return TRUE if we do anything
8142
8143         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
8144         (gtk_spin_button_button_release): return TRUE or chained retval
8145
8146         * gtk/gtktext.c (gtk_text_button_press): 
8147         (gtk_text_button_release): return TRUE
8148         (gtk_text_key_press): remove redundant retval code
8149         
8150         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
8151         and sensitive
8152         (gtk_tree_item_subtree_button_click): changed type to gint, and return
8153         TRUE if sensitive
8154
8155         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
8156         return TRUE
8157
8158 2001-03-23  Havoc Pennington  <hp@redhat.com>
8159
8160         * gtk/testgtk.c: fix warnings
8161
8162         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
8163
8164         * gtk/gtktextview.c: fix warnings
8165
8166         * gtk/gtktext.c (find_cursor_at_line): fix warning
8167
8168         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
8169
8170         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
8171         of this function
8172
8173         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
8174         fix warning
8175
8176         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
8177
8178         * gtk/gtkfontsel.c: fix warning
8179
8180         * gtk/gtkcolorsel.c: fix warnings
8181
8182 2001-03-23  Havoc Pennington  <hp@redhat.com>
8183
8184         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
8185
8186         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
8187
8188         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
8189         and deprecated gtk_check_menu_item_set_show_toggle().
8190         
8191         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
8192
8193         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
8194
8195         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
8196
8197 2001-03-23  Havoc Pennington  <hp@redhat.com>
8198
8199         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
8200         some docs
8201
8202 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
8203
8204         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
8205         this.
8206
8207         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
8208         set_cell to set_value
8209
8210         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
8211         set_cell to set_value
8212
8213 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
8214
8215         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
8216         fix braino.
8217         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
8218         support.
8219
8220         * gtk/gtktreeview.c: Addition of initial sortable support.
8221
8222         * gtk/gtktreestore.c: Addition of initial sortable support.
8223
8224         * gtk/gtkliststore.c: Addition of initial sortable support.
8225
8226         * gtk/gtkmarshal.list: yet another marshaller.
8227
8228         * gtk/gtktreedatallist.[ch]: shared code between the store models
8229         for handling sorting headers.
8230
8231 2001-03-22  Havoc Pennington  <hp@redhat.com>
8232
8233         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
8234         (gtk_container_unset_focus_chain): Add ability to override the 
8235         focus chain for a container explicitly
8236
8237 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
8238
8239         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
8240         added PROP_MNEMONIC_WIDGET.
8241
8242         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
8243         (gtk_window_remove_mnemonic): 
8244         (gtk_window_add_mnemonic): fixed assertions.
8245         (gtk_window_activate_mnemonic): constrain modifier checks to those
8246         permitted by gtk_accelerator_get_default_mod_mask().
8247         got rid of gtk_window_get_default_accel_group().
8248
8249         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
8250         activatable widgets either by focussing or a warning.
8251         added a signal accumulator to ::activate_mnemonic which stops the
8252         emission once a handler returned TRUE.
8253
8254 2001-03-22  Havoc Pennington  <hp@pobox.com>
8255
8256         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
8257         the stock item label
8258
8259         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
8260
8261         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
8262
8263         * demos/gtk-demo/*.c: Add mnemonics all over the place
8264
8265         * gtk/gtklabel.h: mark parse_uline deprecated
8266
8267 2001-03-21  Alexander Larsson  <alexl@redhat.com>
8268
8269         * gtk/gtkitemfactory.[ch]:
8270         Add support for stock and normal imagemenuitems.
8271         
8272         * gtk/testgtk.c:
8273         Add some tests for mnemonics, stock toolbars, stock
8274         and image menuitems in itemfactory and gdk_window_scroll.
8275
8276 2001-03-21  Alexander Larsson  <alexl@redhat.com>
8277
8278         * gtk/gtkbutton.[ch]:
8279         * gtk/gtkdialog.c:
8280         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
8281         removed accel_group argument. Renamed gtk_button_new_accel() to
8282         gtk_button_new_with_mnemonic() and removed accel_group argument.
8283
8284         * gtk/gtkcheckbutton.[ch]:
8285         New function gtk_check_button_new_with_mnemonic().
8286
8287         * gtk/gtkentry.c:
8288         Override activate_mnemonic and just grab focus.
8289
8290         * gtk/gtkitemfactory.c:
8291         Don't add menu uline accel group, instead use mnemonics support.
8292
8293         * gtk/gtklabel.[ch]:
8294         New support for mnemonics.
8295
8296         * gtk/gtkmarshal.list:
8297         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
8298
8299         * gtk/gtkmenu.[c]:
8300         * gtkmenushell.c:
8301         Use mnemonics instead of accel groups for uline
8302         support in menu items.
8303         Removed gtk_menu_get_uline_accel_group() and
8304         gtk_menu_ensure_uline_accel_group().
8305
8306         * gtk/gtkmenuitem.c:
8307         Override activate_mnemonic to handle switching between
8308         menu items if there are collisions.
8309         
8310         * gtk/gtknotebook.c:
8311         Connect to activate_mnemonic on the tab_label, so that
8312         activating it switches to that notebook page.
8313
8314         * gtk/gtkwidget.[ch]:
8315         Add activate_mnemonic signal. New function
8316         gtk_widget_activate_mnemonic() to emit it.
8317         Default implementation does activate/grab_focus.
8318
8319         * gtk/gtkwindow.[ch]:
8320         Add support for mnemonics in windows.
8321         New functions:
8322         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
8323         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
8324
8325         * gtk/testgtk.c:
8326         Update to function name changes.
8327         
8328 2001-03-21  Alexander Larsson  <alexl@redhat.com>
8329
8330         * gtk/gtkimagemenuitem.[c]:
8331         Add gtk_image_menu_item_new_from_stock()
8332
8333 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
8334
8335         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
8336         Fix buglet in meeting.
8337
8338 2001-03-19  Havoc Pennington  <hp@redhat.com>
8339
8340         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
8341         add a bunch of accessor functions. This is because we have
8342         reasonable expectations of extending what fields it contains in
8343         the future.
8344
8345         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
8346         changes
8347
8348         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
8349         GtkIconSource   
8350
8351 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
8352
8353         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
8354         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
8355
8356         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
8357           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
8358           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
8359           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
8360         Change float to double everywhere with the exception of 0<->1.0 alignment
8361         and GtkCurve.
8362
8363 2001-03-19  Tor Lillqvist  <tml@iki.fi>
8364
8365         * gdk/win32/gdkdrawable-win32.c
8366         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
8367         output.
8368
8369         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
8370         gdkwin32.h.
8371
8372 2001-03-18  Tor Lillqvist  <tml@iki.fi>
8373
8374         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
8375         print_event_state, print_event): Use preprocessor macro to make
8376         code more compact. Print also GDK_WINDOW_STATE events.
8377         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
8378         
8379         * gtk/gtk.def
8380         * gtk/makefile.mingw.in: Update.
8381
8382         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
8383         to catch also Cygwin.
8384
8385 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
8386
8387         * gtk/gtkspinbutton.[hc]: added rc-style argument
8388         GtkSpinButton::shadow_type.
8389         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
8390         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
8391         rc-style settings.
8392
8393         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
8394
8395         * gtk/gtkwidget.c: quark cleanups.
8396
8397         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
8398         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
8399         to create_rc_style() (we don't do cloning in standard OO sense).
8400         added per rc style properties.
8401         
8402         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
8403         property values and for caching those. some cleanups.
8404         
8405         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
8406         
8407         * gtk/gtksettings.[hc]: new file for global rc-file properties
8408         (at least currently, should get extended to support X properties
8409         and other communication mechanisms).
8410         
8411         * gtk/gtkwidget.[hc]: added style property support:
8412         (gtk_widget_class_install_style_property_parser): install style
8413         property pspec with parser function for rc-file values other
8414         than LONG, DOUBLE or STRING.
8415         (gtk_widget_class_install_style_property): same as above without
8416         parser (parsers are going to be needed quite infrequently).
8417         (gtk_widget_style_get_property): retrive style property value.
8418         (gtk_widget_style_get_valist): same as above with varargs support,
8419         has NOCOPY semantics.
8420         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
8421
8422 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
8423
8424         * demos/gtk-demo/main.c (row_activated_cb): modified to use
8425         "row_activated" signal.
8426
8427         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
8428         stupidity.  Lets actually pass in the row with this signal...
8429
8430 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
8431
8432         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
8433
8434         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
8435
8436         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
8437         everything into the ::destroy function, and freed a lot more.
8438
8439 2001-03-16  Havoc Pennington  <hp@redhat.com>
8440
8441         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
8442         instead of gint16, to avoid overflow issues, since sizes > 16-bit
8443         are now allowed.
8444
8445 2001-03-16  Havoc Pennington  <hp@redhat.com>
8446
8447         * Applied patch from Nils Barth (bug # 51041) to 
8448         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
8449         in various places.
8450
8451 2001-03-15  Havoc Pennington  <hp@redhat.com>
8452         
8453         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
8454         for properties to set on the tag.
8455
8456         * gtk/testtext.c: fixups to reflect create_tag change
8457         
8458         * gtk/gtktexttag.c (gtk_text_tag_set_property):
8459         background/foreground stipple are objects, not boxed.
8460
8461         * demos/gtk-demo/textview.c: intellihancing
8462
8463 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
8464
8465         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
8466         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
8467
8468 2001-03-16  Alexander Larsson  <alexl@redhat.com>
8469
8470         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
8471         Fix sign error with queued region translations.
8472
8473 2001-03-15  HideToshi Tajima  <tajima@happy>
8474
8475         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
8476         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
8477         * gtk/gtkentry.c (update_im_cursor_location): 
8478         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
8479         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
8480         set_cursor_pos to set_cursor_location in GtkInputContext class
8481
8482 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
8483
8484         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
8485         the location of the cell relative to its area.
8486         * gtk/gtkcell*: modified for above change
8487         * gtk/gtktreeview.c: modified for above change.
8488
8489 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
8490
8491         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
8492          (gtk_tree_view_finalize): actually unref the model.  Thanks to
8493         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
8494
8495 2001-03-14  Havoc Pennington  <hp@redhat.com>
8496
8497         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
8498         
8499         * gtk/gtk.h: remove gtkdata.h
8500
8501         * gtk/Makefile.am: remove gtkdata
8502         
8503         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
8504         not "disconnect" on the adjustments.
8505         
8506         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
8507         GtkData
8508
8509         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
8510         not GtkData
8511
8512         * configure.in: handle case where X render exists, but Pango lacks
8513         Xft support.
8514
8515 2001-03-15 Alexander Larsson  <alexl@redhat.com>
8516
8517         * gtk/gtktoolbar.[ch]:
8518         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
8519         to add stock items to toolbars.
8520
8521         * gtk/Makefile.am:
8522         Remove ../gdk/gdkim.h from gdk_headers.
8523
8524 2001-03-15  Sven Neumann  <sven@gimp.org>
8525
8526         * gdk/gdkim.h: removed
8527         
8528         * gdk/gdkprivate.h
8529         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
8530
8531 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
8532
8533         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
8534         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
8535         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
8536         set_cursor_pos() virtual method
8537
8538         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
8539         (gtk_im_context_xim_set_cursor_pos): add implementation for
8540         set_cursor_pos() method
8541
8542         * gtk/gtkentry.c (recompute_idle_func): set current cursor
8543         position to input methods
8544
8545 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
8546
8547         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
8548         code a lot.
8549
8550         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
8551         g_mem_chunk.
8552         (_gtk_tree_data_list_alloc): use g_mem_chunk.
8553         (_gtk_tree_data_list_node_to_value): Fix to switch on
8554         G_TYPE_FUNDAMENTAL.
8555         (_gtk_tree_data_list_value_to_node): Fix to switch on
8556         G_TYPE_FUNDAMENTAL.
8557         (_gtk_tree_data_list_node_copy): Fix to switch on
8558         G_TYPE_FUNDAMENTAL.
8559
8560 2001-03-12  Havoc Pennington  <hp@redhat.com>
8561
8562         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
8563         to convert to new property API. Also, change default_width and
8564         default_height get_property to return 0 as the flag value for
8565         "unset"; -1 is not a valid value for these fields.
8566
8567 2001-03-12  Havoc Pennington  <hp@redhat.com>
8568
8569         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
8570         enum with registration for icon sizes, instead of strings.
8571
8572         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
8573         gtkwidget.c: Fix to reflect GtkIconSize
8574         
8575 2001-03-12  Alexander Larsson  <alexl@redhat.com>
8576
8577         Make GtkFB compile and link.
8578         
8579         * gdk/linux-fb/gdkdrawable-fb2.c:
8580         window->mapped to GDK_WINDOW_IS_MAPPED(). 
8581         
8582         * gdk/linux-fb/gdkwindow-fb.c:
8583         window->mapped to GDK_WINDOW_IS_MAPPED(). 
8584         Added gdk_window_shape_combine_region.
8585         Added assorted placeholders for unimplemented new GdkWindow API calls.
8586
8587 2001-03-12  Alexander Larsson  <alexl@redhat.com>
8588
8589         * gtk/gtkfilesel.c:
8590         Add more test when converting filenames from/to utf-8.
8591         Don't allow entering text in the filename entry which isn't allowed in
8592         a filename. Just beep instead.
8593
8594 2001-03-12  Alexander Larsson  <alexl@redhat.com>
8595
8596         * gtk/gtkclist.c:
8597         Scroll using gdk_window_scroll(). Don't wait for exposes.
8598         Move the column headers in an order that makes them flash less.
8599
8600 2001-03-10  Hans Breuer  <hans@breuer.org>
8601
8602         * gdk/gdk.def : updated
8603
8604         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
8605         to offseting the clip_mask at the right place
8606
8607         * gdk/win32/gdkwindow-win32.c : don't create background brushes
8608         for all the gdkClasses, especially not for the input_only case.
8609         Otherwise flickering wont be avoidable, because we don't get
8610         WM_ERASEBKGND message for these windows.
8611
8612         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
8613         and fixed massive redraw problems apparently triggered by Alexanders 
8614         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
8615         but it seems to work quite well :-)
8616
8617         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
8618         prototype
8619
8620 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
8621
8622         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
8623         (gtk_list_store_set_cell): Fix a stupid typo.
8624
8625 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
8626
8627         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
8628         select_all not work if you're in SINGLE mode (it doesn't make that
8629         much sense, anyway.)
8630
8631         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
8632         handle types more sanely.
8633         (_gtk_tree_data_list_value_to_node): handle types more sanely.
8634         (_gtk_tree_data_list_node_copy): handle types more sanely.
8635
8636         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
8637         GValue better. Converts the type as well.
8638
8639         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
8640         GValue better. Converts the type as well.
8641
8642 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
8643
8644         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
8645         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
8646         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
8647         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
8648
8649         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
8650         gdk_im/gdk_ic.
8651
8652 2001-03-09  Hans Breuer  <hans@breuer.org>
8653
8654         * gdk/gdk.def : updated
8655
8656         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
8657         for their palette
8658
8659         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
8660         removing
8661
8662         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
8663         removing and implemented Havoc's GdkWindow state functions; 
8664         stick/unstick only as no-op, cause I don't know how to emulate 
8665         on win32 ...
8666
8667         * gtk/gtk.def : updated
8668
8669         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
8670
8671         * gtk/gtktypeutils.c : #include <string.h>
8672
8673         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
8674
8675 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
8676
8677         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
8678         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
8679         not a boxed.
8680
8681 2001-03-09  Alexander Larsson  <alexl@redhat.com>
8682
8683         * docs/Changes-2.0.txt:
8684         Document expose event->region change and that gtk_widget_event
8685         doesn't allow passing expose events.
8686
8687         * gdk/gdkevents.h:
8688         Add region to expose event.
8689         
8690         * gdk/gdkevents.c:
8691         Handle event->region in gdk_event_copy() and gdk_event_free().
8692
8693         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
8694         Generate expose_event->region when creating expose events.
8695
8696         * gdk/x11/gdkevents-x11.c:
8697         Generate expose events with regions when translating X events.
8698
8699         * gtk/gtkcontainer.[ch]:
8700         Default expose handler that propagates expose events to NO_WINDOW
8701         children. New function gtk_container_propagate_expose()
8702
8703         * gtk/gtkwidget.[ch]:
8704         Moved gtk_widget_event implementation to gtk_widget_event_internal.
8705         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
8706         expose events. New function gtk_widget_send_expose() to send expose
8707         events. New function gtk_widget_region_intersect() to calculate
8708         window/region intersections.
8709         
8710         * gtk/gtkmain.c (gtk_main_do_event):
8711         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
8712         Use gtk_widget_send_expose() to send expose events.
8713         
8714         * gtk/gtkbin.c:
8715         * gtk/gtkbox.c:
8716         * gtk/gtkfixed.c:
8717         * gtk/gtkimagemenuitem.c:
8718         * gtk/gtklist.c:
8719         * gtk/gtkpacker.c:
8720         * gtk/gtktable.c:
8721         * gtk/gtktree.c:
8722         Remove expose handler, using the default container implementation
8723         instead.
8724         
8725         * gtk/gtkbutton.c:
8726         * gtk/gtkcheckbutton.c:
8727         * gtk/gtkeventbox.c:
8728         * gtk/gtkfixed.c:
8729         * gtk/gtkhandlebox.c:
8730         * gtk/gtklayout.c:
8731         * gtk/gtklistitem.c:
8732         * gtk/gtkmenu.c:
8733         * gtk/gtkmenubar.c:
8734         * gtk/gtkmenuitem.c:
8735         * gtk/gtknotebook.c:
8736         * gtk/gtkoptionmenu.c:
8737         * gtk/gtkpaned.c:
8738         * gtk/gtkscrolledwindow.c:
8739         * gtk/gtktogglebutton.c:
8740         * gtk/gtktoolbar.c:
8741         * gtk/gtktreeitem.c:
8742         * gtk/gtkviewport.c:
8743         Chain expose handler to parent class handler. Use
8744         gtk_container_propagate_expose() to propagate exposes.
8745
8746         * gtk/gtkclist.c (check_exposures):
8747         * gtk/gtktext.c (process_exposes):
8748         Use gtk_widget_send_expose instead of gtk_widget_event.
8749
8750 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
8751
8752         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
8753
8754 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
8755
8756         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
8757         unref the nodes.   Fixes bug #50058.
8758
8759         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
8760         "::ref_iter" to "::ref_node".
8761         (gtk_tree_model_unref_node): change "::unref_iter" to
8762         "::unref_node". Fixes bug #50064.
8763
8764 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
8765
8766         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
8767         support for invisible cells.
8768          (gtk_tree_view_bin_expose): ditto
8769
8770 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
8771
8772         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
8773         on gobjects.
8774
8775         * tests/testtreefocus.c (main): New test file.
8776
8777         * tests/testtreeview.c: update to latest glib changes.
8778
8779         * tests/testtreecolumns.c: update to latest glib changes.
8780
8781 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
8782
8783         * gtk/testgtk.c: re-enabled event watcher emission hooks.
8784
8785 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
8786
8787         * *.c: added accumulator data argument to g_signal_newc()
8788         functions.
8789
8790         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
8791         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
8792         * gtk/treestoretest.c (make_window):
8793         s/g_signal_connect/g_signal_connectc/.
8794
8795         * gtk/gtktextbuffer.c: completed signal arg fixups,
8796         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
8797
8798 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
8799
8800         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
8801         G_CONST_RETURN.
8802
8803         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
8804         ::hierarchy-changed signal when a widget changes
8805         from anchored to unanchored or vice versa.
8806         (anchored means 
8807          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
8808         Use a private flag to keep track of this efficiently.
8809
8810 2001-03-07  Havoc Pennington  <hp@redhat.com>
8811
8812         * gtk/testgtk.c (create_spins): uglify so that size request gets
8813         tested.
8814
8815         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
8816         request on values for upper/lower, completes #6152
8817
8818 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
8819
8820         * Makefile.am: Remove gtk-config-2.0 again.
8821         (Grrrr, pkg-config. And stops make loops.)
8822
8823 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
8824
8825         * gtk/gtksignal.[hc]: removed old emission hook API.
8826         
8827         * docs/Changes-2.0.txt: fixed sections.
8828         
8829         * gtk/gtktextbuffer.c: signal arg fixups.
8830
8831 2001-03-07  Havoc Pennington  <hp@redhat.com>
8832
8833         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
8834
8835         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
8836         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
8837         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
8838         validation and the redraw which is higher priority than the
8839         validation.
8840
8841 2001-03-07  Havoc Pennington  <hp@redhat.com>
8842
8843         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
8844         (gtk_entry_set_property): remove trailer
8845
8846         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
8847         (gtk_entry_get_width_chars): new functions, to set size request to 
8848         a given number of characters
8849
8850         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
8851
8852         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
8853         (gtk_dialog_get_has_separator): new function
8854         (run_delete_handler): fix to not emit "response" signal
8855         because we already did in the delete event handler installed
8856         at dialog creation time.
8857         
8858         * gtk/gtkdialog.h: add a has_separator property,
8859         add GTK_DIALOG_NO_SEPARATOR flag
8860
8861 2001-03-07  Havoc Pennington  <hp@redhat.com>
8862
8863         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
8864         off decorations for a window.
8865
8866         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
8867         changes
8868
8869         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
8870         to get location of PangoLayout inside the label, closes #51198
8871
8872         * gtk/testgtk.c (create_bbox): fix up button box usage
8873
8874         * gtk/testcalendar.c (create_calendar): fix up button box usage
8875
8876         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
8877
8878         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
8879
8880         * gtk/gtkhbbox.h: deprecations
8881
8882         * gtk/gtkvbbox.h: deprecations
8883
8884         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
8885         emulate deprecated gtk_button_box_get_spacing
8886
8887         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
8888         the "set global default" functions
8889         (struct _GtkButtonBox): remove "spacing" field, use the one from 
8890         GtkBox base class
8891
8892         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
8893
8894         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
8895         render the icon, return the missing image icon.
8896
8897         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
8898         image icon if the load fails.   
8899
8900         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
8901         when no image is found; should be the Netscape "missing image"
8902         icon eventually but for now is a random image
8903
8904         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
8905         role for the session manager
8906
8907         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
8908
8909         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
8910         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
8911
8912         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
8913
8914 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
8915
8916         * gtk/*.c: marshaller fixes.
8917         
8918         * gtk/gtkmarshal.list: extreme cleanup.
8919
8920         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
8921         param spec for now.
8922
8923         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
8924         where appliable.
8925
8926         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
8927         special cased autogenerated boxed types from gtktypebuiltins_ids.c
8928         which are not reference counted:
8929         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
8930         PangoFontDescription, GtkTreeIter and GtkTreePath.
8931
8932 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
8933
8934         * gtk/gtktreeselection.h: 
8935         * gtk/gtktreemodel.c:
8936         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
8937         file should be included directly, and gobject/gmarshal.h
8938         as well as gtk/gtkmarshal.h even can't be included directly.
8939
8940         * Makefile.am: grr, install gtk-config-2.0.
8941
8942         * gtk/testgtk.c:
8943         * gtk/simple.c:
8944         * gtk/gtkmenu.c:
8945         * gtk/gtkitemfactory.c: use g_object_connect() instead of
8946         passing "*signal*::*" args to gtk_widget_set().
8947         
8948         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
8949         
8950         * gtk/*.c: removed trailer arg from property setters and getters.
8951         macro fixups.
8952
8953 2001-03-07  Alexander Larsson  <alexl@redhat.com>
8954
8955         * gtk/gtklabel.c (set_markup): Removed warning
8956
8957 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
8958
8959         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
8960         field to allow you to hide cell renderers.
8961
8962         * gtk/gtkcellrenderer.c: Add support for invisible cells.
8963
8964         * gtk/gtktreeview.c: Add support for invisible cells.
8965
8966 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
8967
8968         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
8969         Add "clicked" signal back to columns.
8970
8971         * ChangeLog: remove conflict markers.
8972
8973 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
8974
8975         * gtk/gtkbutton.c: Add animation of activation by, on 
8976         activate, pressing the button, and adding a timeout that 
8977         releases the button after 250ms or on key release and
8978         emits ::clicked. (#51501)
8979
8980         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
8981         action area, we connect to ::clicked instead of ::activate
8982         so the dialog stays up through the animation.
8983
8984 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
8985
8986         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
8987         check the ignore_enter flag for the menu shell that
8988         the item is actually a child of, not for attached
8989         submenus. (#51536)
8990
8991 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
8992
8993         * gtk/gtkmain.c (gtk_propagate_event): Only do special
8994         special key-press grab handling for widgets within
8995         GtkWindows. Otherwise, fall through to normal case.
8996
8997         This prevents key events being sent twice to GtkInvisible
8998         widgets, which can cause all sorts of mischief.
8999
9000 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
9001
9002         * gtk/gtkmain.c (gtk_propagate_event): When a grab
9003         widget is in effect, give the grab widget a first
9004         crack at KEY_PRESS/RELEASE events. (#424)
9005
9006 2001-03-06  James Henstridge  <james@daa.com.au>
9007
9008         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
9009         offset for the window_state_event to point at window_state_event
9010         rather than no_expose_event.
9011
9012 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
9013
9014         * gtk/gtkimmodule.h: fix busted /* comment */
9015
9016 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
9017
9018         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
9019         object properties.
9020
9021 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
9022
9023         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
9024         add object properties.
9025
9026         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
9027         to add object properties.
9028
9029         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
9030         object properties.
9031
9032         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
9033         add object properties.
9034
9035         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
9036         object properties.
9037
9038 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
9039
9040         * gtk/gtktreemodel.c: renamed "child_toggled" to
9041         "has_child_toggled".
9042
9043         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
9044         handle new signal name.
9045
9046         * gtk/gtktreestore.c: Updated to handle new signal name.
9047         * gtk/gtklisttore.c: Updated to handle new signal name.
9048         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
9049
9050 2001-03-05  Alexander Larsson  <alexl@redhat.com>
9051
9052         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
9053         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
9054
9055 2001-03-05  Michael Natterer  <mitch@gimp.org>
9056
9057         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
9058         pixbuf-engine coincidentially also failed to make one of it's
9059         parent_class pointers static, causing overwriting of GtkLabel's
9060         parent_class pointer in pixbuf_style_class_init().
9061         (Will commit the fix to the pixbuf-engine too).
9062
9063 2001-03-05  Alexander Larsson  <alexl@redhat.com>
9064
9065         * gdk/gdkwindow.h:
9066         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
9067         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
9068         gdk_window_set_icon_list for net wmspec functionality.
9069
9070         * gdk/x11/gdkwindow-x11.c:
9071         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
9072         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
9073         gdk_window_set_icon_list.
9074         Added gdk_wmspec_change_state helper function and used it in the code.
9075         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
9076
9077         * gtk/gtkdialog.c (gtk_dialog_init):
9078         Set GDK_WINDOW_TYPE_HINT_DIALOG.
9079
9080         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
9081         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
9082
9083         * gtk/gtkwindow.c:
9084         new function gtk_window_set_type_hint.
9085         On realize, set type hint and modal hint.
9086
9087         * gtk/gtkwindow.h:
9088         Added type_hint field and gtk_window_set_type_hint.
9089
9090 2001-03-05  Alexander Larsson  <alexl@redhat.com>
9091
9092         * gtk/gtklabel.[ch]:
9093         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
9094         New function gtk_label_get_accel_keyval () to get the underline accelerator
9095         of the label. Setting the label pattern overrides other attributes.
9096
9097 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
9098
9099         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
9100         Added missing initializers to gtk_rc_style_init().
9101
9102 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
9103
9104         * gtk/gtktextview.c: fixed bug #51097 about setting 
9105         gtk_text_view_set_border_window_size() if the widget is 
9106         already realized.
9107
9108 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
9109
9110         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
9111
9112         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
9113         comment. Won't do to have duplicated doc comments between
9114         the platform subdirs.
9115
9116 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
9117
9118         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
9119           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
9120
9121         Detectable auto-repeat - make a repeating key generate
9122         press/press/press/release instead of press/release pairs.
9123
9124         If we have Xkb and XkbSetDectableAutoRepeat supports
9125         that, we do it that way. Otherwise, when we get
9126         a release event, we check ahead with XPending to see
9127         if the next key is a KeyPress with the same keycode
9128         and timestamp. (Not 100% reliable, but pretty close.)
9129           
9130 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
9131         
9132         * gtk/gtkmain.c (gtk_propagate_event): Only do special
9133         special key-press grab handling for widgets within
9134         GtkWindows. Otherwise, fall through to normal case.
9135  
9136         This prevents key events being sent twice to GtkInvisible
9137         widgets, which can cause all sorts of mischief.
9138  
9139 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
9140  
9141         * gtk/gtkmain.c (gtk_propagate_event): When a grab
9142         widget is in effect, give the grab widget a first
9143         crack at KEY_PRESS/RELEASE events. (#424)
9144  
9145 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
9146
9147         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
9148         to extend the selection. (Roughly based on patch
9149         from Jay Cox, #50939)
9150
9151         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
9152         to properly handle previous GDK_BUTTON_PRESS. 
9153         (Patch from Jay Cox, #50938)
9154
9155         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
9156         '\0' back along with the deleted text. (#51148)
9157
9158 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
9159
9160         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
9161         the group when extracting it from the X keyboard event.
9162
9163         * modules/input/Makefile.am modules/input/imipa.c: 
9164         Simple module for entering IPA. (Do we need a 
9165         gtk-stupid-input-tricks CVS module?)
9166
9167 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
9168
9169         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
9170         const.
9171
9172         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
9173
9174         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
9175         is no focus widget for the dialog currently, grab the focus as well
9176         as the default.
9177
9178         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
9179         the action area's children to iterate through, not the
9180         dialog's children.
9181
9182 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
9183
9184         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
9185         Add plug-socket tests. (Won't work worth a darn until I commit
9186         the rest of the plug-socket changes, but no reason these
9187         can't go into CVS now.)
9188
9189 2001-03-02  Havoc Pennington  <hp@redhat.com>
9190
9191         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
9192         _gdk_region_get_xrectangles()
9193
9194         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
9195
9196         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
9197
9198         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
9199         function, contributed by Ron Steinke    
9200
9201         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
9202         gdk_net_wm_supports
9203
9204         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
9205         New function, contributed by Ron Steinke
9206
9207         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
9208         used to line up the text in the entry when using the entry for
9209         editable sheet cell hacks
9210
9211         * gtk/testgtk.c (create_entry): test the activate_default setting
9212         on GtkEntry
9213
9214         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
9215         cause the entry to activate the default button for a dialog when 
9216         activated
9217         (gtk_entry_get_activates_default): new function
9218
9219 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
9220
9221         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
9222         Hwang to move call to sync_selection() up a few lines
9223         to before the row list is modified, to fix crash when
9224         removing rows in the undo_selection list.
9225
9226         (Test case provided by Daniel Elstner:
9227
9228         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
9229
9230 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
9231
9232         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
9233         of tree->root_tree in parent_set rather than _map(), 
9234         fixing #50892 in a bit better manner.
9235
9236 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
9237
9238         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
9239
9240 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
9241
9242         * gtk/gtkstyle.c : Remove duplicate fwd decl for
9243         gtk_default_draw_shadow.
9244
9245 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
9246
9247         * gdk/gdkimage.c (gdk_image_new): Remove excess 
9248         warning, make warnings more verbose, treat a error
9249         in shmat as permanent, and don't try again.
9250         (#51163, Ed Randall.)
9251
9252 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
9253
9254         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
9255         delay for the first click before starting to scroll.
9256         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
9257
9258         * gtk/gtktext.c: GtkText should have I-beam cursor. 
9259         (based on gtk-enf-990513-1.patch, Eric Fisher.)
9260
9261 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
9262
9263         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
9264         cleanup to remove some references to unused
9265         ->xoffset, ->yoffset.
9266
9267 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
9268
9269         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
9270         mask. (#51039, fix from Martin Maierhofer)
9271
9272 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
9273
9274         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
9275         for unshifted + and shifted = for non-us keyboards.
9276         Make <Control>+ and <Control>- work as well as 
9277         <Control>KP_Plus, <Control>KP_Minus for recursive
9278         open/close.  (#2682, René Seindal)
9279
9280 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
9281
9282         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
9283         the active menu item before deactivating the menu,
9284         so gtk_menu_popdown doesn't change the history. (#50964)
9285         
9286 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
9287
9288         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
9289         draw lines with text_gc rather than black_gc.
9290         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
9291
9292 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
9293
9294         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
9295         Move handling of buttons fully in gtktreeviewcolumn.  This code is
9296         less interrelated then it was, but it still requires the
9297         GtkTreeView to map it.
9298
9299         * test/testtreecolumn.c: Now I can add a column to one view,
9300         remove it, add it to the another view, remove it, then re-add it
9301         to the first.  Nifty.
9302
9303 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
9304
9305         * docs/tutorial/gtk-tut.sgml: Minor corrections
9306
9307 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
9308
9309         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
9310         GtkRowReference.
9311
9312 2001-02-28  Havoc Pennington  <hp@redhat.com>
9313
9314         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
9315         draw_default
9316         (gtk_widget_draw_focus): remove this function; we could instead
9317         make it just gtk_widget_draw(), but in most cases I think the
9318         result would be broken user code, so think it's better to have
9319         that code not compile and get fixed
9320         (gtk_widget_draw_default): ditto
9321
9322         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
9323         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
9324         
9325         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
9326         widgets lose/get the default, instead of calling draw_default
9327         
9328         * docs/Changes-2.0.txt: note about all this
9329
9330         Then fixed every widget in GTK, I won't list all the filenames.
9331
9332 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
9333
9334         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
9335         _gtk_tree_row_reference_deleted.
9336         (inserted_callback): Proxy out to
9337         _gtk_tree_row_reference_inserted.
9338         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
9339         get around signal emission ordering problem.
9340
9341         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
9342         fix to work with SINGLE 
9343         (_gtk_tree_selection_internal_select_node): Major sanitization on
9344         selections.  SINGLE now seems to work.
9345
9346         * tests/Makefile.am: add testtreecolumn.c:
9347
9348         * tests/testtreecolumn.c: New test.  Mostly points out selection
9349         bugs currently, but will test columns later.
9350
9351         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
9352         selection bug.  I hate touching this code -- it's scary.
9353
9354 2001-02-26  Havoc Pennington  <hp@redhat.com>
9355
9356         * gtk/testgtk.c: test the window state stuff
9357
9358         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
9359         window come to the user's attention as if it were just created
9360         (gtk_window_iconify): new function
9361         (gtk_window_deiconify): new function
9362         (gtk_window_stick): new function
9363         (gtk_window_unstick): new function
9364         (gtk_window_maximize): new function
9365         (gtk_window_unmaximize): new function
9366
9367         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
9368
9369         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
9370
9371         * gdk/x11/gdkevents-x11.c: create window state events when
9372         appropriate
9373         (gdk_wmspec_supported): new function
9374
9375         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
9376         iconification before showing the window
9377         (gdk_window_deiconify): new function
9378         (gdk_window_stick): new function
9379         (gdk_window_unstick): new function
9380         (gdk_window_maximize): new function
9381         (gdk_window_unmaximize): new function
9382
9383         * gdk/gdkwindow.c: store the window state in the window; 
9384         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
9385         window->mapped.
9386         (gdk_window_get_state): return the current window state
9387
9388         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
9389         (gdk_event_get_state): handle GDK_WINDOW_STATE
9390         (gdk_synthesize_window_state): function to create the window state
9391         events
9392
9393         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
9394         event, for changes to "window state" such as maximized, sticky, 
9395         etc.
9396         
9397         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
9398         focuses a window
9399
9400         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
9401         finds out if we support a given WM spec hint
9402
9403 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
9404
9405         * docs/faq/gtk-faq.sgml: New question re memory leaks.
9406
9407 2001-02-25  Hans Breuer  <hans@breuer.org>
9408
9409         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
9410         cause we want to loose those prototypes only in the latter case
9411
9412         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
9413         GdkPixmapImplWin32 because it itsn't derived from it. Use the
9414         impl member variable instead
9415
9416         * gtk/gtk.def : updated
9417
9418         * gtk/gtklist.c : 
9419         * gtk/gtkmenus.c : include <string.h> for memset ()
9420
9421         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
9422         for everthing built here, but for gtk-x.x.dll only. This solves
9423         problem of indifferent gtk type definitions
9424
9425 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
9426
9427         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
9428
9429 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
9430
9431         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
9432         column that is exposed.
9433
9434         (_gtk_tree_view_update_size): Changed name from set_size, and
9435         changed function to do more work, and not force people calling it
9436         to figure out the size.  Simplifies a lot of code elsewhere.
9437
9438 2001-02-23  Alexander Larsson  <alexl@redhat.com>
9439
9440         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
9441         return solid masks for xpms that have no transparent color.
9442         This makes the ..._create_from_xpm... API backwards
9443         compatible.
9444
9445 2001-02-23  Tor Lillqvist  <tml@iki.fi>
9446
9447         * README.win32: Update. Mention the gtk-1-3-win32-production
9448         branch.
9449
9450         * gdk/win32/bdfcursor.c: New file. A program that generates
9451         xcursors.h. Thanks to Stefan Ondrejicka.
9452
9453         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
9454         compact format.
9455
9456         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
9457
9458         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
9459         function, uses xcursors.h.
9460         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
9461         cursor from inline data instead of using LoadCursor() to generate
9462         it from a resource.
9463
9464         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
9465         event, must check the Windows message for mouse button state, as
9466         the GDK event state might not have been built if it is
9467         undelivered. Remove one goto.
9468
9469         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
9470         SetCursor() if the current cursor as returned by GetCursor() is
9471         the window's previous cursor. The ChildWindowFromPoint() test
9472         apparently didn't work correctly.
9473
9474         * gdk/win32/rc/*.cur: Remove.
9475
9476         * gdk/win32/rc/gdk.rc.in: Remove cursors.
9477
9478         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
9479
9480         * gtk/makefile.{mingw,msc}.in: Updates.
9481
9482 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
9483
9484         * gtk/gtktreemodel.h: add functions for signal emission.
9485
9486         * gtk/gtktreestore.c: move to use above functions instead of
9487         g_signal_emit.
9488
9489         * gtk/gtkliststore.c: ditto
9490
9491 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
9492
9493         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
9494         GObject instead of GtkObject.
9495
9496         * gtk/gtkliststore.c: ditto.
9497
9498         * gtk/gtktreemodelsort.c: ditto.
9499
9500         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
9501         GtkTreeModelIface, instead of in each model.
9502
9503 2001-02-21  Havoc Pennington  <hp@redhat.com>
9504
9505         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
9506         unbreak this function
9507
9508         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
9509         properties
9510
9511         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
9512         properties
9513
9514         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
9515         properties
9516
9517         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
9518         mean unset the max length
9519
9520 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
9521
9522         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
9523         Changed name to be set_cell_data_func to make it clear what
9524         the functino does.  Close bug #51069.
9525
9526 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
9527
9528         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
9529         have memory actually freed.  Keeps box running longer.
9530
9531 2001-02-21  Alexander Larsson  <alexl@redhat.com>
9532         
9533         * gtk/gtkseparatormenuitem.[ch]:
9534         Added new menu separator item. The drawing and size handling
9535         is still done in GtkMenuItem, but the API is a bit more sane.
9536         
9537         * gtk/Makefile.am:
9538         Add gtkseparatormenuitem.[ch].
9539
9540         * gtk/gtk.h:
9541         Add gtkseparatormenuitem.h.
9542         
9543         * gtk/gtkentry.c:
9544         * gtk/gtkmenufactory.c:
9545         * gtk/gtktextview.c:
9546         Use the new API for menu separators.
9547         
9548         * demos/gtk-demo/menus.c (create_menu):
9549         Add some GtkSeparatorMenuItem demo code.
9550
9551 2001-02-20  Havoc Pennington  <hp@redhat.com>
9552
9553         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
9554         Lee Mallabone
9555
9556         * gtk/gtkarrow.c: Convert to new property API, patch from 
9557         Lee Mallabone
9558
9559 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
9560
9561         * tests/testtreeview.c (toggled_callback): fix to reflect change
9562         in GtkTreeModelStore.
9563
9564 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
9565
9566         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
9567         function to create an icon set from a pixbuf.
9568
9569 2001-02-20  Alexander Larsson  <alexl@redhat.com>
9570
9571         * gtk/gtkcellrenderertext.[ch]:
9572         Add a "markup" property.
9573
9574         * gtk/treestoretest.c:
9575         Use the markup property, remove some leftover stuff from
9576         GtkTreeModelMapping.
9577
9578 2001-02-20  Alexander Larsson  <alexl@redhat.com>
9579
9580         * gtk/gtklabel.c (gtk_label_set_selectable):
9581         Queue a redraw if the selectable setting was changed.
9582
9583 2001-02-20  Alexander Larsson  <alexl@redhat.com>
9584
9585         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
9586         Actually copy the whole gc, not just the public parts.
9587         
9588         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
9589         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
9590         labels.
9591
9592 2001-02-19  Havoc Pennington  <hp@pobox.com>
9593
9594         * gdk/gdkwindow.c: docs
9595
9596         * gdk/gdkrgb.c: docs
9597
9598         * gdk/gdkregion-generic.c: docs
9599
9600         * gdk/gdkgc.c (gdk_gc_set_values): docs
9601
9602         * gdk/gdkdraw.c: docs
9603
9604         * gdk/gdkdrawable.h: deprecate drawable get/set data
9605
9606 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
9607
9608         * demos/gtk-demo/dialog.c: Add simple new demo.
9609
9610 2001-02-19  Havoc Pennington  <hp@redhat.com>
9611
9612         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
9613         insert_child_anchor signal, bug #50245
9614
9615         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
9616         from create_child_anchor, so the anchor is passed in
9617
9618         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
9619         (_gtk_widget_segment_new): have the child anchor object passed in, 
9620         instead of creating it.
9621
9622         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
9623         to gtk_text_buffer_get_modified
9624
9625 2001-02-19  Havoc Pennington  <hp@redhat.com>
9626
9627         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
9628         changed GLib without fixing GTK
9629
9630         * gtk/gtkrange.h: Rename all the stupid implementation detail 
9631         functions to have an underscore in front. Most of them should 
9632         probably just go away, but for starters don't export them.
9633         Bug #50482
9634
9635 2001-02-19  Havoc Pennington  <hp@redhat.com>
9636
9637         * gdk/gdkcolor.h: test was backward, so deprecated functions were
9638         excluded by default
9639
9640         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
9641         clean up the old code a bit
9642
9643         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
9644         inconsistent state
9645
9646         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
9647         draw inconsistent state
9648
9649         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
9650         (create_menu): add inconsistent test
9651
9652         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
9653         new function
9654         (gtk_check_menu_item_get_inconsistent): new function
9655         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
9656         state (using etched in for now)
9657
9658         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
9659         draw inconsistent state
9660
9661         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
9662         function, used when the user has selected a range of stuff in
9663         different states
9664         (gtk_toggle_button_get_inconsistent): accessor for that
9665         (gtk_toggle_button_paint): draw inconsistent state (etched in?
9666         don't know what else to do)
9667
9668 2001-02-19  Hans Breuer <hans@breuer.org>
9669
9670         * gtk/gtk.def : updated exported symbols
9671
9672         * gtk/makefile.msc.in : updated
9673
9674         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
9675         a colormap, when invoked from testgtk::entry. I'm not sure where
9676         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
9677         avoids immediate crashing ...
9678
9679         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
9680         any objections ?
9681
9682         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
9683         0 parameter. At least msvc doesn't like macros with var args. 
9684         I simply removed the extra 0, was it a feature or a typo ?
9685
9686         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
9687         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
9688         because the value assignment to the internal struct wasn't working.
9689         I'm not absolutely sure. The problem could have been resolved by
9690         changing the "func" declartion in the struct, but was the pointer
9691         to the function pointer intended ?
9692
9693         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
9694
9695         * gdk/gdk.def : updated exported symbols
9696
9697         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
9698         only use SetDIBitsToDevice if there is a palette at the drawable
9699         and the image is GDK_VISUAL_PSEUDO_COLOR
9700
9701         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
9702
9703         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
9704
9705         * gdk/*/makefile.msc : updated
9706
9707 2001-02-19  Havoc Pennington  <hp@redhat.com>
9708
9709         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
9710         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
9711
9712         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
9713         (gdk_key_repeat_restore): nuke
9714
9715         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
9716         (gdk_init_check): no atexit func
9717
9718         * gdk/gdkrgb.h: mark some stuff deprecated
9719
9720         * gdk/gdkcolor.h: mark some stuff deprecated
9721         
9722         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
9723
9724         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
9725
9726 2001-02-16  Havoc Pennington  <hp@redhat.com>
9727
9728         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
9729         scroll steps.
9730
9731         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
9732         steps, and add Ctrl-arrow shortcuts for paging visually as with
9733         HScale, since Page Up and Page Down move logically.
9734
9735         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
9736         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
9737         
9738         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
9739         steps
9740         (gtk_range_scroll): handle the visual steps
9741
9742         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
9743         scroll steps
9744
9745         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
9746         steps, not the logical ones.
9747
9748         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
9749         (scroll_vertical): handle up/down steps
9750
9751 2001-02-19 Alexander Larsson  <alexl@redhat.com>
9752
9753         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
9754         Copy data and free data with free().
9755
9756         * gdk-pixbuf/gdk-pixbuf.c:
9757         * gdk-pixbuf/io-jpeg.c:
9758         * gdk-pixbuf/io-png.c:
9759         Use g_try_malloc/g_free instead malloc/free.
9760         
9761         * gdk-pixbuf/test-gdk-pixbuf.c:
9762         Must... initialize... gobject...
9763         
9764         * gdk-pixbuf/pixops/timescale.c:
9765         * gtk/gtkcalendar.c:
9766         Use g_malloc instead of malloc.
9767         
9768 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
9769
9770         * gtk/testgtkrc:
9771         Comment out property assignments, these don't work yet.
9772
9773 2001-02-17  Havoc Pennington  <hp@pobox.com>
9774
9775         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
9776         bit.
9777
9778 2001-02-17  Havoc Pennington  <hp@pobox.com>
9779
9780         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
9781         shadowed variables that had broken size request in some cases,
9782         leading to bogus tooltips (#50996)
9783
9784 2001-02-06  Jon K Hellan  <hellan@acm.org>
9785
9786         Implement fast browsing of tooltips, bug #50619
9787         
9788         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
9789         and last_popdown
9790         
9791         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
9792         use_sticky_delay and last_popdown.
9793         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
9794         time of popdown.
9795         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
9796         is NULL.
9797         (gtk_tooltips_recently_shown): New static function.  Return true
9798         if < sticky_delay has elapsed since last popdown.
9799         (gtk_tooltips_event_handler): Display window after sticky_delay
9800         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
9801         since last popdown.
9802         
9803 2001-02-17  Havoc Pennington  <hp@pobox.com>
9804
9805         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
9806         instead of (). #6394
9807
9808         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
9809         G_CONST_RETURN, make it return by reference, #50473
9810         
9811 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
9812
9813         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
9814         generated ENTER_NOTIFY event with 0, otherwise not explicitely
9815         setup fields contain garbage (e.g. subwindow, breaking
9816         gdk_drawable_ref() upon event copy).
9817         (gtk_menu_stop_navigating_submenu_cb): same here.
9818
9819         * gtk/gtklist.c (gtk_list_vertical_timeout): 
9820         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
9821         * gtk/gtkclist.c (vertical_timeout): 
9822         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
9823         default-zero-intialization for unions to memset(,0,), as unions are
9824         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
9825         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
9826
9827         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
9828         g_closure_sink() warning.
9829
9830         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
9831         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
9832         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
9833         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
9834         
9835 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
9836
9837         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
9838         gtk_*_store_get, and moved to GtkTreeModel.
9839
9840         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
9841
9842         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
9843
9844         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
9845
9846         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
9847         set the func.
9848
9849         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
9850         freeze/thaw notify between setting all the properties for a cell.
9851
9852         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
9853
9854 2001-02-15  Havoc Pennington  <hp@redhat.com>
9855
9856         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
9857         the X coordinates so they're with respect to the line, rather than 
9858         with respect to the layout.
9859
9860         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
9861         Mallabone
9862
9863         * gtk/testgtk.c (create_range_controls): add vscale tests, 
9864         and inverted test
9865
9866         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
9867         #50806
9868
9869         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
9870
9871         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
9872         gtk_text_iter_is_end
9873
9874         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
9875         rename gtk_text_buffer_get_end_iter
9876
9877         * gtk/testgtk.c (create_labels): Add test for selectable
9878
9879         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
9880         the selection stuff. This code is kind of broken since it doesn't 
9881         use the theme engine.
9882
9883         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
9884         fix infinite loop and y offset problem
9885         (gdk_draw_layout_line_with_colors): fix foreground color handling
9886
9887         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
9888         that makes the label selectable.
9889         
9890         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
9891         layout when the style is set, since fonts etc. could have changed.      
9892
9893 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
9894
9895         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
9896
9897         * gtk/gtktreemodelsimple.[ch]: removed.
9898
9899 2001-02-16  Alexander Larsson  <alexl@redhat.com>
9900
9901         * gtk/gtktreemodelmapping.[ch]:
9902         New files. Implement GtkTreeModelMapping.
9903         
9904         * gtk/Makefile.am:
9905         Add gtktreemodelmapping.[ch].
9906         
9907         * gtk/gtk.h:
9908         Add gtktreemodelmapping.h
9909
9910         * gtk/treestoretest.c:
9911         Test the GtkTreeModelMapping
9912
9913 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
9914
9915         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
9916         have a demo, we might as well pass in real values.  Thanks to
9917         clahey for pointing this out.
9918
9919 2001-02-14  Havoc Pennington  <hp@pobox.com>
9920
9921         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
9922         "static" to a private function
9923         (gtk_image_menu_item_class_init): remove destroy handler,
9924         add "image" object property
9925
9926 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
9927
9928         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
9929         Add a shortcut if the window and the current clip_region doesn't
9930         overlap. This is needed when there are a lot of windows in a
9931         window. The layout test in testgtk is a good test.
9932
9933         * gdk/linux-fb/gdkwindow-fb.c:
9934         Whitespace fix.
9935
9936 2001-02-13  Sven Neumann  <sven@convergence.de>
9937
9938         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
9939
9940 2001-02-13  Alexander Larsson  <alexl@redhat.com>
9941
9942         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
9943         Don't reference last_cursor if it is null. Fixes crash when rotating
9944         the screen before having moved the mouse.
9945
9946         * gdk/linux-fb/gdkcc-fb.c: Zapp!
9947
9948         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
9949
9950         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
9951         when using 90 or 270 degrees rotation.
9952
9953 2001-02-12  Havoc Pennington  <hp@pobox.com>
9954
9955         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
9956         it always set the foreground, even if we were only using
9957         a stipple.
9958         (gdk_draw_layout_line_with_colors): new function, allow
9959         override colors
9960         (gdk_draw_layout_with_colors): new function, allow override
9961         colors
9962         (gdk_pango_layout_line_get_clip_region): function to get the clip
9963         region for a logical text range
9964         (gdk_pango_layout_get_clip_region): get the clip region for a
9965         logical text range
9966
9967         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
9968         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
9969         the right number of arguments.
9970
9971         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
9972         enhance the function to check that node data corresponds to a 
9973         view still belonging to the tree.
9974
9975         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
9976         GtkTreePath
9977         (gtk_tree_view_inserted): ditto
9978         (gtk_tree_view_child_toggled): ditto
9979
9980         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
9981         simplify this code.
9982
9983         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
9984         a PangoAttrList
9985
9986         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
9987
9988         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
9989
9990         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
9991         size in the size request 
9992         (gtk_menu_bar_size_allocate): consider toggle size here
9993
9994         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
9995         that displays a widget in the toggle slot
9996
9997         * gtk/testgtk.c: test GtkImageMenuItem
9998
9999         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
10000         
10001         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
10002         request and allocation
10003
10004         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
10005
10006         * gtk/gtkcheckmenuitem.c
10007         (gtk_check_menu_item_toggle_size_request): ditto
10008         
10009 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
10010
10011         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
10012         reference.
10013
10014         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
10015         and refuse to initialize GTK+ if they fail.
10016
10017 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
10018
10019         * configure.in: Add check for gtk-doc version.
10020
10021 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
10022
10023         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
10024         where the xpad/ypad was only being used on one side!
10025
10026 2001-02-11  Tor Lillqvist  <tml@iki.fi>
10027
10028         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
10029         function, copied from X11 version.
10030
10031         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
10032         DestroyCursor failures. The reason for the problem (despite the
10033         inconsistent messages from GetLastError()) was that
10034         DestroyCursor() cannot be called while a cursor is set in a
10035         window. Set the new cursor first and then destroy the old one.
10036         Thanks to jpe@archaeopteryx.com.
10037
10038         * gdk/win32/gdkcc-win32.c: Remove.
10039
10040         * gdk/win32/Makefile.am: Remove from here, too.
10041         
10042         * gdk/gdk.def
10043         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
10044
10045         * gtk/gtk.def
10046         * gtk/makefile.mingw.in: Updates.
10047
10048 2001-02-08  Havoc Pennington  <hp@redhat.com>
10049
10050         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
10051         add a widget to a bin that already has a child.
10052
10053         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
10054
10055         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
10056         
10057         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
10058
10059         * gdk/gdk.h: remove gdkcc.h
10060
10061         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
10062
10063         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
10064         GdkPixbuf, since the previous implementation was GdkColorContext
10065         dependent.
10066
10067         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
10068         
10069 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
10070
10071         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
10072         a sane value!
10073
10074 2001-02-08  Havoc Pennington  <hp@redhat.com>
10075
10076         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
10077         lighten them.
10078
10079 2001-02-08  Havoc Pennington  <hp@redhat.com>
10080
10081         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
10082         validation idle
10083
10084         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
10085         cell renderer
10086
10087         * demos/pixbuf-demo.c (timeout): remove deprecated
10088         gtk_widget_draw
10089
10090         * demos/testpixbuf-save.c (main): remove deprecated
10091         gtk_drawing_area_size
10092
10093         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
10094         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
10095         at the start of the allocation.
10096         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
10097         unsetup or NULL model.
10098
10099         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
10100         even/odd/sorted cells in the tree view.
10101
10102         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
10103         bugfixes
10104
10105         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
10106         backgrounds with draw_flat_box using different detail for even/odd
10107         rows.
10108
10109         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
10110         row, so we can draw the alternating colors thing
10111
10112         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
10113         property from a synonym property, notify for the synonym.
10114         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
10115         (gtk_text_tag_get_property): Always return the font, even if
10116         all its fields aren't set
10117
10118         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
10119         store the attr list; it leaves us with no way to change attributes
10120         in _render according to the render flags, and no way to implement
10121         get_property. Instead store all the specific text attributes. 
10122         Separate whether an attribute is enabled from its value. Sync all
10123         properties with GtkTextTag, make them all consistent, etc.
10124
10125         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
10126         renderers can highlight the sort row/column     
10127
10128         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
10129         accessor functions to get values; this has the side effect of
10130         showing up which accessor functions were missing. Added those.
10131
10132         * gtk/gtktreeviewcolumn.h: Replace set_justification with
10133         set_alignment, to be consistent with GtkLabel, GtkMisc
10134
10135         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
10136         arrow.
10137
10138         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
10139
10140         * gtk/gtktreesortable.h: updates in here
10141
10142 2001-02-07  Sven Neumann  <sven@convergence.de>
10143
10144         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
10145         pango dimensions after painting the background. We used to draw
10146         gigantic flat boxes here.
10147
10148 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
10149
10150         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
10151         error introduced with earlier commit) (pointed out by
10152         Ollie Lho)
10153
10154 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
10155
10156         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
10157         which are no longer necessary.
10158
10159 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
10160
10161         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
10162
10163 2001-02-04  Tor Lillqvist  <tml@iki.fi>
10164
10165         * gdk/gdk.def
10166         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
10167         Provide dummy implementations.
10168
10169 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
10170
10171         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
10172
10173         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
10174         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
10175         deprecated this function.
10176
10177         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
10178         argument.
10179
10180 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
10181
10182         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
10183
10184 2001-02-03  Havoc Pennington  <hp@pobox.com>
10185
10186         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
10187         Mikael Hermansson with patch from Mikael (if there was a toggle
10188         start one after the first character in the range, this function
10189         was broken). Bug #50380
10190
10191 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
10192
10193         * configure.in: Remove confusing comment about X11.
10194
10195 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
10196
10197         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
10198         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
10199         
10200 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
10201
10202         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
10203         it breaks things on BSD. If you want to compile GTK+ with
10204         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
10205         when configuring, since GTK+ simply can't be "pure ANSI" 
10206         in the header files it uses. (#8170, Greg Hudson)
10207
10208 2001-02-02  Havoc Pennington  <hp@redhat.com>
10209
10210         * gtk/gtkwindow.c: docs
10211
10212         * gtk/gtkwidget.c: docs
10213         (gtk_widget_set_colormap): add a reference to the colormap
10214         (gtk_widget_get_default_colormap): add a reference to the colormap
10215
10216         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
10217
10218         * gtk/gtktextiter.c: docs
10219
10220         * gtk/gtkmain.c (gtk_propagate_event): docs
10221
10222         * gtk/gtkpaned.c (gtk_paned_get_position): docs
10223         (gtk_paned_set_position): docs
10224
10225         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
10226         sort interface, no implementation yet.
10227
10228         * demos/testpixbuf.c (new_testrgb_window): replace
10229         gtk_drawing_area_size() with gtk_widget_set_usize()
10230
10231         * demos/testpixbuf-drawable.c (main): ditto
10232         
10233         * gtk/testgtk.c: remove use of GtkStatusbarMsg
10234
10235         * gtk/gtktextbuffer.c: docs
10236
10237         * gtk/gtkstock.c: docs
10238
10239         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
10240
10241         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
10242
10243         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
10244         
10245         * gtk/gtkimage.c: add some docs in here
10246         (gtk_image_size_request): change name of
10247         gtk_widget_render_stock_icon
10248         (gtk_image_get_icon_set): don't dup returned string
10249         (gtk_image_get_icon_set): don't dup returned string
10250
10251         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
10252         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
10253         and gtkiconfactory.h functions
10254
10255         * gtk/gtkiconfactory.c: add some docs in here
10256
10257         * gtk/gtkmain.c (gtk_get_default_language): document
10258         (gtk_get_current_event): document
10259         (gtk_get_current_event_state): document
10260         (gtk_get_event_widget): document
10261
10262         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
10263
10264         * gtk/gtkcontainer.c: Add some documentation
10265         (gtk_container_add): give a more explanatory warning on adding an
10266         already-parented widget, this is kind of a FAQ and also a common
10267         typo that's easier to debug with a nice warning 
10268
10269         * gtk/gtkcellrenderertoggle.c
10270         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
10271         adding this, it's useless
10272         (gtk_cell_renderer_toggle_set_active): remove
10273         (gtk_cell_renderer_toggle_get_radio): add
10274
10275         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
10276         the NULL cell renderer, that doesn't make any sense to me. 
10277
10278         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
10279         demo code should never use deprecated features.
10280
10281         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
10282         code should never use deprecated features.
10283
10284         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
10285         gtk_widget_queue_clear_area deprecated
10286
10287         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
10288         deprecated
10289
10290         * gtk/gtklabel.h: mark gtk_label_get() deprecated
10291
10292         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
10293         a GdkImage deprecated, replaced by new consistently-named
10294         functions       
10295
10296         * gtk/gtkmain.h: Mark gtk_exit() deprecated
10297
10298         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
10299
10300         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
10301         deprecated
10302
10303         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
10304         so it won't appear in docs and confuse people.
10305
10306         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
10307
10308         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
10309         macros deprecated. (can't mark the type itself deprecated, since
10310         GtkProgressBar is not deprecated and we need the type decl to use
10311         GtkProgressBar)
10312
10313         * gtk/gtkpixmap.h: Mark deprecated
10314
10315         * gtk/gtkoldeditable.h: Mark deprecated
10316
10317         * gtk/gtklist.h: Mark deprecated
10318
10319         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
10320         for anything anymore.
10321
10322         * gtk/gtkctree.h: Mark deprecated
10323
10324         * gtk/gtkclist.h: Mark deprecated
10325
10326         * gtk/gtkpreview.h: Mark deprecated
10327
10328         * gtk/gtkpacker.h: Mark deprecated
10329
10330         * gtk/gtktipsquery.h: Mark deprecated
10331
10332         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
10333
10334         * gtk/gtkvruler.h: Add comment that it will move out of GTK
10335
10336         * gtk/gtkhruler.h: Add comment that it will move out of GTK
10337
10338         * gtk/gtkruler.h: Add comment that it will move out of GTK
10339
10340         * gtk/gtkgamma.h: Add comment that it will move out of GTK
10341
10342         * gtk/gtkcurve.h: Add comment that it will move out of GTK
10343
10344 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
10345
10346         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
10347         gdk_colormap_sync private since it was never exported
10348         in a header file.
10349
10350         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
10351         colormap->colors[] for StaticGray, StaticColor colormaps.
10352
10353         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
10354         was being used as if it was image->bits_per_pixel.
10355
10356         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
10357         for the image in the GdkImage structure since it isn't
10358         reconstructable, and we need it to handle packed types
10359
10360         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
10361         the assumption that on Win32 image->bits_per_pixel == image->depth,
10362         always.
10363
10364         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
10365
10366         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
10367         warning message if no converter can be found. 
10368
10369 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
10370
10371         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
10372         chars to isupper() / tolower(). (#567)
10373
10374         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
10375         to clear up 64-bit warnings. (#567)
10376
10377 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
10378
10379         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
10380         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
10381
10382         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
10383         since some people set $(libdir) separately. (#1290, David Kaelbling)
10384
10385 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
10386
10387         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
10388         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
10389         MAXPATHLEN, but the code here depends on a fixed value.)
10390         (#4524)
10391
10392 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
10393
10394         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
10395         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
10396
10397 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
10398
10399         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
10400         viewable there is no way that moving the node will cause the 
10401         focus row to become not viewable, so omit check on the visibility
10402         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
10403
10404 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
10405
10406         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
10407         selection before inserting new text.
10408
10409 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
10410
10411         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
10412         Make the sensitivity of the reparented child track that of
10413         the original parent menu item. (#34218, David Hodson)
10414
10415         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
10416         the case where the current item is destroyed properly.
10417
10418         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
10419         some edge cases with child-less menuitems.
10420         
10421 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
10422
10423         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
10424         key pop down window. (#12074, Jon K Hellan)
10425
10426 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
10427
10428         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
10429         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
10430         The solution here isn't perfect - you get an extraneous
10431         emission of "toggle", which could conceivably confuse an app,
10432         but better than the current situation. LXR search seems to
10433         indicate that no apps in GNOME CVS connect to "toggle".
10434
10435 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
10436
10437         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
10438         gtk_public_h_sources to directly here to avoid warning when
10439         building srcdir != builddir. (#9656)
10440
10441 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
10442
10443         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
10444         handlers in gtkrange.c return the proper values (TRUE == handled)
10445         (#10316).
10446
10447         This is just the tip of the iceberg, but gtkrange.c is the
10448         most common place where the propagation is problematical,
10449         and also a place where it is almost certainly safe to change
10450         this in the stable branch.
10451
10452         (You don't want right click popups on a range control or anything...)
10453
10454 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
10455
10456         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
10457         area on focus out, even if a background pixmap isn't set.
10458         (#13941)
10459         
10460 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
10461
10462         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
10463         to deal with setting the shape properly when scrolling arrows are
10464         turned on, but not visible because there is sufficient space.
10465         (#13432)
10466
10467 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
10468
10469         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
10470         items with submenus, destroy the item along with the submenu.
10471         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
10472         properly.
10473
10474         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
10475         later.
10476
10477 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
10478
10479         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
10480         the focus widget sometimes wasn't drawn with the default if there
10481         was no default widget.
10482
10483         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
10484         unreference pixmaps. 
10485
10486         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
10487         for some extra safety.
10488
10489 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
10490
10491         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
10492         the text of a cell to the old pointer value better, by
10493         copying the new text before freeing the old text. Some code
10494         cleanup. (#8079, Karl Nelson)
10495
10496 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
10497
10498         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
10499         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
10500
10501 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
10502
10503         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
10504         item from a menu, check to see if it matches 
10505         menu->old_active_menu_item, and if so, unref and clear
10506         old_active_menu_item (Patch from Pavel Cisler)
10507
10508         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
10509         menu_shell->active_menu_item, if it is the child being
10510         removed. (Patch based on that of Gene Ragan, #50337)
10511
10512 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
10513
10514         * gdk/linux-fb/gdkselection-fb.c: 
10515         * gdk/linux-fb/gdkcolor-fb.c: 
10516         * gdk/linux-fb/gdkdrawable-fb2.c: 
10517         * gdk/linux-fb/gdkfont-fb.c: 
10518         * gdk/linux-fb/gdkim-fb.c: 
10519         * gdk/linux-fb/gdkinput.c: 
10520         * gdk/linux-fb/gdkkeyboard-fb.c: 
10521         * gdk/linux-fb/gdkmain-fb.c: 
10522         * gdk/linux-fb/gdkrender-fb.c: 
10523         A bunch of whitespace cleanup.
10524         
10525 2001-01-30  Havoc Pennington  <hp@pobox.com>
10526
10527         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
10528         #ifdef GTK_ENABLE_BROKEN.
10529
10530         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
10531         GTK_ENABLE_BROKEN just before including the broken headers.
10532         
10533         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
10534         deprecated types registered.
10535
10536         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
10537         we have to test the broken stuff.
10538
10539         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
10540         
10541 2001-01-30  Havoc Pennington  <hp@redhat.com>
10542
10543         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
10544         here where prev pointer was set to the wrong thing
10545
10546         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
10547         (gtk_tree_path_is_descendant): new function
10548
10549         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
10550         cached length
10551         (gtk_list_store_get_iter): don't modify iter if we can't get the
10552         path.
10553
10554         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
10555         
10556         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
10557         GtkTreeDragDest
10558
10559         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
10560         was causing segfault
10561
10562         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
10563         pointer to NULL
10564
10565         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
10566
10567         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
10568         on returning FALSE
10569         (gtk_list_store_iter_children): ditto
10570         (gtk_list_store_iter_nth_child): ditto
10571         (gtk_list_store_iter_nth_child): ditto
10572         (gtk_list_store_iter_parent): ditto
10573
10574         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
10575         on iter->user_data != NULL instead of silently accepting it.
10576         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
10577         we are returning TRUE.
10578         (gtk_tree_store_iter_children): ditto
10579         (gtk_tree_store_iter_nth_child): ditto
10580         (gtk_tree_store_iter_parent): ditto
10581         (gtk_tree_store_insert): remove handling of parent->user_data ==
10582         NULL, replace with parent == NULL       
10583
10584         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
10585         and a comment explaining things
10586
10587         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
10588         interface support to GtkTreeStore.
10589
10590         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
10591         FALSE if no prev, fix
10592
10593         * gtk/gtktreeview.c (set_source_row): use a row reference
10594         (set_dest_row): use a row reference
10595
10596 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
10597
10598         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
10599         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
10600         (gtk_tree_selection_select_iter): The same as above.
10601
10602 2001-01-26  Havoc Pennington  <hp@redhat.com>
10603
10604         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
10605         which holds a handle to a specific row (particular set of values
10606         in the model, i.e. pointer-identity row).
10607
10608         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
10609         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
10610         Still need to use it for the src/dest row saved on the drag context.
10611
10612 2001-01-26  Havoc Pennington  <hp@redhat.com>
10613
10614         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
10615
10616         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
10617         not offset by TREE_VIEW_HEADER_HEIGHT
10618         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
10619         TREE_VIEW_HEADER_HEIGHT
10620
10621         * configure.in (included_loaders): for me, --with-included-loaders
10622         generates the error "the specified loader yes does not exist",
10623         i.e. the arg defaults to "yes", so change test for value ""
10624         to test for value "yes", and include all loaders in that case.
10625
10626         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
10627
10628         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
10629         handle TREE_VIEW_VERTICAL_SEPARATOR
10630         (gtk_tree_view_bin_expose): fix to consider the row offset as
10631         pointing halfway into vertical separator.       
10632         (gtk_tree_view_draw_node_focus_rect): ditto
10633
10634         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
10635         --gtk-debug=updates, which causes gdk_window_set_debug_updates
10636         (TRUE) to be called.
10637
10638         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
10639         debug mode where the invalid region is colored in on invalidate,
10640         so you can see the flicker and know whether your redraw code is 
10641         doing a good job.
10642
10643         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
10644         tree window coordinates (clip rect is in tree window coords)
10645
10646         * gtk/Makefile.am: add gtktreednd.[hc]
10647
10648         * gtk/gtkliststore.c: implement gtktreednd interfaces.
10649
10650         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
10651         drag-and-drop data operations on a model (so we can set up tree
10652         drag-and-drop automatically)
10653
10654         * gtk/testgtk.c: Add a window to change sensitivity in the
10655         GtkLabel test; add a way to change the entry frame in GtkEntry
10656         test
10657
10658         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
10659         (gtk_entry_get_has_frame): new functions to remove the frame
10660         around an entry
10661         (gtk_entry_size_request): shrink requisition if no frame
10662         (gtk_entry_draw_focus): don't draw frame if no frame
10663
10664         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
10665         checks inside a cell renderer
10666         (gtk_default_draw_option): ditto for options
10667
10668         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
10669         children from the alignment, not the button
10670         (gtk_tree_view_column_init): ref/sink the column, to emulate
10671         GObject refcounting.
10672
10673         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
10674         
10675         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10676         Use theme functions to draw the toggles 
10677
10678         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
10679
10680         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
10681         GdkPangoAttrEmbossed to use in rendering insensitive text
10682
10683         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
10684
10685         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
10686         using new GDK features
10687         
10688 2001-01-24  Alexander Larsson  <alexl@redhat.com>
10689
10690         * gtk/gtkimage.c:
10691         Splitted gtk_image_clear into gtk_image_clear() and
10692         gtk_image_reset(). Call gtk_image_clear() in ::destroy
10693         to avoid leaks.
10694
10695         * gtk/gtklabel.c (set_markup):
10696         Don't leak text.
10697
10698         * gtk/gtktextlayout.c:
10699         Always free display->shaped_objects.
10700
10701         * gtk/testgtk.c (create_clist):
10702         Don't leak custom style.
10703
10704 2001-01-23  Alexander Larsson  <alexl@redhat.com>
10705
10706         * gtk/gtkcolorsel.c (grab_color_at_mouse):
10707         Don't leak image. Simplify using gdk_colormap_query_color().
10708         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
10709
10710         * linux-fb/gdkcolor-fb.c:
10711         Implemented gdk_colormap_query_color.
10712
10713 2001-01-23  Alexander Larsson  <alexl@redhat.com>
10714
10715         * linux-fb/gdkcursor-fb.c:
10716         Don't leak built-in cursors.
10717
10718         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
10719         Don't leak tmp_points.
10720
10721         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
10722         Don't modify desc. Don't leak font if the PangoFont
10723         isn't found.
10724         
10725         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
10726         Free dash_list.
10727
10728         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
10729         Don't leak string.
10730         
10731 2001-01-20  Havoc Pennington  <hp@pobox.com>
10732
10733         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
10734         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
10735         me, matches Pango
10736
10737 2001-01-22  Havoc Pennington  <hp@redhat.com>
10738
10739         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
10740
10741         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
10742
10743         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
10744         Remove, move back to gdk-pixbuf
10745
10746         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
10747         to all the word functions
10748
10749         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
10750         before doing anything on NULL layout or if we don't have the focus
10751
10752         * gtk/testtext.c (fill_example_buffer): "justification"
10753
10754         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
10755         to be called "justification" not "justify"
10756
10757         * demos/gtk-demo/textview.c (create_tags): "justification"
10758         
10759         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
10760
10761 2001-01-22  Alexander Larsson  <alexl@redhat.com>
10762
10763         * gdk/gdkwindow.c (gdk_window_invalidate_region):
10764         Don't leak visible_region. Use visible_region instead of region.
10765         
10766         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
10767         Don't do extra gdk_drawable_ref(). This is not X.
10768         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
10769         gdk_fb_focused_window is ref:ed.
10770         (gdk_fb_window_send_crossing_events): Watch out for destroyed
10771         windows.
10772
10773 2001-01-22  Alexander Larsson  <alexl@redhat.com>
10774
10775         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
10776         Don't leak the PangoFontDescriptor.
10777
10778 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
10779
10780         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
10781         when not realized.
10782         (gtk_tree_view_scroll_to_cell): Make work when not realized.
10783         (gtk_tree_view_realize): add scroll_to support
10784         (gtk_tree_view_finalize): add a finalize method.  Populate.
10785         (gtk_tree_view_insert_column): ref and sink the column.
10786         (gtk_tree_view_append_column): ref and sink the column.
10787         (gtk_tree_view_queue_draw_node): New function to handle redrawing
10788         individual nodes.  Should make the code much more efficient, if
10789         actually used.
10790
10791 2001-01-19  Havoc Pennington  <hp@redhat.com>
10792
10793         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
10794         byte_offset variable was being used to mean both "offset into
10795         layout" and "offset into buffer line" which was no longer true
10796         with addition of preedit string; fix
10797
10798 2001-01-19  Havoc Pennington  <hp@redhat.com>
10799
10800         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
10801
10802         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
10803         function
10804
10805         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
10806         implement
10807
10808         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
10809         scroll_to_cell, matches TextView scroll functions better
10810         (gtk_tree_view_tree_to_widget_coords): new function
10811         (gtk_tree_view_widget_to_tree_coords): new function
10812         (gtk_tree_view_get_visible_rect): new function
10813         (gtk_tree_view_get_path_at_pos): accept negative coordinates
10814         (gtk_tree_view_draw_node_focus_rect): new function moved from
10815         draw_focus, also, use width of bin_window as width of the focus
10816         rect
10817         (gtk_tree_view_expand_row): fix bug where it didn't recognize
10818         already-expanded rows
10819         (gtk_tree_view_get_cell_rect): new function
10820         (gtk_tree_view_get_path_at_pos): return the click position
10821         relative to the passed-in cell
10822         (gtk_tree_view_set_expander_column): new function
10823
10824         * configure.in: remove gtk-config-2.0 chmod
10825
10826         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
10827         and properly handle drags with targets we don't understand
10828         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
10829         scrolling anyway
10830         (gtk_text_view_drag_drop): stop scrolling here though, and set the
10831         mark invisible
10832
10833         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
10834         function
10835         (gtk_drag_dest_get_target_list): new function
10836         (gtk_drag_dest_set_target_list): new function
10837         
10838         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
10839
10840         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
10841         related to drag-and-drop
10842
10843 2001-01-19  Alexander Larsson  <alexl@redhat.com>
10844
10845         * gdk/linux-fb/gdkprivate-fb.h:
10846         Define EMULATE_GDKFONT.
10847         Add extra pango_font stuff to GfkFontPrivate.
10848         
10849         * gdk/linux-fb/gdkdrawable-fb2.c:
10850         * gdk/linux-fb/gdkfont-fb.c:
10851         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
10852         emulation using PangoFont.
10853
10854 2001-01-17  Havoc Pennington  <hp@pobox.com>
10855
10856         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
10857         all the non-deprecated set_foo functions. Added missing object
10858         properties, and added g_object_notify() to setters. 
10859         Wrote docs.
10860         
10861 2001-01-18  Tor Lillqvist  <tml@iki.fi>
10862
10863         * gtk/gtkmain.c
10864         * gtk/gtkrc.c: (Win32) Use the new
10865         g_win32_get_package_installation_(sub)directory() functions.
10866
10867         * config.h.win32.in: New file.
10868         
10869         * config.h.win32: Removed.
10870
10871         * configure.in: Output config.h.win32.
10872
10873         * Makefile.am: Add it to EXTRA_DIST.
10874
10875         * gtk/gtk.def: Update.
10876
10877 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
10878
10879         * gtk/gtklabel.c (gtk_label_size_request): Set the
10880         attributes onto the PangoLayout even if they are newly
10881         created from label->pattern.
10882
10883 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
10884
10885         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
10886
10887         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
10888         structures in functions. Fixes bug where gtk_dataset_*
10889         was accidentally still being used in one place, causing
10890         every dest side event to be treated independently.
10891
10892         * gtk/gtkdnd.c: Remove last vestages of handling
10893         ::draw (fixes warning)
10894         
10895         * gtk/gtkentry.[ch]: Add drag and drop support.
10896
10897         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
10898         new function gtk_check_drag_threshhold() for checking
10899         to check if (dx,dy) has exceeded the threshhold for starting
10900         a drag and use it everywhere.
10901
10902 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
10903
10904         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
10905         add -I{includedir}/gtk-2.0.
10906
10907         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
10908         gdk/gdk-pixbuf.h: Doc fixups.
10909         
10910         * gtk/gtkobject.h: Remove trailing , from enum
10911
10912 2001-01-17 Alexander Larsson <alexl@redhat.com> 
10913
10914         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
10915         Doh! Mixed up x and y.
10916
10917         * gdk/linux-fb/gdkglobals-fb.c:
10918         Removed gdk_fb_pointer_grab_window_events,
10919         added _gdk_fb_pointer_grab_owner_events and
10920         _gdk_fb_keyboard_grab_owner_events.
10921
10922         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
10923         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
10924         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
10925         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
10926         Send crossing events after ungrab finished.
10927         (gdk_keyboard_grab): Set ..._owner_events
10928         (type_masks): Move out of function.
10929         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
10930         gdk_fb_keyboard_event_window): New functions, return the
10931         window an event should be targeted at. Handles grabs and
10932         event propagation. Can return NULL.
10933         (gdk_event_make): Remove event_mask checking. Now always
10934         returns an event.
10935                 
10936         * gdk/linux-fb/gdkkeyboard-fb.c:
10937         * gdk/linux-fb/gdkproperty-fb.c:
10938         * gdk/linux-fb/gdkselection-fb.c:
10939         Use new event_window/gdk_event_make() behaviour.
10940         
10941         * gdk/linux-fb/gdkmouse-fb.c:
10942         Use new event_window/gdk_event_make() behaviour.
10943         Only send motion events if in the same window.
10944         If grabbed, use cursor from window if sibling of grabbed
10945         window, and cursor from grabbed window otherwise.
10946
10947         * gdk/linux-fb/gdkprivate-fb.h:
10948         Update gdk_fb_window_send_crossing_events, gdk_event_make
10949         and grab varaible declarations. Add gdk_fb_*_event_window().
10950
10951         * gdk/linux-fb/gdkwindow-fb.c:
10952         Use new event_window/gdk_event_make() behaviour.
10953         Keep correct track of focus window.
10954         (gdk_window_set_events): Set all specific button motion masks
10955         if GDK_BUTTON_MOTION_MASK set.
10956
10957         * gtk/gtkdnd.c (gtk_drag_update):
10958         Free info->last_event if gdk_drag_motion returned FALSE.
10959
10960 2001-01-16  Tor Lillqvist  <tml@iki.fi>
10961
10962         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
10963         Eliminate redraws when input-only windows are shown or
10964         hidden. Thanks to jpe@archaeopteryx.com.
10965
10966 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
10967
10968         * docs/faq/gtk-faq.sgml: FAQ update:
10969           - Update to bugzilla
10970           - Add GTK+ and security/SUID/SGID
10971           - Add DnD question
10972
10973 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
10974
10975         * gdk/linux-fb/gdkdnd-fb.c:
10976         Some cleanups.
10977         
10978 2001-01-15  Havoc Pennington  <hp@pobox.com>
10979
10980         * tests/testtreeview.c: add test stuff for CellRendererToggle
10981
10982         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
10983         accessor
10984
10985         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
10986         only toggle on button press (would do release like GtkButton, but
10987         we'd need implicit grab code for treeview cells)
10988
10989 2001-01-16  Tor Lillqvist  <tml@iki.fi>
10990
10991         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
10992
10993         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
10994         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
10995
10996         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
10997         to g_{locale,filename}_{to,from}_utf8 to match current API.
10998
10999         * gtk/makefile.msc.in (gtk_OBJECTS)
11000         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
11001
11002         * gtk/gtk.def: Update.
11003
11004 2001-01-15  Tor Lillqvist  <tml@iki.fi>
11005
11006         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
11007         implementaion that more closely mimics the events that an X server
11008         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
11009         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
11010         with nested preview widgets, for instance, more responsive when
11011         you move the mouse quickly into them.
11012         (find_window_for_pointer_event): Make it actually compile.
11013         (gdk_event_translate): Set send_event to the value of
11014         InSendMessage (). This doesn't really mean the same as X11's
11015         send_event flag, but is close enough, says jpe@archaeopteryx.com
11016
11017 2001-01-15  Alexander Larsson  <alexl@redhat.com>
11018
11019         * gdk/linux-fb/gdkdnd-fb.c:
11020         Implemented drag and drop.
11021         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
11022         when it tries to free and then copy the same event (info->last_event).
11023         I am not sure about why this happens, but will continue looking.
11024
11025 2001-01-15  Alexander Larsson  <alexl@redhat.com>
11026
11027         * gdk/linux-fb/gdkwindow-fb.c:
11028         Use gdk_window_invalidate_rect instead of
11029         gdk_window_invalidate_rect_clear to minimise flashing.
11030         When hiding windows you need to clear the root window though.
11031
11032 2001-01-15  Alexander Larsson  <alexl@redhat.com>
11033
11034         * gdk/linux-fb/gdkdrawable-fb2.c:
11035         For optization, add an full_shapes argument to gdk_fb_clip_region.
11036         If this is false, only the cliprects of the shapes are used.
11037
11038         * gdk/linux-fb/gdkprivate-fb.h:
11039         Export gdk_fb_window_peek_shape.
11040         Add full_shapes to gdk_fb_clip_region.
11041
11042         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
11043         When moving a window, don't clear everything under the it, just the
11044         root window. Makes stuff faster and flash less.
11045         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
11046         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
11047         offset of the shape.
11048         
11049
11050 2001-01-12  Havoc Pennington  <hp@redhat.com>
11051
11052         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
11053         current invalid region, fixes redraw bug while scrolling the 
11054         text widget
11055
11056         * gtk/gtktextview.c, gtk/gtktextview.h:
11057         Rearrange the scrolling/validation/etc. code in a major way, 
11058         so it seems to make sense to me. Probably isn't genuinely that
11059         much better, but...
11060
11061         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
11062         notifies
11063
11064         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
11065
11066 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
11067
11068         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
11069         Hide mouse pointer while rotation. Show it afterwards.
11070
11071 2001-01-12  Alexander Larsson  <alexl@redhat.com>
11072
11073         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
11074         windows in consideration when generating clip region.
11075
11076         * gdk/linux-fb/gdkfb.h:
11077         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
11078
11079         * gdk/linux-fb/gdkprivate-fb.h:
11080         Add shape to GdkWindowFBDatat.
11081         exported gdk_fb_window_get_abs_shape().
11082         removed gdk_fb_draw_lines declaration.
11083
11084         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
11085         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
11086         send focus changes when there is a grabbed window.
11087         (gdk_window_get_pointer): Handle shaped windows.
11088         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
11089         (gdk_fb_window_peek_shape): Returns the shape for a window,
11090         handles GDK_FB_USE_CHILD_SHAPE.
11091         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
11092         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
11093         (gdk_window_shape_combine_mask): Implement.
11094
11095         * gtk/gtkwindow-decorate.c:
11096         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
11097         setting the shape of a window makes the window transparent.
11098
11099 2001-01-11  Havoc Pennington  <hp@redhat.com>
11100
11101         * gtk/gtktreemodelsimple.h: Oops, broke some macros
11102
11103 2001-01-10  Havoc Pennington  <hp@redhat.com>
11104
11105         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
11106         add this function, bug 40251
11107
11108         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
11109         of type macro   
11110
11111 2001-01-11  Alexander Larsson  <alexl@redhat.com>
11112
11113         * acconfig.h:
11114         Added ENABLE_SHADOW_FB
11115
11116         * configure.in:
11117         Added --disable-shadowfb
11118
11119         * gdk/linux-fb/gdkcursor-fb.c:
11120         Update shadowfb when updating cursor
11121
11122         * gdk/linux-fb/gdkdrawable-fb2.c:
11123         Added wrappers for shadowfb that calls  the normal drawable
11124         methods, but calls gdk_shadow_fb_update(bounding box) when
11125         GdkWindows are drawed to.
11126         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
11127         which also returns the bounding box.
11128
11129         * gdk/linux-fb/gdkfb.h:
11130         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
11131
11132         * gdk/linux-fb/gdkgeometry-fb.c:
11133         Update shadowfb when scrolling window.
11134
11135         * gdk/linux-fb/gdkglobals-fb.c:
11136         Add _gdk_fb_screen_angle.
11137         
11138         * gdk/linux-fb/gdkkeyboard-fb.c:
11139         Test code for screen rotation. Shift-F2 in the xlate driver
11140         rotates the screen.
11141
11142         * gdk/linux-fb/gdkmain-fb.c:
11143         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
11144
11145         * gdk/linux-fb/gdkmouse-fb.c:
11146         Use fb_width/height instead of modeinfo.xres/yres.
11147
11148         * gdk/linux-fb/gdkprivate-fb.h:
11149         Added fb_men, fb_width, fb_height & fb_stride. When using
11150         shadow fb these can differ from the framebuffer stuff.
11151         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
11152         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
11153         _gdk_fb_screen_angle. Removed CM, RP.
11154
11155         * gdk/linux-fb/gdkrender-fb.c:
11156         Added code for shadowfb handling and screen rotation using
11157         shadowfb.
11158
11159         * gdk/linux-fb/gdkwindow-fb.c:
11160         Use fb_mem, fb_stride, fb_width, fb_height.
11161         Added recompute_rowstride to reset the rowstride of all windows.
11162         Added gdk_fb_recompute_all() which recomputes rootwindow size,
11163         window abs positions and window rowstrides. Usefull when the
11164         rotation has changed.
11165
11166 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
11167
11168         * docs/faq/gtk-faq.sgml: update to make web site updating easier
11169
11170 2001-01-10  Havoc Pennington  <hp@redhat.com>
11171
11172         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
11173         where sibling == iter
11174         (gtk_tree_store_insert_after): handle sibling == iter
11175         (gtk_tree_store_prepend): remove stamp checks
11176         (gtk_tree_store_insert_before): ditto
11177         (gtk_tree_store_append): ditto
11178         (gtk_tree_store_get_path): ditto
11179         (gtk_tree_store_get_value): ditto
11180         (gtk_tree_store_iter_has_child): ditto
11181         (gtk_tree_store_iter_n_children): ditto
11182         (gtk_tree_store_iter_nth_child): ditto
11183         (gtk_tree_store_insert_after): ditto
11184         (gtk_tree_store_is_ancestor): ditto
11185         (gtk_tree_store_iter_depth): ditto
11186         (gtk_tree_store_insert_before): assert that sibling's parent is
11187         the same as the passed-in parent
11188         (gtk_tree_store_insert_after): assert that sibling's parent is
11189         the same as the passed-in parent
11190
11191         
11192         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
11193         function to get the first iterator in a model
11194         
11195         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
11196         conventionally the "root" in this sense is just NULL afaict.
11197
11198         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
11199         where sibling == iter
11200         (gtk_list_store_insert_after): handle case where sibling == iter
11201
11202         * tests/testtreeview.c (run_automated_tests): fairly lame basic
11203         automated tests for ListStore, TreeStore
11204
11205         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
11206         (gtk_list_store_insert): update tail pointer, and fix it to work
11207         (gtk_list_store_insert_before): update tail pointer, and fix it to work
11208         (gtk_list_store_append): use tail to be faster
11209         (gtk_list_store_prepend): fix it, update tail pointer
11210         (gtk_list_store_insert_after): fix it, update tail pointer
11211
11212         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
11213         the list
11214
11215 2001-01-09  Havoc Pennington  <hp@redhat.com>
11216
11217         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
11218         is NULL due to a pending resize
11219
11220         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
11221         column width to values less than 1
11222
11223         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
11224         width to be between min/max width, and still set the width 
11225         even if autosize is turned on, so the tree view can use this 
11226         function in order to autosize.
11227         (gtk_tree_view_column_init): set initial width to 1 not 0
11228
11229         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
11230         setter function to modify column width, so we get notification
11231         (gtk_tree_view_insert_iter_height): ditto
11232         (gtk_tree_view_calc_size): ditto
11233         (gtk_tree_view_check_dirty): ditto
11234
11235         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
11236         properties to change all the interesting attributes of the tree
11237         view column.
11238         (gtk_tree_view_column_set_header_clickable): rename set_clickable
11239         (gtk_tree_view_column_get_clickable): add
11240         (gtk_tree_view_column_set_cell_renderer): don't unset the current
11241         attributes; assume a cell renderer with equivalent object
11242         properties has been swapped in. Do g_object_notify().
11243         (gtk_tree_view_column_set_visible): g_object_notify
11244         (gtk_tree_view_column_get_sizing): rename from get_col_type
11245         (gtk_tree_view_column_set_sizing): g_object_notify
11246         (gtk_tree_view_column_set_width): add g_object_notify
11247         (gtk_tree_view_column_set_min_width): ditto
11248         (gtk_tree_view_column_set_max_width): ditto
11249         (gtk_tree_view_column_set_title): ditto
11250         (gtk_tree_view_column_set_clickable): ditto
11251         (gtk_tree_view_column_set_widget): ditto
11252         (gtk_tree_view_column_set_justification): ditto
11253
11254 2001-01-09  Havoc Pennington  <hp@redhat.com>
11255
11256         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
11257         there are no rows in the model
11258
11259         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
11260         NULL, then return the start of the list
11261
11262         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
11263         if we can't get any rows from an empty model 
11264
11265         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
11266         extraneous * after function pointer typedef usage
11267
11268         * Makefile.am: don't specify full path to cp and rm
11269
11270         * gtk/gtkcellrenderertextpixbuf.c
11271         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
11272         NULL before dereferencing, fixes a segfault that happened from
11273         time to time
11274
11275         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
11276         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
11277         and reindent the function
11278         (gtk_cell_renderer_pixbuf_get_size): indentation
11279
11280         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
11281         we quit it
11282         (gtk_dialog_add_buttons_valist): add g_return_if_fail
11283         (gtk_dialog_set_default_response): New function, to set default
11284         button
11285         (gtk_dialog_set_response_sensitive): New function, to set 
11286         sensitivity of buttons
11287
11288         * gtk/gtkcellrendererpixbuf.c
11289         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
11290         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
11291
11292         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
11293         handle any G_TYPE_OBJECT subclass, not just the base class, and 
11294         also boxed types.
11295         (_gtk_tree_data_list_value_to_node): ditto
11296
11297         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
11298         --gtk-debug=tree
11299
11300         * gtk/gtkmain.c: add GTK_DEBUG_TREE
11301
11302         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
11303
11304 2001-01-09  Tor Lillqvist  <tml@iki.fi>
11305
11306         * gdk/win32/gdkevents-win32.c: Implement better mouse
11307         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
11308         (find_window_for_pointer_event): New function.
11309         (gdk_event_translate): Use it when handling mouse events.
11310
11311 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
11312
11313         * configure.in:
11314         Added --with-included-loaders option
11315
11316         * gdk-pixbuf/Makefile.am:
11317         * gdk-pixbuf/gdk-pixbuf-io.c:
11318         Add support for including selected gdk-pixbuf loaders only.
11319
11320         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
11321         gtk_window_set_has_frame):
11322         Added inline documentation.
11323
11324         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
11325         * docs/reference/gdk/tmpl/windows.sgml:
11326         Added inline documentation.
11327
11328 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
11329
11330         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
11331         realizing buttons that have already been realized.
11332
11333 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
11334
11335         * tests/testtreeview.c (main): Show menu items before adding to
11336         option menu.
11337
11338         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
11339         around if we kill them.
11340
11341         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
11342         Return if we pass in a NULL model.
11343
11344 2001-01-08  Havoc Pennington  <hp@redhat.com>
11345
11346         * tests/testtreeview.c: hack on this some
11347
11348         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
11349         gtk_tree_store_set_valist, v is for arrays, valist for varargs
11350         list
11351         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
11352
11353         * gtk/gtkliststore.h: Add varargs set() and get() convenience
11354         functions
11355
11356 2001-01-08  Alexander Larsson  <alexl@redhat.com>
11357
11358         * gtk/gtkwindow-decorate.[hc]:
11359         * gtk/Makefile.am:
11360         New files. Contains an implementation of a minimal WM for
11361         linux-fb.
11362
11363         * gtk/gtkwindow.h:
11364         Add the possibility for GtkWindows to specify a frame. This
11365         is used for the window decoration code, but could concievably
11366         be used for X programs too (xmms style windows).
11367         GtkWindow->frame is the toplevel window if the window is framed.
11368         The signal frame_event gets all events that are targeted to
11369         GtkWindow->frame.
11370         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
11371         
11372         * gtk/gtkwindow.c:
11373         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
11374         Call out to gtkwindow-decorate.c for WM support in linx-fb.
11375
11376 2001-01-08  Alexander Larsson  <alexl@redhat.com>
11377
11378         * docs/README.linux-fb:
11379         Correct filename ~/.pangoft2_aliases
11380
11381         * gdk/gdkwindow.h:
11382         Added new function gdk_window_get_decorations.
11383
11384         * gdk/linux-fb/gdkfb.h:
11385         Removed _gdk_window_get_decorations declaration.
11386         Renamed _gdk_window_set_child_handler to
11387         gdk_fb_window_set_child_handler.
11388
11389         * gdk/linux-fb/gdkwindow-fb.c:
11390         Renamed _gdk_window_set_child_handler to
11391         gdk_fb_window_set_child_handler.
11392
11393         * gdk/x11/gdkwindow-x11.c:
11394         New function gdk_window_get_mwm_hints().
11395         Implemented gdk_window_get_decorations.
11396
11397         * docs/reference/gdk/tmpl/windows.sgml:
11398         * docs/reference/gdk/gdk-sections.txt:
11399         Added gdk_window_get_decorations docs.
11400         
11401 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
11402
11403         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
11404         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
11405         gdk_fb_window_send_crossing_events):
11406         Possibly send focus events when the mouse moves from one
11407         window to another.
11408
11409 2001-01-07  Tor Lillqvist  <tml@iki.fi>
11410
11411         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
11412         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
11413         to match current API.
11414
11415         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
11416         environment variable is set, don't call g_error when on a
11417         palettized (PseudoColor) display. Some people want to use GTK+ 
11418         in 256-colour mode even though works only partially.
11419
11420         * gdk/gdk.def
11421         * gtk/gtk.def
11422         * gtk/makefile.mingw.in: Update.
11423
11424 2001-01-05  Havoc Pennington  <hp@redhat.com>
11425
11426         * tests/testtreeview.c: hack on this a bit
11427
11428         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
11429         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
11430
11431         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
11432         was spelled incorrectly
11433         (GTK_IS_TREE_MODEL_SIMPLE): ditto
11434
11435         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
11436         from gtk_tree_view_set_headers_active   
11437
11438         * gtk/gtktexttag.c:
11439         (gtk_text_tag_get_property): handle PROP_DIRECTION
11440         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
11441         properties, bug 40235
11442
11443         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
11444         forward_to_line_end
11445
11446 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
11447
11448         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
11449         modules/input/gtkimcontextxim.c: Adapt to new prototypes
11450         for unicode,locale,filename conversion functions.
11451
11452 2001-01-05  Havoc Pennington  <hp@redhat.com>
11453
11454         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
11455         broken if called on the first position in the buffer.
11456
11457         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
11458         forward_to_delimiters to be called only if we aren't already at
11459         the delimiters.
11460
11461 2001-01-05  Havoc Pennington  <hp@redhat.com>
11462
11463         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
11464
11465 2001-01-05  Alexander Larsson  <alexl@redhat.com>
11466
11467         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
11468         colormap in here. Sync from X port.
11469         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
11470         Sync from X port.
11471         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
11472         This happens now and then, and i don't think it is a bug.
11473         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
11474         != endpoint.
11475         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
11476         GDK_LINE_SOLID.
11477
11478         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
11479         some of the fields filled in at least.
11480
11481         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
11482         miLineArcD is no more, remove it from the function definition.
11483
11484 2001-01-04  Havoc Pennington  <hp@redhat.com>
11485
11486         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
11487         this
11488
11489         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
11490         user_data instead of tree_node
11491
11492         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
11493         TREE_VIEW_COLUMN_SIZE
11494
11495         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
11496         "size" field to "width" finishes bug 40061
11497
11498         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
11499         for bitfields, bug 40268
11500
11501 2001-01-04  Havoc Pennington  <hp@redhat.com>
11502
11503         Rename some stuff:
11504         
11505         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
11506
11507         s/GtkModelSimple/GtkTreeModelSimple/g;
11508         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
11509         s/gtk_model_simple/gtk_tree_model_simple/g;
11510         s/gtkmodelsimple/gtktreemodelsimple/g;
11511
11512         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
11513
11514         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
11515         s/column_set_col_type/column_set_sizing/g;
11516
11517         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
11518         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
11519
11520         s/GtkCellRendererType/GtkCellRendererState/g;
11521         
11522         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
11523         (gtk_cell_renderer_toggle_class_init): change "state" property to
11524         "active", to match GtkToggleButton
11525         (gtk_cell_renderer_toggle_get_active): new function, bug
11526         40269
11527         (gtk_cell_renderer_toggle_set_active): new function
11528         (gtk_cell_renderer_toggle_set_property): route changes to toggle
11529         state through gtk_cell_renderer_set_active
11530
11531 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
11532
11533         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
11534         temporarily until they work again.  Brought up to date with
11535         changes in the model.
11536         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
11537         model.
11538
11539 2001-01-04  Havoc Pennington  <hp@redhat.com>
11540
11541         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
11542         equal to the line length, then position iterator before paragraph 
11543         separators. Fixes crash reported by Mikael Hermansson when
11544         pressing left arrow from the start of a line.   
11545
11546         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
11547         about byte indexes off the end
11548         (iter_set_from_char_offset): add g_error about char offsets
11549         off the end
11550
11551 2001-01-03  Havoc Pennington  <hp@redhat.com>
11552
11553         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
11554
11555         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
11556         of private functions; remove inclusion of private headers.
11557
11558         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
11559         function, so we don't need private functions in gtktextdisplay.c
11560
11561         * gtk/gtktextiterprivate.h: underscore-ification
11562
11563         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
11564         to instead say "only useful to implement widgets"
11565
11566         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
11567         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
11568         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
11569
11570         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
11571         This function was completely broken
11572
11573         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
11574
11575         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
11576
11577         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
11578
11579         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
11580
11581         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
11582
11583         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
11584
11585         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
11586         gtk_paint_layout
11587
11588         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
11589         gtk_paint_layout
11590
11591         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
11592         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
11593         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
11594         which were not implemented.     
11595
11596         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
11597         insert_pixbuf signal. Rename delete_text to delete_range since it
11598         also deletes pixbufs and child anchors. This almost closes bug
11599         40245 (still need to deal with child anchors)
11600
11601         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
11602         insert_pixbuf, change signal names as appropriate, change types of
11603         signals taking marks/tags to have the specific type, not just
11604         G_TYPE_OBJECT
11605         
11606         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
11607         closes bug 40051
11608
11609         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
11610         unnecessary remove_contents() call
11611         (gtk_option_menu_class_init): add a "changed" signal, closes
11612         bug 40039
11613         (gtk_option_menu_update_contents): emit "changed" if the 
11614         active menu item changes
11615
11616         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
11617         cast to GtkObject, reported by Jonas Borgstrom
11618         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
11619         we can't do stuff with side effects in finalize. Instead, spew a
11620         warning if the loader isn't closed.
11621
11622         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
11623         colormap in here, non-X ports probably need to sync to this change
11624
11625         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
11626         assertion that colormap != NULL, you can set the colormap to NULL
11627         if you like.
11628         
11629         * Makefile.am: remove gtk-config-2.0
11630
11631         * configure.in: Use pkg-config to locate GLib. Remove
11632         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
11633         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
11634         Use pkg-config to locate Pango. Output correct Pango libs to
11635         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
11636
11637         * Makefile.am (pkgconfig_DATA): install only target-specific pc
11638         files
11639         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
11640         X11 pc files
11641
11642         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
11643         unref from here
11644
11645 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
11646
11647         * configure.in:
11648         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
11649
11650 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
11651
11652         * gtk/gtktextlayout.c
11653         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
11654         variable when moving back onto a single line.
11655
11656 2001-01-01  Havoc Pennington  <hp@redhat.com>
11657
11658         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
11659
11660         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
11661
11662         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
11663         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
11664
11665 2001-01-01  Havoc Pennington  <hp@redhat.com>
11666
11667         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
11668
11669         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
11670         GtkTextAttributes
11671
11672         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
11673         #40246
11674         (gtk_text_attributes_copy_values): rename from 
11675         gtk_text_attributes_copy
11676         (gtk_text_attributes_copy): a more standard GTK copy function, 
11677         which returns a new object
11678
11679 2001-01-01  Havoc Pennington  <hp@redhat.com>
11680
11681         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
11682         
11683         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
11684         don't fill in tree_view->priv->selection, kind of an unexpected
11685         side effect
11686
11687         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
11688         gtkintl.h
11689         
11690         * gtk/gtkcellrenderer.c: Remove definition of _ and include
11691         gtkintl.h
11692         (gtk_cell_renderer_get_property): remove calls to g_value_init
11693
11694         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
11695         gtkintl.h
11696
11697         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
11698         and include gtkintl.h
11699         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
11700         property names
11701
11702         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
11703         GtkTreeSelection
11704         (_gtk_tree_selection_new_from_with_view): rename, return
11705         GtkTreeSelection
11706         (_gtk_tree_selection_set_tree_view): rename with uscore
11707         (gtk_tree_selection_get_selected): fill in the "model" out param
11708         first, so it gets filled in even if we return at the top of the 
11709         function
11710         (gtk_tree_selection_real_select_all): add a comment and an else{}
11711         to clarify this a bit
11712         (gtk_tree_selection_real_unselect_all): add the same else{}
11713
11714         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
11715         set_tree_view to have underscore prefixes, move them to the
11716         private header, fix return type of new_with_tree_view
11717         (struct _GtkTreeSelection): mark struct
11718         fields private  
11719
11720         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
11721         GtkTreeModelFlags, not a guint
11722         (gtk_tree_path_prev): return gboolean not gint
11723         (gtk_tree_path_up): return gboolean not gint
11724
11725         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
11726         return GtkTreeModelFlags, not a guint
11727
11728         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
11729         that child model is non-null before unrefing it
11730         (g_value_int_compare_func): make this a qsort compare func, not 
11731         a boolean predicate
11732
11733         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
11734         (add -umn to the end), and mark it unimplemented
11735         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
11736         I don't see what it's for - doesn't the model always sort itself?
11737         (gtk_tree_model_sort_set_compare): this had the wrong signature
11738
11739         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
11740         Fix the docs to say that it destructively replaces existing
11741         attributes (previously said that it added attributes).
11742         (gtk_tree_view_column_set_visible): canonicalize bool before
11743         equality testing. Also, check for realization before
11744         hiding/showing the tree_column->window; if this window could exist
11745         before realization, then it's busted and needs fixing, we can't 
11746         create GDK resources pre-realization. Also, remove
11747         superfluous queue_resize(), since set_size() does that for us.
11748         (gtk_tree_view_column_set_col_type): check realization before 
11749         using tree_column->window
11750
11751         * gtk/gtktreedatalist.c: fix filename in copyright notice
11752
11753 2000-12-31  Havoc Pennington  <hp@pobox.com>
11754
11755         * gtk/gtktextview.c: Rearrange all the
11756         scroll-while-dragging-or-selecting code to be different, not
11757         necessarily better. ;-)
11758         (gtk_text_view_scroll_to_mark): Change this
11759         function to take within_margin as a fraction instead of a pixel
11760         value, and to take alignment arguments (indicating where to align 
11761         the mark inside the visible area)
11762         
11763         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
11764         to GtkObject
11765
11766         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
11767         behavior so that offsets past the end of the line are not 
11768         allowed, and an offset equal to the line length moves the iterator
11769         to the next line
11770         (gtk_text_iter_set_line_index): make parallel change
11771         (gtk_text_iter_get_bytes_in_line): add this function
11772         
11773         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
11774         of byte indexes off the end of the line; byte index at the end of
11775         the line now returns FALSE and doesn't fill in the requested
11776         values, byte index past the end of the line is an error.  Also,
11777         don't allow -1 offset anymore, since its meaning is unclear.
11778
11779         This change exposes some bug in visual cursor motion, where we
11780         end up with a huge invalid byte index; needs fixing. Symptom of 
11781         bug is a crash when you hit up arrow.
11782         
11783         (_gtk_text_line_char_locate): match the change to byte_locate
11784
11785         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
11786         from start of line properly. fixes bug reported by Mikael
11787         Hermansson where backspace would delete all text before the
11788         cursor.
11789
11790 2000-12-30  Tor Lillqvist  <tml@iki.fi>
11791
11792         * gdk/win32/gdkwindow-win32.c
11793         (gdk_window_impl_win32_get_visible_region): New function, as in
11794         the X11 backend.
11795         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
11796         instead of duplicating the same code here.
11797
11798         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
11799         GDK_COLORMAP macro.
11800
11801         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
11802         destroy function.
11803         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
11804         access that.
11805
11806         * gtk/gtk.def: Update.
11807
11808         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
11809
11810 2000-12-30  Havoc Pennington  <hp@pobox.com>
11811
11812         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
11813         colormap on input only windows, to avoid special cases all over
11814         the code for these windows.
11815
11816 2000-12-26  Tor Lillqvist  <tml@iki.fi>
11817
11818         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
11819         we are on a palettized display ("PseudoColor" in X11), as the code
11820         for that doesn't work anyway, and never has.
11821
11822 2000-12-22  Alexander Larsson  <alexl@redhat.com>
11823
11824         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
11825         Don't use isprint() for chars > 255.
11826
11827 2000-12-21  Havoc Pennington  <hp@redhat.com>
11828
11829         * tests/testtreeview.c: more work
11830
11831 2000-12-21  Alexander Larsson  <alexl@redhat.com>
11832
11833         * docs/README.linux-fb:
11834         Update the docs to the new pangoft2 way.
11835
11836 2000-12-21  Alexander Larsson  <alexl@redhat.com>
11837
11838         * configure.in:
11839         For linux-fb get the pangoft2 cflags and libs. This needs a recent
11840         pango version.
11841         Remove modules/linux-fb/Makefile.
11842
11843         * gdk/linux-fb/gdkdrawable-fb2.c:
11844         Render glyphs using freetype.
11845
11846         * gdk/linux-fb/gdkfb.h:
11847         Add new fb-specific functions needed for managing windows.
11848
11849         * gdk/linux-fb/gdkmain-fb.c:
11850         Remove gdk_font_init/fini() calls.
11851
11852         * gdk/linux-fb/gdkpango-fb.c:
11853         Remove old implementation. Use pangoft2 instead.
11854
11855         * gdk/linux-fb/gdkprivate-fb.h:
11856         Remove PangoFBFont and related stuff.
11857
11858         * gdk/linux-fb/gdkwindow-fb.c:
11859         Implement drawable->get_visible_region.
11860         Implement support for _gdk_window_set_child_handler () and
11861         _gdk_window_get_decorations().
11862
11863         * modules/Makefile.am:
11864         Remove linux-fb subdir.
11865
11866         * modules/linux-fb/*:
11867         Removed all.
11868         
11869 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
11870
11871         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
11872         calls, as they are no longer needed.
11873
11874         * gtk/gtktreemodelsort.c: Fix up the comparison code.
11875         
11876         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
11877         figure out how to emit a signal on an interface.
11878
11879 2000-12-20  Havoc Pennington  <hp@redhat.com>
11880
11881         * tests: new directory to contain tests, gtk/test* should move
11882         here sometime (with appropriate on-cvs-server hackery)
11883
11884         * tests/testtreeview.c, tests/Makefile.am: a test
11885         
11886         * configure.in (AC_OUTPUT): add tests/Makefile
11887
11888         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
11889         and "invisible_set" which were missing
11890
11891         * gtk/gtkrbtree.h: some cheesy indentation fix
11892         
11893 2000-12-20  Alexander Larsson  <alexl@redhat.com>
11894
11895         * gtk/gtkinvisible.c (gtk_invisible_realize):
11896         Attach the style to the window so that the style it is not
11897         leaked when unrealizing the window.
11898
11899 2000-12-18  Havoc Pennington  <hp@redhat.com>
11900
11901         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
11902         begin/end user action where appropriate
11903         (gtk_text_view_commit_handler): add begin/end user action
11904
11905         * gtk/gtktextbuffer.c: add begin/end user action signals, and
11906         bracket interactive operations with begin/end user action pair.
11907         
11908         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
11909         "interactive" arg from insert_text and delete_text signals.
11910         Add begin_user_action, end_user_action signals
11911         (gtk_text_buffer_begin_user_action): 
11912         (gtk_text_buffer_end_user_action): New functions to delimit 
11913         a user-visible action
11914
11915         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
11916         signals.
11917         
11918 2000-12-18  Havoc Pennington  <hp@redhat.com>
11919
11920         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
11921         was pretty non-working.
11922
11923         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
11924         by passing the length to g_utf8_validate().
11925
11926 2000-12-16  Havoc Pennington  <hp@pobox.com>
11927
11928         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
11929         Port to GObject, can go back in gdk-pixbuf after setting up 
11930         a gdk-pixbuf-marshal.h header over there.
11931
11932         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
11933         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
11934         args
11935         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
11936         set
11937         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
11938         here, do it when we create the buttons later
11939         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
11940         (gtk_tree_view_map): paranoia checks that column->button is shown 
11941         and unmapped
11942         (gtk_tree_view_size_request): only request visible children.
11943         Move header size calculation in here, for cleanliness, and 
11944         to maintain invariants for child widgets if we eventually 
11945         let users set different children inside the buttons
11946         (gtk_tree_view_map_buttons): factor out code to map buttons,
11947         since it was being called several times
11948         (gtk_tree_view_size_allocate_buttons): move_resize the drag
11949         windows instead of just moving them; their height may change 
11950         if we allow random widgets in there, or the theme changes.
11951         (gtk_tree_view_size_allocate): move button size allocation 
11952         above emitting the scroll signals, to ensure a sane state when we
11953         hit user code
11954         (gtk_tree_view_button_release): remove queue_resize after
11955         tree_view_set_size(), set_size() will handle any resize queuing
11956         that's needed
11957         (gtk_tree_view_focus_in): just queue a draw, don't fool with
11958         draw_focus goo
11959         (gtk_tree_view_focus): use gtk_get_current_event() and
11960         gdk_event_get_state()
11961         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
11962         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
11963         semicolon
11964         (gtk_tree_view_create_button): show the button here
11965         (gtk_tree_view_button_clicked): actually emit the clicked signal
11966         on the column
11967         (_gtk_tree_view_set_size): return right away if the size is
11968         unchanged, as a cheesy optimization
11969         (gtk_tree_view_setup_model): rename set_model_realized to 
11970         setup_model to match the flag that indicates whether we've 
11971         called it
11972         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
11973         exist, because set_scroll_adjustment does that and it shouldn't
11974         matter what order you call these in
11975         (gtk_tree_view_get_vadjustment): ditto
11976         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
11977         for paranoia
11978         (gtk_tree_view_set_headers_visible): call
11979         gtk_tree_view_map_buttons() instead of using cut-and-paste code
11980         (gtk_tree_view_append_column): clarify whether the return value
11981         is the count of columns before or after, and do the increment 
11982         separately from the return statement so you can tell from the code.
11983         (gtk_tree_view_remove_column): ditto
11984         (gtk_tree_view_insert_column): ditto
11985         (gtk_tree_view_get_column): remove g_return_if_fail for columns
11986         outside the existing range, the docs say that outside-range
11987         columns are allowed, so we handle them as documented. (Presumably
11988         this allows a nice loop with column != NULL as test.)
11989         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
11990         mean (left/right/center etc.).
11991         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
11992         (gtk_tree_view_expand_row): add docs
11993         (gtk_tree_view_collapse_row): add docs
11994
11995         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
11996         function to emit the clicked signal on a column
11997         
11998         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
11999         state of an event
12000         (gdk_event_get_time): don't treat GDK_SCROLL 
12001         as a button event, remove default case from switch so gcc 
12002         will whine if we don't explicitly handle all event types
12003
12004         * gtk/gtktreeselection.h: added some FIXME 
12005         
12006         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
12007         "columns" to "n_columns" and "column" to "columns" for clarity
12008
12009 2000-12-16  Havoc Pennington  <hp@pobox.com>
12010         
12011         * gtk/gtktextiter.c: General cleanup of the log attr iteration
12012         stuff. This should make e.g. the delete key work again in the
12013         text widget...
12014         (gtk_text_iter_forward_cursor_positions): handle negative count
12015         (gtk_text_iter_backward_cursor_positions): handle negative count
12016         (gtk_text_iter_forward_word_ends): handle negative count
12017         (gtk_text_iter_backward_word_starts): handle negative count
12018
12019         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
12020         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
12021         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
12022         GObject. No doubt will cause breakage.
12023
12024         * demos/gtk-demo/textview.c: remove hacks around
12025         non-GObject-ification of the text objects
12026
12027         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
12028         the text tag
12029         
12030 2000-12-14  Havoc Pennington  <hp@pobox.com>
12031
12032         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
12033         that we have Xrender
12034
12035 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
12036
12037         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
12038         Add two virtualized functions gdk_drawable_get_clip_region - to
12039         get the clip region when drawing.
12040         
12041         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
12042         use invalidate_region.
12043
12044         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
12045         region.
12046
12047         * acconfig.h configure.in: Check for Xft. For now, assume
12048         that if Xft is found, Pango was compiled with Xft support
12049         as well.
12050
12051         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
12052         gdk_colormap_query_color().
12053         
12054         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
12055         with Xft if appropriate.
12056
12057         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
12058         a pangoxft context if we have XFT and the environment
12059         variable GD_USE_XFT is set.
12060         
12061         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
12062         and also possibly an XftDraw structure.
12063
12064         * gtk/gtkfontsel.c: Handle the case where the font from the
12065         style doesn't match any of the fonts a bit better.
12066         
12067         * gtk/testgtk.c: Add tabs between directional segments for
12068         hebrew/arabic test. (Not really necessary, just a little
12069         prettier.)
12070
12071 2000-12-14  Havoc Pennington  <hp@redhat.com>
12072
12073         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
12074         reading a file
12075
12076 2000-12-14  Havoc Pennington  <hp@redhat.com>
12077
12078         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
12079         unused call to get_last_line()
12080
12081         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
12082         here until boxed is working (and maybe after that - we should
12083         really not gratuitously break old code)
12084
12085         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
12086         specific types for font_desc and tabs args, move them to
12087         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
12088         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
12089
12090         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
12091         use GTK_TYPE_POINTER for signal signatures as a hack-around
12092
12093         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
12094         PangoTabArray
12095
12096         * gtk/gtktextlayout.c (line_display_iter_to_index): 
12097         make static
12098         (line_display_index_to_iter): make static
12099
12100         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
12101         to marshal a string not a boxed
12102
12103         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
12104
12105         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
12106         since the UTF-8 isn't validated yet
12107
12108         * gtk/gtktextsegment.c (char_segment_check_func): don't require
12109         lines to end in '\n'
12110         
12111         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
12112         forward_to_delimiters, and grapheme boundaries
12113         (gtk_text_view_delete_from_cursor): properly handle non-newline
12114         delimiters, and grapheme boundaries
12115
12116         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
12117         to gtk_text_iter_forward_to_delimiters, and make it work properly
12118         if empty lines end with a character other than '\n'
12119
12120         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
12121         position
12122
12123 2000-12-15  Tor Lillqvist  <tml@iki.fi>
12124
12125         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
12126
12127         * gtk/gtk.def
12128         * gdk/gdk.def: Update.
12129
12130         * gdk/win32/gdkmain-win32.c
12131         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
12132         gdkmain-win32.c here.
12133
12134         * gdk/win32/makefile.mingw.in (all): No need to make
12135         gdk-win32res.o here, the makefile one step up will call us to make
12136         it.
12137
12138         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
12139         gdkkeys-win32.
12140
12141         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
12142
12143         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
12144         call to g_source_add().
12145
12146         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
12147         leak. Thanks to Andreas Kemnade.
12148
12149 2000-12-13  Havoc Pennington  <hp@pobox.com>
12150
12151         * gtk/gtktextbtree.h: Remove double _ in front of some functions
12152
12153         * gtk/gtktext*.[hc]: update accordingly
12154         
12155 2000-12-13  Havoc Pennington  <hp@pobox.com>
12156
12157         * gtk/gtktextbtree.h: Put _ in front of every function in this 
12158         header file
12159
12160         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
12161
12162 2000-12-13  Alex Larsson  <alexl@redhat.com>
12163
12164         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
12165         Add support for ps2 intellimouse.
12166
12167         * gdkkeyboard-fb.c:
12168         Move shift-F1 repaint handling to xlate handler only.
12169         
12170         * docs/README.linux-fb:
12171         Add imps2 to docs.
12172         Document the new refresh keys.
12173         
12174 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
12175
12176         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
12177
12178         * gtk/gtkbox.c: change property types from (u)long to (u)int for
12179         ::position and ::padding.
12180
12181         * gtk/gtkcontainer.c: make ::border_width an INT property.
12182
12183         * gtk/gtkpacker.c: make ::position an INT property.
12184
12185         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
12186         guard against NULL h/v scrollbars, since this is used at construction
12187         time.
12188
12189         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
12190         internal gtk_clist_constructor().
12191
12192         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
12193         gtk_ctree_constructor().
12194
12195         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
12196         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
12197
12198         * docs/reference/Makefile.am: fun stuff, disabled docs generation
12199         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
12200
12201         * gtk/gtkwidget.[hc]:
12202         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
12203         and gtk_widget_get().
12204         (gtk_widget_new): use g_object_new_valist().
12205         (gtk_widget_set): use g_object_set_valist().
12206
12207         * gtk/gtkobject.[hc]:
12208         removed gtk_object_arg_get_info(), gtk_object_getv(),
12209         gtk_object_query_args(), gtk_object_newv(),
12210         gtk_object_class_add_signals(),
12211         gtk_object_class_user_signal_new(),
12212         gtk_object_class_user_signal_newv(),
12213         gtk_object_arg_set(), gtk_object_arg_get(),
12214         gtk_object_args_collect(),
12215         gtk_object_default_construct(),
12216         gtk_object_constructed(),
12217         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
12218         removed nsignals, signals and n_args members from GtkObjectClass.
12219         (gtk_object_new): use g_object_new_valist().
12220         (gtk_object_set): use g_object_set_valist().
12221         (gtk_object_get): use g_object_get_valist().
12222         
12223         * gtk/gtkcompat.h: define gtk_object_default_construct().
12224         
12225         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
12226         g_object_new().
12227
12228         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
12229         fucntions, cleaned up method assignments (make sure your structures
12230         are setup properly before calling out). removed all GTK_CONSTRUCTED
12231         hacks ;)
12232
12233 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
12234
12235         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
12236         off-by-one error in checks. (Dave Lambert)
12237
12238 2000-12-12  Alexander Larsson  <alexl@redhat.com>
12239
12240         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
12241         Don't free gdk_fb_keyboard twice.
12242
12243 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
12244
12245         * gtk/testgtk.c:
12246         (create_tooltips): 
12247         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
12248         use GObject swapped_signal:: properties instead.
12249
12250         * gtk/gtkcellrenderertoggle.c: 
12251         * gtk/gtkcellrenderertextpixbuf.c: 
12252         * gtk/gtkcellrenderertext.c: 
12253         * gtk/gtkcellrendererpixbuf.c: 
12254         * gtk/gtkcellrenderer.c:
12255         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
12256         missing warnings for invalid property ids, install properties
12257         with g_object_class_install_property() now.
12258         
12259         * gtk/gtksignal.c:
12260         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
12261         
12262 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
12263         
12264         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
12265         to determine if a window is the focus widget within
12266         its toplevel.
12267
12268         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
12269         to be boolean.
12270
12271         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
12272         of the case where the container CAN_FOCUS to here instead
12273         of having it in each individual move-the-focus place.
12274
12275         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
12276         focusing to be geometric in a much more obvious sense. Arrowing
12277         around is still non-intuitive because it isn't perfect and
12278         because entries, etc, grab the arrow keys, but it at least
12279         usually will do what you expect now.
12280         
12281         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
12282         file.
12283
12284         * gtk/gtknotebook.c: Change tabs to be a single item in
12285         the focus chain. Make movement of focus on tabs with arrow
12286         keys wrap around.
12287         
12288         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
12289         CHECK_FIND_CHILD macro to give informative error messages
12290         instead of silent returns.
12291
12292         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
12293         flag since we handle GdkReturn on the tabs.
12294
12295         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
12296         windows rather than sending expose events directly.
12297
12298         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
12299         definition for GtkNotebookPage into .c file, since it is private.
12300
12301         * gtk/testgtk.c (create_notebook): Add option for 
12302         testing borderless notebook.
12303
12304         * gtk/testgtk.c (page_switch): Removed egregious poking
12305         around in GTK+ internals.
12306
12307         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
12308
12309         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
12310         properly through gtk_clist_focus. Make the title headers a
12311         single item in the tab-focus chain, and make left-right wrap
12312         around.
12313
12314         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
12315         focus method so that wrapping around works properly.
12316
12317         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
12318         that is handled for the widget now. 
12319
12320 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
12321
12322         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
12323         widgets as TOPLEVEL.
12324
12325         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
12326         TOPLEVEL widgets are containers.
12327
12328         * gtk/gtkinvisible.h: Remove useless include.
12329
12330 2000-12-11  Havoc Pennington  <hp@redhat.com>
12331
12332         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
12333         Handle chopping off \r\n and 0x2029 in addition to \n before
12334         passing to PangoLayout
12335
12336         * gtk/gtkimcontextsimple.c
12337         (gtk_im_context_simple_get_preedit_string): 
12338         return an empty string if no match is pending
12339
12340         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
12341         assertion that the returned preedit string was sane
12342
12343         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
12344         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
12345         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
12346
12347 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
12348
12349         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
12350         Fix up finalizer to chain to its parent.
12351
12352 2000-12-11  Alexander Larsson  <alexl@redhat.com>
12353
12354         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
12355         Clearified the difference between the keyboard types. Wrote a note
12356         about the magic sysrq key to get out of raw mode.
12357
12358 2000-12-09  James Henstridge  <james@daa.com.au>
12359
12360         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
12361         member to hold masks for detecting the start of a protocol packet.
12362         (mouse_devs): add packet start masks for ps2 and ms device types.
12363         Left the mask for fidmour blank, as I have no idea what it should
12364         be.
12365         (handle_mouse_io): skip bytes until we get to the start of a
12366         packet.  My Logitech mouse seems to be passing an extra NULL pad
12367         byte, and GPM does a similar thing here.
12368         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
12369         this is the ms mouse driver.
12370         (gdk_fb_mouse_ms_packet): fix up button handling, which was
12371         completely broken except for button1.  It was checking the wrong
12372         bit in the packet for the status of the right mouse button, and
12373         wrongly assuming right == button2 rather than 3.  I fixed that and
12374         also added support for middle button (button2).
12375
12376 2000-12-08  Havoc Pennington  <hp@redhat.com>
12377
12378         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
12379         that cause a segfault on text insertion
12380
12381         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
12382         warning
12383
12384         * gtk/gtktextiter.c (test_log_attrs): use
12385         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
12386
12387         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
12388         Get log attrs for a line, using a cache stored on the buffer
12389         
12390         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
12391         reported by Jeff Franks
12392
12393 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
12394
12395         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
12396         /dev/ttyS0 -> /dev/mouse
12397
12398 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
12399
12400         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
12401         Added dummy gdk_fontset_load.
12402
12403 2000-12-08  Alexander Larsson  <alexl@redhat.com>
12404
12405         * docs/README.linux-fb:
12406         * docs/Makefile.am:
12407         Initial GtkFB docs.
12408         
12409         * gdk/linux-fb/Makefile.am:
12410         Define GDK_DATA_PREFIX.
12411
12412         * gdk/linux-fb/gdkmain-fb.c:
12413         Fix typo.
12414         Change default display to /dev/fb0.
12415
12416         * gdk/linux-fb/gdkpango-fb.c:
12417         Add $(prefix)/share/fonts/ to font path.
12418         
12419 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
12420
12421         * gdk/linux-fb/gdkkeyboard-fb.c:
12422         New file containing the abstracted keyboard driver. Most code
12423         taken from gdkinput-ps2.c
12424
12425         * gdk/linux-fb/gdkinput-ps2.c:
12426         Removed file.
12427         
12428         * gdk/linux-fb/Makefile.am:
12429         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
12430
12431         * gdk/linux-fb/gdkcolor-fb.c:
12432         display->fb was renamed to display->fb_fd.
12433
12434         * gdk/linux-fb/gdkcursor-fb.c:
12435         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12436
12437         * gdk/linux-fb/gdkinput.c:
12438         Moved gdk_input_init here from gdkinput-ps2.c
12439
12440         * gdk/linux-fb/gdkmain-fb.c:
12441         display->fb was renamed to display->fb_fd.
12442         Now the tty and the console is opened here instead
12443         of in the keyboard driver. Also check GDK_VT to see what
12444         tty to open.
12445         Move gdk_beep () here from gdkinput-ps2.c
12446         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12447
12448         * gdk/linux-fb/gdkmouse-fb.c:
12449         Add header.
12450         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12451         Return correct keyboard modifiers.
12452         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
12453
12454         * gdk/linux-fb/gdkprivate-fb.h:
12455         Add tty and vt info to display.
12456         Add orignal modeinfo storage to display
12457         Update global functions
12458
12459         * gdk/linux-fb/gdkwindow-fb.c:
12460         Added gdk_fb_window_find_focus().
12461         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12462
12463 2000-12-07  Havoc Pennington  <hp@pobox.com>
12464
12465         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
12466         function, noticed by Alex
12467
12468 2000-12-06  Elliot Lee  <sopwith@redhat.com>
12469
12470         * configure.in: Detect freetype properly
12471
12472         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
12473         above.
12474
12475 2000-12-06  Alexander Larsson  <alexl@redhat.com>
12476
12477         * gdk/linux-fb/Makefile.am:
12478         Add gdkmouse-fb.c
12479         
12480         * gdk/linux-fb/gdkmouse-fb.c:
12481         New file. Abstracted the mouse drivers a bit.
12482
12483         * gdk/linux-fb/gdkcursor-fb.c:
12484         The cursor hide/show functions was moved here from gdkinput-ps2.c.
12485
12486         * gdk/linux-fb/gdkinput-ps2.c:
12487         Removed old mouse handling code. Moved cursor handling code
12488         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
12489         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
12490         gdk_mouse_get_info.
12491
12492         * gdk/linux-fb/gdkmain-fb.c:
12493         Pass NULL pointers for x,y in gdk_mouse_get_info call.
12494
12495         * gdk/linux-fb/gdkprivate-fb.h:
12496         Removed public gdk_fb_find_common_ancestor, added and renamed
12497         functions for the new mouse handling code.
12498
12499         * gdk/linux-fb/gdkwindow-fb.c:
12500         Moved gdk_fb_window_send_crossing_events here. added global
12501         variable gdk_fb_window_containing_pointer. made
12502         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
12503         renamed to gdk_mouse_get_info.
12504
12505 2000-12-06  Alexander Larsson  <alexl@redhat.com>
12506
12507         * gdk/linux-fb/gdkevents-fb.c:
12508         Update to match latest gmain/gsource changes.
12509
12510         * gdk/linux-fb/gdkinput-ps2.c:
12511         Bogus gdk_keymap_get_entries_for_keycode implementation so that
12512         it links. Will be implemented later.
12513
12514 2000-12-03  Havoc Pennington  <hp@pobox.com>
12515
12516         * gdk/Makefile.am: add gdkkeys.[hc]
12517
12518         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
12519         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
12520
12521         * acconfig.h, configure.in: add checks and command line options
12522         for XKB
12523
12524         * gdk/x11/gdkkeys-x11.c: Implement the above functions
12525         
12526         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
12527         and group in the key event
12528
12529         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
12530         field with the low-level hardware key code, and a group
12531         field with the keyboard group
12532
12533         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
12534         and declare a couple globals used for keymap handling
12535         
12536         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
12537         hold down Shift-Control and type a hex number to get a Unicode 
12538         character corresponding to the hex number
12539         (gtk_im_context_simple_get_preedit_string): Fix cursor position
12540         (return bytes not chars)
12541
12542 2000-12-05  Elliot Lee  <sopwith@redhat.com>
12543
12544         * gdk/gdkcolor.h: Make GdkColor specify element sizes
12545         to avoid waste on 64-bit platforms.
12546
12547 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
12548
12549         * INSTALL: Fix link to PNG home, remove reference
12550         to fribidi.
12551
12552         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
12553         
12554         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
12555         tested.)
12556
12557         * gtk/gtkcheckmenuitem.c: Permanently turn on
12558         always_show_toggle.
12559
12560         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
12561         be NULL. (Vladimir Klebanov, #26545)
12562
12563         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
12564         some signed/unsigned comparison problems. (#6510,
12565         David Kaelbling)
12566
12567         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
12568         return type to boolean (Oskar Liljeblad, #18648)
12569
12570 2000-12-05  Alexander Larsson  <alexl@redhat.com>
12571
12572         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
12573         Remove bogus colormap setting.
12574
12575 2000-12-05  Alexander Larsson  <alexl@redhat.com>
12576
12577         * gdk/linux-fb/gdkcolor-fb.c:
12578         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
12579
12580         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
12581         Must set colormap.
12582         
12583 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
12584
12585         * docs/tutorial/gtk-tut.sgml: DND updates
12586
12587 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
12588
12589         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
12590         Remove old debug g_warning().
12591         (gdk_fb_draw_drawable): The src argument can be either a wrapper
12592         or an implementation, just pass the implementation to draw_drawable_2.
12593         
12594         * gdk/linux-fb/gdkprivate-fb.h:
12595         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
12596
12597         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
12598         clear and invalidate area when window is destroyed.
12599         (send_map_events): Remove old commented out code.
12600
12601 2000-12-05  Alexander Larsson  <alexl@redhat.com>
12602
12603         * gdk/linux-fb/gdkpango-fb.c:
12604         Use italic instead of oblique in font aliases.
12605         
12606         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
12607         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
12608         other unsupported functions.
12609
12610 2000-12-04  Havoc Pennington  <hp@redhat.com>
12611
12612         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
12613
12614         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
12615
12616         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
12617
12618         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
12619         hack to avoid infinite loops (synthetic expose event) - 
12620         Owen has more appropriate fixes in a branch he'll check in later.
12621
12622         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
12623         separator, CR, and CRLF as line ends
12624
12625         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
12626         into lines using pango_find_paragraph_boundary(); other bits of
12627         the widget are still going to be broken if the boundary isn't '\n'
12628         though
12629
12630 2000-12-04  Alexander Larsson  <alexl@redhat.com>
12631
12632         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
12633         multiply.
12634
12635         * gdk/linux-fb/gdkpango-fb.c:
12636         Copied some 26.6 scaling macros from pango to clean up the rounding.
12637         (pango_fb_font_get_glyph_info): Correct sign on x value.
12638
12639         * gdk/linux-fb/gdkprivate-fb.h:
12640         Removed unreferenced external functions.
12641
12642         * modules/linux-fb/Makefile.am: Use ` instead of '.
12643
12644         * modules/linux-fb/basic.c:
12645         Remove dead code. In particular the dummy lang engine which broke all
12646         pango layouts in GtkFB. Don't include tables-big.i anymore.
12647
12648         * modules/linux-fb/tables-big.i:
12649         Upgrade to latest version from pango. Left for reference, basic_ranges
12650         moved to basic.c.
12651         
12652 2000-12-04  Havoc Pennington  <hp@redhat.com>
12653
12654         Fix bugs Alex found:
12655         
12656         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
12657         to "draw"
12658
12659         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
12660
12661         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
12662
12663         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
12664         implementation in here, apparently the expose() implementation was
12665         dead code.
12666
12667 2000-12-04  Alexander Larsson  <alexl@redhat.com>
12668
12669         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
12670         Return positive descent.
12671
12672 2000-12-02  Havoc Pennington  <hp@pobox.com>
12673
12674         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
12675         method and signal
12676         
12677         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
12678         calls gdk_window_process_updates() to push the exposes through
12679         (gtk_widget_class_init): No more draw signal, no
12680         gtk_widget_real_draw()  
12681         
12682         * gtk/gtkbin.c (gtk_bin_draw): remove
12683
12684         * gtk/gtkbox.c (gtk_box_draw): remove
12685
12686         * gtk/gtkbutton.c (gtk_button_draw): remove
12687
12688         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
12689
12690         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
12691
12692         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
12693
12694         * gtk/gtkclist.c (gtk_clist_draw): remove
12695
12696         * gtk/gtkentry.c (gtk_entry_draw): remove
12697
12698         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
12699
12700         * gtk/gtkfixed.c (gtk_fixed_draw): remove
12701
12702         * gtk/gtkframe.c (gtk_frame_draw): remove
12703
12704         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
12705
12706         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
12707
12708         * gtk/gtklayout.c (gtk_layout_draw): remove
12709
12710         * gtk/gtklist.c (gtk_list_draw): remove
12711
12712         * gtk/gtklistitem.c (gtk_list_item_draw): remove
12713
12714         * gtk/gtkmenu.c (gtk_menu_draw): remove
12715
12716         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
12717
12718         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
12719
12720         * gtk/gtknotebook.c (gtk_notebook_draw): remove
12721
12722         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
12723
12724         * gtk/gtkpacker.c (gtk_packer_draw): remove
12725
12726         * gtk/gtkrange.c (gtk_range_draw): remove
12727
12728         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
12729
12730         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
12731
12732         * gtk/gtktable.c (gtk_table_draw): remove
12733
12734         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
12735
12736         * gtk/gtktext.c (gtk_text_draw): remove
12737
12738         * gtk/gtktextview.c (gtk_text_view_draw): remove
12739
12740         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
12741
12742         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
12743
12744         * gtk/gtktree.c (gtk_tree_draw): remove
12745
12746         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
12747
12748         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
12749
12750         * gtk/gtkviewport.c (gtk_viewport_draw): remove
12751
12752         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
12753
12754         * gtk/gtkvscale.c (gtk_vscale_draw): remove
12755
12756         * gtk/gtkwindow.c (gtk_window_draw): remove
12757
12758 2000-20-01  Anders Carlsson  <andersca@gnu.org>
12759
12760         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
12761         a GtkToggleButton is both insensitive and active, it was being
12762         drawn by the GtkButton draw handler which doesn't check the
12763         state. Now it's calling gtk_toggle_button_paint instead.
12764         
12765 2000-12-01  Havoc Pennington  <hp@redhat.com>
12766
12767         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
12768         dangling pointers to the appearance attributes from the 
12769         line display
12770
12771         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
12772         width/height to mean "full width/height of drawable"
12773
12774         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
12775         click to select word/line
12776         
12777         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
12778         when getting log attrs. Get a slice, so that pixmaps and stuff
12779         are properly handled.
12780
12781         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
12782         paste into the selection (replaces selection now, previously
12783         crashed or added to selection). Reveals longstanding btree bug -
12784         select multiple lines, middle-click on the selection, boom. This
12785         isn't related to my changes though.
12786
12787         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
12788         PangoLogAttrs changes
12789         (gtk_entry_move_backward_word): ditto
12790
12791         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
12792         functions return bool whether the iter moved onto a
12793         dereferenceable position.
12794  
12795         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
12796         functions for motion in terms of display lines.
12797
12798         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
12799         get the buffer a mark is inside
12800         
12801 2000-12-01  Alexander Larsson  <alexl@redhat.com>
12802
12803         * gdk/linux-fb/Makefile.am:
12804         * modules/linux-fb/Makefile.am:
12805         Freetype 2 final uses freetype-config
12806
12807         * gdk/linux-fb/gdkpango-fb.c:
12808         Upgrade to use Freetype 2 final.
12809         More flexible support for font aliases, this also fixes a bug with
12810         GtkFontSelector, as the aliases must be visible in the font/family list,
12811         or GtkFontSelector reads uninitialized memory.
12812
12813 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
12814
12815         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
12816         XGetIMValues to properly terminate variable argument list, and do
12817         NULL return check for ic_values and xim_styles.
12818
12819         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
12820         Restore preedit state after XmbResetIC().
12821         
12822         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
12823         XvaCreateNestedList() should take XvaNestedList, but not
12824         XvaNestedList*.
12825
12826         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
12827         preedit_draw_callback, preedit_caret_callback): Match
12828         "preedit-changed" signal name to "preedit_changed" to be
12829         consistent to the spec.
12830
12831         * gtk/gtkimcontextsimple.c (check_table):
12832         Match "preedit-changed" to "preedit_changed" to be consistent
12833         to the spec.
12834
12835 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
12836
12837         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
12838         gc->clip_region == NULL>
12839
12840 2000-11-30  Tor Lillqvist  <tml@iki.fi>
12841
12842         Changes by Hans Breuer:
12843         
12844         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
12845         Dont't use negative width and height as max_hints. This fixes
12846         Owen's recent testgtk changes for win32.
12847
12848         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
12849         gdk_win32_hdc_release): These are exported and may be called with
12850         other drawable types than our GdkDrawableImplWin32 (?).
12851
12852         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
12853         so always #define USE_BACKING_STORE.
12854
12855         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
12856         of printf for debugging output.
12857
12858         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
12859         
12860         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
12861
12862         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
12863         declaration.
12864
12865         * gtk/gtktexttypes.h: Ditto.
12866
12867         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
12868         (GDK_VoidSymbol) also if in case of arg check failure.
12869
12870         * gtk/gtkimcontextsimple.c
12871         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
12872         position to the pointer, but to the variable it points to.
12873
12874         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
12875
12876         * gtk/gtk.def: Updates.
12877
12878 2000-11-29  Elliot Lee  <sopwith@redhat.com>
12879
12880         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
12881         GTK_TYPE_TREE_MODEL.
12882
12883 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12884
12885         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
12886         Set the size of the font from the description.
12887         (gdk_text_width): Gross hack that calculates the width
12888         of text by text_length * size/2. This is necessary because
12889         GtkLabel does some ugly gtk_string_width call to calculate
12890         an good size.
12891         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
12892
12893 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
12894
12895         * docs/tutorial/gtk-tut.sgml: DND updates
12896
12897 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12898
12899         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
12900         If you pass width or height == 0 to gdk_window_clear_area they
12901         should be calculated from the window size.
12902
12903 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12904
12905         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
12906         a grab, but no grab-cursor, use the cursor from the grabbed
12907         window. (gdk_fb_window_send_crossing_events): Send normal
12908         enter/leave notifications if grab and owner_events == TRUE.
12909
12910 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12911
12912         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
12913         Do implicit button grabs, even if the window doesn't
12914         want the event.
12915         (gdk_fb_window_send_crossing_events): If there is a
12916         grab, only the grabbed window gets normal enter/leave
12917         notifications. On ungrab go from grabbed window to current.
12918         Don't send any notification to b when propagating from c -> b.
12919         If setting a grab on window, don't set prev_window.
12920         (handle_mouse_input): Send enter/leave events to the window the
12921         mouse is over, not the grabbed one.
12922         
12923 2000-11-28  Elliot Lee  <sopwith@redhat.com>
12924
12925         * gdk/gdkregion-generic.c: Zap warning.
12926         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
12927         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
12928
12929 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
12930
12931         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
12932         The cursor should be hidden if it is part of either the
12933         source or destination region. Not only if it is in both.
12934         (gdk_window_set_transient_for): Silence warnings.
12935
12936 2000-11-28  Alexander Larsson  <alexl@redhat.com>
12937
12938         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
12939         The default mode in X is Pie Arcs, therefore that is
12940         what Gtk+ uses.
12941
12942 2000-11-28  Alexander Larsson  <alexl@redhat.com>
12943
12944         * gdk/linux-fb/gdkinput-ps2.c:
12945         Implement correct EnterNotify/LeaveNotify:
12946         (gdk_fb_window_send_crossing_events): New function that sends
12947         all GdkCrossingEvents from the last mouse-window to the specified
12948         destination.
12949         (gdk_fb_window_visibility_crossing): Removed function.
12950         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
12951         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
12952         instead of gdk_window_get_pointer() for better readability.
12953
12954         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
12955         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
12956
12957         * gdk/linux-fb/gdkprivate-fb.h:
12958         removed gdk_fb_window_visibility_crossing, added
12959         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
12960
12961         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
12962         New function that finds the least common ancestor of two windows.
12963         (gdk_window_show, gdk_window_hide):
12964         Use gdk_fb_window_send_crossing_events.
12965         (gdk_fb_window_move_resize): Send configure events to toplevel
12966         windows. Use gdk_fb_window_send_crossing_events.
12967
12968 2000-11-27  Havoc Pennington  <hp@redhat.com>
12969
12970         * gtk/gtkprivate.h (enum): Remove a trailing comma
12971
12972 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
12973
12974         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
12975         the "changed" callback of the adjustment.  We need to redraw the
12976         spin button's arrows when the adjustment's range changes.
12977         (adjustment_changed_cb): Draw the arrows.
12978         (gtk_spin_button_value_changed): Draw the arrows.
12979
12980 2000-11-23  Alexander Larsson  <alexl@redhat.com>
12981
12982         * gdk/linux-fb/gdkselection-fb.c:
12983         Initial selection implementation.
12984
12985         * gtk/gtkselection.c:
12986         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
12987         requestor in gtk_selection_request.
12988         
12989         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
12990         Added gdk_selection_property atom.
12991
12992         * gdk/linux-fb/gdkprivate-fb.h:
12993         Export _gdk_selection_window_destroyed.
12994         Removed mask_off_x/y from GdkCursorPrivateFB.
12995         Removed hbearing, added top, left to PangoFBGlyphInfo.
12996
12997         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
12998         Call _gdk_selection_window_destroyed
12999         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
13000         the root window has been created.
13001         (static_dx_hack, static_dy_hack, compare_draw_rects,
13002         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
13003         in region. They are already sorted. Instead just traverse them in
13004         reverse if draw_direction < 0.
13005         
13006         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
13007         Double-clicks must be sent after the normal button_press.
13008         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
13009         
13010         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
13011         Pass _gdk_fb_screen_gc instead of NULL.
13012
13013         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
13014         Initialize gdk_selection_property.
13015         (gdk_event_make): Remove unused code.
13016
13017         * gdk/linux-fb/gdkcursor-fb.c:
13018         Make the pixmap for the cursor the same size as the mask. Also remove
13019         the mask_off_x/y fields in GdkCursorPrivateFB and combine
13020         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
13021         Now the whole cursor is visible.
13022
13023         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
13024         Fix bug where xdest+height instead of ydest+height was used
13025         to calculate if the source and dest overlapped. This fixes the
13026         redraw bug when the main window in testgtk was scrolled when
13027         partially covered by a tall window.
13028         Copy rectangles in region in order depending on draw_direction.
13029         Also moved the draw_direction flipping of start_y and end_y into
13030         the gc functions, as this might not be what all of them want.
13031         (gdk_fb_draw_lines): Support dashed lines.
13032         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
13033         so that the text is positioned correctly (was 1 pixel high).
13034
13035         gdk/linux-fb/gdkgc-fb.c:
13036         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
13037         all lines were drawn a pixel to short. Also checked the default of
13038         the rest of the values, and they're the same as X now.
13039
13040         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
13041         Clean up pixel positioning of the glyphs. Just use bgy->top and
13042         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
13043         to all divisions to get correct rounding behaviour.
13044
13045         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
13046         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
13047         Moved start_y/end_y flip into draw_drawable implementations.
13048         Flip also x rendering when draw_direction < 0.
13049         Remove unneccesary multiply with draw_direction.
13050
13051 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
13052
13053         * docs/tutorial/gtk-tut.sgml:
13054           - get rid of gtk_toggle_button_toggled FUD
13055           - start DND section - needs work - based on:
13056                 http://wolfpack.twu.net/docs/gtkdnd/
13057
13058 2000-11-22  Alexander Larsson  <alexl@redhat.com>
13059
13060         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
13061         Correct calculation of font metrics. Now GtkEntrys have sane
13062         size.
13063
13064 2000-11-22  Alexander Larsson  <alexl@redhat.com>
13065
13066         * gdk/gdktypes.h:
13067         Add new type GdkSpan
13068         
13069         * docs/reference/gdk/gdk-sections.txt,
13070         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
13071         gdk/gdkregion.h:
13072         Implement and document gdk_region_spans_intersect_foreach.
13073
13074         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
13075         Add new file gdkrender-fb.c which contains all core
13076         rendering code.
13077         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
13078         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
13079         (optimized rectangle fillers).
13080
13081         * gdk/linux-fb/gdkdrawable-fb2.c:
13082         Move all rendering code to gdkrender-fb.c.
13083         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
13084         Use the new span intersection functions in gdk_fb_fill_spans.
13085         gdk_fb_draw_rectangle() clips filled rectangles and calls
13086         gc->fill_rectangle with the result.
13087         gdk_fb_fill_spans() gets extra argument "sorted".
13088
13089         * gdk/linux-fb/gdkevents-fb.c:
13090         Remove unused includes and defines.
13091         New function gdk_fb_get_time() to get correct time for events.
13092
13093         * gdk/linux-fb/gdkinput-ps2.c:
13094         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
13095         Make sure to set the time of all events.
13096
13097         * gdk/linux-fb/gdkmain-fb.c:
13098         Use gdk_fb_get_time ().
13099
13100         * gdk/linux-fb/gdkprivate-fb.h:
13101         New virtual GC calls: fill_span & fill_rectangle.
13102         Export gdk_fb_get_time().
13103         gdk_fb_fill_spans() gets extra argument "sorted".
13104
13105         * gdk/linux-fb/mi*.c:
13106         Use GdkSpan instead of GdkRectangle.
13107         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
13108         from XFree 4 source)
13109         
13110 2000-11-22    <jrb@redhat.com>
13111
13112         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
13113         reversing the order in an if statement will do.  Doing so managed
13114         to make the treemodelsort half work.  Other half will follow after
13115         I get the insert function fully fixed.
13116
13117 2000-11-21  Elliot Lee  <sopwith@redhat.com>
13118         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
13119         more than 2 bits. Besides, I need to implement an evil hack. :)
13120
13121 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
13122
13123         * docs/tutorial/gtk-tut.sgml: minor corrections
13124
13125 2000-11-20  Jonathan Blandford <jrb@redhat.com>
13126         * gtk/gtktreemodelsort.h: Add convertion functions to let you
13127           convert to and from relative path's and iters.
13128
13129         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
13130           testing sorting functions a bit better.  Currently broken -- will
13131           fix in morning.
13132
13133 2000-11-20  Havoc Pennington  <hp@redhat.com>
13134
13135         * gtk/gtkwidget.c: Documented a bunch of functions in here
13136         (gtk_widget_realize): Warn if you try to realize
13137         a widget with no parent that isn't a toplevel
13138         (gtk_widget_intersect): return a gboolean
13139
13140 2000-11-20  Havoc Pennington  <hp@redhat.com>
13141
13142         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
13143         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
13144         scrolling to be implemented in GDK to finish. Also, right now
13145         we just size_allocate all children on every layout change,
13146         which is pretty lame. Test commented out of testtext.c, 
13147         until it works better.
13148
13149 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
13150
13151         * gdk/linux-fb/gdkdrawable-fb2.c:
13152         Removed unused arguments from gdk_fb_drawable_get_pixel().
13153
13154         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
13155         Renamed fidur specific mouse packet data in MouseDevice to
13156         generic. Used it in ps2 mouse handling code to avoid blocking
13157         reads.
13158
13159 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
13160
13161         * demos/gtk-demo/main.c: Changed to have the list become
13162         non-italic when the demo window is destroyed through an external
13163         event (like a close button).  Doing so found three bugs in the
13164         widget.
13165
13166         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
13167
13168         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
13169         we actually set the cell.
13170
13171         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
13172
13173         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
13174         free a leaked path.  Thanks memprof.
13175
13176 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
13177
13178         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
13179         off-by-one error when destroying allocated segments
13180         on failure. (Elliot)
13181
13182 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
13183
13184         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
13185         memleaks found by Evan Martin.
13186
13187 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
13188
13189         * Released 1.3.2
13190         
13191         * NEWS: Updates for 1.3.2
13192
13193 2000-11-17  Tor Lillqvist  <tml@iki.fi>
13194
13195         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
13196         but in general for window system specific events.
13197
13198         * gtk/gtk.def
13199         * gtk/makefile.mingw.in
13200         * gtk/makefile.msc.in: Update.
13201         
13202         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
13203
13204 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
13205
13206         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
13207         distribute gtk.immodules.
13208
13209         * gtk/Makefile.am (install-data-local): Don't install the
13210         gtk.immodules file created for the uninstalled modules;
13211         instead run gtk-query-immodules after install
13212
13213 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
13214
13215         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
13216         -rpath to the right install location.
13217
13218         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
13219         -export-dynamic.
13220
13221         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
13222         properly.
13223
13224 2000-11-15  Havoc Pennington  <hp@pobox.com>
13225
13226         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
13227         patch from Mikael Hermansson to temporarily stop blinking while
13228         the user is using the keyboard to type or navigate. 
13229
13230         Also, when blinking, stay on for longer than we stay off. Also,
13231         return from start_cursor_blink if !cursor_visible, to save
13232         checking that flag all over the place before we call
13233         start_cursor_blink.
13234
13235 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
13236
13237         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
13238         only contain a "fontset" line, which is now ignored.
13239
13240         * gtk/gtkentry.c (gtk_entry_button_release): Make 
13241         double-click-to-select-word work.
13242         
13243 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
13244
13245         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
13246         Don't move back one char when we are actually at the end of the 
13247         paragraph.
13248
13249 2000-11-15  Robert Brady  <robert@suse.co.uk>
13250
13251         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
13252         'o' < 'p'.
13253         
13254         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
13255         bind_textdomain_codeset.
13256
13257         (gtk_init_check): Make the warning about translating default:LTR
13258         sterner.
13259         
13260 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
13261
13262         * **/Makefile.am : remove unecessary rules for win32-specific
13263         config-substituted targets. If you want these rules, use
13264         --enable-maintainer-mode (called automatically by autogen.sh).
13265         Stops a lot of unneccessary make-time warnings.
13266
13267         * gtk/gtktext{layout,display}.c: Factor in total width as
13268         well as screen when figuring alignment for word-wrap as well as
13269         no wrap; this is necessary to handle lines that cannot be wrapped
13270         at all.
13271
13272 2000-11-15  Havoc Pennington  <hp@redhat.com>
13273
13274         * gtk/testtext.c: Implement essential color cycling feature
13275
13276 2000-11-15  Havoc Pennington  <hp@redhat.com>
13277
13278         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
13279         when we invalidate the main window.
13280
13281         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
13282         GtkTextView will now invalidate the side windows for us when text
13283         changes.
13284
13285 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
13286
13287         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
13288         unconditionally, since we may need to update the horizontal
13289         scrollbars even if the height didn't change.
13290
13291         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
13292         the extra attrs, since some of them affect size.
13293
13294         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
13295         x_offset correctly.
13296
13297 2000-11-15  Havoc Pennington  <hp@redhat.com>
13298
13299         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
13300         don't move the first line out into the margin, instead move the
13301         whole paragraph in order to make space for the first line within 
13302         the margin
13303
13304 2000-11-15  Havoc Pennington  <hp@redhat.com>
13305
13306         * gtk/gtktextview.c (changed_handler): offset redraw rect by
13307         xoffset in addition to yoffset, so horizontal scrolling doesn't
13308         break redraws
13309
13310 2000-11-15  Havoc Pennington  <hp@redhat.com>
13311
13312         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
13313         from the cursor
13314         (render_layout_line): fix reversed test that caused weird
13315         underlines to get drawn
13316
13317 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
13318
13319         * gdk/linux-fb/gdkprivate-fb.h:
13320         Fix debug macros.
13321         
13322 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
13323
13324         * gdk/linux-fb/gdkprivate-fb.h:
13325         Added virtual functions set_pixel, get_color,
13326         fill_span and draw_drawable to the GC.
13327         Added global _gdk_fb_screen_gc to use instead of
13328         NULL when drawing to the screen.
13329         Added _gdk_fb_gc_calc_state() prototype.
13330
13331         * gdk/linux-fb/gdkgc-fb.c:
13332         Call _gdk_fb_gc_calc_state() on any gc state change.
13333
13334         * gdk/linux-fb/gdkglobals-fb.c:
13335         Add _gdk_fb_screen_gc
13336                 
13337         * gdk/linux-fb/gdkdrawable-fb2.c:
13338         _gdk_fb_gc_calc_state() calculates best functions
13339         for the GC state and depth.
13340         Moved bpp specialized code to separate functions.
13341         Added optimized 24 bpp AA draw_drawable.
13342
13343         * gdk/linux-fb/gdkevents-fb.c:
13344         Silence gcc warning.
13345
13346         * gdk/linux-fb/gdkimage-fb.c:
13347         Use _gdk_fb_screen_gc
13348
13349         * gdk/linux-fb/gdkwindow-fb.c:
13350         Init and use _gdk_fb_screen_gc
13351
13352         * gdk/linux-fb/mitypes.h:
13353         Remove unused types.
13354
13355 2000-11-14  Havoc Pennington  <hp@pobox.com>
13356
13357         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
13358         to pixels
13359
13360 2000-11-14  Havoc Pennington  <hp@pobox.com>
13361
13362         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
13363
13364         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
13365         unknown char, no real reason we were using a variable. 
13366         Remove gtk_text_unknown_char variable. Fix all the text widget
13367         files accordingly.
13368
13369         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
13370         since the Unicode spec seems to prefer that character for our
13371         purposes.
13372
13373 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
13374
13375         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
13376         value of g_getenv() isn't freeable, so g_strdup it.
13377
13378         * modules/input/inuktitut.c: Inuktitut input method.
13379
13380         * modules/input/Makefile.am: Build this.
13381         
13382 2000-11-14  Elliot Lee  <sopwith@redhat.com>
13383
13384         * gtk/Makefile.am: Install gtk.immodules, needed for operation
13385         of gtk programs.
13386
13387 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
13388
13389         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
13390         reversed > that was causing Home to go to end of previous line.
13391
13392         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
13393         modified-keypresses (leave for bindings.)
13394
13395         * modules/input/Makefile.am: Remove useless -export-dynamic
13396         from module LDFLAGS.
13397
13398 2000-11-14  Havoc Pennington  <hp@redhat.com>
13399
13400         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
13401         higher.
13402
13403         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
13404         account. Also, render rise, underline, background, etc. for
13405         pixbufs as well as text. Also, draw underlines one pixel higher.
13406
13407         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
13408         PangoAttribute for the rise, so it gets drawn properly. Also,
13409         add the GtkTextAppearance attribute for pixbuf/widget segments
13410         as well; we should go ahead and have rise, underline, background,
13411         stipple work for those
13412
13413         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
13414         Pango
13415
13416 2000-11-15  Tor Lillqvist  <tml@iki.fi>
13417
13418         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
13419
13420         * gtk/gtk.def: Update.
13421
13422         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
13423         included.
13424         (gtk_rc_get_im_module_file): Use run-time installation directory
13425         on Win32.
13426
13427         * gdk/win32/rc/gdk.rc: Remove.
13428         * gdk/win32/rc/gdk.rc.in: New file.
13429         * gdk/win32/rc/Makefile.am: New file
13430         * gdk/win32/Makefile.am: Corresponding changes.
13431
13432         * gtk/gtk.rc: Remove.
13433         * gtk/gtk-win32.rc.in: New file.
13434         * gtk/Makefile.am: Corresponding changes.
13435
13436         * configure.in: Corresponding changes.
13437
13438         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
13439         has a built gtkcompat.h. Developers using CVS code on Win32 can
13440         hand-edit it from gtkcompat.h.in.
13441
13442         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
13443         gtkcompat.h from gtkcompat.h.win32.
13444
13445 2000-11-14  Havoc Pennington  <hp@redhat.com>
13446
13447         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
13448         to default to GDK_ACTION_MOVE if the drag is within a single
13449         widget. Defaults to GDK_ACTION_COPY between widgets.
13450
13451 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
13452
13453         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
13454
13455         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
13456
13457         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
13458         srcdir != builddir
13459
13460         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
13461
13462         * configure.in (GTK_VERSION): Up to 1.3.2
13463
13464         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
13465         gtkimcontextxim.h
13466
13467         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
13468         missing doc comment.
13469
13470 2000-11-14  Alexander Larsson  <alexl@redhat.com>
13471
13472         * modules/linux-fb/basic.c:
13473         Use the glib iconv wrappers.
13474
13475 2000-11-13  Havoc Pennington  <hp@pobox.com>
13476
13477         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
13478         still more bugs.
13479
13480         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
13481         scroll the GdkWindows before realization.
13482
13483 2000-11-13  Havoc Pennington  <hp@redhat.com>
13484
13485         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
13486         where GC didn't always get updated properly
13487
13488         * demos/gtk-demo/textview.c (create_tags): Use subattributes
13489         of fonts instead of setting the entire font
13490
13491         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
13492         setting entire font
13493
13494         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
13495
13496         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
13497         a bunch of individually-settable font attributes. You can still 
13498         use the "font" and "font_desc" args, they just set all the font
13499         attributes at once.
13500
13501 2000-11-13 Elliot Lee <sopwith@redhat.com>
13502
13503         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
13504
13505 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
13506
13507         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
13508         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
13509
13510         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
13511         work better.
13512
13513 2000-11-13  Havoc Pennington  <hp@redhat.com>
13514
13515         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
13516         the module file.
13517
13518         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
13519         dest->language
13520
13521         * gtk/testtext.c: Test pixels above/below/inside paragraphs
13522         settings
13523
13524         * gtk/gtktextview.c: Implement object args and setters/getters for
13525         all the aspects of the GtkTextAttributes that are not set from
13526         GtkWidget attributes. This is spacing, justification, margins,
13527         etc.
13528
13529         (gtk_text_view_set_arg)
13530         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
13531         args
13532         (gtk_text_view_class_init): Add args for justify, left_margin,
13533         right_margin, indent, and tabs
13534         
13535
13536         * gtk/gtktextlayout.c (set_para_values): fix to display indent
13537         attribute properly
13538
13539         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
13540         replace with indent attribute
13541
13542         * gtk/gtktextlayout.c (set_para_values): multiply indent by
13543         PANGO_SCALE
13544
13545         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
13546         rearranging code to do that
13547         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
13548         i.e. don't subtract the top_margin first, just to keep
13549         all margin-futzing in one place.
13550
13551         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
13552
13553         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
13554         special case of last line, Pango now handles this itself.
13555         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
13556         Y coordinate
13557         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
13558         (find_display_line_above): wasn't moving the byte index as it
13559         iterated over lines, so always returned byte 0. Also, port to use
13560         PangoLayoutIter.
13561         (find_display_line_below): same problem as
13562         find_display_line_above. Also, port to use PangoLayoutIter.
13563
13564 2000-11-13  Alexander Larsson  <alexl@redhat.com>
13565
13566         * gdk/linux-fb/*.[ch]:
13567         Massive reindent to gtk+ standard. My hands hurt.
13568
13569         * gdk/linux-fb/gdkcolor-fb.c:
13570         Move GdkColorPrivateFB from inherited to windowing_data
13571
13572         * gdk/linux-fb/gdkcursor-fb.c:
13573         _gdk_cursor_new_from_pixmap made static
13574
13575         * gdk/linux-fb/gdkdnd-fb.c:
13576         GdkDragContextPrivate moved to windowing_data
13577
13578         * gdk/linux-fb/gdkdrawable-fb2.c:
13579         Removed endian.h, use glib endianness macros instead
13580         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
13581         and GDK_DRAWABLE_IMPL_FBDATA
13582
13583         * gdk/linux-fb/gdkfont-fb.c:
13584         Add empty gdk_font_load(). Needed for linking of Gtk+.
13585
13586         * gdk/linux-fb/gdkimage-fb.c:
13587         Removed endian.h, use glib endianness macros instead
13588         Moved GdkImagePrivateFB to windowing_data
13589         gdk_image_new_bitmap didn't always allocate enough
13590         memory.
13591
13592         * gdk/linux-fb/gdkinput-ps2.c:
13593         Added semi-working support for MS serial mice.
13594
13595         * gdk/linux-fb/gdkprivate-fb.h:
13596         s/GdkWindowPrivate/GdkWindowObject/
13597         Removed GdkWindowPrivate typedef
13598         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
13599         Removed GDK_DRAWABLE_P
13600         Move GdkColorPrivateFB from inherited to windowing_data
13601         Moved GdkImagePrivateFB to windowing_data
13602
13603         * gdk/linux-fb/gdkvisual-fb.c:
13604         Removed some unused debug code.
13605
13606         * gdk/linux-fb/gdkwindow-fb.c:
13607         Use stock cursors instead of including X headers.
13608         s/GdkWindowPrivate/GdkWindowObject/
13609
13610         * gdk/linux-fb/mitypes.h:
13611         Removed unused types.
13612
13613         * modules/linux-fb/basic.c:
13614         Use the pango fribidi wrappers.
13615
13616 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
13617
13618         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
13619         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
13620         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
13621         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
13622         GEqualFunc where applicable.
13623         
13624         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
13625         pango_font_description_equal as changed in pango.
13626         
13627         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
13628
13629         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
13630
13631         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
13632
13633         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
13634
13635         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
13636
13637         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
13638
13639         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
13640         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
13641
13642         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
13643         gtk_rc_styles_compare -> gtk_rc_styles_equal.
13644
13645 2000-11-12  Havoc Pennington  <hp@pobox.com>
13646
13647         * demos/gtk-demo/Makefile.am (democodedir): change demo install
13648         dir to datadir/gtk+-2.0/demo
13649
13650         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
13651         sorts of text widget and Pango font bugs. Urgh.
13652
13653         * demos/gtk-demo/Makefile.am (demos): Add textview.c
13654
13655         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
13656         tree that you should double click to see the demo. Fix 
13657         types of variables to reflect changed return values from 
13658         GtkTreeStore and GtkTreeViewColumn constructors.
13659
13660         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
13661         newly-created buffer to prepare for GObject semantics
13662
13663         * gtk/testtext.c: don't leak the buffer with GObject semantics
13664
13665         * gtk/testtextbuffer.c: ditto
13666         
13667 2000-11-12  Havoc Pennington  <hp@pobox.com>
13668
13669         Rename this testgtk to gtk-demo to avoid confusion, and 
13670         install it so people can use it as a supplement to 
13671         the documentation.
13672         
13673         * demos/gtk-demo: Moved from demos/testgtk
13674
13675         * demos/testgtk: Removed
13676
13677         * configure.in: make Makefile in gtk-demo
13678         
13679         * demos/gtk-demo/Makefile.am: Install sample source to 
13680         datadir/gtk-demo (maybe there's a better place?), and 
13681         rename the binary to gtk-demo
13682         
13683         * demos/gtk-demo/main.c (load_file): Load installed sample
13684         source if source isn't found in pwd.
13685
13686 2000-11-09  Havoc Pennington  <hp@pobox.com>
13687
13688         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
13689         argument to set the char displayed when visibility == FALSE
13690         (gtk_entry_create_layout): If !entry->visible, replace 
13691         all chars with the "invisible char"
13692
13693         * gtk/testgtk.c: Test the invisible_char deal
13694         
13695 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
13696
13697         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
13698         can't get a native font in the right encoding.
13699
13700 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
13701
13702         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
13703         respectively.
13704
13705 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
13706
13707         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
13708         Fix warning when moving between paragraphs.
13709
13710         * gtk/gtkentry.[ch]: Change move => move_cursor, 
13711         delete => delete_from_cursor, insert => insert_at_cursor
13712
13713 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
13714
13715         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
13716
13717         * modules/input/imthai-broken.c: A Thai input method for use if
13718         Thai keys are really generating Latin1 keysyms.
13719
13720         * modules/input/Makefile.am: Build these.
13721
13722 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
13723
13724         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
13725         g_filename_{to,from}_utf8 now takes an extra parameter.
13726
13727         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
13728         strftime into UTF-8.
13729
13730         (column_from_x, gtk_calendar_paint_day_names): Support RTL
13731         calendars.
13732
13733         (gtk_calendar_paint_day_names): Draw day names in the right 
13734         place.
13735         
13736 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
13737
13738         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
13739         problem with using result of g_get_charset() backwards -
13740         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
13741
13742         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
13743         negative min_width/height and max_width/height to
13744         mean "requisition"; this allows setting a window
13745         to be user-resizable in only one direction easily.
13746
13747         * gtk/testgtk.c (create_main_window): Remove hard-coded
13748         usize - set a default size in the vertical direction.
13749
13750 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
13751
13752         * gtk/gtkrange.c: Add some missing casts. Support 
13753         2 and 3 button clicks on the arrows to mean 
13754         "move by pages" and "jump to end". (Like gtkspinbutton)
13755
13756 2000-11-12 Hans Breuer <Hans@Breuer.Org>
13757
13758         * gdk/win32/makefile.msc : reflect build module changes
13759
13760         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
13761         from GdkPixmap*, cast implementation member instead.
13762
13763         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
13764         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
13765         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
13766         more Gdi functions return value checking. 
13767         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
13768         GdkImagePrivateWin32 *.
13769
13770         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
13771         menus useable again. Add #pragma message to keep reminded on this issue.
13772         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
13773         windows. This allows to enable backing store on Win32!
13774
13775         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
13776         in drawable is of impl type. Correct specific type checks appropriate.
13777  
13778         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
13779         GDK_WINDOW_DESTROYED before allocating new resources.
13780
13781         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
13782
13783         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
13784         (gdk_window_foreign_new) initialize parent handle.
13785         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
13786
13787         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
13788         Let the GDI invalidate the window on MoveWindow call to fix scrolling
13789         problems (e.g. main buttons in testgtk). 
13790
13791 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
13792
13793         * gtk/gtkentry.c (gtk_entry_key_press): Call 
13794         gtk_widget_activate for GDK_Return.
13795
13796         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
13797         of preedit cursor position.
13798
13799 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
13800
13801         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
13802         static.
13803
13804 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
13805
13806         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
13807         out support for multiple locales; that simple doesn't
13808         work reliably with current Xlib
13809
13810         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
13811         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
13812         Add support for positioning the cursor within the preedit string.
13813
13814 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
13815
13816         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
13817         at XIM input method module.
13818
13819         * gtk/gtktextview.c: Check for bindings after passing
13820         events to im context filter.
13821
13822 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
13823
13824         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
13825         empty attribute lists properly.
13826
13827 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
13828
13829         * gtk/queryimmodules.c (main): Return non-zero exit
13830         status if errors were encountered querying any
13831         modules.
13832
13833         * modules/input/Makefile.am (moduledir): remove
13834         leftover bin program target.
13835
13836         * docs/make-todo: Fix typo in error message.
13837
13838 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
13839
13840         * configure.in: Add modules/input/Makefile
13841
13842 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
13843
13844         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
13845         don't include gtkthemes.h.
13846
13847         * gtk/testgtk.c gtk/testtext.c: Set environment variables
13848         to point
13849
13850         * gtk/Makefile.am: Add new .c and .h files, build 
13851         gtk-query-immodules and use it to create a gtk.immodules
13852         file for use of test programs.
13853
13854         * gtk/gtkpreview.c: remove extra blank line.
13855
13856 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
13857
13858         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
13859         Add the ability to add extra tables beyond the default
13860         one, and also the ability to have compose sequences 
13861         that are prefixes of other compose sequences. 
13862
13863         * gtk/gtkimcontextsimple.c: Export a preedit string which
13864         consists of possible candidates for keystrokes that have
13865         been entered but not yet committed.
13866
13867         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
13868         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
13869
13870         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
13871         Add a function to add input-method switching menu items
13872         to a menu.
13873
13874         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
13875         when switching input methods.
13876
13877         * gtk/gtkimcontextsimple.[ch]: Change the format of
13878         the compose table to allow compose tables of different
13879         lengths / sequence.
13880
13881 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
13882
13883         * gtk/gtkimmodule.[ch]: Support routines for loading
13884         GtkIMContext implementations dynamically at runtime.
13885
13886         * modules/input/imcyrillic-translit.c: A sample input
13887         method (based on GtkIMContextSimple with an extra table),
13888         which demonstrates preedit strings and the module
13889         system for input modules
13890
13891         * gtk/queryimmodules.c: Program to query the available
13892         input modules and write the results into a file.
13893          
13894         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
13895         extra config options "im_module_file" (cache file for
13896         input method modules), and "im_module_path" - path
13897         to look for modules when generating cache file.
13898
13899         This doesn't scale.
13900
13901 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
13902
13903         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
13904         generic code from gtkthemes into a new abstraction
13905         GtkModule which has the logic for implementing
13906         a loadable module which implements a number of 
13907         GObject types.
13908
13909 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
13910
13911         * gtk/gtkeditable.[ch]: Convert GtkEditable from
13912         a class into an interface  
13913         
13914         * gtk/gtkoldeditable.[ch]: Move the old editable
13915         implementation into here, so legacy widgets can
13916         still rely on the implemenation. GtkOldEditable
13917         exports GtkEditable. Make selection handling
13918         code use new text conversion functions (and
13919         handle UTF-8 as a side-effect). Use GtkClipboard
13920         for CLIPBOARD.
13921
13922         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
13923         Adopt to match above changes.
13924
13925         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
13926         avoid GtkOldEditable implementation. Restructure
13927         to reduce number of places that modify state directly.
13928         Move to GtkBindingSet. Display the preedit string.
13929         Queue recomputation of PangoLayout and scroll position
13930         to improve effiency of doing complex changes naively.
13931         Add a menu with cut/copy/paste and input method selection.
13932
13933 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
13934
13935         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
13936         to set preedit string and attributes; display preedit string by
13937         inserting string and attributes at cursor when creating the
13938         GtkTextLineDisplay.
13939
13940         * gtk/gtktextlayout.c: Move all conversions between byte
13941         positions in PangoLayout and GtkTextIter into new functions
13942         line_display_iter_to_index/index_to_iter that properly
13943         handle the preedit string.
13944
13945         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
13946         it to return const char * (eventually will end up
13947         as GCONST char *, most likely.)
13948
13949         * gtk/gtktextview.[ch]: Handle the preedit string, call
13950         gtk_im_context_reset() as necessary, add a menu to switch
13951         input methods.
13952         
13953         * gtk/gtktextlayout.[ch]: Remove useless
13954         gtk_text_layout_get_log_attrs() function.
13955
13956 2000-11-11  Tor Lillqvist  <tml@iki.fi>
13957
13958         * gdk/gdk.def
13959         * gtk/gtk.def: Update.
13960
13961         * gdk/win32/*.c: Add last argument to g_type_register_static()
13962         calls.
13963
13964         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
13965
13966         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
13967         generated by older wheel mouse drivers. Get the correct y
13968         coordinate from WM_MOUSEWHEEL messages.
13969
13970         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
13971         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
13972         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
13973         Debugging functions.
13974
13975         * gdk/win32/gdkprivate-win32.h: Declare them.
13976
13977         * gdk/win32/gdkinput-win32.h: Add declaration for
13978         gdk_input_window_destroy().
13979
13980         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
13981
13982 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
13983
13984         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
13985         function to help handle keeping things in sync.
13986
13987 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
13988
13989         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
13990         BOXED marshallers.
13991
13992         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
13993         (gtk_list_store_class_init): use the new BOXED marshallers.
13994
13995         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
13996         new_with_values to new_with_types.
13997         (gtk_tree_store_get_column_type): add this.
13998         (gtk_tree_store_class_init): use the new BOXED marshallers.
13999
14000         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
14001         mirror some POINTER marshallers.
14002
14003 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
14004
14005         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
14006         allow more interesting iterators.  Also, made the lifecycle of
14007         iterators more explicit.
14008
14009         * gtk/gtktreemodelsort.[ch]: New model for sorting.
14010
14011         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
14012         types.
14013
14014 2000-11-09  Alexander Larsson  <alexl@redhat.com>
14015
14016         * demos/testgtk/menus.c:
14017         Changes to make the new testgtk compile after
14018         gtk_menu_append was removed.
14019
14020         * gdk/linux-fb/gdkdrawable-fb2.c
14021         (gdk_fb_get_depth, gdk_fb_get_visual,
14022         gdk_drawable_impl_fb_class_init): Implement
14023         these drawable functions. Now GtkImages work again.
14024
14025         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
14026
14027         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
14028         
14029         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
14030         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
14031         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
14032         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
14033
14034 2000-11-08  Havoc Pennington  <hp@pobox.com>
14035
14036         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
14037         visible_set args, don't know where these had gone, I thought they
14038         used to be there
14039
14040         * gtk/testtext.c: Add a menu item to apply invisibility tag;
14041         now we can test the feature and see that it's totally broken.
14042
14043 2000-11-08  Havoc Pennington  <hp@pobox.com>
14044
14045         Make DND copy pixbufs and tags when source and target share a 
14046         tag table.
14047         
14048         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
14049         in-process GTK_TEXT_BUFFER_CONTENTS target
14050         (gtk_text_view_drag_data_received): Paste from
14051         GTK_TEXT_BUFFER_CONTENTS if we receive it.
14052
14053 2000-11-08  Alexander Larsson  <alexl@redhat.com>
14054
14055         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
14056         API changes.
14057
14058         * gtk/gtkmenu.c: Add support for scrolling menus.
14059         Remove gtk_menu_append/prepend/insert, these have been moved to
14060         gtkcompat.h as #defines.
14061
14062         * gtk/gtkcompat.h.in:
14063         Add compatibility #defines for gtk_menu_append/prepend/insert
14064
14065         * gtk/gtkmenu.h: Add data needed for scrolling menus.
14066         GtkMenuPositionFunc gets an extra argument push_in.
14067         gtk_menu_append/prepend/insert removed.
14068         
14069         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
14070         positioning behaviour to fit to scrolling menus.
14071
14072         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
14073         into menuitem->submeny. That is wrong, and broke torn
14074         off submenus of torn off menus, since they were unrealized
14075         when the first menu was unrealized.
14076
14077         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
14078         gtk_menu_shell_select_item() since these need to be overridden in
14079         GtkMenu.
14080
14081         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
14082         positioning behaviour to fit to scrolling menus.
14083         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
14084         the current item so that it is prelighted when the menu pops up.
14085         This is a workaround to the fact that the menu doesn't get the
14086         initial enter event (due to grabs).
14087
14088         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
14089         s/gtk_menu_append/gtk_menu_shell_append/
14090
14091         * gtk/gtknotebook.c:
14092         s/gtk_menu_insert/gtk_menu_shell_insert/
14093
14094         * gtk/testgtk.c (create_menu, create_menus):
14095         Create the first menu with 50 items so that menu scrolling
14096         can be tested.
14097         
14098         
14099         Patch from Jonathan Blandford  <jrb@redhat.com>
14100
14101         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
14102         system to handle size requests.  First, we ask what the size of
14103         the toggle is.  Then, when allocating the size, we allocate the
14104         toggle_size first.  This way we can have multiple menu-item
14105         classes w/o needing a seperate class for each.
14106
14107         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
14108         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
14109
14110         * gtk/gtkcheckmenuitem.c
14111         (gtk_check_menu_item_toggle_size_request): New function to handle
14112         the toggle size-request.
14113
14114 2000-11-07  Havoc Pennington  <hp@redhat.com>
14115
14116         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
14117         Half-ass somewhat fix this function, so that scrolling to the
14118         insertion point works. Pango hacking is in the future to really
14119         fix it.
14120
14121         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
14122         length of data, no longer used.
14123
14124         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
14125         method contents in here, get rid of destroy method
14126         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
14127         that were backward. Remove debug spew.
14128         (cut_or_copy): Make the clipboard work with insert_range to
14129         preserve tags and pixbufs, not just the primary selection.
14130
14131 2000-11-07  Havoc Pennington  <hp@redhat.com>
14132
14133         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
14134         to gtk_text_mark_get_visible
14135
14136         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
14137         bug that was generating an invalid iterator
14138
14139         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
14140         ensure_char_offsets() in front of code placing the iter in an
14141         invalid state.
14142
14143         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
14144         make override_location arg const
14145         (paste): Replace the selection if we paste into the 
14146         current selection
14147
14148         * gtk/gtkselection.h: Remove "GtkSelectioData"
14149         (struct _GtkSelectionData): move the definition here.
14150
14151         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
14152         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
14153
14154         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
14155
14156         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
14157         (gtk_text_buffer_insert_range_interactive): implement
14158         (gtk_text_buffer_get_tags): Remove, replaced by
14159         gtk_text_iter_get_tags()
14160
14161         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
14162         limit parameter, to avoid infinite linear scan.
14163         (gtk_text_iter_backward_search): Add search limit
14164         (gtk_text_iter_forward_find_char): Add search limit
14165         (gtk_text_iter_backward_find_char): Add search limit
14166
14167 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
14168
14169         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
14170         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
14171         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
14172         gdk/linux-fb/gdkwindow-fb.c:
14173         use g_object_new() instead of g_type_create_instance() which
14174         is a private function for fundamental type implementations.
14175
14176         * gdk/linux-fb/gdkinput-ps2.c:
14177         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
14178         instead just store the current modifier state. Add a (somewhat broken)
14179         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
14180         Rename exported function gdk_input_ps2_get_mouseinfo to
14181         gdk_input_get_mouseinfo.
14182
14183         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
14184         gdk/linux-fb/gdkwindow-fb.c:
14185         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
14186         
14187
14188 2000-11-02  Havoc Pennington  <hp@redhat.com>
14189
14190         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
14191         use stock buttons. Should be 100% source compatible, appropriate
14192         filesel fields now point to dialog->vbox and dialog->action_area.
14193         On the bizarre side, dialog->action_area and filesel->action_area
14194         are not the same widget.
14195         (gtk_file_selection_init): Put some padding around the selection
14196         entry, so it isn't touching the GtkDialog separator.    
14197
14198         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
14199         use stock buttons, etc. Should also be source compatible.
14200         Set the dialog default title in _init not _new().
14201         
14202         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
14203         Use stock buttons; don't put a button box inside the existing
14204         dialog button box. Don't bother with push/pop colormap anymore.
14205
14206         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
14207         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
14208         for message dialog, and necessary for the font selection and color
14209         selection with help and apply buttons.
14210         
14211         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
14212         to the created button widget. Set GTK_CAN_DEFAULT on the button.
14213         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
14214         between buttons, put less padding around the action area.
14215         (gtk_dialog_run): Exit on unmap rather than on destroy. 
14216         This will also exit the loop if the widget is hidden.
14217         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
14218         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
14219         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
14220         special-case delete event.
14221
14222         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
14223         formatting
14224         
14225 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
14226
14227         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
14228         button to temporarily disable position recording in the
14229         "saved position" test.
14230
14231 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
14232
14233         * gtk/gtkthemes.c: added compat code that temporarily implements
14234         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
14235         going to be revamped by owen's upcoming GtkModule patches, but
14236         untill then people want gtk to build, right? ;)
14237
14238 2000-11-04  Havoc Pennington  <hp@pobox.com>
14239
14240         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
14241         list
14242
14243         * docs/Changes-2.0.txt: Add note about
14244         gtk_container_get_toplevels()
14245
14246         * gtk/gtktextview.h: formatting
14247         
14248         * gtk/gtktextview.c: don't start descriptions with "Returns",
14249         confuses gtk-doc
14250
14251 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
14252
14253         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
14254         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
14255
14256 2000-11-03  Havoc Pennington  <hp@redhat.com>
14257
14258         * gtk/gtktexttagtable.c: Docs
14259         (gtk_text_tag_table_size): return a signed int
14260
14261         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
14262         (gtk_text_tag_event): make the event_object a GObject
14263
14264         * gtk/gtktextview.c: Write API docs for all functions.
14265
14266         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
14267         for gtk_text_view_get_window_type() called on one of the private
14268         windows.
14269
14270         * gtk/gtktextview.c: Instead of accessing text_view->buffer
14271         directly, call get_buffer() which demand-creates a default
14272         buffer. So gtk_text_view_new() can be used to create a view with a
14273         default buffer in it, if you just want an empty text box users can
14274         put data in. Useful for GUI builders also.
14275
14276 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
14277
14278         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
14279         the charset encodign portion MUST be in lowercase.
14280         * gtk/gtkrc.az: added file for Azeri language
14281
14282 2000-11-03  Havoc Pennington  <hp@redhat.com>
14283
14284         Get widgets working on the btree/buffer side. Display of them 
14285         still doesn't work.
14286         
14287         * gtk/gtktextview.c: start implementing child widget stuff
14288
14289         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
14290
14291         * gtk/gtktextlayout.c: handle embedded widgets
14292
14293         * gtk/gtktextdisplay.c: handle embedded widgets
14294
14295         * gtk/gtktextchild.c: Implement all the child anchor goo
14296
14297         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
14298         function
14299
14300         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
14301         (insert_pixbuf_or_widget_segment): abstract out common portions of 
14302         creating a child anchor or a pixbuf segment.
14303         (gtk_text_btree_create_child_anchor): new function
14304         (gtk_text_btree_unregister_child_anchor): new function
14305
14306         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
14307         allocate_child signal on GtkTextLayout
14308
14309         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
14310         values
14311         (gtk_text_iter_get_child_anchor): new function
14312
14313         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
14314         default handler for the changed signal, which calls
14315         gtk_text_buffer_set_modified(), instead of just always emitting
14316         changed then calling set_modified() manually. I guess this is
14317         maybe more flexible. It seems logical.
14318
14319 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
14320
14321         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
14322         now.
14323
14324         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
14325
14326 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
14327
14328         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
14329         been marked static.
14330
14331 2000-11-02  Havoc Pennington  <hp@redhat.com>
14332
14333         * gtk/testgtk.c (create_labels): had a test backward
14334
14335         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
14336         fields, so the dest GC ends up with the correct clip origin, 
14337         etc. Fixes a bug where colored labels didn't redraw 
14338         properly.
14339
14340 2000-11-02  Alexander Larsson  <alexl@redhat.com>
14341
14342         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
14343         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
14344         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
14345         Add last argument to t_type_register_static call.
14346         
14347         * gdk/linux-fb/gdkdrawable-fb2.c:
14348         Add last argument to t_type_register_static call.
14349         export the get_image drawable virtual function.
14350
14351         * gdk/linux-fb/gdkimage-fb.c:
14352         Add last argument to t_type_register_static call.
14353         rename gtk_image_get to _gdk_fb_get_image and
14354         export it for use by gdkdrawable-fb2.
14355
14356         * gdk/linux-fb/gdkprivate-fb.h:
14357         export _gdk_fb_get_image.
14358
14359         * gdk/linux-fb/gdkselection-fb.c:
14360         Add new api call stubs.
14361
14362         * gtk/Makefile.am:
14363         Missing ( in linux-fb part.
14364
14365         * modules/linux-fb/Makefile.am:
14366         Must link with gdk_pixbuf or get unresolved symbol.
14367
14368 2000-11-01  Havoc Pennington  <hp@pobox.com>
14369
14370         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
14371         GTK_TYPE_TEXT_ITER and BOXED marshallers
14372
14373         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
14374
14375         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
14376         
14377         * gtk/gtk-boxed.defs: add GtkTextIter
14378
14379         * gtk/gtkmarshal.list: Add marshallers for text widget that 
14380         properly use OBJECT and BOXED
14381
14382 2000-11-01  Havoc Pennington  <hp@redhat.com>
14383
14384         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
14385
14386         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
14387         before returning it. 
14388         
14389 2000-11-01  Havoc Pennington  <hp@redhat.com>
14390
14391         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
14392         Clip the rectangle to be rendered to the drawable, since
14393         get_from_drawable() requires a region within the drawable
14394
14395 2000-11-01  Havoc Pennington  <hp@redhat.com>
14396
14397         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
14398         from coordinates.
14399
14400 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
14401
14402         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
14403         it isn't NULL.
14404
14405 2000-11-01  Havoc Pennington  <hp@pobox.com>
14406
14407         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
14408         on a label
14409         (gtk_label_finalize): unref the attr list if any.
14410
14411         * gtk/testgtk.c (create_get_image): close test on second click
14412         (make_message_dialog): close dialog if it exists
14413
14414         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
14415
14416         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
14417         gdk-pixbuf
14418
14419         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
14420         from Pango markup format
14421         (gtk_label_set_markup_with_accel): ditto but with accelerator
14422         parsing
14423
14424         * gtk/gtkimage.c (gtk_image_expose): reformatting.
14425
14426         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
14427         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
14428         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
14429         call gdk_window_get_origin().
14430
14431         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
14432         implement GDK_PIXBUF_ALPHA_FULL
14433         
14434 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
14435
14436         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
14437         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
14438         g_signal_handlers_disconnect_matched to block/unblock and disconnect
14439         multiple handlers respectively, instead of only treating the
14440         first handler found (bug reported by owen).
14441
14442 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
14443
14444         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
14445
14446         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
14447
14448         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
14449         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
14450         gtk/gtktreeviewcolumn.h: Fixed inline docs.
14451
14452         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
14453         widget.  Needs writing someday.
14454
14455         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
14456         the docs.
14457
14458 2000-10-30  Havoc Pennington  <hp@redhat.com>
14459
14460         * gtk/gtktextview.h, gtk/gtktextview.c:
14461         Rename delete_at_cursor delete_from_cursor, and 
14462         move to move_cursor.
14463
14464 2000-10-30  Havoc Pennington  <hp@redhat.com>
14465
14466         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
14467         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
14468         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
14469         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
14470         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
14471         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
14472         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
14473         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
14474         gtktexttypes.h, gtktextview.c, gtktextview.h:
14475
14476         Massive reindentation and reformatting. Arg alignment and comments
14477         still need fixing in various places.
14478
14479 2000-10-30  Havoc Pennington  <hp@redhat.com>
14480
14481         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
14482         to be named insert_at_cursor and delete_at_cursor so C++ can
14483         handle them.
14484
14485 2000-10-28  Tor Lillqvist  <tml@iki.fi>
14486
14487         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
14488         to get a double directory separator in case the home directory
14489         ends with one. This would cause trouble especially on Windows,
14490         where the path will be confused with the syntax for an an UNC
14491         (network share) path \\server\share\path.
14492         (gtk_rc_add_initial_default_files): Ditto.
14493
14494 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
14495
14496         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
14497
14498         * gtk/gtktextview.c: Use correct marshallers.
14499
14500 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
14501
14502         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
14503         use new iter stuff, and added all the appropriate signals et al.
14504
14505         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
14506         code is internal to gtk only.
14507
14508 2000-10-28  Tor Lillqvist  <tml@iki.fi>
14509
14510         * gtk/gtk.def
14511         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
14512         glib-genmarshal etc.
14513
14514 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
14515
14516         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
14517         parallel builds.
14518
14519 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
14520
14521         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
14522
14523 2000-10-27  Robert Brady  <robert@suse.co.uk>
14524
14525         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
14526         en_GB (British), ia (Interlingua).
14527
14528 2000-10-26  Havoc Pennington  <hp@redhat.com>
14529
14530         * gtk/gtktextiter.c (my_strrstr): fix constness warning
14531
14532         Fixed output of:
14533         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
14534         
14535         * gtk/gtktextsegment.c (char_segment_new): rename
14536         (_char_segment_new_from_two_strings): rename
14537         (_toggle_segment_new): rename
14538         
14539         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
14540         (make_clipboard_widget): make it static
14541         (text_get_func): static
14542         (text_clear_func): static
14543
14544         * gtk/gtkcolorsel.c (adjustment_changed): make this function
14545         static
14546         (hex_changed): make it static
14547         (hsv_changed): make it static
14548         (opacity_entry_changed): make it static
14549
14550         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
14551         (toggle_segment_check_func): rename with _gtk
14552
14553         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
14554         (_widget_segment_new): rename
14555         (_widget_segment_add): rename
14556         (_widget_segment_remove): rename
14557         (_widget_segment_ref): rename
14558         (_widget_segment_unref): rename
14559
14560         * gtk/gtktextmark.c (_mark_segment_new): Rename
14561         _gtk_mark_segment_new   
14562
14563 2000-10-26  Havoc Pennington  <hp@redhat.com>
14564
14565         * gtk/gtkmarshal.list: add new marshallers used by the text widget
14566         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14567         types
14568
14569         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
14570         marshaller types
14571
14572         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
14573         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
14574         license on these files.
14575
14576         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
14577         work.
14578
14579         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
14580         runtime random number different for each tree, instead of 
14581         a constant I made up.
14582
14583 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
14584
14585         * gtk/Makefile.am: buncha cleanups, kludged build sources
14586         dependencies with a Makefile: oldest-source-stamp dependancy
14587         for the moment. automake is really fighting us here, with
14588         intentionally not allowing user-defined rules or dependancies
14589         prior to it's -include $(DEP_FILES) statement. sucks rocks!
14590
14591         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
14592         to public headers. tehy have a comment stating that they are
14593         "semi-public" aren't included by gtk.h and if enums popup there,
14594         they can be /*< skip >*/-ed.
14595
14596         * gtk/gtktextlayout.h: 
14597         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
14598         added LGPL... <SIGH>
14599
14600 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
14601
14602         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
14603         GtkTreeIter.  Added iterators everywhere.
14604
14605         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
14606
14607         * gtk/gtktreeviewselection.c: Changed to use the iterators.
14608
14609         * gtk/gtktreestore.c: Changed to use the iterators.
14610
14611         * gtk/gtkliststore.c: Commented out the code.  Will convert to
14612         iterators tomorrow.
14613
14614         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
14615         iterators tomorrow.
14616
14617         * gtk/treestoretest.c: Changed to use iterators.
14618
14619         * demos/testgtk/main.c: Moved to use the new iterator system.
14620
14621 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
14622
14623         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
14624         localization misbehaviour.
14625
14626         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
14627         a useless type without copy/free.
14628
14629         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
14630         of GTK_TYPE_CTREE_NODE.
14631
14632 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
14633
14634         * gtk/gtksignal.c:
14635         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
14636         applicable.
14637
14638         * gtk/gtk-boxed.defs (GtkSelectionData): specify
14639         gtk_selection_data_copy and gtk_selection_data_free
14640         do GtkSelectionData work as params in signals.
14641
14642 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
14643
14644         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
14645         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
14646         couldn't they at least give it a non-standard name?
14647         
14648         * gtk/gtktextlayout.c: arg! yet another implementation of
14649         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
14650
14651         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
14652         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
14653         home. now i know this _is_ a conspiracy.
14654
14655         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
14656         ::state-changed.
14657
14658         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
14659         (gtk_accel_group_create_add): marshaller signature fixups.
14660
14661         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
14662         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
14663
14664         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
14665         anymore.
14666
14667 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
14668
14669         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
14670         due to the signal system changes, it wouldn't build currently. to
14671         be fixed soon.
14672
14673         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
14674
14675         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
14676         so it needs gtk_marshal_VOID__ENUM() instead of
14677         gtk_marshal_NONE__UINT().
14678
14679         * gdk/gdk*.c: adapted type registration functions.
14680
14681         * gtk/gtkbindings.c:
14682         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
14683         gone.
14684
14685         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
14686
14687         * gtk/gtkobject.c:
14688         (gtk_object_destroy):
14689         (gtk_object_shutdown): fixed recursion guards. basically we have to
14690         catch the case where any of GObject.shutdown() or gtk_object_destroy()
14691         is called during ::destroy, and avoid recursion there.
14692
14693         * gtk/gtktypeutils.c:
14694         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
14695         boxed_copy/boxed_free. this needs a more general solution based on a
14696         publically installed code-generator utility.
14697
14698         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
14699         glib's gobject has support for that now.
14700         define GtkSignalMarshaller in terms of GSignalCMarshaller.
14701
14702 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
14703
14704         * gtk/gtksignal.[hc]:
14705         * gtk/gtkmarshal.[hc]:
14706         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
14707         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
14708         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
14709         care of that.
14710
14711         * *.c: marshaller name fixups.
14712
14713         * gtk/gtkmarshal.list: added a comment briefing the format.
14714
14715 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
14716
14717         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
14718         compatibility macros here now. more specifically, most of
14719         the API is preserved (yes, _most_, nonwithstanding the
14720         following exceptions listed, the API is stil lHUGE ;)
14721         things that got removed completely:
14722         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
14723         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
14724         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
14725         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
14726         gtk_signal_remove_emission_hook().
14727         non-functional functions variants:
14728         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
14729         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
14730         not supported anymore.
14731         (gtk_signal_compat_matched): new internal function to aid
14732         implementation of the compatibility macros, it  provides
14733         functionality to block/unblock/disconnect handlers based
14734         on func/data.
14735
14736         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
14737
14738         * *.c: adaptions to new type registration API signatures.
14739
14740 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
14741
14742         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
14743
14744 2000-10-25  Robert Brady  <robert@suse.co.uk>
14745
14746         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
14747         gdk_property_delete): If window == NULL, assume the root window.
14748         (restoring the behaviour that was in 1.2).
14749         
14750         * gtk/testtext.c (save_buffer): Allow creation of new files when
14751         saving.
14752
14753         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
14754         calls to read().
14755
14756 2000-10-25  Tor Lillqvist  <tml@iki.fi>
14757
14758         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
14759
14760         * gdk/win32/gdkdrawable-win32.c
14761         * gdk/win32/gdkimage-win32.c
14762         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
14763         X11 backend.
14764
14765         * gdk/win32/gdkcc-win32.c
14766         * gdk/win32/gdkcolor-win32.c
14767         * gdk/win32/gdkfont-win32.c
14768         * gdk/win32/gdkinput-win32.c
14769         * gdk/win32/gdkmain-win32.c
14770         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
14771
14772 2000-10-24  Havoc Pennington  <hp@redhat.com>
14773
14774         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
14775         it a static function
14776
14777         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
14778         redraw text when a tag is applied to it.
14779
14780         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
14781         (gtk_text_tag_affects_nonsize_appearance): private functions to
14782         see if a tag requires various kinds of redraw/layout to be queued
14783         up.
14784
14785         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
14786
14787         * gtk/testtext.c (fill_example_buffer): Put the cursor 
14788         at the start of the buffer, so search works by default
14789
14790         * gtk/gtktextiter.c (lines_match): init match_start always
14791
14792         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
14793         function, get iter at a line + a byte index
14794
14795         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
14796         to set byte position within a line
14797         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
14798
14799 2000-10-23  Havoc Pennington  <hp@redhat.com>
14800
14801         * gtk/testtext.c: Re-enable the "find" dialog
14802
14803         * gtk/testgtk.c: Add test for gdk_drawable_get_image
14804         
14805         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
14806         the arguments to gdk_draw_drawable were in the wrong order
14807         (gdk_window_paint_init_bg): This function was ignoring the
14808         init_region, instead of clipping to it, so the entire backing
14809         pixmap was cleared on every begin_paint()
14810         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
14811         was in here again, the loop kept using the same GtkWindowPaint
14812         over and over.
14813         (gdk_window_begin_paint_region): Fix a bug where we had two
14814         x_offset instead of x_offset and y_offset
14815
14816         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
14817         before we get the image.
14818         (gdk_draw_drawable): get the composite before we draw the drawable.
14819         (gdk_drawable_real_get_composite_drawable): default
14820         get_composite_drawable implementation that returns the drawable 
14821         itself
14822
14823         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
14824         get_composite_drawable virtual function
14825
14826         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
14827         list-walking bug
14828
14829         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
14830         make this work if the source drawable is a GdkDrawableImplX11
14831         instead of a public drawable type. This is really broken; the
14832         problem is that GdkDrawable needs a virtual method get_xid(), but
14833         of course that doesn't work in practice. Enter RTTI.
14834
14835         Also, improve mismatched depth message.
14836
14837         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
14838         GdkPixmap
14839
14840         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
14841         install _gdk_x11_get_image as our implementation of get_image
14842         
14843         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
14844         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
14845
14846         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
14847         gdk_drawable_get_image
14848
14849         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
14850
14851         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
14852         get_image
14853
14854         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
14855         trailing semicolon after for loop
14856
14857 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
14858
14859         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
14860         where font_desc for widget's context lagged widget's font_desc by
14861         one step.
14862
14863 2000-10-22  Tor Lillqvist  <tml@iki.fi>
14864
14865         * gdk/win32/gdkgc-win32.c
14866         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
14867
14868         * gtk/makefile.mingw.in
14869         * gtk/gtk.def: Updates.
14870
14871         * gtk/testgtk.c: sleep() is called _sleep in MS's C
14872         library.
14873
14874         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
14875
14876         * gtk/makefile.msc: Remove
14877
14878         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
14879
14880         * gtk/Makefile.am: Add it.
14881
14882         * configure.in: Generate it.
14883
14884         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
14885         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
14886         something even if not implemented, to satisfy picky MSVC.
14887
14888         Patches by Hans Breuer:
14889         
14890         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
14891         SetBkMode() and SetTextAlign() before calling
14892         pango_win32_render().
14893
14894         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
14895         Set hcliprgn to NULL after destroying it.
14896         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
14897
14898         * gdk/win32/gdkgeometry-win32.c
14899         (_gdk_windowing_window_queue_antiexpose): More effective
14900         implementation.
14901
14902         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
14903         depth as default, not the visual's.
14904
14905         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
14906         against empty title.
14907
14908         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
14909         IMAGE_PRIVATE_DATA.
14910
14911         * gdk/win32/gdkimage-win32.c: Use it.
14912
14913 2000-10-22  Robert Brady  <robert@suse.co.uk>
14914
14915         * configure.in: Check for bind_textdomain_codeset
14916
14917         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
14918         present, make use of it.
14919
14920         Add a translatable string "default:LTR" which, if translated
14921         to "default:RTL", will cause the default direction to be
14922         Right-to-Left.
14923
14924         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
14925         direction if marked as flippable.
14926
14927         * gtk/gtkhscale.c: Mark widget as flippable.
14928         
14929 2000-10-04  Havoc Pennington  <hp@redhat.com>
14930
14931         * gtk/testgtk.c (create_buttons): create some stock buttons
14932         with the default accel group
14933         (create_image): test some new GtkImage features
14934         (make_message_dialog): test GtkMessageDialog
14935         (create_modal_window): fix someone's bizzarro indentation
14936
14937         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
14938         GTK_WIN_POS_CENTER_ON_PARENT. 
14939         Add "destroy with parent" setting, which means the window goes
14940         away with its transient parent.
14941         (gtk_window_get_default_accel_group): get the default accel group
14942         for the window.
14943         (gtk_window_set_destroy_with_parent): set/unset destroy with
14944         parent flag
14945         (gtk_window_read_rcfiles): invalidate icon set caches
14946         after reloading rcfiles 
14947
14948         * gtk/gtkenums.h (GtkWindowPosition): add
14949         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
14950         on its parent window when the dialog is mapped for the first time.
14951
14952         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
14953         a simple message dialog class
14954         
14955         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
14956         handler to emit response signal, and maybe later it would
14957         honor a hide_on_delete flag - though that isn't there yet.
14958         Set border width on the vbox to 2, so we get some padding.      
14959         Use a button box for the action area.
14960         (gtk_dialog_key_press): synthesize a delete event if Esc
14961         is pressed and the GtkWidget key press handler didn't 
14962         handle the escape key.
14963         (gtk_dialog_new_with_buttons): new function creates a dialog
14964         with some default buttons in it.
14965         (gtk_dialog_add_action_widget): add an activatable widget
14966         as a button in the dialog - you can also add a non-activatable
14967         widget by accessing the action area directly.
14968         (gtk_dialog_add_button): add a simple button - stock ID or 
14969         label - to the action area
14970         (gtk_dialog_response): emit response signal
14971         (gtk_dialog_run): block waiting for the dialog, return 
14972         the response. Override normal delete_event behavior, so that 
14973         delete_event does nothing inside gtk_dialog_run().
14974
14975         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
14976         emitted when an action widget is clicked or the dialog gets
14977         delete_event
14978
14979         * gtk/gtk.h: add gtkmessagedialog.h
14980
14981         * gtk/Makefile.am: add gtkmessagedialog.[hc]
14982
14983 2000-10-18  Havoc Pennington  <hp@redhat.com>
14984
14985         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
14986         where any number of empty lines would get skipped
14987
14988         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
14989         edge.
14990
14991         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
14992         warning about invalid iterators (explain more thoroughly)
14993         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
14994
14995         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
14996         big
14997
14998         * demos/*.c: Add error handling
14999
15000         * gtk/gtktextbuffer.c: don't modify const iterators
15001
15002         * gtk/gdk-pixbuf-loader.c: Add full error handling here
15003
15004         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
15005         on file load
15006
15007         * gtk/gtkiconfactory.c: Update to reflect addition of error
15008         handling to gdk-pixbuf loaders
15009
15010 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
15011
15012         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
15013         move to new modularized testgtk.
15014
15015 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
15016
15017         * gtk/gtktreeview.c: Draw the arrows correctly.
15018
15019         * gtk/gtktreemodel.c: Added user docs.
15020
15021         * gtk/gtk.h: remove gtktreedatalist.h.
15022
15023         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
15024         parent when generating my type.
15025
15026         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
15027         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
15028
15029 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
15030
15031         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
15032         GtkTreeModel from object to interface.
15033
15034 2000-10-16  Havoc Pennington  <hp@redhat.com>
15035
15036         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
15037         compilation
15038
15039 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
15040
15041         * gtk/gtktreeselection.c: Add API documentation to all public
15042         functions.
15043
15044         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
15045         functions.
15046
15047 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
15048
15049         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
15050         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
15051         docs to all public functions.
15052
15053         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
15054         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
15055         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
15056         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
15057         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
15058         issue.
15059
15060 2000-10-14  Robert Brady  <robert@suse.co.uk>
15061
15062         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
15063
15064 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
15065
15066         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
15067         values other then G_TYPE_STRING.
15068         * gtk/gtktreeselection.c: Minor commenting updates.
15069         * gtk/gtktreeview.c: Format updates.
15070
15071 2000-10-09  Tor Lillqvist  <tml@iki.fi>
15072
15073         * README.win32: Update.
15074
15075         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
15076         lines that had been deleted by mistake (?).
15077
15078         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
15079         also the case fg==white and bg==black (but still not randomly
15080         coloured cursors). Thanks to Wolfgang Sourdeau.
15081
15082         * gdk/win32/*.c: Silence gcc -Wall.
15083
15084         * gtk/gtk.def: Add missing entry points.
15085
15086         Fixes by Hans Breuer:
15087
15088         * gdk/makefile.msc
15089         * gdk/win32/makefile.msc: Update.
15090
15091         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
15092         some MSVC thing, presumably), cause breakpoint on failures. Add
15093         GDK_NOR case. Call g_log_set_always_fatal.
15094
15095         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
15096         should be pased by reference.
15097         
15098         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
15099         
15100         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
15101
15102         * gdk/win32/gdkevents-win32.c
15103         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
15104
15105         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
15106         implementation object.
15107
15108         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
15109         not just windows.
15110         
15111         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
15112         Use the wrapper object.
15113         
15114 2000-10-06  Havoc Pennington  <hp@redhat.com>
15115
15116         * Makefile.am (SRC_SUBDIRS): contrib subdir
15117
15118         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
15119         so it can be used in Xlib version
15120
15121         * demos/testpixbuf.c (update_timeout): error checking from 1.0
15122         tree
15123
15124         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
15125         change from 1.0 tree that returns first frame of animation
15126         if the loaded file is an animation.
15127
15128         * contrib: add new directory to hold stuff that comes with GTK+
15129         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
15130         
15131         * configure.in: add contrib/*
15132
15133 2000-10-05  Havoc Pennington  <hp@redhat.com>
15134
15135         * demos/testpixbuf-save.c: add pixbuf save test
15136
15137         * demos/Makefile.am: add testpixbuf-save.c
15138
15139 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
15140
15141         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
15142         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
15143         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
15144         * gtk/gtktreeselection.[ch]: Replaced
15145         "node_selected"/"node_unselected" signal with "selection_changed"
15146         signal.
15147
15148 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
15149
15150         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
15151         tree widget.
15152
15153 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
15154
15155         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
15156         drawing.
15157
15158 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
15159
15160         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
15161         Move list pointer forwards before removing item from
15162         list. (Crash reported by Salmaso Raffaele)
15163
15164         * gdk/gdkwindow.h: Remove spurious trailing ,
15165
15166         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
15167         dependencies on uninstalled libraries, sorry folks.
15168
15169 2000-10-04  Havoc Pennington  <hp@redhat.com>
15170
15171         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
15172         gtk/gtkiconfactory.c: Fix copyrights    
15173
15174         * demos/testpixbuf.c: add inline pixbuf test
15175         
15176 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
15177
15178         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
15179         Add gdk_window_iconify.
15180
15181         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
15182         (gdk_window_set_geometry_hints): Add win_gravity
15183         to geometry structure.
15184
15185         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
15186         Implement _NET_WM_PING.
15187
15188         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
15189         Set _NET_WM_PID on the client leader.
15190
15191         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
15192         Handle UTF-8 better.
15193
15194         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
15195         UTF-8 better, set _NET_WM_NAME as well. Only set
15196         icon name if it hasn't previously been explicitely 
15197         set.
15198
15199 2000-10-03  Havoc Pennington  <hp@redhat.com>
15200
15201         * gtk/testtextbuffer.c: clean up trailing whitespace,
15202         add extensive tests for tag toggle iteration.
15203         
15204         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
15205         distance
15206
15207         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
15208         optimize case where the tag root is on level 1
15209         (gtk_text_line_previous_could_contain_tag): attempt to implement
15210         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
15211         functionality
15212
15213         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
15214         Implement this, though not very efficiently.
15215
15216         * gtk/gtktextiterprivate.h: reformat
15217
15218         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
15219         iterator
15220
15221         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
15222         this to properly revalidate the iterators.
15223
15224         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
15225         properly at the end of the line (and therefore on empty lines)
15226
15227         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
15228         maybe we should return a value...
15229
15230 2000-10-03  Tor Lillqvist  <tml@iki.fi>
15231
15232         * config.h.win32: Guard definition of alloca(). glib.h now handles
15233         that.
15234
15235         * gdk/gdk.def
15236         * gtk/gtk.def: Add new entry points.
15237
15238         Changes just to make GTK+ build without errors on Win32. No hope
15239         of it working in its current state, though...:
15240         
15241         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
15242         some functions from the X11 backend, just to make GTK+ build.
15243
15244         * gdk/makefile.mingw.in
15245         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
15246         number. Add new object files.
15247
15248         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
15249         GetMessageTime to get timestamp (where on X11 uses
15250         gdk_x11_get_server_time()).
15251
15252 2000-10-02  Havoc Pennington  <hp@pobox.com>
15253
15254         * gtk/gtktextview.c: text_window_* weren't static and should have
15255         been.
15256         Start work on child widgets; not yet complete, syncing to 
15257         office computer.
15258
15259         * gtk/gtktextchild.h: change this to contain a public interface,
15260         starting work on child interfaces.
15261         * gtk/gtktextchildprivate.h: move private interfaces here
15262
15263         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
15264
15265         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
15266         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
15267         gtk/gtktextmark.c: copyright notices
15268
15269         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
15270         internal functions      
15271
15272         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
15273         internal function
15274
15275         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
15276         Reformatting    
15277
15278 2000-09-30  Havoc Pennington  <hp@pobox.com>
15279
15280         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
15281         NULL start/end pointers
15282
15283         * gtk/gtktextbuffer.c: Write some docs
15284         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
15285         NULL, so you can just check whether there's a selection.        
15286
15287         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
15288         cleanup_line or segments_changed ourselves, it gets done 
15289         in unlink_segment
15290
15291         * gtk/gtktextmark.h:
15292         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
15293         
15294         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
15295
15296         * gtk/gtktextmark.c: delete some more old Tk cruft
15297
15298         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
15299         mark before removing it, so we can emit MARK_DELETED with a valid
15300         pointer.
15301         (gtk_text_buffer_mark_set): hold ref across signal emission
15302
15303         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
15304         whining about attempts to delete special marks
15305
15306         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
15307         underscore, since it's internal.
15308
15309         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
15310         now implemented in terms of iterators in gtktextiter.h
15311
15312         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
15313         New function, destructively sets contents of buffer. Also 
15314         a convenient way to clear the buffer by setting text to ""
15315
15316         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
15317         multiline string literal
15318
15319         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
15320         text changes.
15321
15322         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
15323         is not dereferenceable
15324         (gtk_text_iter_forward_lines): fix return value
15325
15326 2000-09-29  Havoc Pennington  <hp@redhat.com>
15327
15328         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
15329
15330         * gtk/gtktextview.c: Implement drag thresholding; change functions 
15331         that set border window size to have nicer name
15332         (gtk_text_view_mark_set_handler):  Fix this to have the 
15333         right signature.
15334
15335         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
15336
15337         * gtk/testtext.c: Update with API changes, put line numbers on 
15338         both sides.
15339         
15340         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
15341         with this
15342
15343         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
15344         pixbuf; delete a big block of #if 0 Tk code
15345
15346         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
15347         insert_pixmap with insert_pixbuf
15348
15349 2000-09-29  Martin Baulig  <baulig@suse.de>
15350
15351         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
15352         confusion with the GdkPixbuf of the GNOME 1.x platform.
15353
15354 2000-09-29  Havoc Pennington  <hp@pobox.com>
15355
15356         * gtk/gtktextview.c: Implement the side windows.
15357
15358         * gtk/testtext.c: Implement simple line numbering in the 
15359         left side window; seems to make scrolling sloooow. Oops.
15360         Also, cursor blink is for some reason causing redraws
15361         of the line numbers. Should investigate...
15362
15363 2000-09-28  Havoc Pennington  <hp@redhat.com>
15364
15365         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
15366         scrolling child windows, and draw focus rectangle properly.
15367         
15368         (gtk_text_view_buffer_to_window_coords):
15369         Coordinate transformation to deal with all these freaking windows
15370         and offsets
15371         (gtk_text_view_window_to_buffer_coords): transform the other way
15372
15373         * gtk/testtext.c (create_buffer): Update to match Pango API change
15374
15375         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
15376         anonymous tags
15377         (foreach_unref): don't emit remove signal from finalize, just
15378         set tag's parent to NULL
15379
15380 2000-09-26  Havoc Pennington  <hp@redhat.com>
15381
15382         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
15383         Fix some warnings       
15384
15385 2000-09-26  Havoc Pennington  <hp@redhat.com>
15386
15387         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
15388         headers into the private header list
15389
15390         * Makefile.am (pkgconfig_DATA): install pkg-config files
15391
15392         * configure.in: add pkg-config files
15393
15394         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
15395
15396         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
15397         outstanding icon caches on theme change.
15398
15399         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
15400         important types:
15401
15402         (GtkIconSource): Specification for creating a pixbuf 
15403         appropriate for a direction/state/size triplet from 
15404         a source pixbuf or filename
15405
15406         (GtkIconSet): List of GtkIconSource objects that are used to
15407         create the "same" icon (e.g. an OK button icon), and cache for
15408         rendered icons
15409
15410         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
15411         up the icon set for a given stock ID.  GTK maintains a stack of
15412         GtkIconFactory to search, and applications or libraries can add
15413         additional icon factories on top of the stack
15414         
15415         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
15416         the set of GtkIconSource specified for a given stock ID into 
15417         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
15418         RcStyle, under the specified stock ID.
15419
15420         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
15421         render_icon used to derive a GdkPixbuf from a GtkIconSource.
15422         This allows people to theme how prelight, insensitive, etc. are
15423         done.
15424
15425         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
15426         icon factories for a style, and return the resulting 
15427         icon set if any.
15428
15429         (gtk_style_render_icon): Render an icon using the render_icon 
15430         method in the GtkStyleClass.
15431
15432         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
15433         Use the style for a given widget to look up a stock ID, get the
15434         icon set, and render an icon using the render_icon method 
15435         of the style
15436
15437         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
15438         (contains information about a stock item), the built-in stock item
15439         IDs, and functions to add/lookup stock items.
15440
15441         * gtk/stock-icons/*: Stock icons that come with GTK
15442
15443         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
15444         a button based on a GtkStockItem
15445         (gtk_button_new_accel): Takes a uline string and accel group, and
15446         installs the accelerator.
15447
15448         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
15449         image-display widget.
15450
15451 2000-09-25  Havoc Pennington  <hp@redhat.com>
15452
15453         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
15454
15455         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
15456         Fix a bug when removing node data, we didn't properly 
15457         re-splice the linked list after removing the data.
15458
15459         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
15460         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
15461
15462         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
15463
15464         * gtk/gtktextlayout.c (set_para_values): Set tab array 
15465         for the layout from the GtkTextTag.
15466
15467         * gtk/gtktexttypes.h: delete tab and search cruft, 
15468         remove g_convert() in favor of GLib version
15469
15470         * gtk/gtktexttypes.c: remove tab implementation from here,
15471         move to Pango
15472
15473         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
15474         tab stuff using new PangoTabArray from Pango
15475
15476         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
15477         unused border_width stuff
15478
15479 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
15480
15481         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
15482         glib) and now useless utf_to_latin1() latin1_to_utf()
15483
15484         * gtk/gtktextview.[ch]: Change ::move_insert and
15485         ::delete_text action signals to ::move and ::delete;
15486         create the signals with the right enumeration type,
15487         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
15488         C-v bindings, change Home, End to move to beginning/end
15489         of line, Add C-Home C-End to move to beginning/end
15490         of buffer. Change ::cut_text to ::cut_clipboard, etc;
15491         combine ::scroll_text into ::move; use new GtkSelectionData
15492         functions to simplify DND text handling.
15493         
15494         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
15495         deletion enumerations here, rename enumeration values to 
15496         be consistently plural.
15497
15498         * gtk/gtktextbuffer.c: Use new clipboard interfaces
15499         for cut/copy/paste and primary selection.
15500
15501         * gtk/gtktextbuffer.[ch]: Remove excess time and
15502         'interactive' arguments from cut/copy/paste;
15503         rename cut to cut_clipboard, etc; remove
15504         gtk_text_buffer_get_clipboard_contents().
15505
15506         * gtk/gtktextlayout.[ch]: Add 
15507         gtk_text_layout_move_iter_to_line_end() to move the iter to 
15508         line ends.
15509
15510         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
15511         Functions to set or get a UTF-8 string on the selection
15512         data.
15513
15514         * gtk/gtkclipboard.[ch]: New, simplified selection handling
15515         interfaces.
15516
15517         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
15518         created widgets - one of these is useless if we don't.
15519
15520         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
15521         a public function clear all targets registered for the
15522         widget.
15523
15524         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
15525         Never call gtk_widget_realize() - that was just asking
15526         for bizarre side-effects.
15527
15528         * gtk/gtkselection.c (gtk_selection_owner_set): Call
15529         gdk_selection_owner_set even if the widget is the
15530         same so that we reliably update the timestamp on
15531         the server.
15532
15533         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
15534         gdk_x11_get_server_time() function.
15535         
15536         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
15537         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
15538         Add some tricky filtering on serial numbers for
15539         selection clear events to fix up long-standard
15540         race condition FIXME's in gtkselection.c.
15541
15542         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
15543         routines to convert from utf8 to compound text or
15544         STRING and from a text property to UTF-8.
15545
15546         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
15547         a convenience function gdk_get_current_event_time().
15548
15549         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
15550         and free selection_data->data properly
15551
15552 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
15553
15554         * gtk/gtkthemes.c: Remove some unecessary includes.
15555
15556 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
15557
15558         * gtk/gtktextdisplay.c
15559         * gtk/gtktextlayout.c
15560         * gtk/gtktexttag.c
15561         * gtk/gtktexttag.h
15562         * gtk/testtext.c: Change the overstrike property to strikethrough,
15563         to closer match pango.
15564
15565 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
15566
15567         * gtk/gtktextview.c: Fix up visibility so that focus,
15568         cursor_visible and blink interact properly.  Reenable cursor blink
15569         which had been roughly disabled. Make blink and focus
15570         properly per-view.
15571
15572         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
15573         Add a flag for whether to display insertion cursor and
15574         a function to set the flag.
15575
15576         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
15577         get_line_y() to get_line_yrange(), to be a bit more generally
15578         useful.
15579
15580 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
15581
15582         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
15583           do stop_navigating_submenu, to clear last timeout properly.
15584           Also in gtk_menu_motion_notify move ignore_enter above
15585           the conditional to make it always happen as suggested by Owen
15586
15587 2000-09-07  Tor Lillqvist  <tml@iki.fi>
15588
15589         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
15590
15591         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
15592         w32api headers.
15593
15594         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
15595         declarations.
15596
15597         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
15598         (gdk_win32_get_colormap): A line had been deleted by mistake.
15599
15600         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
15601         (gdk_event_translate): Handle more virtual keycodes to be able to
15602         generate GDK events for Control-comma, Control-period, etc.
15603
15604         * gtk/gtk.def: Add some missing entry points.
15605
15606 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
15607
15608         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
15609         Doc comment fixing. (Mostly non-matching parameter names.)
15610
15611         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
15612         comments a little to avoid looking like a doc comment.
15613
15614         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
15615         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
15616         conversions be changed to GError?)
15617
15618         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
15619         Move private #defines into .c file.
15620
15621         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
15622         order of argument addition, remove duplicates.
15623
15624         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
15625         parent class is FrameClass, not BinClass.
15626
15627         * gtk/gtk.h: Add gtkinvisible, which was missing.
15628         (It's occasionalyl useful for client apps, if seldom.)
15629
15630         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
15631         #define.
15632
15633 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
15634
15635         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
15636         coordinates when creating window, instead of GDK-space
15637         coordinates. (Avoid BadValue on too large windows.)
15638
15639 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
15640
15641         * configure.in (use_mmx_asm): Remove conftest* after use along the
15642         lines of AC_TRY_COMPILE.        
15643         
15644         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
15645         of g_dirname, which is deprecated.
15646         (gtk_rc_parse_any): Removed calls to
15647         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
15648
15649         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
15650         Removed calls to g_hash_table_{freeze,thaw}, as they are
15651         deprecated now.
15652
15653         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
15654         instead of g_basename.
15655         
15656 2000-09-04 Elliot Lee <sopwith@redhat.com>
15657         
15658         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
15659         ANSI warning.
15660
15661 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
15662
15663         * gtk/gtkwidget.h:  Add some documenting comments about 
15664           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
15665           just as owen said on irc.
15666
15667         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
15668           set HAS_DEFAULT.  Only set it if there isn't another window
15669           holding it (a focus window which RECEIVES_DEFAULT) and only unset
15670           it if the widget is not the focused window with RECEIVES_DEFAULT.
15671           This fixes weird double default bugs in dialogs which has things
15672           call gtk_window_set_default at times.
15673
15674 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
15675
15676         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
15677         Nils Barth and David Santiago to improve submenu
15678         navigation. The patch does this by creating a triangular
15679         region from the point where the pointer leaves the
15680         menu to the submenu.  While the pointer is in
15681         that region and a timeout has not expired, events 
15682         that would cause the active submenu to change are
15683         ignored.
15684
15685 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
15686
15687         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
15688         moving a toplevel window immediately after sizing it would
15689         result in it being sized back to the old size since 
15690         impl->width, impl->height aren't updated until we hear
15691         back from the server. There is still a (longstanding) bug
15692         here that gdk_window_get_size() will give the wrong size
15693         until we do hear back.
15694
15695 2000-08-31  Havoc Pennington  <hp@redhat.com>
15696
15697         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
15698         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
15699         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
15700         Rename GtkTextStyleValues to GtkTextAttributes
15701
15702 2000-08-31  Havoc Pennington  <hp@pobox.com>
15703
15704         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
15705         for rapid testing whether an iterator is the end iterator
15706         (gtk_text_btree_new): init end line cache
15707         (gtk_text_line_is_last): use fast cached line to 
15708         see if we're the last line.
15709         (get_last_line): use cached line here too, should 
15710         speed up some random unrelated code.
15711         
15712 2000-08-30  Havoc Pennington  <hp@pobox.com>
15713
15714         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
15715         signals.
15716
15717         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
15718         delete_text signals. This allows the signals to be used for
15719         implementing undo.
15720
15721         * gtk/gtktextbuffer.c: Change signal handler signatures; 
15722         provide "interactive" argument when emitting insert_text or
15723         delete_text signal.
15724         
15725 2000-08-30  Havoc Pennington  <hp@pobox.com>
15726
15727         * gtk/gtktextbuffer.c: Docs
15728
15729 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
15730
15731         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
15732         from switch statements, since Tor removed the enumeration
15733         value.
15734         
15735         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
15736         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
15737
15738 2000-08-29 Elliot Lee <sopwith@redhat.com>
15739         * */*.h: Use G_GNUC_CONST.
15740
15741 2000-08-27  Havoc Pennington  <hp@pobox.com>
15742
15743         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
15744         minor indentation fixes, inserted some FIXME about stuff I
15745         realized was broken while documenting it.
15746         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
15747         GTK convention  
15748
15749 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
15750
15751         * gtk/testgtk.c (create_styles): Fix double free of
15752         font desc.
15753
15754 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
15755
15756         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
15757         
15758         * gtk/testgtk.c (create_styles): Add a test for modifying
15759         the style through gtk_widget_modify_*.
15760
15761         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
15762         a function to get the current modifier style.
15763
15764         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
15765         of the passed in GtkRcStyle instead of ref'ing it.
15766
15767         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
15768
15769 2000-08-20  Tor Lillqvist  <tml@iki.fi>
15770
15771         * gdk/gdkimage.h
15772         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
15773         shared memory image+pixmap GdkImage type, or
15774         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
15775         I am dropping that.
15776
15777         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
15778         actually call gtk_init_abi_check(), passing also
15779         sizeof(GtkWindow). Ditto for gtk_init_check(). 
15780
15781         * gtk/gtk.def
15782         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
15783         New functions, used to check that the GTK+-using code has been
15784         compiled using the correct compiler and switches. In particular,
15785         with gcc one has to use the -fnative-struct switch as GTK+ is
15786         compiled with that.
15787
15788 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
15789
15790         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
15791         ->prev fields when merging lists. (Found simultaneously
15792         by Pawel Salek and Jakub Jelinek)
15793
15794 2000-08-12  Tor Lillqvist  <tml@iki.fi>
15795
15796         * gdk/gdk.def
15797         * gtk/gtk.def: Add missing entries.
15798
15799         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
15800         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
15801
15802         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
15803         function. Dummy implementation at this point.
15804
15805         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
15806         rules. Undefine GTK_COMPILATION when compiling the test programs.
15807         
15808         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
15809
15810 2000-08-11  Tor Lillqvist  <tml@iki.fi>
15811
15812         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
15813         to convert back and forth from UTF-8 and the "system" (or "current
15814         locale") charset when necessary. Indentation/spacing cleanup.
15815
15816 2000-08-10  Havoc Pennington  <hp@redhat.com>
15817
15818         * Makefile.am (snapshot): Change the format of the snapshot
15819         version to match glib
15820
15821         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
15822         from EXTRA_DIST since it doesn't seem to exist
15823
15824 2000-08-10  Tor Lillqvist  <tml@iki.fi>
15825
15826         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
15827         version of the directory name (not the UTF-8 one) when building
15828         the path name to stat().
15829
15830 2000-08-03  Elliot Lee  <sopwith@redhat.com>
15831
15832         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
15833         PANGO_ATTR_SHAPE set.
15834
15835 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
15836
15837         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
15838         Peter Osterlund to simplify the code while keeping the
15839         functionality the same.
15840
15841 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
15842
15843         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
15844         is_viewable() test further inside the function, since removing the 
15845         window from the redraw list without clearing ->update_area
15846         was also very broken.
15847
15848 2000-08-02  Tor Lillqvist  <tml@iki.fi>
15849
15850         * configure.in: Check for <unistd.h>.
15851
15852 2000-08-01  Martin Baulig  <baulig@suse.de>
15853
15854         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
15855         to display the message that this is a development version of GTK+.
15856
15857 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
15858
15859         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
15860         was depending on widget->allocation instead of the width of text_area,
15861         which was incorrect for subclasses like GtkSpinButton.
15862
15863         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
15864         with width == 1 tests that should be width == -1.
15865
15866 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
15867
15868         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
15869         (broken, Elliot, every single window blank on X) custom code with call
15870         to gdk_window_is_viewable() which a) prevents code duplicate and
15871         b) works. 
15872
15873 2000-07-31  Elliot Lee  <sopwith@redhat.com>
15874
15875         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
15876         to get the GDK_PARENT_ROOT() macro to work.
15877         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
15878         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
15879         of, windows that aren't shown.
15880         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
15881         pointer grab stuff.
15882
15883 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
15884
15885         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
15886           s/gtk_main_iteration/g_main_iteration/
15887
15888           Did this already in change:
15889                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
15890           don't know how it got reverted.
15891
15892 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
15893
15894         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
15895         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
15896
15897         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
15898         not gdk_pixbuf.
15899
15900 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
15901
15902         * configure.in,po/{sp,sr}.po: Added Serbian files
15903
15904 2000-07-30  Tor Lillqvist  <tml@iki.fi>
15905
15906         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
15907
15908         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
15909         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
15910         GIOChannel implementation.
15911
15912         * gdk/win32/gdkinput.c
15913         * gdk/win32/gdkpango-win32.c: Update license name here, too.
15914
15915         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
15916         definition to match prototype.
15917
15918         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
15919
15920 2000-07-27  Elliot Lee  <sopwith@redhat.com>
15921
15922         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
15923         function, to allow handling image formats that cannot be detected
15924         by looking at content alone.
15925
15926 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
15927
15928         * docs/tutorial/*.gif *.jpg *.eps
15929           Update these to the same look-n-feel.
15930           Why does including images in DocBook suck so badly?
15931
15932 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
15933
15934         * gtk/gtktable.c: applied patch from Phil Thompson
15935         <phil@river-bank.demon.co.uk> that enables space settings for
15936         the last row/columns as well.
15937
15938 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
15939
15940         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
15941         updates the license headers to the GNU Lesser General Public License,
15942         as well as updating the copyright year to 2000.
15943
15944 2000-07-26  Robert Brady  <rwb197@zepler.org>
15945
15946         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
15947           and po/Makefile, was installing and looking for them under gtk20
15948           and gtk2 respectively.
15949
15950 2000-07-25  Havoc Pennington  <hp@redhat.com>
15951
15952         * gtk/testtext.c: Comment out some stuff that depends on the rest
15953         of my patches.
15954
15955 2000-07-25  Havoc Pennington  <hp@redhat.com>
15956
15957         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
15958         buffer
15959
15960 2000-07-25  Havoc Pennington  <hp@redhat.com>
15961
15962         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
15963         widget changes.
15964
15965         * gtk/gtktextview.h: To be consistent with usage of "line"
15966         throughout the API to mean "newline-terminated thingy", change
15967         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
15968         to MOVEMENT_LINE.
15969
15970         (GtkTextView): Add flags for default editability, and whether to
15971         show the cursor. Add functions to get/set that. Add 
15972
15973         (gtk_text_view_get_iter_location): new function
15974
15975         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
15976         gtktextlayout.h
15977         (g_convert): Add g_convert temporarily, will go in glib in a bit
15978         
15979         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
15980         GtkTextTagTableForeach instead of brokenly using GHFunc.
15981         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
15982
15983         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
15984         moved to public header.
15985
15986         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
15987         "invisible", since "elide" was a bad name.
15988         (gtk_text_tag_get_priority): Added
15989
15990         (GtkTextStyleValues): put this in public header, along with
15991         functions to use it.
15992
15993         * gtk/gtktextmarkprivate.h: Include more headers, since we no
15994         longer include gtktextbtree.h.
15995
15996         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
15997         gtk_text_mark_deleted
15998
15999         * gtk/gtktextlayout.h: Don't include the "really private" headers,
16000         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
16001         to make this possible. Now we only need to install
16002         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
16003         (However the Makefile.am isn't changed yet because of the
16004         logistics of merging gtk-hp-patches piecemeal)
16005
16006         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
16007         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
16008         gtk_text_iter_get_line is now used in the public API for a
16009         different purpose.
16010
16011         * gtk/gtktextiter.h: Clean up function names to be more
16012         consistent. Always call char offset "offset" and byte index
16013         "index". A "line" is always a line number. 
16014
16015         (gtk_text_iter_is_last): new function, more efficient than 
16016         the existing way to check
16017         (gtk_text_iter_is_first): new function, also more efficient
16018
16019         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
16020
16021         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
16022         gtk_text_iter_forward_char, etc.
16023
16024         (gtk_text_iter_forward_to_tag_toggle): Renamed from
16025         forward_find_tag_toggle, since this isn't a linear search
16026
16027         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
16028
16029         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
16030         New functions, search for a buffer substring.
16031
16032         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
16033         interactive and default editable (since we need to store that info
16034         until we receive the selection data).
16035
16036         Remove all the _at_char and at_line etc. versions of functions;
16037         only have iterator versions.
16038
16039         Add _interactive() versions of functions, that consider the
16040         editability of text. (FIXME add interactive flag to the 
16041         insert/delete signals per Darin's suggestion)
16042
16043         (gtk_text_buffer_get_tag_table): new function, demand-creates the
16044         tag table if necessary
16045
16046         Remove declaration of gtk_text_buffer_get_iter_from_string
16047
16048         (_gtk_text_buffer_get_btree): private/internal function, added.
16049         
16050
16051         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
16052         (gtk_text_line_is_last): new function
16053
16054 2000-07-25  Havoc Pennington  <hp@redhat.com>
16055
16056         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
16057         using GtkProgressBar. See Changes-2.0.txt for details.
16058
16059         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
16060         "pulse_step" which are the equivalent of
16061         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
16062         Implement new API.
16063         
16064         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
16065         (use_text_format) to mark whether text set on the progress bar is
16066         a format string. Deprecate entire GtkProgress interface.
16067
16068         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
16069         (gtk_progress_build_string): make this a no-op if use_text_format
16070         is FALSE
16071
16072         * docs/Changes-2.0.txt: Describe progress bar changes.
16073
16074 2000-07-25  Tor Lillqvist  <tml@iki.fi>
16075
16076         * Makefile.am: Include the build directory.
16077
16078         * configure.in: Generate build/Makefile, build/win32/Makefile,
16079         gdk/, gdk/win32/, and gtk/makefile.mingw.
16080
16081         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
16082         Add GETTEXT_PACKAGE.
16083         
16084         * gdk/gdk.def
16085         * gtk/gtk.def: Updates.
16086
16087         * gdk/gdkfont.h
16088         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
16089         need them any longer.
16090
16091         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
16092
16093         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
16094         PANGOWIN32_LIBS and gdk_pixbuf.
16095
16096         * gdk/win32: Compiles, but no doubt doesn't work at all.
16097
16098         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
16099
16100         * gdk/win32/gdkinput.c: New file, temporarily.
16101         
16102         * gdk/win32/gdkinput-win32.h: New file
16103
16104         * gdk/win32/gdkinputprivate.h: Remove.
16105
16106         * gdk/win32/gdkpango-win32.c: New file.
16107
16108         * gtk/makefile.mingw.in: New file
16109
16110         * gtk/makefile.cygwin: Removed
16111         
16112         * gtk/Makefile.am: Update accordingly.
16113
16114         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
16115         made externally visible.
16116
16117         * gtk/gtkmain.c: Use it.
16118         
16119         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
16120         is enough.
16121
16122         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
16123
16124 2000-07-24 Elliot Lee <sopwith@redhat.com>
16125         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
16126         individual backends already.
16127         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
16128         again. Yes, there really is a good reason for this, if you are using the gdkregion
16129         internals, and if you're not, why do you care?
16130         * gdk/gdkwindow.c: Fix inverted condition
16131         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
16132         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
16133         * gtk/gtkrange.c: Redraw trough when moving.
16134         * gtk/gtktypeutils.c: Fix warning by adding const cast.
16135         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
16136
16137 2000-07-23  Tor Lillqvist  <tml@iki.fi>
16138
16139         * configure.in: Check for mkstemp and sigsetjmp. Output
16140         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
16141
16142         More work on GDK for Win32. Still in an intermediate state.
16143
16144         * gdk/makefile.cygwin
16145         * gdk/win32/makefile.cygwin: Removed.
16146         
16147         * gdk/makefile.mingw.in
16148         * gdk/win32/makefile.mingw.in: New files.
16149
16150         * gdk/Makefile.am
16151         * gdk/win32/Makefile.am: Generate and distribute them.
16152
16153         * gdk/win32/gdkwindow-win32.h
16154         * gdk/win32/gdkdrawable-win32.h
16155         * gdk/win32/gdkpixmap-win32.h: New files.
16156
16157         * gdk/win32/gdkcolor-win32.c
16158         * gdk/win32/gdkcursor-win32.c
16159         * gdk/win32/gdkdrawable-win32.c
16160         * gdk/win32/gdkgc-win32.c
16161         * gdk/win32/gdkimage-win32.c
16162         * gdk/win32/gdkprivate-win32.h
16163         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
16164         Rename fields and variables called xcursor, xid, etc (these names
16165         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
16166
16167 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
16168
16169         * gtk/gtkentry.[ch]: Fix some problems with vertical
16170         alignment.
16171
16172         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
16173         char/byte confusion.
16174
16175 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
16176
16177         * gtk/gtktextview.c (changed_handler): Fix bug where
16178         redraw wasn't being done properly when height of
16179         dirty region changed.
16180
16181         * demos/Makefile.am: Remove various references to
16182         -lgmodule
16183
16184 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
16185
16186         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
16187         PangoAttrShape to reserve space for pixmaps, add 
16188         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
16189         in the display functions.
16190         
16191         * gtk/testgtk.c (create_layout): Set some more exotic
16192         scrolled window options
16193
16194         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
16195         Add function to set the shadow type of a window, to allow
16196         putting a shadow around widgets such as GtkLayout or GnomeCanvas
16197         which don't draw their own frame.
16198
16199 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
16200
16201         * docs/tutorial/package-db-tutorial.sh: New file for
16202           packaging DocBook format tutorial
16203
16204 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
16205
16206         * docs/tutorial/gtk-tut.sgml: Minor updates
16207
16208         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
16209
16210 2000-07-19  Tor Lillqvist  <tml@iki.fi>
16211
16212         * gtk/gtksignal.c: Fix C++ comment.
16213
16214         * gtk/gtkimmulticontext.c
16215         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
16216         don't return value from void functions.
16217
16218         * gtk/gtk.def: Add gtk_rc_style_unref.
16219
16220 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
16221
16222         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
16223         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
16224         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
16225         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
16226         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
16227         gtk/gtktypeutils.h: Include files outside of the extern "C"
16228         block. Makes some C++ compiler happy. Reported by Denis Vakatov
16229         <vakatov@peony.nlm.nih.gov>.
16230
16231 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
16232
16233         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
16234           Completes first pass. Hurrah!
16235
16236 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
16237
16238         * docs/tutorial/gtk-tut.sgml: More clean ups.
16239
16240 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
16241
16242         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
16243         paint the background of the text area which was accidentally
16244         removed at some point.
16245
16246         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
16247           
16248          - Move most of the functionality from the theme vtable
16249            into GtkRcStyleClass and GtkStyleClass. The moved
16250            vtable functions were changed a bit in the move to
16251            work better in their new home.
16252
16253          - Get rid of the engine and engine_data fields from
16254            GtkRcStyle and GtkStyle; instead the theme
16255            engine derives theme-specific subclasses of GtkRcStyle
16256            and GtkStyle
16257
16258          - Add extra dlsym() found entry point to themes,
16259            theme_create_rc_style().
16260
16261         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
16262         in gtk_style_real_copy.
16263
16264         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
16265         to register a type associated with an engine. (The engine
16266         won't be unloaded as there is an instance of the type.)
16267
16268
16269 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
16270
16271         * docs/tutorial/gtk-tut.sgml: Clean ups.
16272
16273 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
16274
16275         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
16276           of cleaning up to do.
16277
16278 2000-07-15  Tor Lillqvist  <tml@iki.fi>
16279
16280         * gdk/testgdk.c: New file, quick hack to test backends for
16281         pixel-by-pixel correctness of the most simple graphic operations.
16282
16283 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
16284
16285         * Really release 1.3.1
16286         
16287         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
16288         include structure.
16289
16290 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
16291
16292         * Released 1.3.1
16293
16294 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
16295
16296         * gtk/gtktextlayout.c: use FALSE for size_only most
16297         of the time when calling gtk_text_layout_get_line_display()
16298         to avoid causing double reshapes when a redraw follows
16299         immediately after.
16300
16301 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
16302
16303         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
16304         appropriate region and gdk_window_process_updates() so trough
16305         updating doesn't lag behind the window being scrolled.
16306
16307         * gdk/gdkgc.c: Make parent_class pointer static.
16308          
16309 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
16310
16311         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
16312         include <string.h>.
16313          
16314         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
16315         cut-and-paste error in computing memory offset for 4 channels.
16316
16317 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
16318
16319         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
16320         gtk_rc_append_default_pixmap_path(), since it wasn't
16321         adding an interesting path and we don't have a meaningful
16322         default for this value.
16323
16324 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
16325
16326         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
16327         gtk-config to gtk-config-2.0 move gtk_.m4 to
16328         gtk-2.0.m4
16329
16330         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
16331         gdk/Makefile.am demos/Makefile.am: Change 
16332         library names to libgtk-1.3.la, etc, so that we
16333         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
16334
16335         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
16336         gdk/Makefile.am gdk/x11/Makfile.am
16337         Move include files into /usr/include/gtk-2.0, 
16338         /usr/lib/gtk-2.0/include/
16339          
16340         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
16341         gtk/gtkintl.h: Change package for gettext from 
16342         gtk+ to gtk20. Put hack in autogen.sh to modify
16343         po/Makefile.in.in after gettextize to make this
16344         possible.
16345
16346         * gtk+.spec: Some updates, not tested.
16347
16348         * gdk-pixbuf/Makefile.am: Move loaders into
16349         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
16350
16351         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
16352         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
16353         to THEMENAME/gtk-2.0/. Move engine directory  to
16354         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
16355         
16356 2000-07-12  Tor Lillqvist  <tml@iki.fi>
16357
16358         Win32 changes, still doesn't build though.
16359
16360         * gdk/makefile.cygwin
16361         * gdk/win32/makefile.cygwin
16362         * gtk/makefile.cygwin: Updates.
16363
16364         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
16365         default values for fg and bg pixel as X11 does (0 and 1), not
16366         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
16367         Use 0 for pen width by default (treated as 1 anyway later, but for
16368         apps that might check the value in the GdkGC).
16369         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
16370         interface to gdk_gc_predraw and _postdraw.
16371
16372         * gdk/win32/gdkwin32.h
16373         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
16374
16375         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
16376         extraneous semicolon.
16377
16378         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
16379
16380         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
16381         not the Win32 bitspixel value.
16382
16383         * gdk/win32/gdkcc-win32.c:
16384         * gdk/win32/gdkcolor-win32.c 
16385         * gdk/win32/gdkprivate-win32.h
16386         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
16387         GDK object structure.
16388
16389 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
16390
16391         * docs/tutorial/gtk_tut_12.es.sgml (name): 
16392         * docs/tutorial/gtk_tut_it.sgml (name): 
16393         * docs/tutorial/gtk_tut_fr.sgml (name): 
16394         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
16395         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
16396
16397 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
16398
16399         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
16400           small changes.
16401
16402 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
16403
16404         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
16405         a bug here, never been here and never fixed anything ;(
16406         (don't segfault if tree->root_tree is NULL, which happens prior
16407         to widget realization, but puke instead).
16408
16409 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
16410
16411         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
16412         add the necessary tokens.
16413
16414         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
16415         (gtk_rc_style_to_style): copy thicknesses.
16416         (gtk_rc_init_style): apply thicknesses.
16417         (gtk_rc_parse_style): parse xthickness and ythickness.
16418
16419         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
16420
16421         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
16422         (gdk_window_new): 
16423         (_gdk_windowing_window_init): 
16424         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
16425         (gdk_pixmap_create_from_data): 
16426         (gdk_bitmap_create_from_data): 
16427         (gdk_pixmap_new): 
16428         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
16429         (gdk_image_new): 
16430         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
16431         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
16432         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
16433         (gdk_colormap_get_system): 
16434         (gdk_colormap_new): 
16435         * gdk/gdkwindow.c (gdk_window_init): 
16436         * gtk/gtkstyle.c (gtk_style_new):
16437         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
16438         * gdk/gdkpixmap.c (gdk_pixmap_init): 
16439         * gtk/gtkrc.c (gtk_rc_style_new):
16440         use g_object_new() instead of g_type_create_instance() which
16441         is a private function for fundamental type implementations.
16442
16443 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
16444
16445         * configure.in: Add check for db2html
16446
16447 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
16448
16449         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
16450         hack to set glib_debug_objects based on gtk_debug_flags.
16451
16452 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
16453
16454         * INSTALL.in: Update the Prerequisites section.
16455
16456         * Makefile.am demos/Makefile.am docs/Makefile.am
16457         docs/tutorial/Makefile.am gdk/x11/Makefile.am
16458         gdk/linux-fb/Makefile.am: Dist fixes
16459
16460 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
16461
16462         * NEWS: 10,000 foot view of 1.3.1 changes.
16463
16464 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
16465
16466         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
16467         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
16468         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
16469         gdk/x11/gdkmain-x11.c: 
16470
16471         Patch from George Lebl to add a GdkGrabStatus enumeration to use
16472         as a return value of gdk_*_grab(). Previously, we just
16473         returned the X11 values directly.
16474
16475 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
16476
16477         * gdk/x11/Makefile.am: Patch from George Lebl to 
16478         install all the headers in the right place.
16479
16480 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
16481
16482         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
16483           initial conversion to DocBook.
16484
16485 2000-07-04  Tor Lillqvist  <tml@iki.fi>
16486
16487         * README.win32: Improve a bit.
16488
16489         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
16490         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
16491         Alt+0nnn on the numpad (used to enter characters by numeric code
16492         from current DOS or ANSI codepage) working correctly, as in other
16493         Windows apps.
16494
16495         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
16496         same argument validity tests as in X11 version.
16497         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
16498
16499         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
16500         definitions in case missing from headers.
16501
16502         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
16503         destroy the window-specific cursor.
16504         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
16505         calling GetModuleHandle(NULL).
16506         (gdk_window_set_cursor): Reworked to always copy the passed cursor
16507         with CopyCursor before setting it as the window-specific
16508         cursor. It is OK for the caller to destroy the GdkCursor (and thus
16509         also its Windows cursor) after calling this function. Destroy any
16510         previous window-specific cursor.
16511
16512 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
16513
16514         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
16515         font charset is iso8859-1, not iso-8859-1.
16516
16517 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
16518
16519         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
16520         Use g_get_charset() instead of g_get_codeset().
16521
16522         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
16523         Comment out some strdup'ing functions to keep timj
16524         happy until we finish fighting this out.
16525
16526 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
16527
16528         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
16529         <= width or height.
16530
16531         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
16532         from 1.2 for parent/child states.
16533
16534         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
16535         of typos.
16536
16537         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
16538         event structures, replace with a generic axes field. Replace 
16539         deviceid/sourec with GdkDevice *device.
16540
16541         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
16542         to extract particular axis use value from event. (Also
16543         can be used for normal X/Y.)
16544
16545         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
16546         allow for arbitrary number of axes, namespace everything
16547         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
16548         everywhere.
16549
16550         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
16551         Get rid of the gdk_input_vtable setup if favor of simply
16552         defining the functions in gdkinput-none/gxi/xfree.c in
16553         a similar fashion to the way that the port structure is 
16554         done.
16555
16556         * gtk/gtkdnd.c: Fix fields of synthesized button press event
16557         for new event structures. 
16558
16559         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
16560         new device interfaces.
16561
16562 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
16563
16564         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
16565         set the initial text.
16566
16567         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
16568         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
16569         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
16570         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
16571
16572         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
16573         pango_layout_set_font_description to simplify.
16574
16575 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
16576
16577         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
16578         pango_layout_set_font_description to simplify.
16579
16580 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
16581
16582         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
16583         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
16584         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
16585
16586         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
16587         PANGO_PIXELS() macro.
16588
16589 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
16590
16591         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
16592         that returns a PangoContext owned by the widget and updated to
16593         match future changes in the widget. Also, make 
16594         gtk_widget_create_pango_layout() use this context. If we ever
16595         add a ::changed signal to PangoContext, this will make things
16596         much more convenient. 
16597
16598         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
16599         in the appropriate places instead of destroying the layouts and
16600         creating new ones.
16601
16602         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
16603         in a few strategic places.
16604
16605 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
16606
16607         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
16608         gtk_widget_size_request() on reparented child, if one. Otherwise,
16609         queue_resize() on the child never results in it getting size-requested
16610         at all.
16611
16612         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
16613         in option menus, so that (with luck) people won't copy it into
16614         their apps in the future.
16615
16616         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
16617         to gtk_option_menu_calc_size. This isn't perfect, but should fix
16618         a lot of problems with changing the size of the menu's menu
16619         items after adding it to the option menu.
16620
16621         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
16622
16623         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
16624         the text direction for a widget changes.
16625
16626         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
16627         ::direction_changed to get rid of various hacks.
16628
16629 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
16630
16631         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
16632         name.
16633
16634 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
16635
16636         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
16637         flag to the structure. Do not call XFreePixmap on pixmaps created
16638         by gdk_pixmap_foreign_new().
16639
16640 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
16641
16642         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
16643         value using GdkRGB functionality given GdkColormap and GdkColor.
16644         (name not final, waiting for inspiration.)
16645         
16646         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
16647         set the foreground/background of a GC using the GC's colormap
16648         and GdkRGB. (name not final, waiting for inspiration.)
16649
16650         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
16651         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
16652
16653         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
16654         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
16655         purely a function of the corresponding colormap. Make
16656         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
16657
16658         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
16659         gdk_pixbuf_*create_from_xpm_* in terms of
16660         gdk_pixbuf_new_from_xpm_data(), move into platform independent
16661         code.
16662
16663         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
16664         advantage of the new draw_rgb_32_image_dithalign.
16665
16666         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
16667
16668         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
16669         on each created GC.
16670
16671         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
16672
16673         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
16674         which we initialize from the drawable when the GC is created,
16675         if the drawable has a colormap.
16676
16677         * gdk/x11/gdkgc-x11.c: include string.h for memset.
16678
16679         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
16680
16681         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
16682
16683 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
16684
16685         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
16686         actually returning expose events, make sure to set
16687         the count field properly.
16688
16689         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
16690         accidentally reintroced bug which always cleared
16691         the graphics_exposures value. 
16692
16693 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
16694
16695         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
16696
16697 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
16698
16699         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
16700
16701 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
16702
16703         * docs/faq/gtk-faq.sgml: Start of Section 6.
16704
16705 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
16706
16707         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
16708         
16709         (Fixes problem with drawing childless frames. Pointed out
16710         by and a first patch from Anders)
16711         
16712         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
16713         compute a child_allocation, even if we don't have a child.
16714
16715         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
16716         Always chain to the parent's impl, even if we don't have a child.
16717
16718 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
16719
16720         * gdk/gdkrgb.c: If possible, create only a single shm segment and
16721         use multiple parts of it instead of creating a bunch of separate
16722         segments, since the maximum number of segments per system is not
16723         large. (This might be worth backporting to GTK+-1.2.x if we make a
16724         new release )
16725
16726         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
16727         structure in preparation for per-colormap GdkRGB.
16728
16729         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
16730         to False when we get EINVAL from shmget so that the caller of
16731         gdk_image_new can retry with a smaller segment size.
16732
16733 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
16734
16735         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
16736
16737 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
16738
16739         * configure.in: make the current version number 1.3.1 (binary age 0,
16740         interface age 0).
16741         
16742         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
16743         gtkcompat.h is all we want.
16744
16745         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
16746         GLib primitive types. fixed g_type_register_fundamental() argument
16747         ordering.
16748
16749         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
16750         compiles.
16751
16752         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
16753         object code cleanup, comment trigraph fixes, etc...
16754
16755 2000-06-23  Havoc Pennington  <hp@redhat.com>
16756
16757         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
16758         instead of making up a bogus name for first_para_mark
16759
16760         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
16761         0 as a context ID
16762
16763 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
16764
16765         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
16766
16767 2000-06-21  Havoc Pennington  <hp@pobox.com>
16768
16769         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
16770         we didn't check window->bg_pixmap != GDK_NO_BG.
16771
16772         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
16773         gdk-pixbuf
16774
16775 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
16776
16777         * docs/faq/gtk-faq.sgm: Move file to here.
16778           TODO: Update Makfile.am 
16779
16780 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
16781
16782         * docs/gtk-faq.sgm: Add Section 2
16783
16784 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
16785
16786         * docs/gtk-faq.sgm: New file. Start of DocBook
16787           version of the FAQ.
16788
16789 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
16790
16791         * configure.in (GDK_PIXBUF_MAJOR): Define version
16792         numbers for GDK_PIXBUF_*, as they get substituted
16793         into a header file. Need to consider versioning
16794         for gdk-pixbuf more carefully later.
16795
16796 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
16797
16798         Work with srcdir != builddir.   
16799         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
16800         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
16801         * demos/testpixbuf.c: Likewise.
16802         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
16803         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
16804         <gdk/x11/gdkx.h>.
16805         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
16806         "gdk-pixbuf.h".
16807         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
16808
16809 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
16810
16811         * TODO.xml: Change 1.4 version numbers to 2.0.
16812
16813 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
16814
16815         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
16816         fixups to GTK+ standard.
16817
16818 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
16819
16820         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
16821         gdk-pixbuf.
16822
16823         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
16824         fixups for GObject.
16825
16826         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
16827         gdk-pixbuf with GDK dependencies moved into GDK.
16828         
16829         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
16830         move gdk-pixbuf-loader here until GObject has signals.
16831
16832         * demos/: New directory of demos. Move demos from
16833         gdk-pixbuf here.
16834
16835         * demos/pixbuf-init.c: Small bit of code to check for
16836         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
16837         set GDK_PIXBUF_MODULEDIR appropriately.
16838
16839         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
16840         define which no longer makes sense.
16841
16842 2000-06-21  Havoc Pennington  <hp@redhat.com>
16843
16844         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
16845         gtk_get_default_language
16846
16847         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
16848         new function to get the default language
16849
16850         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
16851         s/gtk_text_view_style_values/gtk_text_style_values/
16852
16853         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
16854         Add a "language" field to tags.
16855
16856         (gtk_text_tag_set_arg): Fix bug in setting
16857         "bg_full_height_set" tag.
16858
16859 2000-06-21  Havoc Pennington  <hp@redhat.com>
16860
16861         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
16862         in the interfaces
16863
16864         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
16865         stuff instead when possible.
16866
16867         * gtk/gtktexttypes.h: Delete some unused constants
16868
16869         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
16870         testtextbuffer.c: use glib instead of custom unicode routines
16871
16872 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
16873
16874         * docs/es/: Removed mistakenly added generated sgml
16875
16876         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
16877         Remove outdated info files.
16878
16879         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
16880         Moved tutorial files into subdir
16881
16882         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
16883         subdir.
16884
16885         * docs/man/gtk_button.pod: Remove. (contents will be
16886         integrated into gtk-reference button page.)
16887
16888         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
16889         docs/faq/Makefile.am: Adjust for new organization
16890
16891 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
16892
16893         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
16894         not $(MKINSTALLDIRS)
16895
16896 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
16897
16898         * gtk/testgtk.c (create_text): Finish the job Elliot started
16899         of removing font setting test for text widget. (Since text widget
16900         and GdkFont are not deprecated, and cause portability problems.)
16901
16902 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
16903
16904         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
16905         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
16906         Remove use of libunicode in favor of new GLib functions.
16907
16908         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
16909         nano-x, framebuffer. The X11 include is just a hack until we get
16910         the necessary functions in gdkcolor.h, so there is no reason to
16911         add other includes of platforms.
16912
16913         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
16914         window bigger than the screen change.
16915
16916         * gtk/testgtk.c: Revert some random changes from Elliot
16917         that had no particular point and were causing testgtkrc
16918         not to function correctly.
16919         
16920         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
16921         because GdkSegment and GdkRegionBox have the same fields,
16922         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
16923         results in clearer code.
16924
16925         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
16926         gdk_input_translate_coordinates): Fix missed GdkObjectification
16927
16928 2000-06-18  Elliot Lee  <sopwith@redhat.com>
16929
16930         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
16931         * gtk/gtk{plug,socket}.h: Missed commits from previous.
16932
16933 2000-06-20  Havoc Pennington  <hp@redhat.com>
16934
16935         * modules/linux-fb/Makefile.am: Make this compile
16936         without framebuffer enabled
16937
16938         * gdk/linux-fb/Makefile.am: Add conditional to not build
16939         framebuffer unless specified in configure
16940
16941         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
16942         the size of the target instead of source if -1 was passed for
16943         width/height
16944
16945         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
16946         width/height confusion.
16947
16948 2000-06-19  Havoc Pennington  <hp@redhat.com>
16949
16950         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
16951         GDK_DRAWABLE_XID. In the future, we probably want to make it
16952         faster with G_DISABLE_CHECKS turned on.
16953
16954 2000-06-14  Havoc Pennington  <hp@redhat.com>
16955
16956         * gdk/Makefile.am: add gdkpixmap.c
16957
16958         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
16959         s/gdk_image_init/_gdk_windowing_image_init
16960
16961         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
16962         ref/unref
16963
16964         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
16965
16966         * gdk/gdkcompat.h: remove GdkWindowType compat, since
16967         GdkWindowType is now non-deprecated; 
16968         change gdk_window_get_type() compat to be
16969         gdk_window_get_window_type().
16970
16971         * gdk/gdkdnd.h: make GdkDragContext a GObject.
16972
16973         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
16974         virtual GObject. Make all functions call into the vtable.
16975         Move gdk_image_put() guts in here. Remove GdkDrawableType
16976         and gdk_drawable_get_type(), these are now GdkWindow-specific.
16977         draw_image, get_depth, get_size, set_colormap, get_colormap,
16978         get_visual added to the vtable.
16979         
16980         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
16981         GObject. Virtualize everything. 
16982         (gdk_gc_new_with_values): remove check for destroyed window,
16983         because now GdkWindow::create_gc will check this.
16984         (gdk_gc_set_values): New function to set GC values, this 
16985         was already implemented but wasn't in the header
16986
16987         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
16988
16989         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
16990         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
16991         remove _gdk_window_class; add _gdk_window_impl_get_type() and
16992         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
16993         _gdk_windowing_window_init, rename gdk_image_init to
16994         _gdk_windowing_image_init.
16995         
16996         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
16997         (gdk_draw_layout): Remove check for destroyed window, 
16998         because all the drawable methods already check it.
16999         
17000         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
17001         Add gdkpixmap.c which contains implementation of GdkDrawable
17002         virtual table (by chaining to a platform-specific implementation
17003         object).
17004         
17005         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
17006         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
17007         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
17008         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
17009         GdkColormapPrivate. 
17010
17011         * gdk/gdktypes.h: #include <glib-object.h>
17012
17013         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
17014         Move most functionality to platform-specific implementation
17015         object. GdkWindow itself now handles the backing store, then
17016         chains to the platform-specific implementation.
17017         (gdk_window_get_window_type): return GdkWindowType of the window.
17018         (gdk_window_peek_children): New routine, returns the children of 
17019         a GdkWindow
17020         (gdk_window_get_children): Was in X11-specific code and did 
17021         XQueryTree. Changed to simply return a copy of window->children; 
17022         so it can go in cross-platform code.
17023         
17024         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
17025
17026         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
17027         GdkColormap; just changed to use the new private data instead
17028         of casting to GdkColormapPrivate.
17029
17030         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
17031         gdk_cursor_new().
17032
17033         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
17034         (private data member in the GObject). 
17035         (xdnd_manager_source_filter): Function had broken 
17036         error handling, fix it (use gdk_error_trap_push).
17037
17038         * gdk/x11/gdkdrawable-x11.c: This file now implements
17039         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
17040         base class is purely for the convenience of the X port,
17041         and not part of the interface to cross-platform GDK.
17042
17043         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
17044         
17045         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
17046         specific to X, and returned by the create_gc virtual method
17047         of GdkDrawableImplX11. 
17048         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
17049         rather than gchar, this was also changed in the GdkGC vtable.
17050         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
17051         mask is 0, return immediately, instead of checking every flag.
17052         This is faster, and keeps us from segfaulting if values is NULL
17053         and the mask contains some nonzero flags.
17054
17055         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
17056         GdkWindow.
17057
17058         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
17059         GdkWindowPrivate is gone.
17060
17061         * gdk/x11/gdkim-x11.c: rename things that got renamed.
17062
17063         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
17064         remove the image_put stuff that got transferred to GdkDrawable.
17065         
17066         * gdk/x11/gdkinput.c: renamings
17067
17068         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
17069
17070         * gdk/x11/gdkpixmap-x11.c: GObject conversion
17071
17072         * gdk/x11/gdkprivate-x11.h: indentation fixes
17073
17074         * gdk/x11/gdkproperty-x11.c: renamings
17075
17076         * gdk/x11/gdkselection-x11.c: renamings
17077
17078         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
17079         implements the platform-specific "impl" object.
17080         Moved gdk_window_get_children to gdk/gdkwindow.c
17081
17082         * gdk/x11/gdkx.h: Remove all the private structs and private datas
17083         that no longer exist. Add declaration of GdkGCX11 object here.
17084         Fix all the macros to still work. 
17085
17086         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
17087         GdkDragContext from the boxed types since they are now GObjects.
17088
17089         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
17090         moved xthickness/ythickness into the instance. GtkStyleClass
17091         functions are now in the standard vtable for GtkStyle, so you have
17092         to create a GObject subclass to write a theme engine.
17093         (gtk_style_copy): fixed a leaked PangoFontDescription
17094         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
17095         can be the standard GObject function.
17096         
17097         * Throughout GTK:
17098         s/style->klass->[xy]thickness/style->[xy]thickness
17099         s/pango_layout_unref/g_object_unref/
17100
17101         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
17102         
17103         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
17104         accessing GDK internals.
17105
17106         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
17107         accessing GDK internals.
17108
17109 2000-06-18  Elliot Lee  <sopwith@redhat.com>
17110
17111         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
17112
17113         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
17114         problem by calculating event position relative to the trough
17115         rather than the slider.
17116         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
17117
17118         * gdk/gdkgc.h: Add GDK_NOR.
17119
17120         * configure.in, Makefile.am: Add modules top level dir
17121         * configure.in: Only use pangox library if building x11 target.
17122         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
17123
17124 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
17125
17126         * gtk/gtkcolorsel.c: Change private class member to be named
17127         private_data throughout the file.
17128
17129         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
17130         private_data to avoid clashing with keyword.
17131
17132 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
17133
17134         * gdk/gdkdnd.h: Add comment to remove warning.
17135
17136 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
17137
17138         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
17139         Byelorussian language; changed the Makefile and file names 
17140         to reflect that.
17141
17142 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
17143
17144         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
17145         rather than gdk_window_hide; this makes things work
17146         correctly if the window is programmatically hidden while
17147         iconified.
17148
17149 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
17150
17151         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
17152         cut and paste typo where wrong pixmap was being
17153         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
17154
17155 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
17156
17157         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
17158         Add helper function to compute format / bytes 
17159         relationship. Use in a couple places to fix up
17160         errors which assume 8 * format.
17161
17162         * gtk/gtkselection.c (gtk_selection_request): Use 32
17163         rather than 8 * sizeof (GdkAtom), to work correctly
17164         on Alpha.
17165
17166 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
17167
17168         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
17169         libgtk.la
17170         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
17171         versions
17172
17173         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
17174         checking macros return NULL since the function has a return value.
17175
17176 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
17177
17178         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
17179         GTK+ from building at all.
17180
17181         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
17182
17183 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
17184
17185         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
17186         gtk/Makefile.am: make it possible to configure gtk for different
17187         targets on the same platform. The library name is now 
17188         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
17189         flag. Only the x11 target compiles right now.
17190         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
17191         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
17192         * gdk/nanox/gdk*generic*: delete generic region code.
17193         * gdk/linux-fb/gdk*generic*: delete generic region code.
17194         * README.nanox: update information.
17195         
17196 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
17197
17198         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
17199         prepend not append. (Pointed out by Brett Hall.)
17200
17201 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
17202
17203         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
17204
17205 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
17206
17207         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
17208         need this later, and this makes sure that the atexit for
17209         glib gets called after that for GDK, so atexits are
17210         properly ordered for object leak checking.
17211
17212         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
17213
17214         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
17215         pango_x_shutdown_display()
17216
17217         * gtk/simple.c (main): Close window on destroy.
17218
17219 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
17220
17221         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
17222         to treat initial creation different from setting with 
17223         regards to the graphics-exposures parameter, so add a parameter
17224         indicating whether this is initial or not.
17225
17226 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
17227
17228         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
17229         to sort of work by adding an extra return_exposes arg
17230         to gdk_event_translate() - it might be better to simply
17231         deprecate the function altogether and force people to rewrite
17232         without it. gdk_window_scroll() handles most of it, and where
17233         gdk_window_scroll() doesn't work, simply redrawing more does.
17234
17235         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
17236         assertion.
17237
17238         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
17239
17240         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
17241         bunch of pretty much useless /* Print debugging info */ comments 
17242         which had drifted away from the code they were commenting.
17243
17244 2000-06-02  Havoc Pennington  <hp@pobox.com>
17245
17246         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
17247         is in working order.
17248         
17249         * gtk/testtext.c: Change to reflect anonymous mark API
17250
17251         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
17252
17253         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
17254         field, which was unused.
17255
17256         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
17257         saves some typing.
17258
17259         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
17260
17261         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
17262         flag on the insertion point and selection bound
17263
17264         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
17265         make mark-manipulation functions take a GtkTextMark* instead of a
17266         mark name.
17267         
17268         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
17269         GtkTextMarkBody; will be used to detect attempts to delete
17270         the permanent marks (insert and selection bound)
17271
17272         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
17273
17274 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
17275
17276         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
17277         flag to on.
17278
17279         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
17280         Honor DOUBLE_BUFFRED_FLAG
17281
17282         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
17283         function to set the DOUBLE_BUFFERED flag.
17284
17285         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
17286         or not exposes done on the widget should be double-buffered.
17287
17288         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
17289         to be what would be expected. (Fixes problem with a
17290         g_return_if_fail() validating a TextDirection enumeration)
17291
17292 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
17293
17294         * gtk/gtkwidget.c: Remove all references to 
17295         offscreen flag which was no longer used.
17296
17297         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
17298
17299         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
17300         for non-null label_widget->parent.
17301
17302         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
17303         which no longer was used.
17304
17305         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
17306
17307         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
17308         for null arguments.
17309
17310         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
17311         check for destroyed windows.
17312
17313 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
17314
17315         * gtk/gtkimmulticontext.c: Add a finalize method and unref
17316         the slave context there.
17317
17318         * gtk/gtkinvisible.[ch]: Make reference counting behavior
17319         identical to GtkWindow.
17320
17321 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
17322
17323         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
17324         pangox to here, so we can write them independent of rendering
17325         system, using GDK primitives.
17326
17327         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
17328         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
17329         since we have a rendering-system independent implementation in
17330         terms of draw_glyphs().
17331         
17332         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
17333         function to render a single line.
17334
17335         * gdk/x11/gdkpango.c: Move the guts of this file mostly
17336         into ../gdkpango.c, which simplifies things, since we
17337         don't have to deal with raw X gc's.
17338
17339 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
17340
17341         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
17342         get the logical attributes for a given GtkTextLine.
17343
17344 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
17345
17346         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
17347         g_locale_get_codeset() to g_get_codeset() change.
17348
17349 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
17350
17351         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
17352         descriptions.
17353
17354         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
17355         the entry.
17356
17357         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
17358         redoing (vastly simplifying) for Pango. Still needs quite
17359         a bit of work. (Size selection is currently poor. List of 
17360         predefined sizes is not a good idea, since all of these
17361         sizes won't necessarily be distinct.)
17362
17363 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
17364
17365         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
17366         CODESET results for LANG=C.
17367
17368 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
17369
17370         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
17371         which takes a stringized pango font description;
17372         ignore the older 'font' and 'fontset' declarations.
17373
17374         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
17375         field with a GdkFont derived via gdk_font_from_description(),
17376         for compatibility. (Should we just remove it entirely?
17377         Probably too much compatibility breakage, but people
17378         should be migrating to the new Pango stuff as quickly
17379         as possible.)
17380
17381 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
17382
17383         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
17384
17385 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
17386
17387         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
17388         redoing; there are some bugs in size allocation right
17389         now, the semi-existant distinction between header / day
17390         fonts was removed, but, with Pango, could actually
17391         be made functional in a nice way.
17392         
17393         * gtk/testcalender: Move calender from examples into this
17394         directory as a test program. (We really need to restrcture
17395         testgtk into a whole directory full of tests for every
17396         widget or functionality group, separated into multiple .c
17397         files.)
17398
17399 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
17400
17401         * gtk/testgtk.c (file_exists): Fix stupid typo that
17402         was keeping RC file from being loaded.
17403
17404         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
17405         RC file font code.
17406
17407 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
17408
17409         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
17410         Add function to load a GdkFont from a PangoFontDescription.
17411
17412 2000-05-29  Tor Lillqvist  <tml@iki.fi>
17413
17414         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
17415         variable should be of type GdkEventPrivate.
17416
17417 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
17418
17419         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
17420         to have any widget for the label, use a GtkLabel widget
17421         to display the text. (Based partially on a patch from
17422         Anders Carlson.)
17423
17424         (Quite a bit of code reorganization - strip 90% of the
17425         guts out of gtkaspectframe and add a single virtual
17426         func to GtkFrameClass - compute_child_allocation.)
17427
17428 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
17429
17430         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
17431         (Removed clist->row_center_offset field because caching
17432         it wasn't saving time or code, added private function
17433         _gtk_clist_create_cell_layout()).
17434
17435 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
17436
17437         * gtk/gtkaccellabel.c: Pangoized.
17438
17439         * gtk/[hv]ruler.c: Pangoized
17440
17441 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
17442
17443         * gtk/gtkfilesel.c (gtk_file_selection_init):
17444         Use gtk_clist_set_column_auto_resize() to remove need
17445         need for manual column width computations.
17446
17447 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
17448
17449         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
17450         ensuring Pango correctness, and considerably simplifying the
17451         code.
17452         
17453         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
17454
17455         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
17456         getting of numbers of lines.
17457
17458         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
17459         to the actual requested width of the lable, not to the wrap
17460         width we set.
17461
17462         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
17463
17464         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
17465           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
17466
17467         * gtk/gtktextview.c: Fix structure inheritance.
17468
17469         * gtk/gtkprogressbar.c: Pangoize.
17470
17471 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
17472
17473         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
17474         in a function.
17475
17476         * gtk/gtktextlayout.c (find_display_line_above): Fixed
17477         bug with computing line tops.
17478
17479         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
17480
17481 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
17482
17483         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
17484         and y_offset coordinates to do what we need now. (The offset between
17485         buffer and layout coordinates has been reintroduced, but is a 
17486         bit different than before.)
17487
17488         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
17489         handle the adjustments ourselves, and scroll as necessary using
17490         the new gdk_window_scroll().
17491         
17492         The advantage of this is that when we are incrementally revalidating,
17493         we are essentially rearranging things around the visible portion
17494         of the screen. With the old setup, the visible portion of the
17495         screen was moved around in the layout, so scrolling and redrawing
17496         to track that caused jumping of the display. Since we now
17497         control the scrolling ourselves, we can suppress this and
17498         only redraw when things actually change.
17499
17500 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
17501
17502         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
17503         the region not just redisplay it after-all, since we store the
17504         cursors in the LineDisplay. (Ugly interactions here between
17505         GtkLayout and GtkTextBTree here.)
17506         
17507         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
17508
17509 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
17510
17511         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
17512         Added function to scroll contents of a window while keeping the
17513         window constant. Works by XCopyArea or guffaw-scrolling depending
17514         on the details of how the window is set up. (guffaw-scrolling
17515         still needs to be filled in.)
17516
17517 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
17518
17519         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
17520         move the debugging that was tied to a global variable
17521         to that.
17522
17523         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
17524
17525         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
17526         validated flag, in line data instead of setting height/width to
17527         -1. This allows us to perform operations with partially invalid
17528         buffer (using the old size for invalid lines) and thus to do
17529         incremental vaidation. Keep height/width aggregates up to date
17530         when deleting text and rebalancing the tree.
17531
17532         * gtk/gtktextbtree.[ch]: Add functions validate a line
17533         (gtk_text_btree_validate_line), and to validate up
17534         to a number of pixels (gtk_text_btree_validate).
17535
17536         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
17537         that indicates that something is changed and a revalidation
17538         pass is needed. Change ::need_repaint to ::changed, and
17539         make it take old and new yranges instead of a rectangle.
17540
17541         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
17542         the line_data_destroy() function from 
17543         gtk_text_btree_add_view() to a virtual function in 
17544         GtkTextLayout
17545
17546         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
17547         since we are handling partial repaints in a different fashion
17548         now.
17549
17550         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
17551         of the selection instead of queueing a repaint on the
17552         entire widget.
17553
17554         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
17555         get_selection_bounds() down to btree, make the function
17556         in buffer a wrapper around the btree function.
17557
17558         * gtk/gtktextlayout.[ch]: Add functions to check if the
17559         layout is valid and to recompute either a range of pixels
17560         aroudn a line or a certain total number of pixels.
17561
17562         * gtk/gtktextlayout.[ch]: Cache a single line display;
17563         now that we only redraw the needed portions, the hit rate
17564         for this cache is quite high.
17565         
17566         * gtk/gtktextview.[ch]: Keep track of the first paragraph
17567         on the screen so that when re-laying-out the buffer, we can
17568         keep the same place. This requires connecting to ::value_changed
17569         on the adjustments
17570
17571         * gtk/gtktextview.[ch]: Add idle functions to revalidate
17572         the buffer after we receive an ::invalidated signal.
17573         
17574 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
17575
17576         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
17577         to max of allocation and layout size, not just to the
17578         layout size.
17579
17580         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
17581         Invalidate window so it gets redrawn properly.
17582
17583         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
17584         to mean the entire window.
17585
17586         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
17587         into public header.
17588
17589 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
17590
17591         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
17592         to get the name of a mark.
17593
17594         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
17595         to find the paragraph from a y position.
17596
17597 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
17598
17599         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
17600         nodes have width/height >= 0, not > 0.
17601
17602 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
17603
17604         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
17605         Add a size_only flag, so when we only need the size, we don't create
17606         useless appearance attributes.
17607
17608         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
17609         duplicate setting of font description.
17610
17611         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
17612
17613 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
17614
17615         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
17616         EXTRA_DIST. It does not work well when the file that
17617         everything depends on is not in the tarball.
17618
17619 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
17620
17621         * gtk/testgtk.c: Some hacks and fixes so that it basically
17622         works when not sitting in the GTK+ build tree.
17623
17624 2000-05-03  Havoc Pennington  <hp@redhat.com>
17625
17626         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
17627         Properly determine the ordering of the tag root and the current
17628         line within the tree. Previous algorithm only worked if the tag
17629         root's immediate parent was the common root of both the current
17630         line and the tag root.
17631
17632 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
17633
17634         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
17635         alignment.
17636
17637         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
17638         the widget text directional dynamically.
17639
17640         * gtk/gtktextview.[ch]: Added functions to get and set default
17641         wrap mode.
17642
17643 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
17644
17645         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
17646         in cursor location computation.
17647
17648 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
17649
17650         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
17651         vadjusment values properly when layout gets smaller.
17652
17653         * gtk/gtktextview.c (need_repaint_handler): Areas being
17654         passed in are far completely inaccurate, and sometimes
17655         too small, so, for now, just queue a redraw on the
17656         whole visible region.
17657
17658 2000-04-25  Havoc Pennington  <hp@redhat.com>
17659
17660         * gtk/gtktextbtree.c (summary_destroy): new function to 
17661         destroy tag summary nodes
17662         (gtk_text_line_next_could_contain_tag): this function was 
17663         totally broken if the line passed in wasn't below the tag
17664         root. Fix it.
17665         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
17666         "wildcard" case, we have to do a linear scan. Blah.
17667         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
17668         we have to do the linear scan
17669         (tag_removed_cb): When a tag is removed from the tag table, 
17670         remove the GtkTextTagInfo node from the btree.
17671         (gtk_text_btree_spew): Implement the spew function, for 
17672         our debugging pleasure.
17673
17674 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
17675
17676         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
17677         a problem with referring to the wrong buffer.
17678
17679         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
17680
17681         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
17682         font description to gtk_style_new() - otherwise things
17683         don't work without a .gtkrc file.
17684
17685         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
17686         tags table if we create it ourself, too.
17687
17688         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
17689         it was conflicting with XKB modifiers.
17690
17691         * gtk/gtktextview.[ch]: Add simple support for 
17692         GtkIMContext.
17693
17694 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
17695
17696         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
17697         with deletion from last commit.
17698
17699 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
17700
17701         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
17702         in the context from the current locale.
17703         
17704         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
17705         context, not hardcoded value.
17706
17707         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
17708         not logical.
17709
17710 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
17711
17712         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
17713         attributes - that doesn't handle partial-glyph selection
17714         properly. Instead use new pango_layout_line_get_x_ranges()
17715         functionality to draw the selection.
17716
17717         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
17718         now properly handles out-of-range coordinates.
17719
17720         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
17721
17722         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
17723         public.
17724
17725         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
17726         for paragraphs opposite to the base direction of the widget.
17727
17728         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
17729
17730         * gtk/gtktextlayout.c: Don't split segments on marks, since that
17731         causes Arabic words to reshape as you cursor through.
17732
17733         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
17734         cursor position when moving vertically with the arrow keys and
17735         scrolling with page-up/page-down. (Arrow keys save only the X,
17736         scrolling saves both X and Y.)
17737
17738         This means you can line-up / line-down or page-up / page-down
17739         without losing your place, and also that moving vertically
17740         with the cursor keys keeps the same X position, not the same
17741         character count:
17742
17743         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
17744         arrow keys move by display lines, not paragraphs.
17745
17746 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
17747
17748         * gtk/gtklayout.c: Make sure that the bin window is at least
17749         as big as the allocation. (Should we also make sure that the
17750         bin window is big enough to completely cover widget->window?)
17751
17752         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
17753         function to get the onscreen rectangle.
17754
17755         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
17756         for offsets in window coordinates.
17757
17758 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
17759
17760         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
17761         confusion.
17762
17763         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
17764         from the widget direction.
17765
17766         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
17767         Add a "direction" attribute.
17768
17769         * gtk/gtktextview.c: global s/tkxt/text_view/.
17770
17771         * gtk/testtext.c: Added long block of text in Arabic, to test out
17772         the direction attributes. (Some problems with the shaping system
17773         for arabic become obvious - like the fact the cursor splits words
17774         into unjoined pieces.)
17775
17776 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
17777
17778         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
17779
17780         * gtk/gtktextlayout.c: Fix up alignment.
17781
17782         * gtk/testtext.c: Add some tests for centering, wrapping.
17783
17784 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
17785
17786         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
17787         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
17788         If we wrote GTK+-specific layout-render function this could just replace
17789         the draw_layout() operation in the vtable.
17790
17791         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
17792         pango_layout_get_cursor_pos() and use that function.
17793
17794         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
17795         is a non-static symbol.
17796
17797         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
17798         with gtk_text_btree_find_line_by_y()
17799
17800         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
17801         renderer that handles GtkTextAppearance attributes.
17802
17803         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
17804
17805           - Move the values in the style that don't affect geometry into a
17806             GtkTextAppearance structure.
17807           - Change underline to take a PangoUnderline and "font" a string
17808             representation of a font description
17809           - Add a "font_desc" attribute which takes a FontDescription structure.
17810
17811         * gtk/gtktextlayout.[ch]:
17812
17813           - Get rid of the display-line list per each line. Instead, we
17814             generate, on demand, a GtkTextLineDisplay structure which]
17815             contains a PangoLayout * and other necesary information
17816             (offsets, cursor locations) for displaying a paragraph.
17817           - Get rid of the code to wrap lines, create display chunks,
17818             etc. Instead, we just go through a paragraph and convert
17819             it into the necessary inputs to a PangoLayout.
17820           - Implement a new attribute type, GtkTextAttrAppearance. This
17821             holds a GtkTextAppearance, and is used to pass colors, 
17822             stipple, etc, through from the layout to the display without
17823             having to use lots and lots of individual attributes.
17824           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
17825             in terms of PangoLayout functions.
17826         
17827         * gtk/gtktextview.c: 
17828          
17829           - Handle passing the necessary PangoContext to the layout
17830           - Some fixups in painting to deal with the automatic backing store
17831             and offsetting of GTK+-1.4
17832           - Add a style_set handler so that the default style reacts
17833             properly to theme changes.
17834         
17835         * gtk/gtktext?*.[ch]: Random code-style fixes.
17836
17837         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
17838
17839 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
17840
17841         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
17842         in original form preparatory to Pango-ization and gdkimcontext-ization.
17843
17844 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
17845
17846         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
17847         so that we can derive from gtkimcontext in language bindings properly.
17848
17849 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
17850
17851         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
17852         Add a compose table including (almost) all the compose combinations
17853         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
17854         data in the XIM implementation.
17855
17856         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
17857         Moved functions to convert keyvalues from and to unicode here from
17858         the win32 port and made them public.
17859
17860 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
17861
17862         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
17863
17864 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
17865
17866         * gtk/gtkimcontext.[ch]: Base class for new input context system
17867
17868         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
17869         the real input context implementation to be loaded from modules
17870         and switched on the fly.
17871
17872         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
17873         context that just does direct keysymbol => unicode translation.
17874
17875         * gtk/gtkentry.[ch]: Start switching editing over to using
17876         GtkInputContext. (No handling of preedit yet.)
17877
17878 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
17879
17880         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
17881         many substitutions. (klass should not be subsituted.)
17882
17883 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
17884
17885         * configure.in: Add checks for Pango
17886
17887         * configure.in docs/Makefile.am: Add test for sgml2html
17888         and allow 'make dist' without building html, but print out
17889         warnings in that case. (For making snapshots)
17890
17891         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
17892         Add Pango libraries and C flags
17893
17894         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
17895         Add function (gdk_draw_layout) to draw a pango layout.
17896
17897         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
17898         for getting Pango contexts for GDK.
17899
17900         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
17901
17902         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
17903         editing.
17904
17905         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
17906         keysym => unicode translations. More languages can be added
17907         here, but real input-method support is needed.
17908
17909         * docs/Changes-1.4.txt: Added note about entry behavior.
17910         
17911         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
17912         to set the reading direction for a widget and the global direction.
17913         Add test which allows toggling the global direction. Two private
17914         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
17915
17916         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
17917           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
17918
17919         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
17920
17921         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
17922         underlining now handled by Pango.
17923
17924         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
17925         to RCStyle and Style. (Having both this and the old font name and GdkFont 
17926         is temporary.)
17927
17928         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
17929         convenience functions for creating contexts and layouts for widgets.
17930
17931         * gtk/testgtk.c: Enhance label tests with multilingual labels.
17932
17933 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
17934
17935         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
17936         titles to be active, even if they aren't visible.
17937         (gtk_clist_column_titles_passive):  Ditto.
17938
17939 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
17940
17941         * gtkmenu.c:
17942         * gtkmenu.h:
17943         * gtktypeutils.h: Spelling/grammar fixes in comments.
17944
17945 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
17946
17947         * gdk/nanox/*.h: add missing header files.
17948
17949 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
17950
17951         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
17952         send_event to TRUE.
17953         (gtk_drawing_area_size): queue a resize.
17954
17955 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
17956
17957         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
17958         the handlers, also invalidate them. bug nailed down by Karl Nelson
17959         <kenelson@ece.ucdavis.edu>.
17960
17961 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
17962
17963         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
17964         "(nil)" foundries, patch from Grigorios Magklis.
17965
17966         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
17967         on non-available fonts, based on a patch by Grigorios Magklis
17968         <maglis@cs.rochester.edu>.
17969
17970 2000-05-18  Elliot Lee  <sopwith@redhat.com>
17971
17972         * gdk/x11/gdkregion-generic.c: If a region does not have any
17973         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
17974         instead of GDK_OVERLAP_RECTANGLE_IN.
17975
17976 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
17977
17978         * gtk/gtklayout.c (gtk_layout_map): Remove references to
17979         OFFSCREEN, as it is no longer necessary.
17980
17981 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
17982
17983         * gtk/gtkcolorsel.c: Patch from David Santiago
17984         <mrcooger@cyberverse.com> to change things so that the 
17985         indicator of the active palette entry is done independently,
17986         not via the focus, since it should always be visible.
17987
17988 2000-05-17  Tor Lillqvist  <tml@iki.fi>
17989
17990         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
17991         refcount leaks as in the X11 backend.
17992
17993         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
17994         cosmetics.
17995
17996         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
17997         backend. Add _gdk_windowing_window_destroy().
17998
17999         * gtk/gtkcolorsel.c: Include correct backend-specific header.
18000         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
18001         either, but these probably do exist on nanox?)
18002         
18003         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
18004         which isn't necessarily defined by <math.h>.
18005
18006         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
18007         ancestry past GtkObject.
18008
18009         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
18010         from DLL on Win32.
18011
18012         * gtk/gtk.def: Update corresponding to recent changes.
18013
18014         * gtk/makefile.{cygwin,msc}: Updates.
18015
18016 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
18017
18018         * docs/Changes-1.4.txt: A bit of editing.
18019
18020         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
18021         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
18022         to clear the update area for the window, and clear it
18023         when hiding a window.
18024
18025         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
18026         if window destroyed.
18027
18028         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
18029
18030         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
18031         gdk_window_destroy() to the generic code, since there was a lot of 
18032         window-system-independent logic it in. Add a function:
18033         
18034          _gdk_window_destroy() 
18035
18036         to the internal API to destroy a window without unreferencing it.
18037         Add a function:
18038
18039          _gdk_windowing_window_destroy()
18040
18041         That does the windowing-system-dependent part of destroying 
18042         the window.
18043
18044 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
18045
18046         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
18047
18048 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
18049
18050         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
18051         Make gtk_widget_shape_combine_mask() keep a reference count on
18052         the pixmap since it keeps it around.
18053
18054 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
18055
18056         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
18057         leak.
18058
18059         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
18060         leak with event filters.
18061
18062 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
18063
18064         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
18065         signal handlers with the right data arguments. (Fixes
18066         some warnings when a widget was repeatedly set as a drag
18067         destination.)
18068
18069         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
18070         window so we can avoid avoid setting the DND properties on the
18071         toplevel window repeatedly.
18072
18073 2000-05-13  Tor Lillqvist  <tml@iki.fi>
18074
18075         * gdk/win32/gdkwin32.h: Define more message types missing from
18076         mingw headers.
18077
18078         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
18079         call gdk_window_destroy_notify(). It was never called. This
18080         probably meant that the GdkWindow was never freed. Thanks Owen for
18081         noticing (!).
18082
18083         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
18084         window as destroyed before calling DestroyWindow(). DestroyWindow()
18085         causes a call to the window procedure (gdk_WindowProc), which
18086         calls gdk_event_translate(), which calls
18087         gdk_window_destroy_notify(), which gets confused unless the window
18088         is set as destroyed.
18089
18090         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
18091         this function to indicate it's win32 only. Put inside #ifdef
18092         G_ENABLE_DEBUG.
18093
18094         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
18095         debugging function. (gdk_event_translate:) Add a default branch
18096         that uses the above function to print debug messages with all
18097         Windows messages symbolically.
18098
18099         * gdk/win32/gdkprivate-win32.h: Declare it, and
18100         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
18101
18102 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
18103
18104         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
18105         public header file.
18106
18107 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
18108
18109         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
18110
18111         * gtk/gtktext.c: made the adjustments no-construct args, simply
18112         provide default adjustments.
18113         (gtk_text_destroy): release adjustments.
18114
18115         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
18116         adjustment argument non-construct.
18117
18118         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
18119         instead of in finalize.
18120         (gtk_progress_get_text_from_value): 
18121         (gtk_progress_get_current_text): 
18122         (gtk_progress_set_value): 
18123         (gtk_progress_get_percentage_from_value): 
18124         (gtk_progress_get_current_percentage): 
18125         (gtk_progress_set_percentage): 
18126         (gtk_progress_configure): ensure an adjustment is present.
18127
18128 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
18129
18130         * gtk/gtkcolorsel.[hc]:
18131         * gtk/gtkcolorseldialog.[hc]:
18132         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
18133         their parent implementation, use bit fields for boolean values, don't
18134         create unused widgets, usage of glib types, braces go on their own
18135         lines, function argument alignment, #include directives etc. etc. etc..
18136
18137         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
18138
18139 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
18140
18141         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
18142
18143         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
18144         of NULL.
18145
18146         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
18147         to freed data.
18148         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
18149
18150         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
18151         to NULL when the toplevel is getting destroyed.
18152         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
18153         (gtk_menu_destroy): 
18154         (gtk_menu_init): store the information of whether we have to
18155         readd the initial child ref_count during destruction in a new
18156         GtkMenu field needs_destruction_ref_count.
18157
18158         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
18159         here, those reading: learn from my mistake! ;)
18160         in order for set_?adjustment to support a default adjustemnt if
18161         invoked with an adjustment pointer of NULL, the code read (pseudo):
18162         if (v->adjustment) unref (v->adjustment);
18163         if (!adjustment) adjustment = adjustment_new ();
18164         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
18165         now imagine the first unref to actually free the old adjustment and
18166         adjustment_new() creating a new adjustment from the very same memory
18167         portion. here, the latter comparision will unintendedly fail, and
18168         all hell breaks loose.
18169         (gtk_viewport_set_hadjustment):
18170         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
18171         after unreferencing it.
18172
18173         * gtk/gtkcontainer.[hc]: removed toplevel registration
18174         functions: gtk_container_register_toplevel(),
18175         gtk_container_unregister_toplevel() and
18176         gtk_container_get_toplevels() which had wrong semantics
18177         anyways: it didn't reference and copy the list.
18178
18179         * gtk/gtkwindow.c: we take over the container toplevel registration
18180         bussiness now. windows are registered across multiple destructions,
18181         untill they are finalized. the initial implicit reference count
18182         users are holding on windows is removed with the first destruction
18183         though.
18184         (gtk_window_init): ref & sink and set has_user_ref_count, got
18185         rid of gtk_container_register_toplevel() call. add window to
18186         toplevel_list.
18187         (gtk_window_destroy): unref the window if has_user_ref_count
18188         is still set, got rid of call to
18189         gtk_container_unregister_toplevel().
18190         (gtk_window_finalize): remove window from toplevel list.
18191         (gtk_window_list_toplevels): new function to return a newly
18192         created list with referenced toplevels.
18193         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
18194
18195         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
18196         adjustment a non-construct arg.
18197         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
18198         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
18199         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
18200
18201         * gtk/gtkrange.c: added some realized checks.
18202         (gtk_range_destroy): get rid of the h/v adjustments in the
18203         destroy handler instead of finalize. remove timer.
18204         (gtk_range_get_adjustment): demand create adjustment.
18205
18206         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
18207         we simply create them on demand now and get rid of them in
18208         the destroy handler.
18209         (gtk_viewport_destroy): get rid of the h/v adjustments in the
18210         destroy handler instead of finalize.
18211         (gtk_viewport_get_hadjustment): 
18212         (gtk_viewport_get_vadjustment): 
18213         (gtk_viewport_size_allocate): demand create h/v adjustment
18214         if required.
18215
18216         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
18217         gtk_widget_real_destroy () functionality.
18218         (gtk_widget_real_destroy): reinitialize with a new style, instead
18219         of setting widget->style to NULL.
18220
18221 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
18222
18223         * gtk/gtkcalendar.c:
18224         * gtk/gtkbutton.c: ported _get_type() implementation over to
18225         GType, either to preserve memchunks allocation facilities,
18226         or because Gtk+ 1.0 GtkTypeInfo was still being used.
18227
18228         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
18229         over. prepare for ::destroy to be emitted multiple times.
18230         removed reference tracer magic. chain into GObjectClass.shutdown()
18231         to emit ::destroy signal.
18232
18233         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
18234         fundamental.
18235
18236         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
18237         cludge.
18238
18239         * gtk/gtksocket.c:
18240         * gtk/gtkplug.c:
18241         * gtk/gtklayout.c:
18242         * gtk/gtklabel.c:
18243         * gtk/gtkargcollector.c:
18244         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
18245         not being a fundamental anymore, and to work with the new
18246         type system (nuked fundamental type varargs clutter).
18247
18248         * gtk/*.c: install finalize handlers in the GObjectClass
18249         part of the class structure.
18250         changed direct GTK_OBJECT()->klass accesses to
18251         GTK_*_GET_CLASS().
18252         changed direct object_class->type accesses to GTK_CLASS_TYPE().
18253
18254         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
18255         GType. made most of the GTK_*() type macros and Gtk* typedefs
18256         simple wrappers around macros and types provided by GType.
18257         most notably, a significant portion of the old API vanished:
18258         GTK_TYPE_MAKE(),
18259         GTK_TYPE_SEQNO(),
18260         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
18261         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
18262         GTK_TYPE_ARGS,
18263         GTK_TYPE_CALLBACK,
18264         GTK_TYPE_C_CALLBACK,
18265         GTK_TYPE_FOREIGN,
18266         GtkTypeQuery,
18267         gtk_type_query(),
18268         gtk_type_set_varargs_type(),
18269         gtk_type_get_varargs_type(),
18270         gtk_type_check_object_cast(),
18271         gtk_type_check_class_cast(),
18272         gtk_type_describe_tree(),
18273         gtk_type_describe_heritage(),
18274         gtk_type_free(),
18275         gtk_type_children_types(),
18276         gtk_type_set_chunk_alloc(),
18277         gtk_type_register_enum(),
18278         gtk_type_register_flags(),
18279         gtk_type_parent_class().
18280         replacements, where available are described in ../docs/Changes-1.4.txt.
18281         implemented compatibility functions for the remaining API.
18282
18283         * configure.in: depend on glib 1.3.1, use gobject module.
18284
18285 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
18286
18287         * TODO.xml: Various updates to current status.
18288
18289 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
18290
18291         * gtk.m4: Print out version when test succeeds.
18292
18293 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
18294
18295         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
18296         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
18297         
18298         (Original triangle color selector from Simon Budig
18299         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
18300         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
18301         Santiago <mrcooger@cyberverse.com>)
18302
18303         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
18304         out into a separate widget.
18305
18306         * gtk/testgtk.c: Add some checkbuttons for toggling palette
18307         and opacity controls.
18308
18309 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
18310
18311         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
18312         snuck in prematurely.
18313
18314 2000-05-07  Tor Lillqvist  <tml@iki.fi>
18315
18316         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
18317         had deleted a ! operator by mistake, which caused
18318         GDK_SELECTION_CLEAR events never to be generated, which caused
18319         only the first copy to the clipboard from an gtkeditable to
18320         actually cause a copy to the Windows clipboard.
18321
18322 2000-05-06  Tor Lillqvist  <tml@iki.fi>
18323
18324         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
18325         compilation, too. Current mingw gcc distributions include the
18326         necessary headers. Also the necessary IIDs are now in mingw
18327         headers/libraries, and own definitions unnecessary.
18328
18329         More hacking on OLE2 DND, still doesn't work though, and thus
18330         ifdeffed out.
18331
18332         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
18333         here, too.
18334
18335 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
18336
18337         * gdk/nanox/*: nano-X port work in progress.
18338         * gdk/simple.c: simple test for Gdk.
18339         * README.nanox: notes about the port: read this first!
18340         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
18341         with nano-X.
18342
18343 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
18344
18345         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
18346         gdk_window_clear() into common code, implement in terms of
18347         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
18348         not redirected to the backing rectangle.
18349
18350 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
18351
18352         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
18353         EXTRA_DIST. It does not work well when the file that
18354         everything depends on is not in the tarball.
18355
18356 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
18357
18358         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
18359         with recursion where process_updates() is called from
18360         an expose handler. (GtkTextView is highly broken in
18361         doing this, but it should work, so it is a nice test
18362         case.)
18363
18364 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
18365
18366         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
18367         handle the case where updates are queued during processing of
18368         updates.
18369
18370 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
18371
18372         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
18373         window is on gdk_display - use that instead of segfaulting.
18374
18375 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
18376
18377         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
18378         broken and require an empty arg, give it to them.
18379
18380 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
18381
18382         * gtk/gtklabel.h: indentation fixes.
18383
18384 2000-05-02  Tor Lillqvist  <tml@iki.fi>
18385
18386         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
18387         draw too narrow or too low arcs, they seem to fail, at least with
18388         some display drivers.
18389
18390         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
18391
18392         Large changes to the Win32 backend, partially made necessary by
18393         the changes to the backend-independent internal
18394         structures. Attempts to implement similar backing store stuff as
18395         on X11. The current (CVS) version of the Win32 backend is *not* as
18396         stable as it was before the no-flicker branch was merged. A
18397         zipfile with that version is available from
18398         http://www.gimp.org/win32/. That should be use by "production"
18399         code until this CVS version is usable. (But note, the Win32
18400         backend has never been claimed to be "production quality".)
18401
18402         * README.win32: Add the above comment about versions.
18403
18404         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
18405
18406         * gdk/gdk.def: Update.
18407
18408         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
18409         presumably be replaced by some more better mechanism as 1.4 gets
18410         closer to release shape.
18411
18412         * gdk/makefile.{cygwin,msc}: Update.
18413
18414         * gdk/win32/*.c: Correct inclusions of the backend-specific and
18415         internal headers. Change code according to changes in these. Use
18416         gdk_drawable_*, not gdk_window_* where necessary.
18417
18418         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
18419         our old DND.
18420
18421         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
18422         to interpret single characters as UTF-8. Thanks to Hans Breuer.
18423         Use correct function name in warning messages.
18424
18425         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
18426         GSourceFuncs gdk_event_prepare and gdk_event_check.
18427         (gdk_event_get_graphics_expose): Do implement, use
18428         PeekMessage. Thanks to Hans Breuer.
18429         (event_mask_string): Debugging function to print an GdkEventMask.
18430         (gdk_pointer_grab): Use it.
18431
18432         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
18433         (old) book I used claimed was Hangul actually is CJK Unified
18434         Ideographs Extension A. Also, Hangul Syllables were missing.
18435         Improve logging.
18436
18437         * gdk/win32/gdkgc-win32.c: Largish changes.
18438
18439         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
18440         g_win32_getlocale() from GLib, and not setlocale() to get current
18441         locale name.
18442
18443         * gdk/win32/gdkprivate-win32.h
18444         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
18445         gdkwin32.h, similarily as in the X11 backend.
18446
18447         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
18448         assignment was used instead of equals in if test. Thanks to Hans
18449         Breuer.
18450
18451         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
18452         the X11 version.
18453
18454         * gdk/win32/makefile.{cygwin,msc}
18455         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
18456         path to the Win32 headers that works also with the mingw compiler.
18457
18458         * gtk/gtkstyle.c: Include <string.h>.
18459
18460 2000-04-26  Havoc Pennington  <hp@redhat.com>
18461
18462         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
18463         replacing the broken gtk_label_get ()
18464
18465 2000-04-15  Havoc Pennington  <hp@pobox.com>
18466
18467         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
18468         this keeps scanner scripts from getting confused.
18469
18470         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
18471         data, rather than void
18472
18473 2000-04-15  Tor Lillqvist  <tml@iki.fi>
18474
18475         * gtk/gtkclist.c (gtk_clist_motion)
18476         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
18477         with is_hint FALSE, get x and y from the event. They used to be
18478         used uninitialised. The Win32 backend never sends motion events
18479         marked as hints. This for instance fixes the annoying file and
18480         font selector behaviour in the Win32 version.
18481
18482 2000-04-14  Tor Lillqvist  <tml@iki.fi>
18483
18484         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
18485         gtk_private_n_signals variables, they are used by some software,
18486         sigh.
18487
18488         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
18489         installation directory from the Registry, where the installer
18490         should have put it.
18491
18492 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
18493
18494         * gdk/x11/Makefile.am: Fix problem with installation directory for
18495         gdkx.h
18496
18497         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
18498         <mrcooger@cyberverse.com> so that when selecting menus with the
18499         mouse, the first item will not be selected, but when selecting
18500         with an accelerator, or navigating left-right on a menubar with
18501         the menus popped up, the first item will be selected.
18502
18503 2000-04-05  Dan Damian  <dand@dnttm.ro>
18504
18505         * configure.in: Added "ro" to ALL_LINGUAS.
18506
18507 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
18508
18509         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
18510         indentation.
18511
18512         * Makefile.am (EXTRA_DIST): Fix typo.
18513
18514         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
18515         to catch gdkconfig.h
18516
18517         * gtk/gtkitemfactory.c: Added FIXME.
18518
18519 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
18520
18521         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
18522         s/return_if_fail/return_val_if_fail/g and add a return value.
18523
18524 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
18525
18526         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
18527         merge slipup.
18528
18529         * gdk/gdkinput.h: Fix missing line from merge.
18530
18531 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
18532
18533         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
18534         instead of gdkprivate.h.
18535
18536 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
18537
18538         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
18539         parent class to correctly be GtkDialogClass.
18540
18541 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
18542
18543         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
18544         toplevel windows and their immediate children by their parents,
18545         since the size of toplevel windows is out of our immediate
18546         control and we don't get any real benefit from trying to track
18547         this size for clipping.
18548
18549         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
18550         for input_only windows.
18551
18552         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
18553         to fix some hacks and make sure that we don't try to set the
18554         background of input only windows.
18555
18556 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
18557
18558         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
18559         the _really_ internal stuff, and leave gdkprivate.h for the fake private
18560         stuff that we've traditionally exposed.
18561
18562         * gdk/**.c: Use gdkinternals.h where appropriate.
18563
18564         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
18565         not include gdkprivate-x11.h, move all stuff of conceivable public
18566         interest into gdkx.h; keep all really private stuff in
18567         uninstalled header gdkprivate-x11.h.
18568
18569         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
18570         image->image_put on windows through a new function _gdk_window_draw_image()
18571         to allow us to do backing store for images. (Sort of ugly)
18572
18573         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
18574         contexts locally so that we can offset them properly when drawing 
18575         onto backing pixmaps.
18576
18577         * gdk/gdkinput.h: Reindented
18578
18579         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
18580         pixmap or color for the window, so we can properly initialize
18581         our double-buffer pixmaps, and also so that we temporarily set
18582         a background of None while scrolling.
18583
18584         * gdk/gdkregion.h: Revise region boolean operators to have an
18585         interface that is actually convenient - switch from creating new
18586         regions on every op, to "methods" that modify existing regions
18587         (A = A OP B). 3 argument forms which allow dest == src, would also
18588         be possible, but the current interfaces seem to map nicely
18589         onto what needs to be done. (There is quite a lot of region
18590         code in GDK now.)
18591
18592         * gdk/gdkregion.h: Add constructor from rectangle and a copy
18593         operator.
18594
18595         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
18596         gdkpoly-generic.h: Copy region code from Xlib, switch it over
18597         to 32 bit coordinates, modify it to be mostly GTK+ style
18598         and to have interfaces that match gdkregion.h.
18599
18600         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
18601         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
18602         create a backing pixmap and redirect all drawing to
18603         that backing pixmap until a matching gdk_window_end_paint().
18604
18605         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
18606         Create a special drawable class for GtkWindow's that 
18607         redirects the drawing to the backing pixmap as necessary
18608         and then calls the real operations in _gdk_windowing_window_class.
18609
18610         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
18611         Store invalid region for each window. Generate expose events for invalid
18612         region in an idle. This replaces both the expose compression
18613         and the redrawing queuing in GTK+. It is both more efficient and
18614         simpler than either one individually and far more so then the
18615         combination.
18616
18617         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
18618         Emulate 32 bit coordinates for windows with 16 bit coordinates
18619         by offsetting drawing, guffaw scrolling techniques and
18620         mapping/unmapping child windows as necessary.
18621
18622         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
18623         where, when invalid regions are processed, the region is stored,
18624         and if expose events come in that are detectably duplicate
18625         the processed exposes (by comparison of event serial numbers),
18626         the stored region is subtracted out of those exposes.
18627
18628         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
18629         regions newly exposed when scrolling or resizing windows.
18630         This, combined with forcing processesing of queued invalidated
18631         regions, gives nice flicker-free scrolling.
18632
18633         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
18634         invalidated regions after every scroll.
18635
18636         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
18637         emulation in GDK. Its, for all practical purposes just a
18638         GtkViewport/GtkFixed hybrid now.
18639
18640         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
18641         (16-bit) structures as necessary instead of just casting.
18642
18643         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
18644         in terms of the structures from gdkregion-generic.c, using appropriate
18645         offsets from GDK to X11 coordinates. Cache clip mask and
18646         origin and ts origin locally and only flush to the server
18647         when drawing, to avoid constantly setting and resetting these
18648         values when offsetting GC's for scrolling and backing pixmaps.
18649
18650         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
18651
18652         * gtk/gtkcontainer.c: Call process_all_updates at end
18653         of resizing to reduce flicker. (Avoids having redraw
18654         lag arbitrarily behind resize under some circumstances)
18655
18656         * gtk/gtkentry.c: Remove old backing store code, and simply take
18657         advantage of the new backing store capabilities of GDK.
18658
18659         * gtk/gtkmain.c: Simple implementation of widget backing
18660         store - simply push a paint while handling each expose.
18661         (Should really be configurable widget for widget.)
18662         
18663         * gtk/gtkwidget.c: Remove all the old complicated redraw
18664         code, and simply invalidate the GDK windows from
18665         gdk_window_queue_clear(), etc. (Sigh, so much carefully
18666         debugged complexity ... gone to the winds.)
18667
18668         Remove all the code for suppressing expose events while
18669         resizes are pending; this isn't needed since the invalid
18670         areas won't be processed until after the resizes are
18671         processed, since they are in a lower priority idle.
18672
18673 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
18674
18675         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
18676         and height of dest rectangle for non-intersecting rectangles.
18677
18678 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
18679
18680         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
18681         for GdkRectangle.
18682
18683 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
18684
18685         * gdk/gdk{events,image,private,types,window}.h
18686          gdk/x11/gdkinputprivate.h: Change all coordinates
18687          from int16 to int. Also, Change width and height from
18688          unsigned to signed to avoid all the stupid C 
18689          signedness bugs.
18690
18691 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
18692
18693         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
18694         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
18695         Add some more detailed checking.
18696
18697         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
18698         New function to retrieve the depth of a drawable.
18699
18700         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
18701         field, reorder fields to save memory. 
18702
18703 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
18704
18705         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
18706         of the background image instead of scaling the background down to
18707         a line.
18708
18709         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
18710         which temporarily set slider to wrong size.
18711
18712         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
18713         queue_clear().
18714
18715 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
18716
18717 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
18718
18719         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
18720
18721 2000-03-17  Tor Lillqvist  <tml@iki.fi>
18722
18723         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
18724         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
18725
18726         * gdk/win32/gdkfont-win32.c
18727         * gdk/win32/gdkproperty-win32.c
18728         * gdk/win32/gdkselection-win32.c
18729         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
18730         now declared such.
18731
18732 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
18733
18734         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
18735
18736 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
18737
18738         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
18739         is called without trapping X errors.
18740
18741 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
18742
18743         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
18744         way into the fontset lists.
18745
18746 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
18747
18748         * gtk/gtkthemes.h: add extern "C" scope.
18749
18750 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
18751
18752         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
18753         to make appends to the list constant. (gtk-guy-990901-0.patch)
18754
18755 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
18756
18757         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
18758         for the typename hash table.
18759
18760 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
18761
18762         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
18763         to make sure we never divide by zero. 
18764         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
18765
18766 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
18767
18768         * gtk/gtkfontsel.c: Apply patch from
18769         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
18770         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
18771
18772         Also, some cleanups in atom handling.
18773
18774 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
18775
18776         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
18777         not GtkWidget.
18778
18779 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
18780
18781         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
18782         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
18783         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
18784         more guint wrap-around bugs before going to bed.
18785
18786 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
18787
18788         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
18789         guint wrap arounds in allocation.width.
18790
18791         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
18792         process untill we fit the allocation given.
18793
18794 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
18795
18796         * gtk/gtkwidget.c:
18797         (gtk_widget_unrealize): guard widget access with ref/unref
18798         around signal emission.
18799         (gtk_widget_hide): same here, but also check its destroyed
18800         state before queueing a resize.
18801
18802 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
18803
18804         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
18805         of gtk_default_insensitive_bg as insensitive base color.
18806
18807         * gtk/gtktext.c (gtk_text_style_set): set the background color according
18808         to the widget's state.
18809         (gtk_text_realize): same here.
18810         (gtk_text_state_changed): same here.
18811         (draw_bg_rect): compare background color against base[] from
18812         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
18813
18814 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
18815
18816         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
18817         grabs are active, unless a delete event is send to the toplevel
18818         of the currently grab holding widget.
18819
18820 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
18821
18822         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
18823         debugging g_print's.
18824
18825 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
18826
18827         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
18828         ever make the scrolled-window requisition ever depend on the 
18829         visibility state of the scrollbars for the AUTOMATIC policy. 
18830         This breaks the GTK+ requisition model, and causes loops.
18831
18832 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
18833
18834         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
18835         the default font to avoid problems with XFree86-4.0 where the
18836         default charset is iso10646-1, not iso8859-1.
18837
18838 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
18839
18840         * acinclude.m4
18841         * config.guess
18842         * config.sub
18843         * ltconfig
18844         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
18845
18846         * gtk/Makefile.am: minor cosmetic consistency tweak
18847
18848 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
18849
18850         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
18851         the activate_time to 0, so that we handle a quick
18852         press/release press/release properly and don't suppress
18853         the second release. (Red Hat bug #7545)
18854
18855 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
18856
18857         * gtk/gtkctree.c (row_delete):
18858         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
18859         bugs with destruction notifier, *always* update internal
18860         structures *before* calling user code.
18861
18862 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
18863
18864         A few more fixes for bug #5487, #2051, #2677.
18865         * gtk/gtkclist.c : 
18866         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
18867         not GDK_BUTTON_PRESS.
18868         (resync_selection): resync only if selection_mode is
18869         GTK_SELECTION_EXTENDED
18870         * gtk/gtkctree.c (resync_selection): same here
18871
18872 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
18873
18874         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
18875         gdk_drag_get_selection() and gtk_menu_detach().
18876
18877         [ From Jeroen Ruigrok/Asmodai ]
18878
18879 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
18880
18881         * gtk/gtknotebook.c (gtk_notebook_size_request): 
18882         page->tab_label can be NULL.
18883
18884 2000-01-25  Havoc Pennington  <hp@pobox.com>
18885         
18886         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
18887         arg is boolean
18888
18889         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
18890
18891         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
18892
18893         * gdk/gdkproperty.c (gdk_property_get): return boolean
18894
18895         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
18896
18897         * gdk/gdkim.c (gdk_im_ready): return boolean
18898
18899         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
18900
18901         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
18902         glib clash, should fix glib)
18903
18904         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
18905         (gdk_get_show_events): return gboolean, and canonicalize 
18906         to TRUE/FALSE
18907
18908         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
18909         colormap is private
18910         (gdk_colors_alloc): gboolean whether to be contiguous
18911         (gdk_color_equal): return gboolean since we are a predicate
18912         and not a qsort() (this looks semi-wrong due to glib breakage,
18913         IMO glib should be fixed)
18914         
18915         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
18916         (gdk_get_use_xshm): return gboolean
18917         (gdk_pointer_is_grabbed): return gboolean
18918
18919         * gdk/gdk.h: Change prototypes to match all the above changes,
18920         and re-run egtk-format-protos as required.
18921
18922 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
18923
18924         * gtk/gtkctree.c (resync_selection): 
18925         * gtk/gtkclist.c (resync_selection):
18926
18927         Return immediately if clist->drag_pos < 0. This is a workaround
18928         for the corrupt state that the clist gets into when a
18929         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
18930
18931         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
18932         
18933         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
18934         variable from recent commit.
18935
18936 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
18937
18938         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
18939
18940 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
18941
18942         * gtk/Makefile.am: prefix all autogenerated source that get build in
18943         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
18944         in builddir. since we subsequently cd into srcdir for autogeneration,
18945         the paths have to be stripped from the target file names, thusly we
18946         use $(@F) as target names now.
18947         put a comment about configure.in's --disable-rebuilds option,
18948         which can be used for non-writable source directories, for development
18949         setups though, srcdir has to be *writable*.
18950
18951 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
18952
18953         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
18954           Finish the job of allowing event to be NULL.
18955           (Fixes bug #4283, reported by Chris Blizzard)
18956
18957         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
18958           things so that the cursor appears on screen, properly
18959           take into account INNER_BORDER.
18960           (Fixes bug #4754, reported by Antonio Campos)
18961
18962 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
18963
18964         * gtk/gtknotebook.c (gtk_notebook_map): Don't
18965           show the tab_label unless it itself is visible.
18966
18967           gtk/gtknotebook.c (gtk_notebook_size_request):
18968           Do a better job of making sure that the visibility
18969           of the tab label corresponds to whether it should
18970           be mapped or not.
18971
18972 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
18973
18974         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
18975           Use the requisition, not the allocation, since the
18976           allocation has not necessarily been computed yet.
18977           (Pointed out by Eugene Osintsev)
18978
18979 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
18980
18981         * gtk/gtkstyle.c (gtk_style_new): Dont' set
18982           style/base[GTK_STATE_INSENSITIVE] both to
18983           gtk_default_insensitive_bg!
18984           (Bug #2187, reported by Jonathan Blandford)
18985
18986         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
18987           Add Alt_L, Alt_R to list of invalid accelerators.
18988           (Bug #3736, reported by Vlad Harchev)
18989
18990 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
18991
18992         * gtk/gtkfilesel.c (open_ref_dir): Fix several
18993         bugs which occured after an attempt to open 
18994         invalid home directory left cmpl_state->reference_dir == NULL.
18995
18996          - completion on files in home directory didn't work
18997          - completion on an empty string caused  segfault
18998
18999          (Bug #3678, reported by Steve Ratcliffe)
19000
19001         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
19002         cut and paste error that was causing scales to
19003         be incorrectly positioned.
19004         (Bug #2956,
19005          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
19006
19007 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
19008
19009         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
19010         when checking for dcgettext, if we've found we needed
19011         it for dgettext.
19012 +
19013 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
19014
19015         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
19016         queue_clear on NO_WINDOW widgets during a reparent,
19017         since at that point the window and widget heirarchies
19018         are out of sync. This stops crashing in some cases
19019         (the scrolled window reparent test, for instance), and
19020         _probably_ won't cause drawing errors.
19021
19022         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
19023         test do what it was supposed to do and be robust against
19024         window closings, etc. (Bug #2443)
19025
19026 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
19027
19028         * gtk/gtkentry.c: Fix return values on mouse events.
19029         (Bug #2686, Sky <seb_sky@yahoo.com>)
19030
19031         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
19032         (pointed out by George Lebl)
19033
19034         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
19035         (From Ettore Perazzoli  <ettore@helixcode.com>)
19036  
19037 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
19038
19039         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
19040         clicks between rows or outside calender area correctly.
19041         (Patch from Damon Chaplin)
19042
19043         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
19044         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
19045           Call destroy function when overwriting existing data. 
19046           (Pointed out by Damon Chaplin)
19047
19048 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
19049
19050         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
19051           which was causing problems on various systems with Xmu.
19052           This hasn't been needed for a very long time.
19053           (Fixes #1185 3167)
19054
19055 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
19056
19057         * gdk/gdki18n.h: Include <ctype.h> when defining
19058           gdk_isw* in terms of is* as a fallback.
19059           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
19060
19061 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
19062
19063         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
19064           realize the widget when it is size allocated!
19065           (old, old bug)
19066
19067         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
19068           Removed unused call to gdk_window_get_size() that
19069           showed up when the above was fixed.
19070
19071 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
19072
19073         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
19074           fix up widget->window when the widget is a
19075           NO_WINDOW container widget.
19076
19077 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
19078
19079         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
19080           to account for the fact that feof() does _not_ 
19081           return TRUE on errors, and thus avoid infinite loops
19082           when trying to use gdk_pixmap_create_from_xpm()
19083           on unreadable values.
19084
19085 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
19086
19087         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
19088
19089 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
19090
19091         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
19092           gdk_gc_set_dashes to take gint8 instead of gchar to
19093           make it clearer that it is _not_ a NULL terminated string.
19094
19095         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
19096           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
19097           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
19098           arguments.
19099
19100 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
19101
19102         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
19103         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
19104         background size relative to our allocation, guard against small
19105         allocations, we may have not yet been size allocated.
19106
19107 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
19108
19109         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
19110         not just version == 3. We implement all 3 + most of 4 - 
19111         (we don't support matching text/plain;charset=iso-8859-1
19112         to a dest that expects text/plain). We'll still advertise
19113         3 to be safe, but any client implementing version >= 3
19114         must interoperate with 3.
19115         
19116 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
19117
19118         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
19119         background and gc members, add a warning in gtk_tooltips_set_color()
19120         indicating that this function is deprecated.
19121
19122 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
19123
19124         * docs/gtkfaq.sgml: FAQ Update:
19125           - Minor cleanups (Emmanuel, me)
19126           - New questions:
19127                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
19128                 How can I retrieve the text from a GtkMenuItem? (timj)
19129                 How do I validate/limit/filter the input to a GtkEntry? (me)
19130                 Memory does not seem to be released when I free the list
19131                         nodes I've allocated (timj)
19132
19133 2000-03-07  Tor Lillqvist  <tml@iki.fi>
19134
19135         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
19136         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
19137         for which it is no use to call GetLastError onWin9x.
19138         (gdk_other_api_failed) New function, for general error
19139         reporting without calling GetLastError.
19140         (gdk_win32_api_failed) OTOH, this function always calls
19141         GetLastError. (gdk_win32_last_error_string) Remove this function,
19142         GLib has the equivalent now.
19143
19144         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
19145         call them with function name, file name and line number in the
19146         arguments.
19147
19148         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
19149         functions.
19150         
19151         * gtk/gtk.def: Add some missing entry points.
19152
19153         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
19154         gtk_paned_set_gutter_size, which don't exist any longer, as void.
19155         
19156         Fixes by Hans Breuer:
19157
19158         * gdk/makefile.msc: Update for debugging.
19159
19160         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
19161         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
19162         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
19163         in the dash_list.
19164
19165         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
19166         the x11 backend.
19167
19168         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
19169
19170         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
19171
19172 2000-03-04  Tor Lillqvist  <tml@iki.fi>
19173
19174         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
19175         just pixel value of background colour.
19176
19177         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
19178         containing code snippet previously duplicated in a couple of
19179         places.
19180         
19181         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
19182         gdk_colormap_color.
19183
19184         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
19185         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
19186         events for autorepeated Shift, Control and Alt keys. Use
19187         gdk_colormap_color.
19188
19189         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
19190         pointer is inside the window the cursor of which we are setting,
19191         call SetCursor immediately.
19192
19193         * gdk/win32/makefile.cygwin
19194         * gtk/makefile.cygwin: If we don't have the build number stamp
19195         file, use zero.
19196
19197         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
19198         gtk_paned_set_gutter_size as empty.
19199
19200         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
19201         
19202 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
19203
19204         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
19205           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
19206           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
19207           docs/gtk_tut.sgml docs/gtk.texi TODO:
19208
19209           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
19210
19211 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
19212
19213         * gtk/gtkcalendar.c: Implement num_marked_dates,
19214           and don't emit mutiple day_selected signals on
19215           month_prev.
19216
19217 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
19218
19219         * docs/make-todo (lineno): let title and logo be configurable so
19220         that GNOME can use this script too.
19221
19222         * TODO.xml: added logourl and a title
19223
19224 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
19225
19226         * TODO.xml: Added some UI items, and an explanatory
19227         comment at the top of the file.
19228
19229 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
19230
19231         * TODO.xml: some updates, added abunch of new entries.
19232         a note for those fiddeling with this file, when done
19233         with it, invoke:
19234         $ ./docs/make-todo TODO.xml >/dev/null
19235         and correct output errors before comitting changes.
19236
19237 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
19238
19239         * TODO.xml: Added XML-structured TODO file.
19240         * docs/make-todo: python script to turn TODO.xml into
19241           pretty XML output. 
19242
19243 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
19244
19245         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
19246         the function to let it draw the seven dots, instead of the old,
19247         much maligned, method.
19248         (draw_dot): New function to draw a dot.
19249
19250         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
19251         to draw the handle inside the border width as opposed to outside.
19252         Use paint function instead of gdk_draw_point.
19253
19254         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
19255         to draw the handle inside the border width as opposed to outside.
19256         Use paint function instead of gdk_draw_point.
19257
19258         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
19259         Change indenting to be more GTK like.
19260
19261 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
19262
19263         * docs/gtk_tut.sgml: New section on GtkCalendar
19264         * examples/calendar: Update example code
19265
19266 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
19267
19268         * docs/gtkfaq.sgml: FAQ Update
19269
19270 2000-02-19  Anders Carlsson  <andersca@gnu.org>
19271
19272         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
19273         to prevent the scroll event to be propagated upwards.
19274
19275 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
19276
19277         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
19278         OwnerGrabButtonMask from button entries for
19279         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
19280
19281         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
19282         to the event mask (which will result in button/press release
19283         being added to the event mask on Unix) so scrolling works
19284         for layouts in scroll windows.
19285
19286         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
19287
19288         Patch from Anders Carlsson  <andersca@gnu.org> to add
19289         a scroll event.
19290
19291         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
19292         scrolling to the "Test Scrolling" part of testgtk.
19293  
19294         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
19295  
19296         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
19297         it against GDK_SCROLL.
19298  
19299         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
19300         way of mouse wheel scrolling.
19301  
19302         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
19303  
19304         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
19305  
19306         * gtk/gtkmain.c: Removed previous mouse wheel hack.
19307  
19308         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
19309         gdk_event_mask_table.
19310  
19311         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
19312         GdkEventScroll handler.
19313  
19314         * gdk/gdkevents.h: Added GdkEventScroll structure.
19315  
19316 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
19317
19318         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
19319         and Anders Carlsson to change the Paned widgets so that they
19320         can be dragged from anywhere along the length. Also change
19321         the way that this is drawn to make this apparent.
19322
19323         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
19324         from George Lebl to check that option_menu->menu is present
19325         before getting history.
19326
19327 2000-02-14  Tor Lillqvist  <tml@iki.fi>
19328
19329         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
19330         before the assertion for non-NULL segment list.
19331
19332         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
19333         Seems that pattern brushes *must* be 8x8 pixels! At least on my
19334         machine, but it might be display driver dependent. Sigh, so make
19335         sure the stipple is that size. Does Windows suck or what?
19336
19337         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
19338         places.
19339
19340 2000-02-13  Havoc Pennington  <hp@pobox.com>
19341
19342         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
19343         refcount to 1
19344         (gdk_cursor_new): init refcount to 1
19345
19346         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
19347
19348 2000-02-13  Tor Lillqvist  <tml@iki.fi>
19349
19350         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
19351         so that we don't have to do unnecessary settings to the HDC.
19352
19353         * gdk/win32/gdkdrawable-win32.c
19354         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
19355         gdk_gc_predraw.
19356
19357         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
19358         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
19359         GDI paths, call WidenPath to get the outline of the stroken path,
19360         and then fill the outline (with the brush that was built from the
19361         stipple).
19362
19363         * gdk/win32/gdkgc-win32.c: Factor out common code from
19364         _gdk_win32_gc_new and gdk_win32_gc_set_values into
19365         gdk_win32_gc_values_to_win32values. Use correct colour for
19366         SetBkColor() (Until now the code actually used a random colour in
19367         the call to SetBkColor()... but that didn't show up as not many
19368         GDI APIs use the background colour. Pattern (opaque stippled)
19369         brushes do.)
19370
19371         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
19372         gdk_win32_api_failed): New functions for error logging.
19373
19374         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
19375         WIN32_API_FAILED to call them, passing function or file name and
19376         line number.
19377
19378         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
19379
19380         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
19381         GdkColor for foreground and background in GdkGCWin32Data.
19382
19383         * gdk/makefile.cygwin: Link in the resource object separately.
19384
19385         * gdk/win32/rc/gdk.rc
19386         * gtk/gtk.rc (New file)
19387         * gdk/win32/makefile.cygwin
19388         * gtk/makefile.cygwin: Update build number in DLLs automatically,
19389         as in GLib.
19390
19391 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
19392
19393         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
19394         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
19395         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
19396         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
19397         parameters given and cursor->ref_count. coding style fixups.
19398
19399         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
19400         not GtkWidget.
19401         
19402         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
19403         fix up widget macros and add _GET_CLASS() variant.
19404         
19405         * gtk/*.c: some GtkType fixups.
19406
19407 2000-02-09  Tor Lillqvist  <tml@iki.fi>
19408
19409         * gdk/win32/gdkproperty-win32.c
19410         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
19411         were reversed.
19412
19413 2000-02-04  Tor Lillqvist  <tml@iki.fi>
19414
19415         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
19416         g_filename_to_utf8 to convert the font names Windows gives us from
19417         whatever is the default codepage to UTF-8.
19418         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
19419         in the other direction.
19420
19421         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
19422         error in debugging output.
19423
19424 2000-02-02  Tor Lillqvist  <tml@iki.fi>
19425
19426         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
19427         and height parameters to gdk_window_clear_area(). Not minus one.
19428
19429 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
19430
19431         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
19432         checks if the widget passed to gtk_drag_get_data() was not the
19433         dest widget.
19434
19435 2000-02-01  Tor Lillqvist  <tml@iki.fi>
19436
19437         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
19438         g_filename_from_utf8 functions (which were added a moment ago to
19439         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
19440         size buffers.
19441
19442         gtk_file_selection_get_filename returns the filename in the C
19443         runtime encoding. It calls g_filename_from_utf8, but copies the
19444         returned string to a static buffer, which is returned. I think
19445         this is better than returning the result from g_filename_from_utf8
19446         directly, which would mean all apps that use it would have to free
19447         the return value. Or should this function care about this issue at
19448         all? Maybe a new function with clearly defined semantics.
19449
19450         * gtk/gtkfilesel.h: Add comment about
19451         gtk_file_selection_get_filename returning the filename in the C
19452         runtime's encoding.
19453
19454         * README.win32
19455         * gdk/gdk.def
19456         * gdk/makefile.{cygwin,msc}
19457         * gtk/gtk.def: Updates.
19458
19459         * gdk/gdkcursor-win32.c: Initialise refcount.
19460
19461 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
19462
19463         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
19464
19465 2000-01-30  Havoc Pennington  <hp@pobox.com>
19466
19467         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
19468         destroy
19469
19470         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
19471
19472         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
19473         implemented in platform-specific code
19474
19475         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
19476
19477         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
19478         underscore in front
19479
19480         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
19481         put an underscore in front
19482
19483         * gdk/gdkcursor.c: new file, implements
19484         gdk_cursor_ref/gdk_cursor_unref
19485
19486         * gdk/gdkcursor.h: Refcount GdkCursor
19487
19488         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
19489
19490 2000-01-29  Tor Lillqvist  <tml@iki.fi>
19491
19492         * gdk/gdkwindow.h
19493         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
19494
19495 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
19496
19497         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
19498         structures to properly inherit from GtkWidget not GtkBin.
19499
19500 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
19501
19502         * gtk+.spec.in: Added lib/gtk+/include/* to %files
19503         (bug #5178 - Peter Wainright)
19504         
19505         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
19506         so that it will be installed.
19507         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
19508
19509 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
19510
19511         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
19512         for the GtkStyleClass vtable const.
19513
19514         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
19515         take a const string argument like GtkTranslateFunc. This will
19516         require changes in use code.
19517
19518 2000-01-19  Tor Lillqvist  <tml@iki.fi>
19519
19520         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
19521         semantics (to mimic the X11 backend, which just calls XClearArea)
19522         is to check for zero width (and height), and in that case use the
19523         window's width minus x (height minus y). This fixes for instance
19524         some redraw problems with gtkclist, which were easily noticeable
19525         in the gtk file selection widget.
19526
19527         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
19528         windows.
19529
19530 2000-01-13  Tor Lillqvist  <tml@iki.fi>
19531
19532         * configure.in
19533         * gdk/Makefile.am
19534         * gdk/x11/Makefile.am
19535         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
19536         (bug #5177).
19537         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
19538         out later.
19539
19540 2000-01-09  Tor Lillqvist  <tml@iki.fi>
19541
19542         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
19543         WM_MOVE for iconified or invisible windows. This fixes various
19544         problems when minimising windows. Thanks to Bernd Herd.
19545
19546 2000-01-05  Tor Lillqvist  <tml@iki.fi>
19547
19548         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
19549         backend's draw_lines method, not draw_points.
19550
19551 2000-01-02  Tor Lillqvist  <tml@iki.fi>
19552
19553         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
19554         before Owen's reorganisation: Don't have queued_events and
19555         queued_tail statics in this file, but use gdk_queued_events and
19556         gdk_queued_tail. This makes exposure event compression work again.
19557
19558         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
19559         seem to be needed?
19560
19561 1999-12-30  Tor Lillqvist  <tml@iki.fi>
19562
19563         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
19564         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
19565         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
19566         doesn't do anything.
19567
19568         * gdk/gdk.def: Add gdk_xid_table_insert.
19569
19570         * gdk/win32/gdkprivate-win32.h
19571         * gdk/win32/gdkevents-win32.c
19572         * gdk/win32/gdkinput-win32.c
19573         
19574         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
19575         extension_events field in the GdkWindowWin32Data struct. Use only
19576         the extension_events field in GdkWindowPrivate. Previously one was
19577         set, and the other one tested, which broke tablet
19578         functionality. Thanks to Keishi Suenaga for pointing this out.
19579
19580 1999-12-18  Tor Lillqvist  <tml@iki.fi>
19581
19582         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
19583         When handling a single character (text length == 1), don't handle
19584         it as if it was UTF-8.
19585
19586 1999-12-11  Tor Lillqvist  <tml@iki.fi>
19587
19588         * Makefile.am: Distribute README.win32.
19589         
19590         * gdk/Makefile.am
19591         * gdk/win32/Makefile.am: Distribute Win32 files.
19592
19593         * gdk/makefile.msc: New file.
19594
19595         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
19596         after label).
19597
19598         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
19599         gdk_error_code as GDKVAR, as they are referred outside GDK.
19600
19601         * gdk/win32/makefile.msc: Update.
19602
19603         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
19604         tweaks. Check only if at least one of those Unicode subrange bits
19605         we care for is set. If no code page bits are set, guess (wildly)
19606         based on the charset.
19607
19608         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
19609
19610         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
19611         non-NULL.
19612
19613         * gtk/gtkdnd.c
19614         * gtk/gtklayout.c
19615         * gtk/gtkplug.c
19616         * gtk/gtkselection.c
19617         * gtk/gtksocket.c
19618         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
19619         appropriate. There must be a cleaner way to handle this?
19620
19621         * gtk/gtkrc.c: Must include windows.h on Win32.
19622
19623         * gtk/testgtk.c: No need to include gdkx.h.
19624
19625         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
19626
19627 1999-12-07  Tor Lillqvist  <tml@iki.fi>
19628
19629         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
19630         the rbearing is set to the same as the width, but this should be
19631         fixed.
19632
19633 1999-12-06  Tor Lillqvist  <tml@iki.fi>
19634
19635         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
19636         function. If Windows doesn't tell us what Unicode subranges a font
19637         covers, guesstimate based on the codepages it covers. This will
19638         hopefully help those Windows versions or fonts that don't give us
19639         any useful Unicode subrange information with GetTextCharsetInfo.
19640         Call this function in gdk_font_load_internal.
19641
19642         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
19643         minor changes.
19644
19645 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
19646
19647         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
19648         New function, long needed.
19649
19650 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
19651
19652         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
19653         only_if_exists argument of gdk_atom_intern to
19654         bool.
19655
19656 1999-11-25  Tor Lillqvist  <tml@iki.fi>
19657
19658         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
19659         Fix two copy&paste errors.
19660
19661         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
19662         win32 has changed.
19663
19664         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
19665         GdkWin32SingleFont struct.
19666
19667         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
19668         subranges of loaded fonts. Clear font signature first, in case
19669         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
19670         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
19671
19672         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
19673         Unoffset clip region.
19674
19675 1999-11-23  Tor Lillqvist  <tml@iki.fi>
19676
19677         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
19678         event->any.window before calling filter functions.
19679
19680 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
19681
19682         * gtk/gtkgamma.h: Adapt cast macros to standard.
19683
19684 [ Merges from 1.2 ]
19685
19686 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
19687
19688         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
19689         If translation does not include a '/', use entire
19690         translation instead of crashing.
19691
19692 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
19693
19694         * docs/gtk_tut.sgml:
19695         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
19696
19697 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
19698
19699         * gtk/gtkselection.c (gtk_target_list_remove): Use
19700         g_list_remove_link, not g_list_remove.
19701
19702         [ From Geert Bevin <gbevin@thunderstorms.org> ]
19703         
19704 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
19705
19706         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
19707         statement upon unselection (how the heck did that slip in?).
19708
19709 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
19710
19711         * gtk/gtktext.c (gtk_text_freeze): 
19712         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
19713         in frozen state (and aparently crashes). patch provided by Anders
19714         Melchiorsen <and@kampsax.dtu.dk>.
19715
19716 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
19717
19718         * fix insensitive default/focus widget activation,
19719         reported by Matt Goodall <mgg@isotek.co.uk>.
19720
19721         * gtk/gtkwindow.c (gtk_window_key_press_event): 
19722         (gtk_window_activate_default):
19723         (gtk_window_activate_focus):
19724         return handled=FALSE for actiavtion of insensitive default
19725         widgets. return handled=TRUE for activation of insensitive
19726         focus widgets. don't activate in either case.
19727
19728 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
19729
19730         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
19731         and $glib_cflags to match library order and in the
19732         theory that an old version of GLib is more likely to
19733         be in the include directory for X then vice-versa.
19734         (Bug #2776)
19735
19736 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
19737
19738         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
19739         to determine the locale for fontsets, not LC_MESSAGES;
19740         the user may want English messages with a handling
19741         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
19742         will still be broken) (Bug #2891)
19743
19744 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
19745
19746         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
19747
19748 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
19749
19750         * gtk/gtkrc.ko: Changed the Korean default fontset.
19751
19752 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
19753
19754         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
19755         where when scrolling to the left or top double exposes
19756         were done, causing major slowdowns.
19757
19758 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
19759
19760         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
19761         names to lowercase and alphanumeric, before looking
19762         them up.
19763
19764         * gtk/Makefile.am: Install codeset variant gtkrc files
19765         with normalized names.
19766
19767 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
19768
19769         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
19770         popup menus when the menu is already visible, but its parent
19771         is still hidden, (happens after tornoff window got hidden).
19772
19773 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
19774
19775         * gtk/Makefile.am (install-data-local): Fix
19776         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
19777         deleted, causing error messages on install.
19778
19779 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
19780
19781         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
19782         the handle as well, since we now sometimes ignore
19783         exposes on the handle while resizing.
19784
19785 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
19786
19787         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
19788         extra g_free introduced in one of the last one or two 
19789         commits.
19790
19791 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
19792
19793         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
19794         consistent, put each style that a gtkrc.* file creates
19795         in a unique namespace, remove old files before installing.
19796
19797 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
19798
19799         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
19800         gtk_rc_init is called multiple times. (Yes, people who
19801         do that have bugs in their code.)
19802
19803 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
19804
19805         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
19806         Remove it since it's generated by the Makefile anyway
19807
19808 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
19809
19810         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
19811         device->info.axes for core pointer.
19812
19813 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
19814
19815         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
19816         idle_id, to deal with obsolete, broken C libraries.
19817
19818 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
19819
19820         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
19821         allocation->x/y twice!
19822
19823         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
19824         consistent with gtk_vscale_pos_trough().
19825
19826 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
19827
19828         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
19829         be queueing a resize on a toplevel container between
19830         the time we show it and when we map it. So, we need
19831         to test GTK_WIDGET_VISIBLE() for toplevels, and only
19832         use GTK_WIDGET_DRAWABLE() for child windows.
19833
19834 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
19835
19836         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
19837         (fixes bug #2144)
19838
19839 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
19840
19841         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
19842         container DRAWABLE (instead of VISIBLE), so we don't queue
19843         resizes on non-toplevel containers.
19844
19845 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
19846
19847         * gtk/gtkselection.[ch]: Make the data argument
19848         const guchar *.
19849
19850 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
19851
19852         * gtk/gtkwindow.c: Try to behave sensibly if 
19853         the focus widget is the window itself. (Should
19854         we allow this at all?)
19855
19856 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
19857
19858         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
19859         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
19860         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
19861         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
19862         in prototypes and implementations consistent (Tomas Ogren).
19863
19864         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
19865         before the widget is unparented (reported by damon).
19866
19867         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
19868         since we provide unsigned data anyways.
19869
19870 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
19871
19872         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
19873         the call to gtk_tooltips_layout_text() until later.
19874
19875         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
19876         Call gtk_widget_ensure_style() before using the style.
19877
19878 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
19879
19880         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
19881         for old widgets that don't propagate draws to all
19882         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
19883
19884 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
19885
19886         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
19887         for a redraw but just the widget that requested the resize.
19888
19889 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
19890
19891         * gtk/gtkcontainer.c: added new widget level method
19892         gtk_container_set_reallocate_redraws() and a GtkContainer flag
19893         reallocate_redraws : 1 to reflect the setting, exported this through
19894         the argument system as a boolean ::reallocate_redraws.
19895
19896         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
19897         on the widget because the allocation changes, do so as well for
19898         widget->parent if the parent has reallocate_redraws set to TRUE.
19899         with that containers requesting reallocation redraws get automatically
19900         redrawn if their children changed allocation (this unfortunately
19901         affects also other children that didn't change allocation, but we
19902         cannot work around that before 1.3).
19903
19904 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
19905
19906         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
19907         _and_ height are >0 (not _or_).
19908
19909         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
19910         instead of gtk_container_queue_resize(), which is a core gtk internal
19911         function (must have been on crack when i queued that).
19912
19913         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
19914         we can check more reliably if we want to discard expose events.
19915         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
19916         flag.
19917         
19918         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
19919         we simply trust these events. for deciding whether to discard exposes,
19920         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
19921         
19922 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
19923
19924         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
19925         queues of areas that are completely off screen.
19926
19927         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
19928         logic for handleboxes.
19929
19930         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
19931         check on width/height.
19932
19933 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
19934
19935         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
19936         we are fine with using $@ the way we do (if we actually encounter
19937         brokeness with $@ in VPATH builds because of additional path prefixes,
19938         we need to use $(@F) actually).
19939
19940 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
19941
19942         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
19943         short lived bugs, that would allow language bindings to do surgeries
19944         to our guts.
19945
19946 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
19947
19948         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
19949         where comparison was being done against an uninitialized
19950         value causing intermittant results depending on
19951         compiler flags. Also make it clearer that we aren't
19952         ever initializing the child as 0x0 (though this will
19953         be caught in gtk_widget_size_allocate())
19954
19955 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
19956
19957         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
19958         gtk_window_unset_transient_for() call after we do checks
19959         involving the old transient parent.
19960         [ From Lance Capser <lmc@cyberhighway.net> ]
19961
19962 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
19963
19964         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
19965         an empty file.
19966
19967 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
19968
19969         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
19970         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
19971
19972 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
19973
19974         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
19975         `$@' is valid only in the build dir, not after we've done 
19976         `cd $srcdir'.  Also use `test -f' instead of less portable
19977         `test -e'.
19978
19979 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
19980
19981         * gtk/gtktext.c (correct_cache_insert): Rewrite
19982          for simplicity, and hopefully correctness.
19983          (Fixes bug #1322, which was a segfault when
19984           on some insertions with the properties around
19985           the insertion set up just wrong.)
19986
19987         * gtk/gtktext.c (gtk_text_adjustment): When we receive
19988          a "changed" signal, clamp the new value to the adjustment
19989          bounds to avoid segfaulting if someone tries to change
19990          the adjustment to a bogus value. (Bug #1795)
19991
19992 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
19993
19994         * gtk/gtkmain.c: Ignore unexpected destroy notifies
19995         for children, for toplevel windows handle them
19996         like delete_event.
19997
19998         * gtk/gtkplug.c: Add an unrealize handler so that
19999         we unref plug->socket_window when we are done
20000         with it.
20001
20002 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
20003
20004         * gtk/gtktext.c (clear_area): Fix stupid signedness
20005          problem that was causing background to sometimes
20006          be misaligned.
20007
20008 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
20009
20010         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
20011         
20012         * gtk/gtkmenu.c (gtk_menu_position): Make
20013          sure we never position menus with negative x, y,
20014          since gtk_widget_set_uposition() can't handle that.
20015
20016         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
20017          Modify the positioning code a bit so that we always
20018          put the top-left corner onscreen. (This is for
20019          UI reasons, gtk_menu_position() now takes care of
20020          gtk_widet_set_uposition() brokeness.)
20021
20022 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
20023
20024         * gtk/Makefile.am: fixed up things for -jx, x > 1.
20025
20026 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
20027
20028         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
20029           RC style that is passed in. The lack of the ref
20030           before was a bug. If people worked around this
20031           bug, this will introduce a slight memory leak
20032           in their code. The code should typically look like:
20033
20034             rc_style = gtk_rc_style_new ();
20035             [...]
20036             gtk_widget_modify_style (widget, rc_style);
20037             gtk_rc_style_unref (rc_style);
20038
20039         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
20040           the style if it was already set.
20041
20042         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
20043           style if it was set before.
20044
20045 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
20046
20047         * gtk/testgtk.c (main): Add a check to see if we
20048           are being run from the correct directory and
20049           to quit nicely if we are not.
20050
20051         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
20052           static.
20053
20054 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
20055
20056         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
20057
20058         * gtk/gtkwindow.c:
20059         queue resizes unconditionally (gtk_widget_queue_resize will figure
20060         what to do if the window is not realized).
20061         (gtk_window_move_resize): only recenter the window
20062         for GTK_WIN_POS_CENTER_ALWAYS.
20063         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
20064         the same way as GTK_WIN_POS_CENTER.
20065
20066 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
20067
20068         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
20069         with (!(info->last_flags & GDK_HINT_POS)) instead of
20070         (!info->last_flags & GDK_HINT_POS).
20071
20072         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
20073         new_height unconditionally, because we use these values even if
20074         !default_size_changed && !hints_changed.
20075         comented the (default_size_changed || hints_changed) case with
20076         respect to resize rejects from the window manager.
20077
20078         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
20079         in the zvt condition hack, since this includes the window hints, set
20080         the hints after the handling_resize case.
20081
20082         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
20083         window is initially shown with to the geometry.
20084
20085 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
20086
20087         * gtk/gtkwindow.c (gtk_window_move_resize):
20088         s/size_changed/default_size_changed/g so i know what's
20089         really going on (frying brain on smaller flame now).
20090
20091 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
20092
20093         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
20094         we have size_changed upon handling_resize. this is a gross
20095         workaround for the broken zvt widget and should be removed in
20096         1.3 again (search for FIXME).
20097         Owen provided an accurate comment for this:
20098
20099         /* We could be here for two reasons
20100          *  1) We coincidentally got a resize while handling
20101          *     another resize.
20102          *  2) Our computation of size_changed was completely
20103          *     screwed up, probably because one of our children
20104          *     is broken. It's probably a zvt widget.
20105          *
20106          * For 1), we could just go ahead and ask for the
20107          * new size right now, but doing that for 2)
20108          * might well be fighting the user (and can even
20109          * trigger a loop). Since we really don't want to
20110          * do that, we requeue a resize in hopes that
20111          * by the time it gets handled, the child has seen
20112          * the light and is willing to go along with the
20113          * new size. (this happens for the zvt widget, since
20114          * the size_allocate() above will have stored the
20115          * requisition corresponding to the new size in the
20116          * zvt widget)
20117          *
20118          * This doesn't buy us anything for 1), but it shouldn't
20119          * hurt us too badly, since it is what would have
20120          * happened if we had gotten the configure event before
20121          * the new size had been set.
20122          */
20123
20124 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
20125
20126         * gtk/gtkrc.c: deal properly with the fact that RC
20127           style lists may include rc styles more than once.
20128
20129         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
20130           unused static function.
20131
20132         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
20133           stack of directories of RC files currently being
20134           parsed and implicitely add them to pixmap path.
20135           
20136           This fixes a bug where the directory would get
20137           appended then overwritten by pixmap_path declarations.
20138
20139           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
20140
20141         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
20142           theme's exit function. (Patch from Peter Wainwright,
20143           bug #1454)
20144
20145         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
20146           Add a destroy() handler to take care of removing
20147           group for menu item. (Fixes bug #1197)
20148
20149         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
20150           in warning message.
20151
20152 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
20153
20154         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
20155         roundtrip to figure window's width and height, since we know that
20156         anyways from widget->allocation.
20157
20158 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
20159
20160         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
20161           the hints after we request the new size.
20162
20163 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
20164
20165         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
20166           GTK_WIDGET_REALIZED() assertion - we can compute the
20167           hints before we are realized.
20168
20169         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
20170           hint changing so that we have a value of hints_changed
20171           when we decide whether to constrain the window size.
20172
20173         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
20174
20175         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
20176         change back to G_MAXINT.
20177
20178 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
20179
20180         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
20181         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
20182         contain uncluttered values.
20183         (gtk_window_compute_hints): simply assert that window is realized
20184         and that geometry_info is valid, since we rely on this anyways.
20185         (gtk_window_constrain_size): major cleanups to the code.
20186         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
20187         for the base size, instead of the minimums. use 32767 as max width
20188         and height (like in gtkwindow.c) instead of G_MAXINT.
20189
20190 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
20191
20192         * cleaned up the GtkContainer.need_resize flag handling mess, we
20193         only need to force resize requests when we were prematurely
20194         realized, or our widget tree was modified when we were temporarily
20195         hidden. handling these cases directly upon showing the window (i.e.
20196         while the GdkWindow is still unmapped) avoids the need to wait for
20197         a configure event response and therefore makes the GUI more snappier
20198         and avoids blank windows during the roundtrip.
20199
20200         * gtk/gtkwidget.c:
20201         (gtk_widget_hide): 
20202         (gtk_widget_show): don't queue resizes on toplevels, they know how
20203         to deal with matters.
20204
20205         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
20206         flag directly for not visible resize containers and spare us unecessary
20207         signal emissions.
20208
20209         * gtk/gtkwindow.c:
20210         (gtk_window_realize): if we need to enforce premature size allocation,
20211         queue a container resize so we are correctly resized later on.
20212         (gtk_window_init):
20213         (gtk_window_size_request):
20214         don't freak around with the ->need_resize flag,
20215         gtk_container_queue_resize() will care about that.
20216         (gtk_window_show):
20217         handle initial resizing issues here, we can handle matters better in
20218         this place, especially since we know that our GdkWindow is still
20219         unmapped.
20220         (gtk_window_move_resize):
20221         don't care about ->need_resize at all.
20222         handle size changes properly that occoured while we waited for a
20223         configure event.
20224
20225 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
20226
20227         * gtk/gtkwidget.c (gtk_widget_set_uposition):
20228         * gtk/gtkwindow.[hc] (gtk_window_reposition):
20229         Move the hint setting code from gtk_widget_set_uposition
20230         to here; set the hints so that we respect any previously
20231         set geometry hints.
20232
20233         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
20234         change the window hints here or move the window here,
20235         let that happen in gtk_window_move_resize().
20236
20237 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
20238
20239         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
20240         to already queued resizes (and therefore redraws) on a widget, check
20241         its anchestry as well.
20242
20243         * gtk/gtkcontainer.c:
20244         (gtk_container_queue_resize): clear resize widgets for resize
20245         containers before aborting prematurely. this is especially important
20246         for toplevels which may need imemdiate processing or their resize
20247         handler to be queued.
20248         (gtk_container_dequeue_resize_handler): added new internal function for
20249         gtkwindow.c.
20250
20251         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
20252         configure event, take possible changes in window position into account
20253         as well.
20254         if we request a new window size, queue up a resize handler that will
20255         last until the configure event response arrives.
20256         combined the ->need_resize case (initial show) with the general size
20257         (hints) changed case and added even more comments.
20258         if !auto_shrink, only revert to the old allocation if the new size
20259         is smaller than the current allocation.
20260
20261 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
20262
20263         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
20264                            gtk_window_set_geometry_hints
20265                            gtk_window_set_default_size):
20266         When hints are set, queue a resize so that the hints will
20267         be eventually reset on the toplevel.
20268
20269         * gtk/gtkwindow.c (gtk_window_show): Use
20270         gtk_window_compute_default_size(). Clear the need_resize flag
20271         on the initail map so that we don't unnecessarily trigger the
20272         resize code.
20273
20274         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
20275         into separate functions. Compare the hints we are setting
20276         with what we set last time so that we can accurately
20277         tell when we need to reset the hints.
20278
20279         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
20280         function to figure out the size from requisition
20281         and default_size.
20282
20283         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
20284         from fvwm to constrain a size to the geometry hints.
20285
20286         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
20287         to compare two sets of geometry hints.
20288
20289         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
20290         from gtk_window_set_hints(), just compute the hints,
20291         don't set them.
20292
20293         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
20294         code from gtk_window_move_resize() to separate function,
20295         rationalize a bit.
20296
20297 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
20298
20299         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
20300         structure into a new private structure.
20301
20302         * gtkrc.c: Split GtkRcStyle into public/private.
20303         In the private part, add a list of pointers to the
20304         RcStyle lists this RcStyle participates in.
20305
20306         * gtkrc.c: When a RcStyle is free, remove all
20307         lists referencing it from the 
20308         realized_style_ht hash, and free those lists.
20309         
20310         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
20311         gtk_rc_init(), since that adds the default styles
20312         to the list of parsed RC files again.
20313
20314         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
20315         
20316 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
20317
20318         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
20319         checks that ensure that a widget's allocation is at least 1 in width
20320         and height. (GNOME note: this doesn't affect old panel code anymore,
20321         because GtkSocket will request width and height of at least 1 since
20322         Fri Jul 23).
20323
20324         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
20325         allocated yet (happens if the user realizes the window prematurely),
20326         size request and allocate it.
20327         (gtk_window_size_allocate): guard against guint underflows.
20328
20329 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
20330
20331         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
20332         in gtk_built_sources, so gtk.defs gets built prior to all other
20333         sources.
20334
20335 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
20336
20337         * gtk/Makefile.am:
20338         invoke indent on gtkmarshal.*. 
20339         rewrote source generation rules, use COPYING as oldest source tag for
20340         a piggyback rule to generate all sources from (don't touch it ;).
20341         major cleanups, strip spaces on build rules for GNU Make.
20342
20343         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
20344         source and target files from commandline arguments. don't invoke indent.
20345
20346 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
20347
20348         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
20349         notebook after switch to avoid drawing problems.
20350         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
20351         
20352         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
20353         show them instead. 
20354         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
20355
20356 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
20357
20358         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
20359         notebook after switch to avoid drawing problems.
20360         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
20361         
20362         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
20363         show them instead. 
20364         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
20365
20366 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
20367
20368         * gtk/gtkwindow.c:
20369         we use window->need_resize from configure_event now, to indicate that
20370         the gtkwindow should keep its allocation (e.g. because the user resized
20371         the window through window manager handles). resize_count is now reliably
20372         used to figure whether we got the allocation we requested from the
20373         window manager.
20374         configure events get queued as resizes now, the real stuff (size
20375         computation and allocation) now only goes on in gtk_window_move_resize().
20376         GtkWindow's requisition now contains its *real* requisition (like all
20377         other widgets), *not* taking usize into account.
20378         geometry_info->last_{width|height} is now updated from set_hints() only
20379         so it always contains the last hints we set for the window manager.
20380         made some event handlers return TRUE instead of FALSE.
20381         the overall code should be much more straight forward now, and the
20382         significant code portions are accompanied by comments now.
20383         (gtk_window_set_hints):
20384         removed requisition argument and made it
20385         fetch the requisition through gtk_widget_get_child_requisition.
20386         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
20387         does that now.
20388         (gtk_window_show):
20389         ensure that the widget is realized before calling 
20390         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
20391         ensure that we got properly size requested and allocated before
20392         realization.
20393         (gtk_window_configure_event):
20394         ignore plain window moves, or reallocate the widget tree through the
20395         resize queue otherwise.
20396         (gtk_window_move_resize):
20397         mostly rewrote this function to figure window manager hints more
20398         reliably, coalesce window moves and resizes to reduce configure events
20399         and do actuall size allocations.
20400
20401 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
20402
20403         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
20404         that have a resize pending, because a redraw is already queued for them.
20405
20406         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
20407         hack to clear resize_widgets.
20408
20409         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
20410         for resize containers prior to size allocation. (this is also a bit
20411         ugly, but avoids side effects for stopped emissions and is thus more
20412         reliable).
20413         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
20414
20415         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
20416         function from gtk_tooltips_expose, as we connect to ::expose_event
20417         *and* ::draw now.
20418
20419 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
20420
20421         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
20422         checks.
20423         (gtk_target_list_unref): Likewise.
20424
20425         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
20426
20427 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
20428
20429         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
20430         guard against division by zero. (Fixes bug #1339)
20431
20432 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
20433
20434         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
20435         Prevent the trivial leak of information of allowing
20436         word motion when the entry is not visible.
20437
20438 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
20439
20440         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
20441         modality to error dialog as well as confirmation dialogs.
20442         (Bug #1803, reported by Rosanna Wing Sze Yuen)
20443
20444 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
20445
20446         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
20447         tree->view_lines.
20448         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
20449
20450         * gtk/Makefile.am (install-data-local): Solaris apparently
20451         has various troubles with ln -f; use rm first instead.
20452         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
20453
20454 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
20455
20456         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
20457         use `cp' followed by `rm' (the `rm' was already there).
20458
20459 July 30, 1999 Elliot Lee <sopwith@redhat.com>
20460         
20461         * configure.in: Fix autoconf warnings about cross compilation by
20462         trying to provide sane defaults for AC_TRY_RUN.
20463         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
20464         put them into $(srcdir) when generated. Also add a dependency of
20465         gtksignal.h on gtkmarshal.h for -j builds. 
20466         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
20467
20468 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
20469
20470         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
20471         GDK_THREADS_{LEAVE,ENTER} pair.
20472         (From Paul Fisher <pnfisher@redhat.com>)
20473
20474 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
20475
20476         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
20477         width and height are always >0 (owen).
20478
20479 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
20480
20481         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
20482         change that assured that a widget's allocated with and height are
20483         always >1, since this breaks *buggy* panel code. unfortunately this
20484         back-breaks the gimp's color selector.
20485
20486         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
20487         allocation is always >0 in width and height, before sending the
20488         configure event; this is a *gross* hack to get the gimp back to work.
20489         
20490         * marked both cases with TODO-1.3
20491
20492 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
20493
20494         * gtk/gtktext.c: Don't display wrap indicators when
20495         text is not editable and word wrap is on.
20496
20497 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
20498
20499         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
20500         option menus here as they are not derived from menu shell, assure that
20501         the option menu has a menu we can add items to.
20502
20503 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
20504
20505         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
20506         width/height to (gint) before calculations and check against < 0 to
20507         avoid guint wraparounds.
20508
20509 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
20510
20511         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
20512         width and height is never zero. sanity check both dimensions against
20513         32767 and issue a warning if the allocation is greater than that.
20514
20515 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
20516
20517         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
20518         to g_main_pending() as well.
20519
20520 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
20521
20522         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
20523         call to g_main_iteration() - since that will regrab
20524         GTK+ lock to process events.
20525
20526 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
20527
20528         * gtk/gtkwindow.c
20529         - Regularize with the rest of GTK+ by making widget->requisition
20530           not reflect the set_usize()
20531         - Always recompute geometry hints, then check if they
20532           changed before sending them to the X server. The
20533           previous checks for changes would fail in a number
20534           of circumstances. 
20535
20536 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
20537
20538         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
20539
20540 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
20541
20542         * gtk/gtkdnd.c:
20543         - Code cleanups
20544         - Instantaneously update on modifier key presses
20545         - Allow cancellation of the drag with Escape.
20546
20547 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
20548
20549         * gtk/testgtk.c (create_handle_box): Set the policy
20550         to auto_shrink - otherwise the appearance is rather
20551         strange when flipping between horizontal and vertical.
20552
20553 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
20554
20555         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
20556         (gtk_window_set_default_size): don't change a value if it's < 0.
20557         queue a resize.
20558
20559 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
20560
20561         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
20562
20563 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
20564
20565         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
20566         add an extra "/" when concating "/" + filename.
20567         (From Matt Grossman <mattg@oz.net>)
20568
20569 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
20570
20571         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
20572         for fg_gc if we set it for drawing pixmap.
20573
20574 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
20575
20576         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
20577         
20578         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
20579         already set, call old engine's destroy function and
20580         unref the old engine.
20581
20582 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
20583
20584         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
20585
20586 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
20587
20588         * gtk/gtkaccelgroup.h: mark certain functions as internal.
20589
20590 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
20591
20592         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
20593         expand behaviour changed.
20594
20595         * gtk/gtklabel.c (gtk_label_set_pattern):
20596         (gtk_label_set_justify):
20597         (gtk_label_set_line_wrap):
20598         don't bother invoking queue_clear, the reallocation does
20599         that for us, always free_words so the upcoming resize will
20600         relayout the label's contents.
20601
20602 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
20603
20604         * applied argument implementation patches from Elena Devdariani
20605         <elena@cogent.ca>.
20606
20607         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
20608         ::space_style, ::relief
20609         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
20610         * gtk/gtkpreview.c: ::expand
20611         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
20612         * gtk/gtknotebook.c: ::homogeneous
20613         * gtk/gtklabel.c: ::wrap
20614         * gtk/gtklist.c: ::selection_mode
20615         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
20616         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
20617         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
20618         * gtk/gtkclist.c: ::sort_type
20619         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
20620         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
20621
20622 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
20623
20624         * gtk/gtkstyle.c: Removed ill-thought-out part of last
20625         comment.
20626
20627 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
20628
20629         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
20630         counting right when we have to attach a new style
20631         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
20632
20633         * gtk/gtkstyle.c: Documented the refcounting
20634         peculularities of gtk_style_attach.
20635
20636 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
20637
20638         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
20639         window types.
20640
20641         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
20642         of GTK_TOPLEVEL for creating the window.
20643
20644 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
20645
20646         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
20647         the last argument (reported by Per Winkvist).
20648         
20649 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
20650
20651         Fixes for invisible XOR lines (Frank Loemker
20652         <floemker@TechFak.Uni-Bielefeld.DE>)
20653         
20654         * gtk/gtkclist.c (gtk_clist_realize): Always use
20655         a non-zero pixel for GDK_XOR.
20656
20657         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
20658         Use GDK_INVERT instead of GDK_XOR.
20659
20660 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
20661
20662         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
20663         signals if h/voffsets differ from adjustment values.
20664         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
20665
20666 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
20667
20668         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
20669         ::selection-done emissions up to the topmost menu shell.
20670
20671 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
20672
20673         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
20674         the user data on the window before destroying it.
20675
20676         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
20677         unrealize handler to take care of destroying 
20678         notebook->panel properly. 
20679         (Bug #1198 - Morten Welinder <terra@diku.dk>)
20680
20681         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
20682         of g_new and g_realloc to stop memory leak. (Actually,
20683         we could just use g_realloc(), but I'm not 100% sure
20684         that is portable).
20685         (Bug #1196 - Morten Welinder <terra@diku.dk>)
20686
20687 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
20688
20689         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
20690
20691         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
20692         for fontsets.
20693
20694         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
20695         with bin/button confusion.
20696
20697 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
20698
20699         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
20700         and show how preselection of radio items is done.
20701
20702 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
20703
20704         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
20705         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
20706         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
20707         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
20708         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
20709         * gtk/gtktable.c (gtk_table_attach): 
20710         * gtk/gtklist.c (gtk_list_insert_items): 
20711         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
20712         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
20713         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
20714         * gtk/gtkbin.c (gtk_bin_add): 
20715         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
20716         * gtk/gtkfixed.c (gtk_fixed_put): 
20717         * gtk/gtklayout.c (gtk_layout_put):
20718         general fixups to container_add logic. always realize child if
20719         child->parent is realized, only map the child and queue a resize
20720         if child and child->parent are both visible.
20721
20722 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
20723
20724         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
20725         instead of gtk_container_foreach to walk and unrealize children, so
20726         composite children get also unrealized.
20727         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
20728         (gtk_widget_map): assert that the widget is visible (basic constrain).
20729         (gtk_widget_real_map): assert that the widget is realized (basic
20730         constrain).
20731
20732 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
20733
20734         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
20735
20736 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
20737
20738         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
20739         file for iso-8859-2 locales.
20740
20741         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
20742
20743 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
20744
20745         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
20746          (Pointed out by andy@rz.uni-karlsruhe.de and others).
20747          Remove some suspicious and useless lines. 
20748
20749 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
20750
20751         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
20752         width,height = 0, 0 to mean - here to edge of window,
20753         instead of -1, -1, since the former is all we support.
20754
20755 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
20756
20757         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
20758         when removing from quit_functions list.
20759
20760 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
20761
20762         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
20763
20764 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
20765
20766         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
20767          When redrawing characters on non-visible entry, use appropriate
20768          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
20769
20770 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
20771
20772         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
20773         from drag coordinates.
20774         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
20775         use drag_dest_cell.
20776
20777         * gtk/gtktree (drag_dest_cell)
20778         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
20779         (Bug #1129)
20780
20781 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
20782
20783         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
20784         translate_* fields.
20785         (gtk_item_factory_finalize): invoke translate_notify independant from
20786         translate_data.
20787         (gtk_item_factory_set_translate_func): likewise.
20788         (gtk_item_factory_destroy): only remove ifactory pointer from those
20789         widgets that belong to us (stupid me).
20790
20791 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
20792
20793         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
20794         rc_style list when lookup succeeeds.
20795
20796 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
20797
20798         * gtk/gtkctree.c (resync_selection): 
20799         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
20800         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
20801         bug.
20802
20803 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
20804
20805         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
20806         Add some missing GDK_THREADS_ENTER()/LEAVE around
20807         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
20808
20809 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
20810
20811         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
20812         rather than emit_by_name.
20813
20814         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
20815         on the widget across multiple signal emissions.
20816         (gtk_editable_delete_text): same here.
20817         (gtk_editable_class_init): set widget_class->activate_signal after
20818         editable_signals[ACTIVATE] has been created.
20819
20820 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
20821
20822         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
20823         position here prematurely -- we might not have the
20824         right ->min_position and ->max_position yet.
20825
20826 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
20827
20828         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
20829         Add error traps so if the other end of the connection
20830         dies, we survive.
20831
20832         * gtk/gtkselection.c (gtk_selection_notify): Clean
20833         up properly when selection property retrieval fails.
20834         
20835         * gtk/gtkselection.c (gtk_selection_request): Correctly
20836         reject SelectionRequest notifies where the handler
20837         returns no data.
20838
20839 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
20840
20841         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
20842         when we've previously highlighted.
20843
20844         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
20845         emit two "drag_leave" signals for Motif drops.
20846
20847         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
20848         back the correct status messages when dropping from
20849         Motif onto a proxy window that is rejecting the
20850         drop.
20851
20852 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
20853
20854         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
20855         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
20856         to compare two argument values. added gtk_arg_to_valueloc() to set a
20857         variable from an arg through its location (pointer).
20858
20859         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
20860         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
20861         as gfloat*, uchars are collected as guchar*, ints are collected as
20862         gint*, etc...
20863
20864 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
20865
20866         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
20867         Include <string.h> instead of <strings.h>.
20868
20869         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
20870         (actually, a lot more duplicate includes occur if
20871          you trace through the sequence of #include's)
20872         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
20873         
20874 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
20875
20876         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
20877         gtk-a-higuti-990322-[0-3]
20878
20879         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
20880         that was causing -DX_LOCALE not to work.
20881
20882         * gtk/gtkrc.c (gtk_rc_init):
20883         X_LOCALE will never have LC_MESSAGES defined
20884
20885 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
20886
20887         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
20888         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
20889
20890         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
20891         left/right as well (gtk-michael-980726-0.patch.gz).
20892
20893         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
20894         for pointer values, use gchar instead of char. fixed uline allocation
20895         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
20896         chunks instead of G_ALLOC_ONLY.
20897         (gtk_label_size_request): always alter requisition as passed and leave
20898         widget->requisition alone.
20899         (gtk_label_set_text): allow NULL strings.
20900         (gtk_label_new): likewise.
20901
20902 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
20903
20904         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
20905
20906 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
20907
20908         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
20909         *and* mapped (i.e. drawable).
20910         (gtk_bin_expose): only send exposes to drawable children.
20911
20912         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
20913         (gtk_box_expose): only send exposes to drawable children.
20914
20915         * gtk/gtkhscale.c (gtk_hscale_draw): 
20916         * gtk/gtkvscale.c (gtk_vscale_draw):
20917         hm, this is an ugly one. we first compute the size of our trough area
20918         here (window relative) and then check intersection with the draw_area
20919         which is parent relative because we're a NO_WINDOW widget, so we need
20920         to offset the trough area by allocation.x and allocation.y before the
20921         check. (this must not be done for the background area though, since
20922         that's already computed parent relative).
20923
20924 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
20925
20926         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
20927         unrealize title buttons.
20928
20929 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
20930
20931         * gtk/gtkclist.c (gtk_clist_column_title_passive)
20932         (gtk_clist_column_title_active): 
20933         only connect/disconnect to GtkWidgetClass::event to block mouse events.
20934
20935         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
20936         zero initialize event, removed superfluous gdk_window_get_pointer call
20937
20938         * gtk/gtklist.c (gtk_list_vertical_timeout)
20939         (gtk_list_horizontal_timeout): removed superfluous
20940         gdk_window_get_pointer call
20941
20942 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
20943
20944         * plugging problems reported by "Bruce Mitchener, Jr."
20945         <bruce@puremagic.com> due to a purify session.
20946
20947         * gtk/gtkstyle.c:
20948         (gtk_style_ref): 
20949         (gtk_style_unref): assert ref_count to be > 0.
20950
20951         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
20952         the requisition.
20953         (gtk_clist_set_shift): likewise.
20954
20955         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
20956         adjustments.
20957
20958         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
20959         event before sending it and set send_event to TRUE (which needs to
20960         be done for *all* synthesized events).
20961         (gtk_list_vertical_timeout): likewise.
20962
20963         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
20964         leaks.
20965
20966         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
20967         to TRUE when synthesizing events.
20968
20969 [ *** end of merges from 1.2 *** ]      
20970         
20971 1999-11-21  Tor Lillqvist  <tml@iki.fi>
20972
20973         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
20974         (or copied from gdkconfig.h.win32 on Win32, sigh).
20975
20976         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
20977
20978         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
20979
20980         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
20981
20982         * gdk/gdkconfig.h.win32: New file.
20983
20984         * gdk/win32/makefile.cygwin: Build just a static archive here.
20985
20986         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
20987         for the DLL from the static archive built above.
20988
20989         * gdk/gdk.def: Moved here from the win32 subdirectory.
20990
20991         * gdk/win32/*: Adapt for the changed private struct organisation.
20992
20993         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
20994
20995 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
20996
20997         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
20998         for wheel mice (buttons 4 and 5).
20999
21000 1999-11-18  Tor Lillqvist  <tml@iki.fi>
21001
21002         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
21003         drawables use just the pixel field in the foreground and
21004         background GdkColor of the GdkGC.
21005
21006         gdk_gc_set_{fore,back}ground() are called in the GIMP with
21007         GdkColors containing uninitialized (red,green,blue) fields, and
21008         just the pixel field filled in, and furthermore in the
21009         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
21010         It thus turns out that we really don't need to have the full
21011         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
21012         it later to have just the pixel values.
21013
21014 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
21015
21016         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
21017
21018 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
21019
21020         * docs/gtkfaq.sgml: threads example from Erik Mouw.
21021         New question on GtkLabel background colors.
21022
21023         * docs/gtk_tut.sgml:
21024           - Correct the example code callback
21025             function definitions.
21026           - Update the gtkdial example code, from Frans van Schaik.
21027           - Update setselection.c to current API.
21028
21029         * examples/Makefile examples/*/*.c: Update to code
21030         listed in tutorial.
21031
21032 1999-11-10  Tor Lillqvist  <tml@iki.fi>
21033
21034         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
21035         subrange table (from the "Developing International Software for
21036         WIndows 95 and Windows NT" book) was missing the Hangul syllable
21037         block... Get the loaded font's charset correctly.
21038
21039         (Note that this, and the other *-win32.c files, still really are
21040         the old ones, the win32 subdirectory is not ready for compilation
21041         yet after the reorg.)
21042
21043 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
21044
21045         * gtk/gtkclist.c: Fix off-by-one bug in parameter
21046         check.
21047
21048 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
21049
21050         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
21051         on results of XQueryDeviceState().
21052
21053 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
21054
21055         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
21056         we need to accesss only ->children. We need an accessor
21057         for the children.
21058
21059         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
21060         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
21061         to get rid of gdkx.h include.
21062         
21063         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
21064         and random references to 'None'.
21065
21066         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
21067         Get rid of unused #include <gdk/gdkx.h>
21068
21069         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
21070         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
21071         gdkconfig.h.
21072
21073 1999-11-08  Tor Lillqvist  <tml@iki.fi>
21074
21075         * gdk/win32/gdkdraw.c
21076         * gdk/win32/gdkfont.c
21077         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
21078         following yesterday's changes. (Unrelated to Owen's reorg.)
21079
21080 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
21081
21082         * gdk/x11/gdkinput-gxi.c: Add missing include,
21083           fix GdkWindowPrivate => GdkDrawablePrivate.
21084
21085         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
21086
21087         * gdk/x11/Makefile.am (xinput_sources): Add missing
21088         backslash to fix building with --with-xinput=none
21089
21090 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
21091
21092         Move all X specific code into the x11/ directory.
21093         Aside from shuffling things around, did the following:
21094
21095        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
21096          gdk_arg_context_* - a simple argument parsing system
21097          in the style of popt.
21098
21099        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
21100          gdk/x11/gdkprivate-x11.h:
21101          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
21102          add ->klass and ->klass_data fields. The klass_data
21103          field points to an auxilliary structure that is
21104          windowing system dependent.
21105
21106        * gdk/gdkfont.c: Make most of the measurement functions
21107          simply wrappers around gdk_text_extents().
21108
21109        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
21110          _gdk_font_strlen() function that hides the weird
21111          behavior in gtk+-1.[02] where a string is interpreted
21112          differently for 8-bit and 16-bit fonts.
21113
21114        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
21115          to store common code for synthesizing double/triple
21116          press events.
21117         
21118        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
21119          Make all the function that modify an existing GC
21120          simply wrappers around gdk_gc_set_values().
21121          
21122        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
21123          for throwing out later.
21124
21125        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
21126          GdkImagePrivate and GdkColormapPrivate to have a
21127          windowing system dependent part (GdkFontPrivateX etc.)
21128          that "derives" from the system-independent part.
21129
21130        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
21131          Got rid of the included-source-files for XInput in
21132          favor of automake conditionals. (Which didn't exist
21133          when XInput support was originally added.)
21134
21135        * gdk/gdkrgb.c: Remove the visual id from the debugging
21136          statements since that is X11 specific; print out
21137          type/depth info instead.
21138          
21139
21140 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
21141
21142         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
21143         loading duplicates of hashed fonts.
21144
21145         * gdk/gdk.c (gdk_keysym_convert_case): rename
21146         gdk_XConvertCase to gdk_keysym_convert_case, allow
21147         results to be NULL in the GTK+ style.
21148
21149         * gdk/gdkcompat.h: Started compatibility header
21150         for renames.
21151
21152 1999-11-07  Tor Lillqvist  <tml@iki.fi>
21153
21154         * gdk/win32/gdkprivate.h: New font private structures, related to
21155         fontsets.
21156
21157         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
21158         gdk_font_list_free(). On X11, will just be wrappers to
21159         XListFonts() and XFreeFontNames(). On Win32, the code previously
21160         in gtkfontsel.c is now here.
21161
21162         New function gdk_font_xlfd_create(). On X11 will get the FONT
21163         property of the font (for GDK_FONT_FONTs), or call
21164         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
21165         builds a XLFD style name from the font information in the LOGFONT
21166         struct(s).
21167
21168         New function gdk_font_xlfd_free(), which correspondingly frees the
21169         string returned by gdk_font_xlfd_create().
21170
21171         Implement fontsets on Win32. Add a function that iterates over a
21172         wide char string and calls a callback function for each substring
21173         of wide chars from the same Unicode subrange (and thus probably
21174         available in the same real font).
21175
21176         Improve the XLFD emulation a bit.
21177
21178         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
21179
21180         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
21181         Beta3, WM_IME_CHAR messages don't seem to contain the composed
21182         multi-byte char as with the Active IMM on Win9x. Oh well, handle
21183         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
21184         ImmGetCompositionStringW() to get the composed Unicode chars.
21185
21186         * gdk/win32/gdkgc.c
21187         * gdk/win32/gdkdraw.c: Changes needed because of the font private
21188         struct changes.
21189
21190         * gdk/win32/gdk.def: Add the new functions.
21191
21192 1999-11-04  Tor Lillqvist  <tml@iki.fi>
21193
21194         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
21195         get the Platform SDK to get <dimm.h>.
21196
21197         * gdk/win32/gdkevents.c: More event handling fixes and
21198         simplification. Never generate motion events with is_hint true. We
21199         used to do that on bogus grounds earlier. Windows sends
21200         WM_MOUSEMOVE messages on button events even if the mouse hasn't
21201         moved, ignore these.
21202
21203         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
21204
21205         * gdk/win32/gdkglobals.c
21206         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
21207         the TrackMouseEvent function, and use it.
21208
21209         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
21210         char before calling WideCharToMultiByte in order to get a string
21211         for the window title.
21212
21213         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
21214
21215         * gdk/win32/gdk.def: Remove obsolete functions.
21216
21217         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
21218         /nodefaultlib and /defaultlib switches.
21219
21220         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
21221
21222 1999-10-31  Tor Lillqvist  <tml@iki.fi>
21223
21224         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
21225         EuroSign).
21226
21227         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
21228         same type as GdkWChar, especially on Win32.
21229
21230         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
21231
21232         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
21233         before passing to Windows GDI for drawing etc. Convert to the
21234         system default codepage before passing to Windows as window
21235         titles.
21236
21237         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
21238         support changing input locale on the fly.
21239
21240         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
21241         on-the-fly changes. Convert incoming characters from the current
21242         codepage to Unicode (and then to a UTF-8 multi-byte string) based
21243         on the current input language. Use keysym<->Unicode mapping tables
21244         and functions borrowed from xterm sources.
21245
21246         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
21247         editions of Win9x, use the ActiveX-based Active IMM (Input Method
21248         Manager) if available. IMEs and the Active IMM are available under
21249         the disguise of Chinese, Korean and Japanese support for IE and
21250         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
21251         support is present in all editions (as long as you install it).
21252
21253         Call DispatchMessage from gdk_events_queue() (and thus
21254         gdk_WindowProc()), instead of duplicating the code in
21255         gdk_WindowProc().
21256
21257         Reworked the grab handling and propagation code, factored out
21258         duplicated code snippets into separate functions. Other cleanups,
21259         too.
21260
21261         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
21262         the <dimm.h> header describing the Active IMM.
21263
21264         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
21265         just do the same as for "single" fonts.
21266
21267         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
21268         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
21269         the new keysyms from gdkkeysyms.h.
21270
21271         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
21272         fontset, so that gtkentry uses wide characters.
21273
21274         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
21275         GTk+'s system directory "gtk+", not "gtk".
21276
21277 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
21278
21279         * docs/gtkfaq.sgml: FAQ update
21280
21281 1999-10-21  Tor Lillqvist  <tml@iki.fi>
21282
21283         * gdk/win32/gdkprivate.h: Add more font private data.
21284
21285         * gdk/win32/gdkfont.c
21286         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
21287         fonts and strings. Now works much better. You still have to
21288         have a correct font selected, though. No fontset emulation yet.
21289
21290 1999-10-19  Tor Lillqvist  <tml@iki.fi>
21291
21292         * gtk/maketypes.awk: Use G_OS_WIN32.
21293
21294         * gtk/gtk.def: Add some missing entry points. Also some non-public
21295         ones, but PyGTK porter claims to need them.
21296
21297         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
21298         built-in type generation.
21299
21300 1999-10-14  Tor Lillqvist  <tml@iki.fi>
21301
21302         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
21303         GDK_FONT_FONT fonts (which is all we have for now, we don't
21304         emulate fontsets). The X11 version uses plain XDrawString in that
21305         case, too. The string passed to gdk_draw_text_wc seems to be in
21306         fact (at least, when used by gtkentry and gtktext) either in a
21307         single-byte charset, or a DBCS. Not Unicode.
21308
21309         This fixes the problem in gtkfontsel, where even if you had
21310         selected a font with a non-Latin1 charset (windows-greek, for
21311         instance), the preview still used Latin-1 glyphs.
21312
21313         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
21314         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
21315         (gdk_font_load): Recognize the demibold etc weights, even if we
21316         don't have the corresponding constants in the headers.
21317         (gdk_font_hash_insert): Use same hash mechanism as in the X11
21318         version. Should save font resources a bit, when we don't have
21319         multiple HFONTs for the same font.
21320
21321         * gdk/win32/gdkprivate.h: Add the names field as in the X11
21322         version.
21323
21324 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
21325
21326         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
21327         X values
21328
21329 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
21330
21331         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
21332         layout support (as mentioned on
21333         http://www.jcinteractive.com/gnome-ui/software/widgets/)
21334
21335 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
21336
21337         * gtk/fnmatch.c
21338         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
21339
21340 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
21341
21342         * configure.in (ALL_LINGUAS): Added Galician (gl)
21343
21344 1999-10-05  Tor Lillqvist  <tml@iki.fi>
21345
21346         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
21347
21348         * gdk/win32/gdkcompat.c: New file, actually provide an
21349         implementation for the deprecated functions. (Just temporarily.)
21350
21351         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
21352
21353         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
21354
21355         * gdk/win32/gdk.def gtk/gtk.def: Updates.
21356
21357 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
21358
21359         * configure.in: Added "uk" to ALL_LINGUAS.
21360         
21361 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
21362
21363         * configure.in: correct checking for BeOS check
21364
21365         * gdk/gdktypes.h
21366         * gtk/fnmatch.c
21367         * gtk/gtkfilesel.c
21368         * gtk/gtkitemfactory.c
21369         * gtk/gtkmain.[ch]
21370         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
21371
21372 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
21373
21374         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
21375         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
21376         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
21377         by Bulgarian). 
21378
21379 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
21380
21381         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
21382         Fix a reference to window_private->destroyed.   
21383
21384         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
21385         (ugly) setting of an internal GdkWindow member to use
21386         a _slightly_ cleaner macro.
21387
21388         * gdk/gdkprivate.h: Split GdkWindowPrivate into
21389         GdkDrawablePrivate and GdkWindowPrivate.
21390         Add extra macros for accessing GDK_DRAWABLE_ components.
21391
21392         * *.[ch]: Massive adjustments for the above, use the
21393         new macros in a lot of places.
21394
21395 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
21396
21397         * gdk/gdktypes.h: Make GdkDrawable the base type,
21398         not GdkWindow.
21399
21400 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
21401
21402         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
21403
21404 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
21405
21406         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
21407
21408 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
21409
21410         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
21411         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
21412
21413         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
21414
21415         * docs/gtk-config.1: Now autogenerated.
21416         * docs/Changes-1.4.txt: started
21417         
21418 1999-10-03  Tor Lillqvist  <tml@iki.fi>
21419
21420         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
21421         to #ifdef also here.
21422
21423         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
21424         Owen did to the X11 backend.
21425
21426         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
21427         ScrollWindowEx when blitting inside a window, it can't be correct
21428         in the general case.
21429
21430         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
21431         WM_GETMINMAXINFO is easier.
21432
21433         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
21434         depth equal to the bitspixel value, not the visual's depth.
21435
21436         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
21437         to 24 even if the bitspixel value is 32.
21438
21439         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
21440         need to check for depth==32 when bpp==32, depth will always be 24.
21441
21442 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
21443
21444         * docs/Changes-1.4.txt: Started
21445         
21446         * gtk/Makefile.am (gdk_headers): Include all the new headers.
21447
21448         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
21449         
21450         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
21451         into C file.
21452         
21453         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
21454         header to gdkinputprivate.h.
21455
21456         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
21457         unused since before 1.2.
21458
21459 1999-09-30  Tor Lillqvist  <tml@iki.fi>
21460
21461         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
21462         expand possible hex escapes in the font family (put there by
21463         logfont_to_xlfd if the font name isn't a legal XLFD font family,
21464         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
21465         On Win32, add hex escapes here, too.
21466
21467 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
21468
21469         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
21470         to #ifdef GDK_WINDOWING_X11.
21471
21472 [ Merges from gtk-1-2 ]
21473
21474 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
21475
21476         * configure.in: fixed "GNU Make" check to pass with new make version
21477         3.77.95.
21478
21479 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
21480
21481         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
21482         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
21483         AM_PATH_GTK() macros don't get confused by the -pre1.
21484
21485 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
21486
21487         * configure.in (REBUILD): Change check for perl5
21488           to check explicitely for v >= 5.002. (5.001
21489           does not work with our scripts.)
21490
21491 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
21492
21493         * configure.in: evaluate $PERL for the perl version check. added
21494         --disable-rebuilds to give the user an option to completely disable
21495         any source autogeneration rules.
21496
21497 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
21498
21499         * configure.in: evaluate $ac_make when checking for GNU Make.
21500
21501 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
21502
21503         * docs/Makefile.am: added generation.txt.
21504
21505         * Makefile.am: require automake 1.4, build README from README.in and
21506         INSTALL from INSTALL.in in dist-hook.
21507         
21508         * README.in:
21509         * INSTALL.in: new files to autogenerate README and INSTALL from.
21510
21511         * configure.in: figure whether we have GNU Make
21512
21513         * docs/generation.txt: minor additions/corrections.
21514
21515 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
21516
21517         * docs/gtkfaq.sgml: FAQ Update
21518
21519 July 30, 1999 Elliot Lee <sopwith@redhat.com>
21520         
21521         * configure.in: Fix autoconf warnings about cross compilation by
21522         trying to provide sane defaults for AC_TRY_RUN.
21523
21524 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
21525
21526         * ltconfig
21527         * ltmain.sh: upgrade to libtool 1.3.3
21528
21529 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
21530
21531         * INSTALL: Indicate that the --with-glib= configure
21532         time flag is unsupported.
21533
21534 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
21535
21536         * docs/generation.txt: Added a file that gives
21537         documenation about the autogeneration process for
21538         various autogenerated files.
21539         
21540 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
21541
21542         * configure.in (LIBS): Look for libgmodule in the
21543         right location.
21544
21545 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
21546
21547         * docs/gtk_tut.sgml: Removed references to
21548         code examples in my directory on gtk.org as
21549         they should all be in the tutorial now.
21550
21551         * docs/gtk_tut.sgml: Added sources for dial-test
21552         and scribble-xinput programs that were previously
21553         missing.
21554
21555 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
21556
21557         * TODO: Added entry about menu keyboard navigation, removed
21558         some finished items.
21559
21560 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
21561
21562         * acinclude.m4: Standardize on func_dgettext
21563         not func_gettext, so that the checks for dgettext
21564         actually are paid attention to.
21565
21566 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
21567
21568         * configure.in (LIBS): Add $INTLLIBS into $LIBS
21569         directly, rather than repeating the checks for
21570         gettext.
21571
21572         * INSTALL: Added information about gettext and
21573         NLS support.
21574
21575         * acinclude.m4 (LIBM): Check for dgettext, not
21576         just gettext. This should hopefully fix things wrt
21577         systems with old versions of GNU gettext installed.
21578
21579 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
21580
21581         * configure.in (LIBS): Look for libgmodule in the
21582         right location.
21583
21584 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
21585
21586         * autogen.sh: add --enable-maintainer-mode
21587
21588         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
21589
21590 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
21591
21592         * docs/gtk-config.1.in:
21593           docs/Makefile.am:
21594           configure.in: gtk-config is now generated.
21595
21596         * docs/gtk-config.1: Removed, now generated.
21597
21598 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
21599
21600         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
21601         handle CreateNotify itself, still put out a debuging message for
21602         --gdk-debug=events. made the ReparentNotify debugging message more
21603         verbose.
21604         wrap xcoords translation for ConfigureEvents into an error trap,
21605         a destroy event may already be pending, and in that case, the
21606         actuall coordinate values are not at all critical.
21607
21608 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
21609
21610         * gdk/gdkcc.c: Stop leaking the color_hash all over
21611         the place. Simplify and improve the logic.
21612
21613 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
21614
21615         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
21616         for prototypes and function implementations consistent (reported
21617         by Tomas Ogren).
21618
21619 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
21620
21621         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
21622         send_event set in debugging output.
21623         (gdk_compress_exposures): default initialize the event so we don't
21624         operate on bogus values (namely send_event).
21625
21626 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
21627
21628         * gdk/gdkwindow.c: When we receive an unexpected
21629         destroy notify on one of our windows, don't just
21630         warn about it, also mark our windows as destroyed.
21631
21632 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
21633
21634         * gdk/gdkfont.c (gdk_font_hash_insert): Add
21635           name => font and name => fontset hashes. The 
21636           name => fontset hash is a _big_ win since we
21637           weren't previously caching fontsets at all and loading
21638           fontsets is expensive. The name => font hash
21639           is less of a win, but it does save us from doing
21640           repeated XQueryFont calls on the same font.
21641
21642         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
21643           list so we can remove font/fontset from hash.
21644
21645 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
21646
21647         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
21648           and slightly confusing test. [ XInternAtom (,,TRUE)
21649           will never return None ].
21650
21651 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
21652
21653         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
21654           gdk/gdkwindow.c (gdk_window_set_hints):
21655
21656         Don't omit setting the properties if flags == 0 -
21657         there may be an existing set of properties there
21658         already. (Very old bug. Would it be better to
21659         delete the property instead?)
21660
21661         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
21662           spelling error in comment.
21663
21664 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
21665
21666         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
21667           to avoid stomping over gdk_error_warnings.
21668
21669         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
21670           as (bits_per_pixel + 7) / 8. This gives the same
21671           result as before for multiples of 8, but actually
21672           a "reasonable" value for 1bit or 4bit displays.
21673
21674 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
21675
21676         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
21677         GNU Make.
21678
21679 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
21680
21681         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
21682         discarding configure events.
21683
21684 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
21685
21686         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
21687         refcount is greater than zero.
21688
21689         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
21690
21691         * gdk/gdkfont.c (gdk_font_unref): Likewise.
21692
21693         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
21694
21695         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
21696
21697 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
21698
21699         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
21700         that format 32 => sizeof(item) == 4. It really is
21701         sizeof(long).
21702
21703 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
21704
21705         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
21706         core dump at all on X IO errors, only core dump
21707         if --enable-debug for X errors.
21708
21709 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
21710
21711         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
21712         unknown window:" message. disabled ConfigureNotify discarding code,
21713         because it led to events being processed out of order.
21714
21715 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
21716
21717         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
21718
21719         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
21720         we export this function, supress error warnings and don't reset the
21721         error code in the first half of this function.
21722
21723         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
21724         code (instead of just -1) so gdk_error_trap_pop() reveals something
21725         actually informative about the error that happened.
21726
21727         * gdk/*.c:
21728         don't rely on gdk_error_code being -1 if an error occoured, but just
21729         gdk_error_code != 0.
21730
21731 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
21732
21733         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
21734         pointer *before* invoking the filter function, so we at least don't
21735         crash if a filter is removed that is currently executed. window filters
21736         *really* need to be made truely reentrant at some point.
21737
21738 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
21739
21740         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
21741         PropertyNotify debug messages.
21742
21743 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
21744         
21745         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
21746         
21747         * gdk/gdkim.c: Fix cut-and-paste errors for 
21748         x/y and PreeditAttributes/StatusAttributes.
21749
21750 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
21751
21752         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
21753         G_MAXINT to 2^16 to alleviate overflow problems in
21754         various window managers.
21755
21756 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
21757
21758         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
21759         for fontsets.
21760
21761 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
21762
21763         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
21764         Initialize size_hints.x and size_hints.y because kwm
21765         brokenly pays attention to them.
21766         (Bug #1181 -  Lars Heete <hel@admin.de>)
21767
21768 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
21769
21770         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
21771         return value of gdk_list_visuals(). 
21772         (Bug #1193 - Morten Welinder <terra@diku.dk>)
21773
21774 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
21775
21776         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
21777         XSetIMValues to (void *) when comparing to NULL, to workaround
21778         the problem of some compilers barfing since older X headers don't
21779         have the prototype for it.
21780
21781 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
21782
21783         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
21784         for pseudocolor where colormap->colors was double
21785         allocated.
21786
21787         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
21788         color value in the hash table with the pixel filled
21789         in so when we do later hash table lookups, the color
21790         value is correct.
21791         
21792 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
21793
21794         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
21795         making the call
21796
21797 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
21798
21799         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
21800         pointed out by Morten Welinder <terra@diku.dk>.
21801
21802 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
21803
21804         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
21805           default filter from the list
21806
21807 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
21808
21809         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
21810           default filter from the list
21811
21812 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
21813
21814         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
21815
21816         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
21817         g_strdup_printf instead of calcing the length separately
21818
21819 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
21820
21821         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
21822         that we don't do in many other places. (Fixing duplicate 
21823         #include of config.h)
21824
21825         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
21826         Otherwise, #ifndef XINPUT_NONE check in the latter
21827         doesn't work. (Bug #546)
21828
21829 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
21830
21831         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
21832         "None" case insensitive.
21833
21834 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
21835
21836         * gdk/gdkselection.c: 
21837         Add error traps so if the other end of the connection
21838         dies, we survive.
21839
21840 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
21841
21842         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
21843         dest_xid field into two fields - one for the window
21844         to send in messages, one to indicate the last looked
21845         up window for caching purposes. This is needed, so
21846         that Leave messages get the correct window.
21847
21848 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
21849
21850         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
21851         Fix warning created by people mucking around
21852         with the gsource API.
21853
21854         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
21855         Change mapping between GIOCondition and GdkInputCondition
21856         to match the way the Linux kernel does it. This should
21857         fix problems where closed pipes were no longer signalling
21858         GDK_INPUT_READ on systems with a native poll().
21859
21860 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
21861
21862         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
21863         explicitly for the string "None" - it is in the XPM
21864         spec and some servers treat unknown colors in odd ways
21865         (like asking the user!)
21866
21867 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
21868
21869         * gdk/gdkevents.c: made "->" into a "." of previous change so
21870         it compiles
21871
21872 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
21873
21874         * gdk/gdkevents.c (gdk_compress_exposures): Set the
21875         window field of the event structure before calling
21876         user filters.
21877
21878 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
21879
21880         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
21881         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
21882
21883 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
21884
21885         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
21886         intermediate text property - prevents major memory
21887         leak when gdk_use_mb.
21888         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
21889
21890 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
21891
21892         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
21893         gtk-a-higuti-990322-[0-3]
21894
21895         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
21896         sizeof(wchar_t) != sizeof (GdkWChar)
21897
21898         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
21899         that was causing -DX_LOCALE not to work.
21900
21901         * gtk/gtkrc.c (gtk_rc_init):
21902         X_LOCALE will never have LC_MESSAGES defined
21903
21904         * gdk/gdk.c (gdk_init_check):
21905         Remove --xim-preedit and --xim-status from argv properly.
21906
21907         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
21908         that the client window is present on the X server
21909         before we pass it to the input method.
21910
21911 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
21912
21913         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
21914         if --display is specified on the command line, than
21915         the drag window will not be created on that display.
21916         
21917 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
21918
21919         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
21920         lookups with only_if_exists == TRUE were inserting
21921         bogus values into the atom cache.
21922
21923 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
21924
21925         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
21926         then reset it to NULL.
21927
21928         * gdk/gdkcolor.c:
21929         (gdk_colors_free): 
21930         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
21931         key for g_hash_table_remove() in both functions, this prevents us
21932         from accessing possibly uninitialized portions of a GdkColor structure
21933         where we are only interested in its pixel value.
21934
21935 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
21936
21937         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
21938         font hash table, if we have a GdkFontPrivate entry for this font
21939         already, simply increment its reference count, provided by Olaf Dietsche
21940         <olaf.dietsche+list.gtk@netcologne.de>.
21941
21942 1999-09-21  Tor Lillqvist  <tml@iki.fi>
21943
21944         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
21945         just to be sure.
21946
21947         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
21948         unused variables, leftovers from the X11 version.
21949
21950         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
21951
21952         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
21953         downcase fields on X11.
21954
21955 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
21956         
21957         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
21958         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
21959
21960 1999-09-17  Tor Lillqvist  <tml@iki.fi>
21961
21962         * gdk/win32/gdk.def: Add gdk_threads_mutex.
21963
21964         * gtk/makefile.msc: Correct path to libintl.
21965
21966         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
21967         use of gint vs. int, and gint vs. gboolean in headers and
21968         definitions. Use GtkType for the *_get_type functions. Note that
21969         these changes preserve binary compatibility.
21970
21971         * gdk/gdk.c
21972         * gdk/win32/gdk.c
21973         * gdk/gdk.h: Fix inconsistencies: gint vs int.
21974
21975         * gtk/gtkmain.c
21976         * gtk/gtkclist.c
21977         * gtk/gtkmenufactory.c
21978         * gtk/gtknotebook.c
21979         * gtk/gtkwidget.c: Fix inconsistencies, also gint
21980         vs. gboolean.
21981
21982         * gtk/gtkcolorsel.[ch]
21983         * gtk/gtkcombo.[ch]
21984         * gtk/gtkdrawingarea.[ch]
21985         * gtk/gtkgamma.[ch]
21986         * gtk/gtkhandlebox.[ch]
21987         * gtk/gtkhpaned.[ch]
21988         * gtk/gtkhruler.[ch]
21989         * gtk/gtkplug.[ch]
21990         * gtk/gtkpreview.[ch]
21991         * gtk/gtkruler.[ch]
21992         * gtk/gtksocket.[ch]
21993         * gtk/gtkstatusbar.[ch]
21994         * gtk/gtktoolbar.[ch]
21995         * gtk/gtkvbbox.[ch]
21996         * gtk/gtkvpaned.[ch]
21997         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
21998         functions.
21999
22000         * gtk/gtkgamma.h: Fix bug, missing () in call of
22001         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
22002
22003 1999-09-14  Tor Lillqvist  <tml@iki.fi>
22004
22005         * gdk/gdkcolor.c (gdk_colormap_new)
22006         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
22007         colormap->colors was allocated twice.
22008
22009         * gdk/win32/gdk.c: Remove some unused stuff.
22010
22011         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
22012         colormap.
22013
22014         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
22015         * gtk/gtklabel.h (gtk_label_get_type)
22016         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
22017         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
22018         in a couple of places, not guint.
22019
22020 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
22021
22022         * configure.in,po/et.po: added Estonian language file
22023
22024 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
22025
22026         * configure.in,po/da.po: added Danish file
22027
22028 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
22029
22030         * docs/gtkfaq.sgml: Minor FAQ Update
22031
22032 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
22033
22034         * docs/gtkfaq.sgml: FAQ update
22035
22036 1999-08-27  Tor Lillqvist  <tml@iki.fi>
22037
22038         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
22039         way to get window contents continually refreshed while resizing. I
22040         didn't like the effects myself, so it's not on by default.
22041
22042         * gdk/win32/gdkprivate.h: New flag variable
22043         gdk_event_func_from_window_proc, FALSE by default.
22044
22045         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
22046         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
22047         are passed --gdk-event-func-from-window-proc.
22048
22049         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
22050         and we have am event_func, call it instead of enqueing the event.
22051
22052 1999-08-23  Tor Lillqvist  <tml@iki.fi>
22053
22054         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
22055         Kelley: Set expose_count in GdkEventExposes correctly.
22056
22057         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
22058         MULTIPLE_WINDOW_CLASSES).
22059
22060         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
22061         for bug in NT, apparently NT *does* draw the end pixel, too, in
22062         LineTo with a one-pixel pen, so we don't have to do it ourselves.
22063
22064 1999-08-21  Tor Lillqvist  <tml@iki.fi>
22065
22066         Improvements by Hans Breuer: 
22067
22068         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
22069
22070         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
22071         CS_?REDRAW flags as they cause lots of (late) redraws when "show
22072         window contents while dragging" is turned on. Allocate at least
22073         one unique class for every GdkWindowType. If support for single
22074         window-specific icons is ever needed (eg. Dialog specific), every
22075         such window should get its own class.
22076
22077 1999-08-19  Tor Lillqvist  <tml@iki.fi>
22078
22079         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
22080         error that caused crashes.
22081
22082 1999-08-17  Tor Lillqvist  <tml@iki.fi>
22083
22084         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
22085         window, use ScrollWindowEx, and call UpdateWindow. This prevents
22086         bugs when for instance part of the window was outside the
22087         display. Thanks to Philippe Colantoni for finding and fixing this.
22088
22089 1999-08-16  Tor Lillqvist  <tml@iki.fi>
22090
22091         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
22092         endpoint calculations which were totally wrong. (A little RTFMing
22093         helps a lot ;-)
22094
22095         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
22096         from a separate directory, not from gettext, because of licensing
22097         issues (we want to use the LGPL version).
22098
22099         * README.win32: Mention the intl from glibc vs from gettext issue.
22100
22101 1999-08-13  Tor Lillqvist  <tml@iki.fi>
22102
22103         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
22104         in the key event handling: Now AltGr chars work again. Also,
22105         now Alt-digits are passed up as well as Control-digits.
22106         Pass keypad plus and minus as normal plus and minus.
22107
22108 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
22109
22110         * docs/gtkfaq.sgml: FAQ Update
22111
22112 1999-07-25  Tor Lillqvist  <tml@iki.fi>
22113
22114         * README.win32
22115         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
22116         the Wintab SDK.
22117
22118         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
22119         OK, but getting closer. Guard against bogus tilt data from Wacom
22120         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
22121         enable easier building without Wintab.
22122
22123         * gdk/win32/gdkinput.h
22124         * gdk/win32/gdkevents.c 
22125         * gdk/win32/gdkwindow.c: Minor changes related related to above.
22126         
22127         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
22128         code. As we have just one visual on Win32, no sense to have it in a
22129         table, and no need for the hash table.
22130
22131         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
22132         better on white background.
22133
22134 1999-07-21  Tor Lillqvist  <tml@iki.fi>
22135
22136         * README.win32: Update gcc build instructions. Mention gettext is
22137         GPL.
22138
22139         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
22140         supported cursor size with GetSystemMetrics.
22141
22142         * gdk/win32/gdkfont.c
22143         * gtk/gtkfontsel.c: Guard against some font weight and charset
22144         symbols being undefined (in mingw32 headers).
22145
22146         * gdk/win32/makefile.cygwin
22147         * gtk/makefile.cygwin
22148         * gtk/gtkthemes.c: No longer need to have differently named
22149         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
22150
22151 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
22152
22153         * docs/gtkfaq.sgml: Long awaited FAQ update.
22154
22155 1999-07-15  Tor Lillqvist  <tml@iki.fi>
22156
22157         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
22158         it. Obscure bit manipulation needed.
22159
22160         * gdk/win32/gdkevents.c: Logging.
22161         
22162         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
22163         style (file name include compiler name) for theme engines.
22164
22165 1999-07-13  Tor Lillqvist  <tml@iki.fi>
22166
22167         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
22168
22169         * gdk/win32/gdkevents.c: Fix long-standing bug in key
22170         events. The key.string wasn't zero-terminated, still we strdup'ed
22171         it in gdk_event_copy(). Synthesize crossing events for button
22172         events before possible propagation.
22173
22174         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
22175
22176         * gdk/win32/makefile.cygwin
22177         * gtk/makefile.cygwin: Use new DLL naming style for the
22178         GCC-compiled ones.
22179
22180         * gdk/win32/makefile.msc
22181         * gtk/makefile.msc: Cosmetics mostly.
22182
22183         * gtk/gtk.def: Add missing entry points.
22184
22185         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
22186
22187 1999-07-09  Tor Lillqvist  <tml@iki.fi>
22188
22189         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
22190         or height is zero. Don't print a warning if Pie or Arc fails, they
22191         always fail (?) for very narrow ellipses.
22192
22193         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
22194         the part or the destination window corresponding to source area
22195         outside of the source drawable's boundary.
22196
22197         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
22198         anything if less than two points.
22199
22200         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
22201         return NULL. Gtk cut-and-paste inside a single program works
22202         better this way. (It always gets the clipboard contents from
22203         Windows, not from its own copy, which is cleared anyway. I can't
22204         say I fully understand what happens... Emulating the X selection
22205         and property stuff is a bit of a mess.)
22206
22207         * gdk/win32/gdkevents.c
22208         * gdk/win32/gdkproperty.c: A bit more verbose logging.
22209
22210         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
22211         that never got deleted). Revamp gdk_region_shrink.
22212
22213         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
22214         after use.
22215
22216         * gtk/gtk.def: Add some missing entry points.
22217
22218         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
22219         component.
22220
22221 1999-07-04  Tor Lillqvist  <tml@iki.fi>
22222
22223         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
22224         Control-digits specially.
22225
22226 1999-07-03  Tor Lillqvist  <tml@iki.fi>
22227
22228         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
22229
22230 1999-06-28  Tor Lillqvist  <tml@iki.fi>
22231
22232         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
22233         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
22234         finding this.)
22235
22236 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
22237
22238         * gtk+.spec.in: Corrected some typos in files section.
22239         
22240 1999-06-15  Tor Lillqvist  <tml@iki.fi>
22241
22242         * README.win32: Mention using GNU gettext.
22243         * config.h.win32: Enable NLS stuff.
22244         * gtk/makefile.msc: Use GNU gettext.
22245         * gdk/win32/gdkdnd.c: Minor header reorg.
22246         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
22247         cosmetics.
22248         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
22249         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
22250
22251 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
22252
22253         * acinclude.m4
22254         * config.guess
22255         * config.status
22256         * ltconfig
22257         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
22258
22259 1999-05-30  Tor Lillqvist  <tml@iki.fi>
22260
22261         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
22262         SafeAdjustWindowRectEx. Don't override all calls to
22263         AdjustWindowRectEx by it, but use it only in two places: When
22264         creating a new top-level window and when moving a top-level
22265         window.
22266
22267         Use screen coordinate rectangle, not client rectangle, in
22268         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
22269         when we try to place a window so that the decoration (mainly,
22270         title bar) isn't visible.
22271
22272         These changes fix the bug that showed up for instance as the
22273         GIMP's saved top-level windows moving right and down (by an amount
22274         equal to the window decoration) for each session. This bug showed
22275         up also in testgtk's "Saved Position".
22276
22277         gdk_window_resize also redone a bit.
22278
22279 1999-05-25  Tor Lillqvist  <tml@iki.fi>
22280
22281         * gtk/testgtkrc: Add (commented out) Windows-style theme
22282         include line.
22283
22284         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
22285
22286 1999-05-18  Tor Lillqvist  <tml@iki.fi>
22287
22288         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
22289         gdkx.h to a gdk subdirectory, so that applications can include
22290         these with <gdk/*.h> without trouble.
22291
22292         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
22293         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
22294         have their bitmap destroyed.
22295
22296         * gdk/win32/gdk.def: Add gdk_root_parent.
22297
22298 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
22299
22300         * configure.in
22301           gtk-config.in
22302           ltconfig
22303           ltmain.sh     
22304           gtk/Makefile.am: changes to compile nicely (with xlib) 
22305           on BeOS
22306
22307 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
22308
22309         * acinclude.m4
22310         * config.guess
22311         * config.sub
22312         * ltconfig
22313         * ltmain.sh: upgrade to libtool 1.3
22314
22315 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
22316
22317         * gtk/gtkclist.c:
22318         * gtk/gtkctree.c: merges from gtk-1-2
22319
22320 1999-04-25  Tor Lillqvist  <tml@iki.fi>
22321
22322         Support added for building using a GNU toolchain on Win32,
22323         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
22324
22325         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
22326         * config.h.win32: Changes for gcc.
22327         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
22328         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
22329         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
22330         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
22331         Protect shl stuff unavaiilable with mingw32 headers.
22332         * gdk/win32/gdkevents.c: Fix typo.
22333         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
22334         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
22335         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
22336         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
22337         the mingw32 headers.
22338         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
22339         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
22340         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
22341         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
22342         Test for NATIVE_WIN32, not _MSC_VER.
22343         * gtk/gtkmain.c: No use warning about developer version on Win32,
22344         there aren't any non-developer versions anyhow.
22345         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
22346         * gtk/makefile.msc: Use pthread from another directory. Minor other
22347         changes. 
22348
22349 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
22350
22351         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
22352           default filter from the list
22353
22354 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
22355
22356         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
22357          when gtk_widget_grab_default() is called for a widget that
22358          is not within a GtkWindow.
22359
22360 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
22361
22362         * docs/gtk_tut.sgml, examples/clist.c: use a
22363           scrolled window in the clist example. Minor
22364           tutorial fixes.
22365
22366 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
22367
22368         * docs/gtk_tut.sgml: Style check from David King
22369           <dking@youvegotmail.net>
22370
22371 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
22372
22373         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
22374         compile with unknown value of GDK_WINDOWING
22375
22376 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
22377
22378         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
22379         after the rule is fired.
22380         (install-exec-local): Install gdkconfig.h only if the contents are
22381         different from the currently installed gdkconfig.h.
22382
22383 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
22384
22385         * gdk/Makefile.am (configexecincludedir): Rename from 
22386         configincludedir so that gdkconfig.h will be installed 
22387         as part of `make install-exec'. 
22388
22389 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
22390
22391         * acinclude.m4
22392         * config.guess
22393         * config.sub
22394         * ltconfig
22395         * ltmain.sh: upgrade to libtool 1.2f
22396
22397         * autogen.sh: libtool is not required to autogen gtk+
22398
22399         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
22400         needed)
22401
22402 1999-03-18  Tor Lillqvist  <tml@iki.fi>
22403
22404         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
22405         declaring gdk variables exported/imported from the DLL. New image
22406         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
22407         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
22408         GDK_DRAG_PROTO_OLE2.
22409
22410         * gdk/gdk.h: Merge in Win32 version: Two new functions,
22411         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
22412         declared only for the Win32 version, but could be in the X11
22413         version as well. (Needed for a Xlib-less gdk_imlib.)
22414         gdk_color_hash should have only one parameter. Declare
22415         gdk_threads_mutex with GDKVAR.
22416         
22417         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
22418         just one parameter.
22419
22420         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
22421         per pixel, not bits.
22422
22423         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
22424         Fetch bpp (which means bits-per-pixel here) from another place on
22425         Win32. Accept also depth==32 (which we might get on Win32) with
22426         bpp==32.
22427
22428         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
22429         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
22430         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
22431         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
22432         in the backend-dependent directory, not in the common gdk
22433         directory.
22434
22435         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
22436         headers.
22437
22438 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
22439
22440         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
22441         want to use the Gtk+ devel version (which is true, and yes - even i am
22442         currently working with the 1.2.x branch). so everyone reading this, you
22443         probably want to issue
22444         cvs checkout -r glib-1-2 glib
22445         and
22446         cvs checkout -r gtk-1-2 gtk+
22447         as your next two comands.
22448
22449 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
22450
22451         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
22452         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
22453
22454         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
22455         file. strongly deprecated the GTK_HAVE_* macros, we provide
22456         GTK_CHECK_VERSION() for people that need to check for certain
22457         Gtk+ versions.
22458
22459         * gtk/gtkcompat.h: removed this from CVS.
22460         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
22461         idea right from the start, it just didn't seem like that back then.
22462
22463 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
22464
22465         * merges from gtk-1-2:
22466
22467 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
22468
22469         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
22470         item factory class has been created.
22471         (gtk_item_factory_parse_rc): likewise.
22472
22473         * gtk/gtkmenu.c:
22474         keep proper references for old_active_menu_item.
22475         (gtk_menu_reparent): unset the usize of the new parent,
22476         so the menu can sanely be size requested and we don't get nasty screen
22477         artefacts upon next reparentation.
22478         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
22479         enter notify. only synthesize enter notifies if the pointer really is
22480         inside the event window.
22481         (gtk_menu_popdown): use gtk_menu_shell_deselect().
22482         (gtk_menu_popup): move the background setting stuff into
22483         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
22484
22485         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
22486         gtk_menu_shell_select_item() to select the new item.
22487         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
22488         do the right thing for deselection as well.
22489
22490 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
22491
22492         * gtk/gtkwidget.[hc]:
22493         (gtk_widget_accelerators_locked): return whether a widget's accelerators
22494         are locked.
22495
22496         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
22497         existing accelerators if the widget's accelerators are locked.
22498
22499 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
22500
22501         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
22502
22503         * gtk/gtkmenu.c: truely forward key press and key release events to
22504         the menu widget from the toplevel or tearoff window. we can't simply
22505         connect to that, we need to stop further processing of the events as
22506         well.
22507
22508 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
22509
22510         * gtk/gtkmenu.c:
22511         (gtk_menu_key_press): pass event->keyval, event->state to
22512         gtk_accelerator_valid, instead of event->keyval twice.
22513         refuse to install single letter accelerators for menus that use
22514         single letter shortcuts.
22515
22516         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
22517         gtk_menu_ensure_uline_accel_group().
22518
22519         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
22520         which will always return an uline accel group, made
22521         gtk_menu_get_uline_accel_group() return NULL if the group isn't
22522         yet created.
22523
22524 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
22525
22526         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
22527
22528         * gtk/gtkclist.c (gtk_clist_column_title_passive):
22529         Leave button sensitive, trap  button_press, button_release,
22530         motion_notify, enter_notify and leave_notify events instead.
22531         (gtk_clist_column_title_active): disconnect event handler.
22532         (gtk_clist_drag_data_get): fixed memory leak. Reported by
22533         Guillaume Laurent <glaurent@worldnet.fr>
22534
22535 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
22536
22537         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
22538         width/height mixups.
22539
22540         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
22541         if needed.
22542
22543 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
22544
22545         * gtk/testgtk.c (create_item_factory): unref the item factory after
22546         window's destruction.
22547
22548         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
22549         count on the menu shell around the menu item's activation, since the
22550         signal emission may cause menu shell destruction.
22551
22552         * gtk/gtkitemfactory.c:
22553         the previous code leaked one accel group per menu. we use
22554         gtk_menu_get_uline_accel_group() now to fix that, and with that
22555         also create the underline accelerator group of the menus only if
22556         required (i.e. an underline accelerator has been specified).
22557         (gtk_item_factory_construct):
22558         (gtk_item_factory_create_item): removed code that would create an
22559         extra accel group for the menu (and leak references).
22560         (gtk_item_factory_create_item): adapted the underline accelerator
22561         installation code to properly feature gtk_menu_get_uline_accel_group().
22562
22563         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
22564         menu->accel_group, this may return NULL if the accelerator group
22565         hasn't been set yet.
22566         added gtk_menu_get_uline_accel_group() to retrive the underline
22567         accelerator group of the menu, this will be created on demand
22568         and proper care is taken about its reference count.
22569
22570         * gtk/gtkitemfactory.h:
22571         * gtk/gtkitemfactory.c:
22572         dumped the approach of keeping a widgets by action list on the
22573         factory since the factory<->widget destroy negotiation didn't work
22574         and would be hard to get going at all. instead we keep a list of
22575         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
22576         persistant throughout a program's life time).
22577         also, i removed the static const gchar *key_* variables, and made
22578         them inline strings (they weren't actually used anyways).
22579         (gtk_item_factory_add_item): update ifactory->items.
22580         (gtk_item_factory_destroy): destroy ifactory->items (and remove
22581         the item factory pointer from the remaining ifactory widgets).
22582         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
22583         list to find the widget.
22584         (gtk_item_factory_get_item): new function that works around
22585         gtk_item_factory_get_widget() limitations, this function will only
22586         return menu items, even for <Branch> entries.
22587
22588 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
22589
22590         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
22591         font hash table, if we have a GdkFontPrivate entry for this font
22592         already, simply increment its reference count, provided by Olaf Dietsche
22593         <olaf.dietsche+list.gtk@netcologne.de>.
22594
22595         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
22596         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
22597
22598 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
22599
22600         * gtk/gtkcontainer.c:
22601         (gtk_container_add_with_args):
22602         (gtk_container_addv):
22603         (gtk_container_add): before adding a child to a conatiner, make sure
22604         it is (default) constructed, this is neccessary because under certain
22605         circumstances the child will get relized and mapped immediatedly, in
22606         which case it has to be constructed already.
22607
22608 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
22609
22610         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
22611         values > 1 as TRUE also.
22612
22613 1999-03-16  Tor Lillqvist  <tml@iki.fi>
22614
22615         * README.win32: New file.
22616                 
22617         * configure.in: Check for lstat.
22618
22619         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
22620         completeness.
22621
22622         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
22623
22624         * gtk/gtk.def: Removed CRs.
22625
22626         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
22627         ..\gdk\win32).
22628
22629         * gdk/win32/makefile.msc: Correct upwards relative paths.
22630         
22631 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
22632
22633         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
22634           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
22635           it was connecting a void function to expose_event and the int
22636           returning function to the draw signal
22637
22638 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
22639
22640         * configure.in:
22641         Use correct path to libgmodule.la when ref'ing uninstalled copy
22642         of glib.  (Already in stable branch, Bug #417)
22643
22644 1999-03-15  Tor Lillqvist  <tml@iki.fi>
22645
22646         Win32 merge and general portability stuff:
22647                 
22648         * acconfig.h,configure.in: Check for <sys/time.h>.
22649
22650         * gdk/win32: New directory (actually, been there for a while).
22651         
22652         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
22653         NATIVE_WIN32, and use these. Always case fold on Win32. No
22654         backslashed escapes on native Win32.
22655
22656         * gtk/{gtk.def,makefile.msc}: New files.
22657
22658         * gtk/Makefile.am: Add above new files.
22659         
22660         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
22661         instead of <strings.h>.
22662
22663         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
22664         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
22665         <unistd.h> appropriately.
22666
22667         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
22668         Use ABS() (from <glib.h>) instead of abs().
22669         
22670         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
22671         of gtk (and thus glib) headers, so that WIN32 will be
22672         defined. With MS C, include <direct.h> for mkdir prototype.
22673
22674         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
22675         some casts, needed by MS C.
22676
22677         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
22678         implemented).
22679
22680         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
22681         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
22682         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
22683
22684         * gtk/gtkmain.h: Mark variables for export/import on Win32.
22685                 
22686         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
22687         the event is not a hint, or its window is not the slider. Needed
22688         on Win32, at least.
22689
22690         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
22691         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
22692         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
22693         a subdirectory of the Windows directory as gtk system
22694         configuration directory.
22695
22696         * gtk/gtkselection.c: No chunks on Win32.
22697
22698         * gtk/gtksocket.c: Not implemented on Win32.
22699
22700         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
22701
22702         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
22703
22704         * gtk/maketypes.awk: Declare variables with a macro that expands to
22705         necessary export/import magic in the case of Win32.
22706                 
22707         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
22708
22709 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
22710
22711         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
22712         since those were meant only for gdki18n.h.  
22713         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
22714         for widechar tests.
22715         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
22716
22717 1999-03-13  Tor Lillqvist  <tml@iki.fi>
22718
22719         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
22720         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
22721
22722         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
22723         installed) to CFLAGS.
22724
22725         * gdk/Makefile.am: Add rules for gdkconfig.h.
22726
22727         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
22728         APIs.
22729
22730         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
22731         gdkx.h anyway when compiling for X11.
22732         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
22733         general): Merge in Win32 version.
22734         
22735         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
22736         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
22737         expansion (if we don't have HAVE_PWD_H), allow for drive
22738         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
22739         included code from Craig Setera's port to Win32 (the one that uses
22740         X11, and the cygwin dll), even if it probably will be abandoned.
22741
22742         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
22743         the user entered one herself.  This way one can complete *.h and
22744         don't get matches on any .help files, for instance.
22745         
22746 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
22747
22748         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
22749         font hash table, if we have a GdkFontPrivate entry for this font
22750         already, simply increment its reference count, provided by Olaf Dietsche
22751         <olaf.dietsche+list.gtk@netcologne.de>.
22752
22753         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
22754         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
22755
22756 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
22757
22758         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
22759         the number of calls to gdk_draw_point() (and thus to X) by
22760         clipping the points by hand.
22761
22762         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
22763         the clip parameter.
22764         (gtk_handle_box_paint): Only paint the handle if the expose area
22765         intersects it.
22766
22767 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
22768
22769         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
22770
22771 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
22772
22773         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
22774         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
22775
22776 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
22777
22778         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
22779          textmode (O_TEXT) for OS/2 version.
22780
22781 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
22782
22783         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
22784         GtkSpinButton, "input" and "output", to make the output more flexible.
22785         The user has to provide a mapping between adjustment->value and the
22786         output string (and vice versa, if the spin button is editable). 
22787         See testgtk for examples.
22788
22789 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
22790
22791         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
22792         new one.
22793         
22794         * configure.in: set gtk+ version to 1.3.0.