]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
2bc7d408a64c82364a26ebe2fb83a2d72c971cc1
[~andy/gtk] / ChangeLog.pre-2-10
1 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
2         docs/reference/gtk/tmpl/gtkcelleditable.sgml
3                 gtkcelleditable -> GtkCellEditable
4         docs/reference/gtk/tmpl/gtktreesortable.sgml
5                 gtktreesortable -> GtkTreeSortable
6
7 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
8
9         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
10         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
11         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
12         resp.
13
14 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
15
16         * gtk/gtktreeview.c (validate_visible_area): free path
17         at the end
18
19 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
20
21         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
22
23 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
24
25         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
26         to find the clicked node in the tree when tree == NULL
27
28 2001-12-13  Anders Carlsson  <andersca@gnu.org>
29
30         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
31         event->state with the default mod mask. 
32
33 2001-12-12  jacob berkman  <jacob@ximian.com>
34
35         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
36
37 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
38
39         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
40         Reset the existing slave before removing it to give
41         it a chance to commit and emit "preedit_changed" 
42         in case there was still a preedit string.
43
44 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
45         
46         * gtk/gtktextlayout.c: Typo fixes
47         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
48
49         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
50         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
51
52         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
53
54 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
55
56         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
57         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
58
59 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
60
61         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
62         "prepainting" the menu before realizing other than
63         via gtk_style_set_background() - this was broken when
64         we added menu scroll support.
65
66         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
67         window in the expose event -- fixes problem with border
68         flashing during scrolling.
69
70 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
71
72         * gtk/gtksettings.c (gtk_settings_get_property): Support
73         using names/nicks for the gdk_settings values for enum valued
74         types. (#57678, reported by Anders Carlsson)
75
76 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
77
78         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
79         with insert_page_menu.  Code duplication is bad.
80
81         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
82         wrong fix yesterday.
83
84 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
85
86         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
87         modifiers.
88
89 2001-12-12  James Henstridge  <james@daa.com.au>
90
91         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
92         (menu_item)->accel_path first when looking up the accel path.
93
94 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
95
96         * tests/testgtk.c (layout_expose_handler): Only draw
97         for events on the bin window.
98
99 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
100
101         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
102         mnemonics work with notebooks.
103
104 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
105
106         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
107         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
108         Makes some flicker while scrolling go away.
109
110 2001-12-11  Michael Natterer  <mitch@gimp.org>
111
112         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
113         adds alpha to the pixbuf; re-load the saved pixbuf and
114         pixel-by-pixel compare it with the original one.
115
116 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
117
118         * ChangeLog: Fix wrong ChangeLog entry
119         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
120         right corner
121
122 2001-12-10  jacob berkman  <jacob@ximian.com>
123
124         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
125         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
126         (gdk_keyboard_grab): do not grab things if the nograb debug flag
127         is set
128
129         * gdk/gdkinternals.h: 
130         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
131         keyboard / mouse
132
133 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
134
135         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
136         didn't reset the timer.
137
138 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
139
140         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
141
142 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
143
144         * gtk/gtkviewport.c: Add docs.
145
146 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
147
148         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
149         RBTree corruption bug--
150
151 2001-12-10  Anders Carlsson  <andersca@gnu.org>
152
153         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
154         if edited_column is NULL, also grab focus before removing
155         the cell_editable.
156
157 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
158
159         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
160           denominator in the horizontal case just like we do in the vertical
161           case (why I didn't notice that there were two cases the first time
162           around is beyond me:).  Also fix indentation in the vertical case.
163
164 2001-12-09  Anders Carlsson  <andersca@gnu.org>
165
166         * gdk/x11/gdkevents-x11.c: Update xsettings name.
167
168         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
169         gtk-dnd-drag-threshold GtkSetting.
170
171         * gtk/gtksettings.c (gtk_settings_class_init): Add 
172         setting for dnd drag threshold.
173
174 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
175
176         * gtk/gtkcontainer.c: Add docs.
177
178 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
179
180         * gtk/gtkwidget.c: Doc markup fix. 
181
182         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
183
184         * gtk/gtktreestore.c: Typo fixes. (#66445)
185
186         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
187
188         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
189         to gtk_clipboard_set_with_owner(). (#66424)
190  
191 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
192
193         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
194         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
195         Fabrice Bellet <fabrice@gnu.org>, #54127).
196
197 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
198
199         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
200         of places, so that people with crashy trees can just run their
201         program with GTK_DEBUG=TREE.
202
203 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
204
205         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
206         per jrb's request
207
208 2001-12-08  Anders Carlsson  <andersca@gnu.org>
209
210         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
211         since then the default GtkLayout expose handler won't be called.
212
213 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
214
215         * gtk/gtktreeview.c (validate_rows_handler): remove
216         g_return_if_fail.
217
218         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
219         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
220         empty model.
221
222 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
223
224         * gtk/gtktreeview.c (validate_visible_area): get logic right,
225         #66249
226
227         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
228         removing a node ended up with a corrupt tree.  Really really nasty
229         bug.
230         (_gtk_rbtree_debug_spew): new debug helper function
231         (_fixup_validation): new inline function to clean up code
232         readability a lot. 
233
234 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
235
236         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
237         Close comment.
238
239 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
240
241         * gtk/gtkstyle.h: Typo fixes.
242
243         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
244
245         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
246
247 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
248
249         * modules/input/gtkimcontextxim.c: Display the XIM
250         status callbacks with a popup window. (Patch from
251         HideToshi Tajima, #50628, somewhat modified.)
252
253 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
254
255         * gtk/Makefile.am: each source generation rule needs to use its own
256         temporary file, to avoid clashes for parallel builds. fixed rules
257         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
258
259 2001-12-07  Havoc Pennington  <hp@pobox.com>
260
261         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
262         "cursors that are actually useful" in gdk_cursor_new() docs
263
264 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
265
266         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
267         in computing the size of the second child.
268
269 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
270
271         * gtk/gtkrange.c: Make button 1 clicks on the trough
272         do pages, button 3 steps. (Patch from Hans Breuer
273         #63735)
274
275 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
276
277         * gtk/gtklabel.c: Fix docs. (#66383)
278
279         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
280         (#66278, #66280)
281         
282         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
283         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
284
285         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
286         Don't emit a g_warning() about being deprecated. (#66208)       
287
288         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
289
290         * gtk/gtkcontainer.c: Doc fixes.
291         
292         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
293
294         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
295
296 2001-12-05  Sven Neumann  <sven@gimp.org>
297
298         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
299
300         * gtk/queryimmodules.c: g_dir_read_name() returns const.
301
302 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
303
304         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
305         #66225
306         
307 2001-12-04  Manish Singh  <yosh@gimp.org>
308
309         * gtk/gtkmain.c
310         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
311         a gpointer.
312
313         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
314         correction to docs.
315
316         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
317
318 2001-12-04  Havoc Pennington  <hp@redhat.com>
319
320         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
321         g_assert_not_reached() that was bogus, since we demand-create the
322         tag info. reported by Chris Phelps
323
324         Jump through assorted hoops to fix bug from Chris Phelps where 
325         removing tags from the table resulted in btree trying to 
326         access tag->table
327         
328         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
329         ourselves to the tag table
330
331         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
332         (_gtk_text_tag_table_remove_buffer): private cruft to 
333         let us notify buffer of disappearing tags
334
335         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
336         header, put it in tagprivate    
337
338         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
339         tag_removed; it's emitted too late.
340         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
341         this
342
343         Padding for ABI-compat expansion
344         
345         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
346         (struct _GtkTextAppearance): one pad in here too
347
348         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
349
350         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
351         since action signals etc. seem pretty likely
352
353         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
354
355         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
356
357         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
358
359 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
360
361         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
362
363         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
364
365         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
366
367 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
368
369         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
370         #62084.
371
372 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
373
374         * demos/gtk-demo/main.c: (create_tree): Minor fix.
375
376         * docs/tree-column-sizing.txt: Update
377
378         * gtk/gtkrbtree.[ch]: Massive work to support validation.
379
380         * gtk/gtktreemodel.c: Doc fixes.
381
382         * gtk/gtktreeview.c: Incremental reflow added.
383         * gtk/gtktreeviewcolumn.c: ditto
384         * gtk/gtktreeviewcolumn.h: ditto
385
386 2001-12-04  Havoc Pennington  <hp@redhat.com>
387         
388         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
389         "invisible" property, #65999
390
391 2001-12-04  Matt Wilson  <msw@redhat.com>
392
393         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
394
395 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
396
397         * gtk/gtksettings.c (gtk_settings_set_property_value):
398         Simplify, make more efficient and fix memory leak
399         when turning quark into a string. (#66103, HideToshi
400         Tajima)
401
402         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
403         init() and unref priv->tooltips in destroy rather
404         than calling gtk_object_destroy() which has no
405         effect on memory management. (#66104, HideToshi
406         Tajima)
407
408         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
409         so we free the when the object is freed. (Fixes memory
410         leak, #66096, HideToshi Tajima)
411
412         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
413         a full GdkEvent structure to avoid reads of uninitialized/
414         invalid memory in gdk_event_put() (#65877, patch
415         from Hidetoshi Tajima)
416
417 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
418
419         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
420         toggle-size-request doesn't take a requisition.
421
422         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
423         reference to marshaler that no longer exists.
424
425 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
426
427         Patch from Bill Haneman (with many modifications) to make
428         the focus color work on dark themes and to make the
429         focus line width configurable. (#61079, #63074)
430
431         * gtk/gtkwidget.c: Add style properties, 
432         ::focus-widget, ::focus-line-width, and ::focus-padding.
433
434         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
435         state argument as well so we can use fg[STATE] to
436         draw instead of always drawing with black. 
437         Cange paint_focus() to respect GtkWidget::focus-width
438         and GtkWidget::focus-line-pattern. Fix continuity
439         problem where the default 1-1 stipple had a blob
440         in one corner and a gap in the other. Change the
441         interpretation of x/y/width/height to be the bounding
442         box of the focus rect instead of the rectangle
443         passed to gdk_draw_rectangle.
444
445         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
446         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
447         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
448         and ::focus-line-padding.
449
450         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
451         and remove duplicated code; fix drawing of focus rectangle
452         when interior-focus = FALSE. (#63072, #63073)
453
454         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
455         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
456         Range and TreeViewColumn will need more extensive fixing.
457
458         * gtk/gtkcolorsel.c: Honor focus line attributes when
459         drawing the focus on the color swatches. (#63071)
460
461         * gtk/gtkhsv.c: Honor focus line attributes when
462         drawing the focus for the ring and triangle.
463
464         * docs/widget_geometry.txt: Start at documenting how 
465         various widgets are drawn.
466
467         * gtk/gtkbutton.c (_gtk_button_paint): Export 
468         _gtk_button_paint() librarywide, so we don't have 
469         duplicate a bunch of code in gtktogglebutton.c.
470
471         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
472
473 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
474
475         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
476         NONE:POINTER.
477
478 2001-12-03  Alex Larsson  <alexl@redhat.com>
479
480         * gtk/gtkaccellabel.c:
481         * gtk/gtkarrow.c:
482         * gtk/gtkcolorsel.c:
483         * gtk/gtkcontainer.c:
484         * gtk/gtklabel.c:
485         * gtk/gtktextview.c:
486         * gtk/gtktogglebutton.c:
487         * gtk/gtktreeview.c:
488         * gtk/gtkwindow.c:
489         Return FALSE from expose handlers.
490
491 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
492
493         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
494         we use pointers, we should free the previous pointer first (if
495         it exists), before we set a new pointer. (#64726)
496
497         * gtk/gtktreeprivate.h: get rid of cursor_drag
498
499         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
500         for cursor_drag
501         (gtk_tree_view_bin_expose): don't directly return in the while
502         loop
503         (gtk_tree_view_class_init): indentend expanders by default
504         (gtk_tree_view_header_focus): only give the button focus
505         if it's clickable, visible and the column is reorderable
506         (#65539)
507
508         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
509         create and free cursor
510
511 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
512
513         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
514         some bugs with size requisition. (From Bill Haneman)
515
516         * gtk/gtkcalendar.c: Draw headers and selection in 
517         base/text[SELECTED] instead of fg/bg[SELECTED].
518
519         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
520         code and formatting.
521
522 2001-12-03  Havoc Pennington  <hp@pobox.com>
523
524         * gtk/gtktextview.c (set_window_height): 
525         (set_window_width): Hmm, setter functions normally assign the new
526         value to the object field. Reported by Chris Phelps.
527
528 2001-11-30  jacob berkman  <jacob@ximian.com>
529
530         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
531         signal id to 0 after we disconnect from it
532
533 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
534
535         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
536         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
537         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
538         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
539
540         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
541         GTK_DISABLE_DEPRECATED.
542
543         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
544         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
545
546 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
547
548         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
549         move/resize code, removing various bad, non-functional
550         hacks. (Fixes #65048, reported by Damon Chaplin.)
551
552 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
553
554         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
555         bad match error when target drawable is not the 
556         same depth as the root window. (#65841)
557
558         * HACKING: Update.
559
560 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
561
562         * gdk/gdkwindow.c: Typo fix.
563
564 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
565
566         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
567         empty menu items to behave like insensitive items (#59456)
568
569         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
570         next item if the first item in the menu is a tear off item
571         (#59456-2, suggestion by Matthias Clasen)
572
573         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
574         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
575         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
576         (gtk_real_menu_shell_activate_current): add check, so empty
577         menu items behave like insensitive items (#59456)
578         
579         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
580         the checks more readable ...
581         
582         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
583         (gtk_menu_shell_button_release): causes the menu to dropdown if the
584         caption is clicked again (#64977)
585
586 2001-11-29  Havoc Pennington  <hp@redhat.com>
587
588         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
589         assertion here that we were at the end iterator was not correct;
590         change code to move us to the end iterator. bug #65731
591
592 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
593
594         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
595         improper use of g_locale_to_utf8() to convert from
596         latin-1, and do it the easy way by building the string
597         correctly in the first place.
598
599 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
600
601         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
602         Convert atoms to and from atoms for properties of type XA_ATOM.
603         (#65555, patch from Hidetoshi Tajima)
604
605 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
606
607         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
608         to avoid problems with Objective C.
609
610 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
611         
612         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
613
614         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
615         Fix docs. (#65505)
616
617         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
618
619 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
620
621         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
622         accounting of menu->tearoff_scrollbar width to here
623         and make sure we have the correct requisition.
624
625         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
626         by using gtk_window_move().
627
628         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
629         the requisition to be updated by calling
630         gtk_widget_size_request() (#65440)
631
632         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
633         queue resize before calling gtk_menu_set_tearoff_state().
634
635 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
636
637         * demos/gtk-demo/editable_cells.c: fix typo
638
639         * demos/gtk-demo/list_store.c (add_columns): remove call to
640         gtk_tree_view_column_set_clickable which didn't make sense
641
642 2001-11-28  Havoc Pennington  <hp@redhat.com>
643
644         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
645         explaining the validation error in front of the G_BREAKPOINT
646
647         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
648         process updates with include_children = FALSE instead of TRUE, so
649         we redraw the range only, not the whole darn window.  Making
650         GtkRange a NO_WINDOW widget had weirdly caused the text widget
651         Trace/breakpoint trap bug to become much easier to trigger.
652
653 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
654
655         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
656         to gdkcursors.h.
657
658 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
659
660         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
661
662         * gdk/gdkcursor.h: Directly include the contents
663         of gdkcursors.h in the GdkCursorType enum.
664
665         * gdk/gdkcursors.h: Deleted.
666
667         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
668         header boilerplate.
669
670         * gdk/Makefile.am: Remove the X-derived-headers rule.
671
672 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
673
674         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
675         Notify on the ::active property _here_, not in
676         gtk_check_menu_item_set_active.
677
678 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
679
680         * gtk/gtkcellrendererpixbuf.c
681         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
682         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
683
684 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
685
686         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
687         comment about what is going on in this file.
688
689         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
690         x/y problem.
691
692 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
693
694         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
695         Calculate size based on the _child_ of the menu item,
696         not the menuitem. (#65005, Damon Chaplin)
697
698         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
699         some extra vertical padding to the label widget ... restores
700         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
701
702 2001-11-26  Tor Lillqvist  <tml@iki.fi>
703
704         * demos/pixbuf-demo.c
705         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
706
707         * demos/gtk-demo/main.c (read_line): No flockfile() or
708         getc_unlocked() on Win32.
709
710 2001-11-25  Tor Lillqvist  <tml@iki.fi>
711
712         * configure.in
713         * acconfig.h: As we now use GDir, no need to check for dirent.h.
714
715 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
716
717         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
718         when finished (#65266)
719
720 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
721
722         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
723         data after we set the property. (#65264)
724
725 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
726
727         * gtk/gtkbutton.c: add destroy method so label_text gets freed
728         if it has been allocated (#65268)
729
730 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
731
732         * gdk/linux-fb/gdkdrawable-fb2.c
733         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
734
735         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
736
737         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
738         set_family
739         
740         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
741
742 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
743
744         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
745         deactivate menu when menu_item isn't sensitive (#61389)
746
747 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
748
749         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
750         we return (in case of a failure here)
751
752 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
753
754         * gtk/gtknotebook.c: Handle events in windows other
755         than widget->event_window properly. (#65079, reported
756         by Damon Chaplin)
757
758         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
759
760 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
761
762         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
763         the image at the top. (#65020, request from Seth Nickell)
764
765 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
766
767         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
768         arithmetic that was resulting in rows being drawn too low.
769         (#65001, reported by Damon Chaplin)
770
771 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
772
773         * gtk/gtkrange.c (gtk_range_button_press): Offset 
774         invalidated range correctly.
775
776         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
777         of title window. (#65001, reported by Damon Chaplin)
778
779         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
780         horrible hack with use of ::event_after.
781
782 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
783
784         * Version 1.3.11
785
786         * configure.in (ATK_REQUIRED_VERSION): Require
787         GLib-1.3.11, Pango-0.22, ATK-0.7.
788
789         * tests/prop-editor.c (property_widget): Restore
790         to working as well as it did before.
791
792         * gtk/gtklistitem.h: Mark deprecated since it is
793         an integral part of GtkList.
794
795         * demos/gtk-demo/demo-common.h: New header file,
796         for a common functions not important to the meat
797         of the demos.
798         
799         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
800         function to search for a file used by the demo.
801
802         * demos/*.c: Use demo_find_file.
803
804 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
805
806         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
807         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
808         fixes already mentioned in ChangeLog entry on 2001-11-14.
809
810         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
811
812 2001-11-23  Hans Breuer  <hans@breuer.org>
813
814         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
815         reflect Pango API change
816
817         * gtk/gtk.def : updated externals
818
819         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
820         g_return_val_if_fail() to avoid 'function must return a value'
821
822         * gtk/gtkrc.c : added spaces to fix small coding style issues
823         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
824         'static correctness'
825
826         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
827         because they only can be build on win32 after applying my patch
828
829 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
830
831         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
832         children, in order for the input pnly window to stay *above*
833         children.
834
835 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
836
837         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
838         type walks againts G_TYPE_FUNDAMENTAL_MAX.
839         
840         * tests/prop-editor.c: disable type hackery.
841
842 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
843
844         * gdk/gdkimage.c (gdk_image_get): Fix problem with
845         lost parameter.
846
847 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
848
849         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
850         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
851         trailing commas in enum declarations.
852
853 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
854
855         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
856         interface, binary age 0.
857
858         * NEWS: Updates
859
860         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
861         fixes in docs.
862
863         * gtk/gtkmain.h: Remove unused and misnamespaced
864         get_gtk_win32_directory() prototype.
865
866         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
867         to match header.
868
869         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
870         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
871         to match docs.
872
873         * gdk/gdkevents.c (gdk_event_get_coords)
874           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
875           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
876         Fix parameter names in docs.
877         
878         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
879         (#64961, Akira Tagoh)
880
881 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
882
883         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
884
885         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
886
887         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
888
889         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
890         back to gtk_accel_groups_from_object(), change @acceleratable
891         parameter to gtk_accel_groups_activate() accordingly.
892
893         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
894         left-over comment about quark return.
895
896         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
897
898         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
899         (Patch from Matt Wilson)
900
901         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
902         object is finalized.
903
904 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
905
906         * applied patch from owen to get rid of accel map notifiers.
907         changed things to fix reentrancy and API as discussed on gtk-devel.
908
909         * gtk/gtkaccelgroup.[hc]:
910         (gtk_accel_group_finalize): unregister this accel group from all
911         accel map paths.
912         (accel_closure_invalidate): handle invalidation of closures by
913         disconnecting their accelerators.
914         (quick_accel_add): move closure connection and changed notification
915         into this function to reduce code duplication. don't emit change
916         notification on closurers without accelerators.
917         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
918         for a GtkAccelGroupEntry.
919         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
920         (gtk_accel_group_connect_by_path): new function to add accelerators
921         with an accel path.
922         (gtk_accel_group_disconnect_closure): new function, disconnect a
923         closure from of an accel group.
924         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
925         accel_mods pair and remove them.
926         (_gtk_accel_group_reconnect): new function that basically does
927         gtk_accel_group_disconnect_closure() and
928         gtk_accel_group_connect_by_path() once an accel path changed.
929         (gtk_accel_groups_disconnect_closure): remove this, there's
930         gtk_accel_group_disconnect_closure().
931         
932         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
933         nuke notifiers.
934         (_gtk_accel_path_is_valid): make this non-static for
935         gtkwidget.c and gtkaccelgroup.c assertions.
936         (gtk_accel_map_add_notifer): removed this function.
937         (gtk_accel_map_remove_notifer): same.
938         (_gtk_accel_map_add_group):
939         (_gtk_accel_map_remove_group): (un-)register accel groups, with
940         accel paths for correct propagation.
941         (gtk_accel_map_add_entry): return void.
942         (gtk_accel_map_lookup): return gboolean instead of GQuark.
943         
944         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
945         set accel_path on widgets.
946         
947         * gtk/gtkwidget.[hc]:
948         (accel_path_changed): got rid of this, changes are handled by
949         accel maps internally now.
950         (_gtk_widget_set_accel_path): get things to work without notifiers.
951         (gtk_widget_list_accel_closures): list accel closures of a widget.
952         
953         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
954
955 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
956
957         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
958
959 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
960
961         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
962         replace gboolean free_last in the function parameters with
963         gint depth. Changes to reflect new situation.
964
965         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
966         replace gboolean free_last, with gint depth, add gint current_depth.
967         Changes to reflect new situation.
968
969         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
970         to reflect new situation
971
972         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
973
974 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
975
976         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
977         where notebook gap was double shifted by allocation.x/y
978
979         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
980         to unmap children.
981
982 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
983
984         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
985         allocation to be relative to paned->allocation, now
986         that this is a NO_WINDOW widget.
987         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
988
989         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
990         needs to be a boxed property.
991
992 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
993
994         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
995         Use the widget's state when drawing the indicator, as
996         in GtkCheckButton. This gives us color changes for
997         un-prelighted checkbuttons. (#63308, Matt Wilson)
998
999 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
1000
1001         (Fixes related to #64428, Michael Meeks)
1002
1003         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
1004         widget, so it gets mapped again properly when we
1005         add to a parent.
1006
1007         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1008         plug->socket_window. 
1009
1010         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
1011         socket_window to NULL, not FALSE.
1012
1013         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1014         socket->same_app to TRUE. (#64612)
1015
1016 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
1017
1018         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
1019         gtk_fixed_set/get_has_window() to remove criticism
1020         about GTK_WIDGET_SET_FLAGS() hacks.
1021
1022 2001-11-19  Michael Natterer  <mitch@gimp.org>
1023
1024         * gtk/gtknotebook.c: show notebook->event_window with
1025         gdk_window_show_unraised(), so it doesn't catch the events which
1026         should go to the tab widgets first.
1027
1028 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
1029
1030         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
1031         "resizable" property, to get rid of the
1032         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
1033         (gtk_tree_view_column_set_resizable): New function to set resizable.
1034         (gtk_tree_view_column_set_resizable): getter.
1035
1036         * tests/testtreecolumns.c (add_clicked): modify for above change.
1037
1038         * Makefile.am (install-data-hook): remove old .pc files before
1039         installing the new one.  We used to symlink this, and it will
1040         break old installs.
1041
1042 2001-11-19  Havoc Pennington  <hp@pobox.com>
1043
1044         * tests/testtext.c (fill_example_buffer): put in a test for
1045         negative indentation values
1046
1047 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
1048
1049         * gtk/gtklabel.c (gtk_label_init): Change default for
1050         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
1051         labels are most often wrapped labels, this gives better
1052         compatibility with GTK+-1.2, where justification was
1053         ignored for wrapped labesl and is a more sensible
1054         default in any case. (#64489)
1055
1056         * gtk/gtklabel.c (gtk_label_class_init): Fix default
1057         for wrap property to FALSE.
1058
1059 2001-11-19  jacob berkman  <jacob@ximian.com>
1060
1061         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
1062
1063 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
1064
1065         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
1066         RevertToParent, not RevertToNone. (#64613, 
1067         Matthias Clasen)
1068
1069 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
1070
1071         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
1072         and label_yalign need to be float properties to
1073         correspond to GTK+-1.2, to gtk_frame_set_label_align,
1074         and to the types of the xalign and yalign properties of GtkMisc.
1075         (#63484, Vitaly Tishkov)
1076
1077 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
1078
1079         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
1080         of plug_added vfunc. (#64408, Jeff Franks)
1081
1082 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
1083
1084         * configure.in (deps): Undef HAVE_STDLIB_H before
1085         checking for jpeg, because jconfig.h has this
1086         in it too (%#$@!). Fix from Matthias Clasen, #64500.
1087
1088 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
1089
1090         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
1091         memory leak when retrieving atom names. (Michael Meeks,
1092         #64508)
1093
1094 2001-11-18  Alex Larsson  <alexl@redhat.com>
1095
1096         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
1097         Update to new Pango API.
1098         
1099 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
1100
1101         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
1102         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
1103         GTK_OBJECT_DESTROYED() check macro.
1104
1105         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
1106         instances of GTK_OBJECT_DESTROYED() that weren't
1107         needed any more.
1108
1109         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
1110         for a connection to ::destroy.
1111
1112 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
1113
1114         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
1115         have been since the beginning, but as special hack,
1116         allow clearing the NO_WINDOW flag to get a window widget.
1117
1118 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
1119
1120         * gtk/gtktreestore.c: return TRUE when value changed, so
1121         row_changed is being emitted
1122
1123 2001-11-18  Hans Breuer  <hans@breuer.org>
1124
1125         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
1126         no label without op, even if it's a no-op.
1127
1128         * gtk/gtk.def :
1129         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
1130
1131         * config.h.win32.in : remove definition of HAVE_DIRENT_H
1132         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
1133         required anymore, replace it.
1134         * gtk/queryimmodules.c : DIR -> GDir replacement, also
1135         getcwd() -> g_get_current_dir()
1136
1137         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
1138         Even 'noisy laugh' scolling appears to work, though I still can't
1139         claim to have fully understood what it is supposed to do ...
1140
1141 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
1142
1143         * gtk/gtkenums.h: Include glib-object.h instead of
1144         gobject/gsignal.h
1145
1146         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
1147           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
1148         argument to the window_at_pointer() field of
1149         GdkPointerHooks. (Patch from Erwann Chenede)
1150
1151         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
1152         to 6 pointers.
1153
1154 2001-11-17  Matt Wilson  <msw@redhat.com>
1155
1156         * gtk/gtkenums.h: must include glib-object.h only
1157
1158 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
1159
1160         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
1161         key bindings in order of visibility - mnemonics, then 
1162         accelerators, then send key to the focus widget, then
1163         bindings on the GtkWindow.
1164
1165         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
1166         Removed the xoffset, yoffset fields of GtkLayout which were
1167         identically zero for compat with 1.2, but were no longer 
1168         compatible with all uses of these fields in 1.2.
1169
1170         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
1171         unused variable.
1172
1173 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
1174
1175         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
1176         We no longer need to create the signals here ... they
1177         come from the interface.
1178
1179         * gtk/maketypes.awk: Use GType, not GtkType in output.
1180
1181         * gtk/gtktypeutils.h: Mark virtually all of this
1182         file deprecated.
1183
1184         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
1185         the only use of this function is the GtkArg using
1186         GtkCallbackMarshal, since destroy notification is
1187         silly here.
1188
1189 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
1190
1191         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
1192         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
1193         only for compatibility with GTK+-1.2; and deprecate it; 
1194         put all marshalers we actually use into gtkmarshalers.list 
1195         and use the _gtk_marshal_ prefix for these marshalers.
1196
1197 2001-11-17  Murray Cumming  <murrayc@usa.net>
1198
1199         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
1200         The first parameters of the signals are now registered as
1201         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
1202         
1203 2001-11-17  Tor Lillqvist  <tml@iki.fi>
1204
1205         * gtk-zip.sh.in: Build separate runtime and developer
1206         packages.
1207
1208         * gtk/gtk.def: Reflect recent accelerator-related changes.
1209
1210 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
1211
1212         * gtk/gtkwindow.c (gtk_window_set_default): Move 
1213         notification of "has_default" to here, so it
1214         is safe to call gtk_window_set_default() instead
1215         of gtk_widget_grab_default().
1216
1217         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
1218         gtk_widget_grab_focus(), which then calls 
1219         _gtk_widget_internal_set_focus(). This makes 
1220         gtk_window_set_focus() a safe way of both setting
1221         and unsetting the focus widget.
1222
1223         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
1224         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
1225         to find the toplevel.
1226
1227         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
1228         from the "internal functions" section.
1229
1230 2001-11-16  jacob berkman  <jacob@ximian.com>
1231
1232         * tests/testgtk.c (create_radio_buttons): add some no-indicator
1233         radio buttons
1234
1235         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
1236         initially active, also initially be depressed
1237         (gtk_radio_button_clicked): also update our depressed state
1238
1239 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
1240
1241         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
1242         key press events not just to focus/window but also to
1243         intermediate widgets.
1244
1245         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
1246         to switch pages. (Needs some work on handling focus
1247         when switching pages.)
1248
1249 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
1250
1251         * gtk/gtknotebook.c: Fix child allocations to be relative to 
1252         widget position and some drawing bugs.
1253
1254         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
1255         with reading uninitialized variable.
1256
1257 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
1258
1259         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
1260         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
1261         NO_WINDOW widgets.
1262
1263         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
1264         cleanup.
1265
1266         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
1267         we are drawing in a window when drawing the paned handle.
1268
1269 2001-11-16  Sven Neumann  <sven@gimp.org>
1270
1271         * demos/gtk-demo/appwindow.c
1272         * demos/gtk-demo/menus.c: reduce compiler warnings
1273
1274 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
1275
1276         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
1277         unused callback to make things compile with 
1278         gtk_tree_view_path_at_pos_change().
1279
1280 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
1281
1282         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
1283
1284 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
1285
1286         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
1287  
1288 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
1289
1290         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
1291         to get a GdkWindow to compare event->window to.
1292
1293         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
1294         the signal for lateral motion too, #64361
1295
1296         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
1297         arg as it is useless, #64137
1298
1299 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
1300
1301         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
1302
1303 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
1304  
1305         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
1306         gdk_window_invalidate_maybe_recurse() for recursion.
1307         (Soeren Sandmann)
1308
1309         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
1310  
1311         * gtk/gtkcontainer.c (gtk_container_expose): Call
1312         gtk_container_forall() not _foreach() to propagate,
1313         since we need to propagate exposes to internal children
1314         as well.
1315
1316         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
1317         Remove the restriction of only being able to call these
1318         on window widgets, since we have lots of NO_WINDOW widgets
1319         with windows now; for add events, recurse over the children
1320         of widget->window to find one owned by the widget.
1321
1322         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
1323         window to catch events.
1324
1325         * gtk/gtktogglebutton.[ch]: Remove the code for switching
1326         between NO_WINDOW and WINDOW widgets based on the mode.
1327
1328         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
1329         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
1330
1331         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
1332
1333         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
1334         change for range.
1335
1336         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
1337  
1338         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
1339
1340 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
1341
1342         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
1343         "message_type" and "buttons" CONSTRUCT properties. (#64069)
1344
1345         * tests/testsocket.c: Expand tests to add a "local passive
1346         child" (Test case for #64428)
1347
1348 2001-11-14  jacob berkman  <jacob@ximian.com>
1349
1350         * gtk/gtkgamma.c (button_clicked_callback): create the label with
1351         a mnemonic
1352
1353 2001-11-15  Sven Neumann  <sven@gimp.org>
1354
1355         * tests/testgtk.c: make it compile without warnings.
1356
1357 2001-11-14  Alex Larsson  <alexl@redhat.com>
1358
1359         * gtk/gtklabel.c:
1360         Don't recalculate the layout on each gkt_label_ensure_layout () for
1361         wrapped labels.
1362
1363 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
1364
1365         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
1366         the currently selected column when we get the column, #64380
1367
1368         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
1369         to cancel CellRendererText editting, #63613
1370
1371         * gtk/gtkcellrenderertext.c: ditto
1372
1373         * gtk/gtkcellrenderertext.h: formatting changes
1374
1375 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
1376
1377         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
1378
1379         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
1380
1381         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
1382
1383         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
1384
1385         * gtk/gtklabel.c: Documentation fixes (#64452)
1386
1387 2001-11-14  Daniel Egger  <degger@fhm.edu>
1388
1389         * gdk-pixbuf/io-xpm.c: 
1390         (xpm_skip_whitespaces): Remove unused static function.
1391         (xpm_skip_string): Dito.        
1392         (xpm_extract_color): Declare const variable const to avoid warnings. 
1393
1394         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
1395         
1396         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
1397         
1398         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
1399         a long.
1400
1401 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
1402
1403         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
1404         out accidental commit of debugging timing code.
1405
1406 2001-11-14  Havoc Pennington  <hp@redhat.com>
1407
1408         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
1409         it doesn't move to a new line each time you press it
1410
1411         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
1412         return value, #62987
1413
1414 2001-11-14  Havoc Pennington  <hp@redhat.com>
1415
1416         * tests/testtextbuffer.c (main): bulk of the tests were commented
1417         out, oops.
1418
1419         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
1420         function work, should resolve #63426
1421         (gtk_text_iter_ends_line): return TRUE for the end iterator
1422
1423         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
1424         a couple things that might get cached in here.
1425
1426 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
1427
1428         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
1429         "model" construct property for language bindings.
1430
1431         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
1432         function to let you set the column types of a GtkTreeStore for
1433         language bindings.
1434
1435         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
1436
1437 2001-11-13  Havoc Pennington  <hp@redhat.com>
1438
1439         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
1440         including reference to bugzilla bug about how we should have 
1441         a better way of positioning children
1442
1443         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
1444
1445         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
1446         size to side rects if they don't exist, #63438
1447
1448 2001-11-13  Havoc Pennington  <hp@redhat.com>
1449
1450         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
1451         properly replace selection with Return or Tab
1452
1453         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
1454         that didn't locate the end of the line correctly, should fix #63800
1455
1456 2001-11-13  Havoc Pennington  <hp@redhat.com>
1457
1458         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
1459         to requisition, request non-anchored children
1460         (gtk_text_view_size_allocate): handle border width, allocate
1461         non-anchored children
1462         (text_view_child_new_window): set the child as object data
1463         (gtk_text_view_move_child): allow children at negative
1464         coordinates, no reason why not
1465         (gtk_text_view_forall): make it copy the list of children before
1466         walking it, to avoid reentrancy issues  
1467         (gtk_text_view_move_child): short-circuit if position is unchanged
1468         (changed_handler): only queue_resize if requisition has changed
1469         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
1470         a better job of invalidation ourselves
1471
1472         * tests/testtext.c: add tests for the fixed-position children
1473
1474 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
1475
1476         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
1477         with gdk threads macro.
1478
1479 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
1480
1481         * gtk/maketypes.awk: fix type utils generation on unix.
1482
1483         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
1484         registry.
1485
1486         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
1487         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
1488         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
1489         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
1490         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
1491         introduced ::accel_changed signal for change notification, and
1492         gtk_accel_group_connect/disconnect to connect closures to accel groups.
1493         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
1494         functions.
1495         deprecated gtk_accel_group_ref/unref.
1496
1497         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
1498         to accel group changed notification and basically operate on closures.
1499         removed gtk_accel_label_get_accel_object and
1500         gtk_accel_label_set_accel_object.
1501         introduced gtk_accel_label_set_accel_closure, and for convenience,
1502         gtk_accel_label_set_accel_widget.
1503
1504         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
1505         which mostly moved into gtkaccelmap.[hc].
1506         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
1507         and gtk_item_factory_print_func.
1508
1509         * gtk/gtkmain.c: call _gtk_accel_map_init().
1510
1511         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
1512         that associates an accelerator path with menu items, through which
1513         persistent accelerator settings on menu items are enabled.
1514
1515         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
1516         paths of menu item can be default constructed to allow installation
1517         of accelerators on menu items that don't come with an accelerator
1518         binding by default.
1519
1520         * gtk/gtksettings.c: fix STRING type rc settings by special casing
1521         them appropriately in the parser.
1522
1523         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
1524         gtk_signal_newv().
1525
1526         * gtk/gtkwidget.[hc]: accelerator API revamp.
1527         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
1528         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
1529         gtk_widget_(un)lock_accelerators.
1530         accelerators maintained through gtk_widget_add/remove_accelerator()
1531         are not runtime changable now, the correct sequence to setup a
1532         widget for runtime changable accelerators is now:
1533           gtk_accel_map_add_entry(accel_path, key, mods);
1534           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
1535
1536         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
1537         group changes (as well as mnemonic changes) through the new signal
1538         ::accels_changed.
1539
1540 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
1541
1542         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
1543         GString->string conversions.
1544
1545 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
1546
1547         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
1548         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
1549
1550 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
1551
1552         * gtk/gtktreeview.c: Documentation fixes. (#64377)
1553         
1554         * gtk/gtktreestore.c: Documentation fixes. (#64376)
1555
1556 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
1557
1558         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
1559         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
1560         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
1561         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
1562
1563 2001-11-10  Hans Breuer  <hans@breuer.org>
1564
1565         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
1566         we know what we are talking about when asked for MINMAXINFO.
1567         Also some cleaning for !HAVE_DIMM_H etc.
1568
1569 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
1570
1571         * gtk/gtktreeviewcolumn.c: Fix docs for 
1572         gtk_tree_view_column_set_sort_order. (#62647)
1573         
1574         * gtk/gtkcontainer.c: Fix docs for 
1575         gtk_container_set_border_width. (#64139)
1576
1577         * gtk/gtkcolorsel.c: Documentation fixes.
1578
1579 2001-11-10  Hans Breuer  <hans@breuer.org>
1580
1581         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
1582         don't have strcasecmp()
1583
1584         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
1585         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
1586         code duplication wrap it in its own function and use it in 
1587         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
1588
1589         * gdk/win32/gdkdrawable-win32.c : implement the finalize
1590         method like the X11 version does, allow to set_colormap NULL
1591         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
1592         set_colormap, also some adaption to X11 version :
1593         (gdk_window_hide) call _gdk_window_clear_update_area
1594         (gdk_window_reparent) call _gdk_window_init_position
1595
1596         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
1597         call gdk_window_resize() after all hints are set, because the
1598         window resizing process (WM_GETMINMAXINFO) takes all of them into 
1599         account
1600
1601         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
1602
1603         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
1604         sizeof (GdkVisualPrivate)
1605
1606         * gdk/gdk.def gtk/gtk.def : upated externals
1607
1608         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
1609           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
1610         from now on use make.msc from $(TOP)/glib/build/win32
1611
1612         * gtk/stock-icons/makefile.msc : add stock_missing_image
1613
1614 2001-11-08  Tor Lillqvist  <tml@iki.fi>
1615
1616         * README.win32: Add headers. Add section about ActiveIMM.
1617
1618         * configure.in: Add --with-ie55 flag to specify the location of
1619         the "IE55 libs and headers" package downloadable from Microsoft,
1620         which contains, among other things, the Active IMM header dimm.h
1621         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
1622         Require GLib 1.3.10.
1623         
1624         * config.h.win32.in: New version, produced by merging two
1625         configure-generated ones (for gcc and MSVC). Hopefully #defines
1626         the same flags that the previous, hand-written one, did.
1627
1628         * gdk/Makefile.am
1629         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
1630
1631         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
1632         stuff. Remove unused GdkIOClosure.
1633
1634         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
1635         available).
1636
1637         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
1638         for uuid.lib. (Does it really have to be this hard to use an
1639         existing library with libtool? Probably I am missing something.)
1640
1641 2001-11-08  Darin Adler  <darin@bentspoon.com>
1642
1643         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
1644         typo where it says LEFT instead of CENTER.
1645
1646 2001-11-07  Darin Adler  <darin@bentspoon.com>
1647
1648         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
1649         (gtk_dialog_set_default_response): Add g_return_if_fail.
1650
1651 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
1652
1653         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
1654         Add row_draggable() vfunc, and wrapper function.
1655
1656         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
1657         row_drop_possible take a GtkSelectionData, rather than
1658         model/row pair.
1659
1660         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
1661         new DND interfaces.
1662
1663         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
1664         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
1665         and rename them to enable_model_drag_source/dest.
1666
1667         * gtk/treeviewcolumn.c: Add DND of columns between rows.
1668         Still can't drop _to_ the left tree, but other places
1669         work.
1670
1671         * gtk/gtktreeview.c (unset_reorderable): Unset the
1672         reorderable property if unset/enable_model_drag_source/dest
1673         are called manually.
1674
1675         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
1676         Correct for change in depth count handling.
1677
1678         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
1679         Pass in a expose area to gtk_tree_view_column_cell_render()
1680
1681 2001-11-06  Havoc Pennington  <hp@redhat.com>
1682
1683         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
1684
1685 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
1686
1687         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
1688
1689 2001-11-05  Havoc Pennington  <hp@redhat.com>
1690
1691         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
1692         widgets in here
1693         (gtk_text_view_realize): set parent window of child widgets
1694         (gtk_text_view_size_request): use child req to decide whether
1695         to invalidate layout, not widget->requisition
1696
1697         * gtk/gtktextdisplay.c (render_layout_line): set
1698         shaped_width_pixels for NULL shape objects, so that we properly
1699         draw the "missing pixbuf/widget" thing
1700         (render_layout_line): don't draw the widget here
1701         (gtk_text_layout_draw): pass out a list of widgets that need exposing
1702
1703         * demos/gtk-demo/textview.c (insert_text): add demo of child
1704         widgets
1705
1706         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
1707
1708         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
1709
1710         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
1711         scroll offsets
1712         (gtk_text_view_value_changed): poke new X and Y into child allocations
1713
1714 2001-11-06  Tor Lillqvist  <tml@iki.fi>
1715
1716         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
1717         -specific directory on Windows, too (#63759).
1718
1719 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
1720
1721         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
1722         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
1723         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
1724         directly to Picture objects instead of using XftDraw.
1725         This fixes the problem where we weren't able to 
1726         properly destroy XftDraw objects before destroying
1727         the accompanying windows, and probably improves
1728         efficiency a bit too. (#50214)
1729
1730 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
1731
1732         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
1733         Clamp max window width/height to 32767, not 32768 since
1734         we have to be able to deal with a dx/y of -32768 without
1735         getting a width of 65536 when guffaw scrolling.
1736
1737         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
1738         for the guffaw scrolling case, fixing some problems with
1739         copy-area case as well. Fix BadValue bug with moving windows
1740         by large amounts.
1741
1742         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
1743         clip in window structue before calling gdk_window_invalidate_region
1744         since that trims new invalidations to the window's visible
1745         region.
1746
1747         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
1748         Really set the static window gravity on the children, not
1749         repeatedly on the window.
1750
1751         * gtk/testgtk.c: Add a torture test for big windows and 
1752         gdk_window_scroll().
1753
1754 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
1755
1756         * acconfig.h configure.in: sigsetjmp is macroized in some places,
1757         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
1758
1759 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
1760
1761         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
1762         in terms of pango_color_parse().
1763
1764         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
1765         gdk_color_parse() implementations.
1766
1767 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
1768
1769         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
1770         queue_resize_on_group with both the old and new mode, not
1771         just the new mode. (#60171, Nicolas Setton). Also, notify
1772         the "mode" property.
1773         
1774 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
1775
1776         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
1777         for use in "shallow invalidation" of a widget. (Windows belonging
1778         to the widget, but not to the widget's children)
1779
1780         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
1781         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
1782         up on ancestors up to the resize container on queue_resize. Size
1783         requests only actually take place if GTK_REQUEST_NEEDED, size
1784         allocations only take place if GTK_ALLOC_NEEDED or the size
1785         changed.
1786
1787         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
1788         container->resize_widgets and the RESIZE_NEEDED flag since the
1789         above flags are sufficient to figure out what needs to be
1790         resized/reallocated. Remove code manipulating
1791         container->resize_widget.
1792
1793         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
1794         allows widgets to turn off being automatically invalidated is when
1795         they are resized.
1796
1797         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
1798         a widget is resized or moved is "shallow" as described above -
1799         only the windows that need to be invalidated are invalidated.
1800
1801         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
1802         Make these widget's init functions call 
1803         gtk_widget_set_redraw_on_allocate(widget,FALSE).
1804
1805         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
1806         _gtk_container_queue_resize(), since we don't want
1807         redrawing. (Probably could be done for other 
1808         calls to gtk_widget_queue_resize() in gtkwindow.c,
1809         but this is the most important one.)
1810
1811         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
1812         gtk_widget_queue_draw() - size_allocate() handles
1813         that as appropriate.
1814
1815         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
1816         of queue_clear() to avoid invalidating children.
1817
1818 2001-11-04  jacob berkman  <jacob@ximian.com>
1819
1820         * gtk/gtkmain.c (find_module): don't free the module name until
1821         after we load the module
1822
1823 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
1824  
1825         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
1826         derivation instead of boxed derivation.
1827  
1828         * gtk/gtkmarshal.list: Remove some now unused marshallers.
1829  
1830 2001-11-04  Tor Lillqvist  <tml@iki.fi>
1831
1832         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
1833         include yesterday, without really thinking), as that defeats the
1834         working of correct_libdir_prefix() (it becomes a no-op.). Add
1835         comment mentioning that. Thanks to Hans Breuer for noticing.
1836         
1837 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
1838
1839         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
1840         signal argument (was GtkWidget*).
1841
1842         * gtk/gtkwindow.c (gtk_window_frame_event),
1843           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
1844         Fixed argument types as above, removed GTK_WINDOW casts and
1845         added some GTK_WIDGET casts instead.
1846
1847 2001-11-03  Hans Breuer  <hans@breuer.org>
1848
1849         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
1850         finalize to parent class to get removed from the toplevel_list.
1851         Should fix 'random' crashes of #63474.
1852
1853         * gtk/gtktreemodelsort.c : chain finalize() to parent class
1854
1855 2001-11-03  Tor Lillqvist  <tml@iki.fi>
1856
1857         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
1858         for .dll or .so as appropriate as module suffix.
1859
1860         * gtk-zip.sh.in: Use correct import library names.
1861
1862         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
1863
1864         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
1865         Windows to turn build-time paths from a gtk.immodules distributed
1866         as part of a binary package into runtime ones in the
1867         end-user-chosen installation directory.
1868         (gtk_im_module_init): Use it for module path and domain
1869         directory.
1870
1871 2001-11-02  Tor Lillqvist  <tml@iki.fi>
1872
1873         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
1874         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
1875         Windows.
1876
1877 2001-10-30  Tor Lillqvist  <tml@iki.fi>
1878
1879         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
1880         files. Configure on Win32 (running on Cygwin) thinks symlinks
1881         exist, but pkg-config is not necesarily a Cygwin program, and
1882         doesn't understand them.
1883
1884 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
1885
1886         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
1887         a bit.  I don't think it's completely correct yet, but it's
1888         getting there.
1889
1890 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
1891
1892         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
1893         random + 5 for width and height. If people want padding,
1894         they should add padding. (Note the +5 isn't padding
1895         that will always appear - it just appears in the case
1896         where the widget is allocated it's requisition.)
1897         (#51018, Janet Davis)
1898
1899 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
1900
1901         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
1902         the structure for future expansion.
1903
1904 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
1905
1906         Patch from HideToshi Tajima (#51922)
1907         
1908         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
1909
1910         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
1911         set_use_preedit().
1912         
1913         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
1914         to destroy the input context because we change the
1915         client window or use_preedit, make sure we empty
1916         the preedit string.
1917
1918 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
1919
1920         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
1921         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
1922         proposed ordering of buttons with [OK] in the lower
1923         right hand corner. Patch from Gregory Merchan,
1924         #56331.
1925
1926 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
1927
1928         * gtk/gtklabel.c (gtk_label_select_region_index): remove
1929         extraneous gtk_label_clear_layout (label)
1930
1931 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1932
1933         * tests/makefile.msc, gtk/makefile.msc.in: Removed
1934         -DGTK_DISABLE_COMPAT_H.
1935
1936         * docs/Changes-2.0.txt:
1937         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
1938
1939         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
1940
1941 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
1942
1943         * examples/**/Makefile.am: Convert to use pkg-config
1944         rather than gtk-config. (#53375, Skip Montanaro)
1945
1946 2001-11-02  Matt Wilson  <msw@redhat.com>
1947
1948         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
1949         broken unused, non-compiling, static function.
1950
1951 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
1952
1953         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
1954         Iterate through children of the action area, not of
1955         the vbox. (#58278, Sergey Kuzminov)
1956
1957 2001-11-01  Havoc Pennington  <hp@pobox.com>
1958
1959         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
1960         order to remove a workaround in Nautilus that forced
1961         GTK_ENABLE_BROKEN
1962
1963         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
1964
1965 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
1966
1967         * gtk/gtkrange.c: Patch from George Lebl to 
1968         fix division by zero for full scroll bars. (#62114)
1969
1970 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
1971
1972         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
1973         around gtk_widget_event() if we are going to
1974         set a flag afterwards. (#63464)
1975
1976 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
1977
1978         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
1979         Actually add the missing/broken image icon as the
1980         image for the "missing image" stock icon.
1981
1982 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
1983
1984         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
1985         Set a reasonable default height for the window.
1986
1987         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
1988         bug where subsequent '-' weren't converted to '_'.
1989         (#59550, Matthias Clasen)
1990
1991         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
1992         justify the Help menu - just include a comment on
1993         how to do it. (#63539,  Marius Andreiana)
1994
1995         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
1996         list GTK_ICON_SIZE_INVALID.
1997
1998         * demos/gtk-demo/stock_browser.c: Show the biggest available
1999         size, not a fixed size. (Often reported, including #63539, 
2000         Marius Andreiana)
2001
2002 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
2003
2004         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
2005         #59583
2006
2007         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
2008         warning.
2009
2010 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
2011
2012         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
2013         (Daniel Elstner).
2014
2015 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
2016
2017         * gtk/gtkimcontext.[ch]: Add:
2018           - A ::retrieve_surrounding signal that asks the widget for
2019             context around the insertion point.
2020           - A ::delete_surrounding signal that asks the widget to 
2021             delete context aroudn the insertion point.
2022           - gtk_im_context_set_context() for widgets to set context
2023             around the insertion point in response to ::retrieve_context.
2024           - gtk_im_context_get_context() for context to get context
2025             around the insertion point
2026
2027         * gtkmarshal.list: Add BOOL:INT,INT
2028
2029         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
2030         set_surrounding() methods, and the ::retrieve_surrounding /
2031         ::delete_surrounding signals.
2032
2033         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
2034         GtkIMContext::retrieve_surrounding / ::delete_surrounding
2035         signals.
2036
2037 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
2038
2039         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
2040         it's amazing how well things work sometimes, even when they're
2041         completely wrong.
2042
2043         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2044         where you could try to collapse a node w/o it having children.
2045
2046         (gtk_tree_view_class_init): remove Shift L<->R as they already
2047         existed for expand/collapse.
2048
2049 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
2050
2051         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
2052         found by Matt Wilson.
2053
2054 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
2055
2056         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
2057         Control, and Shift|Control L<->R, #63475
2058
2059 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
2060
2061         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
2062         infinite loop noticed by yosh.
2063
2064 2001-11-01  Michael Meeks  <michael@ximian.com>
2065
2066         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
2067         GTK_REALIZED flag so we don't re-enter when we are
2068         destroyed from the plug side.
2069
2070 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
2071
2072         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
2073         Add a "menu" property and notify on it. (#62798,
2074         Padraig O'Briain)
2075
2076         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
2077         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
2078         Fix set_text to take a gchar, not a guchar, and to have 
2079         a len argument.
2080
2081 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
2082
2083         * gtk/gtkstock.c: fix typo to make it compile
2084
2085 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
2086
2087         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
2088         the widget is insensitive, draw the text insensitively, #63306
2089
2090 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
2091
2092         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
2093
2094 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
2095
2096         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
2097         gtk_selection_data_set_tree_row, #60218
2098         (gtk_tree_get_row_drag_data): rename
2099         gtk_selection_data_get_tree_row, #60218
2100
2101         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
2102         get this right, after the third try, #63122.
2103
2104 2001-10-31  jacob berkman  <jacob@ximian.com>
2105
2106         * gdk/gdkselection.h (GDK_TARGET_STRING): 
2107         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
2108         for Xatoms (and not using the XA_* macros)!
2109
2110 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
2111
2112         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
2113         gtk_window_get_focus() getter to determine the currently
2114         focused widget within the window. (#63145, request
2115         from Damian Ivereigh)
2116
2117 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
2118
2119         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
2120
2121         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
2122         GTK_SELECTION_NONE enum.
2123         (_gtk_tree_selection_internal_select_node): ditto
2124
2125         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
2126         constness.
2127
2128         * gtk/gtkcellrenderertoggle.c: more yummy constness.
2129
2130         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
2131         if mode == GTK_SELECTION_NONE
2132
2133 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
2134
2135         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
2136         "cursor_changed" signal, #62850.
2137
2138 2001-10-31  Matt Wilson  <msw@redhat.com>
2139
2140         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
2141         allocating the treedatalist, zero it to make sure the values are
2142         cleared from any garbage that was in this chunk.
2143
2144 2001-10-31  Murray Cumming  <murrayc@usa.net>
2145
2146         * gtk/cellrenderertext.h: "edited" default signal handler
2147         gchar* args are now const.
2148         gtk/cellrenderertoggle.h: "toggled" default signal handler
2149         gchar* arg is now const.
2150         Also changed other signal handlers for "edited" and "toggled" to
2151         have the same signature.
2152
2153 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
2154
2155         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
2156         rewrite.  Static models now totally work.  I'm not 100% sure about
2157         row_inserted and row_changed, but I'll get those later.
2158
2159 2001-10-30  Sven Neumann  <sven@gimp.org>
2160
2161         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
2162         output for configure --help.
2163
2164 2001-10-30  Havoc Pennington  <hp@pobox.com>
2165
2166         * gtk/gtktextview.c (changed_handler): Update the IM spot location
2167         here, if text was invalidated in the visible area, because the
2168         scroll offset doesn't normally change in that case, and the mark
2169         isn't set, just implicitly moved over as text is added/removed
2170         
2171 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
2172
2173         * gtk/gtkseparatormenuitem.c: Code cleanup.
2174         (gtk_separator_menu_item_class_init): Fix bugs in this code.
2175
2176 2001-10-29  jacob berkman  <jacob@ximian.com>
2177
2178         * gdk/Makefile.am (LDFLAGS): 
2179         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
2180         LDFLAGS, so put win32 flags in here
2181
2182 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
2183
2184         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
2185         I can't believe this took this long to fix.
2186
2187 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
2188
2189         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
2190         reordered signal.
2191
2192 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
2193
2194         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
2195         the focus to the fileop entry for create dir / rename
2196         file. (#62838)
2197
2198 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
2199
2200         * configure.in: Don't use AC_CHECK_FILE to check for a 
2201         file since it always spits warnings about cross compilation,
2202         use -f instead. It's not like we cross compile properly
2203         anyways.
2204
2205         * configure.in (gtktargetlib): Move call to AC_PROG_CC
2206         to suppress autoconf warning.
2207
2208         * acconfig.h: Add some missing #undefs from recent
2209         Win32 additions.
2210
2211 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
2212
2213         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
2214         when we didn't find it. (#62944, Eric Lemings)
2215
2216         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
2217         sign in assignment. (#63209, Arkadiusz Miskiewicz)
2218
2219 2001-10-29  Anders Carlsson  <andersca@gnu.org>
2220
2221         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
2222         the buttons size request before using it. Fixes #61696.
2223
2224 2001-10-29  Tor Lillqvist  <tml@iki.fi>
2225
2226         * README.win32: Updates.
2227
2228         * gtk-zip.sh.in: New file, used to build distribution package for
2229         Windows.
2230
2231         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
2232         applicable with GDKVAR.
2233
2234         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
2235         Wintab library.
2236
2237         * gdk/win32/gdkwin32.h
2238         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
2239         X11 headers better, and to enable gdkwin32.h to be installed and
2240         included from applications, but not the *-win32.h headers.
2241
2242         * gdk/win32/*.c: Corresponding small changes, simplifications of
2243         #includes.
2244         
2245         * gdk/win32/gdkregion-win32.c: Remove.
2246
2247         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
2248
2249         * gdk/win32/gdkfont-win32.c
2250         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
2251
2252         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
2253         GDK_NONE values into hash table.
2254
2255         * gtk/gtk.def: Update.
2256
2257         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
2258         gethostname().
2259
2260         * gtk/gtkmain.c 
2261         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
2262         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
2263         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
2264         g_win32_get_package_installation_subdirectory() with the actual
2265         DLL name saved above. Redefine above directory name macros to call
2266         these functions. Remove some ifdefs.
2267
2268         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
2269         variable for export on Win32) also to the _vars file.
2270
2271         Changes for autoconfiscated build on Win32, and addition of Win32
2272         backend to the related files:
2273         
2274         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
2275         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
2276         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
2277         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
2278         win32 target, using pangowin32. Don't use the
2279         -export-symbols-regex option on Win32, we use .def files to list
2280         exported symbols. Check <winsock.h> (for gethostname() in
2281         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
2282         prevent premature m4 expansion.
2283
2284         * acconfig.h: Add HAVE_WINTAB.
2285
2286         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
2287         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
2288         MS_LIB_AVAILABLE, build MS import library. Install the import
2289         libraries. If HAVE_WINTAB, link with the Wintab library.
2290
2291         * gdk/win32/Makefile.am: Actually enable building the win32
2292         objects here, not just list all files in EXTRA_DIST. Link in the
2293         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
2294         copy the Wintab library into the .libs directory. 
2295
2296         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
2297         name of the GDK DLL when fetching the icon. Use the HMODULE saved
2298         in gdk_dll_hinstance by DllMain.
2299
2300         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
2301         build/win32/lt-compile-resource script.
2302
2303         * gdk/win32/rc/gdk.rc.in
2304         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
2305
2306         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
2307         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
2308         file. Install import libraries.
2309
2310 2001-10-29  Anders Carlsson  <andersca@gnu.org>
2311
2312         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
2313
2314 2001-10-28  Hans Breuer  <hans@breuer.org>
2315
2316         * gdk/gdk.c gdk/gdkevents.c
2317           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
2318           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
2319           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
2320           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
2321           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
2322           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
2323           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
2324         static correct-ness, underscore prefixing of library internal 
2325         functions
2326         (applied the undisputed and the win32 part. Of the latter 
2327          I'm probably the one who will change it back again, if Owen
2328          decides that the Gdk*Impl types should not be private to Gdk)
2329
2330         * gdk/gdk.def : added the remaining exported functions
2331
2332 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
2333
2334         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
2335         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
2336         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
2337
2338 2001-10-28  jacob berkman  <jacob@ximian.com>
2339
2340         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
2341         gtk_settings_get_default() here as that requires an X connection
2342         (which breaks doc building with no X connection) and is not
2343         multihead safe
2344         (gtk_color_selection_init): delay palette loading until realize
2345         time
2346         (gtk_color_selection_realize): load the palette, and initialize
2347         the global palette if it hasn't been already
2348
2349         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
2350         visual/cmap fields of klass->info since they are gone
2351         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
2352         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
2353         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
2354
2355         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
2356         cmap fields
2357         (gtk_preview_get_visual):
2358         (gtk_preview_get_cmap): mark as deprecated
2359
2360         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
2361         changes
2362
2363 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
2364
2365         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
2366         structure to have GObject not GtkObject as
2367         parent_instance. (Jeff Franks.)
2368
2369 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
2370
2371         * gdk/x11/gdkinput.c: Typo fix.
2372
2373 2001-10-26  Havoc Pennington  <hp@pobox.com>
2374
2375         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
2376         update_im_spot_location here explicitly
2377         (gtk_text_view_reset_im_context): don't update the spot location
2378         here
2379
2380 2001-10-27  Anders Carlsson  <andersca@gnu.org>
2381
2382         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
2383         This fixes #62942.
2384
2385         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
2386         Clarify that we're returning a spin button in the _new function.
2387         This fixes #54097.
2388         
2389 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
2390
2391         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
2392         Unfortunately, people apparently erroneously connect
2393         to ::clicked for GtkToggleButton and expect
2394         they know what happened in the default signal handler
2395         instead of appropriately connecting to notification
2396         signal ::toggled. When the revolution comes, such
2397         people will be first against the wall.
2398
2399         We'll just have to go back to the old less-reliable
2400         set-it-back hacks for handling model-view check
2401         buttons and radio buttons. :-(. 
2402
2403 2001-10-27  Hans Breuer  <hans@breuer.org>
2404
2405         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
2406           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
2407           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
2408           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
2409           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
2410           gtk/gtktreestore.c gtk/gtkvbbox.c : 
2411         to simplify parsing for exported functions:
2412         - made implementation signature static, when the local 
2413           prototype already was
2414         - put the functions return value on it's own line
2415         - added as space between the function name and the 
2416           opening bracket
2417
2418         * gtk/gtk.def : added the remaining exported functions
2419
2420 2001-10-27  Anders Carlsson  <andersca@gnu.org>
2421
2422         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
2423         Add note about width having to be greater than 0. This fixes
2424         #55574. 
2425
2426         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
2427         Fix docs to say previous instead of next.
2428         (gtk_text_iter_backward_word_start): Likewise.
2429         This fixes bug #62980.
2430
2431         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
2432         that the valid width is in range 0-65535 pixels. Fixes bug 
2433         #56754.
2434
2435         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
2436         a dot in the documentation. Fixes bug #62632.
2437
2438         * gdk/x11/gdkmain-x11.c: Replace int and guint with
2439         long and gulong in some places to make the code 64-bit
2440         clean.
2441         (_gdk_windowing_init_check): Replace gint with gulong.
2442         This patch was made by George Lebl and fixes bug #62113.
2443
2444         * tests/testgtk.c (create_range_controls): Don't set a 
2445         fixed height on the hscale widget. This fixes "bug" 
2446         #55840.
2447         (create_window_states): Set up destroy signals so that
2448         all windows will be destroyed when one is. This fixes 
2449         bug #58133.
2450
2451 2001-10-26  Anders Carlsson  <andersca@gnu.org>
2452
2453         * gtk/gtktreeview.c: 
2454         (gtk_tree_view_class_init): Create new "indent_expander"
2455         style property.
2456
2457         (gtk_tree_view_get_arrow_xrange): Add a tree argument
2458         to the function since the xrange can change depending
2459         on where in the tree we are. 
2460         
2461         (coords_are_over_arrow): Update function call to
2462         gtk_tree_view_get_arrow_xrange.
2463         (gtk_tree_view_draw_arrow): Likewise.
2464         
2465         (gtk_tree_view_real_expand_collapse_cursor_row):
2466         Call real_{expand|collapse}_row, so that we'll have an
2467         animation.
2468
2469 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
2470
2471         * tests/Makefile.am: fixed a small typo
2472
2473 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
2474
2475         * demos/gtk-demo/list_store.c (create_model): Anders
2476         Carlsson suggested to use G_N_ELEMENTS here
2477
2478 2001-10-26  Sven Neumann  <sven@gimp.org>
2479
2480         * gtk/gtkbutton.[ch]
2481         * gtk/gtkdnd.c: fixed inline comments
2482         
2483         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
2484
2485 2001-10-26  Hans Breuer  <hans@breuer.org>
2486
2487         * gdk-pixbuf/gdk_pixbuf.def : 
2488         * gdk/gdk.def : 
2489         * gtk/gtk.def : updated externals
2490
2491         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
2492         gdk_window_lookup implementation. It already was in
2493         gdk/win32/gdkwindow-win32.c
2494
2495         * gdk/win32/gdkproperty-win32.c : made it compile again
2496         after GdkAtom API change
2497
2498         * gtk/gtk/makefile.msc.in : updated
2499
2500 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
2501
2502         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
2503         require GLib 1.3.10.
2504
2505         * NEWS: updates.
2506
2507 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
2508
2509         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
2510         invalid nodes.
2511          (_gtk_rbnode_rotate_right): Ditto.
2512          (_gtk_rbtree_node_mark_invalid): New function.
2513          (_gtk_rbtree_node_mark_valid): New function.
2514
2515         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
2516         GObject, not a GtkObject.
2517         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
2518         correct.
2519         (gtk_tree_model_sort_row_deleted): ditto.
2520         (gtk_tree_model_sort_{un,}ref_node): Fix.
2521
2522         * gtk/gtktreeview.c: Protean incremental reflow support (commented
2523         out)
2524
2525         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
2526         to const char *key.
2527
2528         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
2529         Important 1 line fix to fix a lot of refcounting woes.
2530
2531 2001-10-25  Matt Wilson  <msw@redhat.com>
2532
2533         * gtk/gtktextview.c (gtk_text_view_destroy): call
2534         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
2535         now invalidates) so that we remove our idle functions.
2536         (gtk_text_view_destroy_layout): remove the first_validate_idle as
2537         well.
2538
2539         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
2540         the 'indent' property is G_MININT to G_MAXINT.  Don't use
2541         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
2542         instead.
2543
2544 2001-10-24  Anders Carlsson  <andersca@gnu.org>
2545
2546         * gtk/gtktreeview.c: 
2547         (gtk_tree_view_real_expand_row): add an animate argument
2548         (gtk_tree_view_real_collapse_row): likewise
2549         
2550         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
2551         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
2552         (gtk_tree_view_collapse_row): update functions that call
2553         real_{expand|collapse}_row to set the animate argument 
2554         accordingly.
2555         
2556 2001-10-24  Alex Larsson  <alexl@redhat.com>
2557
2558         * gdk/linux-fb/gdkfont-fb.c:
2559         Update to new Pango APIs
2560
2561         * gdk/linux-fb/gdkproperty-fb.c:
2562         Update to new GdkAtom APIs
2563
2564         * gdk/linux-fb/gdkwindow-fb.c:
2565         Remove warnings
2566
2567 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
2568
2569         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
2570
2571 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
2572
2573         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
2574         s_path as a child path
2575
2576 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
2577
2578         * gtk/gtktreemodelsort.c: more changes in an attempt to get
2579         it right. It's not yet ready for general consumption.
2580
2581         * tests/treestoretest.c: add a button and entry for the new
2582         iter_change function
2583         (iter_change): new function, to test
2584         the row_changed signal implementation of the GtkTreeModelSort
2585
2586         * tests/testtreesort.c: cleanups, changes to test more features
2587         of the GtkTreeModelSort at once
2588
2589 2001-10-24  Havoc Pennington  <hp@redhat.com>
2590
2591         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
2592         remove hack to strip off the bogus newline, since we killed the
2593         bogus newline; fixes #61779
2594
2595 2001-10-24  Havoc Pennington  <hp@redhat.com>
2596
2597         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
2598         create layout if we didn't have one
2599         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
2600         as appropriate, avoids blanking the screen 
2601         (gtk_text_view_invalidate): new function to do invalidation,
2602         containing old guts of invalidated_handler
2603
2604 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
2605
2606         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
2607         dreadful tooltips.
2608
2609 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
2610
2611         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
2612         set window->parent (except or the root window itself); if 
2613         the window's parent is not a GdkWindow, or is a window of 
2614         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
2615
2616         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
2617         windows of type GDK_WINDOW_FOREIGN.
2618
2619 2001-10-24  Havoc Pennington  <hp@pobox.com>
2620
2621         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
2622         the front of a segment, use the "slow" technique for moving
2623         backward, so we don't mess up the any_segment field in the iter. 
2624         Fixes #57707
2625
2626         * tests/testtextbuffer.c: add code to detect #57707, to avoid
2627         regression
2628
2629 2001-10-23  Havoc Pennington  <hp@redhat.com>
2630
2631         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
2632         if selection contains some editable text, #60975
2633         (gtk_text_view_scroll_to_iter): remove warning about scrolling
2634         prior to map; it should actually be OK to do so in many cases, 
2635         it would be nice to warn about scrolling when many lines have
2636         height 0, but I don't know what to do about that. Perhaps 
2637         move part of flush_scroll into this function? comment added 
2638         to consider this.
2639
2640 2001-10-23  Havoc Pennington  <hp@redhat.com>
2641
2642         * gtk/gtktextview.c (changed_handler): Correctly keep the same
2643         text on the top of the screen, considering that the changed region
2644         may have overlapped the first paragraph. Should fix msw's "text
2645         widget scrolled to wrong place on map" bug, and probably some
2646         other scrolling cases as well.
2647         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
2648         instead of some random value
2649
2650         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
2651         grab_focus, so #59708 is really fixed
2652
2653 2001-10-24  Anders Carlsson  <andersca@gnu.org>
2654
2655         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
2656         (popup_targets_received): Call append_action_signal with stock items
2657         
2658         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
2659         (gtk_label_do_popup): Call append_action_signal with stock items
2660         
2661         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
2662         (popup_targets_received): Call append_action_signal with stock items
2663
2664 2001-10-23  Havoc Pennington  <hp@redhat.com>
2665
2666         * gtk/gtktextview.c (changed_handler): queue a resize here; will
2667         temporarily slow down the widget a lot, until we figure out how to
2668         optimize to avoid full redraw everytime we queue a resize.
2669
2670 2001-10-23  Havoc Pennington  <hp@redhat.com>
2671
2672         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
2673         0 and char_len == 0, bug #61729
2674
2675 2001-10-23  Havoc Pennington  <hp@redhat.com>
2676
2677         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
2678         return value, #61714 (Vitaly Tishkov)
2679         (gtk_text_iter_backward_sentence_starts): ditto
2680         (gtk_text_iter_backward_word_starts): ditto
2681         (gtk_text_iter_forward_word_ends): ditto
2682         (gtk_text_iter_forward_sentence_ends): ditto
2683         (gtk_text_iter_backward_cursor_positions): ditto
2684
2685 2001-10-23  Havoc Pennington  <hp@redhat.com>
2686
2687         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
2688         fix from Dov Grobgeld, #61858
2689
2690 2001-10-23  Havoc Pennington  <hp@redhat.com>
2691
2692         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
2693         Update IM spot location at appropriate times, #50626
2694         (Hidetoshi Tajima)
2695
2696 2001-10-23  Havoc Pennington  <hp@redhat.com>
2697
2698         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
2699         on grab focus, unless it's caused by button click, #59708
2700
2701 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
2702
2703         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
2704
2705         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
2706         G_CONST_RETURN. (Murray Cumming)        
2707
2708         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
2709         Make G_CONST_RETURN.
2710
2711         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
2712         results of g_get_home_dir().
2713
2714         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
2715         copy. Storing the return from gtk_entry_get_text() is evil.
2716
2717         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
2718         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
2719         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
2720         gtk/gtksignal.c: Add const.
2721
2722         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
2723
2724         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
2725         if we are setting them on private widgets.
2726
2727         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
2728         Duplicate entry->text before setting it as object data.
2729
2730 2001-10-22  Havoc Pennington  <hp@redhat.com>
2731
2732         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
2733         up a char from the end iterator, fixes #61859 ("can't put cursor
2734         at the end of the buffer")
2735
2736         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
2737         to work with delimiters other than newline.
2738
2739         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
2740         get_bytes_in_line
2741
2742         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
2743         last line, since the newline is no longer counted.
2744         (gtk_text_iter_get_bytes_in_line): ditto
2745
2746 2001-10-22  Havoc Pennington  <hp@redhat.com>
2747
2748         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
2749         #58290 would trigger if it reappeared, I think
2750
2751 2001-10-22  Havoc Pennington  <hp@redhat.com>
2752
2753         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
2754         add temporary code to dump btree contents on assertion failure
2755         described in #62656
2756         
2757         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
2758         assertions that we're getting the right end iter segment
2759
2760         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
2761         verify that we aren't on the end iterator after moving 
2762         forward one segment - fixes return value in an obscure case. 
2763         Also, some trivial code cleanup/rearranging.
2764         
2765 2001-10-22  Havoc Pennington  <hp@redhat.com>
2766
2767         * gtk/gtktextlayout.h: add a #error unless you define
2768         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
2769
2770         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
2771         
2772 2001-10-22  Havoc Pennington  <hp@redhat.com>
2773
2774         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
2775         #62365
2776
2777 2001-10-22  Havoc Pennington  <hp@redhat.com>
2778
2779         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
2780         #62436
2781
2782 2001-10-22  Havoc Pennington  <hp@redhat.com>
2783
2784         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
2785         #62366
2786
2787 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
2788
2789         * gtk/gtklabel.c: Add cursor-position, selection-bound 
2790         properties. (#62148, reported by Padraig O'Briain)
2791
2792         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
2793         to cursor_position. (1.3.x addition, text_position is an awful
2794         name.) Make cursor_position read-only to avoid sticky questions
2795         of interaction with selection_bound. (#62636, reported by
2796         Padraig O'Briain)
2797
2798 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
2799
2800         Fixing popup menus to have "Paste" sensitized correctly. Original
2801         patches from Damian Ivereigh, much mangled.
2802
2803         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
2804         gtk_selection_data_targets_include_text(). (#60854)
2805
2806         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
2807         the clipboard has text" function gtk_clipboard_wait_is_text_available.
2808         (#60854)
2809
2810         * gtk/gtkentry.c: Only enable the paste item if the clipboard
2811         contains text. (#60973)
2812
2813         * gtk/gtktextview.c: Only enable the paste item if the clipboard
2814         contains text. (#60975)
2815
2816 2001-10-22  Havoc Pennington  <hp@redhat.com>
2817
2818         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
2819         "height_lines" and "width_columns" properties, it doesn't make
2820         sense to set the size request on a text view really. #62103
2821
2822 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
2823
2824         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
2825         g_node_depth is broken, and that it's not worth being consistent
2826         with it.
2827
2828 2001-10-22  Havoc Pennington  <hp@redhat.com>
2829
2830         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
2831         docs, #61777
2832         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
2833         change the two boolean args to a flags field, so we can extend 
2834         to add case insensitive, regexp searches later. #61852
2835
2836 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
2837
2838         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
2839         reflect reality, #62810
2840
2841 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
2842
2843         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
2844
2845         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
2846         system.  Instead of having a window the size of the tree, we have
2847         a window the size of widget->allocation, and simply draw with the
2848         offset.
2849         (coords_are_over_arrow): ditto.  Move to window coordinates.
2850         (do_prelight): ditto
2851         (do_unprelight): ditto
2852
2853         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
2854         Minor fix from Kristian Rietveld to fix unsorted case.
2855
2856 2001-10-22  jacob berkman  <jacob@ximian.com>
2857
2858         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
2859         a PIXMAP cell (fixes crash when using PIXTEXT cells)
2860
2861 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
2862
2863         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
2864         (#58768, Vitaly Tishkov)
2865         
2866         * gtk/gtkobject.h: Deprecate with abandon. 
2867         (#61942, Vitaly Tishkov, Matthias Clasen)
2868
2869         * gtk/gtksignal.h: Deprecate everything.
2870
2871         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
2872         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
2873         (#61942, Matthias Clasen)
2874
2875         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
2876         Havoc Pennington)
2877
2878         * gtk/gtkitemfactory.h: Deprecate compat functions
2879         for GtkMenuFactory code. (#62071)
2880
2881         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
2882         gdk_draw_text,gdk_draw_text_wc. (#62071)
2883
2884 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
2885
2886         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
2887         g_thread_init(), we don't want to link to -lgthread if we don't
2888         have to.
2889
2890 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
2891
2892         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
2893         Add a function, gdk_threads_init() that must be explicitely 
2894         called to enable the GDK thread mutex.
2895
2896 2001-10-22  Jakub Steiner <jimmac@ximian.com>
2897
2898         * gtk/stock-icons/stock_stop.png: no body parts
2899         
2900 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
2901
2902         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
2903         problem with g_return_if_fail return value.
2904
2905         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
2906         virtual atom code from the gdk-multihead branch, removing the per-display
2907         part. Virtualizing atoms needs to be done now to prevent compat
2908         breakage in direct Xlib accessing code in the future. (#62208)
2909  
2910         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
2911         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
2912  
2913         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
2914         an opaque pointer type so the compiler catches attempts
2915         to mingle it with X atoms.
2916
2917         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
2918           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
2919           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
2920           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
2921           tests/testdnd.c,tests/testselection.c: 
2922         Fix up for above atom changes.
2923
2924         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
2925         now have the ability to add custom predefines.
2926
2927         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
2928         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
2929         to gtk_clipboard_get().
2930
2931         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
2932         for GdkAtom => pointer change.
2933
2934         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
2935         atoms, fix for GdkAtom => pointer change.
2936
2937 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
2938
2939         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
2940         new function spin_button_get_arrow_size() instead.
2941
2942         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
2943         arrow was hardcoded, it's now variable.
2944
2945         Fixes bug #50200
2946
2947 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
2948
2949         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
2950         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
2951         for those
2952
2953 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
2954
2955         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
2956         in favor of g_signal_*, gtk_object_* in favor of 
2957         g_object_*.
2958
2959 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
2960
2961         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
2962         from GObject now, we have to use the g_object_* functions, not
2963         gtk_object_*.
2964
2965 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
2966
2967         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
2968         nailed down now (this code is not yet ready for general consumption)
2969
2970 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
2971
2972         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
2973         for use_align
2974
2975 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
2976
2977         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
2978
2979 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
2980
2981         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
2982         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
2983         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
2984         GObject, not GtkObject. (#62621)
2985
2986 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
2987
2988         * tests/testsocket.c: Remove now useless include of unistd.h,
2989         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
2990         
2991 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
2992
2993         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
2994         Pango font API. #61933. (Untested, even for compilation.)
2995
2996 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
2997
2998         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
2999         export gtk_disable_setlocale(). (Caught by Sven Neumann)
3000
3001 2001-10-18  Havoc Pennington  <hp@redhat.com>
3002
3003         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
3004
3005 2001-10-18  Havoc Pennington  <hp@redhat.com>
3006
3007         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
3008         to GTK_RUN_LAST, #50239
3009
3010 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
3011
3012         * gtk/gtkimmodule.c (match_locale):
3013         Support "*" for all locales with least priority
3014         when to select default im module, #58201
3015
3016 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
3017
3018         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
3019         Fix docs. (#61976)
3020  
3021         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
3022
3023         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
3024
3025         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
3026         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
3027         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
3028         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
3029         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
3030         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
3031         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
3032
3033         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
3034
3035         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
3036         Don't restrict the width of the spinbutton entry field 
3037         to 10 digits. (#58681)
3038
3039 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
3040
3041         * tests/testtreeflow.c: new test program for the tree.
3042
3043 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
3044
3045         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
3046         reported by (Oleg Maiboroda), #62600
3047
3048 2001-10-18  Michael Meeks  <michael@ximian.com>
3049
3050         * gtk/gtkentry.c (gtk_entry_set_property),
3051         (gtk_entry_get_property): impl 'text'
3052         (gtk_entry_class_init): add the 'text' prop.
3053         (gtk_entry_insert_text): notify 'text' changed.
3054         (gtk_entry_delete_text): ditto.
3055
3056 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
3057
3058         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
3059         Documentation updates.
3060
3061 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
3062
3063         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
3064         in truncating length of text to MAX_SIZE. (Found by 
3065         Padraig O'Briain, #62055)
3066
3067 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
3068
3069         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
3070         MNEMONIC_ACTIVATE; signal was changed a long time
3071         ago.
3072
3073         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
3074         Fix wrong return statement. (Reported by HideToshi
3075         Tajima and others.)
3076
3077         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
3078         left over select_all vfunc.
3079
3080 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
3081
3082         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
3083         a utility function to translate coordinates relative to
3084         one widget's allocation to coordinates relative to another
3085         widget's allocation.
3086
3087         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
3088         that:
3089          - only accepts external focus if there is no active
3090            member of the group or the button is active.
3091          - makes arrow keys move the active button as well
3092            as the focus
3093          - make tab tab out directly.
3094         This makes a radio button group act as a single focus location.
3095         (#53577).
3096         
3097         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
3098         it was only a small optimization that didn't matter and made
3099         things more complicated.
3100
3101         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
3102         sorter for FOCUS_TAB as we did for the other focus directions,
3103         sort by center of widgets, not upper-left corner. (Shouldn't
3104         matter in general.)
3105
3106         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
3107         from the different types of focusing: encapsulate sorting the
3108         widgets for the focus direction into one routine
3109         (gtk_container_focus_sort()) and then share the work of moving the
3110         focus between the different focus directions.
3111
3112         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
3113         work correctly with focus chains containing non-immediate
3114         children. Sorting was being done using allocation coordinates for
3115         each widget in the focus chain, and if there were intermediate
3116         window-widgets, these allocations would not be in the same
3117         coordinate system.
3118
3119 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
3120
3121         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
3122         mnemonic_activate function to option menu.
3123
3124 2001-10-15  Murray Cumming <murrayc@usa.net>
3125
3126         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
3127           Corrected the type names used in some calls to g_signal_new().
3128         
3129 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
3130
3131         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
3132         specs, use g_pattern_spec_equal() instead of direct field accesses.
3133         upon compressing two equal paths of the same type, the resulting
3134         priority has to be the maximum.
3135         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
3136         GtkPathPriorityType enum and make it a macro.
3137
3138 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
3139
3140         * gtk/gtkwidget.c: Fix some doc comments.
3141
3142 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
3143
3144         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
3145         on empty models.
3146
3147 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
3148
3149         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
3150         Remove stale gdk backend includes.
3151  
3152 2001-10-10  Michael Meeks  <michael@ximian.com>
3153
3154         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
3155         and value_in_list properties.
3156         (gtk_combo_set_value_in_list): notify change.
3157         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
3158
3159 2001-10-11  James Henstridge  <james@daa.com.au>
3160
3161         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
3162         that gtk+ can be built with automake 1.5 while not breaking
3163         things for automake 1.4.
3164
3165 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
3166
3167         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
3168         (#60606)
3169
3170         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
3171         to disable calling setlocale (LC_ALL, "").
3172
3173         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
3174         docs that this function is not typically useful.
3175
3176         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
3177         Automatically initialize GDK for the current locale
3178         on gdk_init(). Don't reset locale to C when
3179         XSupportsLocale() fails.
3180
3181         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
3182         useless checks for UTF-8 locale breakage that mattered
3183         only for X.
3184
3185         * examples/calendar/calendar.c
3186         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
3187         gtk_set_locale().
3188
3189         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
3190         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
3191
3192 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
3193
3194         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
3195
3196         Fixes bug #61904
3197
3198 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
3199
3200         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
3201         new function, #61923
3202         (gtk_tree_selection_path_is_selected): Ditto
3203
3204 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
3205
3206         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
3207         not a GtkObject.  Thanks andersca.
3208
3209         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
3210
3211 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
3212
3213         * gtk/gtktreeviewcolumn.c
3214         (gtk_tree_view_model_sort_column_changed): fix broken code.
3215
3216 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
3217
3218         * gtk/gtkselection.c: s/succesfully/successfully/g
3219
3220 2001-10-08  Havoc Pennington  <hp@pobox.com>
3221
3222         * demos/gtk-demo/stock_browser.c: remove unused enum
3223
3224         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
3225         pass the current selection state of the node in to the user
3226         selection func
3227
3228 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
3229
3230         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
3231         non-existent function gdk_x11_cursor_get_xid 
3232         by gdk_x11_cursor_get_xcursor.
3233
3234 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
3235
3236         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
3237         warning.
3238
3239         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
3240         unref nodes, #okay61676
3241
3242         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
3243         to the property; no need to clear the other columns.  Also, we go
3244         to 'unsorted' if the model supports it.
3245
3246 2001-10-05  Sven Neumann  <sven@gimp.org>
3247
3248         * demos/testpixbuf-save.c
3249         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
3250         feature.
3251
3252 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
3253
3254         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
3255         destroy the search dialog
3256
3257         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3258         added check to prevent creation of a search dialog if there's
3259         already one around
3260
3261         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
3262         it instead of "search-dialog" (when getting/setting the search dialog
3263         widget).
3264
3265 2001-10-05  Jakub Steiner <jimmac@ximian.com>
3266
3267         * gtk/stock-icons/stock_broken_image.png: broken images icon
3268
3269 2001-10-04  Havoc Pennington  <hp@pobox.com>
3270
3271         Fix #56586
3272         
3273         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
3274         accelerator setting here...
3275
3276         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
3277         because we try to use it when a menu bar hasn't necessarily been 
3278         initialized.
3279
3280 2001-10-03  Havoc Pennington  <hp@redhat.com>
3281
3282         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
3283         it previously verified incorrect behavior
3284
3285         Fixes for #61565
3286         
3287         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
3288         off the end
3289         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
3290         the end
3291         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
3292         the end
3293         (gtk_text_iter_forward_lines): if on the last line, move to end of
3294         it
3295
3296         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
3297         don't return a line off the end
3298
3299 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
3300
3301         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
3302         functions to do_insert_text and do_delete_text, add signals
3303         insert_text, delete_text and changed
3304
3305         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
3306         and changed. Updates to match new situation.
3307
3308         * gtk/gtkspinbutton.c: updates to match new situation
3309
3310         * gtk/gtkoldeditable.h: remove signals changed, insert_text
3311         and delete_text
3312
3313         * gtk/gtkoldeditable.c: updates to match new situation
3314
3315         * gtk/gtktext.c: updates to match new situation
3316
3317         Fixes bug #59803
3318
3319 2001-10-03  Havoc Pennington  <hp@redhat.com>
3320
3321         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
3322         position
3323
3324         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
3325         changes
3326
3327         * tests/testtextbuffer.c (logical_motion_tests): updates
3328
3329 2001-10-03  jacob berkman  <jacob@ximian.com>
3330
3331         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
3332         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
3333         * gtk/gtksettings.c (apply_queued_setting): 
3334         * gtk/gtkmain.c (gtk_init_check): 
3335         * gtk/gtkcontainer.c (gtk_container_child_get_property):
3336         s/retrive/retrieve/
3337
3338 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
3339
3340         * gtk/gtktreemodelsort.[ch]: preparation for surgery
3341         * tests/testtreesort.c: ditto
3342
3343 2001-10-02  Havoc Pennington  <hp@redhat.com>
3344
3345         Throughout: assorted docs
3346         
3347         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
3348         gdk_window_set_geometry_hints() should be used instead.
3349
3350         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
3351         document them
3352
3353         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
3354         seem to exist in any .c files
3355
3356         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
3357         g_return_if_fail (pixel < colormap->size).
3358
3359 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
3360
3361         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
3362         NULL for @target_list to mean, use
3363         gtk_drag_dest_get_target_list (widget).
3364
3365         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
3366         drop could hang when calling gtk_drag_finish with 
3367         success == FALSE and del == TRUE.
3368
3369         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
3370         drops without a matching target found would propagate
3371         to the parent widget rather than being rejected.
3372
3373         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
3374         Use text_view->dnd_mark instead of mark name to be
3375         consistent with the rest of the code.
3376
3377         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
3378         pendantically correct for a drop-only-in-some-places
3379         widget. (Check whether you can insert in drag_drop,
3380         not just in drag_motion ... matters in theory, and
3381         for Motif drag and drop in practice.)
3382
3383         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
3384         Damian Ivereigh to not allow drops on non-editable
3385         entries. (#61124)
3386
3387         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
3388         text to be moved from a non-editable entry.
3389         
3390 2001-10-03  James Henstridge  <james@daa.com.au>
3391
3392         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
3393         s/width/fixed_width/ in order to get things to compile.
3394
3395 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
3396
3397         * gtk/gtkcelleditable.c: docs
3398
3399         * gtk/gtktreemodel.h: more docs.
3400
3401 2001-10-02  Havoc Pennington  <hp@redhat.com>
3402
3403         * gdk/x11/gdkwindow-x11.c: docs
3404
3405         * tests/testtextbuffer.c (logical_motion_tests): add sentence
3406         boundary tests
3407
3408 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
3409
3410         * demos/gtk-demo/Makefile.am: add editable_cells.c,
3411         list_store.c and tree_store.c
3412
3413         * demos/gtk-demo/appwindow.c: remove tearoff item from
3414         File menu, put menubar and toolbar in handle boxes.
3415
3416         * demos/gtk-demo/genincude.pl: various changes to support trees
3417
3418         * demos/gtk-demo/main.c: various changes to support trees
3419
3420         * demos/gtk-demo/stock_browser.c: changed name of demo
3421         to Stock Item and Icon Browser, so geninclude.pl doesn't see
3422         it as child
3423
3424         * demos/gtk-demo/editable_cells.c: new file/demo
3425         * demos/gtk-demo/list_store.c: new file/demo
3426         * demos/gtk-demo/tree_store.c: new file/demo
3427
3428 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
3429
3430         * gtk/gtkrc.c gtk/gtksettings.c: 
3431         g_string_printfa => g_string_append_printf.
3432
3433 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
3434
3435         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
3436         and destroy handler.
3437
3438         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
3439
3440         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
3441         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
3442         Singh <yosh@gimp.org>.
3443
3444 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
3445
3446         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
3447         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
3448
3449         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
3450
3451 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
3452
3453         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
3454         scroll_to_cell delayed code to happen in size_allocate.
3455
3456         * gtk/gtkstyle.c (gtk_default_draw_expander): change
3457         prelight/normal arrow drawing.
3458
3459         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
3460
3461         * gtk/gtktreestore.c: refactor.
3462
3463 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
3464
3465         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
3466         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
3467         centers the child in relation to the to indicator height.
3468
3469 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
3470
3471         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
3472         correct
3473
3474 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
3475
3476         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
3477         property code using g_param_spec_int and changed from
3478         g_value_get_enum to g_value_get_int instead. Probably a better way
3479         to fix the problem :-)
3480
3481 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
3482
3483     * gtk/gtkcellrenderertext.c changed "weight" property type from 
3484       g_param_spec_int to g_param_spec_enum.
3485
3486 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
3487
3488         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
3489         fix: s/Wether/Whether/ in reorderable property description
3490
3491 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
3492
3493         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
3494         start editing when you select with a keyboard.
3495
3496         (gtk_tree_view_button_press_event): much more graceful now.
3497
3498         * gtk/gtkstyle.c: Draw togglebutton better.
3499
3500 2001-09-26  Havoc Pennington  <hp@redhat.com>
3501
3502         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
3503         of passing non-stock label in to gtk_dialog_new_with_buttons
3504
3505         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
3506         debugging updates
3507
3508         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
3509         are private
3510
3511         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
3512         exist, fall back to mnemonic label, not plain label, bug #61184
3513         
3514 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
3515
3516         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
3517         stupid and emitting the signal every time.
3518
3519         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
3520
3521 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
3522
3523        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
3524
3525        * contrib/gdk-pixbuf-xlib/Makefile.am: install
3526        gdk-pixbuf-xlib-2.0.pc.
3527
3528 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
3529
3530         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
3531         problem where menmonic wasn't removed properly when
3532         setting a label when there already is a label.
3533         Also, handle setting the tab label back to the same
3534         value. (#61160, #61161)
3535
3536         * gtk/gtkentry.c (paste_received): Patch from 
3537         Damian Ivereigh to replace selection if there is 
3538         one. (#61121)
3539
3540 2001-09-25  Darin Adler  <darin@bentspoon.com>
3541
3542         * tests/.cvsignore: Ignore new test program.
3543
3544 2001-09-25  Havoc Pennington  <hp@redhat.com>
3545
3546         * gtk/gtktextview.c: fix for #50317
3547         
3548 2001-09-25  Havoc Pennington  <hp@redhat.com>
3549
3550         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
3551         gtk_text_iter_can_insert
3552         
3553         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
3554
3555         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
3556          (gtk_text_iter_can_insert): new function to fix #60282, should
3557         also fix msw's "can paste into empty buffer" bug.
3558
3559         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
3560         "event object,"  #59091
3561
3562         * gtk/gtktextbtree.c: indentation fixes
3563
3564         * gtk/gtktextiter.c (find_by_log_attrs): fixes
3565
3566 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
3567
3568         * configure.in: Version 1.3.9, interface age 0, binary age 0.
3569
3570         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
3571
3572         * NEWS: Updates.
3573
3574 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
3575
3576         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
3577         function for drawing cursors between gtkentry/gtklabel/gtktextview.
3578         Should this be public? It has a bit of an odd interface, but
3579         custom editing widgets probably should be using it.
3580         Function will draw with wider width for taller cursors, and
3581         draws a little indicator arrow to indicate directoin for split 
3582         cursors.
3583
3584         * gtk/gtktextview.c: Add a "cursor_color" property.
3585
3586         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
3587         gtk_text_layout_draw().
3588
3589         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
3590         _gtk_draw_insertion_cursor().
3591
3592 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
3593
3594         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
3595         the behavior where you could turn family_set (etc) back on
3596         and get back the values you had before.
3597
3598         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
3599         g_string_ascii_up() rather than looping through the
3600         string ourself.
3601
3602 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
3603
3604         * gtk/gtktreeviewcolumn.c
3605         (gtk_tree_view_column_set_cell_renderer): Removed
3606         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
3607
3608         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
3609         Patch from Detlef Reichl
3610
3611 2001-09-25  Havoc Pennington  <hp@redhat.com>
3612
3613         * tests/testtextbuffer.c (line_separator_tests): Add tests for
3614         line separators, addresses bug #57428
3615
3616 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
3617
3618         * gtk/gtkentry.c: Make a GtkCellEditable
3619         (get_widget_window_size): Change to let it honor size_allocate
3620         when a CellEditable.
3621
3622         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
3623         editable changes.
3624         (gtk_tree_view_set_cursor): Now you can set the cursor
3625         horizontally, as well as start editing.
3626
3627         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
3628         code to look more like the other check buttons.
3629
3630         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
3631         Change the way we calculate cell size.
3632
3633         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
3634
3635         * demos/gtk-demo/sizegroup.c: Add mnemonics.
3636
3637         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
3638         Fix logic.
3639
3640         * gtk/gtkcellrenderertext.c: Change to be editable.
3641
3642         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
3643
3644         * test/testtreesort.c: Fix misspelling
3645
3646         * test/testreecolumns.c: Add mnemonics.
3647
3648         * test/testreeedit.c: New test program.
3649
3650 2001-09-25  Havoc Pennington  <hp@pobox.com>
3651
3652         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
3653         etc. docs about how these are not going to do what you want for 
3654         the X/win32 ports. Futile attempt to avoid a FAQ...
3655
3656 2001-09-24  James Henstridge  <james@daa.com.au>
3657
3658         * gtk/gtkmarshal.list (VOID): add marshal function types.
3659
3660         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
3661         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
3662         GTK_TYPE_POINTER.
3663         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
3664         with no-op copy/free functions.
3665
3666         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
3667         GtkCTreeNode get_type function.
3668
3669 2001-09-24  Havoc Pennington  <hp@redhat.com>
3670
3671         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
3672         gtktextlayout.c:
3673         Get rid of the newline-that-could-not-be-deleted; buffers may 
3674         now be zero-length. Much easier to fix than expected, once 
3675         I figured out the right way to do it. However, there are 
3676         various subtle bugs introduced by this that will have to get 
3677         sorted out. Please use bugzilla.
3678
3679 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
3680
3681         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
3682         response back from the window manager if our size hasn't changed 
3683         since we won't get a response back from the window manager;
3684         there was code in there to do this, but it was in the wrong
3685         place so if the hints change and the size didn't we'd expect
3686         a response.
3687
3688         Also, optimize the position-only-changed case by running
3689         the resize queue immediately, and clean up some comments
3690         for the changes.
3691
3692 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
3693
3694         * gtk/gtknotebook.h: Add a compat macro that got lost.
3695
3696         * gtk/gtktreestore.c: Doc fixes.
3697
3698         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
3699         leak for windows that receive events after being destroyed.
3700         (#60863, Joshua N. Pritikin)
3701
3702         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
3703         rather than gtk_container_queue_resize().
3704
3705         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
3706         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
3707         gtk_container_child_composite_name. (#60217.)
3708
3709 2001-09-22  Hans Breuer  <hans@breuer.org>
3710
3711         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
3712
3713 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
3714
3715         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
3716         weight value should be an int
3717
3718 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
3719
3720         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
3721         to gtk_menu_scroll_item_visible(). Only call
3722         gtk_menu_scroll_item_visible() if the menu widget has been
3723         realized. Fixes bug #55310.
3724
3725 2001-09-21  Havoc Pennington  <hp@redhat.com>
3726
3727         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
3728         key press to IM context if cursor isn't in an editable location;
3729         bug #58425, patch from Hidetoshi Tajima
3730
3731 2001-09-21  Havoc Pennington  <hp@redhat.com>
3732
3733         Bug #60862
3734         
3735         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
3736         (_gtk_text_btree_unref): fix up mark memory management
3737
3738         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
3739
3740 2001-09-20  Havoc Pennington  <hp@redhat.com>
3741
3742         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
3743         try to handle alignment here, because it's done by PangoLayout
3744         after we set the layout width. Fix from Dov.
3745
3746 2001-09-21  Hans Breuer  <hans@breuer.org>
3747
3748         * gdk/gdk.def :
3749         * gtk/gtk.def : updated externals
3750
3751         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
3752         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
3753         Also handle that Win32 pathes cann't be hard-coded      
3754
3755         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
3756         module, themes etc directory calculations
3757
3758         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
3759         >16 bit right. The size limit within Win9x appears _not_ to be 32767
3760         but slightly smaller ...
3761
3762         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
3763         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
3764
3765         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
3766
3767         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
3768         handling. I'm not sure if it is better now, but at least not worse
3769
3770         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
3771
3772         * gdk/win32/gdkwin32.h : reflect recent API restrictions
3773
3774 2001-09-21  Matt Wilson  <msw@redhat.com>
3775
3776         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
3777         radio_menu_item->group to NULL after removing it from the list, as
3778         it is no longer in the group. (#60869)
3779
3780         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
3781
3782 2001-09-20  Havoc Pennington  <hp@pobox.com>
3783
3784         * configure.in (PANGO_REQUIRED_VERSION)
3785         (ATK_REQUIRED_VERSION): add variables and checks for specific 
3786         versions of dependencies. Previously we didn't verify the 
3787         Pango or ATk versions.
3788
3789 2001-09-09  Havoc Pennington  <hp@pobox.com>
3790
3791         * gtk/gtktextiter.c: fool with indentation
3792         (gtk_text_iter_in_range): add g_return_if_fail
3793
3794 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
3795
3796         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
3797         ref count on new tag to be 1.  Update doc.  (#60836)
3798
3799 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
3800
3801         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
3802         call to gdk_image_new_bitmap(). (#59094, reported by
3803         by Sven Neumann)
3804
3805 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
3806
3807         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
3808         day, as well as the current month and year.
3809         (#59047, reported by Vitaly Tishkov)
3810
3811 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
3812
3813         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
3814         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
3815         
3816 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
3817
3818         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
3819
3820         (build_option_menu): add func argument, connect ::changed
3821         signal to option menu instead of connecting the ::activate
3822         signal to the menu items,
3823
3824         (toplevel): get rid of RADIOMENUTOGGLED macro,
3825
3826         (list_toggle_sel_mode), (clist_toggle_sel_mode),
3827         (ctree_toggle_line_style), (ctree_toggle_expander_style),
3828         (ctree_toggle_justify), (ctree_toggle_sel_mode),
3829         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
3830         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
3831
3832         (notebook_type_changed): merged standard_notebook(),
3833         notabs_notebook(), scrollable_notebook() and borderless_notebook()
3834         into notebook_type_changed()
3835
3836         (create_list), (create_ctree), (create_notebook),
3837         (create_progress_bar): changed OptionMenuItem arrays into
3838         gchar * arrays. Removed "Extended" item where used.
3839
3840         Fixes bug #59885
3841
3842 2001-09-20  Sven Neumann  <sven@gimp.org>
3843
3844         * configure.in
3845         * gdk/Makefile.am
3846         * gtk/Makefile.am
3847         * gtk/gtkselection.c
3848         * gtk/gtktreeview.c
3849         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
3850
3851 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
3852
3853         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
3854         a missing pango_layout_iter_free ().
3855
3856 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
3857
3858         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
3859         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
3860
3861         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
3862         the function definition so we don't accidentally rely on
3863         the compat #define from gtk_radio_menu_item_group.
3864         (#60782, Jeff Franks)
3865
3866 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
3867
3868         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
3869         incorrect values for top, right and bottom due to cut-and-paste
3870         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
3871
3872 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
3873
3874         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
3875         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
3876         window, not just on the client leader. (#58463)
3877
3878 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
3879
3880         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
3881
3882         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
3883         non-public _gtk_menu_item_set_placement.
3884
3885         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
3886
3887 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
3888
3889         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
3890           gdk/linux-fb/gdkcolor-fb.c:
3891         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
3892         (#59723)
3893
3894 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
3895
3896         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
3897         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
3898         #59723)
3899
3900 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
3901
3902         Patch from Frank Belew #59037 for Solaris compilation.
3903
3904         * gtk/maketypes.awk: Change syntax slightly for a call
3905         to sub(), apparently making awk on Solaris happier.
3906
3907         * gtk/gtktreeview.c: Remove C++ comments.
3908
3909 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
3910
3911         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
3912         to handle '99% of the time. (#60473, reported by Christian Rose)
3913
3914         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
3915         which no longer exists. (#60379, reported by Vitaly Tishkov)
3916
3917 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
3918
3919         * Released 1.3.8.
3920
3921         * gdk/Makefile.am: kill EXTRA_DIST clearing.
3922         
3923 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
3924
3925         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
3926         as its broken in automake 1.4, add explicit object rule to
3927         generate this.
3928         
3929         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
3930         get rid of uneccessary stamps, group stuff more logically, and build
3931         sources due to object rules. fix srcdir!=builddir.
3932
3933 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
3934
3935         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
3936         incorrect parameter to compute_double_length
3937         (#58680, patch from Matthias Clasen)
3938
3939         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
3940
3941         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
3942
3943         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
3944         for GDK_RELEASE_MASK to avoid warnings with Forte.
3945
3946         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
3947         break; statements.
3948
3949 2001-09-18  Alex Larsson  <alexl@redhat.com>
3950
3951         * gtk/gtkcheckbutton.c:
3952         * gtk/gtkradiobutton.c:
3953         Don't draw with GTK_STATE_ACTIVE.
3954
3955         * gtk/gtkclist.c:
3956         * gtk/gtkctree.c:
3957         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
3958
3959         * gtk/gtktextdisplay.c:
3960         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
3961         unfocused with base_gc [GTK_STATE_ACTIVE].
3962         
3963         * gtk/gtkentry.c:
3964         Add select all menu-item.
3965         Default cursor color is red.
3966         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
3967         unfocused with base_gc [GTK_STATE_ACTIVE].
3968
3969         * gtk/gtklabel.[ch]:
3970         Add keynav + menu to selectable lables.
3971         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
3972         unfocused with base_gc [GTK_STATE_ACTIVE].
3973
3974         * gtk/gtkfilesel.c:
3975         Add drag and drop support.
3976
3977         * gtk/gtkstyle.c:
3978         (This was checked in earlier)
3979         New default values for text/base SELECTED and ACTIVE
3980         
3981 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
3982
3983         * configure.in: up version to 1.3.8, interface age 0,
3984         binary age 0, depend on glib 1.3.8.
3985
3986         * NEWS: 1.3.8 updates.
3987
3988 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
3989
3990         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
3991         the editing code
3992
3993         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
3994         reason to call it beyond emiting the two signals.
3995
3996         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
3997         to GtkEntry.
3998
3999 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
4000
4001         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
4002           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
4003         PangoFontDescription.
4004
4005         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
4006         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
4007         structure.
4008   
4009         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
4010
4011         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
4012         direct access to style->font. Deprecate gtk_style_ref/unref.
4013   
4014         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
4015         Remove gtk_style_ref/unref with g_object_ref/unref.
4016   
4017         * gtk/gtkcalendar.c: Remove leftover macros accessing
4018         style->font.
4019   
4020         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
4021         variable.
4022   
4023         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
4024         style->font.
4025
4026 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
4027
4028         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
4029         "can_activate" properties in favor of
4030         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
4031         and GTK_CELL_RENDERER_MODE_EDITABLE
4032
4033 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
4034
4035         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
4036         editable widgets.  This function is private, and should only be
4037         used by GtkTreeView.
4038
4039 2001-09-18  Matt Wilson  <msw@redhat.com>
4040
4041         * docs/Makefile.am (EXTRA_DIST): don't use += before =
4042
4043         * docs/faq/Makefile.am (EXTRA_DIST): likewise
4044
4045         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
4046         
4047         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
4048         (EXTRA_HEADERS): likewise
4049
4050         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
4051         (EXTRA_HEADERS): likewise
4052         (EXTRA_DIST): likewise
4053         (CLEANFILES): likewise
4054
4055         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
4056
4057         * tests/Makefile.am (EXTRA_DIST): likewise
4058         
4059         * Makefile.am (install-data-local): changed to use
4060         install-data-hook, which runs after install-pkgconfigDATA, so that
4061         the pkgconfigdir will have been created and populated first.
4062
4063 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
4064
4065         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
4066         be the last big GtkTreeView API change.
4067
4068         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
4069         replace with "activate" and "start_editing".  Also, added a
4070         "can_activate" and "can_edit" property.
4071
4072         * gtk/gtktreeviewcolumn.c: modify to use above.
4073
4074 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
4075
4076         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
4077
4078 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
4079
4080         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
4081         icon instead of one with ugly white background.
4082
4083 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
4084
4085         * demos/gtk-demo/stock_browser.c (id_to_macro): make
4086         the uppercasing work. (#59550)
4087
4088 2001-09-14  Jakub Steiner <jimmac@ximian.com>
4089
4090         * gtk/stock-icons/dialog_error.png:
4091         * gtk/stock-icons/dialog_question.png: more road signs
4092
4093 2001-09-13  Jakub Steiner <jimmac@ximian.com>
4094
4095         * gtk/stock-icons/dialog_question.png:
4096         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
4097           like a road sign.
4098
4099 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
4100
4101         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
4102         signals to make them more clear.  Also, change ::range_changed to
4103         ::row_changed.
4104         * gtk/gtktreemodel.c: Adjust to interface change
4105         * gtk/gtktreemodel.h: ditto
4106         * gtk/gtktreemodelsort.c: ditto
4107         * gtk/gtktreestore.c: ditto
4108         * gtk/gtkliststore.c: ditto
4109         * gtk/gtktreeview.c: ditto
4110         * tests/testtreecolumns.c: ditto
4111         * gtk/gtkmarshal.list: Actually remove a marshaller!
4112
4113 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
4114
4115         * gtk/gtktextview.c
4116         Add support for Ctrl+Up/Down arrow to move cursor to beginning
4117         of previous/next paragraph. If within a paragraph cursor moves to
4118         beginning of that paragraph.
4119
4120 2001-09-12  Jakub Steiner <jimmac@ximian.com>
4121
4122         * gtk/stock-icons/dialog_question.png: replacing the shaky
4123           question mark with a sans-serif one.
4124         * gtk/stock-icons/stock_top.png, stock_bottom.png,
4125      stock_first.png, stock_last.png: using the new style arrows
4126         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
4127      colors.
4128         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
4129      color.
4130         * gtk/stock-icons/stock_zoom*: anti-aliased
4131         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
4132      '-' with a '_', removed the wrong files
4133
4134 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
4135  
4136         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
4137  
4138         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
4139         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
4140         than in gtk-2.0/major.minor.micro/<type>/. This
4141         works better for a search path for modules.
4142  
4143         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
4144         gtk_binary_version variable holding major.minor.(micro-binary_age).
4145  
4146         * modules/input/Makefile.am (moduledir): Fix installation
4147         directory to match change in lookup location.
4148  
4149         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
4150         suffixes. Needs to be handled in g_module_build_path().
4151
4152         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
4153         appropriate.
4154  
4155 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
4156
4157         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
4158         causing RC properties not to work.
4159
4160 2001-09-11  Jakub Steiner <jimmac@ximian.com>
4161
4162         * gtk/stock-icons/dialog-error.png: less drastic
4163         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
4164           "STOP" is international enough.
4165         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
4166         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
4167
4168 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
4169
4170         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
4171         (add|remove)_selection_clipboard symmetric. (bug #59836)
4172
4173         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
4174         Avoid SEGV for empty tree. (bug #60243)
4175
4176 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
4177
4178         * tests/testgtk.c (create_idle_test): slight fix for
4179         g_object_set() not usable for nesting anymore.
4180
4181         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
4182         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
4183         properties, supply ::shadow_type properties instead as most
4184         other widgets do.
4185
4186 2001-09-10  Alex Larsson  <alexl@redhat.com>
4187
4188         * demos/gtk-demo/stock_browser.c:
4189         * gdk/gdkcolor.c:
4190         * gdk/gdkfont.c:
4191         * gdk/gdkcursor.c:
4192         * gdk/gdkevents.c:
4193         * gdk/gdkrectangle.c:
4194         * gtk/gtktypeutils.c:
4195         Update to use the new g_boxed_type_register_static API.
4196
4197 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
4198
4199         * gtk/gtktreestore.c:
4200         Fix looping in gtk_tree_store_init() waiting for zero random int.
4201
4202 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
4203
4204         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
4205         behaviour which havoc broke. they have to default to 1.0 for
4206         expand behaviour.
4207
4208         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
4209
4210 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
4211
4212         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
4213         Amend previous change to avoid runtime error in g_param_spec_ref()
4214
4215 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
4216
4217         * gtk/gtkrc.c (insert_rc_property): Fix blank line
4218         in the wrong place.
4219
4220 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
4221
4222         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
4223         do a lookup immediately after creating style->property_cache,
4224         since bsearch crashes on zero length for Solaris.
4225         (Found by Padraig O'Briain.)
4226
4227 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
4228
4229         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
4230         Really return NULL if not set.
4231         (gtk_widget_init): Remove unused varaible.
4232         
4233 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
4234
4235         * configure.in:
4236         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
4237         in cvs.
4238
4239 2001-09-08  Havoc Pennington  <hp@pobox.com>
4240
4241         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
4242         people might want to use
4243
4244 2001-09-08  Havoc Pennington  <hp@pobox.com>
4245
4246         * gtk/gtkalignment.c (gtk_alignment_class_init): default
4247         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
4248
4249         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
4250
4251         * gtk/gtktextiter.c: fix docs
4252         (gtk_text_iter_spew): get rid of this
4253
4254         * gtk/gtklayout.c: docs
4255
4256         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
4257         to center image and label together, instead of having image on
4258         left and label centered, patch/suggestion from Jacob
4259
4260         * gtk/gtkdialog.c: docs
4261
4262 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
4263
4264         * gtk/gtkliststore.c: Write documentation
4265         * gtk/gtktreestore.c: Write documentation
4266
4267 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
4268
4269         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
4270         with GArray and bsearch(), to remove dependency on a still
4271         evolving interface that we want to keep private to glib/gobject. 
4272
4273 2001-09-08  Havoc Pennington  <hp@pobox.com>
4274
4275         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
4276         docs fixes
4277
4278         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
4279
4280         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
4281
4282         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
4283
4284         * gtk/gtkscrolledwindow.h: docs fixes
4285
4286         * gtk/gtkimage.c (gtk_image_new): docs fixes
4287
4288 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
4289
4290         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
4291         false alarm  constness warning with a cast.
4292
4293         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
4294         for the inside-gdk case.
4295
4296 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
4297
4298         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
4299         remove g_print.
4300
4301         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
4302         change models, #59899
4303
4304 2001-09-07  Havoc Pennington  <hp@pobox.com>
4305
4306         * gtk/gtkmain.c: move some docs inline
4307
4308 2001-09-07  Havoc Pennington  <hp@pobox.com>
4309
4310         * gtk/gtk.h: tsk tsk, jrb broke the build
4311
4312 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
4313
4314         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
4315         Removed 'fill' attribute.  It was silly b/c that was a property of
4316         the cell renderer, anyway.
4317         (gtk_tree_view_column_render): Actually render the packed
4318         renderers.
4319         * doc/tree-column-sizing.txt: initial devel documentation.
4320         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
4321         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
4322
4323         * tests/testtreefocus.c: fix up to reflect above changes.
4324         * tests/testtreeview.c: ditto
4325         * demos/gtk-demo/stock_browser.c: ditto
4326
4327 2001-09-07  Alex Larsson  <alexl@redhat.com>
4328
4329         * gdk/linux-fb/gdkcolor-fb.c:
4330         Removed unused function.
4331         
4332         * gdk/linux-fb/gdkdrawable-fb2.c
4333         * gdk/linux-fb/gdkfont-fb.c:
4334         Use PangoLanguage functions.
4335
4336         * gdk/linux-fb/gdkinput.c:
4337         * gdk/linux-fb/gdkselection-fb.c:
4338         Fix const warnings.
4339         
4340         * gdk/linux-fb/gdkwindow-fb.c:
4341         Fix warning. Implement gdk_window_set_icon_list() and
4342         gdk_window_get_frame_extents(). (No icon support yet though.)
4343
4344         * gtk/gtkwindow.c (gtk_window_get_position):
4345         If window->frame is set get the extents of it instead.
4346         
4347 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
4348
4349         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
4350         Make the default default colormap the GdkRGB colormap,
4351         not the system colormap.
4352
4353         * gtk/gtkinvisible.c (gtk_invisible_init) 
4354           gtk/gtkwindow.c (gtk_window_init): Set the current
4355         colormap, as returned by _gtk_widget_peek_colormap()
4356         on the widget.
4357
4358         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
4359         to GTK+. Make it return %NULL instead of the default
4360         colormap if no colormap has explicitely been pushed.
4361
4362         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
4363         colormaps on ancestral widgets before defaulting the
4364         the system default colormap.
4365
4366         * docs/Changes-2.0.txt: explain colormap changes.
4367
4368 2001-09-07  Havoc Pennington  <hp@redhat.com>
4369
4370         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
4371         #57424
4372
4373 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
4374
4375         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
4376         make gdk_set_use_xshm a noop. Remove --no-xshm command line
4377         option. If we aren't autodetecting properly, we need
4378         to fix the problem, or at least make it an environment
4379         variable setting, to avoid problems with propagating
4380         to embedded children, plugins, etc.
4381
4382         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
4383
4384         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
4385         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
4386         New function to render a pixmap and mask for a particular colormap.
4387
4388         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
4389         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
4390         of internal implementation of the same.
4391
4392 2001-09-07  Havoc Pennington  <hp@redhat.com>
4393
4394         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
4395         debug code that seems to have caused a breakpoint in valid cases
4396         
4397         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
4398         pointer on the first view when adding the second view, fixes
4399         crash when closing gtk-demo text test with active selection
4400
4401         * gtk/gtktextbuffer.c
4402         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
4403         clipboards in the list of clipboards - probably fixes #59836
4404
4405 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
4406
4407       Make gdkx.h the only installed header from gdk/x11.
4408       All structures in gdk/x11 are opaque.
4409
4410         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
4411         Don't install gdk{drawable,pixmap,window}-x11.h.
4412
4413         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
4414         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
4415         GdkVisualClass into C files.
4416
4417         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
4418
4419         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
4420         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
4421         Add public functions to replace previously exported direct
4422         structure access.
4423         gdk_x11_colormap_get_{xdisplay,xcolormap} 
4424         gdk_x11_cursor_get_{xdisplay,xcursor},
4425         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
4426         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
4427         gdk_x11_gc_get_{xdisplay,ximage}
4428         
4429         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
4430         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
4431
4432       Fix a number of variables and functions that were exported
4433       "accidentally" from GDK.
4434
4435         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
4436         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
4437         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
4438         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
4439         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
4440         gdk_event_queue_find_first, gdk_event_queue_remove_link,
4441         gdk_event_queue_append, gdk_event_button_generate,
4442         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
4443
4444         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
4445            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
4446         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
4447         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
4448         gdk_use_xshm, gdk_input_ignore_core.
4449
4450         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
4451         #defines to namespace functions into the private _gdk_ 
4452         namespace.
4453
4454         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
4455         to replace gdk_parent_root exported variable. Adjust and
4456         deprecate GDK_ROOT_PARENT().
4457
4458         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
4459         GDK_ROOT_PARENT usage, remove includes of port-specific
4460         headers.
4461
4462         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
4463         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
4464         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
4465
4466         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
4467         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
4468         gdk_wm_delete_window functions, gdk_wm_take_focus, 
4469         use gdk_atom_intern() instead.
4470
4471         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
4472           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
4473           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
4474           gtk/gtkselection.c 
4475         Unexport gdk_selection_property, just use 
4476         gdk_atom_intern ("GDK_SELECTION").
4477
4478         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
4479         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
4480         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
4481         GdkVisualprivate, gdk_x11_gc_flush.
4482
4483       Make a number of public exports of variables into functions
4484       to increase encapsulation.
4485
4486         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
4487         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
4488         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
4489
4490         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
4491         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
4492         gdk_error_warnings.
4493
4494         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
4495           docs/Changes-2.0.txt: 
4496         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
4497         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
4498         Add gdk_x11_get_default_xdisplay().
4499
4500         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
4501         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
4502         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
4503         Don't export gdk_progclass, move --class command line
4504         option and handling to common portion of GDK.
4505
4506       Miscellaneous fixes:
4507
4508         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
4509         g_return_val_if_fail that should have been g_return_if_fail.
4510
4511         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
4512         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
4513
4514         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
4515         X11 dependency.
4516
4517         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
4518         Remove unused gdk_key_repeat_disable/restore.
4519
4520         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
4521         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
4522         Remove unused gdk_null_window_warnings variable.
4523
4524         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
4525         it can be retrieved from the repository; it is too far
4526         from functional to be worth having people check out;
4527         it would be easier to start from scratch, I suspect.
4528
4529         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
4530
4531         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
4532         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
4533         Fix some accidentally global variables and unused global variables.
4534
4535         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
4536         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
4537         Fix some accidentally global variables and unused global variables.
4538
4539       Add some space for future expansion to multihead.
4540
4541         * gdk/gdkdrawable.h: Add four reserved function pointers
4542         for future expansion of GdkDrawableClass.
4543
4544         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
4545         where we can put a GdkScreen * later.
4546
4547 2001-09-07  Havoc Pennington  <hp@redhat.com>
4548
4549         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
4550         adjustments after validating destination yrange; fixes #53918
4551         (This may cause other issues, but I hope it won't)
4552         
4553 2001-09-05  Havoc Pennington  <hp@redhat.com>
4554
4555         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
4556         line into start line, update the character counts in parent nodes; 
4557         caused a bug when end and start line had different parent nodes.
4558
4559 2001-08-30  Havoc Pennington  <hp@redhat.com>
4560         
4561         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
4562         assertion that tag is in a table
4563
4564 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
4565
4566         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
4567         g_strcasecmp on NULL strings. (#59058)
4568
4569 2001-09-06  Alex Larsson  <alexl@redhat.com>
4570
4571         * gtk/gtkbin.c:
4572         * gtk/gtkfontsel.c:
4573         * gtk/gtkspinbutton.c:
4574         * gtk/gtktipsquery.c:
4575         Use GtkType/GType instead of uint.
4576
4577 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
4578
4579         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
4580         sort column.
4581
4582         * gtk/gtktreestore.c (gtk_list_store_init): ditto
4583
4584         * gtk/gtktreesortable.c: add docs.
4585
4586 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
4587
4588         * Version 1.3.7
4589
4590         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
4591         docs for gtk-config
4592
4593         * modules/input/Makefile.am (install-data-local): Don't
4594         run gtk-query-immodules if DESTDIR is set.
4595
4596         * NEWS: Various additions.
4597
4598 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
4599
4600         * NEWS: updates for 1.3.7 release.
4601
4602 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
4603
4604         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
4605         handle default sort feature
4606
4607         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
4608         new function to handle default sort.
4609         (gtk_tree_sortable_has_default_sort_func): check if default sort
4610         is set.
4611
4612         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
4613         handle default sort feature
4614
4615 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
4616
4617         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
4618         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
4619         #59731
4620
4621 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
4622
4623         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
4624         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
4625         time, #59727
4626
4627         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
4628         correctly.
4629
4630 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
4631
4632         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
4633         so that we don't eternally update the keymap after we
4634         get a change notification.
4635
4636         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
4637         incorrect cast.
4638
4639 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
4640
4641         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
4642         it working. It mostly works now, although there're still a few issues
4643         to be worked out.
4644
4645         * tests/testtreesort.c (main): changes to have a better test
4646         application for the GtkTreeModelSort.
4647
4648 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
4649
4650         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
4651         fix for bug #59222.
4652
4653         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
4654         gpointer search_data argument to function definition and
4655         prototype, to match GtkTreeViewSearchEqualFunc typedef.
4656
4657 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
4658
4659         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
4660         per jrb's request.
4661
4662 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
4663
4664         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
4665
4666         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
4667
4668 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
4669
4670         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
4671         Instead of always mirroring the selection to a single PRIMARY
4672         selection, allow it to be mirrored to any number of clipboards.
4673
4674         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
4675         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
4676
4677         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
4678         GtkClipboard argument, and for paste_clipboard, the
4679         @override_location argument from @paste_primary.
4680
4681         * gtk/gtktextview.c: Adapt to above change.
4682         
4683 2001-08-30  Havoc Pennington  <hp@redhat.com>
4684
4685         * gtk/gtktextview.c (invalidated_handler): put validate idle at
4686         resize - 2 just for flexibility
4687
4688 2001-08-30  Havoc Pennington  <hp@redhat.com>
4689
4690         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
4691         object from the empty-child-anchor case by drawing a little box.
4692         
4693         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
4694         if the child anchor has no anchored widgets - fixes #59328.
4695
4696         Also, remove bizarre deletion of preedit string that seems to have
4697         gotten in here somehow.
4698
4699 2001-08-30  Havoc Pennington  <hp@redhat.com>
4700
4701         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
4702         to #58420 from Hidetoshi Tajima and Matthias Clasen
4703
4704 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
4705
4706         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
4707         change color when the GtkTreeView loses focus.
4708
4709         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
4710         ditto.
4711         
4712         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
4713
4714 2001-08-28  Havoc Pennington  <hp@pobox.com>
4715
4716         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
4717
4718 2001-08-28  Havoc Pennington  <hp@pobox.com>
4719
4720         * demos/gtk-demo/main.c (setup_default_icon): add default icon
4721
4722         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
4723         warning fix
4724         (gtk_radio_button_new_with_label): warning fix
4725
4726         * gtk/gtkdnd.c: used some random GtkImage private structs, 
4727         update to reflect GtkImage changes
4728
4729         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
4730         whether the hint is supported, just always set the icon. A task
4731         list might want to use it even if the WM doesn't, and the WM may
4732         change over time. Also, XDeleteProperty() if list == NULL.
4733
4734         * gtk/gtkwindow.c (gtk_window_set_icon_list)
4735         (gtk_window_get_icon_list)
4736         (gtk_window_set_icon)
4737         (gtk_window_get_icon)
4738         (gtk_window_set_default_icon_list)
4739         (gtk_window_get_default_icon_list):
4740         new functions
4741
4742         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
4743
4744         * gtk/gtkimage.c: Implement property support, bug #59408
4745
4746         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
4747         on reparent-without-removing-first a bit more helpful.
4748         Let's just destroy this FAQ.
4749
4750 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
4751
4752         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
4753         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
4754
4755 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
4756
4757         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
4758         of use_text_format to the end of the function. (#56447)
4759
4760 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
4761
4762         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
4763         only in response to an area_prepared signal.
4764
4765 2001-08-28  Alex Larsson  <alexl@redhat.com>
4766
4767         * gtk/gtkwidget.c (gtk_widget_class_init):
4768         Make unrealize GTK_RUN_LAST.
4769
4770 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
4771
4772         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
4773         with_label and with_mnemonic should create radio buttons, not
4774         check buttons
4775
4776 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
4777
4778         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
4779         * tests/treestoretest.c (make_window): ditto
4780         * demos/gtk-demo/main.c (create_tree): ditto
4781         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
4782
4783 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
4784
4785         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
4786         GTK selection types rather than GtkTreeSelectionMode.
4787
4788         * docs/Changes-2.0: Add comment about selection change.
4789
4790 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
4791
4792         * gtk/gtkenums.h (GtkSelectionMode): deprecate
4793         GTK_SELECTION_EXTENDED.
4794
4795         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
4796         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
4797
4798         * gtk/gtkctree.c: ditto
4799
4800         * gtk/gtklist.c: ditto
4801
4802         * gtk/gtktree.c: ditto
4803
4804 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
4805
4806         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
4807         of typos in compat macros. (#59624, Skip Montaro)
4808
4809 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
4810
4811         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
4812         macro.
4813
4814          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
4815  
4816         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
4817         interface to be a standard setter from gtk_menu_item_right_justify.
4818         (gtk_menu_item_get_right_justified): a getter to go with the setter
4819
4820         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
4821         gtk_menu_item_right_justify.
4822
4823         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
4824         gtk_menu_item_set_right_justified.
4825  
4826 2001-08-27  Jens Finke <jens@gnome.org>
4827
4828         * gtk+.spec.in: Updated to match gpp requirements, reworked the
4829         files section to make it work with 1.3.x releases.
4830
4831 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
4832
4833         * gtk/gtkbutton.[ch]:
4834         Add properties for labels, mnemonics and stock items.
4835         Added C accessor functions for the properties.
4836         Removed deprecated button->child.
4837
4838         * gtk/gtkradiobutton.c:
4839         * gtk/gtktogglebutton.c:
4840         Update to use the functions in GtkButton.
4841
4842         * gtk/gtkcheckbutton.c:
4843         Update to use the functions in GtkButton.
4844         Changed size allocation of child. Now only gets as much
4845         space as it requests.
4846
4847         * gtk/gtkclist.c:
4848         Don't use GtkButton->child
4849
4850         * gtk/gtklabel.c:
4851         Fixed typo in docs
4852         
4853 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
4854
4855         * tests/testgtk.c:
4856         * tests/Makefile.am:
4857         Ressurect the properties test.
4858         I don't care if it is inferior, I just want to test my property code.
4859
4860 2001-08-25  Chema Celorio  <chema@celorio.com>
4861
4862         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
4863         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
4864         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
4865
4866 2001-08-24  Havoc Pennington  <hp@pobox.com>
4867
4868         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
4869         these are already in gtkmenu.h, and the copies
4870         here were broken.
4871
4872         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
4873
4874         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
4875         special-case bitmaps to allow no colormap
4876         (bitmap1): implement no-colormap bitmap-getting
4877         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
4878         alpha
4879         (rgb8): indentation
4880         (rgb1a, rgb1): change the way we read the data out of the image, 
4881         old way didn't seem to work quite right.
4882
4883         I'm pretty sure a lot of the rgbconvert code is still broken.
4884         
4885         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
4886         above position constraint (I really intended to do this before,
4887         don't know what's up with that)
4888         (gtk_XParseGeometry): shut up gcc
4889
4890         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
4891         and "0" should have been. remove the attempted 4-bytes-at-once
4892         optimization, it was totally broken.
4893
4894 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
4895
4896         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
4897         on push to buttons (based on patch from Soeren Sandmann, #54720)
4898
4899           - Add child_displacement_x/y style properties to control how far the
4900             child moves when the button is depressed.
4901
4902           - Add non-exported function _gtk_button_set_depressed to clean
4903             up the handling of the in/out shadow and separate it frmo
4904             widget->state.
4905
4906           - Lots of code cleanup and simplification of state handling
4907             for GtkButton/GtkToggleButton.
4908  
4909         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
4910         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
4911
4912 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
4913
4914         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
4915         and make gtk_image_new() take no arguments. The compiler will
4916         catch it, and it is vastly more useful than having
4917         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
4918
4919         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
4920         to add tearoff-title property (#51319, Lee Mallabone)
4921
4922 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
4923
4924         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
4925         gtk_menu_item_configure(). (#58925)
4926
4927 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
4928
4929         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
4930         "use_align" to give people the option to just make a cell visible.
4931
4932         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
4933         we were scrolling past the end of the tree.
4934
4935         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
4936         rename gtk_tree_view_column_pack_start_cell_renderer to
4937         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
4938
4939 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
4940
4941         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
4942         a stray g_object_ref() left over from gtk_object_ref/sink.
4943         (Pointed out by Josh Pritikin.)
4944
4945 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
4946
4947         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
4948         to gtk_container_get_children. Added deprecated compatibility
4949         macro. (Suggested by Vitaly Tishkov, #59051)
4950
4951         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
4952         calls.
4953
4954 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
4955
4956         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
4957         gtk_menu_bar_append/prepend/insert, forgot to do this
4958         when we deprecated gtk_menu_append/prepend/insert.
4959
4960         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
4961         compat macros.
4962
4963         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
4964         renamed by compat macro.
4965
4966         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
4967         gtk_font_selection_dialog_get_font(). (Suggested by
4968         Vitaly Tishkov, #59383)
4969
4970 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
4971
4972         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
4973         Rename from gtk_text_tag_table_size(). (#59366)
4974
4975 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
4976
4977         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
4978         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
4979         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
4980         (#59173).
4981
4982 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
4983
4984         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
4985         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
4986         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
4987
4988 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
4989
4990         [ Patch from Sebastian Wilhelmi, 52790 ]
4991
4992         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
4993
4994         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
4995         Move compatibility macros from g[dt]kcompat.h to within 
4996         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
4997
4998         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
4999
5000         * demos/Makefile.am demos/gtk-demo/Makefile.am 
5001           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
5002           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
5003
5004         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
5005                  testpixbuf.c}: Fix usages of deprecated functions.
5006
5007 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
5008
5009         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
5010         when changing models.
5011
5012 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
5013
5014         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
5015         We check the current event for modifiers rather than try to trap
5016         all presses.
5017
5018 2001-08-22  Anders Carlsson  <andersca@gnu.org>
5019
5020         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
5021         It's LIST_STORE, not LISTSTORE.
5022
5023 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
5024
5025         * gtk/gtk.h: Remove commented out gtkpacker reference.
5026
5027 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5028
5029         * configure.in (all_loaders): Add tga loader, 
5030         patch by Nicola Girardi. (#56067)
5031
5032 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
5033
5034         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
5035         a little.  More needs to be done tomorrow.
5036
5037 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
5038
5039         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
5040
5041 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
5042
5043         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
5044         reported by Kristian Rietveld <kristian@planet.nl> to handle row
5045         == NULL.
5046         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
5047         <kristian@planet.nl> to change destroy order.
5048
5049 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
5050
5051         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
5052         correct marshaller.
5053
5054 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
5055
5056         * gtk/gtkliststore.c: Fix up warnings, #58928.
5057
5058         * gtk/gtktreeselection.h: Change signal prototype, #58647
5059
5060         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
5061         #59221.
5062
5063         * gtk/gtkstyle.c: Actually prelight arrow, #50981
5064         
5065 2001-08-18  Hans Breuer  <hans@breuer.org>
5066
5067         * gdk/gdk.def : updated externals
5068
5069         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
5070         is required to get (at least) visible in entry fields. Some selections
5071         are really handled now - even on win32 - but copying via middle
5072         mouse button into a different app needs to wait ... 
5073
5074         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
5075         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
5076
5077         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
5078         handling. I'm not sure if it is better now, but at least not worse
5079
5080         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
5081         with SetWindowPos () which allows more fine-tuning backing-store wise
5082
5083         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
5084         Also changed move/resize to be more like the X version.
5085
5086         * gtk/gtk.def : updated externals
5087
5088 2001-08-19  Sven Neumann  <sven@gimp.org>
5089
5090         * gtk/gtktooltips.c
5091         * tests/testtreesort.c
5092         * tests/treestoretest.c: inserted some casts to get rid of compiler
5093         warnings.
5094
5095 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
5096
5097         * gtk/gtktreeviewcolumn.c
5098         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
5099
5100         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
5101         (_gtk_tree_view_find_node): If *node is NULL,
5102         *tree should be NULL too.
5103
5104         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
5105         column/renderers.
5106         * tests/testtreecolumns.c: ditto
5107         * tests/testtreefocus.c: ditto
5108         * tests/testtreesort.c: ditto
5109         * tests/testtreeview.c: ditto
5110         * tests/treestoretest.c: ditto
5111
5112 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
5113
5114         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
5115         signals; is_expander/is_expanded.
5116
5117         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
5118         pixbufs.
5119
5120         * gtk/gtktreeview.c: set above properties.
5121
5122 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
5123
5124         * gtk/gtkwidget.h: Really remove set_default_style().
5125
5126         * docs/Changes-2.0.txt: added a note about
5127         gtk_widget_push/pop/set_default_style.
5128
5129 2001-08-18  Havoc Pennington  <hp@pobox.com>
5130
5131         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
5132         hints_changed in addition to the other cases.
5133         (gtk_window_move_resize): include last position from configure
5134         notify in debug spew
5135
5136 2001-08-18  James Henstridge  <james@daa.com.au>
5137
5138         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
5139         second argument to the weak ref notify, cleaning up some uglyness.
5140         (gtk_accel_group_attach): remove and add the weak notifier when
5141         changing the accel groups slist.
5142         (gtk_accel_group_detach): same here.
5143
5144 2001-08-17  Darin Adler  <darin@bentspoon.com>
5145
5146         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
5147         missing parameters to utf8 functions to make it compile.
5148
5149 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
5150
5151         * gtk/gtktreeprivate.h:
5152         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
5153         (gtk_tree_view_init), (gtk_tree_view_set_property),
5154         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
5155         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
5156         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
5157         (gtk_tree_view_set_destroy_count_func),
5158         (gtk_tree_view_set_enable_search),
5159         (gtk_tree_view_get_enable_search),
5160         (gtk_tree_view_get_search_column),
5161         (gtk_tree_view_set_search_column),
5162         (gtk_tree_view_get_search_equal_func),
5163         (gtk_tree_view_set_search_equal_func),
5164         (gtk_tree_view_search_dialog_destroy),
5165         (gtk_tree_view_search_position_func),
5166         (gtk_tree_view_interactive_search),
5167         (gtk_tree_view_search_delete_event),
5168         (gtk_tree_view_search_button_press_event),
5169         (gtk_tree_view_search_key_press_event),
5170         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
5171         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
5172         * gtk/gtktreeview.h:
5173         Add heavily modified patch from Kristian Rietveld to handle
5174         interactive searching.
5175
5176 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
5177
5178         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
5179         string parameter.
5180
5181         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
5182         GtkMenuShell::selection_done, now that we have it, instead of 
5183         ::deactivate so we're not tearing the menu apart and notify
5184         the user prematurely.
5185
5186 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
5187
5188         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
5189         window, clear window->need_default_position to avoid infinite loops.
5190         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
5191
5192 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
5193
5194         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
5195         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
5196         (gtk_tree_view_set_property): don't cast possible NULL objects.
5197         (gtk_tree_view_destroy): reset the model to NULL.
5198
5199         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
5200         parent_class handler.
5201
5202 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5203
5204         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
5205
5206 2001-08-17  Anders Carlsson  <andersca@gnu.org>
5207
5208         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
5209         point numbers so that the result will be floating point.
5210
5211 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5212
5213         * tests/testgtk.c (create_handle_box): 
5214         (create_toolbar): Replace gtk_window_set_policy calls by
5215         gtk_window_set_resizable.
5216
5217 2001-08-16  Jakub Steiner <jimmac@ximian.com>
5218
5219         * gtk/stock-icons/dialog_info.png: new style bulb
5220         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
5221         * gtk/stock-icons/dialog_warning.png: need a hand?
5222         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
5223           the aa border gets chopped off ok
5224         * gtk/stock-icons/stock_colorselector.png: using the new hand
5225         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
5226           this one is for, but the old icon was butt ugly.
5227         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
5228         * gtk/stock-icons/stock*_insert_object.png: "
5229         * gtk/stock-icons/stock_index.png: using new hand icon
5230         * gtk/stock-icons/stock*_new.png: the document template being used 
5231           elsewhere too
5232         * gtk/stock-icons/stock*_print*.png: new print and print preview 
5233           icons (panel/menu)  
5234         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
5235           icons based on Tuomas' floppy image.
5236         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
5237         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
5238         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
5239         * gtk/stock-icons/stock*_undelete.png: "
5240         * gtk/stock-icons/stock_preferences.png: I have a version with a 
5241           document base if the sliders are no good.
5242         * gtk/stock-icons/stock_properties.png: properties 
5243         
5244
5245         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
5246           (tigert@ximian.com) clipboard icons
5247         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
5248         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
5249         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
5250           little bigger IMHO
5251
5252 2001-08-16  Sven Neumann  <sven@gimp.org>
5253
5254         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
5255
5256 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
5257
5258         * gtk/gtkcellrenderertext.c:
5259         Avoid warning when specifying NULL for "attributes" property
5260
5261 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5262
5263         * docs/debugging.txt: Add a warning about --enable-debug=no,
5264         some editorial changes.
5265
5266 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5267
5268         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
5269         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
5270         debugging info, remove unused debug flags. (#58330)
5271
5272 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
5273
5274         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
5275         (gtk_tree_selection_select_all): Remove strict checking for rows.
5276
5277 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5278         
5279         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
5280         Don't remove the tooltip window when the tip text changes. (#15891)
5281
5282 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
5283
5284         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
5285         $(srcdir).
5286
5287 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
5288
5289         * Makefile.am (EXTRA_DIST): Fix problem with trying to
5290         dist files from intl/, which is no longer there.
5291
5292 2001-08-11  Hans Breuer  <hans@breuer.org>
5293
5294         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
5295           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
5296           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
5297           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
5298           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
5299           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
5300
5301         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
5302           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
5303         GDK_TYPE_EVENT signals
5304
5305         * gtk/gtkalignment.c : removed 'direct allocation bug',
5306         which Tim discovered while reading the patch
5307
5308 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
5309
5310         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
5311         compat macros for push/pop/set_visual that were supposed
5312         to be added a long time ago, but got dropped. 
5313
5314 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
5315
5316         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
5317         property notifies.
5318
5319 2001-08-07  Havoc Pennington  <hp@pobox.com>
5320
5321         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
5322
5323         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
5324         some fixage is needed here, but nothing simple. Owen understands
5325         it. ;-)
5326
5327         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
5328         sizing and positioning.  Also, fix bug in compute_geometry_hints
5329         (width/height confusion for setting min size). 
5330         (gtk_window_move): new function
5331         (gtk_window_resize): new function
5332         (gtk_window_get_size): new function
5333         (gtk_window_get_position): new function
5334         (gtk_window_parse_geometry): new function
5335         
5336         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
5337         (gtk_widget_get_size_request): new function
5338         (gtk_widget_get_usize): delete, that was a short-lived function
5339         ;-)
5340         (gtk_widget_set_usize): deprecate
5341         (gtk_widget_set_uposition): deprecate, make it a trivial 
5342         gtk_window_move() wrapper
5343         (gtk_widget_class_init): remove x/y/width/height properties,
5344         add width_request height_request
5345         
5346         * demos/*: update to avoid deprecated functions
5347         
5348         * gtk/gtklayout.c: add x/y child properties
5349
5350         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
5351         uses of "gint16"
5352
5353         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
5354         sizing test
5355
5356         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
5357         configure events on toplevel windows are always in root window
5358         coordinates, following ICCCM spec that all synthetic events 
5359         are in root window coords already, while real events are 
5360         in parent window coords. Previously the code assumed that 
5361         coords of 0,0 were parent window coords, which was 
5362         really broken.
5363   
5364         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
5365         warning
5366  
5367         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
5368         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
5369         hints in gtk_window_parse_geometry()
5370  
5371         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
5372         new USER_POS USER_SIZE hints    
5373
5374 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5375
5376         * tests/prop-editor.c (properties_from_type): Use 
5377         g_object_class_list_properties to get the param specs 
5378         for a given type. (#58609)
5379
5380 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5381
5382         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
5383         free the text_aa parts. (#57549)
5384
5385 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5386
5387         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
5388         not the foreground color. (#57621)
5389
5390 2001-08-09  Alexander Larsson <alexl@redhat.com>
5391
5392         * gdk/win32/gdkfont-win32.c:
5393         Update to the new pango win32 api.
5394
5395 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
5396
5397         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
5398         COMPOUND_TEXT instead of TEXT
5399         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
5400         interpret the return value of g_string_to_compound_text()
5401         (#55152)
5402
5403 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5404
5405         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
5406         fail if iter is NULL. (#58347)
5407
5408 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5409
5410         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
5411         some off-by-one issues, fixing selection of line-ends. (#50323)
5412
5413 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5414
5415         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
5416         functions in order to make mouse operation work again in the
5417         color wheel. (#58604)
5418
5419 2001-08-07  James Henstridge  <james@daa.com.au>
5420
5421         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
5422         the accelerator when the accel object is changed.  Fixes bug
5423         #58628.
5424
5425 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
5426
5427         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
5428         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
5429         (gnome bugzilla #58202)
5430
5431 2001-08-06  Havoc Pennington  <hp@pobox.com>
5432  
5433         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
5434         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
5435         it was expecting a GdkWindow, not a GdkWindowImplX11.
5436  
5437         Also, we were getting the window rect in screen coords 
5438         and the screen rect in window coords then intersecting 
5439         them; instead, get window rect in window coords.
5440  
5441         Finally, there were codepaths that resulted in a stuck server grab
5442         (when the window was fully onscreen, or on gdk_image_new()
5443         failure); make the server ungrab thing a bit more
5444         robust/consistent.
5445
5446 2001-08-06  Sven Neumann  <sven@gimp.org>
5447
5448         * gdk/gdkpango.c (gdk_pango_context_destroy): 
5449         check if info->colormap != NULL before unref'ing it. It might have
5450         been set to NULL using gdk_pango_context_set_colormap().
5451
5452 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
5453
5454         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
5455         Fix conversion from float to int so that we don't get
5456         skew in the int => float => int roundtrip. 
5457         (#58120, reported by Vitaly Tishkov). Also fix problem
5458         where if no alpha was set, the returned alpha
5459         from (say) set_current_alpha() was returned as 1, not 65535.
5460
5461 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
5462
5463         * gtk/gtklist.c (gtk_list_clear_items): Fix
5464         problem with selecting a new focus child.
5465
5466         * gtk/gtklist.c (gtk_list_clear_items): Clear 
5467         list->undo/list_focus_child after unparenting
5468         child, since unparenting the child can result
5469         in list->last_focus_child being set. (#58024)
5470
5471         * Makefile.am (SUBDIRS): Add target specific pc
5472         files to DISTCLEANFILES.
5473
5474         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
5475         (58327, Matthias Clasen)
5476
5477 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
5478
5479         * tests/testgtk.c: Patch from Hans (with various modifications),
5480         to add the ability to use testgtk as a rough-and-ready
5481         benchmark. Try, 'testgtk --bench all:5' (if you want decent
5482         numbers, run without a window manager)
5483
5484 2001-08-04 Alexander Larsson <alexl@redhat.com>
5485
5486         * gdk/win32/gdkinput.c:
5487         Add #ifdef HAVE_WINTAB around wintab.h include.
5488
5489         * gtk/gtk.def:
5490         Removed marshals that have been moved to glib.
5491         Commented out plug and socket. They didn't compile for me 
5492         on win32.
5493
5494 2001-08-04  Hans Breuer  <hans@breuer.org>
5495
5496         * gtk/stocks-icons/makefile.msc : new file
5497         * gtk/makefile.msc.in : use it
5498
5499         * gtk/gtkstyle.c : not all platforms do provide M_PI and
5500         friends, but luckily there is G_PI
5501
5502         * gtk/gtk.def : updated
5503
5504         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
5505         windows WS_POPUP, but only those without a parent. This fixes the 
5506         mis-alignment between the selectable (temp, input only) window and 
5507         the window text of GtkLabel.
5508
5509         (gdk_window_show) : respect private->state when actually showing
5510         the window.
5511
5512         (gdk_window_set_transient_for) : Implementation from Wolfgang 
5513         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
5514         error handling. Should fix #50586.
5515
5516         * gdk/win32/gdkevents-win32.c : beautify log output
5517
5518 2001-08-04  Michael Natterer  <mitch@gimp.org>
5519
5520         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
5521         Need to show the image after adding it to the GtkImageMenuItem.
5522         This used to work without in testgtk because of the
5523         gtk_widget_show_all() at the end of the function.
5524         (Closes #54978).
5525
5526 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
5527
5528         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
5529         (gtk_notebook_set_child_property): fix finding of child's page,
5530         since we have to validly deal with labels and menus here as well.
5531         (gtk_notebook_get_child_property): fix warning.
5532         (gtk_notebook_class_init): property tab_pack is of type
5533         GTK_TYPE_PACK_TYPE (enum) not boolean.
5534         (gtk_notebook_find_child): don't always warn, we might be looking
5535         for a label or menu child.
5536         (gtk_notebook_map): fix mapping of panel.
5537
5538         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
5539         widget's mapped state, regardless of the value being set equals
5540         old settings, since things like REALIZED(parent) or MAPPED(parent)
5541         may have changed since the old value was set. make it an error to
5542         invoke this function on a toplevel widget.
5543
5544 2001-07-31  Darin Adler  <darin@bentspoon.com>
5545
5546         * gdk/gdkprivate.h:
5547         * gdk/x11/gdkx.h:
5548         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
5549
5550         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
5551         GTK_OBJECT.
5552
5553 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
5554
5555         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
5556         scoping error pointed out by matthiasc@poet.de.
5557
5558 2001-07-31  Sven Neumann  <sven@gimp.org>
5559
5560         * demos/gtk-demo/appwindow.c
5561         * demos/gtk-demo/item_factory.c
5562         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
5563
5564 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
5565
5566         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
5567         argument order for g_signal_has_handler_pending.
5568
5569 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
5570
5571         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
5572         instead of long deprecated g_scanner_stat_mode().
5573
5574 2001-07-29  Hans Breuer  <hans@breuer.org>
5575
5576         * gdk/makefile.msc : build in the backend dir after
5577         auto-generating files
5578
5579         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
5580         with code from win32-production-branch.
5581
5582         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
5583         before calling DestroyWindow, which indirectly calls 
5584         gdk_window_destroy_notify ()
5585
5586         (performance patch merged from win32-production-branch)
5587         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
5588         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
5589         R2_COPYPEN rop). It is claimed to be much faster.
5590
5591 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
5592
5593         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
5594         add an "attributes" property to the text renderer for ATK.
5595
5596 2001-07-26  Alex Larsson  <alexl@redhat.com>
5597
5598         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
5599         Initialize image->bits_per_pixel from the drawable, not from
5600         the root window.
5601
5602         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
5603         Fix cast. argument is an IMPL already.
5604
5605 2001-07-15  James Henstridge  <james@daa.com.au>
5606
5607         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
5608         (gtk_window_remove_accel_group): same here.
5609         (gtk_window_key_press_event): same here.
5610
5611         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
5612         (gtk_widget_remove_accelerator): same here.
5613         (gtk_widget_remove_accelerators): same here.
5614
5615         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
5616
5617         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
5618         instead of GtkObject.
5619
5620         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
5621         now takes GObjects.
5622
5623         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
5624         pass a GObject to gtk_accel_group_entries_from_object.
5625         (gtk_item_factory_create_item): s/accel_widget/accel_object/
5626
5627         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
5628
5629         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
5630
5631         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
5632         GObjects can have accelerators set now.  Add compatibility
5633         defines.
5634
5635         * gtk/gtkmarshal.list: add missing marshallers.
5636
5637         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
5638         accelerators on plain GObjects.  gtk_accel_group_object_destroy
5639         has been converted into a weak reference, and
5640         gtk_accel_group_delete_entries is now a destroy notify for that
5641         piece of data.
5642
5643 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
5644
5645         * gdk/gdkdraw.c: Added a check on the colormap depth to
5646         gdk_drawable_set_colormap()
5647         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
5648         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
5649         for pixmaps without visuals (more specifically, bitmaps)
5650         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
5651         doesn't set a colormap with the wrong depth
5652
5653
5654 2001-07-22  Anders Carlsson  <andersca@gnome.org>
5655
5656         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
5657         expander_height and expander_width properties with a single
5658         property, expander_size.
5659         (gtk_tree_view_init): Set the tab_offset to expander_size
5660         plus some padding.
5661         (gtk_tree_view_unrealize): Remove the expand/collapse
5662         timeout if it exists.
5663         (coords_are_over_arrow): Fix a small bug.
5664         (gtk_tree_view_motion_draw_column_motion_arrow): Use
5665         expander_size.
5666         (gtk_tree_view_draw_focus): Use "treeview" instead of
5667         "add-mode" as detail when drawing the focus.
5668         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
5669         instead of "add-mode" as detail when drawing the focus.
5670         (gtk_tree_view_deleted): If we have a node currently being
5671         expanded or collapsed, remove the timeout and set the node 
5672         to NULL.
5673         (gtk_tree_view_queue_draw_arrow): New function that just
5674         redraws the arrow of a node.
5675         (gtk_tree_view_draw_arrow): Use expander_size instead of
5676         expander_width/expander_height, also pass a different
5677         expander_style to gtk_paint_expander depending on the 
5678         state of the node being drawn.
5679         (expand_collapse_timeout): New function for expanding 
5680         or collapsing a node depending on the previous state.
5681         (gtk_tree_view_real_expand_row): Add timeout and set 
5682         correct state for node being expanded.
5683         (gtk_tree_view_real_collapse_row): Add timeout and set
5684         correct state for node being collapsed.
5685
5686         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
5687         information about the node currently being expanded or
5688         collapsed, and also a timeout id.
5689
5690         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
5691         with expander_style for draw_expander.
5692
5693         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
5694         expander_style.
5695         (create_expander_affine): New function for creating an 
5696         expander affine.
5697         (apply_affine_on_point): New function for applying an 
5698         affine to a point.
5699         (gtk_default_draw_expander): Modified to take expander_style
5700         instead of is_open, and to draw the rectangle rotated differently
5701         depending on the expander style.
5702         (gtk_paint_expander): Replace is_open with expander_style.
5703
5704         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
5705
5706         * gtk/gtkenums.h: Add expander style enum.
5707
5708 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
5709
5710         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
5711         value from gtk_tree_model_get_iter, the model might be empty.
5712
5713 2001-07-20  Hans Breuer  <hans@breuer.org>
5714
5715         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
5716         gdk/gdkinput.c like the other backends
5717
5718         * gdk/win32/gdkinput-win32.h :
5719         * gdk/win32/gdkinput.c :
5720         * gdk/win32/gdkvisual-win32.c :
5721         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
5722         GdkVisual GObjectification. UNTESTED for pen-devices because
5723         I simply have none.
5724
5725         * gdk/gdk.def :
5726         * gtk/gtk.def : updated externals
5727
5728         * gtk/gtkiconfactory.c :
5729         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
5730         before passing &error to functions to avoid strange crashes
5731         
5732         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
5733
5734         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
5735
5736         * gtk/makefile.msc.in : updated
5737
5738 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
5739
5740         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
5741         Add property support. (#51858)
5742
5743 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
5744
5745         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
5746         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
5747         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
5748
5749 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
5750
5751         * gtk/gtkcolorsel.c: Add propery support (roughly
5752         based on patch from Lee Mallabone, #51014)
5753
5754         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
5755         deprecated, since we already g_warning() on it.
5756
5757 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
5758
5759         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
5760         typo that sometimes caused selection not to work properly.
5761
5762         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
5763         entry when tabbing in. (#57743)
5764         
5765         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
5766         user drags up above or down below the entry, move
5767         to the end or the beginning of the entry. (Suggestion
5768         from Jay Cox, #50940)
5769
5770         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
5771         a current selection, then when moving by chars or
5772         words, move to the end of the selection rather than
5773         from entry->current_pos. (Suggestion from Jay Cox,
5774         #50942)
5775         
5776 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
5777
5778         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
5779         set window->decorated. (Patch from Hidetoshi Tajima,
5780         #55846)
5781
5782 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
5783
5784         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
5785         the widget/child realization/mapping invariants.
5786
5787         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
5788         gtk_widget_[get/set]_child_visible() to control
5789         whether visible children of a mapped window are
5790         mapped.
5791
5792         * docs/widget_system.txt: Updated for changes in
5793         container contract, and addition of GTK_CHILD_VISIBLE.
5794
5795         * gtk/gtkcontainer.c: Add generic map()/unmap()
5796         functions that work for almost all containers.
5797
5798         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
5799         gtk_widget_set_child_visible() where necessary.
5800
5801         * gtk/*.c: Remove excess map(), unmap(), and 
5802         realization/mapping invariant enforcing code
5803         from many containers.
5804
5805 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
5806
5807         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
5808         Get the foreground color from 'text', nor 'fg'. (#57568)
5809
5810 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
5811
5812         * gtk/*.c: Patch from Matthias Clasen to remove remove
5813         all instances of g_return_if_fail (foo != NULL); that are
5814         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
5815         since the second check catches the NULL anyways.
5816
5817 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
5818
5819         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
5820         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
5821         GDK_THREADS_ENTER()/LEAVE() pairs.
5822
5823         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
5824         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
5825         pairs. (Problem found by M. Meeks)
5826
5827 2001-07-18  Darin Adler  <darin@bentspoon.com>
5828
5829         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
5830         that we don't get a g_warning message every time we register a new
5831         icon size.
5832
5833         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
5834         using pixel variable of the correct type.
5835         
5836 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
5837
5838         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
5839         so that using X functions on a GdkWindow is possible, if
5840         a little hairy.
5841
5842         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
5843         and ts_origin of a GC, so that external parties can offset/restore
5844         a GC, when using gdk_window_get_internal_paint_info().
5845
5846 2001-07-17  Darin Adler  <darin@bentspoon.com>
5847
5848         * .cvsignore: Ignore the sgml directory made by gtkdoc.
5849         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
5850         instead of the deprecated gtk_window_set_policy.
5851         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
5852         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
5853         function to get rid of warning and some code too.
5854         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
5855         missing const.
5856         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
5857         unused local.
5858         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
5859         const.
5860         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
5861         (gdk_utf8_to_compound_text): Add missing const.
5862         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
5863         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
5864         cast and get rid of an unnecessary one.
5865         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
5866         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
5867         local.
5868         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
5869         Remove unused local.
5870         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
5871         missing const.
5872         * tests/testsocket.c: (add_child): Add cast so the printf format
5873         doesn't make us implicitly depend on what integer type
5874         gtk_socket_get_id returns.
5875         * tests/testtextbuffer.c: Add missing const.
5876         * tests/testtreefocus.c: (main): Remove unused local.
5877         * tests/treestoretest.c: (iter_remove): Remove unused local.
5878         (uppercase_value): Remove unused function.
5879         (make_window): Add statement to quiet the compiler's uninitialized
5880         variable warning.
5881
5882 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
5883
5884         * gtk/gtkrange.c:
5885         (second_timeout): 
5886         (initial_timeout): 
5887         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
5888         (gtk_range_calc_layout): compute the new layout based on an
5889         adjustment->value being passed in as argument.
5890         (gtk_range_button_press): for button2 slider warps, first recalc
5891         the layout, then adjust the value. also, use update_slider_position()
5892         for adjusting the value, so we keep pixel quantisation at which we
5893         usually operate (upon motion or button releases). the reason for this
5894         is that, we can't change the adjustment upon button2 presses to a non
5895         quantised value and upon button2 release re-quantise the value since
5896         that'd alter the value even if we didn't get any motion events (causing
5897         unexpected scroll area warps upon release and/or slider pixel-jitter).
5898         (gtk_range_motion_notify): update the slider position from queried
5899         coordinates, not event coordinates.
5900
5901 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
5902
5903         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
5904         the default gc values are: width=0, CapBut, JoinMiter.
5905
5906 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
5907
5908         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
5909         into account the xpad and ypad when calculating the width and the
5910         height of the pixbuf cel.
5911
5912 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
5913
5914         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
5915         Rename to gtk_radio_menu_item_get_group(), add deprecated
5916         alias. (#57044)
5917
5918         * gtk/gtkfilesel.c: Indentation fix.
5919
5920 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
5921
5922         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
5923         Hasselmann to fix warnings in compat macros. 
5924         (#56773)
5925
5926         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
5927         stupid wrong cast added in last patch.
5928
5929 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
5930
5931         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
5932         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
5933
5934 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
5935
5936         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
5937         missing cast.
5938
5939         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
5940         NULL/FALSE return value confusion.
5941
5942         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
5943         problem when scrollbar completely fills range. (Patch
5944         from  Matthias Clasen, #57047)
5945
5946 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
5947
5948         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
5949         clean up when handling events for move-resize emulation.
5950         (Problem traced down by Matthias Clasen, #57271)
5951
5952 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
5953
5954         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
5955           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
5956           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
5957           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
5958           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
5959           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
5960           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
5961         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
5962
5963 2001-07-09  Peter Williams  <peterw@ximian.com>
5964
5965         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
5966         for when srcdir != builddir
5967
5968 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
5969
5970         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
5971         gtk_tree_model_get_iter_root.
5972
5973         * gtk/gtkliststore.c: Add a bunch of g_return statements.
5974         (gtk_list_store_iter_n_children): Fix up.
5975
5976         * gtk/gtktreestore.c: Add a bunch of g_return statements.
5977
5978 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
5979
5980         * gtk/gtkwidget.c (gtk_widget_class_init):
5981         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
5982         restore some workingness.
5983
5984         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
5985         handle of window type for input-only windows.
5986
5987 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
5988
5989         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
5990         Patch from Gregory Merchan to add 
5991         gtk_button_box_set_secondary(), which separates
5992         the child into a separate group from the normal
5993         buttons. (#56331)
5994
5995         * gtk/gtkdialog.c: Make help buttons secondary by
5996         default.
5997
5998         * gtk/gtkbbox.c: Added a child property "secondary".
5999
6000         * gtk/testgtk.c: Turn on the help button for the 
6001         color selector to check that it properly appears
6002         as secondary.
6003
6004 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
6005  
6006         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
6007         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
6008         Add gdk_set_pointer_hooks() to allow pointer-querying to
6009         be hooked by an event record/playback system like GERD.
6010         (#56914)
6011         
6012 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
6013
6014         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
6015         in the right value of initial_emission to
6016         gtk_widget_set_style_internal (#57091)
6017
6018 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
6019
6020         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
6021         Make compile.
6022
6023         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
6024         with calling gtk_widget_set_style_internal() with
6025         the old style, not the new style. (#56989)
6026
6027 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
6028
6029         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
6030           gtk/gtkwidget.c:
6031         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
6032         not GTK_WIDGET_GET_ANCESTOR ... see 
6033         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
6034         Indicate the best practice in the docs for gtk_widget_get_toplevel().
6035
6036         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
6037         so GtkPlug can give the correct signals when transforming
6038         from a child to a toplevel.
6039         
6040         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
6041         reparentation correctly.
6042
6043         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
6044         Propagate the previous_toplevel argument down properly.
6045
6046         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
6047         of wrong atr list.
6048
6049         * gtk/gtkplug.[ch]: Add an "embedded" signal.
6050
6051         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
6052         signals.
6053
6054         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
6055         functions gtk_plug_get_id(), gtk_socket_get_id(),
6056         to avoid the user having to worry about realization,
6057         and gdkx.h.
6058
6059         * tests/testsocket.c: Extend to try out the new signals
6060         and gtk_plug/socket_get_id().
6061
6062         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
6063         setting of underline attributes.
6064
6065         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
6066         DestroyNotify events from SubstructureNotifyMask
6067
6068         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
6069         Switch GDK_WINDOW_TYPE (window) as needed.
6070
6071         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
6072         allow creation of toplevel windows as children of
6073         foreign windows.
6074
6075         * gtk/gtkplug.c: Remove hacks involving changing private
6076         fields of GdkWindow.
6077
6078         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
6079         exactly the same signals and notification
6080         be emitted for local embedding as for inter-process
6081         embedding.
6082
6083 2001-07-04  James Henstridge  <james@daa.com.au>
6084
6085         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
6086
6087 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
6088
6089         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
6090         XEMBED embedding add a _XEMBED_INFO property to the
6091         client with version number and a "mapped" flags.
6092         Use the mapped flag instead of the racy MapRequestEvent
6093
6094         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
6095         code to reliably set things (when the child is a passive
6096         embedder participating in the XEMBED protocol) intead
6097         of just being a hack for embedding non-participating
6098         programs. Fix various bugs and race conditions.
6099         
6100         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
6101         work by simply making the GtkSocket the gtk parent
6102         of the GtkPlug. Set a flag in this case and make
6103         the GtkPlug work like a normal container by overriding
6104         methods such as check_resize and "chaining past" GtkWindow
6105         to GtkBin.
6106
6107         * gtk/gtkentry.c (gtk_entry_real_activate)
6108           gtk/gtkmain.c (gtk_propagate_event): 
6109         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
6110         
6111         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
6112         gtk_widget_get_ancestor):
6113         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
6114         might not give the expected result and recommend
6115         an alternative.
6116
6117         * tests/testsocket.c tests/testsocket_child.c
6118         tests/testsocket_common.c tests/Makefile.am: Extended
6119         to test different type of adding plugs to sockets
6120         (local,active,passive), and to test mapping/unmapping
6121         the plug.
6122
6123         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
6124         mark the window as destroyed until after we
6125         called _gdk_windowing_window_destroy().
6126         (_gdk_windowing_window_destroy() may use GDK functions
6127         on the window.)
6128
6129         * gdk/x11/gdkinput.c: Remove the check for finalization - 
6130         devices can be finalized under some circumnstances.
6131  
6132         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
6133         small problem with GDK_TYPE_DEVICE.
6134  
6135 2001-07-02  Havoc Pennington  <hp@pobox.com>
6136
6137         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
6138         use constants not atoms.
6139
6140 2001-07-02  James Henstridge  <james@daa.com.au>
6141
6142         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
6143         PANGO_TYPE_TAB_ARRAY.
6144
6145         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
6146         for PANGO_TYPE_TAB_ARRAY.
6147
6148         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
6149         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
6150
6151         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
6152         the file.  Remove Pango types from defs -- they are now defined in
6153         libpango.
6154
6155 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
6156
6157         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
6158
6159         * gtk/gtkobject.c (gtk_object_destroy): invoke
6160         g_object_run_dispose().
6161
6162         * gtk/gtkwindow.c: 
6163         * gtk/gtkwidget.c: 
6164         * gtk/gtkobject.c:
6165         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
6166         method.
6167
6168 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
6169
6170         * gtk/gtktypeutils.c (gtk_type_class): Remove
6171         change check for GTK_TYPE_OBJECT derivation to
6172         G_TYPE_OBJECTS - it's Tim-approved to use this 
6173         for arbitary objects.
6174
6175         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
6176         prefix gtk_container_dequeue_resize_handler().
6177
6178         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
6179         to the hierarachy_changed signal, since you otherwise
6180         have to always keep that around.
6181
6182         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
6183         for extra argument to hierarchy_changed.
6184
6185 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
6186
6187         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
6188         for style to mean "revert to default style"
6189
6190         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
6191           gtk_widget_restore_default_style): Make this functions
6192         deprecated aliases for gtk_widget_set_style (widget, NULL).
6193
6194         * gtk/gtkwidget.[ch]: Remove:
6195            gtk_widget_set_default_style ()
6196            gtk_widget_push_style ()
6197            gtk_widget_pop_style ()
6198         These functions interact are overriden by RC files, and
6199         thus virtually useless, and complicated.
6200
6201 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
6202
6203         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
6204         most of the previous global variables in gtkrc.c. This is
6205         in preparation for multi-head, since each screen can
6206         have different GtkSettings and RC information.
6207
6208         * gtk/gtkrc.[ch]: 
6209
6210         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
6211         GtkSettings parameter to GtkRcStyle::parse.
6212
6213         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
6214         Add two new settings gtk-theme-name, gtk-key-theme-name,
6215         for RC files that are loaded by name after reading
6216         the default RC files.
6217         
6218         * gtk/gtkrc.c: Allow priorities for styles, as wll as
6219         bindings.
6220
6221         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
6222         and use it by default for RC files loaded via 
6223         gtk-theme-name, gtk-key-theme-name.
6224
6225         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
6226         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
6227         tests/testgtkrc: Require pathnames to be absolute.
6228
6229         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
6230         the source when parsing, since the operation of looking up a
6231         pixmap from an RC file depends on the parsing context.
6232
6233         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
6234         reset RC styles on all widgets when files are reparsed.
6235
6236         * tests/testgtk.c (create_rc_file) 
6237           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
6238         Simplify, now that gtk_rc_reparse_all() resets styles on
6239         all widgets itself.
6240
6241         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
6242         return value.
6243
6244         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
6245         GtkSettings argument.
6246
6247         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
6248         gtk_settings_get_global().
6249
6250         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
6251         to get the appropriate GtkSettings for a widget. (For now,
6252         just gets the default GtkSetttings.) 
6253
6254         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
6255           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
6256         changes.
6257
6258         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
6259         getting a style for a path without actually having a widget.
6260         (Allows using a style for a subpart of a widget, for
6261         example.)
6262
6263         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
6264         the RC files to be reloaded for just one GtkSettings
6265         (not sure how useful this really is.)
6266
6267         * gtk/gtkrc.h: Deprecate
6268         gtk_rc_add_widget_name/widget_class/class_style
6269
6270 2001-06-30  Alex Larsson  <alexl@redhat.com>
6271
6272         * gdk/linux-fb/gdkinput-none.c:
6273         * gdk/linux-fb/gdkinput.c:
6274         * gdk/linux-fb/gdkinputprivate.h:
6275         Convert GdkDevice to a GObject.
6276
6277         * linux-fb/gdkprivate-fb.h:
6278         * linux-fb/gdkvisual-fb.c:
6279         Convert GdkVisual to a GObject.
6280
6281 2001-06-29  Alex Larsson  <alexl@redhat.com>
6282
6283         * gdk/gdkvisual.h:
6284         * gdk/gdkcolor.c:
6285         * gdk/x11/gdkx.h:
6286         * gdk/x11/gdkvisual-x11.c:
6287         Convert GdkVisual to a GObject.
6288
6289         * gdk/gdkinput.h:
6290         * gdk/gdkevents.c:
6291         * gdk/x11/gdkinputprivate.h:
6292         * gdk/x11/gdkinput-gxi.c:
6293         * gdk/x11/gdkinput-none.c:
6294         * gdk/x11/gdkinput-x11.c:
6295         * gdk/x11/gdkinput-xfree.c:
6296         * gdk/x11/gdkinput.c:
6297         Convert GdkDevice to a GObject.
6298
6299 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
6300
6301         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
6302         to just plain new, fixing the number of columns, and column types
6303         at creation time.
6304
6305         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
6306
6307         * gtk/gtkcellrenderertext.c
6308         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
6309         height to a specific font.
6310
6311         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
6312
6313         * tests/*c: change to work with new store models.
6314
6315 2001-06-29  Havoc Pennington  <hp@redhat.com>
6316
6317        * Throughout: fixes to compile with G_DISABLE_COMPAT
6318         (s/g_signal_connectc/g_signal_connect/,
6319         s/g_signal_newc/g_signal_new/,
6320         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
6321
6322 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
6323
6324         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
6325         add path argument to selection callbacks.
6326
6327 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
6328
6329         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
6330         walk through a model in a depth first manner, with the option to
6331         break out.
6332
6333 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
6334
6335         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
6336         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
6337         column and follow it when draged, rather than a location in the
6338         view. "expander_column" property and drawing functions changed
6339         accordingly.  Fixes bug #55942.
6340
6341         (gtk_tree_view_{set,get}_expander_column): Now works with a
6342         GtkTreeViewColumn* instead of int.
6343
6344 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
6345
6346         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
6347
6348 2001-06-28  Havoc Pennington  <hp@pobox.com>
6349
6350         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
6351         image data to the screen, using a server grab to avoid race
6352         conditions.
6353
6354         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
6355         check for NULL return from gtk_image_new_from_stock(), it never
6356         returns NULL.
6357         (gtk_item_factory_create_item): fix bug where we parsed the stock
6358         ID as an inline pixbuf
6359
6360         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
6361
6362         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
6363         support (should be using binding set here)
6364
6365         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
6366         support (should be using binding set here)
6367
6368         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
6369         support
6370
6371         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
6372
6373         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
6374
6375         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
6376
6377         * gtk/gtkimcontextsimple.c
6378         (gtk_im_context_simple_filter_keypress): keypad
6379
6380         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
6381
6382         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
6383
6384         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
6385
6386         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
6387         should be binding-setted)
6388
6389         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
6390
6391         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
6392
6393         * gtk/gtkcalendar.c: numeric keypad fixes
6394
6395         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
6396         support
6397
6398         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
6399         screwup
6400
6401         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
6402         clip the render area to the drawable's clip region in advance,
6403         so we don't get data from the server that we don't need.
6404
6405         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
6406         check return value of gdk_pixbuf_get_from_drawable(), fall back 
6407         to bilevel alpha if we can't get the pixbuf to composite against.
6408
6409         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
6410
6411         * gdk/gdkimage.c (gdk_image_get_colormap): add
6412         gdk_image_set_colormap, gdk_image_get_colormap
6413
6414         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
6415         take a region of the image, instead of converting the entire
6416         image.
6417
6418         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
6419         keybinding signal. Add default bindings for it. Add default
6420         handler for show_help that shows the tooltip for the widget.
6421
6422         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
6423         "close" keybinding signal, remove key press handler.
6424
6425         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
6426         it's not our usual practice to leave a deprecated function around
6427         with a runtime warning, plus we don't want it to appear in docs,
6428         plus if we make them yellow no one will want to change them
6429         anyhow.
6430
6431 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
6432
6433         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
6434         GTK_WIDGET_REALIZE() for resize queueing.
6435
6436         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
6437         GTK_WIDGET_REALIZE() for post event delivery destruction upon
6438         GDK_DESTROY.
6439         
6440         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
6441         sompensate for former (pre-2.0) connect_after() facility.
6442         (gtk_widget_send_expose): 
6443         (gtk_widget_event): assert the widget is realized, since event delivery
6444         to non-realized widgets is essentially a bug. event handlers should
6445         be able to unconditionally rely on widget->window (unless they
6446         emit events on their own which can trigger widget destruction).
6447         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
6448         logic. event delivery happens as follows:
6449         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
6450         b) if !was_handled in (a) and the widget is still realized, emit event-
6451            specific signal (RUN_LAST handler). returns was_handled.
6452         c) emission of GtkWidget::event-after for notification if the widget is
6453            still realized (regardless of was_handled from previous stages, no
6454            class handler). no return value.
6455         d) was_handled gets passed on to caller, to determine further
6456            propagation. if the widget got unrealized meanwhile, was_handled
6457            is returned as TRUE.
6458
6459         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
6460         gdk_event_get_coords().
6461
6462 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
6463
6464         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
6465         age 0, binary age 0. depend on glib 1.3.7.
6466
6467         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
6468
6469         * gtk/gtkmenubar.c: same here.
6470         
6471         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
6472
6473         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
6474
6475         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
6476         
6477         * gtk/gtkmenubar.c (add_to_window): likewise.
6478         
6479         * gtk/gtktextbtree.c: and here...
6480         
6481         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
6482         
6483         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
6484         
6485         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
6486         
6487         * gtk/gtktreeviewcolumn.c:
6488         (_gtk_tree_view_column_set_tree_view): yet again.
6489
6490         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
6491         signal connections without g_signal_connect_data().
6492         
6493         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
6494         demo of the matter.
6495         
6496         * demos/testpixbuf.c (main): running out of equality phrases for the
6497         ChangeLog, but had to adapt connections here as well.
6498         
6499         * demos/testanimation.c (progressive_timeout): and for the fun of it,
6500         tackled this the same way.
6501         
6502         * tests/testtext.c (create_view): ok, it's becoming a pain at this
6503         point, but had enough enery for one more fix.
6504
6505         * tests/testtreecolumns.c (main): stand up man, do your work!
6506
6507         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
6508         fix, either that's been all of it or CVS gtk is broken yet again.
6509         
6510 2001-06-29  James Henstridge  <james@daa.com.au>
6511
6512         The following changes correspond to bug #56812
6513
6514         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
6515         code for GdkDevice.
6516
6517         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
6518         GdkCursor.
6519
6520 2001-06-19  Havoc Pennington  <hp@pobox.com>
6521
6522         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
6523         for mapping a window without fooling with stacking order, but
6524         updating the "withdrawn" flag
6525
6526         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
6527         filtering as soon as possible, moving move resize and wmspec_check
6528         handling after the event filter.  Make default filter apply to all
6529         events, not just those with no GdkWindow wrapped around the X
6530         window. Fix a FIXME about how the window could be a pixmap using 
6531         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
6532
6533         Also, be robust against events not on a known GdkWindow.
6534
6535         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
6536         gdk_x11_ungrab_server): export reference-counted server grabs, so
6537         other people can grab server over a GDK function that also does
6538         so.
6539
6540 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
6541
6542         * gtk/gtktreeviewcolumn.c
6543         (gtk_tree_view_column_pack_start_cell_renderer): New function to
6544         reflect that you can (hypothetically) pack cell renderers into a
6545         column.
6546         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
6547         (gtk_tree_view_column_cell_is_visible): Move more functionality to
6548         the column.
6549         (gtk_tree_view_column_cell_can_focus): Move more functionality to
6550         the column.
6551
6552         * gtk/gtktreeview.c: Move to use new column-packing code.
6553         (gtk_tree_view_real_expand_row): remove totally braindead code.
6554         (gtk_tree_view_real_collapse_row): ditto.
6555
6556 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
6557
6558         * gtk/gtktreeviewcolumn.c: Fix a typo.
6559         
6560 2001-06-26  Joel Becker  <jlbec@evilplan.org>
6561
6562         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
6563           at the end of the file
6564
6565 2001-06-26  Havoc Pennington  <hp@redhat.com>
6566
6567         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
6568
6569 2001-06-26  Havoc Pennington  <hp@redhat.com>
6570
6571         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
6572         property
6573
6574 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
6575
6576         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
6577         stupid missing statement
6578
6579         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
6580         private function for ATK.  It notifies you of how many _visible_
6581         children are deleted when a node is deleted.  Should be used by
6582         atk only.
6583
6584 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
6585
6586         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
6587         Use new pango_context_get_metrics() to fix problems
6588         with font lists in descriptions. (#56184, reported by
6589         Jonas Borgström)
6590
6591 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
6592
6593         * gtk/gtkiconfactory.c:
6594         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
6595         item factory so inlined pixbufs actually work.
6596
6597 2001-06-25  Havoc Pennington  <hp@redhat.com>
6598
6599         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
6600         s/RESIZEABLE/RESIZABLE/
6601
6602         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
6603
6604 2001-06-25  Alexander Larsson  <alexl@redhat.com>
6605
6606         * configure.in:
6607         Added --enable-fbmanager. This is some experimental code
6608         that lets several GtkFB apps coordinate their access to the
6609         framebuffer.
6610         
6611         * acconfig.h:
6612         Added ENABLE_FB_MANAGER.
6613
6614         * gdk/linux-fb/Makefile.am:
6615         Added gdkfbmanager and gdkfbswitch.
6616
6617         * gdk/linux-fb/gdkkeyboard-fb.c:
6618         * gdk/linux-fb/gdkmouse-fb.c:
6619         * gdk/linux-fb/gdkprivate-fb.h:
6620         Split device init and open so that
6621         they can be opened and closed while switched
6622         away.
6623
6624         * gdk/linux-fb/gdkmain-fb.c:
6625         Add the basic manager communication.
6626
6627         * gdk/linux-fb/gdkrender-fb.c:
6628         Don't update to the shadow fb if we're
6629         blocked by the fb manager.
6630
6631 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
6632
6633         * docs/Changes-2.0.txt: Add note about child property
6634         changes.
6635
6636 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
6637
6638         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
6639         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
6640
6641         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
6642         with un'reffing wrong list reported by Jeff Franks.
6643
6644         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
6645
6646         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
6647         for the default icon. Remove inline XPM.
6648
6649         * gtk/gtkstock.h gtk/gtkiconfactory.c:
6650         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
6651         is used for GTK_STOCK_DND, but it is a bit too small.)
6652
6653         * gtk/stock-icons/stock_dnd_multiple.png
6654         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
6655
6656         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
6657         TRUE when starting a drag. In other cases, we are
6658         just observing. (#52995)
6659
6660         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
6661         function to set the icon for a drag from a GdkPixbuf
6662         or stock ID.
6663
6664         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
6665         Likewise, for drag sources.
6666
6667         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
6668         (Now should be done using the stock system.)
6669
6670 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
6671
6672         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
6673         Removed - didn't work and not particularly useful anyways
6674         if it did. 
6675
6676 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
6677
6678         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
6679         introduced last night that was making things decidedly not work.
6680
6681         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
6682         so that we have getter/setter pairing everywhere it makes
6683         sense. (#55767)
6684
6685         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
6686         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
6687         deprecated compat macro. (#55516)
6688
6689         * gtk/gtklabel.[ch]: Add functions
6690         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
6691         gtk_label_set_label(), which mirror the property API for GtkLabel.
6692         Make gtk_label_get_attributes() only reflect the attributes
6693         set by gtk_label_set_attributes.
6694
6695         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
6696         from gtk_notebook_set_page().
6697
6698 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
6699
6700         * configure.in: Fix tests for XShm.h.
6701
6702         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
6703         gdk_image_new() by use of goto, properly use g_object_unref().
6704
6705 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
6706
6707         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
6708         calls, as GdkImage is an object. these should be g_obejct_unref()
6709         instead but that won't work because of the g_error() statement
6710         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
6711         to spot these places.
6712
6713 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
6714
6715         * modules/input/gtkimcontextxim.c: Fixup some problems with 
6716         text length handling in error cases.
6717
6718         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
6719         a bit to make test actually warn on attempt to allocation
6720         a negative size. (#56101, Matthias Clasen)
6721
6722 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
6723
6724         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
6725         noticed by Brian Cameron.
6726         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
6727         Cameron.
6728
6729 2001-06-22  Hans Breuer  <hans@breuer.org>
6730
6731         * gdk/gdk.def : updated externals
6732
6733         * gdk/win32/gdkdrawable-win32.c : corrected some casts
6734         in GDK_NOTEs
6735
6736         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
6737         to translate coordinates to the internal > 16 bit system
6738         Try to handle WM_WINDOWPOSCHANGED to get better performance for
6739         when moving/resizing
6740
6741         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
6742         and gdk_keymap_get_direction (). The latter is untested for
6743         the RTL case
6744
6745         * gtk/gtk.def : updated externals
6746
6747         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
6748         from pango_language_from_string (), not an already freed pointer
6749
6750         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
6751         binary (-kb) to be useable on windoze
6752  
6753 2001-06-21  Alexander Larsson  <alexl@redhat.com>
6754
6755         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
6756         Update to new PangoLanguage changes.
6757         
6758         * gtk/gtkwindow-decorate.c:
6759         * gtk/gtkwindow.[ch]:
6760         Added setting argument to gtk_window_set_has_frame ()
6761         
6762 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
6763
6764         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
6765         the case without XKB properly.
6766
6767         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
6768         unused gtk_rc_auto_parse variable.
6769
6770         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
6771         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
6772         longer needed with GdkPixbuf.
6773
6774         * gtk/gtkrc.c (_gtk_rc_init): Make private.
6775
6776 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
6777
6778         * gtk/gtkentry.h: Mark deprecated functions with
6779         GTK_DISABLE_DEPRECATED.
6780
6781 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
6782
6783         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
6784
6785         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
6786
6787         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
6788           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
6789           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
6790           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
6791           to recent changes in Pango.
6792
6793         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
6794           to test whether the basic engine honors them.
6795
6796 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
6797
6798         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
6799         gtk_container_child_get_property().
6800
6801 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
6802
6803         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
6804         (gtk_tree_view_move_cursor_page_up_down): implement.
6805
6806 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
6807
6808         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
6809         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
6810         don't use automatic fixed size buffer for printf-ing floats, doubles
6811         can expand to really _huge_ strings, use g_strdup_printf() instead.
6812
6813 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
6814
6815         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
6816         construct property in 1.2 and still needs to be.
6817
6818         * gtk/gtkwidget.c: "composite_child" is not a settable property.
6819
6820 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
6821
6822         * gtk/gtkliststore.c (gtk_list_store_clear): 
6823         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
6824         clear a model.
6825
6826 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
6827
6828         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
6829
6830         * gtk/Makefile.am:
6831         * gtk/gtk.h: disabled GtkPacker compilation.
6832
6833         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
6834
6835         * gtk/gtknotebook.c:
6836         * gtk/gtktable.c:
6837         * gtk/gtkbox.c: ported this over to child properties.
6838
6839         * gtk/gtksettings.c: fetch class properties via
6840         g_object_class_list_properties().
6841
6842         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
6843         child arg interface. use gobjectnotifyqueue.c for child property
6844         notification.
6845
6846         * gtk/gtkwidget.[hc]: provide necessary means for container child
6847         properties, i.e. ::child_notify signal,
6848         gtk_widget_freeze_child_notify(),
6849         gtk_widget_child_notify(),
6850         gtk_widget_thaw_child_notify().
6851
6852         * tests/testgtk.c: removed inferior property handling code, for
6853         property editing, a generic module should be used, and GLE
6854         coincidentally fullfills that purpose.
6855
6856         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
6857         needs to be adapted to g_object_class_list_properties() before this
6858         builds again.
6859
6860 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
6861
6862         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
6863         test if a node is expanded.
6864
6865 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
6866
6867         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
6868         where collapsing a selected row would result in the cursor/anchor
6869         getting screwed up.
6870
6871 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
6872
6873         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
6874         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
6875         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
6876         Now I can really reorder/sort all Store widgets.  treesorttest
6877         seems to just work now.
6878         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
6879         testtreesort worked through a big coincidence all this time.
6880         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
6881         code.
6882         * tests/testtreecolumns.c: Big 'ol warning at the top letting
6883         people know that this code should never ever ever be copied.
6884
6885 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
6886
6887         * gtk/gtkwindow.h: Fixed a small typo, it should be
6888         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
6889         on line 134.
6890
6891 2001-06-14  Havoc Pennington  <hp@redhat.com>
6892
6893         Docs fixups, and:
6894         
6895         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
6896         GTK_DISABLE_DEPRECATED
6897
6898 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
6899
6900         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
6901         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
6902         finish it off tonight, though it basically works now when it's a
6903         list.  Also, I have a sinking feeling neither GtkTreeStore or
6904         GtkListStore actually resort when adding a new item.  I'll look
6905         into it.
6906
6907 2001-06-14  Havoc Pennington  <hp@redhat.com>
6908
6909         * demos/gtk-demo/main.c (load_file): fix bug identified by
6910         warnings I just added to gtktextbuffer
6911
6912 2001-06-14  Havoc Pennington  <hp@redhat.com>
6913
6914         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
6915
6916         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
6917
6918         * gtk/gtktextbtree.c: don't leak node data all over the place.
6919
6920         * demos/gtk-demo/main.c (main): create fontify tags for the right
6921         buffer
6922
6923         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
6924         to mention tags in the same table can't have the same name,
6925         suggested by Skip Montanaro
6926
6927 2001-06-11  Havoc Pennington  <hp@redhat.com>
6928
6929         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
6930         for trying to add two tags with same name to the tag table
6931
6932         * demos/gtk-demo/main.c (main): fix colors ;-)
6933
6934 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
6935
6936         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
6937         that allows grouping together multiple windows so that grabs
6938         within that set of windows only affect those windows.
6939
6940         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
6941         signal for notification when a widget becomes shadowed
6942         by a grab or is no longer shadowed by a grab.
6943
6944         * gtk/gtkwidget.c (gtk_widget_propagate_state)
6945           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
6946         insenstive widgets to maintain a grab.
6947
6948 2001-06-14  Alexander Larsson  <alexl@redhat.com>
6949
6950         * docs/README.linux-fb:
6951         Add some example config files that can be used with the URW fonts.
6952         
6953         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
6954         Set up the color ramps for DirectColor mode.
6955
6956 2001-06-11  Havoc Pennington  <hp@redhat.com>
6957
6958         * Release 1.3.6
6959          
6960 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
6961
6962         * gdk/linux-fb/gdkwindow-fb.c:
6963         Unify shaped window code and make it repaint the area that used
6964         to be part of the shape, but isn't anymore.
6965
6966 2001-06-11  Havoc Pennington  <hp@redhat.com>
6967
6968         * NEWS: Updates
6969
6970         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
6971
6972         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
6973         
6974 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
6975
6976         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
6977         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
6978         passes zero instead, so do we.
6979         
6980 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
6981
6982         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
6983         Deep copy dash_list too.
6984         (_gdk_fb_gc_new): Set default cap_style before
6985         setting values.
6986
6987 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
6988
6989         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
6990         gdk_keymap_get_direction): New functions.
6991
6992 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
6993
6994         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
6995         gtk_tree_model_get_flags by adding a second flag for atk.
6996
6997         * gtk/gtktreemodel.c: make cursor behavior interact better with
6998         mouse presses.
6999
7000 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
7001
7002         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
7003         expand_row/collapse_row to be 2 signals each -- test_expand_row
7004         and row_expanded as well as test_collapse_row and row_collapsed.
7005
7006 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
7007
7008         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
7009         signal name to be changed instead of selection_changed.
7010
7011 2001-06-08  Havoc Pennington  <hp@redhat.com>
7012
7013         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
7014         "scroll_offset" property for notification when the layout offsets
7015         may have changed
7016         (gtk_entry_adjust_scroll): add notify for scroll_offset
7017         (gtk_entry_layout_index_to_text_index): function to compensate for
7018         preedit string when doing coordinate stuff on the entry's layout
7019         (gtk_entry_text_index_to_layout_index): inverse function
7020         (gtk_entry_get_layout_offsets): hook to get current position of
7021         the layout      
7022         (gtk_entry_get_layout): hook to get the layout itself.
7023
7024         * gtk/gtklabel.c (gtk_label_get_layout): new function
7025
7026 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
7027
7028         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
7029         keybinding.
7030         (gtk_tree_view_focus): Fix merge conflict.
7031
7032 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
7033
7034         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
7035         clean up cursor handling.
7036
7037 2001-06-08  Havoc Pennington  <hp@redhat.com>
7038
7039         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
7040         function
7041
7042         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
7043         this function
7044
7045 2001-06-08  Alex Larsson  <alexl@redhat.com>
7046
7047         * gtk/gtkcompat.h.in:
7048         Added compat macros for all old GTK_TYPE_GDK_xxx types.
7049         Fixes bug #52892
7050
7051 2001-06-08  Havoc Pennington  <hp@redhat.com>
7052         
7053         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
7054         parent still
7055
7056 2001-06-08  Havoc Pennington  <hp@redhat.com>
7057
7058         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
7059         don't call g_list funcs on GSList
7060
7061         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
7062         gtk_container_focus(), since some widgets have focusable locations
7063         which are not other widgets. These widgets should not have to be 
7064         containers just to manage the focus. For example, GtkHSV is
7065         currently a container for no good reason. Also, this cleans
7066         up the "if (is_container && is_sensitive && is_drawable)
7067         container_focus ()" mess in widget implementations.
7068
7069         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
7070         function, and have it just call gtk_widget_child_focus().
7071
7072         * gtk/gtkhsv.c: derive from widget not container
7073         
7074         Throughout: fix to reflect GtkContainer::focus change
7075         
7076 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
7077
7078         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
7079         range.  Fix bug #55921
7080
7081         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
7082         (#55920).
7083
7084 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
7085
7086         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
7087         and gdk_keymap_get_current_direction().
7088
7089         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
7090           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
7091         the current locked group, use it to set the keymap
7092         direction.
7093
7094         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
7095         to determine whether we draw a split cursor or use
7096         a jumping cursor based on the current direction.
7097
7098         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
7099         Obey the split cursor setting. 
7100
7101 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
7102
7103         * gtk/gtkimmulticontext.c (activate_cb): Only activate
7104         when toggling on, not when toggling off... (#55906)
7105
7106 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
7107
7108         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
7109         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
7110         in docs. (#55812, Vitaly Tishkov)
7111
7112 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
7113
7114         * demos/gtk-demo/main.c (create_tree): Changed signal name from
7115         selection_changed to changed in signal connection to GtkTreeSelection,
7116         also used g_signal_connectc since GtkTreeSelection is now a GObject.
7117
7118 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
7119
7120         * gtk/gtktreeselection.c: Now it's a GObject instead of a
7121         GtkObject.  The GtkTreeSelection::selection_changed signal is now
7122         the GtkTreeSelection::changed signal.
7123
7124         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
7125         object.
7126
7127         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
7128         object.
7129
7130 2001-06-07  Havoc Pennington  <hp@redhat.com>
7131
7132         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
7133
7134 2001-06-07  Havoc Pennington  <hp@redhat.com>
7135         
7136         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
7137         (not tested yet because with absolute path to srcdir I can't build
7138         atk, but it was broken anyway so this may help) 
7139
7140 2001-06-07  Havoc Pennington  <hp@redhat.com>
7141
7142         * configure.in: output m4macros/Makefile
7143         
7144 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
7145
7146         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
7147         buttons.  Fixes #55460 reported by matthiasc@poet.de.
7148
7149 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
7150
7151         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
7152         expansion/collapsing so it only happens in one place.
7153         (gtk_tree_view_real_expand_row): ditto.
7154
7155 2001-06-07  Havoc Pennington  <hp@redhat.com>
7156
7157         * tests/Makefile.am: add missing -I flag
7158
7159         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
7160
7161         * configure.in: use pkg-config to see if GModule is
7162         supported; fix to properly turn on included loaders 
7163         when GModule isn't supported; don't use AC_CHECK_LIB 
7164         when libs are not installed yet
7165
7166         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
7167
7168         * Makefile.am (SUBDIRS): add m4macros subdir
7169
7170         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
7171         dependencies also.
7172
7173 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
7174
7175         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
7176         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
7177
7178 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
7179
7180         * gtk/gtktreeview.c
7181         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
7182         bindings to expand and collapse rows.
7183         (gtk_tree_view_real_select_cursor_parent): New key binding.
7184         (gtk_tree_view_real_toggle_cursor_row): New key binding.
7185
7186         * gtk/gtkmarshal.list: new
7187         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
7188
7189 2001-06-06  Havoc Pennington  <hp@redhat.com>
7190
7191         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
7192
7193         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
7194         Down to move visually rather than logically, since it confuses 
7195         people. Add -/+ and Ctrl--/+ bindings for logical movement.
7196
7197 2001-06-06  Alex Larsson  <alexl@redhat.com>
7198
7199         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
7200         Fix up error messages.
7201
7202 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
7203
7204         * gtk/gtktooltips.h: Include gtkwidget.h 
7205         (#55798, Karl Nelson)
7206
7207         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
7208         a valid latin-1 character. (Marc Lehmann, #35467)
7209
7210         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
7211         (Marc Lehmann, #35467)
7212         
7213 2001-06-05  Alex Larsson  <alexl@redhat.com>
7214
7215         * demos/gtk-demo/appwindow.c (do_appwindow):
7216         Don't swap the order of the args to gtk_widget_destroyed.
7217
7218         * tests/testgtk.c (destroy_properties):
7219         Don't crash when the properties window is destroyed.
7220
7221         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
7222         Use with_mnemonics to handle the case of stock items with
7223         underscores in them.
7224
7225 2001-06-05  Havoc Pennington  <hp@redhat.com>
7226
7227         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
7228         gtk_text_iter_reorder
7229
7230 2001-06-05  Havoc Pennington  <hp@redhat.com>
7231
7232         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
7233
7234 2001-06-05  Havoc Pennington  <hp@redhat.com>
7235
7236         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
7237         to the range that was set
7238
7239         * gtk/gtkrange.c: add value_changed signal, primarily 
7240         intended for use with GtkScale
7241         (gtk_range_set_increments): new function
7242         (gtk_range_set_range): new function with weird name
7243         (gtk_range_set_value): new function
7244         (gtk_range_get_value): new function
7245
7246         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
7247         from gtk_spin_button_get_value_as_float(). Compat #define
7248         added for get_value_as_float.
7249
7250         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
7251
7252         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
7253
7254 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
7255
7256         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
7257
7258 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
7259
7260         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
7261
7262         * tests/testgtk.c (create_tooltips): Remove usage of
7263         gtk_widget_set().
7264
7265 2001-06-05  Havoc Pennington  <hp@redhat.com>
7266
7267         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
7268
7269         Applying patch from Jeff Franks, with function docs added.
7270         
7271         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
7272         remove call to set_mnemonic_widget, change docs a bit.  
7273
7274         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
7275         new function
7276
7277         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
7278         new function
7279
7280         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
7281
7282         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
7283         function
7284         (gtk_radio_button_new_with_mnemonic_from_widget): new function
7285
7286         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
7287         new function
7288
7289         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
7290         function        
7291
7292         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
7293         auto-selection of mnemonic widget.
7294
7295 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
7296
7297         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
7298         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
7299         (gtk_tree_view_column_set_min_width): ditto.
7300
7301 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
7302
7303         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
7304         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
7305
7306 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
7307
7308         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
7309         gtk_clist_thaw().
7310
7311 2001-06-04  Havoc Pennington  <hp@pobox.com>
7312
7313         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
7314 r       eleases for buttons 6, 7
7315
7316 2001-06-04  Havoc Pennington  <hp@redhat.com>
7317
7318         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
7319         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
7320         #55562
7321
7322 2001-06-04  Havoc Pennington  <hp@redhat.com>
7323
7324         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
7325         where text_view->layout == NULL by assuming its size is 0, 
7326         i.e. same as if we haven't done any reflow. Reported by 
7327         Hidetoshi Tajima #55448 
7328
7329 2001-06-04  Havoc Pennington  <hp@redhat.com>
7330
7331         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
7332         and 7 for scroll left/right, from Thomas Broyer
7333
7334 2001-05-10  Havoc Pennington  <hp@redhat.com>
7335
7336         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
7337         we need to parse the xsetting as if it were an RC file string.
7338
7339         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
7340         value of palette from settings, not from static variable
7341
7342         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
7343         xsettings translation table
7344
7345         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
7346         hardcoding the toolbar style conflicts with new customizable 
7347         toolbar style philosophy
7348         (gtk_toolbar_class_init): add settings for default toolbar style;
7349         these are used unless the app specifically forces a toolbar style
7350
7351         * gtk/gtksettings.c (settings_install_property_parser): only
7352         return at the start if we warn and parser == NULL
7353
7354         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
7355         palette changed handler so we don't notify dead color selections
7356
7357         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
7358         xthickness/ythickness of 0 or 1 properly 
7359         (gtk_default_draw_resize_grip): clear the background behind the
7360         resize grips, and align to bottom right if we square the 
7361         area to be drawn.
7362
7363         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
7364         statusbar label to 1, so it doesn't make toplevels resize oddly
7365         (gtk_statusbar_size_request): add grip size to request
7366         (gtk_statusbar_size_allocate): hack so the hbox still works with 
7367         the grip size in the request
7368
7369         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
7370         bug where showing all on a toplevel makes the toolbar 
7371         button text appear despite the toolbar mode
7372
7373         * gtk/gtkmenubar.c: add internal padding style property
7374
7375         * gtk/gtktoolbar.c: Add internal padding style property; add
7376         shadow type style property
7377
7378         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
7379         state; and put Container::border_width outside the frame
7380
7381         * gtk/gtktextview.c: don't draw focus rectangle if we're in
7382         interior focus mode, we just use blinking cursor
7383
7384 2001-06-04  Havoc Pennington  <hp@redhat.com>
7385
7386         * configure.in: Make gdk-pixbuf have same version number as GTK
7387
7388 2001-06-04  Havoc Pennington  <hp@redhat.com>
7389
7390         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
7391         digits greater than 6. If there actually are limits (which there
7392         likely aren't), should clamp to them not warn.
7393         (gtk_spin_button_new_with_range): don't take log of 0
7394         (gtk_spin_button_size_request): use digits to compute size
7395         request, rather than step increment.
7396
7397         * tests/testgtk.c (create_spins): test larger values of digits
7398         
7399         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
7400         font on map not expose, so we don't get weirdness during scrolling
7401
7402 2001-06-04  Havoc Pennington  <hp@redhat.com>
7403
7404         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
7405         Sam Solon, bug #54577, update value even if not drawable.
7406
7407 2001-06-04  Havoc Pennington  <hp@redhat.com>
7408
7409         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
7410         SCROLL_LEFT, reported by Thomas Broyer.
7411
7412 2001-06-04  Havoc Pennington  <hp@redhat.com>
7413
7414         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
7415         Process updates immediately, to prevent funny lag effect
7416         when scrolling, at some mild potential efficiency cost.
7417
7418 2001-06-04  Havoc Pennington  <hp@redhat.com>
7419
7420         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
7421         slider on the click.
7422
7423 2001-06-03  Havoc Pennington  <hp@pobox.com>
7424
7425         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
7426         hscale/vscale details, so we can use it for scrollbar as well.
7427
7428         * tests/testgtk.c (reformat_value): honor digits from GtkScale
7429
7430         * gtk/gtkenums.h (GtkTroughType): Remove this enum
7431         (GtkScrollType): add START and END from GtkTroughType
7432
7433         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
7434         its x/y arguments
7435
7436         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
7437         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
7438         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
7439         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
7440         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
7441
7442         Notable changes in the process:
7443          
7444         - stepper_size style property is the height for vertical 
7445           ranges, width for horizontal; the other dimension matches
7446           the trough size
7447         - add ability to do NeXT-style steppers (and several other styles
7448           that don't make any sense)
7449         - added min_slider_length, fixed_slider_length properties to
7450           GtkScrollbar
7451         - cleaned some private (or at least useless) functions out of
7452           gtkscale.h    
7453         - moved bindings to GtkScale from subclasses, even arrow keys,
7454           since blind users don't know scale orientation.
7455         - change move_slider action signal to use new GtkScrollType,
7456           remove GtkTroughType argument
7457         - digits rounds the values a range will input to the given 
7458           number of decimals, but will not try to force adjustment 
7459           values set by other controllers. That is, we no longer
7460           modify adjustment->value inside a value_changed handler.
7461         - added getters for GtkScale setters
7462         - middle-click begins a slider drag
7463         
7464 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
7465
7466         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
7467         getting the focus code to work.
7468         (gtk_tree_view_class_init): Add a bunch of keybindings.
7469
7470         * gtk/gtktreeviewcolumn.c
7471         (gtk_tree_view_column_set_cell_data_func):
7472         s/GtkCellDataFunc/GtkTreeCellDataFunc.
7473         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
7474         of "properties_changed" to help justify the death of the latter
7475         signal. (-:
7476
7477         * tests/testtreefocus.c (main): Let some columns be focussable to
7478         test focus better.
7479
7480 2001-06-01  Havoc Pennington  <hp@redhat.com>
7481
7482         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
7483         
7484         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
7485         overwrite in overwrite mode if we already deleted the selection
7486         and replaced it with new text.  
7487
7488         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
7489         selection to an empty range, clear the clipboard if we owned it.
7490         (gtk_label_set_selectable): give up selection if we become
7491         unselectable.
7492         (gtk_label_state_changed): override state changed to unselect text
7493         when insensitive
7494         (get_text_callback): add paranoia check that indexes aren't
7495         outside of label->text
7496         (gtk_label_select_region): make -1 for start_offset mean "end of
7497         label," for consistency with GtkEditable
7498
7499         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
7500         GTK_DIALOG_NO_SEPARATOR flag
7501
7502 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
7503
7504         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
7505         notifications on non-existant "enable_arrow_keys".
7506         (#53753, Skip Montanaro)
7507
7508 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
7509
7510         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
7511         GDK_TYPE_RECTANGLE.
7512
7513         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
7514         of allocation argument be GDK_TYPE_RECTANGLE.
7515
7516 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
7517
7518         * gtk/gtkoptionmenu.c: Account for the fact that the border
7519         width is _outside_ the window. (Fixes #54585, bug found
7520         by Bastien Nocera.)
7521
7522 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
7523
7524         * gtk/gtksettings.c (gtk_settings_get_property): Validate
7525         value from GDK settings against parameter spec.
7526
7527         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
7528         to temporary values and use g_value_transform(), since
7529         thinking that GValue was going to be easy or efficient
7530         to use was, of course, a mistake.
7531
7532         * gtk/gtksettings.c: Add cursor blink setting.
7533         
7534         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
7535
7536         * gtk/gtkentry.c: Add cursor blinking.
7537
7538         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
7539         cursor blink global settings.
7540
7541         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
7542         for :text_position in places where it is missing.
7543
7544 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
7545
7546         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
7547
7548 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
7549
7550         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
7551         not pkg-config. (#51032)
7552
7553         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
7554         (fixes #51952, James Henstridge)
7555         
7556 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
7557
7558         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
7559         Rename to the more correct gtk-go-up.
7560
7561         * gtk/stock-icons/stock_menu_sort_ascending.png:
7562         Added new file.
7563         
7564         * gtk/stock-icons/stock_menu_sort_descending.png:
7565         Changed to show descending instead of ascending.
7566
7567         * gtk/gtkiconfactory.c:
7568         Added menu size icon to sort ascending.
7569
7570         * gtk/stock-icons/Makefile.am:
7571         Added stock_menu_sort_ascending.png.
7572         
7573         * gtk/gtkseparatormenuitem.c:
7574         Use correct typenames.
7575
7576 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
7577
7578         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
7579         gulong as in GSignal.
7580
7581 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
7582
7583         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
7584         instances of GtkCellRenderer in code (all but dnd icon code).
7585         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
7586         there, and I can do multiple Cells per column.
7587
7588         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
7589
7590         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
7591         when model was unreffed prior to removing the row reference.
7592
7593 2001-05-25  Havoc Pennington  <hp@redhat.com>
7594
7595         * gtk/gtkiconfactory.c: fix so that default icons are created if 
7596         you call gtk_stock_list_ids()
7597
7598         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
7599         in list
7600
7601 2001-05-25  Havoc Pennington  <hp@redhat.com>
7602
7603         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
7604         set can render without falling back to missing image icon
7605
7606         * gtk/gtktextview.c (gtk_text_view_size_request): request full
7607         size of text, instead of random values
7608
7609         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
7610         size of tree view, instead of random values
7611
7612         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
7613         image in an appropriate size
7614
7615         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
7616         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
7617
7618         Throughout: fix GTK_STOCK_BUTTON_ instances
7619         
7620         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
7621         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
7622         Add a bunch of new stock items/icons
7623
7624         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
7625         new function, convenience for inserting columns with a data func
7626
7627         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
7628         (_gtk_icon_factory_list_ids): use list of all factories to
7629         generate a list of all known IDs
7630
7631         * gtk/gtkstock.c (gtk_stock_list_ids): replace
7632         gtk_stock_list_items() with a function that returns all IDs known
7633         including those for GtkIconFactory.
7634
7635 2001-05-25  Hans Breuer  <hans@breuer.org>
7636
7637         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
7638         work -> check boxes and radio buttons are drawn now, even on win9x.
7639         Improved line settings a bit, still no clue how to get really dotted
7640         lines on win9x, on NT it's PS_ALTERNATE.
7641
7642         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
7643         GDK_HINT_MIN_SIZE as well
7644
7645         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
7646
7647         * gtk/gtk.def : updated
7648
7649         * gtk/gtktreeprivate.h : change column_drop_func to be a function
7650         pointer not a function pointer pointer
7651
7652         * tests/testdnd.c : include <stdlib.h> for putenv prototype
7653
7654         * tests/testsocket.c : made it compile on win32 again
7655
7656         * tests/makefile.msc : one more test-app uses prop-editor.obj
7657
7658 2001-05-22  Havoc Pennington  <hp@pobox.com>
7659
7660         * gtk/gtkbin.c (gtk_bin_get_child): New function
7661
7662 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
7663
7664         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
7665         to ignore when doing compose processing.
7666
7667 2001-05-22  Joe Shaw  <joe@ximian.com>
7668
7669         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
7670         Simplify as suggested by Havoc. Just get the last iter and work
7671         backward to the tag instead of getting a line and working back from
7672         there. Fixes passing in an invalid offset to
7673         iter_init_from_byte_offset().
7674
7675 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
7676
7677         * gtk/gtktreeview*.h: 
7678         * gtk/gtkcell*.h:
7679         * gtk/gtk*store.h:
7680         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
7681         macros to all objects.
7682
7683 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
7684
7685         * gtk/gtkcellrenderertext.c
7686         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
7687         with very large (TM) amounts of text.  May be moved to
7688         GtkCellRenderer in the future, though I'm not sure it wants to be
7689         this accessible.
7690
7691         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
7692         More sanity brought to this class.  I like it.
7693
7694         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
7695         case.  Kids, don't try this at home.
7696
7697         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
7698         convenience function.
7699
7700         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
7701
7702 2001-05-21  Alexander Larsson  <alexl@redhat.com>
7703
7704         * gtk/gtkfontsel.c:
7705         Added properties. Based on patch by Lee Mallabone.
7706
7707         * gtk/gtkruler.c:
7708         * gtk/gtkhruler.c:
7709         * gtk/gtkvruler.c:
7710         * gtk/gtktext.c:
7711         * gtk/gtktextview.c:
7712         Converted GtkArg to GParam. Based on patches by John Margaglione.
7713
7714         * tests/Makefile.am:
7715         * tests/testtext.c:
7716         Add a property editor to testtext.
7717         
7718 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
7719
7720         * gtk/gtk{h,v,}paned.c: Only show the separator if 
7721
7722         * configure.in: Fixed reversed conditional causing all image
7723         libraries to be linked in.
7724
7725 2001-05-21  Joe Shaw  <joe@ximian.com>
7726
7727         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
7728         that top_y needs to be >= 0.
7729
7730 2001-05-11  Havoc Pennington  <hp@pobox.com>
7731         
7732         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
7733         losing connection to the X server.
7734
7735 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
7736
7737         * configure.in: Start checks for X from pangox/pangoxft
7738         CFLAGS to avoid duplicate libraries.
7739
7740         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
7741
7742         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
7743         to include gobject.
7744         
7745 2001-05-18  Alexander Larsson  <alexl@redhat.com>
7746
7747         * gtk/gtkspinbutton.c:
7748         Convert GtkArgs to GParams. Based on patch by John Margaglione.
7749         Also do size request reasonable for MAXDOUBLE. Previously it printed
7750         the limits to a buffer and overran it. Instead do it using log10() and
7751         limit the width to 10 digits.
7752         
7753         * gtk/gtkwidget.c (gtk_widget_get_property):
7754         Correctly handle setting the parent property to NULL.
7755
7756 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
7757
7758         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
7759         style attributes even if the widget isn't realized.
7760
7761         * demos/gtk-demo/main.c: Use a slightly smaller font.
7762
7763 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
7764
7765         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
7766         This is something that only a widget writer would ever want
7767         to change.
7768
7769         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
7770         gtk_signal_emit_by_name().
7771
7772         * gtk/gtkviewport.c: Fix some warnings.
7773
7774         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
7775         allowing the requisitions of multiple widgets to be grouped
7776         together.
7777
7778         * tests/testgtk.c: Add GtkSizeGroup test
7779
7780         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
7781
7782         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
7783         warnings.
7784
7785         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
7786
7787 2001-04-28  Martin Baulig  <baulig@suse.de>
7788
7789         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
7790         to gtk_image_menu_item_set_icon() and made it work if there's already
7791         an image.
7792         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
7793         (gtk_image_menu_item_new_with_label): New function.
7794
7795 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
7796
7797         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
7798         highlighting code!!!!  The result is okay so long as you don't try
7799         to stress it.  It also highlights a bug in the TextView so it's in
7800         an unproportional font right now until it's fixed.
7801
7802         *demos/gtk-demo/*.c: Clean up code a bit to make it
7803         ugly-parser(TM) friendly. (-:
7804
7805 2001-05-17  Joe Shaw  <joe@ximian.com>
7806
7807         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
7808         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
7809         if it is only partially onscreen.
7810
7811 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
7812
7813         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
7814         not by characters.
7815
7816         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
7817         are not zero or one; that is, when graphemes of multiple characters
7818         are involved.
7819
7820         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
7821         FIXME.
7822
7823 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
7824         
7825         * gtk/gtkbbox.c:
7826         Add properties, based on patch by Lee Mallabone.
7827
7828         * gtk/gtknotebook.c:
7829         * gtk/gtktoolbar.c:
7830         Convert from GtkArg to GParam, based on patch by John Margaglione.
7831         
7832         * gtk/gtkhscale.c:
7833         * gtk/gtkvscale.c:
7834         * gtk/gtkhscrollbar.c:
7835         * gtk/gtkvscrollbar.c:
7836         * gtk/gtkrange.c:
7837         Move adjustment property to GtkRange.
7838
7839         * gtk/gtklabel.c:
7840         Setup mnemonics on property changes
7841
7842         * gtk/gtkwidget.c (gtk_widget_get_property):
7843         GdkExtensionMode is an enum, not a flag. Set it with
7844         g_value_set_enum ().
7845
7846         * tests/prop-editor.c:
7847         Better propery editor.
7848
7849         * tests/testgtk.c:
7850         Add new property test. Pass zero to the property editor to
7851         get properties from all derived types.
7852         
7853 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
7854
7855         * autogen.sh (have_automake): Require libtool-1.4,
7856         automake-1.4p1.
7857
7858         * acinclude.m4: Remove libtool macros.
7859
7860         * gdk-pixbuf/Makefile.am: Add dependencies to loade
7861         modules.
7862
7863         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
7864         for libgdk.
7865
7866         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
7867         libgdk.la for libgtk.
7868
7869         * modules/input/Makefile.am: Make modules have full
7870         dependencies.
7871
7872 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
7873
7874         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
7875         #54699 where paths weren't being checked for correctness.
7876
7877 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
7878
7879         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
7880         in any order you wan, whether or not the column is added to the
7881         tree, or the tree is realized.  Yay!
7882
7883         * gtk/gtktreeviewcolumn.c
7884         (gtk_tree_view_column_setup_sort_column_id_callback): handle
7885         sorting columns a lot saner
7886
7887         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
7888         new function to actually set wether or not a column is
7889         reorderable.
7890
7891         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
7892         if we have 'em.
7893
7894         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
7895         Fix nasty bug where we were showing the button just before
7896         realizing it.  As a result, the parent window was
7897         tree_view->window instead of tree_view->priv->header_window.
7898
7899         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
7900         to let you easily reorder a list or tree.
7901
7902 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
7903
7904         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
7905         from args to properties.
7906
7907 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
7908
7909         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
7910         from args to properties. (#51957)
7911
7912         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
7913         calls to after ->set_property call.
7914
7915 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
7916
7917         * tests/prop-editor.c: Block against redundant changes.
7918
7919         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
7920         properties.
7921
7922 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
7923
7924         * gdk/gdkpixmap.h: Remove creative formatting.
7925
7926 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
7927
7928         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
7929         property API. (#51669)
7930
7931         * gtk/gtkscale.c: Patch from John Margaglione converting to
7932         property API. (#51891)
7933
7934         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
7935         to property API. (#50985)
7936
7937 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
7938
7939         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
7940         buffering state across expose event, so we still call end_paint().
7941
7942 2001-05-11  Alexander Larsson  <alexl@redhat.com>
7943
7944         * gtk/gtkhsv.c (paint_triangle):
7945         Expose the ring in the triangle at the correct place when
7946         exposing just a part of the triangle.
7947
7948         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
7949         Return FALSE, or window focusing will not work.
7950
7951 2001-05-11  Havoc Pennington  <hp@pobox.com>
7952
7953         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
7954         #54144
7955
7956         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
7957         bug #54330
7958
7959 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
7960
7961         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
7962         propagate exposes to NULL child.
7963
7964         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
7965         against not having one of the scrollbars.
7966
7967         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
7968         we don't keep a mnemonic window if we have no mnemonic installed.
7969
7970 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
7971
7972         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
7973         it has the _important_ side effect of initializing a class.
7974
7975 2001-05-10  Alexander Larsson  <alexl@redhat.com>
7976
7977         * gdk/linux-fb/gdkprivate-fb.h:
7978         Make sure you can compile out the implementation/wrapper assert
7979         macros.
7980
7981         * gdk/linux-fb/gdkdrawable-fb2.c:
7982         Check implementation/wrappers, initialize type for pixmap dummys.
7983
7984         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
7985         Hide the cursor if reading from the screen.
7986
7987         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
7988         Fix sign bug in tiling code.
7989
7990         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
7991         Handle background pixmaps.
7992
7993 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
7994
7995         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
7996         function to let user control where columns are dragged.
7997
7998         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
7999         Escape is pressed.
8000
8001 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
8002
8003         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
8004         "columns_changed" signal.
8005         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
8006         motion code to draw arrows to the side if indicator is outside the
8007         widget.
8008         (gtk_tree_view_map_expanded_rows): Implement.
8009
8010 2001-05-07  Alexander Larsson  <alexl@redhat.com>
8011
8012         * demos/testpixbuf-save.c: 
8013         * demos/testpixbuf-drawable.c:
8014         Include gdkfb.h on linux-fb.
8015
8016 2001-05-07  Alexander Larsson  <alexl@redhat.com>
8017
8018         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
8019         New function for getting toplevel window at position.
8020         (gdk_drag_find_window): Use get_toplevel_window () instead
8021         of gdk_window_get_pointer(). (gdk_drag_status): Use
8022         correct context for getting window.
8023
8024         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
8025         g_strdup the atom name.
8026
8027         * gdk/linux-fb/gdkwindow-fb.c:
8028         Costmetic fix.
8029
8030         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
8031         Add code for changing cursor on linux-fb backend (same as
8032         win32).
8033
8034 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
8035
8036         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
8037         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
8038         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
8039         report was not for the development branch of GTK+, but it applies
8040         anyways).
8041
8042 2001-05-04  Havoc Pennington  <hp@redhat.com>
8043
8044         * configure.in: fix some shell typos
8045
8046         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
8047
8048         * gtk/gtkimage.c: handle animations
8049
8050         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
8051         border_width * 2, not just border_width
8052
8053         * gtk/gtkscale.c: add "format_value" signal to allow people
8054         to override the way values are drawn.
8055         (gtk_scale_get_value_size): fix width/height mistake,
8056         and compute size from actual displayed text, not 
8057         from made-up text.
8058
8059         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
8060         signal registration
8061
8062         * tests/testtext.c: Add "Remove all tags" menu item for testing
8063
8064         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
8065
8066         * demos/gtk-demo/main.c (main): add hack so we can find modules
8067         without installing gtk
8068
8069         * demos/gtk-demo/textview.c (insert_text): demo font scaling
8070
8071         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
8072         factor)
8073         (gtk_cell_renderer_text_set_property): remove some bogus
8074         g_object_notify
8075
8076         * gtk/gtktexttag.c: add "scale" property which is a font scaling
8077         factor
8078
8079         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
8080         to layout
8081
8082         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
8083         gtk_text_iter_is_first
8084
8085 2001-01-06  Hans Breuer  <hans@breuer.org>
8086
8087         * gdk/gdk.def : updated exports
8088
8089         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
8090         gdk won't compile anymore
8091  
8092         * gdk/win32/gdkevents-win32.c : initialize ret_val when
8093         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
8094         Improved gdk_flush () to not only do pending drawing operations
8095         but also process all currently pending events. This should make
8096         the behaviour more similar to the X11 version.  
8097
8098         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
8099         option needs to be set even if there is no GDK_GC_BACKGROUND.
8100         (gdk_win32_hdc_get) : use predraw_set_background () independent
8101         of value_mask. This allows to draw dashed lines leaving the original
8102         background intact.
8103
8104         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
8105         after processing, because we can't reuse it as the X11 version does.
8106
8107         * gtk/gtk.def : updated exports
8108
8109         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
8110         would like to get rid of this file again, and use straight
8111         makefile.msc again, as the other Gtk+ subdirs do)
8112
8113         * test/makefile.msc (new file) : build the test apps here
8114
8115 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
8116
8117         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
8118         strike-through setting
8119         (gdk_draw_layout_line_with_colors): Render strike-through
8120
8121 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
8122
8123         * Release 1.3.5
8124
8125         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
8126
8127         * NEWS: Updated
8128
8129         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
8130         Makefile breakage.
8131
8132 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
8133
8134         * demos/gtk-demo/images.c (progressive_timeout): Fix
8135         typo in filename.
8136
8137         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
8138         out FIXME warning; just too annoying.
8139
8140 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
8141
8142         * gdk/linux-fb/gdkcolor-fb.c:
8143         Better error messages.
8144
8145         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
8146         Initialize abs_x and abs_y.
8147         
8148         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8149         Correct handling of stipple offset.
8150
8151         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
8152         Treat directcolor framebuffers as truecolor.
8153         
8154 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
8155
8156         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
8157         dependency on Atk for accessibility support.
8158
8159         * configure.in **/Makefile.am: Major reworking of substituted
8160         variables for CFLAGS/LIBS to make a lot more sane and 
8161         keep the the compile/link lines a bit shorter.
8162
8163         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
8164
8165 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
8166
8167         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
8168         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
8169         use _gtk_boolean_handled_accumulator.
8170
8171 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
8172
8173         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
8174         to fix things so clicking inside selection leaves cursor
8175         at point where clicked. (#50324)
8176
8177         * gtk/gtksettings.c (gtk_settings_class_init): Restore
8178         sane value for default double click time.
8179
8180         * tests/testtext.c (test_init): Really path to input modules.
8181
8182 2001-05-03  Sven Neumann  <sven@convergence.de>
8183
8184         * demos/testpixbuf-save.c: include target-specific headers as
8185         done in testpixbuf-drawable.c
8186
8187 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
8188
8189         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
8190         new_text_length appropriately when we run into the 
8191         size limit for the entry. (#53445, reported by Jeff Franks)
8192
8193         * tests/testgtk.c (create_entry): Remove most of the
8194         property toggle buttons. Replace with a "Props" button
8195         that brings up a property editor.
8196
8197         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
8198         Split the property editor code out for reuse, improve.
8199
8200 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
8201
8202         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
8203         trap errors around calls to XSetInputFocus since we have
8204         no way of knowing reliably whether we are viewable or
8205         not. (#53947)
8206
8207 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
8208
8209         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
8210         fix bug in dropping columns.  Moving columns now basically works
8211         modula some fine tuning.
8212
8213 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
8214
8215         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
8216         autoscroll support.  It mostly works, but could use some fine
8217         tuning.
8218         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
8219         Actually move the column.
8220
8221 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
8222
8223         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
8224           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
8225           New default theme! A slighly improved version of the 2.0 Raleigh
8226           theme, with Windows-esque focus/drawing default. 
8227           (GtkWidget::interior_focus defaults to TRUE.)
8228
8229         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
8230
8231 2001-04-30  Havoc Pennington  <hp@pobox.com>
8232
8233         * tests/testtext.c (line_numbers_expose): fix to work with
8234         gtk_paint_layout change
8235
8236 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
8237
8238         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
8239           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
8240           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
8241           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
8242
8243         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
8244           with GtkWidget::interior_focus = TRUE better.
8245
8246         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
8247         ::default_outside_border for more flexibility.
8248
8249         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
8250         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
8251         change that had to be made with g_object_get.
8252
8253 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
8254
8255         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
8256         (gtk_tree_view_move_column_after): Clean up interface. 
8257
8258 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
8259
8260         * gtk/gtkpacker.h:
8261         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
8262          to gtkenum.h.
8263
8264         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
8265         handled in switch).
8266
8267         * gtk/Makefile.am:
8268         (gtk.defs): generate enum portions with  glib-mkenums.
8269         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
8270         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
8271         
8272         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
8273         addition.
8274
8275         * docs/Changes-2.0.txt: keep a note on signal handlers now
8276         not getting emitted during the emission they were connected within.
8277
8278 2001-04-28  Havoc Pennington  <hp@pobox.com>
8279
8280         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
8281
8282 2001-04-24  Havoc Pennington  <hp@redhat.com>
8283
8284         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
8285         (gtk_text_layout_move_iter_to_next_line): fix these two for
8286         invisible text, lots of other stuff still hosed.
8287
8288         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
8289         new function, replaces the get/set palette stuff. This function 
8290         is intended for use by libgnomeui which should set the hook to a
8291         thing which sets the palette in GConf, and we need the
8292         GConf-to-xsettings proxy which will result in the change being
8293         propagated back to the GTK app.
8294
8295         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
8296         about unusable signals that it may be because the signal has 
8297         parameters.
8298
8299         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
8300         style, otherwise gtkrc.c won't know to create a new GtkStyle for
8301         it.
8302         (gtk_widget_modify_color_component): call
8303         gtk_widget_modify_style() so the rc style will get copied.
8304         (gtk_widget_modify_font): ditto
8305
8306         * gtk/gtkrc.c: make a couple variables static
8307
8308         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
8309         help button by default, since it does nothing
8310
8311         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
8312         around with UI
8313
8314         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
8315         so we can have tooltips
8316
8317         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
8318         can have tooltips
8319
8320         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
8321         GDK_ENABLE_BROKEN, because its memory behavior is completely
8322         hosed.
8323
8324         * gtk/gtknotebook.c: remove key press handler, replace with
8325         binding set, add numeric keypad support
8326
8327         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
8328
8329         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
8330
8331         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
8332         addition to plain Delete
8333
8334         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
8335         GDK_KP_Enter in addition to GDK_Return
8336
8337         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
8338         activate on entry instead of key press
8339         (gtk_font_selection_on_clist_key_press): get
8340         rid of this signal handler, not needed with new font sel.
8341
8342         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
8343         no-longer-needed emit_stop_by_name(), just return TRUE
8344
8345         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
8346         cruft, this widget is no longer focusable.
8347
8348         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
8349         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
8350         move_slider action signal, add binding set for vscale/hscale, in
8351         the process support numeric keypad
8352
8353         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
8354         make GDK_Return and GDK_KP_Enter activate the entry via 
8355         binding set, instead of hardcoded.
8356
8357 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
8358
8359         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
8360         code.  Some documentation added.
8361
8362 2001-04-27  Havoc Pennington  <hp@redhat.com>
8363
8364         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
8365
8366         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
8367
8368         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
8369         line/para separators
8370         (gtk_entry_create_layout): set single paragraph mode on the layout
8371
8372         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
8373         spacing between the image and label; instead, inside a button box 
8374         the button will get extra space that will go there, but if people 
8375         configure button box for 0 chubbiness, then there's no spacing.
8376
8377         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
8378         and min/max size style properties, so people can tune their
8379         chubbiness.
8380
8381         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
8382         functions
8383
8384         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
8385         space_style, and button_relief into style properties, remove
8386         functions for setting them
8387         
8388         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
8389         it back down
8390
8391         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
8392         types from gtk_widget_style_get
8393
8394         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
8395         with a style property.
8396
8397         * gdk/x11/gdkevents-x11.c: namespace the settings
8398
8399         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
8400
8401         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
8402         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
8403         be used. Also, translate doc strings for settings. Also, namespace
8404         the double-click-time property. Also, remove bell properties crap.
8405
8406 2001-04-27  Sven Neumann  <sven@gimp.org>
8407
8408         * Makefile.am: before creating links, check if pkg-config files
8409         exist for the default target. Otherwise link to the pkg-config files
8410         that got installed with this build.
8411
8412 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
8413
8414         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
8415         dragging code.  Revealed some (potential) GdkWindow bugs.
8416
8417         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
8418         _gdk_window_init_position to the end of reparent to fix the case
8419         of reparenting when new_x != old_x and new_y != old_y.
8420
8421 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
8422
8423         * gtk/gtkentry.c (strstr_len): Fix optimization that
8424         was correct for the use here, but completely incorrect
8425         in general.
8426
8427 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
8428
8429         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
8430         until patch adding gtk_window_set_size() is recommitted. 
8431
8432         * **Makefile.am configure.in gdk/x11/gdkim-11.c
8433           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
8434           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
8435           (#10784)
8436
8437 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
8438
8439         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
8440         window == NULL in a number of cases.
8441
8442         * tests/testdnd.c: Set module path for gdk-pixbuf.
8443
8444 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
8445
8446         * gtk/Makefile.am xembed.h: File containing #defines
8447         for XEMBED protocol.
8448
8449         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
8450
8451         - Change protocol from old plug/socket specific protocol
8452           to XEMBED draft
8453         - Various fixes to work with GTK+-2.0
8454
8455         Still quite a bit of work to do here to handle initiation
8456         from the socket side (as specified by XEMBED), to handle
8457         the more advanced features of XEMBED, and to figure out
8458         a good way to handle same-app embedding with less overhead
8459         than using full XEMBED.
8460
8461 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
8462
8463         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
8464         track of whether the toplevel has the focus; only send
8465         focus-in events to the focus widget when the window
8466         actually has the focus.
8467
8468 2001-04-25  Havoc Pennington  <hp@pobox.com>
8469
8470         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
8471         were still in the header
8472
8473 2001-04-24  Alexander Larsson  <alexl@redhat.com>
8474
8475         * gtk/gtkclist.[ch]:
8476         * gtk/gtkctree.c:
8477         When there is a row highlighted for D'n'D it must alse
8478         be painted hightlighted on exposes. Otherwise exposes from
8479         the icon being dragged will mess up the hightlight.
8480
8481         * gtk/gtkfontsel.c:
8482         Don't recenter selected font when exposing the font family
8483         clist. This means you can now actually scroll the font family
8484         list.
8485
8486         * gtk/gtknotebook.c:
8487         Fix focus movement on scrolling tabs that are placed on the left
8488         and right.
8489
8490 2001-04-21  Havoc Pennington  <hp@pobox.com>
8491
8492         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
8493         empty/invisible lines.
8494
8495         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
8496         (gtk_text_iter_set_visible_line_index): new functions to set
8497         indexes excluding invisible text
8498
8499         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
8500         index
8501
8502         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
8503         (gtk_text_iter_get_visible_line_offset): new functions to 
8504         get indexes excluding invisible text
8505
8506         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
8507         bunch of extra padding that served no purpose
8508
8509         * gtk/gtkdialog.c: Make all the spacings configurable via style
8510         properties, for chubbiness configuration in themes
8511
8512         * tests/testtext.c: fix path to the immodules.
8513         
8514 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
8515
8516         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
8517         got munched by #endif.
8518
8519         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
8520
8521         * gtk/gtktreeview.c: Refactored code to clean up a number of
8522         events.
8523
8524         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
8525         values to make consistent with other functions.  Spotted by Jeff
8526         Franks <jcf@tpg.com.au>.
8527
8528         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
8529         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
8530
8531 2001-04-23  Sven Neumann  <sven@gimp.org>
8532
8533         * gtk/Makefile.am
8534         * gtk/gtkplug.c
8535         * gtk/gtksocket.c: on request of Owen, reverted my last change 
8536         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
8537
8538 2001-04-23  Sven Neumann  <sven@gimp.org>
8539
8540         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
8541         compile for non-X11 targets again
8542
8543 2001-04-20  Alexander Larsson  <alexl@redhat.com>
8544
8545         * gtk/gtkcolorsel.[ch]:
8546         API Change. Take GdkColor arguments instead of gdouble *.
8547         Leave the old gtk_color_selection_set_color for compatibility,
8548         but marked deprecated.
8549         Do correct rounding when converting RGB <-> HSV.
8550         
8551         * gtk/gtkcolorseldialog.c:
8552         * tests/testgtk.c:
8553         Use new GtkColorSelection API.
8554
8555         * gtk/gtkhsv.c:
8556         Fix problem selecting colors in triangle when Hue is 330.
8557         Fix some black dots around the HSB triangle.
8558         
8559         * gtk/gtkfilesel.c:
8560         return FALSE from the focus_in_event handler to fix focus problems.
8561
8562 2001-04-18  Havoc Pennington  <hp@redhat.com>
8563
8564         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
8565         set, so keybindings are configurable    
8566         (gtk_window_activate_default): Change to activate the focus widget
8567         instead if there's a focus widget, to be consistent with the
8568         behavior that previously existed in key_press_event
8569
8570 2001-04-18  Havoc Pennington  <hp@redhat.com>
8571
8572         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
8573
8574 2001-04-18  Havoc Pennington  <hp@redhat.com>
8575
8576         Close bug #50615:
8577         
8578         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
8579         the layout
8580
8581         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
8582
8583         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
8584
8585         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
8586         
8587         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
8588         to blue for base, in addition to bg
8589         
8590 2001-04-18  Havoc Pennington  <hp@redhat.com>
8591
8592         * tests/testgtk.c (create_image): allow shrinking the image window
8593         to test that we clip to allocation.
8594
8595         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
8596         #9845
8597
8598         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
8599
8600 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
8601
8602         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
8603         mode on shm segments to 0600. We'll see who complains.
8604
8605         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
8606         _gdk_windowing_window_destroy() AFTER recursing through
8607         children.
8608
8609         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
8610         testsocket_child on X.
8611
8612         * tests/testsocket[_child].c: Fix uses of
8613         gtk_window_get_default_accel_group().
8614
8615         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
8616
8617         * gdk/gdkimage.c: (gdk_image_get):
8618         Deal with the possibility that XGetImage() might return NULL.
8619         Allocate the GdkImagePrivate structure only after XGetImage()
8620         succeeds in order not to dereference a NULL ximage pointer.  This
8621         prevents a core dump when XGetImage() fails - which is unlikely,
8622         but can happen due to race conditions accessing the geometries of
8623         drawables.  An x error will still be triggered, but the gdk image
8624         wrapper at least wont seg fault.
8625         
8626 2001-04-18  Havoc Pennington  <hp@redhat.com>
8627
8628         * gtk/gtkimage.c: fix to properly queue resizes when the image is
8629         set
8630
8631         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
8632         if the insertion point isn't editable
8633
8634         * demos/gtk-demo/images.c: Added a GtkImage demo
8635
8636         * demos/gtk-demo/drawingarea.c: drawing area demo
8637         
8638         * demos/gtk-demo/menus.c (create_menu): cleanups
8639
8640 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
8641
8642         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
8643           gdk/x11/gdkevents-x11.c: Introduce an extra child
8644         of toplevel windows that serves to hold the focus to
8645         avoid events being delivered to embedded windows.
8646
8647         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
8648         some extra variables to clean up code and reduce the
8649         number of casts.
8650
8651         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
8652         guint for 1 bit bit fields, not gboolean.
8653
8654 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
8655
8656         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
8657         not TRUE. (Fixes #52925)
8658
8659 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
8660
8661         * Released 1.3.4
8662
8663         * NEWS: Updated
8664
8665         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
8666         use GTK_TYPE_ENUM.
8667
8668 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
8669
8670         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
8671
8672         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
8673         names to compatibility #defines so docs work.
8674
8675         * gtk/gtkenums.h: Remove GtkMenuFactoryType
8676
8677         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
8678
8679         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
8680
8681         * tests/testgtkrc: No magenta cursors, please.
8682
8683         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
8684
8685         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
8686         
8687 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
8688
8689         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
8690         grabs, since they are no longer necessary.
8691
8692         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
8693         by signal_connect() and call gtk_button_pressed() rather
8694         than signal_connect_after().
8695
8696         * tests/testgtk.c: Restore radio menu items to combos 
8697         since they'll look OK with Raleigh, and it is easier
8698         than finishing the process of removing them that was
8699         started earlier.
8700
8701 2001-04-16  Hans Breuer  <hans@breuer.org>
8702
8703         * gdk/gdk.def :
8704         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
8705
8706         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
8707         we are interested in the functions return value not the function address
8708         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
8709
8710         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
8711
8712 2001-04-14  Hans Breuer  <hans@breuer.org>
8713
8714         * gdk/gdk.def :
8715         * gdk/makefile.msc : updated
8716
8717         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
8718         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
8719         (the testgtk::text backgound pixmap is drawn again)
8720         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
8721         Win32 Pango change
8722         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
8723
8724         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
8725         Not sure if the returned settings have the right unit, because I couldn't
8726         find any docs for the X version ...
8727
8728         * gtk/gtk.def :
8729         * gtk/makefile.msc.in : updated
8730
8731 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
8732
8733         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
8734         wording problems. (Compared to version from Johannes Stezenbach to
8735         check correctness.)
8736
8737 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
8738
8739         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
8740         this to compile.
8741
8742 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
8743
8744         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
8745         not pixbufpos.
8746
8747         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
8748
8749         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
8750         are unsigned insts, therefore use g_value_set_uint.
8751         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
8752
8753 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
8754
8755         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
8756
8757         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
8758         GTK_TYPE_STRING.
8759
8760         * gtk/gtktreeview.c: New functions to allow initial column
8761         dragging work.
8762
8763         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
8764
8765         * tests/testtreefocus.c: give dave some love.
8766
8767         * tests/testtreesort.c: Modify test to check really long samples.
8768
8769 2001-04-11  Alexander Larsson  <alexl@redhat.com>
8770
8771         * gtk-2.0.m4: Pass pkg-config options
8772         before the other args so it works even if
8773         POSIXLY_CORRECT is set.
8774
8775 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
8776
8777         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
8778         0, interface 0).
8779
8780 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
8781
8782         * gtk/gtkcalendar.c (gtk_calendar_button_press):
8783         check for action_func != NULL
8784
8785 2001-04-04  Sven Neumann  <sven@gimp.org>
8786
8787         * tests/testgtk.c (test_init): corrected path to gtk.immodules
8788
8789 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
8790
8791         * Released Gtk+-1.3.3.
8792
8793 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
8794
8795         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
8796
8797 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
8798
8799         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
8800         files to/from source dir. (if we don't stay in builddir, we
8801         can't reach make-inline-pixbuf.
8802
8803         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
8804         deps.
8805
8806         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
8807         ages 0).
8808
8809 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
8810
8811         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
8812         moved to the GtkTreeSortable interface.
8813
8814         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8815         Make more efficient (fixes #50262).
8816
8817 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
8818
8819         * NEWS: Updated.
8820
8821         * configure.in: Remove support for uninstalled glib.
8822
8823         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
8824         so as not to stop emission.
8825
8826         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
8827         is no longer supported.
8828
8829         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
8830         into tests, change build order to build modules before
8831         gtk/.
8832
8833         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
8834         to here.
8835
8836 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
8837
8838         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
8839         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
8840         GPatternSpec. this is actually unlikely to cause breakage in
8841         third-party apps since except for gle, pretty much ever caller
8842         passes NULL here.
8843
8844         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
8845
8846         * *.c: use g_pattern_*() API.
8847
8848         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
8849
8850         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
8851         directions aren't passed in.
8852
8853         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
8854         functionality to be usable from gtkstyle.c as well, give precedence
8855         for conversion to user-supplied parsers.
8856         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
8857
8858         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
8859         _gtk_settings_parse_convert() for rcporperty value conversion.
8860
8861 2001-04-03  Alexander Larsson  <alexl@redhat.com>
8862
8863         * gdk/linux-fb/gdkevents-fb.c:
8864         Add empty gdk_setting_get().
8865
8866 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
8867
8868         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
8869         variable names.
8870         
8871         * gtk/makeenums.pl: touch this so enum files get remade.
8872
8873 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
8874
8875         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
8876         work again when not sorted.
8877
8878         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
8879         and "expand_row" signal, closing bug 52578.
8880
8881         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
8882         support.
8883
8884         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
8885         support.
8886
8887 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
8888
8889         * gdk/gdkevents.h: Add GdkEventSetting event for notification
8890         of changes to system settings, gdk_setting_get() to retrieve
8891         a single system setting.
8892
8893         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
8894         to the draft XSETTINGS mechanism.
8895
8896         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
8897         XSETTINGS.
8898
8899         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
8900         of GDK settings changes to the GtkSettings object.
8901
8902         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
8903         double-click-timeout property to GDK.
8904
8905         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
8906         Define GDK boxed types here.
8907
8908         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
8909         gdk/gdkenumtypes.[ch] for enum definitions.
8910
8911         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
8912         * gtk/gtk-boxed.defs: Comment out GDK types
8913         * gtk/gtktypeutils.h: Remove GDK types
8914         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
8915
8916 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
8917
8918         * Applied patch from Ron Steinke to add signal accumulators
8919         so that signals with the convention 'TRUE return means
8920         handled' stop emission on a TRUE return.
8921
8922         * gtk/gtkmain.[ch]: Add private accumulator 
8923         _gtk_boolean_handled_accumulator, used throughout GTK+.
8924         
8925         * gtk/gtkspinbutton.c: Add accumulator for ::output.
8926
8927         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
8928         
8929         * gtk/gtkwidget.c: Add accumulators for event signals,
8930         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
8931         for ::mnemonic-activate.
8932
8933         * gtk/gtkwindow.c: Add accumulator for ::frame_event
8934
8935 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
8936
8937         * gtk/gtkwidget.c: Add missing include.
8938
8939 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
8940
8941         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
8942         marshaller.
8943
8944         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
8945         "changed" signal to "range_changed".
8946
8947         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
8948         removing a tree from one model would remove all trees from that
8949         model.
8950         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
8951         changed signal instead.
8952
8953 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
8954
8955         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
8956         chaining up to parent impl, since we have a INPUT_ONLY
8957         window.
8958
8959         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
8960         foreground color for the cursor.
8961
8962 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
8963
8964         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
8965         param spec when caching property values, since we unref it
8966         later when we free the style.
8967
8968         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
8969         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
8970
8971 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
8972
8973         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
8974         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
8975         stupidity.
8976
8977 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
8978
8979         [ First pass at adding style properties. Still needs some definite
8980         fine-tuning. ]
8981
8982         * gtk/gtkbutton.c: Add ::default_spacing style property.
8983          
8984         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
8985         ::indicator_spacing style properties.
8986
8987         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
8988         style properties.
8989
8990         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
8991         rather than a normal property.
8992
8993         * gtk/gtkwidget.c: Add an ::interior_focus style property to
8994         draw focus inside buttons, in the Windows/Java Metal/etc. style.
8995
8996         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
8997         Honor ::interior_focus.
8998         
8999         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
9000         TRUE.
9001
9002         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
9003         Add ::slider_width, ::trough_border, ::stepper_size,
9004         ::stepper_spacing style properties.
9005
9006         * gtk/gtkscale.[ch] Add ::slider-length style property.
9007
9008 2001-04-02 Alexander Larsson   <alexl@redhat.com>
9009
9010         * gdk/linux-fb/gdkwindow-fb.c:
9011         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
9012         warnings that were spewed on startup.
9013
9014         * gtk/gtkwindow-decorate.c:
9015         gtk_window_reposition -> _gtk_window_reposition
9016
9017 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
9018
9019         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9020         Add boxed type for GtkRequistion. Use it for ::size-request.
9021
9022         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9023         Add a new GtkBorder structure useful for geometry properties
9024         for widgets. Add corresponding GTK_TYPE_BORDER.
9025         
9026         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
9027         Support automatic parser selection like
9028         gtk_settings_install_property_parser().
9029
9030         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
9031         functionality for use by gtk_widget_class_install_style_property.
9032         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
9033
9034 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
9035
9036         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
9037         g_param_spec_unichar(). 
9038
9039 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
9040
9041         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
9042         _NET window managers.
9043
9044         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
9045
9046 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
9047
9048         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
9049         bad needs to be nuked, not just deprecated.
9050
9051         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
9052         gtk_widget_popup().
9053
9054         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
9055         
9056         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
9057         widget.
9058         
9059         * docs/Changes-2.0.txt: updates.
9060         
9061 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
9062
9063         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
9064         for (i = 0; i < 100; i ++)
9065           g_print ("I will confirm it compile before committing\n");
9066
9067 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
9068
9069         * gtk/gtktreestore.c: Initial work on implementing the
9070         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
9071
9072 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
9073
9074         * gtk/gtkwidget.c: fixed a bunch of notifications, added
9075         reference counts around emissions where the widget is used afterwards.
9076         added freeze/thaws around multiple properties being notified.
9077         (_gtk_widget_get_aux_info): cleanups.
9078         
9079         * gtk/gtksettings.c (gtk_settings_install_property): provide
9080         default parsing functions for gdkcolor, enums and flags.
9081
9082         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
9083         applied by owen.
9084         backed out gtk_window_get_location(), gtk_window_set_location(),
9085         gtk_window_get_size() and gtk_window_set_size(), these
9086         have to be sorted out wrg x/y/width/height/default_with/default_height
9087         properties.
9088         kept a flag in GtkWindowGeometryInfo to handle user
9089         resetting default sizes.
9090         cleaned up ZVT comments.
9091         bunch of assorted bug fixes, notification fixes.
9092         (_gtk_window_reposition): make this a really internal function.
9093         
9094         * gtk/testgtk.c: fixups.
9095         
9096 2001-03-31  Hans Breuer  <hans@breuer.org>
9097
9098         * config.h.win32.in : disable USE_MMX for msvc build cause
9099         the assembler doesn't fit and is out of my scope. Disable
9100         USE_GMODULE for msvc build as wel. The right way to share
9101         binaries on win32 would be to use libtiff.dll etc. To reduce
9102         installation hassles IMO it's better to include all fileformats
9103         builtin to gdk-pixbuf
9104
9105         * gdk-pixbuf/makefile.msc : new file
9106
9107         * gdk/gdk.def : updated
9108
9109         * gdk/win32/gdkevents-win32.c : don't erase the background if
9110         .no_bg is set. It improves the scrolling (e.g. of testgtk main
9111         buttons
9112         * gdk/win32/gdkgeometry-win32.c : added comment about the above
9113
9114         * gdk/win32/gdkwindow-win32.c : added three new functions like
9115         the X version. Only one is implemented, because the other two
9116         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
9117         be default behaviour on win32 anyway ...
9118
9119         * gtk/gtk.def : updated
9120
9121         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
9122         from where it was built and add an additional rule to automagically
9123         build gtkmarshal.[hc]
9124
9125         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
9126         before array access for the current entry isn't finished
9127
9128         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
9129         use g_return_val_if_fail
9130
9131         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
9132         for the static array, but let the compiler calculate it. It
9133         makes me wonder if gcc isn't capable to catch bugs like this ...
9134
9135 2001-03-31  James Henstridge  <james@daa.com.au>
9136
9137         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
9138         constant "-1" in the aux info structure.
9139
9140 2001-03-30  Alexander Larsson  <alexl@redhat.com>
9141
9142         * gtk/gtkbutton.c (gtk_button_get_property):
9143         * gtk/gtklabel.c:
9144         Remove leaks.
9145         
9146         * gtk/gtkcontainer.c:
9147         * gtk/gtkhscale.c:
9148         * gtk/gtkhscrollbar.c:
9149         * gtk/gtklayout.c:
9150         * gtk/gtkmisc.c:
9151         * gtk/gtkprogress.c:
9152         * gtk/gtkprogressbar.c:
9153         * gtk/gtkrange.c:
9154         * gtk/gtktable.c:
9155         * gtk/gtkviewport.c:
9156         * gtk/gtkvscale.c:
9157         * gtk/gtkvscrollbar.c:
9158         * gtk/gtkwidget.c:
9159         Property patches, based on patches from John Margaglione and Lee Mallabone.
9160
9161 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
9162
9163         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
9164         adjustment. Cleaned redundant preconditions (spin != NULL). Added
9165         inline API function docs.
9166         (gtk_spin_button_new_with_range): New convenience constructor.
9167         (gtk_spin_button_set_increments): New adjustment helper.
9168         (gtk_spin_button_set_range): New adjustment helper.
9169
9170         * gtk/testgtk.c : added test of the new convenince constructor and
9171         value_changed signals.
9172
9173 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
9174
9175         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
9176         listen to the reorder signal.
9177
9178 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
9179
9180         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
9181         to get the aux info structure fo the widget.
9182
9183         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
9184         above function.
9185
9186         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
9187
9188         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
9189         to get the size of the window manager frame, basically the same
9190         code that gdk_window_get_root_origin() had
9191         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
9192
9193         * gtk/gtkwindow.c (gtk_window_set_default_size): use
9194         gdk_window_resize() if the window is realized and resizeable
9195
9196         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
9197         typo so that setting gravity works
9198
9199         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
9200         allocation if auto_shrink is on, even if the default size
9201         has not changed.
9202
9203         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
9204         g_return_if_fail
9205
9206 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
9207
9208         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
9209         reordering/sorting work.  Now pretty much works.
9210
9211         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
9212         reorder mostly work.  Still need to get the parity correct.
9213
9214         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
9215         signal, so I can listen for the sort_column_changed signal so I
9216         can change my "sort_indicator" property.  Cool.
9217
9218 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
9219
9220         [ Patch from Havoc Pennington, hp@redhat.com ]
9221
9222         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
9223         Add functions gdk_window_begin_resize_drag/begin_move_drag
9224         to start resizing or moving a toplevel window. This
9225         is done either using the _NET_WM_MOVERESIZE protocol,
9226         or, if that isn't present, by emulation.
9227
9228         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
9229         to export the above to GTK+-land.
9230
9231         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
9232         
9233         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
9234         Move this function into gdkwindow, since we need it
9235         when implementing fallback resizing.
9236
9237         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
9238         Fix typo when setting gravity.
9239
9240         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
9241         Add an optional (but on by default) resize grip for resizing 
9242         the parent window.
9243
9244 01-03-29  Alexander Larsson  <alexl@redhat.com>
9245
9246         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
9247         Don't return TRUE from the event handler, that blocks all
9248         event signals on the tooltip widget. Now you can press buttons
9249         in toolbars again.
9250
9251 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
9252
9253         * gtk/testtext.c (create_buffer): Add missing NULL on
9254         valist.
9255
9256         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
9257         c-n-p problem with INCONSISTENT property.
9258
9259         [ Patch from Havoc Pennington  <hp@redhat.com> ]
9260
9261         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
9262         hook.
9263
9264         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
9265         signal as a hook for extending the default popup menu
9266
9267         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
9268         use radio menu items for the input method menuitems
9269
9270         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
9271         inserted unicode from Ctrl-Shift-hex input method
9272
9273         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
9274         validatation here, already done at GtkTextBuffer level.
9275
9276         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
9277         popup_menu run action signal and Shift+F10 and Menu keybindings.
9278
9279         * gtk/gtkentry.c: implement a default handler for popup_menu
9280
9281         * gtk/gtktextview.c: implement a default handler for popup_menu
9282
9283         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
9284         from a key event
9285         
9286         * gtk/gtklabel.c: remove "trailer" cruft
9287
9288 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
9289
9290         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
9291         handle reordering of trees.  Seems to mostly work w/ the exception
9292         of the parity flag.
9293
9294         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
9295         signal.
9296
9297 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
9298
9299         * gtk/gtkwidget.h: c++ fixes.
9300
9301 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
9302
9303         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
9304         memory.
9305
9306 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
9307
9308         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
9309         Nils Barth fixing event return values. (#51041)
9310
9311         * gtk/gtkwidget.c: Fix some return values for default
9312         functions.
9313
9314         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
9315         return values for trough_keys functions.
9316
9317         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
9318         value for add_accelerator (shoudl have been a void
9319         return.)
9320
9321         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
9322         Fix return type of EVENT.
9323
9324         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
9325         signal return a boolean.
9326
9327 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
9328
9329         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
9330         reordered signal.
9331
9332         * tests/testtreesort.c (main): fix spelling.
9333
9334 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
9335
9336         * gtk/gtkliststore.c: More work on implementing sortable
9337         interface.
9338
9339 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
9340
9341         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
9342         reference the widgets in the resulting list. (#11821)
9343         This makes this consistent with gtk_container_children.
9344
9345         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
9346         uses of gtk_window_list_toplevels.
9347
9348 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
9349
9350         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
9351         a virtual function to set whether the IM context should use 
9352         the preedit string. (#51922)
9353         
9354 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
9355
9356         * gdk/gdkpango.h: Remove stale FIXME comment.
9357
9358 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
9359
9360         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
9361         Fixed bug that returned NULL if a filename was selected.
9362
9363 2001-03-24  Havoc Pennington  <hp@pobox.com>
9364
9365         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
9366         to contain the word "theme"
9367
9368 2001-03-24  Havoc Pennington  <hp@pobox.com>
9369
9370         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
9371         slower but finer-grained
9372         (gtk_hsv_focus): get initial focus on the ring or triangle 
9373         according to tab direction
9374
9375         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
9376
9377 2001-03-23  Havoc Pennington  <hp@pobox.com>
9378
9379         * gtk/gtkhsv.c: make this somewhat key-navigable
9380
9381         * gtk/gtkfontsel.c: mnemonics
9382
9383         * gtk/gtkgamma.c: mnemonics
9384
9385         * gtk/gtkcolorsel.c: add mnemonics to labels
9386
9387 2001-03-22  Havoc Pennington  <hp@pobox.com>
9388
9389         Applied big patch from Seth Lytle to fix event handler return
9390         values, slightly modified.
9391
9392         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
9393         handled.
9394         (gtk_calendar_key_press): return TRUE for GDK_space triggers
9395         select_day
9396
9397         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
9398         (gtk_clist_button_release): return TRUE if handled
9399
9400         * gtk/gtkcolorsel.c (mouse_release):
9401         (palette_activate): 
9402         (palette_press): 
9403         (palette_new): 
9404         (mouse_press): 
9405         (get_screen_color): 
9406         fixed return type (void to gboolean), return TRUE,
9407         added GTK_SIGNAL_FUNC cast
9408
9409         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
9410         (void to gboolean), and return TRUE
9411         (gtk_combo_button_release): changed return value to TRUE after
9412         gtk_grab_add on combo->popwin
9413
9414         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
9415         collapse or expand
9416
9417         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
9418         button/motion
9419
9420         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
9421         press/release and motion that trigger act
9422
9423         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
9424
9425         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
9426         for GDK_Return
9427         
9428         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
9429         (gtk_list_button_release): return TRUE if selection
9430
9431         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
9432         press
9433
9434         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
9435         (gtk_menu_shell_button_release): chain parent_menu_shell retval
9436
9437         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
9438         nothing triggered
9439         (gtk_notebook_button_release): return TRUE if we do anything
9440
9441         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
9442         (gtk_spin_button_button_release): return TRUE or chained retval
9443
9444         * gtk/gtktext.c (gtk_text_button_press): 
9445         (gtk_text_button_release): return TRUE
9446         (gtk_text_key_press): remove redundant retval code
9447         
9448         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
9449         and sensitive
9450         (gtk_tree_item_subtree_button_click): changed type to gint, and return
9451         TRUE if sensitive
9452
9453         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
9454         return TRUE
9455
9456 2001-03-23  Havoc Pennington  <hp@redhat.com>
9457
9458         * gtk/testgtk.c: fix warnings
9459
9460         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
9461
9462         * gtk/gtktextview.c: fix warnings
9463
9464         * gtk/gtktext.c (find_cursor_at_line): fix warning
9465
9466         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
9467
9468         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
9469         of this function
9470
9471         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
9472         fix warning
9473
9474         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
9475
9476         * gtk/gtkfontsel.c: fix warning
9477
9478         * gtk/gtkcolorsel.c: fix warnings
9479
9480 2001-03-23  Havoc Pennington  <hp@redhat.com>
9481
9482         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
9483
9484         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
9485
9486         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
9487         and deprecated gtk_check_menu_item_set_show_toggle().
9488         
9489         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
9490
9491         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
9492
9493         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
9494
9495 2001-03-23  Havoc Pennington  <hp@redhat.com>
9496
9497         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
9498         some docs
9499
9500 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
9501
9502         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
9503         this.
9504
9505         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
9506         set_cell to set_value
9507
9508         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
9509         set_cell to set_value
9510
9511 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
9512
9513         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
9514         fix braino.
9515         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
9516         support.
9517
9518         * gtk/gtktreeview.c: Addition of initial sortable support.
9519
9520         * gtk/gtktreestore.c: Addition of initial sortable support.
9521
9522         * gtk/gtkliststore.c: Addition of initial sortable support.
9523
9524         * gtk/gtkmarshal.list: yet another marshaller.
9525
9526         * gtk/gtktreedatallist.[ch]: shared code between the store models
9527         for handling sorting headers.
9528
9529 2001-03-22  Havoc Pennington  <hp@redhat.com>
9530
9531         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
9532         (gtk_container_unset_focus_chain): Add ability to override the 
9533         focus chain for a container explicitly
9534
9535 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
9536
9537         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
9538         added PROP_MNEMONIC_WIDGET.
9539
9540         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
9541         (gtk_window_remove_mnemonic): 
9542         (gtk_window_add_mnemonic): fixed assertions.
9543         (gtk_window_activate_mnemonic): constrain modifier checks to those
9544         permitted by gtk_accelerator_get_default_mod_mask().
9545         got rid of gtk_window_get_default_accel_group().
9546
9547         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
9548         activatable widgets either by focussing or a warning.
9549         added a signal accumulator to ::activate_mnemonic which stops the
9550         emission once a handler returned TRUE.
9551
9552 2001-03-22  Havoc Pennington  <hp@pobox.com>
9553
9554         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
9555         the stock item label
9556
9557         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
9558
9559         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
9560
9561         * demos/gtk-demo/*.c: Add mnemonics all over the place
9562
9563         * gtk/gtklabel.h: mark parse_uline deprecated
9564
9565 2001-03-21  Alexander Larsson  <alexl@redhat.com>
9566
9567         * gtk/gtkitemfactory.[ch]:
9568         Add support for stock and normal imagemenuitems.
9569         
9570         * gtk/testgtk.c:
9571         Add some tests for mnemonics, stock toolbars, stock
9572         and image menuitems in itemfactory and gdk_window_scroll.
9573
9574 2001-03-21  Alexander Larsson  <alexl@redhat.com>
9575
9576         * gtk/gtkbutton.[ch]:
9577         * gtk/gtkdialog.c:
9578         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
9579         removed accel_group argument. Renamed gtk_button_new_accel() to
9580         gtk_button_new_with_mnemonic() and removed accel_group argument.
9581
9582         * gtk/gtkcheckbutton.[ch]:
9583         New function gtk_check_button_new_with_mnemonic().
9584
9585         * gtk/gtkentry.c:
9586         Override activate_mnemonic and just grab focus.
9587
9588         * gtk/gtkitemfactory.c:
9589         Don't add menu uline accel group, instead use mnemonics support.
9590
9591         * gtk/gtklabel.[ch]:
9592         New support for mnemonics.
9593
9594         * gtk/gtkmarshal.list:
9595         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
9596
9597         * gtk/gtkmenu.[c]:
9598         * gtkmenushell.c:
9599         Use mnemonics instead of accel groups for uline
9600         support in menu items.
9601         Removed gtk_menu_get_uline_accel_group() and
9602         gtk_menu_ensure_uline_accel_group().
9603
9604         * gtk/gtkmenuitem.c:
9605         Override activate_mnemonic to handle switching between
9606         menu items if there are collisions.
9607         
9608         * gtk/gtknotebook.c:
9609         Connect to activate_mnemonic on the tab_label, so that
9610         activating it switches to that notebook page.
9611
9612         * gtk/gtkwidget.[ch]:
9613         Add activate_mnemonic signal. New function
9614         gtk_widget_activate_mnemonic() to emit it.
9615         Default implementation does activate/grab_focus.
9616
9617         * gtk/gtkwindow.[ch]:
9618         Add support for mnemonics in windows.
9619         New functions:
9620         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
9621         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
9622
9623         * gtk/testgtk.c:
9624         Update to function name changes.
9625         
9626 2001-03-21  Alexander Larsson  <alexl@redhat.com>
9627
9628         * gtk/gtkimagemenuitem.[c]:
9629         Add gtk_image_menu_item_new_from_stock()
9630
9631 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
9632
9633         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
9634         Fix buglet in meeting.
9635
9636 2001-03-19  Havoc Pennington  <hp@redhat.com>
9637
9638         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
9639         add a bunch of accessor functions. This is because we have
9640         reasonable expectations of extending what fields it contains in
9641         the future.
9642
9643         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
9644         changes
9645
9646         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
9647         GtkIconSource   
9648
9649 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
9650
9651         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
9652         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
9653
9654         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
9655           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
9656           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
9657           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
9658         Change float to double everywhere with the exception of 0<->1.0 alignment
9659         and GtkCurve.
9660
9661 2001-03-19  Tor Lillqvist  <tml@iki.fi>
9662
9663         * gdk/win32/gdkdrawable-win32.c
9664         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
9665         output.
9666
9667         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
9668         gdkwin32.h.
9669
9670 2001-03-18  Tor Lillqvist  <tml@iki.fi>
9671
9672         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
9673         print_event_state, print_event): Use preprocessor macro to make
9674         code more compact. Print also GDK_WINDOW_STATE events.
9675         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
9676         
9677         * gtk/gtk.def
9678         * gtk/makefile.mingw.in: Update.
9679
9680         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
9681         to catch also Cygwin.
9682
9683 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
9684
9685         * gtk/gtkspinbutton.[hc]: added rc-style argument
9686         GtkSpinButton::shadow_type.
9687         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
9688         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
9689         rc-style settings.
9690
9691         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
9692
9693         * gtk/gtkwidget.c: quark cleanups.
9694
9695         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
9696         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
9697         to create_rc_style() (we don't do cloning in standard OO sense).
9698         added per rc style properties.
9699         
9700         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
9701         property values and for caching those. some cleanups.
9702         
9703         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
9704         
9705         * gtk/gtksettings.[hc]: new file for global rc-file properties
9706         (at least currently, should get extended to support X properties
9707         and other communication mechanisms).
9708         
9709         * gtk/gtkwidget.[hc]: added style property support:
9710         (gtk_widget_class_install_style_property_parser): install style
9711         property pspec with parser function for rc-file values other
9712         than LONG, DOUBLE or STRING.
9713         (gtk_widget_class_install_style_property): same as above without
9714         parser (parsers are going to be needed quite infrequently).
9715         (gtk_widget_style_get_property): retrive style property value.
9716         (gtk_widget_style_get_valist): same as above with varargs support,
9717         has NOCOPY semantics.
9718         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
9719
9720 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
9721
9722         * demos/gtk-demo/main.c (row_activated_cb): modified to use
9723         "row_activated" signal.
9724
9725         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
9726         stupidity.  Lets actually pass in the row with this signal...
9727
9728 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
9729
9730         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
9731
9732         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
9733
9734         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
9735         everything into the ::destroy function, and freed a lot more.
9736
9737 2001-03-16  Havoc Pennington  <hp@redhat.com>
9738
9739         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
9740         instead of gint16, to avoid overflow issues, since sizes > 16-bit
9741         are now allowed.
9742
9743 2001-03-16  Havoc Pennington  <hp@redhat.com>
9744
9745         * Applied patch from Nils Barth (bug # 51041) to 
9746         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
9747         in various places.
9748
9749 2001-03-15  Havoc Pennington  <hp@redhat.com>
9750         
9751         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
9752         for properties to set on the tag.
9753
9754         * gtk/testtext.c: fixups to reflect create_tag change
9755         
9756         * gtk/gtktexttag.c (gtk_text_tag_set_property):
9757         background/foreground stipple are objects, not boxed.
9758
9759         * demos/gtk-demo/textview.c: intellihancing
9760
9761 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
9762
9763         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
9764         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
9765
9766 2001-03-16  Alexander Larsson  <alexl@redhat.com>
9767
9768         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
9769         Fix sign error with queued region translations.
9770
9771 2001-03-15  HideToshi Tajima  <tajima@happy>
9772
9773         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
9774         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
9775         * gtk/gtkentry.c (update_im_cursor_location): 
9776         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
9777         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
9778         set_cursor_pos to set_cursor_location in GtkInputContext class
9779
9780 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
9781
9782         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
9783         the location of the cell relative to its area.
9784         * gtk/gtkcell*: modified for above change
9785         * gtk/gtktreeview.c: modified for above change.
9786
9787 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
9788
9789         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
9790          (gtk_tree_view_finalize): actually unref the model.  Thanks to
9791         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
9792
9793 2001-03-14  Havoc Pennington  <hp@redhat.com>
9794
9795         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
9796         
9797         * gtk/gtk.h: remove gtkdata.h
9798
9799         * gtk/Makefile.am: remove gtkdata
9800         
9801         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
9802         not "disconnect" on the adjustments.
9803         
9804         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
9805         GtkData
9806
9807         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
9808         not GtkData
9809
9810         * configure.in: handle case where X render exists, but Pango lacks
9811         Xft support.
9812
9813 2001-03-15 Alexander Larsson  <alexl@redhat.com>
9814
9815         * gtk/gtktoolbar.[ch]:
9816         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
9817         to add stock items to toolbars.
9818
9819         * gtk/Makefile.am:
9820         Remove ../gdk/gdkim.h from gdk_headers.
9821
9822 2001-03-15  Sven Neumann  <sven@gimp.org>
9823
9824         * gdk/gdkim.h: removed
9825         
9826         * gdk/gdkprivate.h
9827         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
9828
9829 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
9830
9831         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
9832         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
9833         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
9834         set_cursor_pos() virtual method
9835
9836         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
9837         (gtk_im_context_xim_set_cursor_pos): add implementation for
9838         set_cursor_pos() method
9839
9840         * gtk/gtkentry.c (recompute_idle_func): set current cursor
9841         position to input methods
9842
9843 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
9844
9845         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
9846         code a lot.
9847
9848         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
9849         g_mem_chunk.
9850         (_gtk_tree_data_list_alloc): use g_mem_chunk.
9851         (_gtk_tree_data_list_node_to_value): Fix to switch on
9852         G_TYPE_FUNDAMENTAL.
9853         (_gtk_tree_data_list_value_to_node): Fix to switch on
9854         G_TYPE_FUNDAMENTAL.
9855         (_gtk_tree_data_list_node_copy): Fix to switch on
9856         G_TYPE_FUNDAMENTAL.
9857
9858 2001-03-12  Havoc Pennington  <hp@redhat.com>
9859
9860         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
9861         to convert to new property API. Also, change default_width and
9862         default_height get_property to return 0 as the flag value for
9863         "unset"; -1 is not a valid value for these fields.
9864
9865 2001-03-12  Havoc Pennington  <hp@redhat.com>
9866
9867         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
9868         enum with registration for icon sizes, instead of strings.
9869
9870         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
9871         gtkwidget.c: Fix to reflect GtkIconSize
9872         
9873 2001-03-12  Alexander Larsson  <alexl@redhat.com>
9874
9875         Make GtkFB compile and link.
9876         
9877         * gdk/linux-fb/gdkdrawable-fb2.c:
9878         window->mapped to GDK_WINDOW_IS_MAPPED(). 
9879         
9880         * gdk/linux-fb/gdkwindow-fb.c:
9881         window->mapped to GDK_WINDOW_IS_MAPPED(). 
9882         Added gdk_window_shape_combine_region.
9883         Added assorted placeholders for unimplemented new GdkWindow API calls.
9884
9885 2001-03-12  Alexander Larsson  <alexl@redhat.com>
9886
9887         * gtk/gtkfilesel.c:
9888         Add more test when converting filenames from/to utf-8.
9889         Don't allow entering text in the filename entry which isn't allowed in
9890         a filename. Just beep instead.
9891
9892 2001-03-12  Alexander Larsson  <alexl@redhat.com>
9893
9894         * gtk/gtkclist.c:
9895         Scroll using gdk_window_scroll(). Don't wait for exposes.
9896         Move the column headers in an order that makes them flash less.
9897
9898 2001-03-10  Hans Breuer  <hans@breuer.org>
9899
9900         * gdk/gdk.def : updated
9901
9902         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
9903         to offseting the clip_mask at the right place
9904
9905         * gdk/win32/gdkwindow-win32.c : don't create background brushes
9906         for all the gdkClasses, especially not for the input_only case.
9907         Otherwise flickering wont be avoidable, because we don't get
9908         WM_ERASEBKGND message for these windows.
9909
9910         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
9911         and fixed massive redraw problems apparently triggered by Alexanders 
9912         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
9913         but it seems to work quite well :-)
9914
9915         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
9916         prototype
9917
9918 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
9919
9920         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
9921         (gtk_list_store_set_cell): Fix a stupid typo.
9922
9923 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
9924
9925         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
9926         select_all not work if you're in SINGLE mode (it doesn't make that
9927         much sense, anyway.)
9928
9929         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
9930         handle types more sanely.
9931         (_gtk_tree_data_list_value_to_node): handle types more sanely.
9932         (_gtk_tree_data_list_node_copy): handle types more sanely.
9933
9934         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
9935         GValue better. Converts the type as well.
9936
9937         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
9938         GValue better. Converts the type as well.
9939
9940 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
9941
9942         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
9943         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
9944         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
9945         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
9946
9947         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
9948         gdk_im/gdk_ic.
9949
9950 2001-03-09  Hans Breuer  <hans@breuer.org>
9951
9952         * gdk/gdk.def : updated
9953
9954         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
9955         for their palette
9956
9957         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
9958         removing
9959
9960         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
9961         removing and implemented Havoc's GdkWindow state functions; 
9962         stick/unstick only as no-op, cause I don't know how to emulate 
9963         on win32 ...
9964
9965         * gtk/gtk.def : updated
9966
9967         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
9968
9969         * gtk/gtktypeutils.c : #include <string.h>
9970
9971         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
9972
9973 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
9974
9975         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
9976         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
9977         not a boxed.
9978
9979 2001-03-09  Alexander Larsson  <alexl@redhat.com>
9980
9981         * docs/Changes-2.0.txt:
9982         Document expose event->region change and that gtk_widget_event
9983         doesn't allow passing expose events.
9984
9985         * gdk/gdkevents.h:
9986         Add region to expose event.
9987         
9988         * gdk/gdkevents.c:
9989         Handle event->region in gdk_event_copy() and gdk_event_free().
9990
9991         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
9992         Generate expose_event->region when creating expose events.
9993
9994         * gdk/x11/gdkevents-x11.c:
9995         Generate expose events with regions when translating X events.
9996
9997         * gtk/gtkcontainer.[ch]:
9998         Default expose handler that propagates expose events to NO_WINDOW
9999         children. New function gtk_container_propagate_expose()
10000
10001         * gtk/gtkwidget.[ch]:
10002         Moved gtk_widget_event implementation to gtk_widget_event_internal.
10003         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
10004         expose events. New function gtk_widget_send_expose() to send expose
10005         events. New function gtk_widget_region_intersect() to calculate
10006         window/region intersections.
10007         
10008         * gtk/gtkmain.c (gtk_main_do_event):
10009         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
10010         Use gtk_widget_send_expose() to send expose events.
10011         
10012         * gtk/gtkbin.c:
10013         * gtk/gtkbox.c:
10014         * gtk/gtkfixed.c:
10015         * gtk/gtkimagemenuitem.c:
10016         * gtk/gtklist.c:
10017         * gtk/gtkpacker.c:
10018         * gtk/gtktable.c:
10019         * gtk/gtktree.c:
10020         Remove expose handler, using the default container implementation
10021         instead.
10022         
10023         * gtk/gtkbutton.c:
10024         * gtk/gtkcheckbutton.c:
10025         * gtk/gtkeventbox.c:
10026         * gtk/gtkfixed.c:
10027         * gtk/gtkhandlebox.c:
10028         * gtk/gtklayout.c:
10029         * gtk/gtklistitem.c:
10030         * gtk/gtkmenu.c:
10031         * gtk/gtkmenubar.c:
10032         * gtk/gtkmenuitem.c:
10033         * gtk/gtknotebook.c:
10034         * gtk/gtkoptionmenu.c:
10035         * gtk/gtkpaned.c:
10036         * gtk/gtkscrolledwindow.c:
10037         * gtk/gtktogglebutton.c:
10038         * gtk/gtktoolbar.c:
10039         * gtk/gtktreeitem.c:
10040         * gtk/gtkviewport.c:
10041         Chain expose handler to parent class handler. Use
10042         gtk_container_propagate_expose() to propagate exposes.
10043
10044         * gtk/gtkclist.c (check_exposures):
10045         * gtk/gtktext.c (process_exposes):
10046         Use gtk_widget_send_expose instead of gtk_widget_event.
10047
10048 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
10049
10050         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
10051
10052 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
10053
10054         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
10055         unref the nodes.   Fixes bug #50058.
10056
10057         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
10058         "::ref_iter" to "::ref_node".
10059         (gtk_tree_model_unref_node): change "::unref_iter" to
10060         "::unref_node". Fixes bug #50064.
10061
10062 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
10063
10064         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
10065         support for invisible cells.
10066          (gtk_tree_view_bin_expose): ditto
10067
10068 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
10069
10070         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
10071         on gobjects.
10072
10073         * tests/testtreefocus.c (main): New test file.
10074
10075         * tests/testtreeview.c: update to latest glib changes.
10076
10077         * tests/testtreecolumns.c: update to latest glib changes.
10078
10079 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
10080
10081         * gtk/testgtk.c: re-enabled event watcher emission hooks.
10082
10083 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
10084
10085         * *.c: added accumulator data argument to g_signal_newc()
10086         functions.
10087
10088         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
10089         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
10090         * gtk/treestoretest.c (make_window):
10091         s/g_signal_connect/g_signal_connectc/.
10092
10093         * gtk/gtktextbuffer.c: completed signal arg fixups,
10094         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
10095
10096 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
10097
10098         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
10099         G_CONST_RETURN.
10100
10101         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
10102         ::hierarchy-changed signal when a widget changes
10103         from anchored to unanchored or vice versa.
10104         (anchored means 
10105          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
10106         Use a private flag to keep track of this efficiently.
10107
10108 2001-03-07  Havoc Pennington  <hp@redhat.com>
10109
10110         * gtk/testgtk.c (create_spins): uglify so that size request gets
10111         tested.
10112
10113         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
10114         request on values for upper/lower, completes #6152
10115
10116 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
10117
10118         * Makefile.am: Remove gtk-config-2.0 again.
10119         (Grrrr, pkg-config. And stops make loops.)
10120
10121 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
10122
10123         * gtk/gtksignal.[hc]: removed old emission hook API.
10124         
10125         * docs/Changes-2.0.txt: fixed sections.
10126         
10127         * gtk/gtktextbuffer.c: signal arg fixups.
10128
10129 2001-03-07  Havoc Pennington  <hp@redhat.com>
10130
10131         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
10132
10133         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
10134         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
10135         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
10136         validation and the redraw which is higher priority than the
10137         validation.
10138
10139 2001-03-07  Havoc Pennington  <hp@redhat.com>
10140
10141         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
10142         (gtk_entry_set_property): remove trailer
10143
10144         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
10145         (gtk_entry_get_width_chars): new functions, to set size request to 
10146         a given number of characters
10147
10148         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
10149
10150         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
10151         (gtk_dialog_get_has_separator): new function
10152         (run_delete_handler): fix to not emit "response" signal
10153         because we already did in the delete event handler installed
10154         at dialog creation time.
10155         
10156         * gtk/gtkdialog.h: add a has_separator property,
10157         add GTK_DIALOG_NO_SEPARATOR flag
10158
10159 2001-03-07  Havoc Pennington  <hp@redhat.com>
10160
10161         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
10162         off decorations for a window.
10163
10164         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
10165         changes
10166
10167         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
10168         to get location of PangoLayout inside the label, closes #51198
10169
10170         * gtk/testgtk.c (create_bbox): fix up button box usage
10171
10172         * gtk/testcalendar.c (create_calendar): fix up button box usage
10173
10174         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
10175
10176         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
10177
10178         * gtk/gtkhbbox.h: deprecations
10179
10180         * gtk/gtkvbbox.h: deprecations
10181
10182         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
10183         emulate deprecated gtk_button_box_get_spacing
10184
10185         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
10186         the "set global default" functions
10187         (struct _GtkButtonBox): remove "spacing" field, use the one from 
10188         GtkBox base class
10189
10190         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
10191
10192         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
10193         render the icon, return the missing image icon.
10194
10195         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
10196         image icon if the load fails.   
10197
10198         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
10199         when no image is found; should be the Netscape "missing image"
10200         icon eventually but for now is a random image
10201
10202         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
10203         role for the session manager
10204
10205         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
10206
10207         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
10208         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
10209
10210         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
10211
10212 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
10213
10214         * gtk/*.c: marshaller fixes.
10215         
10216         * gtk/gtkmarshal.list: extreme cleanup.
10217
10218         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
10219         param spec for now.
10220
10221         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
10222         where appliable.
10223
10224         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
10225         special cased autogenerated boxed types from gtktypebuiltins_ids.c
10226         which are not reference counted:
10227         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
10228         PangoFontDescription, GtkTreeIter and GtkTreePath.
10229
10230 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
10231
10232         * gtk/gtktreeselection.h: 
10233         * gtk/gtktreemodel.c:
10234         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
10235         file should be included directly, and gobject/gmarshal.h
10236         as well as gtk/gtkmarshal.h even can't be included directly.
10237
10238         * Makefile.am: grr, install gtk-config-2.0.
10239
10240         * gtk/testgtk.c:
10241         * gtk/simple.c:
10242         * gtk/gtkmenu.c:
10243         * gtk/gtkitemfactory.c: use g_object_connect() instead of
10244         passing "*signal*::*" args to gtk_widget_set().
10245         
10246         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
10247         
10248         * gtk/*.c: removed trailer arg from property setters and getters.
10249         macro fixups.
10250
10251 2001-03-07  Alexander Larsson  <alexl@redhat.com>
10252
10253         * gtk/gtklabel.c (set_markup): Removed warning
10254
10255 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
10256
10257         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
10258         field to allow you to hide cell renderers.
10259
10260         * gtk/gtkcellrenderer.c: Add support for invisible cells.
10261
10262         * gtk/gtktreeview.c: Add support for invisible cells.
10263
10264 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
10265
10266         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
10267         Add "clicked" signal back to columns.
10268
10269         * ChangeLog: remove conflict markers.
10270
10271 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
10272
10273         * gtk/gtkbutton.c: Add animation of activation by, on 
10274         activate, pressing the button, and adding a timeout that 
10275         releases the button after 250ms or on key release and
10276         emits ::clicked. (#51501)
10277
10278         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
10279         action area, we connect to ::clicked instead of ::activate
10280         so the dialog stays up through the animation.
10281
10282 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
10283
10284         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
10285         check the ignore_enter flag for the menu shell that
10286         the item is actually a child of, not for attached
10287         submenus. (#51536)
10288
10289 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
10290
10291         * gtk/gtkmain.c (gtk_propagate_event): Only do special
10292         special key-press grab handling for widgets within
10293         GtkWindows. Otherwise, fall through to normal case.
10294
10295         This prevents key events being sent twice to GtkInvisible
10296         widgets, which can cause all sorts of mischief.
10297
10298 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
10299
10300         * gtk/gtkmain.c (gtk_propagate_event): When a grab
10301         widget is in effect, give the grab widget a first
10302         crack at KEY_PRESS/RELEASE events. (#424)
10303
10304 2001-03-06  James Henstridge  <james@daa.com.au>
10305
10306         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
10307         offset for the window_state_event to point at window_state_event
10308         rather than no_expose_event.
10309
10310 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
10311
10312         * gtk/gtkimmodule.h: fix busted /* comment */
10313
10314 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
10315
10316         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
10317         object properties.
10318
10319 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
10320
10321         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
10322         add object properties.
10323
10324         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
10325         to add object properties.
10326
10327         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
10328         object properties.
10329
10330         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
10331         add object properties.
10332
10333         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
10334         object properties.
10335
10336 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
10337
10338         * gtk/gtktreemodel.c: renamed "child_toggled" to
10339         "has_child_toggled".
10340
10341         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
10342         handle new signal name.
10343
10344         * gtk/gtktreestore.c: Updated to handle new signal name.
10345         * gtk/gtklisttore.c: Updated to handle new signal name.
10346         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
10347
10348 2001-03-05  Alexander Larsson  <alexl@redhat.com>
10349
10350         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
10351         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
10352
10353 2001-03-05  Michael Natterer  <mitch@gimp.org>
10354
10355         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
10356         pixbuf-engine coincidentially also failed to make one of it's
10357         parent_class pointers static, causing overwriting of GtkLabel's
10358         parent_class pointer in pixbuf_style_class_init().
10359         (Will commit the fix to the pixbuf-engine too).
10360
10361 2001-03-05  Alexander Larsson  <alexl@redhat.com>
10362
10363         * gdk/gdkwindow.h:
10364         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
10365         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
10366         gdk_window_set_icon_list for net wmspec functionality.
10367
10368         * gdk/x11/gdkwindow-x11.c:
10369         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
10370         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
10371         gdk_window_set_icon_list.
10372         Added gdk_wmspec_change_state helper function and used it in the code.
10373         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
10374
10375         * gtk/gtkdialog.c (gtk_dialog_init):
10376         Set GDK_WINDOW_TYPE_HINT_DIALOG.
10377
10378         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
10379         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
10380
10381         * gtk/gtkwindow.c:
10382         new function gtk_window_set_type_hint.
10383         On realize, set type hint and modal hint.
10384
10385         * gtk/gtkwindow.h:
10386         Added type_hint field and gtk_window_set_type_hint.
10387
10388 2001-03-05  Alexander Larsson  <alexl@redhat.com>
10389
10390         * gtk/gtklabel.[ch]:
10391         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
10392         New function gtk_label_get_accel_keyval () to get the underline accelerator
10393         of the label. Setting the label pattern overrides other attributes.
10394
10395 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
10396
10397         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
10398         Added missing initializers to gtk_rc_style_init().
10399
10400 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
10401
10402         * gtk/gtktextview.c: fixed bug #51097 about setting 
10403         gtk_text_view_set_border_window_size() if the widget is 
10404         already realized.
10405
10406 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
10407
10408         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
10409
10410         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
10411         comment. Won't do to have duplicated doc comments between
10412         the platform subdirs.
10413
10414 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
10415
10416         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
10417           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
10418
10419         Detectable auto-repeat - make a repeating key generate
10420         press/press/press/release instead of press/release pairs.
10421
10422         If we have Xkb and XkbSetDectableAutoRepeat supports
10423         that, we do it that way. Otherwise, when we get
10424         a release event, we check ahead with XPending to see
10425         if the next key is a KeyPress with the same keycode
10426         and timestamp. (Not 100% reliable, but pretty close.)
10427           
10428 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
10429         
10430         * gtk/gtkmain.c (gtk_propagate_event): Only do special
10431         special key-press grab handling for widgets within
10432         GtkWindows. Otherwise, fall through to normal case.
10433  
10434         This prevents key events being sent twice to GtkInvisible
10435         widgets, which can cause all sorts of mischief.
10436  
10437 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
10438  
10439         * gtk/gtkmain.c (gtk_propagate_event): When a grab
10440         widget is in effect, give the grab widget a first
10441         crack at KEY_PRESS/RELEASE events. (#424)
10442  
10443 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
10444
10445         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
10446         to extend the selection. (Roughly based on patch
10447         from Jay Cox, #50939)
10448
10449         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
10450         to properly handle previous GDK_BUTTON_PRESS. 
10451         (Patch from Jay Cox, #50938)
10452
10453         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
10454         '\0' back along with the deleted text. (#51148)
10455
10456 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
10457
10458         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
10459         the group when extracting it from the X keyboard event.
10460
10461         * modules/input/Makefile.am modules/input/imipa.c: 
10462         Simple module for entering IPA. (Do we need a 
10463         gtk-stupid-input-tricks CVS module?)
10464
10465 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
10466
10467         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
10468         const.
10469
10470         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
10471
10472         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
10473         is no focus widget for the dialog currently, grab the focus as well
10474         as the default.
10475
10476         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
10477         the action area's children to iterate through, not the
10478         dialog's children.
10479
10480 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
10481
10482         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
10483         Add plug-socket tests. (Won't work worth a darn until I commit
10484         the rest of the plug-socket changes, but no reason these
10485         can't go into CVS now.)
10486
10487 2001-03-02  Havoc Pennington  <hp@redhat.com>
10488
10489         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
10490         _gdk_region_get_xrectangles()
10491
10492         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
10493
10494         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
10495
10496         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
10497         function, contributed by Ron Steinke    
10498
10499         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
10500         gdk_net_wm_supports
10501
10502         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
10503         New function, contributed by Ron Steinke
10504
10505         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
10506         used to line up the text in the entry when using the entry for
10507         editable sheet cell hacks
10508
10509         * gtk/testgtk.c (create_entry): test the activate_default setting
10510         on GtkEntry
10511
10512         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
10513         cause the entry to activate the default button for a dialog when 
10514         activated
10515         (gtk_entry_get_activates_default): new function
10516
10517 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
10518
10519         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
10520         Hwang to move call to sync_selection() up a few lines
10521         to before the row list is modified, to fix crash when
10522         removing rows in the undo_selection list.
10523
10524         (Test case provided by Daniel Elstner:
10525
10526         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
10527
10528 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
10529
10530         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
10531         of tree->root_tree in parent_set rather than _map(), 
10532         fixing #50892 in a bit better manner.
10533
10534 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
10535
10536         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
10537
10538 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
10539
10540         * gtk/gtkstyle.c : Remove duplicate fwd decl for
10541         gtk_default_draw_shadow.
10542
10543 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
10544
10545         * gdk/gdkimage.c (gdk_image_new): Remove excess 
10546         warning, make warnings more verbose, treat a error
10547         in shmat as permanent, and don't try again.
10548         (#51163, Ed Randall.)
10549
10550 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
10551
10552         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
10553         delay for the first click before starting to scroll.
10554         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
10555
10556         * gtk/gtktext.c: GtkText should have I-beam cursor. 
10557         (based on gtk-enf-990513-1.patch, Eric Fisher.)
10558
10559 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
10560
10561         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
10562         cleanup to remove some references to unused
10563         ->xoffset, ->yoffset.
10564
10565 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
10566
10567         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
10568         mask. (#51039, fix from Martin Maierhofer)
10569
10570 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
10571
10572         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
10573         for unshifted + and shifted = for non-us keyboards.
10574         Make <Control>+ and <Control>- work as well as 
10575         <Control>KP_Plus, <Control>KP_Minus for recursive
10576         open/close.  (#2682, René Seindal)
10577
10578 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
10579
10580         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
10581         the active menu item before deactivating the menu,
10582         so gtk_menu_popdown doesn't change the history. (#50964)
10583         
10584 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
10585
10586         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
10587         draw lines with text_gc rather than black_gc.
10588         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
10589
10590 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
10591
10592         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
10593         Move handling of buttons fully in gtktreeviewcolumn.  This code is
10594         less interrelated then it was, but it still requires the
10595         GtkTreeView to map it.
10596
10597         * test/testtreecolumn.c: Now I can add a column to one view,
10598         remove it, add it to the another view, remove it, then re-add it
10599         to the first.  Nifty.
10600
10601 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
10602
10603         * docs/tutorial/gtk-tut.sgml: Minor corrections
10604
10605 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
10606
10607         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
10608         GtkRowReference.
10609
10610 2001-02-28  Havoc Pennington  <hp@redhat.com>
10611
10612         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
10613         draw_default
10614         (gtk_widget_draw_focus): remove this function; we could instead
10615         make it just gtk_widget_draw(), but in most cases I think the
10616         result would be broken user code, so think it's better to have
10617         that code not compile and get fixed
10618         (gtk_widget_draw_default): ditto
10619
10620         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
10621         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
10622         
10623         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
10624         widgets lose/get the default, instead of calling draw_default
10625         
10626         * docs/Changes-2.0.txt: note about all this
10627
10628         Then fixed every widget in GTK, I won't list all the filenames.
10629
10630 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
10631
10632         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
10633         _gtk_tree_row_reference_deleted.
10634         (inserted_callback): Proxy out to
10635         _gtk_tree_row_reference_inserted.
10636         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
10637         get around signal emission ordering problem.
10638
10639         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
10640         fix to work with SINGLE 
10641         (_gtk_tree_selection_internal_select_node): Major sanitization on
10642         selections.  SINGLE now seems to work.
10643
10644         * tests/Makefile.am: add testtreecolumn.c:
10645
10646         * tests/testtreecolumn.c: New test.  Mostly points out selection
10647         bugs currently, but will test columns later.
10648
10649         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
10650         selection bug.  I hate touching this code -- it's scary.
10651
10652 2001-02-26  Havoc Pennington  <hp@redhat.com>
10653
10654         * gtk/testgtk.c: test the window state stuff
10655
10656         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
10657         window come to the user's attention as if it were just created
10658         (gtk_window_iconify): new function
10659         (gtk_window_deiconify): new function
10660         (gtk_window_stick): new function
10661         (gtk_window_unstick): new function
10662         (gtk_window_maximize): new function
10663         (gtk_window_unmaximize): new function
10664
10665         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
10666
10667         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
10668
10669         * gdk/x11/gdkevents-x11.c: create window state events when
10670         appropriate
10671         (gdk_wmspec_supported): new function
10672
10673         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
10674         iconification before showing the window
10675         (gdk_window_deiconify): new function
10676         (gdk_window_stick): new function
10677         (gdk_window_unstick): new function
10678         (gdk_window_maximize): new function
10679         (gdk_window_unmaximize): new function
10680
10681         * gdk/gdkwindow.c: store the window state in the window; 
10682         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
10683         window->mapped.
10684         (gdk_window_get_state): return the current window state
10685
10686         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
10687         (gdk_event_get_state): handle GDK_WINDOW_STATE
10688         (gdk_synthesize_window_state): function to create the window state
10689         events
10690
10691         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
10692         event, for changes to "window state" such as maximized, sticky, 
10693         etc.
10694         
10695         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
10696         focuses a window
10697
10698         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
10699         finds out if we support a given WM spec hint
10700
10701 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
10702
10703         * docs/faq/gtk-faq.sgml: New question re memory leaks.
10704
10705 2001-02-25  Hans Breuer  <hans@breuer.org>
10706
10707         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
10708         cause we want to loose those prototypes only in the latter case
10709
10710         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
10711         GdkPixmapImplWin32 because it itsn't derived from it. Use the
10712         impl member variable instead
10713
10714         * gtk/gtk.def : updated
10715
10716         * gtk/gtklist.c : 
10717         * gtk/gtkmenus.c : include <string.h> for memset ()
10718
10719         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
10720         for everthing built here, but for gtk-x.x.dll only. This solves
10721         problem of indifferent gtk type definitions
10722
10723 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
10724
10725         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
10726
10727 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
10728
10729         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
10730         column that is exposed.
10731
10732         (_gtk_tree_view_update_size): Changed name from set_size, and
10733         changed function to do more work, and not force people calling it
10734         to figure out the size.  Simplifies a lot of code elsewhere.
10735
10736 2001-02-23  Alexander Larsson  <alexl@redhat.com>
10737
10738         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
10739         return solid masks for xpms that have no transparent color.
10740         This makes the ..._create_from_xpm... API backwards
10741         compatible.
10742
10743 2001-02-23  Tor Lillqvist  <tml@iki.fi>
10744
10745         * README.win32: Update. Mention the gtk-1-3-win32-production
10746         branch.
10747
10748         * gdk/win32/bdfcursor.c: New file. A program that generates
10749         xcursors.h. Thanks to Stefan Ondrejicka.
10750
10751         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
10752         compact format.
10753
10754         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
10755
10756         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
10757         function, uses xcursors.h.
10758         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
10759         cursor from inline data instead of using LoadCursor() to generate
10760         it from a resource.
10761
10762         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
10763         event, must check the Windows message for mouse button state, as
10764         the GDK event state might not have been built if it is
10765         undelivered. Remove one goto.
10766
10767         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
10768         SetCursor() if the current cursor as returned by GetCursor() is
10769         the window's previous cursor. The ChildWindowFromPoint() test
10770         apparently didn't work correctly.
10771
10772         * gdk/win32/rc/*.cur: Remove.
10773
10774         * gdk/win32/rc/gdk.rc.in: Remove cursors.
10775
10776         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
10777
10778         * gtk/makefile.{mingw,msc}.in: Updates.
10779
10780 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
10781
10782         * gtk/gtktreemodel.h: add functions for signal emission.
10783
10784         * gtk/gtktreestore.c: move to use above functions instead of
10785         g_signal_emit.
10786
10787         * gtk/gtkliststore.c: ditto
10788
10789 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
10790
10791         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
10792         GObject instead of GtkObject.
10793
10794         * gtk/gtkliststore.c: ditto.
10795
10796         * gtk/gtktreemodelsort.c: ditto.
10797
10798         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
10799         GtkTreeModelIface, instead of in each model.
10800
10801 2001-02-21  Havoc Pennington  <hp@redhat.com>
10802
10803         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
10804         unbreak this function
10805
10806         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
10807         properties
10808
10809         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
10810         properties
10811
10812         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
10813         properties
10814
10815         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
10816         mean unset the max length
10817
10818 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
10819
10820         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
10821         Changed name to be set_cell_data_func to make it clear what
10822         the functino does.  Close bug #51069.
10823
10824 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
10825
10826         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
10827         have memory actually freed.  Keeps box running longer.
10828
10829 2001-02-21  Alexander Larsson  <alexl@redhat.com>
10830         
10831         * gtk/gtkseparatormenuitem.[ch]:
10832         Added new menu separator item. The drawing and size handling
10833         is still done in GtkMenuItem, but the API is a bit more sane.
10834         
10835         * gtk/Makefile.am:
10836         Add gtkseparatormenuitem.[ch].
10837
10838         * gtk/gtk.h:
10839         Add gtkseparatormenuitem.h.
10840         
10841         * gtk/gtkentry.c:
10842         * gtk/gtkmenufactory.c:
10843         * gtk/gtktextview.c:
10844         Use the new API for menu separators.
10845         
10846         * demos/gtk-demo/menus.c (create_menu):
10847         Add some GtkSeparatorMenuItem demo code.
10848
10849 2001-02-20  Havoc Pennington  <hp@redhat.com>
10850
10851         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
10852         Lee Mallabone
10853
10854         * gtk/gtkarrow.c: Convert to new property API, patch from 
10855         Lee Mallabone
10856
10857 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
10858
10859         * tests/testtreeview.c (toggled_callback): fix to reflect change
10860         in GtkTreeModelStore.
10861
10862 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
10863
10864         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
10865         function to create an icon set from a pixbuf.
10866
10867 2001-02-20  Alexander Larsson  <alexl@redhat.com>
10868
10869         * gtk/gtkcellrenderertext.[ch]:
10870         Add a "markup" property.
10871
10872         * gtk/treestoretest.c:
10873         Use the markup property, remove some leftover stuff from
10874         GtkTreeModelMapping.
10875
10876 2001-02-20  Alexander Larsson  <alexl@redhat.com>
10877
10878         * gtk/gtklabel.c (gtk_label_set_selectable):
10879         Queue a redraw if the selectable setting was changed.
10880
10881 2001-02-20  Alexander Larsson  <alexl@redhat.com>
10882
10883         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
10884         Actually copy the whole gc, not just the public parts.
10885         
10886         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
10887         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
10888         labels.
10889
10890 2001-02-19  Havoc Pennington  <hp@pobox.com>
10891
10892         * gdk/gdkwindow.c: docs
10893
10894         * gdk/gdkrgb.c: docs
10895
10896         * gdk/gdkregion-generic.c: docs
10897
10898         * gdk/gdkgc.c (gdk_gc_set_values): docs
10899
10900         * gdk/gdkdraw.c: docs
10901
10902         * gdk/gdkdrawable.h: deprecate drawable get/set data
10903
10904 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
10905
10906         * demos/gtk-demo/dialog.c: Add simple new demo.
10907
10908 2001-02-19  Havoc Pennington  <hp@redhat.com>
10909
10910         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
10911         insert_child_anchor signal, bug #50245
10912
10913         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
10914         from create_child_anchor, so the anchor is passed in
10915
10916         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
10917         (_gtk_widget_segment_new): have the child anchor object passed in, 
10918         instead of creating it.
10919
10920         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
10921         to gtk_text_buffer_get_modified
10922
10923 2001-02-19  Havoc Pennington  <hp@redhat.com>
10924
10925         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
10926         changed GLib without fixing GTK
10927
10928         * gtk/gtkrange.h: Rename all the stupid implementation detail 
10929         functions to have an underscore in front. Most of them should 
10930         probably just go away, but for starters don't export them.
10931         Bug #50482
10932
10933 2001-02-19  Havoc Pennington  <hp@redhat.com>
10934
10935         * gdk/gdkcolor.h: test was backward, so deprecated functions were
10936         excluded by default
10937
10938         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
10939         clean up the old code a bit
10940
10941         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
10942         inconsistent state
10943
10944         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
10945         draw inconsistent state
10946
10947         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
10948         (create_menu): add inconsistent test
10949
10950         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
10951         new function
10952         (gtk_check_menu_item_get_inconsistent): new function
10953         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
10954         state (using etched in for now)
10955
10956         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
10957         draw inconsistent state
10958
10959         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
10960         function, used when the user has selected a range of stuff in
10961         different states
10962         (gtk_toggle_button_get_inconsistent): accessor for that
10963         (gtk_toggle_button_paint): draw inconsistent state (etched in?
10964         don't know what else to do)
10965
10966 2001-02-19  Hans Breuer <hans@breuer.org>
10967
10968         * gtk/gtk.def : updated exported symbols
10969
10970         * gtk/makefile.msc.in : updated
10971
10972         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
10973         a colormap, when invoked from testgtk::entry. I'm not sure where
10974         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
10975         avoids immediate crashing ...
10976
10977         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
10978         any objections ?
10979
10980         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
10981         0 parameter. At least msvc doesn't like macros with var args. 
10982         I simply removed the extra 0, was it a feature or a typo ?
10983
10984         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
10985         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
10986         because the value assignment to the internal struct wasn't working.
10987         I'm not absolutely sure. The problem could have been resolved by
10988         changing the "func" declartion in the struct, but was the pointer
10989         to the function pointer intended ?
10990
10991         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
10992
10993         * gdk/gdk.def : updated exported symbols
10994
10995         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
10996         only use SetDIBitsToDevice if there is a palette at the drawable
10997         and the image is GDK_VISUAL_PSEUDO_COLOR
10998
10999         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
11000
11001         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
11002
11003         * gdk/*/makefile.msc : updated
11004
11005 2001-02-19  Havoc Pennington  <hp@redhat.com>
11006
11007         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
11008         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
11009
11010         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
11011         (gdk_key_repeat_restore): nuke
11012
11013         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
11014         (gdk_init_check): no atexit func
11015
11016         * gdk/gdkrgb.h: mark some stuff deprecated
11017
11018         * gdk/gdkcolor.h: mark some stuff deprecated
11019         
11020         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
11021
11022         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
11023
11024 2001-02-16  Havoc Pennington  <hp@redhat.com>
11025
11026         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
11027         scroll steps.
11028
11029         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
11030         steps, and add Ctrl-arrow shortcuts for paging visually as with
11031         HScale, since Page Up and Page Down move logically.
11032
11033         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
11034         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
11035         
11036         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
11037         steps
11038         (gtk_range_scroll): handle the visual steps
11039
11040         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
11041         scroll steps
11042
11043         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
11044         steps, not the logical ones.
11045
11046         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
11047         (scroll_vertical): handle up/down steps
11048
11049 2001-02-19 Alexander Larsson  <alexl@redhat.com>
11050
11051         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
11052         Copy data and free data with free().
11053
11054         * gdk-pixbuf/gdk-pixbuf.c:
11055         * gdk-pixbuf/io-jpeg.c:
11056         * gdk-pixbuf/io-png.c:
11057         Use g_try_malloc/g_free instead malloc/free.
11058         
11059         * gdk-pixbuf/test-gdk-pixbuf.c:
11060         Must... initialize... gobject...
11061         
11062         * gdk-pixbuf/pixops/timescale.c:
11063         * gtk/gtkcalendar.c:
11064         Use g_malloc instead of malloc.
11065         
11066 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
11067
11068         * gtk/testgtkrc:
11069         Comment out property assignments, these don't work yet.
11070
11071 2001-02-17  Havoc Pennington  <hp@pobox.com>
11072
11073         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
11074         bit.
11075
11076 2001-02-17  Havoc Pennington  <hp@pobox.com>
11077
11078         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
11079         shadowed variables that had broken size request in some cases,
11080         leading to bogus tooltips (#50996)
11081
11082 2001-02-06  Jon K Hellan  <hellan@acm.org>
11083
11084         Implement fast browsing of tooltips, bug #50619
11085         
11086         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
11087         and last_popdown
11088         
11089         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
11090         use_sticky_delay and last_popdown.
11091         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
11092         time of popdown.
11093         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
11094         is NULL.
11095         (gtk_tooltips_recently_shown): New static function.  Return true
11096         if < sticky_delay has elapsed since last popdown.
11097         (gtk_tooltips_event_handler): Display window after sticky_delay
11098         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
11099         since last popdown.
11100         
11101 2001-02-17  Havoc Pennington  <hp@pobox.com>
11102
11103         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
11104         instead of (). #6394
11105
11106         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
11107         G_CONST_RETURN, make it return by reference, #50473
11108         
11109 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
11110
11111         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
11112         generated ENTER_NOTIFY event with 0, otherwise not explicitely
11113         setup fields contain garbage (e.g. subwindow, breaking
11114         gdk_drawable_ref() upon event copy).
11115         (gtk_menu_stop_navigating_submenu_cb): same here.
11116
11117         * gtk/gtklist.c (gtk_list_vertical_timeout): 
11118         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
11119         * gtk/gtkclist.c (vertical_timeout): 
11120         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
11121         default-zero-intialization for unions to memset(,0,), as unions are
11122         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
11123         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
11124
11125         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
11126         g_closure_sink() warning.
11127
11128         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
11129         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
11130         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
11131         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
11132         
11133 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
11134
11135         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
11136         gtk_*_store_get, and moved to GtkTreeModel.
11137
11138         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
11139
11140         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
11141
11142         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
11143
11144         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
11145         set the func.
11146
11147         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
11148         freeze/thaw notify between setting all the properties for a cell.
11149
11150         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
11151
11152 2001-02-15  Havoc Pennington  <hp@redhat.com>
11153
11154         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
11155         the X coordinates so they're with respect to the line, rather than 
11156         with respect to the layout.
11157
11158         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
11159         Mallabone
11160
11161         * gtk/testgtk.c (create_range_controls): add vscale tests, 
11162         and inverted test
11163
11164         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
11165         #50806
11166
11167         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
11168
11169         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
11170         gtk_text_iter_is_end
11171
11172         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
11173         rename gtk_text_buffer_get_end_iter
11174
11175         * gtk/testgtk.c (create_labels): Add test for selectable
11176
11177         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
11178         the selection stuff. This code is kind of broken since it doesn't 
11179         use the theme engine.
11180
11181         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
11182         fix infinite loop and y offset problem
11183         (gdk_draw_layout_line_with_colors): fix foreground color handling
11184
11185         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
11186         that makes the label selectable.
11187         
11188         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
11189         layout when the style is set, since fonts etc. could have changed.      
11190
11191 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
11192
11193         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
11194
11195         * gtk/gtktreemodelsimple.[ch]: removed.
11196
11197 2001-02-16  Alexander Larsson  <alexl@redhat.com>
11198
11199         * gtk/gtktreemodelmapping.[ch]:
11200         New files. Implement GtkTreeModelMapping.
11201         
11202         * gtk/Makefile.am:
11203         Add gtktreemodelmapping.[ch].
11204         
11205         * gtk/gtk.h:
11206         Add gtktreemodelmapping.h
11207
11208         * gtk/treestoretest.c:
11209         Test the GtkTreeModelMapping
11210
11211 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
11212
11213         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
11214         have a demo, we might as well pass in real values.  Thanks to
11215         clahey for pointing this out.
11216
11217 2001-02-14  Havoc Pennington  <hp@pobox.com>
11218
11219         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
11220         "static" to a private function
11221         (gtk_image_menu_item_class_init): remove destroy handler,
11222         add "image" object property
11223
11224 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
11225
11226         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
11227         Add a shortcut if the window and the current clip_region doesn't
11228         overlap. This is needed when there are a lot of windows in a
11229         window. The layout test in testgtk is a good test.
11230
11231         * gdk/linux-fb/gdkwindow-fb.c:
11232         Whitespace fix.
11233
11234 2001-02-13  Sven Neumann  <sven@convergence.de>
11235
11236         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
11237
11238 2001-02-13  Alexander Larsson  <alexl@redhat.com>
11239
11240         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
11241         Don't reference last_cursor if it is null. Fixes crash when rotating
11242         the screen before having moved the mouse.
11243
11244         * gdk/linux-fb/gdkcc-fb.c: Zapp!
11245
11246         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
11247
11248         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
11249         when using 90 or 270 degrees rotation.
11250
11251 2001-02-12  Havoc Pennington  <hp@pobox.com>
11252
11253         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
11254         it always set the foreground, even if we were only using
11255         a stipple.
11256         (gdk_draw_layout_line_with_colors): new function, allow
11257         override colors
11258         (gdk_draw_layout_with_colors): new function, allow override
11259         colors
11260         (gdk_pango_layout_line_get_clip_region): function to get the clip
11261         region for a logical text range
11262         (gdk_pango_layout_get_clip_region): get the clip region for a
11263         logical text range
11264
11265         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
11266         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
11267         the right number of arguments.
11268
11269         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
11270         enhance the function to check that node data corresponds to a 
11271         view still belonging to the tree.
11272
11273         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
11274         GtkTreePath
11275         (gtk_tree_view_inserted): ditto
11276         (gtk_tree_view_child_toggled): ditto
11277
11278         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
11279         simplify this code.
11280
11281         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
11282         a PangoAttrList
11283
11284         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
11285
11286         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
11287
11288         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
11289         size in the size request 
11290         (gtk_menu_bar_size_allocate): consider toggle size here
11291
11292         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
11293         that displays a widget in the toggle slot
11294
11295         * gtk/testgtk.c: test GtkImageMenuItem
11296
11297         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
11298         
11299         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
11300         request and allocation
11301
11302         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
11303
11304         * gtk/gtkcheckmenuitem.c
11305         (gtk_check_menu_item_toggle_size_request): ditto
11306         
11307 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
11308
11309         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
11310         reference.
11311
11312         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
11313         and refuse to initialize GTK+ if they fail.
11314
11315 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
11316
11317         * configure.in: Add check for gtk-doc version.
11318
11319 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
11320
11321         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
11322         where the xpad/ypad was only being used on one side!
11323
11324 2001-02-11  Tor Lillqvist  <tml@iki.fi>
11325
11326         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
11327         function, copied from X11 version.
11328
11329         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
11330         DestroyCursor failures. The reason for the problem (despite the
11331         inconsistent messages from GetLastError()) was that
11332         DestroyCursor() cannot be called while a cursor is set in a
11333         window. Set the new cursor first and then destroy the old one.
11334         Thanks to jpe@archaeopteryx.com.
11335
11336         * gdk/win32/gdkcc-win32.c: Remove.
11337
11338         * gdk/win32/Makefile.am: Remove from here, too.
11339         
11340         * gdk/gdk.def
11341         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
11342
11343         * gtk/gtk.def
11344         * gtk/makefile.mingw.in: Updates.
11345
11346 2001-02-08  Havoc Pennington  <hp@redhat.com>
11347
11348         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
11349         add a widget to a bin that already has a child.
11350
11351         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
11352
11353         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
11354         
11355         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
11356
11357         * gdk/gdk.h: remove gdkcc.h
11358
11359         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
11360
11361         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
11362         GdkPixbuf, since the previous implementation was GdkColorContext
11363         dependent.
11364
11365         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
11366         
11367 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
11368
11369         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
11370         a sane value!
11371
11372 2001-02-08  Havoc Pennington  <hp@redhat.com>
11373
11374         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
11375         lighten them.
11376
11377 2001-02-08  Havoc Pennington  <hp@redhat.com>
11378
11379         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
11380         validation idle
11381
11382         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
11383         cell renderer
11384
11385         * demos/pixbuf-demo.c (timeout): remove deprecated
11386         gtk_widget_draw
11387
11388         * demos/testpixbuf-save.c (main): remove deprecated
11389         gtk_drawing_area_size
11390
11391         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
11392         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
11393         at the start of the allocation.
11394         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
11395         unsetup or NULL model.
11396
11397         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
11398         even/odd/sorted cells in the tree view.
11399
11400         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
11401         bugfixes
11402
11403         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
11404         backgrounds with draw_flat_box using different detail for even/odd
11405         rows.
11406
11407         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
11408         row, so we can draw the alternating colors thing
11409
11410         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
11411         property from a synonym property, notify for the synonym.
11412         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
11413         (gtk_text_tag_get_property): Always return the font, even if
11414         all its fields aren't set
11415
11416         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
11417         store the attr list; it leaves us with no way to change attributes
11418         in _render according to the render flags, and no way to implement
11419         get_property. Instead store all the specific text attributes. 
11420         Separate whether an attribute is enabled from its value. Sync all
11421         properties with GtkTextTag, make them all consistent, etc.
11422
11423         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
11424         renderers can highlight the sort row/column     
11425
11426         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
11427         accessor functions to get values; this has the side effect of
11428         showing up which accessor functions were missing. Added those.
11429
11430         * gtk/gtktreeviewcolumn.h: Replace set_justification with
11431         set_alignment, to be consistent with GtkLabel, GtkMisc
11432
11433         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
11434         arrow.
11435
11436         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
11437
11438         * gtk/gtktreesortable.h: updates in here
11439
11440 2001-02-07  Sven Neumann  <sven@convergence.de>
11441
11442         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
11443         pango dimensions after painting the background. We used to draw
11444         gigantic flat boxes here.
11445
11446 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
11447
11448         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
11449         error introduced with earlier commit) (pointed out by
11450         Ollie Lho)
11451
11452 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
11453
11454         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
11455         which are no longer necessary.
11456
11457 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
11458
11459         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
11460
11461 2001-02-04  Tor Lillqvist  <tml@iki.fi>
11462
11463         * gdk/gdk.def
11464         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
11465         Provide dummy implementations.
11466
11467 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
11468
11469         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
11470
11471         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
11472         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
11473         deprecated this function.
11474
11475         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
11476         argument.
11477
11478 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
11479
11480         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
11481
11482 2001-02-03  Havoc Pennington  <hp@pobox.com>
11483
11484         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
11485         Mikael Hermansson with patch from Mikael (if there was a toggle
11486         start one after the first character in the range, this function
11487         was broken). Bug #50380
11488
11489 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
11490
11491         * configure.in: Remove confusing comment about X11.
11492
11493 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
11494
11495         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
11496         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
11497         
11498 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
11499
11500         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
11501         it breaks things on BSD. If you want to compile GTK+ with
11502         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
11503         when configuring, since GTK+ simply can't be "pure ANSI" 
11504         in the header files it uses. (#8170, Greg Hudson)
11505
11506 2001-02-02  Havoc Pennington  <hp@redhat.com>
11507
11508         * gtk/gtkwindow.c: docs
11509
11510         * gtk/gtkwidget.c: docs
11511         (gtk_widget_set_colormap): add a reference to the colormap
11512         (gtk_widget_get_default_colormap): add a reference to the colormap
11513
11514         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
11515
11516         * gtk/gtktextiter.c: docs
11517
11518         * gtk/gtkmain.c (gtk_propagate_event): docs
11519
11520         * gtk/gtkpaned.c (gtk_paned_get_position): docs
11521         (gtk_paned_set_position): docs
11522
11523         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
11524         sort interface, no implementation yet.
11525
11526         * demos/testpixbuf.c (new_testrgb_window): replace
11527         gtk_drawing_area_size() with gtk_widget_set_usize()
11528
11529         * demos/testpixbuf-drawable.c (main): ditto
11530         
11531         * gtk/testgtk.c: remove use of GtkStatusbarMsg
11532
11533         * gtk/gtktextbuffer.c: docs
11534
11535         * gtk/gtkstock.c: docs
11536
11537         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
11538
11539         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
11540
11541         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
11542         
11543         * gtk/gtkimage.c: add some docs in here
11544         (gtk_image_size_request): change name of
11545         gtk_widget_render_stock_icon
11546         (gtk_image_get_icon_set): don't dup returned string
11547         (gtk_image_get_icon_set): don't dup returned string
11548
11549         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
11550         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
11551         and gtkiconfactory.h functions
11552
11553         * gtk/gtkiconfactory.c: add some docs in here
11554
11555         * gtk/gtkmain.c (gtk_get_default_language): document
11556         (gtk_get_current_event): document
11557         (gtk_get_current_event_state): document
11558         (gtk_get_event_widget): document
11559
11560         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
11561
11562         * gtk/gtkcontainer.c: Add some documentation
11563         (gtk_container_add): give a more explanatory warning on adding an
11564         already-parented widget, this is kind of a FAQ and also a common
11565         typo that's easier to debug with a nice warning 
11566
11567         * gtk/gtkcellrenderertoggle.c
11568         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
11569         adding this, it's useless
11570         (gtk_cell_renderer_toggle_set_active): remove
11571         (gtk_cell_renderer_toggle_get_radio): add
11572
11573         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
11574         the NULL cell renderer, that doesn't make any sense to me. 
11575
11576         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
11577         demo code should never use deprecated features.
11578
11579         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
11580         code should never use deprecated features.
11581
11582         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
11583         gtk_widget_queue_clear_area deprecated
11584
11585         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
11586         deprecated
11587
11588         * gtk/gtklabel.h: mark gtk_label_get() deprecated
11589
11590         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
11591         a GdkImage deprecated, replaced by new consistently-named
11592         functions       
11593
11594         * gtk/gtkmain.h: Mark gtk_exit() deprecated
11595
11596         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
11597
11598         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
11599         deprecated
11600
11601         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
11602         so it won't appear in docs and confuse people.
11603
11604         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
11605
11606         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
11607         macros deprecated. (can't mark the type itself deprecated, since
11608         GtkProgressBar is not deprecated and we need the type decl to use
11609         GtkProgressBar)
11610
11611         * gtk/gtkpixmap.h: Mark deprecated
11612
11613         * gtk/gtkoldeditable.h: Mark deprecated
11614
11615         * gtk/gtklist.h: Mark deprecated
11616
11617         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
11618         for anything anymore.
11619
11620         * gtk/gtkctree.h: Mark deprecated
11621
11622         * gtk/gtkclist.h: Mark deprecated
11623
11624         * gtk/gtkpreview.h: Mark deprecated
11625
11626         * gtk/gtkpacker.h: Mark deprecated
11627
11628         * gtk/gtktipsquery.h: Mark deprecated
11629
11630         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
11631
11632         * gtk/gtkvruler.h: Add comment that it will move out of GTK
11633
11634         * gtk/gtkhruler.h: Add comment that it will move out of GTK
11635
11636         * gtk/gtkruler.h: Add comment that it will move out of GTK
11637
11638         * gtk/gtkgamma.h: Add comment that it will move out of GTK
11639
11640         * gtk/gtkcurve.h: Add comment that it will move out of GTK
11641
11642 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
11643
11644         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
11645         gdk_colormap_sync private since it was never exported
11646         in a header file.
11647
11648         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
11649         colormap->colors[] for StaticGray, StaticColor colormaps.
11650
11651         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
11652         was being used as if it was image->bits_per_pixel.
11653
11654         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
11655         for the image in the GdkImage structure since it isn't
11656         reconstructable, and we need it to handle packed types
11657
11658         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
11659         the assumption that on Win32 image->bits_per_pixel == image->depth,
11660         always.
11661
11662         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
11663
11664         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
11665         warning message if no converter can be found. 
11666
11667 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
11668
11669         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
11670         chars to isupper() / tolower(). (#567)
11671
11672         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
11673         to clear up 64-bit warnings. (#567)
11674
11675 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
11676
11677         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
11678         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
11679
11680         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
11681         since some people set $(libdir) separately. (#1290, David Kaelbling)
11682
11683 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
11684
11685         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
11686         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
11687         MAXPATHLEN, but the code here depends on a fixed value.)
11688         (#4524)
11689
11690 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
11691
11692         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
11693         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
11694
11695 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
11696
11697         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
11698         viewable there is no way that moving the node will cause the 
11699         focus row to become not viewable, so omit check on the visibility
11700         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
11701
11702 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
11703
11704         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
11705         selection before inserting new text.
11706
11707 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
11708
11709         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
11710         Make the sensitivity of the reparented child track that of
11711         the original parent menu item. (#34218, David Hodson)
11712
11713         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
11714         the case where the current item is destroyed properly.
11715
11716         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
11717         some edge cases with child-less menuitems.
11718         
11719 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
11720
11721         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
11722         key pop down window. (#12074, Jon K Hellan)
11723
11724 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
11725
11726         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
11727         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
11728         The solution here isn't perfect - you get an extraneous
11729         emission of "toggle", which could conceivably confuse an app,
11730         but better than the current situation. LXR search seems to
11731         indicate that no apps in GNOME CVS connect to "toggle".
11732
11733 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
11734
11735         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
11736         gtk_public_h_sources to directly here to avoid warning when
11737         building srcdir != builddir. (#9656)
11738
11739 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
11740
11741         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
11742         handlers in gtkrange.c return the proper values (TRUE == handled)
11743         (#10316).
11744
11745         This is just the tip of the iceberg, but gtkrange.c is the
11746         most common place where the propagation is problematical,
11747         and also a place where it is almost certainly safe to change
11748         this in the stable branch.
11749
11750         (You don't want right click popups on a range control or anything...)
11751
11752 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
11753
11754         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
11755         area on focus out, even if a background pixmap isn't set.
11756         (#13941)
11757         
11758 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
11759
11760         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
11761         to deal with setting the shape properly when scrolling arrows are
11762         turned on, but not visible because there is sufficient space.
11763         (#13432)
11764
11765 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
11766
11767         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
11768         items with submenus, destroy the item along with the submenu.
11769         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
11770         properly.
11771
11772         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
11773         later.
11774
11775 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
11776
11777         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
11778         the focus widget sometimes wasn't drawn with the default if there
11779         was no default widget.
11780
11781         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
11782         unreference pixmaps. 
11783
11784         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
11785         for some extra safety.
11786
11787 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
11788
11789         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
11790         the text of a cell to the old pointer value better, by
11791         copying the new text before freeing the old text. Some code
11792         cleanup. (#8079, Karl Nelson)
11793
11794 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
11795
11796         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
11797         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
11798
11799 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
11800
11801         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
11802         item from a menu, check to see if it matches 
11803         menu->old_active_menu_item, and if so, unref and clear
11804         old_active_menu_item (Patch from Pavel Cisler)
11805
11806         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
11807         menu_shell->active_menu_item, if it is the child being
11808         removed. (Patch based on that of Gene Ragan, #50337)
11809
11810 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
11811
11812         * gdk/linux-fb/gdkselection-fb.c: 
11813         * gdk/linux-fb/gdkcolor-fb.c: 
11814         * gdk/linux-fb/gdkdrawable-fb2.c: 
11815         * gdk/linux-fb/gdkfont-fb.c: 
11816         * gdk/linux-fb/gdkim-fb.c: 
11817         * gdk/linux-fb/gdkinput.c: 
11818         * gdk/linux-fb/gdkkeyboard-fb.c: 
11819         * gdk/linux-fb/gdkmain-fb.c: 
11820         * gdk/linux-fb/gdkrender-fb.c: 
11821         A bunch of whitespace cleanup.
11822         
11823 2001-01-30  Havoc Pennington  <hp@pobox.com>
11824
11825         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
11826         #ifdef GTK_ENABLE_BROKEN.
11827
11828         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
11829         GTK_ENABLE_BROKEN just before including the broken headers.
11830         
11831         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
11832         deprecated types registered.
11833
11834         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
11835         we have to test the broken stuff.
11836
11837         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
11838         
11839 2001-01-30  Havoc Pennington  <hp@redhat.com>
11840
11841         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
11842         here where prev pointer was set to the wrong thing
11843
11844         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
11845         (gtk_tree_path_is_descendant): new function
11846
11847         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
11848         cached length
11849         (gtk_list_store_get_iter): don't modify iter if we can't get the
11850         path.
11851
11852         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
11853         
11854         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
11855         GtkTreeDragDest
11856
11857         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
11858         was causing segfault
11859
11860         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
11861         pointer to NULL
11862
11863         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
11864
11865         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
11866         on returning FALSE
11867         (gtk_list_store_iter_children): ditto
11868         (gtk_list_store_iter_nth_child): ditto
11869         (gtk_list_store_iter_nth_child): ditto
11870         (gtk_list_store_iter_parent): ditto
11871
11872         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
11873         on iter->user_data != NULL instead of silently accepting it.
11874         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
11875         we are returning TRUE.
11876         (gtk_tree_store_iter_children): ditto
11877         (gtk_tree_store_iter_nth_child): ditto
11878         (gtk_tree_store_iter_parent): ditto
11879         (gtk_tree_store_insert): remove handling of parent->user_data ==
11880         NULL, replace with parent == NULL       
11881
11882         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
11883         and a comment explaining things
11884
11885         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
11886         interface support to GtkTreeStore.
11887
11888         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
11889         FALSE if no prev, fix
11890
11891         * gtk/gtktreeview.c (set_source_row): use a row reference
11892         (set_dest_row): use a row reference
11893
11894 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
11895
11896         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
11897         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
11898         (gtk_tree_selection_select_iter): The same as above.
11899
11900 2001-01-26  Havoc Pennington  <hp@redhat.com>
11901
11902         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
11903         which holds a handle to a specific row (particular set of values
11904         in the model, i.e. pointer-identity row).
11905
11906         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
11907         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
11908         Still need to use it for the src/dest row saved on the drag context.
11909
11910 2001-01-26  Havoc Pennington  <hp@redhat.com>
11911
11912         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
11913
11914         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
11915         not offset by TREE_VIEW_HEADER_HEIGHT
11916         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
11917         TREE_VIEW_HEADER_HEIGHT
11918
11919         * configure.in (included_loaders): for me, --with-included-loaders
11920         generates the error "the specified loader yes does not exist",
11921         i.e. the arg defaults to "yes", so change test for value ""
11922         to test for value "yes", and include all loaders in that case.
11923
11924         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
11925
11926         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
11927         handle TREE_VIEW_VERTICAL_SEPARATOR
11928         (gtk_tree_view_bin_expose): fix to consider the row offset as
11929         pointing halfway into vertical separator.       
11930         (gtk_tree_view_draw_node_focus_rect): ditto
11931
11932         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
11933         --gtk-debug=updates, which causes gdk_window_set_debug_updates
11934         (TRUE) to be called.
11935
11936         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
11937         debug mode where the invalid region is colored in on invalidate,
11938         so you can see the flicker and know whether your redraw code is 
11939         doing a good job.
11940
11941         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
11942         tree window coordinates (clip rect is in tree window coords)
11943
11944         * gtk/Makefile.am: add gtktreednd.[hc]
11945
11946         * gtk/gtkliststore.c: implement gtktreednd interfaces.
11947
11948         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
11949         drag-and-drop data operations on a model (so we can set up tree
11950         drag-and-drop automatically)
11951
11952         * gtk/testgtk.c: Add a window to change sensitivity in the
11953         GtkLabel test; add a way to change the entry frame in GtkEntry
11954         test
11955
11956         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
11957         (gtk_entry_get_has_frame): new functions to remove the frame
11958         around an entry
11959         (gtk_entry_size_request): shrink requisition if no frame
11960         (gtk_entry_draw_focus): don't draw frame if no frame
11961
11962         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
11963         checks inside a cell renderer
11964         (gtk_default_draw_option): ditto for options
11965
11966         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
11967         children from the alignment, not the button
11968         (gtk_tree_view_column_init): ref/sink the column, to emulate
11969         GObject refcounting.
11970
11971         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
11972         
11973         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
11974         Use theme functions to draw the toggles 
11975
11976         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
11977
11978         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
11979         GdkPangoAttrEmbossed to use in rendering insensitive text
11980
11981         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
11982
11983         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
11984         using new GDK features
11985         
11986 2001-01-24  Alexander Larsson  <alexl@redhat.com>
11987
11988         * gtk/gtkimage.c:
11989         Splitted gtk_image_clear into gtk_image_clear() and
11990         gtk_image_reset(). Call gtk_image_clear() in ::destroy
11991         to avoid leaks.
11992
11993         * gtk/gtklabel.c (set_markup):
11994         Don't leak text.
11995
11996         * gtk/gtktextlayout.c:
11997         Always free display->shaped_objects.
11998
11999         * gtk/testgtk.c (create_clist):
12000         Don't leak custom style.
12001
12002 2001-01-23  Alexander Larsson  <alexl@redhat.com>
12003
12004         * gtk/gtkcolorsel.c (grab_color_at_mouse):
12005         Don't leak image. Simplify using gdk_colormap_query_color().
12006         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
12007
12008         * linux-fb/gdkcolor-fb.c:
12009         Implemented gdk_colormap_query_color.
12010
12011 2001-01-23  Alexander Larsson  <alexl@redhat.com>
12012
12013         * linux-fb/gdkcursor-fb.c:
12014         Don't leak built-in cursors.
12015
12016         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
12017         Don't leak tmp_points.
12018
12019         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
12020         Don't modify desc. Don't leak font if the PangoFont
12021         isn't found.
12022         
12023         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
12024         Free dash_list.
12025
12026         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
12027         Don't leak string.
12028         
12029 2001-01-20  Havoc Pennington  <hp@pobox.com>
12030
12031         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
12032         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
12033         me, matches Pango
12034
12035 2001-01-22  Havoc Pennington  <hp@redhat.com>
12036
12037         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
12038
12039         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
12040
12041         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
12042         Remove, move back to gdk-pixbuf
12043
12044         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
12045         to all the word functions
12046
12047         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
12048         before doing anything on NULL layout or if we don't have the focus
12049
12050         * gtk/testtext.c (fill_example_buffer): "justification"
12051
12052         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
12053         to be called "justification" not "justify"
12054
12055         * demos/gtk-demo/textview.c (create_tags): "justification"
12056         
12057         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
12058
12059 2001-01-22  Alexander Larsson  <alexl@redhat.com>
12060
12061         * gdk/gdkwindow.c (gdk_window_invalidate_region):
12062         Don't leak visible_region. Use visible_region instead of region.
12063         
12064         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12065         Don't do extra gdk_drawable_ref(). This is not X.
12066         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
12067         gdk_fb_focused_window is ref:ed.
12068         (gdk_fb_window_send_crossing_events): Watch out for destroyed
12069         windows.
12070
12071 2001-01-22  Alexander Larsson  <alexl@redhat.com>
12072
12073         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
12074         Don't leak the PangoFontDescriptor.
12075
12076 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
12077
12078         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
12079         when not realized.
12080         (gtk_tree_view_scroll_to_cell): Make work when not realized.
12081         (gtk_tree_view_realize): add scroll_to support
12082         (gtk_tree_view_finalize): add a finalize method.  Populate.
12083         (gtk_tree_view_insert_column): ref and sink the column.
12084         (gtk_tree_view_append_column): ref and sink the column.
12085         (gtk_tree_view_queue_draw_node): New function to handle redrawing
12086         individual nodes.  Should make the code much more efficient, if
12087         actually used.
12088
12089 2001-01-19  Havoc Pennington  <hp@redhat.com>
12090
12091         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12092         byte_offset variable was being used to mean both "offset into
12093         layout" and "offset into buffer line" which was no longer true
12094         with addition of preedit string; fix
12095
12096 2001-01-19  Havoc Pennington  <hp@redhat.com>
12097
12098         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
12099
12100         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
12101         function
12102
12103         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
12104         implement
12105
12106         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
12107         scroll_to_cell, matches TextView scroll functions better
12108         (gtk_tree_view_tree_to_widget_coords): new function
12109         (gtk_tree_view_widget_to_tree_coords): new function
12110         (gtk_tree_view_get_visible_rect): new function
12111         (gtk_tree_view_get_path_at_pos): accept negative coordinates
12112         (gtk_tree_view_draw_node_focus_rect): new function moved from
12113         draw_focus, also, use width of bin_window as width of the focus
12114         rect
12115         (gtk_tree_view_expand_row): fix bug where it didn't recognize
12116         already-expanded rows
12117         (gtk_tree_view_get_cell_rect): new function
12118         (gtk_tree_view_get_path_at_pos): return the click position
12119         relative to the passed-in cell
12120         (gtk_tree_view_set_expander_column): new function
12121
12122         * configure.in: remove gtk-config-2.0 chmod
12123
12124         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
12125         and properly handle drags with targets we don't understand
12126         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
12127         scrolling anyway
12128         (gtk_text_view_drag_drop): stop scrolling here though, and set the
12129         mark invisible
12130
12131         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
12132         function
12133         (gtk_drag_dest_get_target_list): new function
12134         (gtk_drag_dest_set_target_list): new function
12135         
12136         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
12137
12138         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
12139         related to drag-and-drop
12140
12141 2001-01-19  Alexander Larsson  <alexl@redhat.com>
12142
12143         * gdk/linux-fb/gdkprivate-fb.h:
12144         Define EMULATE_GDKFONT.
12145         Add extra pango_font stuff to GfkFontPrivate.
12146         
12147         * gdk/linux-fb/gdkdrawable-fb2.c:
12148         * gdk/linux-fb/gdkfont-fb.c:
12149         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
12150         emulation using PangoFont.
12151
12152 2001-01-17  Havoc Pennington  <hp@pobox.com>
12153
12154         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
12155         all the non-deprecated set_foo functions. Added missing object
12156         properties, and added g_object_notify() to setters. 
12157         Wrote docs.
12158         
12159 2001-01-18  Tor Lillqvist  <tml@iki.fi>
12160
12161         * gtk/gtkmain.c
12162         * gtk/gtkrc.c: (Win32) Use the new
12163         g_win32_get_package_installation_(sub)directory() functions.
12164
12165         * config.h.win32.in: New file.
12166         
12167         * config.h.win32: Removed.
12168
12169         * configure.in: Output config.h.win32.
12170
12171         * Makefile.am: Add it to EXTRA_DIST.
12172
12173         * gtk/gtk.def: Update.
12174
12175 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
12176
12177         * gtk/gtklabel.c (gtk_label_size_request): Set the
12178         attributes onto the PangoLayout even if they are newly
12179         created from label->pattern.
12180
12181 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
12182
12183         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
12184
12185         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
12186         structures in functions. Fixes bug where gtk_dataset_*
12187         was accidentally still being used in one place, causing
12188         every dest side event to be treated independently.
12189
12190         * gtk/gtkdnd.c: Remove last vestages of handling
12191         ::draw (fixes warning)
12192         
12193         * gtk/gtkentry.[ch]: Add drag and drop support.
12194
12195         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
12196         new function gtk_check_drag_threshhold() for checking
12197         to check if (dx,dy) has exceeded the threshhold for starting
12198         a drag and use it everywhere.
12199
12200 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
12201
12202         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
12203         add -I{includedir}/gtk-2.0.
12204
12205         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
12206         gdk/gdk-pixbuf.h: Doc fixups.
12207         
12208         * gtk/gtkobject.h: Remove trailing , from enum
12209
12210 2001-01-17 Alexander Larsson <alexl@redhat.com> 
12211
12212         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
12213         Doh! Mixed up x and y.
12214
12215         * gdk/linux-fb/gdkglobals-fb.c:
12216         Removed gdk_fb_pointer_grab_window_events,
12217         added _gdk_fb_pointer_grab_owner_events and
12218         _gdk_fb_keyboard_grab_owner_events.
12219
12220         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
12221         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
12222         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
12223         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
12224         Send crossing events after ungrab finished.
12225         (gdk_keyboard_grab): Set ..._owner_events
12226         (type_masks): Move out of function.
12227         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
12228         gdk_fb_keyboard_event_window): New functions, return the
12229         window an event should be targeted at. Handles grabs and
12230         event propagation. Can return NULL.
12231         (gdk_event_make): Remove event_mask checking. Now always
12232         returns an event.
12233                 
12234         * gdk/linux-fb/gdkkeyboard-fb.c:
12235         * gdk/linux-fb/gdkproperty-fb.c:
12236         * gdk/linux-fb/gdkselection-fb.c:
12237         Use new event_window/gdk_event_make() behaviour.
12238         
12239         * gdk/linux-fb/gdkmouse-fb.c:
12240         Use new event_window/gdk_event_make() behaviour.
12241         Only send motion events if in the same window.
12242         If grabbed, use cursor from window if sibling of grabbed
12243         window, and cursor from grabbed window otherwise.
12244
12245         * gdk/linux-fb/gdkprivate-fb.h:
12246         Update gdk_fb_window_send_crossing_events, gdk_event_make
12247         and grab varaible declarations. Add gdk_fb_*_event_window().
12248
12249         * gdk/linux-fb/gdkwindow-fb.c:
12250         Use new event_window/gdk_event_make() behaviour.
12251         Keep correct track of focus window.
12252         (gdk_window_set_events): Set all specific button motion masks
12253         if GDK_BUTTON_MOTION_MASK set.
12254
12255         * gtk/gtkdnd.c (gtk_drag_update):
12256         Free info->last_event if gdk_drag_motion returned FALSE.
12257
12258 2001-01-16  Tor Lillqvist  <tml@iki.fi>
12259
12260         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
12261         Eliminate redraws when input-only windows are shown or
12262         hidden. Thanks to jpe@archaeopteryx.com.
12263
12264 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
12265
12266         * docs/faq/gtk-faq.sgml: FAQ update:
12267           - Update to bugzilla
12268           - Add GTK+ and security/SUID/SGID
12269           - Add DnD question
12270
12271 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
12272
12273         * gdk/linux-fb/gdkdnd-fb.c:
12274         Some cleanups.
12275         
12276 2001-01-15  Havoc Pennington  <hp@pobox.com>
12277
12278         * tests/testtreeview.c: add test stuff for CellRendererToggle
12279
12280         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
12281         accessor
12282
12283         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
12284         only toggle on button press (would do release like GtkButton, but
12285         we'd need implicit grab code for treeview cells)
12286
12287 2001-01-16  Tor Lillqvist  <tml@iki.fi>
12288
12289         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
12290
12291         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
12292         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
12293
12294         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
12295         to g_{locale,filename}_{to,from}_utf8 to match current API.
12296
12297         * gtk/makefile.msc.in (gtk_OBJECTS)
12298         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
12299
12300         * gtk/gtk.def: Update.
12301
12302 2001-01-15  Tor Lillqvist  <tml@iki.fi>
12303
12304         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
12305         implementaion that more closely mimics the events that an X server
12306         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
12307         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
12308         with nested preview widgets, for instance, more responsive when
12309         you move the mouse quickly into them.
12310         (find_window_for_pointer_event): Make it actually compile.
12311         (gdk_event_translate): Set send_event to the value of
12312         InSendMessage (). This doesn't really mean the same as X11's
12313         send_event flag, but is close enough, says jpe@archaeopteryx.com
12314
12315 2001-01-15  Alexander Larsson  <alexl@redhat.com>
12316
12317         * gdk/linux-fb/gdkdnd-fb.c:
12318         Implemented drag and drop.
12319         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
12320         when it tries to free and then copy the same event (info->last_event).
12321         I am not sure about why this happens, but will continue looking.
12322
12323 2001-01-15  Alexander Larsson  <alexl@redhat.com>
12324
12325         * gdk/linux-fb/gdkwindow-fb.c:
12326         Use gdk_window_invalidate_rect instead of
12327         gdk_window_invalidate_rect_clear to minimise flashing.
12328         When hiding windows you need to clear the root window though.
12329
12330 2001-01-15  Alexander Larsson  <alexl@redhat.com>
12331
12332         * gdk/linux-fb/gdkdrawable-fb2.c:
12333         For optization, add an full_shapes argument to gdk_fb_clip_region.
12334         If this is false, only the cliprects of the shapes are used.
12335
12336         * gdk/linux-fb/gdkprivate-fb.h:
12337         Export gdk_fb_window_peek_shape.
12338         Add full_shapes to gdk_fb_clip_region.
12339
12340         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
12341         When moving a window, don't clear everything under the it, just the
12342         root window. Makes stuff faster and flash less.
12343         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
12344         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
12345         offset of the shape.
12346         
12347
12348 2001-01-12  Havoc Pennington  <hp@redhat.com>
12349
12350         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
12351         current invalid region, fixes redraw bug while scrolling the 
12352         text widget
12353
12354         * gtk/gtktextview.c, gtk/gtktextview.h:
12355         Rearrange the scrolling/validation/etc. code in a major way, 
12356         so it seems to make sense to me. Probably isn't genuinely that
12357         much better, but...
12358
12359         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
12360         notifies
12361
12362         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
12363
12364 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
12365
12366         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
12367         Hide mouse pointer while rotation. Show it afterwards.
12368
12369 2001-01-12  Alexander Larsson  <alexl@redhat.com>
12370
12371         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
12372         windows in consideration when generating clip region.
12373
12374         * gdk/linux-fb/gdkfb.h:
12375         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
12376
12377         * gdk/linux-fb/gdkprivate-fb.h:
12378         Add shape to GdkWindowFBDatat.
12379         exported gdk_fb_window_get_abs_shape().
12380         removed gdk_fb_draw_lines declaration.
12381
12382         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
12383         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
12384         send focus changes when there is a grabbed window.
12385         (gdk_window_get_pointer): Handle shaped windows.
12386         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
12387         (gdk_fb_window_peek_shape): Returns the shape for a window,
12388         handles GDK_FB_USE_CHILD_SHAPE.
12389         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
12390         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
12391         (gdk_window_shape_combine_mask): Implement.
12392
12393         * gtk/gtkwindow-decorate.c:
12394         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
12395         setting the shape of a window makes the window transparent.
12396
12397 2001-01-11  Havoc Pennington  <hp@redhat.com>
12398
12399         * gtk/gtktreemodelsimple.h: Oops, broke some macros
12400
12401 2001-01-10  Havoc Pennington  <hp@redhat.com>
12402
12403         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
12404         add this function, bug 40251
12405
12406         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
12407         of type macro   
12408
12409 2001-01-11  Alexander Larsson  <alexl@redhat.com>
12410
12411         * acconfig.h:
12412         Added ENABLE_SHADOW_FB
12413
12414         * configure.in:
12415         Added --disable-shadowfb
12416
12417         * gdk/linux-fb/gdkcursor-fb.c:
12418         Update shadowfb when updating cursor
12419
12420         * gdk/linux-fb/gdkdrawable-fb2.c:
12421         Added wrappers for shadowfb that calls  the normal drawable
12422         methods, but calls gdk_shadow_fb_update(bounding box) when
12423         GdkWindows are drawed to.
12424         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
12425         which also returns the bounding box.
12426
12427         * gdk/linux-fb/gdkfb.h:
12428         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
12429
12430         * gdk/linux-fb/gdkgeometry-fb.c:
12431         Update shadowfb when scrolling window.
12432
12433         * gdk/linux-fb/gdkglobals-fb.c:
12434         Add _gdk_fb_screen_angle.
12435         
12436         * gdk/linux-fb/gdkkeyboard-fb.c:
12437         Test code for screen rotation. Shift-F2 in the xlate driver
12438         rotates the screen.
12439
12440         * gdk/linux-fb/gdkmain-fb.c:
12441         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
12442
12443         * gdk/linux-fb/gdkmouse-fb.c:
12444         Use fb_width/height instead of modeinfo.xres/yres.
12445
12446         * gdk/linux-fb/gdkprivate-fb.h:
12447         Added fb_men, fb_width, fb_height & fb_stride. When using
12448         shadow fb these can differ from the framebuffer stuff.
12449         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
12450         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
12451         _gdk_fb_screen_angle. Removed CM, RP.
12452
12453         * gdk/linux-fb/gdkrender-fb.c:
12454         Added code for shadowfb handling and screen rotation using
12455         shadowfb.
12456
12457         * gdk/linux-fb/gdkwindow-fb.c:
12458         Use fb_mem, fb_stride, fb_width, fb_height.
12459         Added recompute_rowstride to reset the rowstride of all windows.
12460         Added gdk_fb_recompute_all() which recomputes rootwindow size,
12461         window abs positions and window rowstrides. Usefull when the
12462         rotation has changed.
12463
12464 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
12465
12466         * docs/faq/gtk-faq.sgml: update to make web site updating easier
12467
12468 2001-01-10  Havoc Pennington  <hp@redhat.com>
12469
12470         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
12471         where sibling == iter
12472         (gtk_tree_store_insert_after): handle sibling == iter
12473         (gtk_tree_store_prepend): remove stamp checks
12474         (gtk_tree_store_insert_before): ditto
12475         (gtk_tree_store_append): ditto
12476         (gtk_tree_store_get_path): ditto
12477         (gtk_tree_store_get_value): ditto
12478         (gtk_tree_store_iter_has_child): ditto
12479         (gtk_tree_store_iter_n_children): ditto
12480         (gtk_tree_store_iter_nth_child): ditto
12481         (gtk_tree_store_insert_after): ditto
12482         (gtk_tree_store_is_ancestor): ditto
12483         (gtk_tree_store_iter_depth): ditto
12484         (gtk_tree_store_insert_before): assert that sibling's parent is
12485         the same as the passed-in parent
12486         (gtk_tree_store_insert_after): assert that sibling's parent is
12487         the same as the passed-in parent
12488
12489         
12490         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
12491         function to get the first iterator in a model
12492         
12493         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
12494         conventionally the "root" in this sense is just NULL afaict.
12495
12496         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
12497         where sibling == iter
12498         (gtk_list_store_insert_after): handle case where sibling == iter
12499
12500         * tests/testtreeview.c (run_automated_tests): fairly lame basic
12501         automated tests for ListStore, TreeStore
12502
12503         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
12504         (gtk_list_store_insert): update tail pointer, and fix it to work
12505         (gtk_list_store_insert_before): update tail pointer, and fix it to work
12506         (gtk_list_store_append): use tail to be faster
12507         (gtk_list_store_prepend): fix it, update tail pointer
12508         (gtk_list_store_insert_after): fix it, update tail pointer
12509
12510         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
12511         the list
12512
12513 2001-01-09  Havoc Pennington  <hp@redhat.com>
12514
12515         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
12516         is NULL due to a pending resize
12517
12518         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
12519         column width to values less than 1
12520
12521         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
12522         width to be between min/max width, and still set the width 
12523         even if autosize is turned on, so the tree view can use this 
12524         function in order to autosize.
12525         (gtk_tree_view_column_init): set initial width to 1 not 0
12526
12527         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
12528         setter function to modify column width, so we get notification
12529         (gtk_tree_view_insert_iter_height): ditto
12530         (gtk_tree_view_calc_size): ditto
12531         (gtk_tree_view_check_dirty): ditto
12532
12533         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
12534         properties to change all the interesting attributes of the tree
12535         view column.
12536         (gtk_tree_view_column_set_header_clickable): rename set_clickable
12537         (gtk_tree_view_column_get_clickable): add
12538         (gtk_tree_view_column_set_cell_renderer): don't unset the current
12539         attributes; assume a cell renderer with equivalent object
12540         properties has been swapped in. Do g_object_notify().
12541         (gtk_tree_view_column_set_visible): g_object_notify
12542         (gtk_tree_view_column_get_sizing): rename from get_col_type
12543         (gtk_tree_view_column_set_sizing): g_object_notify
12544         (gtk_tree_view_column_set_width): add g_object_notify
12545         (gtk_tree_view_column_set_min_width): ditto
12546         (gtk_tree_view_column_set_max_width): ditto
12547         (gtk_tree_view_column_set_title): ditto
12548         (gtk_tree_view_column_set_clickable): ditto
12549         (gtk_tree_view_column_set_widget): ditto
12550         (gtk_tree_view_column_set_justification): ditto
12551
12552 2001-01-09  Havoc Pennington  <hp@redhat.com>
12553
12554         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
12555         there are no rows in the model
12556
12557         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
12558         NULL, then return the start of the list
12559
12560         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
12561         if we can't get any rows from an empty model 
12562
12563         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
12564         extraneous * after function pointer typedef usage
12565
12566         * Makefile.am: don't specify full path to cp and rm
12567
12568         * gtk/gtkcellrenderertextpixbuf.c
12569         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
12570         NULL before dereferencing, fixes a segfault that happened from
12571         time to time
12572
12573         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
12574         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
12575         and reindent the function
12576         (gtk_cell_renderer_pixbuf_get_size): indentation
12577
12578         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
12579         we quit it
12580         (gtk_dialog_add_buttons_valist): add g_return_if_fail
12581         (gtk_dialog_set_default_response): New function, to set default
12582         button
12583         (gtk_dialog_set_response_sensitive): New function, to set 
12584         sensitivity of buttons
12585
12586         * gtk/gtkcellrendererpixbuf.c
12587         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
12588         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
12589
12590         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
12591         handle any G_TYPE_OBJECT subclass, not just the base class, and 
12592         also boxed types.
12593         (_gtk_tree_data_list_value_to_node): ditto
12594
12595         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
12596         --gtk-debug=tree
12597
12598         * gtk/gtkmain.c: add GTK_DEBUG_TREE
12599
12600         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
12601
12602 2001-01-09  Tor Lillqvist  <tml@iki.fi>
12603
12604         * gdk/win32/gdkevents-win32.c: Implement better mouse
12605         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
12606         (find_window_for_pointer_event): New function.
12607         (gdk_event_translate): Use it when handling mouse events.
12608
12609 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
12610
12611         * configure.in:
12612         Added --with-included-loaders option
12613
12614         * gdk-pixbuf/Makefile.am:
12615         * gdk-pixbuf/gdk-pixbuf-io.c:
12616         Add support for including selected gdk-pixbuf loaders only.
12617
12618         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
12619         gtk_window_set_has_frame):
12620         Added inline documentation.
12621
12622         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
12623         * docs/reference/gdk/tmpl/windows.sgml:
12624         Added inline documentation.
12625
12626 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
12627
12628         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
12629         realizing buttons that have already been realized.
12630
12631 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
12632
12633         * tests/testtreeview.c (main): Show menu items before adding to
12634         option menu.
12635
12636         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
12637         around if we kill them.
12638
12639         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12640         Return if we pass in a NULL model.
12641
12642 2001-01-08  Havoc Pennington  <hp@redhat.com>
12643
12644         * tests/testtreeview.c: hack on this some
12645
12646         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
12647         gtk_tree_store_set_valist, v is for arrays, valist for varargs
12648         list
12649         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
12650
12651         * gtk/gtkliststore.h: Add varargs set() and get() convenience
12652         functions
12653
12654 2001-01-08  Alexander Larsson  <alexl@redhat.com>
12655
12656         * gtk/gtkwindow-decorate.[hc]:
12657         * gtk/Makefile.am:
12658         New files. Contains an implementation of a minimal WM for
12659         linux-fb.
12660
12661         * gtk/gtkwindow.h:
12662         Add the possibility for GtkWindows to specify a frame. This
12663         is used for the window decoration code, but could concievably
12664         be used for X programs too (xmms style windows).
12665         GtkWindow->frame is the toplevel window if the window is framed.
12666         The signal frame_event gets all events that are targeted to
12667         GtkWindow->frame.
12668         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
12669         
12670         * gtk/gtkwindow.c:
12671         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
12672         Call out to gtkwindow-decorate.c for WM support in linx-fb.
12673
12674 2001-01-08  Alexander Larsson  <alexl@redhat.com>
12675
12676         * docs/README.linux-fb:
12677         Correct filename ~/.pangoft2_aliases
12678
12679         * gdk/gdkwindow.h:
12680         Added new function gdk_window_get_decorations.
12681
12682         * gdk/linux-fb/gdkfb.h:
12683         Removed _gdk_window_get_decorations declaration.
12684         Renamed _gdk_window_set_child_handler to
12685         gdk_fb_window_set_child_handler.
12686
12687         * gdk/linux-fb/gdkwindow-fb.c:
12688         Renamed _gdk_window_set_child_handler to
12689         gdk_fb_window_set_child_handler.
12690
12691         * gdk/x11/gdkwindow-x11.c:
12692         New function gdk_window_get_mwm_hints().
12693         Implemented gdk_window_get_decorations.
12694
12695         * docs/reference/gdk/tmpl/windows.sgml:
12696         * docs/reference/gdk/gdk-sections.txt:
12697         Added gdk_window_get_decorations docs.
12698         
12699 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
12700
12701         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
12702         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
12703         gdk_fb_window_send_crossing_events):
12704         Possibly send focus events when the mouse moves from one
12705         window to another.
12706
12707 2001-01-07  Tor Lillqvist  <tml@iki.fi>
12708
12709         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
12710         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
12711         to match current API.
12712
12713         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
12714         environment variable is set, don't call g_error when on a
12715         palettized (PseudoColor) display. Some people want to use GTK+ 
12716         in 256-colour mode even though works only partially.
12717
12718         * gdk/gdk.def
12719         * gtk/gtk.def
12720         * gtk/makefile.mingw.in: Update.
12721
12722 2001-01-05  Havoc Pennington  <hp@redhat.com>
12723
12724         * tests/testtreeview.c: hack on this a bit
12725
12726         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
12727         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
12728
12729         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
12730         was spelled incorrectly
12731         (GTK_IS_TREE_MODEL_SIMPLE): ditto
12732
12733         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
12734         from gtk_tree_view_set_headers_active   
12735
12736         * gtk/gtktexttag.c:
12737         (gtk_text_tag_get_property): handle PROP_DIRECTION
12738         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
12739         properties, bug 40235
12740
12741         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
12742         forward_to_line_end
12743
12744 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
12745
12746         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
12747         modules/input/gtkimcontextxim.c: Adapt to new prototypes
12748         for unicode,locale,filename conversion functions.
12749
12750 2001-01-05  Havoc Pennington  <hp@redhat.com>
12751
12752         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
12753         broken if called on the first position in the buffer.
12754
12755         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
12756         forward_to_delimiters to be called only if we aren't already at
12757         the delimiters.
12758
12759 2001-01-05  Havoc Pennington  <hp@redhat.com>
12760
12761         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
12762
12763 2001-01-05  Alexander Larsson  <alexl@redhat.com>
12764
12765         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
12766         colormap in here. Sync from X port.
12767         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
12768         Sync from X port.
12769         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
12770         This happens now and then, and i don't think it is a bug.
12771         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
12772         != endpoint.
12773         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
12774         GDK_LINE_SOLID.
12775
12776         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
12777         some of the fields filled in at least.
12778
12779         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
12780         miLineArcD is no more, remove it from the function definition.
12781
12782 2001-01-04  Havoc Pennington  <hp@redhat.com>
12783
12784         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
12785         this
12786
12787         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
12788         user_data instead of tree_node
12789
12790         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
12791         TREE_VIEW_COLUMN_SIZE
12792
12793         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
12794         "size" field to "width" finishes bug 40061
12795
12796         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
12797         for bitfields, bug 40268
12798
12799 2001-01-04  Havoc Pennington  <hp@redhat.com>
12800
12801         Rename some stuff:
12802         
12803         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
12804
12805         s/GtkModelSimple/GtkTreeModelSimple/g;
12806         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
12807         s/gtk_model_simple/gtk_tree_model_simple/g;
12808         s/gtkmodelsimple/gtktreemodelsimple/g;
12809
12810         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
12811
12812         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
12813         s/column_set_col_type/column_set_sizing/g;
12814
12815         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
12816         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
12817
12818         s/GtkCellRendererType/GtkCellRendererState/g;
12819         
12820         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
12821         (gtk_cell_renderer_toggle_class_init): change "state" property to
12822         "active", to match GtkToggleButton
12823         (gtk_cell_renderer_toggle_get_active): new function, bug
12824         40269
12825         (gtk_cell_renderer_toggle_set_active): new function
12826         (gtk_cell_renderer_toggle_set_property): route changes to toggle
12827         state through gtk_cell_renderer_set_active
12828
12829 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
12830
12831         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
12832         temporarily until they work again.  Brought up to date with
12833         changes in the model.
12834         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
12835         model.
12836
12837 2001-01-04  Havoc Pennington  <hp@redhat.com>
12838
12839         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
12840         equal to the line length, then position iterator before paragraph 
12841         separators. Fixes crash reported by Mikael Hermansson when
12842         pressing left arrow from the start of a line.   
12843
12844         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
12845         about byte indexes off the end
12846         (iter_set_from_char_offset): add g_error about char offsets
12847         off the end
12848
12849 2001-01-03  Havoc Pennington  <hp@redhat.com>
12850
12851         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
12852
12853         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
12854         of private functions; remove inclusion of private headers.
12855
12856         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
12857         function, so we don't need private functions in gtktextdisplay.c
12858
12859         * gtk/gtktextiterprivate.h: underscore-ification
12860
12861         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
12862         to instead say "only useful to implement widgets"
12863
12864         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
12865         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
12866         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
12867
12868         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
12869         This function was completely broken
12870
12871         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
12872
12873         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
12874
12875         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
12876
12877         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
12878
12879         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
12880
12881         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
12882
12883         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
12884         gtk_paint_layout
12885
12886         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
12887         gtk_paint_layout
12888
12889         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
12890         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
12891         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
12892         which were not implemented.     
12893
12894         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
12895         insert_pixbuf signal. Rename delete_text to delete_range since it
12896         also deletes pixbufs and child anchors. This almost closes bug
12897         40245 (still need to deal with child anchors)
12898
12899         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
12900         insert_pixbuf, change signal names as appropriate, change types of
12901         signals taking marks/tags to have the specific type, not just
12902         G_TYPE_OBJECT
12903         
12904         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
12905         closes bug 40051
12906
12907         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
12908         unnecessary remove_contents() call
12909         (gtk_option_menu_class_init): add a "changed" signal, closes
12910         bug 40039
12911         (gtk_option_menu_update_contents): emit "changed" if the 
12912         active menu item changes
12913
12914         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
12915         cast to GtkObject, reported by Jonas Borgstrom
12916         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
12917         we can't do stuff with side effects in finalize. Instead, spew a
12918         warning if the loader isn't closed.
12919
12920         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
12921         colormap in here, non-X ports probably need to sync to this change
12922
12923         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
12924         assertion that colormap != NULL, you can set the colormap to NULL
12925         if you like.
12926         
12927         * Makefile.am: remove gtk-config-2.0
12928
12929         * configure.in: Use pkg-config to locate GLib. Remove
12930         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
12931         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
12932         Use pkg-config to locate Pango. Output correct Pango libs to
12933         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
12934
12935         * Makefile.am (pkgconfig_DATA): install only target-specific pc
12936         files
12937         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
12938         X11 pc files
12939
12940         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
12941         unref from here
12942
12943 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
12944
12945         * configure.in:
12946         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
12947
12948 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
12949
12950         * gtk/gtktextlayout.c
12951         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
12952         variable when moving back onto a single line.
12953
12954 2001-01-01  Havoc Pennington  <hp@redhat.com>
12955
12956         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
12957
12958         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
12959
12960         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
12961         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
12962
12963 2001-01-01  Havoc Pennington  <hp@redhat.com>
12964
12965         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
12966
12967         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
12968         GtkTextAttributes
12969
12970         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
12971         #40246
12972         (gtk_text_attributes_copy_values): rename from 
12973         gtk_text_attributes_copy
12974         (gtk_text_attributes_copy): a more standard GTK copy function, 
12975         which returns a new object
12976
12977 2001-01-01  Havoc Pennington  <hp@redhat.com>
12978
12979         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
12980         
12981         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
12982         don't fill in tree_view->priv->selection, kind of an unexpected
12983         side effect
12984
12985         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
12986         gtkintl.h
12987         
12988         * gtk/gtkcellrenderer.c: Remove definition of _ and include
12989         gtkintl.h
12990         (gtk_cell_renderer_get_property): remove calls to g_value_init
12991
12992         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
12993         gtkintl.h
12994
12995         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
12996         and include gtkintl.h
12997         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
12998         property names
12999
13000         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
13001         GtkTreeSelection
13002         (_gtk_tree_selection_new_from_with_view): rename, return
13003         GtkTreeSelection
13004         (_gtk_tree_selection_set_tree_view): rename with uscore
13005         (gtk_tree_selection_get_selected): fill in the "model" out param
13006         first, so it gets filled in even if we return at the top of the 
13007         function
13008         (gtk_tree_selection_real_select_all): add a comment and an else{}
13009         to clarify this a bit
13010         (gtk_tree_selection_real_unselect_all): add the same else{}
13011
13012         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
13013         set_tree_view to have underscore prefixes, move them to the
13014         private header, fix return type of new_with_tree_view
13015         (struct _GtkTreeSelection): mark struct
13016         fields private  
13017
13018         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
13019         GtkTreeModelFlags, not a guint
13020         (gtk_tree_path_prev): return gboolean not gint
13021         (gtk_tree_path_up): return gboolean not gint
13022
13023         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
13024         return GtkTreeModelFlags, not a guint
13025
13026         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
13027         that child model is non-null before unrefing it
13028         (g_value_int_compare_func): make this a qsort compare func, not 
13029         a boolean predicate
13030
13031         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
13032         (add -umn to the end), and mark it unimplemented
13033         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
13034         I don't see what it's for - doesn't the model always sort itself?
13035         (gtk_tree_model_sort_set_compare): this had the wrong signature
13036
13037         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
13038         Fix the docs to say that it destructively replaces existing
13039         attributes (previously said that it added attributes).
13040         (gtk_tree_view_column_set_visible): canonicalize bool before
13041         equality testing. Also, check for realization before
13042         hiding/showing the tree_column->window; if this window could exist
13043         before realization, then it's busted and needs fixing, we can't 
13044         create GDK resources pre-realization. Also, remove
13045         superfluous queue_resize(), since set_size() does that for us.
13046         (gtk_tree_view_column_set_col_type): check realization before 
13047         using tree_column->window
13048
13049         * gtk/gtktreedatalist.c: fix filename in copyright notice
13050
13051 2000-12-31  Havoc Pennington  <hp@pobox.com>
13052
13053         * gtk/gtktextview.c: Rearrange all the
13054         scroll-while-dragging-or-selecting code to be different, not
13055         necessarily better. ;-)
13056         (gtk_text_view_scroll_to_mark): Change this
13057         function to take within_margin as a fraction instead of a pixel
13058         value, and to take alignment arguments (indicating where to align 
13059         the mark inside the visible area)
13060         
13061         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
13062         to GtkObject
13063
13064         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
13065         behavior so that offsets past the end of the line are not 
13066         allowed, and an offset equal to the line length moves the iterator
13067         to the next line
13068         (gtk_text_iter_set_line_index): make parallel change
13069         (gtk_text_iter_get_bytes_in_line): add this function
13070         
13071         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
13072         of byte indexes off the end of the line; byte index at the end of
13073         the line now returns FALSE and doesn't fill in the requested
13074         values, byte index past the end of the line is an error.  Also,
13075         don't allow -1 offset anymore, since its meaning is unclear.
13076
13077         This change exposes some bug in visual cursor motion, where we
13078         end up with a huge invalid byte index; needs fixing. Symptom of 
13079         bug is a crash when you hit up arrow.
13080         
13081         (_gtk_text_line_char_locate): match the change to byte_locate
13082
13083         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
13084         from start of line properly. fixes bug reported by Mikael
13085         Hermansson where backspace would delete all text before the
13086         cursor.
13087
13088 2000-12-30  Tor Lillqvist  <tml@iki.fi>
13089
13090         * gdk/win32/gdkwindow-win32.c
13091         (gdk_window_impl_win32_get_visible_region): New function, as in
13092         the X11 backend.
13093         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
13094         instead of duplicating the same code here.
13095
13096         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
13097         GDK_COLORMAP macro.
13098
13099         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
13100         destroy function.
13101         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
13102         access that.
13103
13104         * gtk/gtk.def: Update.
13105
13106         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
13107
13108 2000-12-30  Havoc Pennington  <hp@pobox.com>
13109
13110         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
13111         colormap on input only windows, to avoid special cases all over
13112         the code for these windows.
13113
13114 2000-12-26  Tor Lillqvist  <tml@iki.fi>
13115
13116         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
13117         we are on a palettized display ("PseudoColor" in X11), as the code
13118         for that doesn't work anyway, and never has.
13119
13120 2000-12-22  Alexander Larsson  <alexl@redhat.com>
13121
13122         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
13123         Don't use isprint() for chars > 255.
13124
13125 2000-12-21  Havoc Pennington  <hp@redhat.com>
13126
13127         * tests/testtreeview.c: more work
13128
13129 2000-12-21  Alexander Larsson  <alexl@redhat.com>
13130
13131         * docs/README.linux-fb:
13132         Update the docs to the new pangoft2 way.
13133
13134 2000-12-21  Alexander Larsson  <alexl@redhat.com>
13135
13136         * configure.in:
13137         For linux-fb get the pangoft2 cflags and libs. This needs a recent
13138         pango version.
13139         Remove modules/linux-fb/Makefile.
13140
13141         * gdk/linux-fb/gdkdrawable-fb2.c:
13142         Render glyphs using freetype.
13143
13144         * gdk/linux-fb/gdkfb.h:
13145         Add new fb-specific functions needed for managing windows.
13146
13147         * gdk/linux-fb/gdkmain-fb.c:
13148         Remove gdk_font_init/fini() calls.
13149
13150         * gdk/linux-fb/gdkpango-fb.c:
13151         Remove old implementation. Use pangoft2 instead.
13152
13153         * gdk/linux-fb/gdkprivate-fb.h:
13154         Remove PangoFBFont and related stuff.
13155
13156         * gdk/linux-fb/gdkwindow-fb.c:
13157         Implement drawable->get_visible_region.
13158         Implement support for _gdk_window_set_child_handler () and
13159         _gdk_window_get_decorations().
13160
13161         * modules/Makefile.am:
13162         Remove linux-fb subdir.
13163
13164         * modules/linux-fb/*:
13165         Removed all.
13166         
13167 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
13168
13169         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
13170         calls, as they are no longer needed.
13171
13172         * gtk/gtktreemodelsort.c: Fix up the comparison code.
13173         
13174         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
13175         figure out how to emit a signal on an interface.
13176
13177 2000-12-20  Havoc Pennington  <hp@redhat.com>
13178
13179         * tests: new directory to contain tests, gtk/test* should move
13180         here sometime (with appropriate on-cvs-server hackery)
13181
13182         * tests/testtreeview.c, tests/Makefile.am: a test
13183         
13184         * configure.in (AC_OUTPUT): add tests/Makefile
13185
13186         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
13187         and "invisible_set" which were missing
13188
13189         * gtk/gtkrbtree.h: some cheesy indentation fix
13190         
13191 2000-12-20  Alexander Larsson  <alexl@redhat.com>
13192
13193         * gtk/gtkinvisible.c (gtk_invisible_realize):
13194         Attach the style to the window so that the style it is not
13195         leaked when unrealizing the window.
13196
13197 2000-12-18  Havoc Pennington  <hp@redhat.com>
13198
13199         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
13200         begin/end user action where appropriate
13201         (gtk_text_view_commit_handler): add begin/end user action
13202
13203         * gtk/gtktextbuffer.c: add begin/end user action signals, and
13204         bracket interactive operations with begin/end user action pair.
13205         
13206         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
13207         "interactive" arg from insert_text and delete_text signals.
13208         Add begin_user_action, end_user_action signals
13209         (gtk_text_buffer_begin_user_action): 
13210         (gtk_text_buffer_end_user_action): New functions to delimit 
13211         a user-visible action
13212
13213         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
13214         signals.
13215         
13216 2000-12-18  Havoc Pennington  <hp@redhat.com>
13217
13218         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
13219         was pretty non-working.
13220
13221         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
13222         by passing the length to g_utf8_validate().
13223
13224 2000-12-16  Havoc Pennington  <hp@pobox.com>
13225
13226         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
13227         Port to GObject, can go back in gdk-pixbuf after setting up 
13228         a gdk-pixbuf-marshal.h header over there.
13229
13230         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
13231         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
13232         args
13233         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
13234         set
13235         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
13236         here, do it when we create the buttons later
13237         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
13238         (gtk_tree_view_map): paranoia checks that column->button is shown 
13239         and unmapped
13240         (gtk_tree_view_size_request): only request visible children.
13241         Move header size calculation in here, for cleanliness, and 
13242         to maintain invariants for child widgets if we eventually 
13243         let users set different children inside the buttons
13244         (gtk_tree_view_map_buttons): factor out code to map buttons,
13245         since it was being called several times
13246         (gtk_tree_view_size_allocate_buttons): move_resize the drag
13247         windows instead of just moving them; their height may change 
13248         if we allow random widgets in there, or the theme changes.
13249         (gtk_tree_view_size_allocate): move button size allocation 
13250         above emitting the scroll signals, to ensure a sane state when we
13251         hit user code
13252         (gtk_tree_view_button_release): remove queue_resize after
13253         tree_view_set_size(), set_size() will handle any resize queuing
13254         that's needed
13255         (gtk_tree_view_focus_in): just queue a draw, don't fool with
13256         draw_focus goo
13257         (gtk_tree_view_focus): use gtk_get_current_event() and
13258         gdk_event_get_state()
13259         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
13260         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
13261         semicolon
13262         (gtk_tree_view_create_button): show the button here
13263         (gtk_tree_view_button_clicked): actually emit the clicked signal
13264         on the column
13265         (_gtk_tree_view_set_size): return right away if the size is
13266         unchanged, as a cheesy optimization
13267         (gtk_tree_view_setup_model): rename set_model_realized to 
13268         setup_model to match the flag that indicates whether we've 
13269         called it
13270         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
13271         exist, because set_scroll_adjustment does that and it shouldn't
13272         matter what order you call these in
13273         (gtk_tree_view_get_vadjustment): ditto
13274         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
13275         for paranoia
13276         (gtk_tree_view_set_headers_visible): call
13277         gtk_tree_view_map_buttons() instead of using cut-and-paste code
13278         (gtk_tree_view_append_column): clarify whether the return value
13279         is the count of columns before or after, and do the increment 
13280         separately from the return statement so you can tell from the code.
13281         (gtk_tree_view_remove_column): ditto
13282         (gtk_tree_view_insert_column): ditto
13283         (gtk_tree_view_get_column): remove g_return_if_fail for columns
13284         outside the existing range, the docs say that outside-range
13285         columns are allowed, so we handle them as documented. (Presumably
13286         this allows a nice loop with column != NULL as test.)
13287         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
13288         mean (left/right/center etc.).
13289         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
13290         (gtk_tree_view_expand_row): add docs
13291         (gtk_tree_view_collapse_row): add docs
13292
13293         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
13294         function to emit the clicked signal on a column
13295         
13296         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
13297         state of an event
13298         (gdk_event_get_time): don't treat GDK_SCROLL 
13299         as a button event, remove default case from switch so gcc 
13300         will whine if we don't explicitly handle all event types
13301
13302         * gtk/gtktreeselection.h: added some FIXME 
13303         
13304         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
13305         "columns" to "n_columns" and "column" to "columns" for clarity
13306
13307 2000-12-16  Havoc Pennington  <hp@pobox.com>
13308         
13309         * gtk/gtktextiter.c: General cleanup of the log attr iteration
13310         stuff. This should make e.g. the delete key work again in the
13311         text widget...
13312         (gtk_text_iter_forward_cursor_positions): handle negative count
13313         (gtk_text_iter_backward_cursor_positions): handle negative count
13314         (gtk_text_iter_forward_word_ends): handle negative count
13315         (gtk_text_iter_backward_word_starts): handle negative count
13316
13317         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
13318         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
13319         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
13320         GObject. No doubt will cause breakage.
13321
13322         * demos/gtk-demo/textview.c: remove hacks around
13323         non-GObject-ification of the text objects
13324
13325         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
13326         the text tag
13327         
13328 2000-12-14  Havoc Pennington  <hp@pobox.com>
13329
13330         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
13331         that we have Xrender
13332
13333 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
13334
13335         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
13336         Add two virtualized functions gdk_drawable_get_clip_region - to
13337         get the clip region when drawing.
13338         
13339         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
13340         use invalidate_region.
13341
13342         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
13343         region.
13344
13345         * acconfig.h configure.in: Check for Xft. For now, assume
13346         that if Xft is found, Pango was compiled with Xft support
13347         as well.
13348
13349         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
13350         gdk_colormap_query_color().
13351         
13352         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
13353         with Xft if appropriate.
13354
13355         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
13356         a pangoxft context if we have XFT and the environment
13357         variable GD_USE_XFT is set.
13358         
13359         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
13360         and also possibly an XftDraw structure.
13361
13362         * gtk/gtkfontsel.c: Handle the case where the font from the
13363         style doesn't match any of the fonts a bit better.
13364         
13365         * gtk/testgtk.c: Add tabs between directional segments for
13366         hebrew/arabic test. (Not really necessary, just a little
13367         prettier.)
13368
13369 2000-12-14  Havoc Pennington  <hp@redhat.com>
13370
13371         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
13372         reading a file
13373
13374 2000-12-14  Havoc Pennington  <hp@redhat.com>
13375
13376         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
13377         unused call to get_last_line()
13378
13379         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
13380         here until boxed is working (and maybe after that - we should
13381         really not gratuitously break old code)
13382
13383         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
13384         specific types for font_desc and tabs args, move them to
13385         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
13386         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
13387
13388         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
13389         use GTK_TYPE_POINTER for signal signatures as a hack-around
13390
13391         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
13392         PangoTabArray
13393
13394         * gtk/gtktextlayout.c (line_display_iter_to_index): 
13395         make static
13396         (line_display_index_to_iter): make static
13397
13398         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
13399         to marshal a string not a boxed
13400
13401         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
13402
13403         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
13404         since the UTF-8 isn't validated yet
13405
13406         * gtk/gtktextsegment.c (char_segment_check_func): don't require
13407         lines to end in '\n'
13408         
13409         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
13410         forward_to_delimiters, and grapheme boundaries
13411         (gtk_text_view_delete_from_cursor): properly handle non-newline
13412         delimiters, and grapheme boundaries
13413
13414         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
13415         to gtk_text_iter_forward_to_delimiters, and make it work properly
13416         if empty lines end with a character other than '\n'
13417
13418         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
13419         position
13420
13421 2000-12-15  Tor Lillqvist  <tml@iki.fi>
13422
13423         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
13424
13425         * gtk/gtk.def
13426         * gdk/gdk.def: Update.
13427
13428         * gdk/win32/gdkmain-win32.c
13429         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
13430         gdkmain-win32.c here.
13431
13432         * gdk/win32/makefile.mingw.in (all): No need to make
13433         gdk-win32res.o here, the makefile one step up will call us to make
13434         it.
13435
13436         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
13437         gdkkeys-win32.
13438
13439         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
13440
13441         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
13442         call to g_source_add().
13443
13444         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
13445         leak. Thanks to Andreas Kemnade.
13446
13447 2000-12-13  Havoc Pennington  <hp@pobox.com>
13448
13449         * gtk/gtktextbtree.h: Remove double _ in front of some functions
13450
13451         * gtk/gtktext*.[hc]: update accordingly
13452         
13453 2000-12-13  Havoc Pennington  <hp@pobox.com>
13454
13455         * gtk/gtktextbtree.h: Put _ in front of every function in this 
13456         header file
13457
13458         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
13459
13460 2000-12-13  Alex Larsson  <alexl@redhat.com>
13461
13462         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
13463         Add support for ps2 intellimouse.
13464
13465         * gdkkeyboard-fb.c:
13466         Move shift-F1 repaint handling to xlate handler only.
13467         
13468         * docs/README.linux-fb:
13469         Add imps2 to docs.
13470         Document the new refresh keys.
13471         
13472 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
13473
13474         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
13475
13476         * gtk/gtkbox.c: change property types from (u)long to (u)int for
13477         ::position and ::padding.
13478
13479         * gtk/gtkcontainer.c: make ::border_width an INT property.
13480
13481         * gtk/gtkpacker.c: make ::position an INT property.
13482
13483         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
13484         guard against NULL h/v scrollbars, since this is used at construction
13485         time.
13486
13487         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
13488         internal gtk_clist_constructor().
13489
13490         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
13491         gtk_ctree_constructor().
13492
13493         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
13494         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
13495
13496         * docs/reference/Makefile.am: fun stuff, disabled docs generation
13497         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
13498
13499         * gtk/gtkwidget.[hc]:
13500         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
13501         and gtk_widget_get().
13502         (gtk_widget_new): use g_object_new_valist().
13503         (gtk_widget_set): use g_object_set_valist().
13504
13505         * gtk/gtkobject.[hc]:
13506         removed gtk_object_arg_get_info(), gtk_object_getv(),
13507         gtk_object_query_args(), gtk_object_newv(),
13508         gtk_object_class_add_signals(),
13509         gtk_object_class_user_signal_new(),
13510         gtk_object_class_user_signal_newv(),
13511         gtk_object_arg_set(), gtk_object_arg_get(),
13512         gtk_object_args_collect(),
13513         gtk_object_default_construct(),
13514         gtk_object_constructed(),
13515         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
13516         removed nsignals, signals and n_args members from GtkObjectClass.
13517         (gtk_object_new): use g_object_new_valist().
13518         (gtk_object_set): use g_object_set_valist().
13519         (gtk_object_get): use g_object_get_valist().
13520         
13521         * gtk/gtkcompat.h: define gtk_object_default_construct().
13522         
13523         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
13524         g_object_new().
13525
13526         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
13527         fucntions, cleaned up method assignments (make sure your structures
13528         are setup properly before calling out). removed all GTK_CONSTRUCTED
13529         hacks ;)
13530
13531 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
13532
13533         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
13534         off-by-one error in checks. (Dave Lambert)
13535
13536 2000-12-12  Alexander Larsson  <alexl@redhat.com>
13537
13538         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
13539         Don't free gdk_fb_keyboard twice.
13540
13541 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
13542
13543         * gtk/testgtk.c:
13544         (create_tooltips): 
13545         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
13546         use GObject swapped_signal:: properties instead.
13547
13548         * gtk/gtkcellrenderertoggle.c: 
13549         * gtk/gtkcellrenderertextpixbuf.c: 
13550         * gtk/gtkcellrenderertext.c: 
13551         * gtk/gtkcellrendererpixbuf.c: 
13552         * gtk/gtkcellrenderer.c:
13553         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
13554         missing warnings for invalid property ids, install properties
13555         with g_object_class_install_property() now.
13556         
13557         * gtk/gtksignal.c:
13558         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
13559         
13560 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
13561         
13562         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
13563         to determine if a window is the focus widget within
13564         its toplevel.
13565
13566         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
13567         to be boolean.
13568
13569         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
13570         of the case where the container CAN_FOCUS to here instead
13571         of having it in each individual move-the-focus place.
13572
13573         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
13574         focusing to be geometric in a much more obvious sense. Arrowing
13575         around is still non-intuitive because it isn't perfect and
13576         because entries, etc, grab the arrow keys, but it at least
13577         usually will do what you expect now.
13578         
13579         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
13580         file.
13581
13582         * gtk/gtknotebook.c: Change tabs to be a single item in
13583         the focus chain. Make movement of focus on tabs with arrow
13584         keys wrap around.
13585         
13586         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
13587         CHECK_FIND_CHILD macro to give informative error messages
13588         instead of silent returns.
13589
13590         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
13591         flag since we handle GdkReturn on the tabs.
13592
13593         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
13594         windows rather than sending expose events directly.
13595
13596         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
13597         definition for GtkNotebookPage into .c file, since it is private.
13598
13599         * gtk/testgtk.c (create_notebook): Add option for 
13600         testing borderless notebook.
13601
13602         * gtk/testgtk.c (page_switch): Removed egregious poking
13603         around in GTK+ internals.
13604
13605         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
13606
13607         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
13608         properly through gtk_clist_focus. Make the title headers a
13609         single item in the tab-focus chain, and make left-right wrap
13610         around.
13611
13612         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
13613         focus method so that wrapping around works properly.
13614
13615         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
13616         that is handled for the widget now. 
13617
13618 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
13619
13620         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
13621         widgets as TOPLEVEL.
13622
13623         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
13624         TOPLEVEL widgets are containers.
13625
13626         * gtk/gtkinvisible.h: Remove useless include.
13627
13628 2000-12-11  Havoc Pennington  <hp@redhat.com>
13629
13630         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
13631         Handle chopping off \r\n and 0x2029 in addition to \n before
13632         passing to PangoLayout
13633
13634         * gtk/gtkimcontextsimple.c
13635         (gtk_im_context_simple_get_preedit_string): 
13636         return an empty string if no match is pending
13637
13638         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
13639         assertion that the returned preedit string was sane
13640
13641         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
13642         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
13643         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
13644
13645 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
13646
13647         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
13648         Fix up finalizer to chain to its parent.
13649
13650 2000-12-11  Alexander Larsson  <alexl@redhat.com>
13651
13652         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
13653         Clearified the difference between the keyboard types. Wrote a note
13654         about the magic sysrq key to get out of raw mode.
13655
13656 2000-12-09  James Henstridge  <james@daa.com.au>
13657
13658         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
13659         member to hold masks for detecting the start of a protocol packet.
13660         (mouse_devs): add packet start masks for ps2 and ms device types.
13661         Left the mask for fidmour blank, as I have no idea what it should
13662         be.
13663         (handle_mouse_io): skip bytes until we get to the start of a
13664         packet.  My Logitech mouse seems to be passing an extra NULL pad
13665         byte, and GPM does a similar thing here.
13666         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
13667         this is the ms mouse driver.
13668         (gdk_fb_mouse_ms_packet): fix up button handling, which was
13669         completely broken except for button1.  It was checking the wrong
13670         bit in the packet for the status of the right mouse button, and
13671         wrongly assuming right == button2 rather than 3.  I fixed that and
13672         also added support for middle button (button2).
13673
13674 2000-12-08  Havoc Pennington  <hp@redhat.com>
13675
13676         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
13677         that cause a segfault on text insertion
13678
13679         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
13680         warning
13681
13682         * gtk/gtktextiter.c (test_log_attrs): use
13683         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
13684
13685         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
13686         Get log attrs for a line, using a cache stored on the buffer
13687         
13688         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
13689         reported by Jeff Franks
13690
13691 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
13692
13693         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
13694         /dev/ttyS0 -> /dev/mouse
13695
13696 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
13697
13698         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
13699         Added dummy gdk_fontset_load.
13700
13701 2000-12-08  Alexander Larsson  <alexl@redhat.com>
13702
13703         * docs/README.linux-fb:
13704         * docs/Makefile.am:
13705         Initial GtkFB docs.
13706         
13707         * gdk/linux-fb/Makefile.am:
13708         Define GDK_DATA_PREFIX.
13709
13710         * gdk/linux-fb/gdkmain-fb.c:
13711         Fix typo.
13712         Change default display to /dev/fb0.
13713
13714         * gdk/linux-fb/gdkpango-fb.c:
13715         Add $(prefix)/share/fonts/ to font path.
13716         
13717 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
13718
13719         * gdk/linux-fb/gdkkeyboard-fb.c:
13720         New file containing the abstracted keyboard driver. Most code
13721         taken from gdkinput-ps2.c
13722
13723         * gdk/linux-fb/gdkinput-ps2.c:
13724         Removed file.
13725         
13726         * gdk/linux-fb/Makefile.am:
13727         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
13728
13729         * gdk/linux-fb/gdkcolor-fb.c:
13730         display->fb was renamed to display->fb_fd.
13731
13732         * gdk/linux-fb/gdkcursor-fb.c:
13733         gdk_mouse_get_info -> gdk_fb_mouse_get_info
13734
13735         * gdk/linux-fb/gdkinput.c:
13736         Moved gdk_input_init here from gdkinput-ps2.c
13737
13738         * gdk/linux-fb/gdkmain-fb.c:
13739         display->fb was renamed to display->fb_fd.
13740         Now the tty and the console is opened here instead
13741         of in the keyboard driver. Also check GDK_VT to see what
13742         tty to open.
13743         Move gdk_beep () here from gdkinput-ps2.c
13744         gdk_mouse_get_info -> gdk_fb_mouse_get_info
13745
13746         * gdk/linux-fb/gdkmouse-fb.c:
13747         Add header.
13748         gdk_mouse_get_info -> gdk_fb_mouse_get_info
13749         Return correct keyboard modifiers.
13750         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
13751
13752         * gdk/linux-fb/gdkprivate-fb.h:
13753         Add tty and vt info to display.
13754         Add orignal modeinfo storage to display
13755         Update global functions
13756
13757         * gdk/linux-fb/gdkwindow-fb.c:
13758         Added gdk_fb_window_find_focus().
13759         gdk_mouse_get_info -> gdk_fb_mouse_get_info
13760
13761 2000-12-07  Havoc Pennington  <hp@pobox.com>
13762
13763         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
13764         function, noticed by Alex
13765
13766 2000-12-06  Elliot Lee  <sopwith@redhat.com>
13767
13768         * configure.in: Detect freetype properly
13769
13770         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
13771         above.
13772
13773 2000-12-06  Alexander Larsson  <alexl@redhat.com>
13774
13775         * gdk/linux-fb/Makefile.am:
13776         Add gdkmouse-fb.c
13777         
13778         * gdk/linux-fb/gdkmouse-fb.c:
13779         New file. Abstracted the mouse drivers a bit.
13780
13781         * gdk/linux-fb/gdkcursor-fb.c:
13782         The cursor hide/show functions was moved here from gdkinput-ps2.c.
13783
13784         * gdk/linux-fb/gdkinput-ps2.c:
13785         Removed old mouse handling code. Moved cursor handling code
13786         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
13787         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
13788         gdk_mouse_get_info.
13789
13790         * gdk/linux-fb/gdkmain-fb.c:
13791         Pass NULL pointers for x,y in gdk_mouse_get_info call.
13792
13793         * gdk/linux-fb/gdkprivate-fb.h:
13794         Removed public gdk_fb_find_common_ancestor, added and renamed
13795         functions for the new mouse handling code.
13796
13797         * gdk/linux-fb/gdkwindow-fb.c:
13798         Moved gdk_fb_window_send_crossing_events here. added global
13799         variable gdk_fb_window_containing_pointer. made
13800         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
13801         renamed to gdk_mouse_get_info.
13802
13803 2000-12-06  Alexander Larsson  <alexl@redhat.com>
13804
13805         * gdk/linux-fb/gdkevents-fb.c:
13806         Update to match latest gmain/gsource changes.
13807
13808         * gdk/linux-fb/gdkinput-ps2.c:
13809         Bogus gdk_keymap_get_entries_for_keycode implementation so that
13810         it links. Will be implemented later.
13811
13812 2000-12-03  Havoc Pennington  <hp@pobox.com>
13813
13814         * gdk/Makefile.am: add gdkkeys.[hc]
13815
13816         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
13817         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
13818
13819         * acconfig.h, configure.in: add checks and command line options
13820         for XKB
13821
13822         * gdk/x11/gdkkeys-x11.c: Implement the above functions
13823         
13824         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
13825         and group in the key event
13826
13827         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
13828         field with the low-level hardware key code, and a group
13829         field with the keyboard group
13830
13831         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
13832         and declare a couple globals used for keymap handling
13833         
13834         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
13835         hold down Shift-Control and type a hex number to get a Unicode 
13836         character corresponding to the hex number
13837         (gtk_im_context_simple_get_preedit_string): Fix cursor position
13838         (return bytes not chars)
13839
13840 2000-12-05  Elliot Lee  <sopwith@redhat.com>
13841
13842         * gdk/gdkcolor.h: Make GdkColor specify element sizes
13843         to avoid waste on 64-bit platforms.
13844
13845 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
13846
13847         * INSTALL: Fix link to PNG home, remove reference
13848         to fribidi.
13849
13850         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
13851         
13852         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
13853         tested.)
13854
13855         * gtk/gtkcheckmenuitem.c: Permanently turn on
13856         always_show_toggle.
13857
13858         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
13859         be NULL. (Vladimir Klebanov, #26545)
13860
13861         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
13862         some signed/unsigned comparison problems. (#6510,
13863         David Kaelbling)
13864
13865         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
13866         return type to boolean (Oskar Liljeblad, #18648)
13867
13868 2000-12-05  Alexander Larsson  <alexl@redhat.com>
13869
13870         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
13871         Remove bogus colormap setting.
13872
13873 2000-12-05  Alexander Larsson  <alexl@redhat.com>
13874
13875         * gdk/linux-fb/gdkcolor-fb.c:
13876         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
13877
13878         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
13879         Must set colormap.
13880         
13881 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
13882
13883         * docs/tutorial/gtk-tut.sgml: DND updates
13884
13885 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
13886
13887         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
13888         Remove old debug g_warning().
13889         (gdk_fb_draw_drawable): The src argument can be either a wrapper
13890         or an implementation, just pass the implementation to draw_drawable_2.
13891         
13892         * gdk/linux-fb/gdkprivate-fb.h:
13893         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
13894
13895         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
13896         clear and invalidate area when window is destroyed.
13897         (send_map_events): Remove old commented out code.
13898
13899 2000-12-05  Alexander Larsson  <alexl@redhat.com>
13900
13901         * gdk/linux-fb/gdkpango-fb.c:
13902         Use italic instead of oblique in font aliases.
13903         
13904         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
13905         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
13906         other unsupported functions.
13907
13908 2000-12-04  Havoc Pennington  <hp@redhat.com>
13909
13910         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
13911
13912         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
13913
13914         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
13915
13916         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
13917         hack to avoid infinite loops (synthetic expose event) - 
13918         Owen has more appropriate fixes in a branch he'll check in later.
13919
13920         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
13921         separator, CR, and CRLF as line ends
13922
13923         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
13924         into lines using pango_find_paragraph_boundary(); other bits of
13925         the widget are still going to be broken if the boundary isn't '\n'
13926         though
13927
13928 2000-12-04  Alexander Larsson  <alexl@redhat.com>
13929
13930         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
13931         multiply.
13932
13933         * gdk/linux-fb/gdkpango-fb.c:
13934         Copied some 26.6 scaling macros from pango to clean up the rounding.
13935         (pango_fb_font_get_glyph_info): Correct sign on x value.
13936
13937         * gdk/linux-fb/gdkprivate-fb.h:
13938         Removed unreferenced external functions.
13939
13940         * modules/linux-fb/Makefile.am: Use ` instead of '.
13941
13942         * modules/linux-fb/basic.c:
13943         Remove dead code. In particular the dummy lang engine which broke all
13944         pango layouts in GtkFB. Don't include tables-big.i anymore.
13945
13946         * modules/linux-fb/tables-big.i:
13947         Upgrade to latest version from pango. Left for reference, basic_ranges
13948         moved to basic.c.
13949         
13950 2000-12-04  Havoc Pennington  <hp@redhat.com>
13951
13952         Fix bugs Alex found:
13953         
13954         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
13955         to "draw"
13956
13957         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
13958
13959         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
13960
13961         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
13962         implementation in here, apparently the expose() implementation was
13963         dead code.
13964
13965 2000-12-04  Alexander Larsson  <alexl@redhat.com>
13966
13967         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
13968         Return positive descent.
13969
13970 2000-12-02  Havoc Pennington  <hp@pobox.com>
13971
13972         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
13973         method and signal
13974         
13975         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
13976         calls gdk_window_process_updates() to push the exposes through
13977         (gtk_widget_class_init): No more draw signal, no
13978         gtk_widget_real_draw()  
13979         
13980         * gtk/gtkbin.c (gtk_bin_draw): remove
13981
13982         * gtk/gtkbox.c (gtk_box_draw): remove
13983
13984         * gtk/gtkbutton.c (gtk_button_draw): remove
13985
13986         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
13987
13988         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
13989
13990         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
13991
13992         * gtk/gtkclist.c (gtk_clist_draw): remove
13993
13994         * gtk/gtkentry.c (gtk_entry_draw): remove
13995
13996         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
13997
13998         * gtk/gtkfixed.c (gtk_fixed_draw): remove
13999
14000         * gtk/gtkframe.c (gtk_frame_draw): remove
14001
14002         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
14003
14004         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
14005
14006         * gtk/gtklayout.c (gtk_layout_draw): remove
14007
14008         * gtk/gtklist.c (gtk_list_draw): remove
14009
14010         * gtk/gtklistitem.c (gtk_list_item_draw): remove
14011
14012         * gtk/gtkmenu.c (gtk_menu_draw): remove
14013
14014         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
14015
14016         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
14017
14018         * gtk/gtknotebook.c (gtk_notebook_draw): remove
14019
14020         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
14021
14022         * gtk/gtkpacker.c (gtk_packer_draw): remove
14023
14024         * gtk/gtkrange.c (gtk_range_draw): remove
14025
14026         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
14027
14028         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
14029
14030         * gtk/gtktable.c (gtk_table_draw): remove
14031
14032         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
14033
14034         * gtk/gtktext.c (gtk_text_draw): remove
14035
14036         * gtk/gtktextview.c (gtk_text_view_draw): remove
14037
14038         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
14039
14040         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
14041
14042         * gtk/gtktree.c (gtk_tree_draw): remove
14043
14044         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
14045
14046         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
14047
14048         * gtk/gtkviewport.c (gtk_viewport_draw): remove
14049
14050         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
14051
14052         * gtk/gtkvscale.c (gtk_vscale_draw): remove
14053
14054         * gtk/gtkwindow.c (gtk_window_draw): remove
14055
14056 2000-20-01  Anders Carlsson  <andersca@gnu.org>
14057
14058         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
14059         a GtkToggleButton is both insensitive and active, it was being
14060         drawn by the GtkButton draw handler which doesn't check the
14061         state. Now it's calling gtk_toggle_button_paint instead.
14062         
14063 2000-12-01  Havoc Pennington  <hp@redhat.com>
14064
14065         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
14066         dangling pointers to the appearance attributes from the 
14067         line display
14068
14069         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
14070         width/height to mean "full width/height of drawable"
14071
14072         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
14073         click to select word/line
14074         
14075         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
14076         when getting log attrs. Get a slice, so that pixmaps and stuff
14077         are properly handled.
14078
14079         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
14080         paste into the selection (replaces selection now, previously
14081         crashed or added to selection). Reveals longstanding btree bug -
14082         select multiple lines, middle-click on the selection, boom. This
14083         isn't related to my changes though.
14084
14085         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
14086         PangoLogAttrs changes
14087         (gtk_entry_move_backward_word): ditto
14088
14089         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
14090         functions return bool whether the iter moved onto a
14091         dereferenceable position.
14092  
14093         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
14094         functions for motion in terms of display lines.
14095
14096         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
14097         get the buffer a mark is inside
14098         
14099 2000-12-01  Alexander Larsson  <alexl@redhat.com>
14100
14101         * gdk/linux-fb/Makefile.am:
14102         * modules/linux-fb/Makefile.am:
14103         Freetype 2 final uses freetype-config
14104
14105         * gdk/linux-fb/gdkpango-fb.c:
14106         Upgrade to use Freetype 2 final.
14107         More flexible support for font aliases, this also fixes a bug with
14108         GtkFontSelector, as the aliases must be visible in the font/family list,
14109         or GtkFontSelector reads uninitialized memory.
14110
14111 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
14112
14113         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
14114         XGetIMValues to properly terminate variable argument list, and do
14115         NULL return check for ic_values and xim_styles.
14116
14117         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
14118         Restore preedit state after XmbResetIC().
14119         
14120         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
14121         XvaCreateNestedList() should take XvaNestedList, but not
14122         XvaNestedList*.
14123
14124         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
14125         preedit_draw_callback, preedit_caret_callback): Match
14126         "preedit-changed" signal name to "preedit_changed" to be
14127         consistent to the spec.
14128
14129         * gtk/gtkimcontextsimple.c (check_table):
14130         Match "preedit-changed" to "preedit_changed" to be consistent
14131         to the spec.
14132
14133 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
14134
14135         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
14136         gc->clip_region == NULL>
14137
14138 2000-11-30  Tor Lillqvist  <tml@iki.fi>
14139
14140         Changes by Hans Breuer:
14141         
14142         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
14143         Dont't use negative width and height as max_hints. This fixes
14144         Owen's recent testgtk changes for win32.
14145
14146         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
14147         gdk_win32_hdc_release): These are exported and may be called with
14148         other drawable types than our GdkDrawableImplWin32 (?).
14149
14150         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
14151         so always #define USE_BACKING_STORE.
14152
14153         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
14154         of printf for debugging output.
14155
14156         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
14157         
14158         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
14159
14160         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
14161         declaration.
14162
14163         * gtk/gtktexttypes.h: Ditto.
14164
14165         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
14166         (GDK_VoidSymbol) also if in case of arg check failure.
14167
14168         * gtk/gtkimcontextsimple.c
14169         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
14170         position to the pointer, but to the variable it points to.
14171
14172         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
14173
14174         * gtk/gtk.def: Updates.
14175
14176 2000-11-29  Elliot Lee  <sopwith@redhat.com>
14177
14178         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
14179         GTK_TYPE_TREE_MODEL.
14180
14181 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14182
14183         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
14184         Set the size of the font from the description.
14185         (gdk_text_width): Gross hack that calculates the width
14186         of text by text_length * size/2. This is necessary because
14187         GtkLabel does some ugly gtk_string_width call to calculate
14188         an good size.
14189         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
14190
14191 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
14192
14193         * docs/tutorial/gtk-tut.sgml: DND updates
14194
14195 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14196
14197         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
14198         If you pass width or height == 0 to gdk_window_clear_area they
14199         should be calculated from the window size.
14200
14201 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14202
14203         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
14204         a grab, but no grab-cursor, use the cursor from the grabbed
14205         window. (gdk_fb_window_send_crossing_events): Send normal
14206         enter/leave notifications if grab and owner_events == TRUE.
14207
14208 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14209
14210         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
14211         Do implicit button grabs, even if the window doesn't
14212         want the event.
14213         (gdk_fb_window_send_crossing_events): If there is a
14214         grab, only the grabbed window gets normal enter/leave
14215         notifications. On ungrab go from grabbed window to current.
14216         Don't send any notification to b when propagating from c -> b.
14217         If setting a grab on window, don't set prev_window.
14218         (handle_mouse_input): Send enter/leave events to the window the
14219         mouse is over, not the grabbed one.
14220         
14221 2000-11-28  Elliot Lee  <sopwith@redhat.com>
14222
14223         * gdk/gdkregion-generic.c: Zap warning.
14224         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
14225         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
14226
14227 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
14228
14229         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
14230         The cursor should be hidden if it is part of either the
14231         source or destination region. Not only if it is in both.
14232         (gdk_window_set_transient_for): Silence warnings.
14233
14234 2000-11-28  Alexander Larsson  <alexl@redhat.com>
14235
14236         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
14237         The default mode in X is Pie Arcs, therefore that is
14238         what Gtk+ uses.
14239
14240 2000-11-28  Alexander Larsson  <alexl@redhat.com>
14241
14242         * gdk/linux-fb/gdkinput-ps2.c:
14243         Implement correct EnterNotify/LeaveNotify:
14244         (gdk_fb_window_send_crossing_events): New function that sends
14245         all GdkCrossingEvents from the last mouse-window to the specified
14246         destination.
14247         (gdk_fb_window_visibility_crossing): Removed function.
14248         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
14249         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
14250         instead of gdk_window_get_pointer() for better readability.
14251
14252         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
14253         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
14254
14255         * gdk/linux-fb/gdkprivate-fb.h:
14256         removed gdk_fb_window_visibility_crossing, added
14257         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
14258
14259         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
14260         New function that finds the least common ancestor of two windows.
14261         (gdk_window_show, gdk_window_hide):
14262         Use gdk_fb_window_send_crossing_events.
14263         (gdk_fb_window_move_resize): Send configure events to toplevel
14264         windows. Use gdk_fb_window_send_crossing_events.
14265
14266 2000-11-27  Havoc Pennington  <hp@redhat.com>
14267
14268         * gtk/gtkprivate.h (enum): Remove a trailing comma
14269
14270 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
14271
14272         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
14273         the "changed" callback of the adjustment.  We need to redraw the
14274         spin button's arrows when the adjustment's range changes.
14275         (adjustment_changed_cb): Draw the arrows.
14276         (gtk_spin_button_value_changed): Draw the arrows.
14277
14278 2000-11-23  Alexander Larsson  <alexl@redhat.com>
14279
14280         * gdk/linux-fb/gdkselection-fb.c:
14281         Initial selection implementation.
14282
14283         * gtk/gtkselection.c:
14284         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
14285         requestor in gtk_selection_request.
14286         
14287         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
14288         Added gdk_selection_property atom.
14289
14290         * gdk/linux-fb/gdkprivate-fb.h:
14291         Export _gdk_selection_window_destroyed.
14292         Removed mask_off_x/y from GdkCursorPrivateFB.
14293         Removed hbearing, added top, left to PangoFBGlyphInfo.
14294
14295         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14296         Call _gdk_selection_window_destroyed
14297         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
14298         the root window has been created.
14299         (static_dx_hack, static_dy_hack, compare_draw_rects,
14300         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
14301         in region. They are already sorted. Instead just traverse them in
14302         reverse if draw_direction < 0.
14303         
14304         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
14305         Double-clicks must be sent after the normal button_press.
14306         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
14307         
14308         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
14309         Pass _gdk_fb_screen_gc instead of NULL.
14310
14311         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
14312         Initialize gdk_selection_property.
14313         (gdk_event_make): Remove unused code.
14314
14315         * gdk/linux-fb/gdkcursor-fb.c:
14316         Make the pixmap for the cursor the same size as the mask. Also remove
14317         the mask_off_x/y fields in GdkCursorPrivateFB and combine
14318         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
14319         Now the whole cursor is visible.
14320
14321         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14322         Fix bug where xdest+height instead of ydest+height was used
14323         to calculate if the source and dest overlapped. This fixes the
14324         redraw bug when the main window in testgtk was scrolled when
14325         partially covered by a tall window.
14326         Copy rectangles in region in order depending on draw_direction.
14327         Also moved the draw_direction flipping of start_y and end_y into
14328         the gc functions, as this might not be what all of them want.
14329         (gdk_fb_draw_lines): Support dashed lines.
14330         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
14331         so that the text is positioned correctly (was 1 pixel high).
14332
14333         gdk/linux-fb/gdkgc-fb.c:
14334         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
14335         all lines were drawn a pixel to short. Also checked the default of
14336         the rest of the values, and they're the same as X now.
14337
14338         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
14339         Clean up pixel positioning of the glyphs. Just use bgy->top and
14340         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
14341         to all divisions to get correct rounding behaviour.
14342
14343         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
14344         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
14345         Moved start_y/end_y flip into draw_drawable implementations.
14346         Flip also x rendering when draw_direction < 0.
14347         Remove unneccesary multiply with draw_direction.
14348
14349 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
14350
14351         * docs/tutorial/gtk-tut.sgml:
14352           - get rid of gtk_toggle_button_toggled FUD
14353           - start DND section - needs work - based on:
14354                 http://wolfpack.twu.net/docs/gtkdnd/
14355
14356 2000-11-22  Alexander Larsson  <alexl@redhat.com>
14357
14358         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14359         Correct calculation of font metrics. Now GtkEntrys have sane
14360         size.
14361
14362 2000-11-22  Alexander Larsson  <alexl@redhat.com>
14363
14364         * gdk/gdktypes.h:
14365         Add new type GdkSpan
14366         
14367         * docs/reference/gdk/gdk-sections.txt,
14368         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
14369         gdk/gdkregion.h:
14370         Implement and document gdk_region_spans_intersect_foreach.
14371
14372         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
14373         Add new file gdkrender-fb.c which contains all core
14374         rendering code.
14375         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
14376         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
14377         (optimized rectangle fillers).
14378
14379         * gdk/linux-fb/gdkdrawable-fb2.c:
14380         Move all rendering code to gdkrender-fb.c.
14381         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
14382         Use the new span intersection functions in gdk_fb_fill_spans.
14383         gdk_fb_draw_rectangle() clips filled rectangles and calls
14384         gc->fill_rectangle with the result.
14385         gdk_fb_fill_spans() gets extra argument "sorted".
14386
14387         * gdk/linux-fb/gdkevents-fb.c:
14388         Remove unused includes and defines.
14389         New function gdk_fb_get_time() to get correct time for events.
14390
14391         * gdk/linux-fb/gdkinput-ps2.c:
14392         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
14393         Make sure to set the time of all events.
14394
14395         * gdk/linux-fb/gdkmain-fb.c:
14396         Use gdk_fb_get_time ().
14397
14398         * gdk/linux-fb/gdkprivate-fb.h:
14399         New virtual GC calls: fill_span & fill_rectangle.
14400         Export gdk_fb_get_time().
14401         gdk_fb_fill_spans() gets extra argument "sorted".
14402
14403         * gdk/linux-fb/mi*.c:
14404         Use GdkSpan instead of GdkRectangle.
14405         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
14406         from XFree 4 source)
14407         
14408 2000-11-22    <jrb@redhat.com>
14409
14410         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
14411         reversing the order in an if statement will do.  Doing so managed
14412         to make the treemodelsort half work.  Other half will follow after
14413         I get the insert function fully fixed.
14414
14415 2000-11-21  Elliot Lee  <sopwith@redhat.com>
14416         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
14417         more than 2 bits. Besides, I need to implement an evil hack. :)
14418
14419 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
14420
14421         * docs/tutorial/gtk-tut.sgml: minor corrections
14422
14423 2000-11-20  Jonathan Blandford <jrb@redhat.com>
14424         * gtk/gtktreemodelsort.h: Add convertion functions to let you
14425           convert to and from relative path's and iters.
14426
14427         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
14428           testing sorting functions a bit better.  Currently broken -- will
14429           fix in morning.
14430
14431 2000-11-20  Havoc Pennington  <hp@redhat.com>
14432
14433         * gtk/gtkwidget.c: Documented a bunch of functions in here
14434         (gtk_widget_realize): Warn if you try to realize
14435         a widget with no parent that isn't a toplevel
14436         (gtk_widget_intersect): return a gboolean
14437
14438 2000-11-20  Havoc Pennington  <hp@redhat.com>
14439
14440         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
14441         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
14442         scrolling to be implemented in GDK to finish. Also, right now
14443         we just size_allocate all children on every layout change,
14444         which is pretty lame. Test commented out of testtext.c, 
14445         until it works better.
14446
14447 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
14448
14449         * gdk/linux-fb/gdkdrawable-fb2.c:
14450         Removed unused arguments from gdk_fb_drawable_get_pixel().
14451
14452         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
14453         Renamed fidur specific mouse packet data in MouseDevice to
14454         generic. Used it in ps2 mouse handling code to avoid blocking
14455         reads.
14456
14457 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
14458
14459         * demos/gtk-demo/main.c: Changed to have the list become
14460         non-italic when the demo window is destroyed through an external
14461         event (like a close button).  Doing so found three bugs in the
14462         widget.
14463
14464         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
14465
14466         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
14467         we actually set the cell.
14468
14469         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
14470
14471         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
14472         free a leaked path.  Thanks memprof.
14473
14474 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
14475
14476         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
14477         off-by-one error when destroying allocated segments
14478         on failure. (Elliot)
14479
14480 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
14481
14482         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
14483         memleaks found by Evan Martin.
14484
14485 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
14486
14487         * Released 1.3.2
14488         
14489         * NEWS: Updates for 1.3.2
14490
14491 2000-11-17  Tor Lillqvist  <tml@iki.fi>
14492
14493         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
14494         but in general for window system specific events.
14495
14496         * gtk/gtk.def
14497         * gtk/makefile.mingw.in
14498         * gtk/makefile.msc.in: Update.
14499         
14500         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
14501
14502 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
14503
14504         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
14505         distribute gtk.immodules.
14506
14507         * gtk/Makefile.am (install-data-local): Don't install the
14508         gtk.immodules file created for the uninstalled modules;
14509         instead run gtk-query-immodules after install
14510
14511 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
14512
14513         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
14514         -rpath to the right install location.
14515
14516         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
14517         -export-dynamic.
14518
14519         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
14520         properly.
14521
14522 2000-11-15  Havoc Pennington  <hp@pobox.com>
14523
14524         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
14525         patch from Mikael Hermansson to temporarily stop blinking while
14526         the user is using the keyboard to type or navigate. 
14527
14528         Also, when blinking, stay on for longer than we stay off. Also,
14529         return from start_cursor_blink if !cursor_visible, to save
14530         checking that flag all over the place before we call
14531         start_cursor_blink.
14532
14533 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
14534
14535         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
14536         only contain a "fontset" line, which is now ignored.
14537
14538         * gtk/gtkentry.c (gtk_entry_button_release): Make 
14539         double-click-to-select-word work.
14540         
14541 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
14542
14543         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
14544         Don't move back one char when we are actually at the end of the 
14545         paragraph.
14546
14547 2000-11-15  Robert Brady  <robert@suse.co.uk>
14548
14549         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
14550         'o' < 'p'.
14551         
14552         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
14553         bind_textdomain_codeset.
14554
14555         (gtk_init_check): Make the warning about translating default:LTR
14556         sterner.
14557         
14558 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
14559
14560         * **/Makefile.am : remove unecessary rules for win32-specific
14561         config-substituted targets. If you want these rules, use
14562         --enable-maintainer-mode (called automatically by autogen.sh).
14563         Stops a lot of unneccessary make-time warnings.
14564
14565         * gtk/gtktext{layout,display}.c: Factor in total width as
14566         well as screen when figuring alignment for word-wrap as well as
14567         no wrap; this is necessary to handle lines that cannot be wrapped
14568         at all.
14569
14570 2000-11-15  Havoc Pennington  <hp@redhat.com>
14571
14572         * gtk/testtext.c: Implement essential color cycling feature
14573
14574 2000-11-15  Havoc Pennington  <hp@redhat.com>
14575
14576         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
14577         when we invalidate the main window.
14578
14579         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
14580         GtkTextView will now invalidate the side windows for us when text
14581         changes.
14582
14583 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
14584
14585         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
14586         unconditionally, since we may need to update the horizontal
14587         scrollbars even if the height didn't change.
14588
14589         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
14590         the extra attrs, since some of them affect size.
14591
14592         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
14593         x_offset correctly.
14594
14595 2000-11-15  Havoc Pennington  <hp@redhat.com>
14596
14597         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
14598         don't move the first line out into the margin, instead move the
14599         whole paragraph in order to make space for the first line within 
14600         the margin
14601
14602 2000-11-15  Havoc Pennington  <hp@redhat.com>
14603
14604         * gtk/gtktextview.c (changed_handler): offset redraw rect by
14605         xoffset in addition to yoffset, so horizontal scrolling doesn't
14606         break redraws
14607
14608 2000-11-15  Havoc Pennington  <hp@redhat.com>
14609
14610         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
14611         from the cursor
14612         (render_layout_line): fix reversed test that caused weird
14613         underlines to get drawn
14614
14615 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
14616
14617         * gdk/linux-fb/gdkprivate-fb.h:
14618         Fix debug macros.
14619         
14620 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
14621
14622         * gdk/linux-fb/gdkprivate-fb.h:
14623         Added virtual functions set_pixel, get_color,
14624         fill_span and draw_drawable to the GC.
14625         Added global _gdk_fb_screen_gc to use instead of
14626         NULL when drawing to the screen.
14627         Added _gdk_fb_gc_calc_state() prototype.
14628
14629         * gdk/linux-fb/gdkgc-fb.c:
14630         Call _gdk_fb_gc_calc_state() on any gc state change.
14631
14632         * gdk/linux-fb/gdkglobals-fb.c:
14633         Add _gdk_fb_screen_gc
14634                 
14635         * gdk/linux-fb/gdkdrawable-fb2.c:
14636         _gdk_fb_gc_calc_state() calculates best functions
14637         for the GC state and depth.
14638         Moved bpp specialized code to separate functions.
14639         Added optimized 24 bpp AA draw_drawable.
14640
14641         * gdk/linux-fb/gdkevents-fb.c:
14642         Silence gcc warning.
14643
14644         * gdk/linux-fb/gdkimage-fb.c:
14645         Use _gdk_fb_screen_gc
14646
14647         * gdk/linux-fb/gdkwindow-fb.c:
14648         Init and use _gdk_fb_screen_gc
14649
14650         * gdk/linux-fb/mitypes.h:
14651         Remove unused types.
14652
14653 2000-11-14  Havoc Pennington  <hp@pobox.com>
14654
14655         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
14656         to pixels
14657
14658 2000-11-14  Havoc Pennington  <hp@pobox.com>
14659
14660         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
14661
14662         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
14663         unknown char, no real reason we were using a variable. 
14664         Remove gtk_text_unknown_char variable. Fix all the text widget
14665         files accordingly.
14666
14667         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
14668         since the Unicode spec seems to prefer that character for our
14669         purposes.
14670
14671 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
14672
14673         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
14674         value of g_getenv() isn't freeable, so g_strdup it.
14675
14676         * modules/input/inuktitut.c: Inuktitut input method.
14677
14678         * modules/input/Makefile.am: Build this.
14679         
14680 2000-11-14  Elliot Lee  <sopwith@redhat.com>
14681
14682         * gtk/Makefile.am: Install gtk.immodules, needed for operation
14683         of gtk programs.
14684
14685 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
14686
14687         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
14688         reversed > that was causing Home to go to end of previous line.
14689
14690         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
14691         modified-keypresses (leave for bindings.)
14692
14693         * modules/input/Makefile.am: Remove useless -export-dynamic
14694         from module LDFLAGS.
14695
14696 2000-11-14  Havoc Pennington  <hp@redhat.com>
14697
14698         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
14699         higher.
14700
14701         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
14702         account. Also, render rise, underline, background, etc. for
14703         pixbufs as well as text. Also, draw underlines one pixel higher.
14704
14705         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
14706         PangoAttribute for the rise, so it gets drawn properly. Also,
14707         add the GtkTextAppearance attribute for pixbuf/widget segments
14708         as well; we should go ahead and have rise, underline, background,
14709         stipple work for those
14710
14711         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
14712         Pango
14713
14714 2000-11-15  Tor Lillqvist  <tml@iki.fi>
14715
14716         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
14717
14718         * gtk/gtk.def: Update.
14719
14720         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
14721         included.
14722         (gtk_rc_get_im_module_file): Use run-time installation directory
14723         on Win32.
14724
14725         * gdk/win32/rc/gdk.rc: Remove.
14726         * gdk/win32/rc/gdk.rc.in: New file.
14727         * gdk/win32/rc/Makefile.am: New file
14728         * gdk/win32/Makefile.am: Corresponding changes.
14729
14730         * gtk/gtk.rc: Remove.
14731         * gtk/gtk-win32.rc.in: New file.
14732         * gtk/Makefile.am: Corresponding changes.
14733
14734         * configure.in: Corresponding changes.
14735
14736         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
14737         has a built gtkcompat.h. Developers using CVS code on Win32 can
14738         hand-edit it from gtkcompat.h.in.
14739
14740         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
14741         gtkcompat.h from gtkcompat.h.win32.
14742
14743 2000-11-14  Havoc Pennington  <hp@redhat.com>
14744
14745         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
14746         to default to GDK_ACTION_MOVE if the drag is within a single
14747         widget. Defaults to GDK_ACTION_COPY between widgets.
14748
14749 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
14750
14751         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
14752
14753         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
14754
14755         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
14756         srcdir != builddir
14757
14758         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
14759
14760         * configure.in (GTK_VERSION): Up to 1.3.2
14761
14762         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
14763         gtkimcontextxim.h
14764
14765         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
14766         missing doc comment.
14767
14768 2000-11-14  Alexander Larsson  <alexl@redhat.com>
14769
14770         * modules/linux-fb/basic.c:
14771         Use the glib iconv wrappers.
14772
14773 2000-11-13  Havoc Pennington  <hp@pobox.com>
14774
14775         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
14776         still more bugs.
14777
14778         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
14779         scroll the GdkWindows before realization.
14780
14781 2000-11-13  Havoc Pennington  <hp@redhat.com>
14782
14783         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
14784         where GC didn't always get updated properly
14785
14786         * demos/gtk-demo/textview.c (create_tags): Use subattributes
14787         of fonts instead of setting the entire font
14788
14789         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
14790         setting entire font
14791
14792         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
14793
14794         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
14795         a bunch of individually-settable font attributes. You can still 
14796         use the "font" and "font_desc" args, they just set all the font
14797         attributes at once.
14798
14799 2000-11-13 Elliot Lee <sopwith@redhat.com>
14800
14801         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
14802
14803 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
14804
14805         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
14806         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
14807
14808         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
14809         work better.
14810
14811 2000-11-13  Havoc Pennington  <hp@redhat.com>
14812
14813         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
14814         the module file.
14815
14816         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
14817         dest->language
14818
14819         * gtk/testtext.c: Test pixels above/below/inside paragraphs
14820         settings
14821
14822         * gtk/gtktextview.c: Implement object args and setters/getters for
14823         all the aspects of the GtkTextAttributes that are not set from
14824         GtkWidget attributes. This is spacing, justification, margins,
14825         etc.
14826
14827         (gtk_text_view_set_arg)
14828         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
14829         args
14830         (gtk_text_view_class_init): Add args for justify, left_margin,
14831         right_margin, indent, and tabs
14832         
14833
14834         * gtk/gtktextlayout.c (set_para_values): fix to display indent
14835         attribute properly
14836
14837         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
14838         replace with indent attribute
14839
14840         * gtk/gtktextlayout.c (set_para_values): multiply indent by
14841         PANGO_SCALE
14842
14843         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
14844         rearranging code to do that
14845         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
14846         i.e. don't subtract the top_margin first, just to keep
14847         all margin-futzing in one place.
14848
14849         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
14850
14851         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
14852         special case of last line, Pango now handles this itself.
14853         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
14854         Y coordinate
14855         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
14856         (find_display_line_above): wasn't moving the byte index as it
14857         iterated over lines, so always returned byte 0. Also, port to use
14858         PangoLayoutIter.
14859         (find_display_line_below): same problem as
14860         find_display_line_above. Also, port to use PangoLayoutIter.
14861
14862 2000-11-13  Alexander Larsson  <alexl@redhat.com>
14863
14864         * gdk/linux-fb/*.[ch]:
14865         Massive reindent to gtk+ standard. My hands hurt.
14866
14867         * gdk/linux-fb/gdkcolor-fb.c:
14868         Move GdkColorPrivateFB from inherited to windowing_data
14869
14870         * gdk/linux-fb/gdkcursor-fb.c:
14871         _gdk_cursor_new_from_pixmap made static
14872
14873         * gdk/linux-fb/gdkdnd-fb.c:
14874         GdkDragContextPrivate moved to windowing_data
14875
14876         * gdk/linux-fb/gdkdrawable-fb2.c:
14877         Removed endian.h, use glib endianness macros instead
14878         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
14879         and GDK_DRAWABLE_IMPL_FBDATA
14880
14881         * gdk/linux-fb/gdkfont-fb.c:
14882         Add empty gdk_font_load(). Needed for linking of Gtk+.
14883
14884         * gdk/linux-fb/gdkimage-fb.c:
14885         Removed endian.h, use glib endianness macros instead
14886         Moved GdkImagePrivateFB to windowing_data
14887         gdk_image_new_bitmap didn't always allocate enough
14888         memory.
14889
14890         * gdk/linux-fb/gdkinput-ps2.c:
14891         Added semi-working support for MS serial mice.
14892
14893         * gdk/linux-fb/gdkprivate-fb.h:
14894         s/GdkWindowPrivate/GdkWindowObject/
14895         Removed GdkWindowPrivate typedef
14896         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
14897         Removed GDK_DRAWABLE_P
14898         Move GdkColorPrivateFB from inherited to windowing_data
14899         Moved GdkImagePrivateFB to windowing_data
14900
14901         * gdk/linux-fb/gdkvisual-fb.c:
14902         Removed some unused debug code.
14903
14904         * gdk/linux-fb/gdkwindow-fb.c:
14905         Use stock cursors instead of including X headers.
14906         s/GdkWindowPrivate/GdkWindowObject/
14907
14908         * gdk/linux-fb/mitypes.h:
14909         Removed unused types.
14910
14911         * modules/linux-fb/basic.c:
14912         Use the pango fribidi wrappers.
14913
14914 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
14915
14916         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
14917         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
14918         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
14919         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
14920         GEqualFunc where applicable.
14921         
14922         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
14923         pango_font_description_equal as changed in pango.
14924         
14925         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
14926
14927         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
14928
14929         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
14930
14931         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
14932
14933         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
14934
14935         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
14936
14937         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
14938         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
14939
14940         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
14941         gtk_rc_styles_compare -> gtk_rc_styles_equal.
14942
14943 2000-11-12  Havoc Pennington  <hp@pobox.com>
14944
14945         * demos/gtk-demo/Makefile.am (democodedir): change demo install
14946         dir to datadir/gtk+-2.0/demo
14947
14948         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
14949         sorts of text widget and Pango font bugs. Urgh.
14950
14951         * demos/gtk-demo/Makefile.am (demos): Add textview.c
14952
14953         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
14954         tree that you should double click to see the demo. Fix 
14955         types of variables to reflect changed return values from 
14956         GtkTreeStore and GtkTreeViewColumn constructors.
14957
14958         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
14959         newly-created buffer to prepare for GObject semantics
14960
14961         * gtk/testtext.c: don't leak the buffer with GObject semantics
14962
14963         * gtk/testtextbuffer.c: ditto
14964         
14965 2000-11-12  Havoc Pennington  <hp@pobox.com>
14966
14967         Rename this testgtk to gtk-demo to avoid confusion, and 
14968         install it so people can use it as a supplement to 
14969         the documentation.
14970         
14971         * demos/gtk-demo: Moved from demos/testgtk
14972
14973         * demos/testgtk: Removed
14974
14975         * configure.in: make Makefile in gtk-demo
14976         
14977         * demos/gtk-demo/Makefile.am: Install sample source to 
14978         datadir/gtk-demo (maybe there's a better place?), and 
14979         rename the binary to gtk-demo
14980         
14981         * demos/gtk-demo/main.c (load_file): Load installed sample
14982         source if source isn't found in pwd.
14983
14984 2000-11-09  Havoc Pennington  <hp@pobox.com>
14985
14986         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
14987         argument to set the char displayed when visibility == FALSE
14988         (gtk_entry_create_layout): If !entry->visible, replace 
14989         all chars with the "invisible char"
14990
14991         * gtk/testgtk.c: Test the invisible_char deal
14992         
14993 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
14994
14995         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
14996         can't get a native font in the right encoding.
14997
14998 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
14999
15000         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
15001         respectively.
15002
15003 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
15004
15005         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
15006         Fix warning when moving between paragraphs.
15007
15008         * gtk/gtkentry.[ch]: Change move => move_cursor, 
15009         delete => delete_from_cursor, insert => insert_at_cursor
15010
15011 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
15012
15013         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
15014
15015         * modules/input/imthai-broken.c: A Thai input method for use if
15016         Thai keys are really generating Latin1 keysyms.
15017
15018         * modules/input/Makefile.am: Build these.
15019
15020 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
15021
15022         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
15023         g_filename_{to,from}_utf8 now takes an extra parameter.
15024
15025         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
15026         strftime into UTF-8.
15027
15028         (column_from_x, gtk_calendar_paint_day_names): Support RTL
15029         calendars.
15030
15031         (gtk_calendar_paint_day_names): Draw day names in the right 
15032         place.
15033         
15034 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
15035
15036         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
15037         problem with using result of g_get_charset() backwards -
15038         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
15039
15040         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
15041         negative min_width/height and max_width/height to
15042         mean "requisition"; this allows setting a window
15043         to be user-resizable in only one direction easily.
15044
15045         * gtk/testgtk.c (create_main_window): Remove hard-coded
15046         usize - set a default size in the vertical direction.
15047
15048 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
15049
15050         * gtk/gtkrange.c: Add some missing casts. Support 
15051         2 and 3 button clicks on the arrows to mean 
15052         "move by pages" and "jump to end". (Like gtkspinbutton)
15053
15054 2000-11-12 Hans Breuer <Hans@Breuer.Org>
15055
15056         * gdk/win32/makefile.msc : reflect build module changes
15057
15058         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
15059         from GdkPixmap*, cast implementation member instead.
15060
15061         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
15062         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
15063         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
15064         more Gdi functions return value checking. 
15065         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
15066         GdkImagePrivateWin32 *.
15067
15068         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
15069         menus useable again. Add #pragma message to keep reminded on this issue.
15070         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
15071         windows. This allows to enable backing store on Win32!
15072
15073         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
15074         in drawable is of impl type. Correct specific type checks appropriate.
15075  
15076         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
15077         GDK_WINDOW_DESTROYED before allocating new resources.
15078
15079         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
15080
15081         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
15082         (gdk_window_foreign_new) initialize parent handle.
15083         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
15084
15085         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
15086         Let the GDI invalidate the window on MoveWindow call to fix scrolling
15087         problems (e.g. main buttons in testgtk). 
15088
15089 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
15090
15091         * gtk/gtkentry.c (gtk_entry_key_press): Call 
15092         gtk_widget_activate for GDK_Return.
15093
15094         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
15095         of preedit cursor position.
15096
15097 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
15098
15099         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
15100         static.
15101
15102 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
15103
15104         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
15105         out support for multiple locales; that simple doesn't
15106         work reliably with current Xlib
15107
15108         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
15109         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
15110         Add support for positioning the cursor within the preedit string.
15111
15112 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
15113
15114         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
15115         at XIM input method module.
15116
15117         * gtk/gtktextview.c: Check for bindings after passing
15118         events to im context filter.
15119
15120 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
15121
15122         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
15123         empty attribute lists properly.
15124
15125 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
15126
15127         * gtk/queryimmodules.c (main): Return non-zero exit
15128         status if errors were encountered querying any
15129         modules.
15130
15131         * modules/input/Makefile.am (moduledir): remove
15132         leftover bin program target.
15133
15134         * docs/make-todo: Fix typo in error message.
15135
15136 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
15137
15138         * configure.in: Add modules/input/Makefile
15139
15140 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
15141
15142         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
15143         don't include gtkthemes.h.
15144
15145         * gtk/testgtk.c gtk/testtext.c: Set environment variables
15146         to point
15147
15148         * gtk/Makefile.am: Add new .c and .h files, build 
15149         gtk-query-immodules and use it to create a gtk.immodules
15150         file for use of test programs.
15151
15152         * gtk/gtkpreview.c: remove extra blank line.
15153
15154 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
15155
15156         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
15157         Add the ability to add extra tables beyond the default
15158         one, and also the ability to have compose sequences 
15159         that are prefixes of other compose sequences. 
15160
15161         * gtk/gtkimcontextsimple.c: Export a preedit string which
15162         consists of possible candidates for keystrokes that have
15163         been entered but not yet committed.
15164
15165         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
15166         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
15167
15168         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
15169         Add a function to add input-method switching menu items
15170         to a menu.
15171
15172         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
15173         when switching input methods.
15174
15175         * gtk/gtkimcontextsimple.[ch]: Change the format of
15176         the compose table to allow compose tables of different
15177         lengths / sequence.
15178
15179 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
15180
15181         * gtk/gtkimmodule.[ch]: Support routines for loading
15182         GtkIMContext implementations dynamically at runtime.
15183
15184         * modules/input/imcyrillic-translit.c: A sample input
15185         method (based on GtkIMContextSimple with an extra table),
15186         which demonstrates preedit strings and the module
15187         system for input modules
15188
15189         * gtk/queryimmodules.c: Program to query the available
15190         input modules and write the results into a file.
15191          
15192         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
15193         extra config options "im_module_file" (cache file for
15194         input method modules), and "im_module_path" - path
15195         to look for modules when generating cache file.
15196
15197         This doesn't scale.
15198
15199 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
15200
15201         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
15202         generic code from gtkthemes into a new abstraction
15203         GtkModule which has the logic for implementing
15204         a loadable module which implements a number of 
15205         GObject types.
15206
15207 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
15208
15209         * gtk/gtkeditable.[ch]: Convert GtkEditable from
15210         a class into an interface  
15211         
15212         * gtk/gtkoldeditable.[ch]: Move the old editable
15213         implementation into here, so legacy widgets can
15214         still rely on the implemenation. GtkOldEditable
15215         exports GtkEditable. Make selection handling
15216         code use new text conversion functions (and
15217         handle UTF-8 as a side-effect). Use GtkClipboard
15218         for CLIPBOARD.
15219
15220         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
15221         Adopt to match above changes.
15222
15223         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
15224         avoid GtkOldEditable implementation. Restructure
15225         to reduce number of places that modify state directly.
15226         Move to GtkBindingSet. Display the preedit string.
15227         Queue recomputation of PangoLayout and scroll position
15228         to improve effiency of doing complex changes naively.
15229         Add a menu with cut/copy/paste and input method selection.
15230
15231 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
15232
15233         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
15234         to set preedit string and attributes; display preedit string by
15235         inserting string and attributes at cursor when creating the
15236         GtkTextLineDisplay.
15237
15238         * gtk/gtktextlayout.c: Move all conversions between byte
15239         positions in PangoLayout and GtkTextIter into new functions
15240         line_display_iter_to_index/index_to_iter that properly
15241         handle the preedit string.
15242
15243         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
15244         it to return const char * (eventually will end up
15245         as GCONST char *, most likely.)
15246
15247         * gtk/gtktextview.[ch]: Handle the preedit string, call
15248         gtk_im_context_reset() as necessary, add a menu to switch
15249         input methods.
15250         
15251         * gtk/gtktextlayout.[ch]: Remove useless
15252         gtk_text_layout_get_log_attrs() function.
15253
15254 2000-11-11  Tor Lillqvist  <tml@iki.fi>
15255
15256         * gdk/gdk.def
15257         * gtk/gtk.def: Update.
15258
15259         * gdk/win32/*.c: Add last argument to g_type_register_static()
15260         calls.
15261
15262         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
15263
15264         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
15265         generated by older wheel mouse drivers. Get the correct y
15266         coordinate from WM_MOUSEWHEEL messages.
15267
15268         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
15269         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
15270         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
15271         Debugging functions.
15272
15273         * gdk/win32/gdkprivate-win32.h: Declare them.
15274
15275         * gdk/win32/gdkinput-win32.h: Add declaration for
15276         gdk_input_window_destroy().
15277
15278         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
15279
15280 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
15281
15282         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
15283         function to help handle keeping things in sync.
15284
15285 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
15286
15287         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
15288         BOXED marshallers.
15289
15290         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
15291         (gtk_list_store_class_init): use the new BOXED marshallers.
15292
15293         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
15294         new_with_values to new_with_types.
15295         (gtk_tree_store_get_column_type): add this.
15296         (gtk_tree_store_class_init): use the new BOXED marshallers.
15297
15298         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
15299         mirror some POINTER marshallers.
15300
15301 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
15302
15303         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
15304         allow more interesting iterators.  Also, made the lifecycle of
15305         iterators more explicit.
15306
15307         * gtk/gtktreemodelsort.[ch]: New model for sorting.
15308
15309         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
15310         types.
15311
15312 2000-11-09  Alexander Larsson  <alexl@redhat.com>
15313
15314         * demos/testgtk/menus.c:
15315         Changes to make the new testgtk compile after
15316         gtk_menu_append was removed.
15317
15318         * gdk/linux-fb/gdkdrawable-fb2.c
15319         (gdk_fb_get_depth, gdk_fb_get_visual,
15320         gdk_drawable_impl_fb_class_init): Implement
15321         these drawable functions. Now GtkImages work again.
15322
15323         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
15324
15325         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
15326         
15327         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
15328         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
15329         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
15330         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
15331
15332 2000-11-08  Havoc Pennington  <hp@pobox.com>
15333
15334         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
15335         visible_set args, don't know where these had gone, I thought they
15336         used to be there
15337
15338         * gtk/testtext.c: Add a menu item to apply invisibility tag;
15339         now we can test the feature and see that it's totally broken.
15340
15341 2000-11-08  Havoc Pennington  <hp@pobox.com>
15342
15343         Make DND copy pixbufs and tags when source and target share a 
15344         tag table.
15345         
15346         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
15347         in-process GTK_TEXT_BUFFER_CONTENTS target
15348         (gtk_text_view_drag_data_received): Paste from
15349         GTK_TEXT_BUFFER_CONTENTS if we receive it.
15350
15351 2000-11-08  Alexander Larsson  <alexl@redhat.com>
15352
15353         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
15354         API changes.
15355
15356         * gtk/gtkmenu.c: Add support for scrolling menus.
15357         Remove gtk_menu_append/prepend/insert, these have been moved to
15358         gtkcompat.h as #defines.
15359
15360         * gtk/gtkcompat.h.in:
15361         Add compatibility #defines for gtk_menu_append/prepend/insert
15362
15363         * gtk/gtkmenu.h: Add data needed for scrolling menus.
15364         GtkMenuPositionFunc gets an extra argument push_in.
15365         gtk_menu_append/prepend/insert removed.
15366         
15367         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
15368         positioning behaviour to fit to scrolling menus.
15369
15370         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
15371         into menuitem->submeny. That is wrong, and broke torn
15372         off submenus of torn off menus, since they were unrealized
15373         when the first menu was unrealized.
15374
15375         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
15376         gtk_menu_shell_select_item() since these need to be overridden in
15377         GtkMenu.
15378
15379         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
15380         positioning behaviour to fit to scrolling menus.
15381         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
15382         the current item so that it is prelighted when the menu pops up.
15383         This is a workaround to the fact that the menu doesn't get the
15384         initial enter event (due to grabs).
15385
15386         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
15387         s/gtk_menu_append/gtk_menu_shell_append/
15388
15389         * gtk/gtknotebook.c:
15390         s/gtk_menu_insert/gtk_menu_shell_insert/
15391
15392         * gtk/testgtk.c (create_menu, create_menus):
15393         Create the first menu with 50 items so that menu scrolling
15394         can be tested.
15395         
15396         
15397         Patch from Jonathan Blandford  <jrb@redhat.com>
15398
15399         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
15400         system to handle size requests.  First, we ask what the size of
15401         the toggle is.  Then, when allocating the size, we allocate the
15402         toggle_size first.  This way we can have multiple menu-item
15403         classes w/o needing a seperate class for each.
15404
15405         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
15406         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
15407
15408         * gtk/gtkcheckmenuitem.c
15409         (gtk_check_menu_item_toggle_size_request): New function to handle
15410         the toggle size-request.
15411
15412 2000-11-07  Havoc Pennington  <hp@redhat.com>
15413
15414         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
15415         Half-ass somewhat fix this function, so that scrolling to the
15416         insertion point works. Pango hacking is in the future to really
15417         fix it.
15418
15419         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
15420         length of data, no longer used.
15421
15422         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
15423         method contents in here, get rid of destroy method
15424         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
15425         that were backward. Remove debug spew.
15426         (cut_or_copy): Make the clipboard work with insert_range to
15427         preserve tags and pixbufs, not just the primary selection.
15428
15429 2000-11-07  Havoc Pennington  <hp@redhat.com>
15430
15431         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
15432         to gtk_text_mark_get_visible
15433
15434         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
15435         bug that was generating an invalid iterator
15436
15437         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
15438         ensure_char_offsets() in front of code placing the iter in an
15439         invalid state.
15440
15441         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
15442         make override_location arg const
15443         (paste): Replace the selection if we paste into the 
15444         current selection
15445
15446         * gtk/gtkselection.h: Remove "GtkSelectioData"
15447         (struct _GtkSelectionData): move the definition here.
15448
15449         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
15450         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
15451
15452         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
15453
15454         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
15455         (gtk_text_buffer_insert_range_interactive): implement
15456         (gtk_text_buffer_get_tags): Remove, replaced by
15457         gtk_text_iter_get_tags()
15458
15459         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
15460         limit parameter, to avoid infinite linear scan.
15461         (gtk_text_iter_backward_search): Add search limit
15462         (gtk_text_iter_forward_find_char): Add search limit
15463         (gtk_text_iter_backward_find_char): Add search limit
15464
15465 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
15466
15467         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
15468         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
15469         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
15470         gdk/linux-fb/gdkwindow-fb.c:
15471         use g_object_new() instead of g_type_create_instance() which
15472         is a private function for fundamental type implementations.
15473
15474         * gdk/linux-fb/gdkinput-ps2.c:
15475         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
15476         instead just store the current modifier state. Add a (somewhat broken)
15477         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
15478         Rename exported function gdk_input_ps2_get_mouseinfo to
15479         gdk_input_get_mouseinfo.
15480
15481         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
15482         gdk/linux-fb/gdkwindow-fb.c:
15483         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
15484         
15485
15486 2000-11-02  Havoc Pennington  <hp@redhat.com>
15487
15488         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
15489         use stock buttons. Should be 100% source compatible, appropriate
15490         filesel fields now point to dialog->vbox and dialog->action_area.
15491         On the bizarre side, dialog->action_area and filesel->action_area
15492         are not the same widget.
15493         (gtk_file_selection_init): Put some padding around the selection
15494         entry, so it isn't touching the GtkDialog separator.    
15495
15496         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
15497         use stock buttons, etc. Should also be source compatible.
15498         Set the dialog default title in _init not _new().
15499         
15500         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
15501         Use stock buttons; don't put a button box inside the existing
15502         dialog button box. Don't bother with push/pop colormap anymore.
15503
15504         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
15505         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
15506         for message dialog, and necessary for the font selection and color
15507         selection with help and apply buttons.
15508         
15509         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
15510         to the created button widget. Set GTK_CAN_DEFAULT on the button.
15511         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
15512         between buttons, put less padding around the action area.
15513         (gtk_dialog_run): Exit on unmap rather than on destroy. 
15514         This will also exit the loop if the widget is hidden.
15515         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
15516         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
15517         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
15518         special-case delete event.
15519
15520         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
15521         formatting
15522         
15523 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
15524
15525         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
15526         button to temporarily disable position recording in the
15527         "saved position" test.
15528
15529 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
15530
15531         * gtk/gtkthemes.c: added compat code that temporarily implements
15532         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
15533         going to be revamped by owen's upcoming GtkModule patches, but
15534         untill then people want gtk to build, right? ;)
15535
15536 2000-11-04  Havoc Pennington  <hp@pobox.com>
15537
15538         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
15539         list
15540
15541         * docs/Changes-2.0.txt: Add note about
15542         gtk_container_get_toplevels()
15543
15544         * gtk/gtktextview.h: formatting
15545         
15546         * gtk/gtktextview.c: don't start descriptions with "Returns",
15547         confuses gtk-doc
15548
15549 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
15550
15551         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
15552         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
15553
15554 2000-11-03  Havoc Pennington  <hp@redhat.com>
15555
15556         * gtk/gtktexttagtable.c: Docs
15557         (gtk_text_tag_table_size): return a signed int
15558
15559         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
15560         (gtk_text_tag_event): make the event_object a GObject
15561
15562         * gtk/gtktextview.c: Write API docs for all functions.
15563
15564         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
15565         for gtk_text_view_get_window_type() called on one of the private
15566         windows.
15567
15568         * gtk/gtktextview.c: Instead of accessing text_view->buffer
15569         directly, call get_buffer() which demand-creates a default
15570         buffer. So gtk_text_view_new() can be used to create a view with a
15571         default buffer in it, if you just want an empty text box users can
15572         put data in. Useful for GUI builders also.
15573
15574 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
15575
15576         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
15577         the charset encodign portion MUST be in lowercase.
15578         * gtk/gtkrc.az: added file for Azeri language
15579
15580 2000-11-03  Havoc Pennington  <hp@redhat.com>
15581
15582         Get widgets working on the btree/buffer side. Display of them 
15583         still doesn't work.
15584         
15585         * gtk/gtktextview.c: start implementing child widget stuff
15586
15587         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
15588
15589         * gtk/gtktextlayout.c: handle embedded widgets
15590
15591         * gtk/gtktextdisplay.c: handle embedded widgets
15592
15593         * gtk/gtktextchild.c: Implement all the child anchor goo
15594
15595         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
15596         function
15597
15598         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
15599         (insert_pixbuf_or_widget_segment): abstract out common portions of 
15600         creating a child anchor or a pixbuf segment.
15601         (gtk_text_btree_create_child_anchor): new function
15602         (gtk_text_btree_unregister_child_anchor): new function
15603
15604         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
15605         allocate_child signal on GtkTextLayout
15606
15607         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
15608         values
15609         (gtk_text_iter_get_child_anchor): new function
15610
15611         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
15612         default handler for the changed signal, which calls
15613         gtk_text_buffer_set_modified(), instead of just always emitting
15614         changed then calling set_modified() manually. I guess this is
15615         maybe more flexible. It seems logical.
15616
15617 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
15618
15619         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
15620         now.
15621
15622         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
15623
15624 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
15625
15626         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
15627         been marked static.
15628
15629 2000-11-02  Havoc Pennington  <hp@redhat.com>
15630
15631         * gtk/testgtk.c (create_labels): had a test backward
15632
15633         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
15634         fields, so the dest GC ends up with the correct clip origin, 
15635         etc. Fixes a bug where colored labels didn't redraw 
15636         properly.
15637
15638 2000-11-02  Alexander Larsson  <alexl@redhat.com>
15639
15640         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
15641         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
15642         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
15643         Add last argument to t_type_register_static call.
15644         
15645         * gdk/linux-fb/gdkdrawable-fb2.c:
15646         Add last argument to t_type_register_static call.
15647         export the get_image drawable virtual function.
15648
15649         * gdk/linux-fb/gdkimage-fb.c:
15650         Add last argument to t_type_register_static call.
15651         rename gtk_image_get to _gdk_fb_get_image and
15652         export it for use by gdkdrawable-fb2.
15653
15654         * gdk/linux-fb/gdkprivate-fb.h:
15655         export _gdk_fb_get_image.
15656
15657         * gdk/linux-fb/gdkselection-fb.c:
15658         Add new api call stubs.
15659
15660         * gtk/Makefile.am:
15661         Missing ( in linux-fb part.
15662
15663         * modules/linux-fb/Makefile.am:
15664         Must link with gdk_pixbuf or get unresolved symbol.
15665
15666 2000-11-01  Havoc Pennington  <hp@pobox.com>
15667
15668         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
15669         GTK_TYPE_TEXT_ITER and BOXED marshallers
15670
15671         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
15672
15673         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
15674         
15675         * gtk/gtk-boxed.defs: add GtkTextIter
15676
15677         * gtk/gtkmarshal.list: Add marshallers for text widget that 
15678         properly use OBJECT and BOXED
15679
15680 2000-11-01  Havoc Pennington  <hp@redhat.com>
15681
15682         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
15683
15684         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
15685         before returning it. 
15686         
15687 2000-11-01  Havoc Pennington  <hp@redhat.com>
15688
15689         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
15690         Clip the rectangle to be rendered to the drawable, since
15691         get_from_drawable() requires a region within the drawable
15692
15693 2000-11-01  Havoc Pennington  <hp@redhat.com>
15694
15695         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
15696         from coordinates.
15697
15698 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
15699
15700         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
15701         it isn't NULL.
15702
15703 2000-11-01  Havoc Pennington  <hp@pobox.com>
15704
15705         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
15706         on a label
15707         (gtk_label_finalize): unref the attr list if any.
15708
15709         * gtk/testgtk.c (create_get_image): close test on second click
15710         (make_message_dialog): close dialog if it exists
15711
15712         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
15713
15714         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
15715         gdk-pixbuf
15716
15717         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
15718         from Pango markup format
15719         (gtk_label_set_markup_with_accel): ditto but with accelerator
15720         parsing
15721
15722         * gtk/gtkimage.c (gtk_image_expose): reformatting.
15723
15724         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
15725         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
15726         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
15727         call gdk_window_get_origin().
15728
15729         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
15730         implement GDK_PIXBUF_ALPHA_FULL
15731         
15732 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
15733
15734         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
15735         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
15736         g_signal_handlers_disconnect_matched to block/unblock and disconnect
15737         multiple handlers respectively, instead of only treating the
15738         first handler found (bug reported by owen).
15739
15740 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
15741
15742         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
15743
15744         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
15745
15746         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
15747         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
15748         gtk/gtktreeviewcolumn.h: Fixed inline docs.
15749
15750         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
15751         widget.  Needs writing someday.
15752
15753         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
15754         the docs.
15755
15756 2000-10-30  Havoc Pennington  <hp@redhat.com>
15757
15758         * gtk/gtktextview.h, gtk/gtktextview.c:
15759         Rename delete_at_cursor delete_from_cursor, and 
15760         move to move_cursor.
15761
15762 2000-10-30  Havoc Pennington  <hp@redhat.com>
15763
15764         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
15765         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
15766         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
15767         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
15768         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
15769         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
15770         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
15771         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
15772         gtktexttypes.h, gtktextview.c, gtktextview.h:
15773
15774         Massive reindentation and reformatting. Arg alignment and comments
15775         still need fixing in various places.
15776
15777 2000-10-30  Havoc Pennington  <hp@redhat.com>
15778
15779         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
15780         to be named insert_at_cursor and delete_at_cursor so C++ can
15781         handle them.
15782
15783 2000-10-28  Tor Lillqvist  <tml@iki.fi>
15784
15785         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
15786         to get a double directory separator in case the home directory
15787         ends with one. This would cause trouble especially on Windows,
15788         where the path will be confused with the syntax for an an UNC
15789         (network share) path \\server\share\path.
15790         (gtk_rc_add_initial_default_files): Ditto.
15791
15792 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
15793
15794         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
15795
15796         * gtk/gtktextview.c: Use correct marshallers.
15797
15798 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
15799
15800         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
15801         use new iter stuff, and added all the appropriate signals et al.
15802
15803         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
15804         code is internal to gtk only.
15805
15806 2000-10-28  Tor Lillqvist  <tml@iki.fi>
15807
15808         * gtk/gtk.def
15809         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
15810         glib-genmarshal etc.
15811
15812 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
15813
15814         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
15815         parallel builds.
15816
15817 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
15818
15819         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
15820
15821 2000-10-27  Robert Brady  <robert@suse.co.uk>
15822
15823         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
15824         en_GB (British), ia (Interlingua).
15825
15826 2000-10-26  Havoc Pennington  <hp@redhat.com>
15827
15828         * gtk/gtktextiter.c (my_strrstr): fix constness warning
15829
15830         Fixed output of:
15831         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
15832         
15833         * gtk/gtktextsegment.c (char_segment_new): rename
15834         (_char_segment_new_from_two_strings): rename
15835         (_toggle_segment_new): rename
15836         
15837         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
15838         (make_clipboard_widget): make it static
15839         (text_get_func): static
15840         (text_clear_func): static
15841
15842         * gtk/gtkcolorsel.c (adjustment_changed): make this function
15843         static
15844         (hex_changed): make it static
15845         (hsv_changed): make it static
15846         (opacity_entry_changed): make it static
15847
15848         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
15849         (toggle_segment_check_func): rename with _gtk
15850
15851         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
15852         (_widget_segment_new): rename
15853         (_widget_segment_add): rename
15854         (_widget_segment_remove): rename
15855         (_widget_segment_ref): rename
15856         (_widget_segment_unref): rename
15857
15858         * gtk/gtktextmark.c (_mark_segment_new): Rename
15859         _gtk_mark_segment_new   
15860
15861 2000-10-26  Havoc Pennington  <hp@redhat.com>
15862
15863         * gtk/gtkmarshal.list: add new marshallers used by the text widget
15864         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
15865         types
15866
15867         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
15868         marshaller types
15869
15870         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
15871         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
15872         license on these files.
15873
15874         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
15875         work.
15876
15877         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
15878         runtime random number different for each tree, instead of 
15879         a constant I made up.
15880
15881 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
15882
15883         * gtk/Makefile.am: buncha cleanups, kludged build sources
15884         dependencies with a Makefile: oldest-source-stamp dependancy
15885         for the moment. automake is really fighting us here, with
15886         intentionally not allowing user-defined rules or dependancies
15887         prior to it's -include $(DEP_FILES) statement. sucks rocks!
15888
15889         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
15890         to public headers. tehy have a comment stating that they are
15891         "semi-public" aren't included by gtk.h and if enums popup there,
15892         they can be /*< skip >*/-ed.
15893
15894         * gtk/gtktextlayout.h: 
15895         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
15896         added LGPL... <SIGH>
15897
15898 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
15899
15900         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
15901         GtkTreeIter.  Added iterators everywhere.
15902
15903         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
15904
15905         * gtk/gtktreeviewselection.c: Changed to use the iterators.
15906
15907         * gtk/gtktreestore.c: Changed to use the iterators.
15908
15909         * gtk/gtkliststore.c: Commented out the code.  Will convert to
15910         iterators tomorrow.
15911
15912         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
15913         iterators tomorrow.
15914
15915         * gtk/treestoretest.c: Changed to use iterators.
15916
15917         * demos/testgtk/main.c: Moved to use the new iterator system.
15918
15919 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
15920
15921         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
15922         localization misbehaviour.
15923
15924         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
15925         a useless type without copy/free.
15926
15927         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
15928         of GTK_TYPE_CTREE_NODE.
15929
15930 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
15931
15932         * gtk/gtksignal.c:
15933         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
15934         applicable.
15935
15936         * gtk/gtk-boxed.defs (GtkSelectionData): specify
15937         gtk_selection_data_copy and gtk_selection_data_free
15938         do GtkSelectionData work as params in signals.
15939
15940 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
15941
15942         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
15943         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
15944         couldn't they at least give it a non-standard name?
15945         
15946         * gtk/gtktextlayout.c: arg! yet another implementation of
15947         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
15948
15949         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
15950         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
15951         home. now i know this _is_ a conspiracy.
15952
15953         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
15954         ::state-changed.
15955
15956         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
15957         (gtk_accel_group_create_add): marshaller signature fixups.
15958
15959         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
15960         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
15961
15962         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
15963         anymore.
15964
15965 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
15966
15967         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
15968         due to the signal system changes, it wouldn't build currently. to
15969         be fixed soon.
15970
15971         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
15972
15973         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
15974         so it needs gtk_marshal_VOID__ENUM() instead of
15975         gtk_marshal_NONE__UINT().
15976
15977         * gdk/gdk*.c: adapted type registration functions.
15978
15979         * gtk/gtkbindings.c:
15980         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
15981         gone.
15982
15983         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
15984
15985         * gtk/gtkobject.c:
15986         (gtk_object_destroy):
15987         (gtk_object_shutdown): fixed recursion guards. basically we have to
15988         catch the case where any of GObject.shutdown() or gtk_object_destroy()
15989         is called during ::destroy, and avoid recursion there.
15990
15991         * gtk/gtktypeutils.c:
15992         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
15993         boxed_copy/boxed_free. this needs a more general solution based on a
15994         publically installed code-generator utility.
15995
15996         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
15997         glib's gobject has support for that now.
15998         define GtkSignalMarshaller in terms of GSignalCMarshaller.
15999
16000 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
16001
16002         * gtk/gtksignal.[hc]:
16003         * gtk/gtkmarshal.[hc]:
16004         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
16005         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
16006         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
16007         care of that.
16008
16009         * *.c: marshaller name fixups.
16010
16011         * gtk/gtkmarshal.list: added a comment briefing the format.
16012
16013 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
16014
16015         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
16016         compatibility macros here now. more specifically, most of
16017         the API is preserved (yes, _most_, nonwithstanding the
16018         following exceptions listed, the API is stil lHUGE ;)
16019         things that got removed completely:
16020         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
16021         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
16022         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
16023         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
16024         gtk_signal_remove_emission_hook().
16025         non-functional functions variants:
16026         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
16027         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
16028         not supported anymore.
16029         (gtk_signal_compat_matched): new internal function to aid
16030         implementation of the compatibility macros, it  provides
16031         functionality to block/unblock/disconnect handlers based
16032         on func/data.
16033
16034         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
16035
16036         * *.c: adaptions to new type registration API signatures.
16037
16038 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
16039
16040         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
16041
16042 2000-10-25  Robert Brady  <robert@suse.co.uk>
16043
16044         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
16045         gdk_property_delete): If window == NULL, assume the root window.
16046         (restoring the behaviour that was in 1.2).
16047         
16048         * gtk/testtext.c (save_buffer): Allow creation of new files when
16049         saving.
16050
16051         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
16052         calls to read().
16053
16054 2000-10-25  Tor Lillqvist  <tml@iki.fi>
16055
16056         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
16057
16058         * gdk/win32/gdkdrawable-win32.c
16059         * gdk/win32/gdkimage-win32.c
16060         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
16061         X11 backend.
16062
16063         * gdk/win32/gdkcc-win32.c
16064         * gdk/win32/gdkcolor-win32.c
16065         * gdk/win32/gdkfont-win32.c
16066         * gdk/win32/gdkinput-win32.c
16067         * gdk/win32/gdkmain-win32.c
16068         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
16069
16070 2000-10-24  Havoc Pennington  <hp@redhat.com>
16071
16072         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
16073         it a static function
16074
16075         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
16076         redraw text when a tag is applied to it.
16077
16078         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
16079         (gtk_text_tag_affects_nonsize_appearance): private functions to
16080         see if a tag requires various kinds of redraw/layout to be queued
16081         up.
16082
16083         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
16084
16085         * gtk/testtext.c (fill_example_buffer): Put the cursor 
16086         at the start of the buffer, so search works by default
16087
16088         * gtk/gtktextiter.c (lines_match): init match_start always
16089
16090         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
16091         function, get iter at a line + a byte index
16092
16093         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
16094         to set byte position within a line
16095         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
16096
16097 2000-10-23  Havoc Pennington  <hp@redhat.com>
16098
16099         * gtk/testtext.c: Re-enable the "find" dialog
16100
16101         * gtk/testgtk.c: Add test for gdk_drawable_get_image
16102         
16103         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
16104         the arguments to gdk_draw_drawable were in the wrong order
16105         (gdk_window_paint_init_bg): This function was ignoring the
16106         init_region, instead of clipping to it, so the entire backing
16107         pixmap was cleared on every begin_paint()
16108         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
16109         was in here again, the loop kept using the same GtkWindowPaint
16110         over and over.
16111         (gdk_window_begin_paint_region): Fix a bug where we had two
16112         x_offset instead of x_offset and y_offset
16113
16114         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
16115         before we get the image.
16116         (gdk_draw_drawable): get the composite before we draw the drawable.
16117         (gdk_drawable_real_get_composite_drawable): default
16118         get_composite_drawable implementation that returns the drawable 
16119         itself
16120
16121         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
16122         get_composite_drawable virtual function
16123
16124         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
16125         list-walking bug
16126
16127         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
16128         make this work if the source drawable is a GdkDrawableImplX11
16129         instead of a public drawable type. This is really broken; the
16130         problem is that GdkDrawable needs a virtual method get_xid(), but
16131         of course that doesn't work in practice. Enter RTTI.
16132
16133         Also, improve mismatched depth message.
16134
16135         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
16136         GdkPixmap
16137
16138         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
16139         install _gdk_x11_get_image as our implementation of get_image
16140         
16141         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
16142         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
16143
16144         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
16145         gdk_drawable_get_image
16146
16147         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
16148
16149         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
16150         get_image
16151
16152         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
16153         trailing semicolon after for loop
16154
16155 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
16156
16157         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
16158         where font_desc for widget's context lagged widget's font_desc by
16159         one step.
16160
16161 2000-10-22  Tor Lillqvist  <tml@iki.fi>
16162
16163         * gdk/win32/gdkgc-win32.c
16164         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
16165
16166         * gtk/makefile.mingw.in
16167         * gtk/gtk.def: Updates.
16168
16169         * gtk/testgtk.c: sleep() is called _sleep in MS's C
16170         library.
16171
16172         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
16173
16174         * gtk/makefile.msc: Remove
16175
16176         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
16177
16178         * gtk/Makefile.am: Add it.
16179
16180         * configure.in: Generate it.
16181
16182         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
16183         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
16184         something even if not implemented, to satisfy picky MSVC.
16185
16186         Patches by Hans Breuer:
16187         
16188         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
16189         SetBkMode() and SetTextAlign() before calling
16190         pango_win32_render().
16191
16192         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
16193         Set hcliprgn to NULL after destroying it.
16194         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
16195
16196         * gdk/win32/gdkgeometry-win32.c
16197         (_gdk_windowing_window_queue_antiexpose): More effective
16198         implementation.
16199
16200         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
16201         depth as default, not the visual's.
16202
16203         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
16204         against empty title.
16205
16206         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
16207         IMAGE_PRIVATE_DATA.
16208
16209         * gdk/win32/gdkimage-win32.c: Use it.
16210
16211 2000-10-22  Robert Brady  <robert@suse.co.uk>
16212
16213         * configure.in: Check for bind_textdomain_codeset
16214
16215         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
16216         present, make use of it.
16217
16218         Add a translatable string "default:LTR" which, if translated
16219         to "default:RTL", will cause the default direction to be
16220         Right-to-Left.
16221
16222         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
16223         direction if marked as flippable.
16224
16225         * gtk/gtkhscale.c: Mark widget as flippable.
16226         
16227 2000-10-04  Havoc Pennington  <hp@redhat.com>
16228
16229         * gtk/testgtk.c (create_buttons): create some stock buttons
16230         with the default accel group
16231         (create_image): test some new GtkImage features
16232         (make_message_dialog): test GtkMessageDialog
16233         (create_modal_window): fix someone's bizzarro indentation
16234
16235         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
16236         GTK_WIN_POS_CENTER_ON_PARENT. 
16237         Add "destroy with parent" setting, which means the window goes
16238         away with its transient parent.
16239         (gtk_window_get_default_accel_group): get the default accel group
16240         for the window.
16241         (gtk_window_set_destroy_with_parent): set/unset destroy with
16242         parent flag
16243         (gtk_window_read_rcfiles): invalidate icon set caches
16244         after reloading rcfiles 
16245
16246         * gtk/gtkenums.h (GtkWindowPosition): add
16247         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
16248         on its parent window when the dialog is mapped for the first time.
16249
16250         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
16251         a simple message dialog class
16252         
16253         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
16254         handler to emit response signal, and maybe later it would
16255         honor a hide_on_delete flag - though that isn't there yet.
16256         Set border width on the vbox to 2, so we get some padding.      
16257         Use a button box for the action area.
16258         (gtk_dialog_key_press): synthesize a delete event if Esc
16259         is pressed and the GtkWidget key press handler didn't 
16260         handle the escape key.
16261         (gtk_dialog_new_with_buttons): new function creates a dialog
16262         with some default buttons in it.
16263         (gtk_dialog_add_action_widget): add an activatable widget
16264         as a button in the dialog - you can also add a non-activatable
16265         widget by accessing the action area directly.
16266         (gtk_dialog_add_button): add a simple button - stock ID or 
16267         label - to the action area
16268         (gtk_dialog_response): emit response signal
16269         (gtk_dialog_run): block waiting for the dialog, return 
16270         the response. Override normal delete_event behavior, so that 
16271         delete_event does nothing inside gtk_dialog_run().
16272
16273         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
16274         emitted when an action widget is clicked or the dialog gets
16275         delete_event
16276
16277         * gtk/gtk.h: add gtkmessagedialog.h
16278
16279         * gtk/Makefile.am: add gtkmessagedialog.[hc]
16280
16281 2000-10-18  Havoc Pennington  <hp@redhat.com>
16282
16283         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
16284         where any number of empty lines would get skipped
16285
16286         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
16287         edge.
16288
16289         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
16290         warning about invalid iterators (explain more thoroughly)
16291         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
16292
16293         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
16294         big
16295
16296         * demos/*.c: Add error handling
16297
16298         * gtk/gtktextbuffer.c: don't modify const iterators
16299
16300         * gtk/gdk-pixbuf-loader.c: Add full error handling here
16301
16302         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
16303         on file load
16304
16305         * gtk/gtkiconfactory.c: Update to reflect addition of error
16306         handling to gdk-pixbuf loaders
16307
16308 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
16309
16310         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
16311         move to new modularized testgtk.
16312
16313 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
16314
16315         * gtk/gtktreeview.c: Draw the arrows correctly.
16316
16317         * gtk/gtktreemodel.c: Added user docs.
16318
16319         * gtk/gtk.h: remove gtktreedatalist.h.
16320
16321         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
16322         parent when generating my type.
16323
16324         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
16325         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
16326
16327 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
16328
16329         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
16330         GtkTreeModel from object to interface.
16331
16332 2000-10-16  Havoc Pennington  <hp@redhat.com>
16333
16334         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
16335         compilation
16336
16337 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
16338
16339         * gtk/gtktreeselection.c: Add API documentation to all public
16340         functions.
16341
16342         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
16343         functions.
16344
16345 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
16346
16347         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
16348         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
16349         docs to all public functions.
16350
16351         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
16352         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
16353         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
16354         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
16355         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
16356         issue.
16357
16358 2000-10-14  Robert Brady  <robert@suse.co.uk>
16359
16360         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
16361
16362 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
16363
16364         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
16365         values other then G_TYPE_STRING.
16366         * gtk/gtktreeselection.c: Minor commenting updates.
16367         * gtk/gtktreeview.c: Format updates.
16368
16369 2000-10-09  Tor Lillqvist  <tml@iki.fi>
16370
16371         * README.win32: Update.
16372
16373         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
16374         lines that had been deleted by mistake (?).
16375
16376         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
16377         also the case fg==white and bg==black (but still not randomly
16378         coloured cursors). Thanks to Wolfgang Sourdeau.
16379
16380         * gdk/win32/*.c: Silence gcc -Wall.
16381
16382         * gtk/gtk.def: Add missing entry points.
16383
16384         Fixes by Hans Breuer:
16385
16386         * gdk/makefile.msc
16387         * gdk/win32/makefile.msc: Update.
16388
16389         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
16390         some MSVC thing, presumably), cause breakpoint on failures. Add
16391         GDK_NOR case. Call g_log_set_always_fatal.
16392
16393         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
16394         should be pased by reference.
16395         
16396         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
16397         
16398         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
16399
16400         * gdk/win32/gdkevents-win32.c
16401         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
16402
16403         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
16404         implementation object.
16405
16406         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
16407         not just windows.
16408         
16409         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
16410         Use the wrapper object.
16411         
16412 2000-10-06  Havoc Pennington  <hp@redhat.com>
16413
16414         * Makefile.am (SRC_SUBDIRS): contrib subdir
16415
16416         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
16417         so it can be used in Xlib version
16418
16419         * demos/testpixbuf.c (update_timeout): error checking from 1.0
16420         tree
16421
16422         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
16423         change from 1.0 tree that returns first frame of animation
16424         if the loaded file is an animation.
16425
16426         * contrib: add new directory to hold stuff that comes with GTK+
16427         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
16428         
16429         * configure.in: add contrib/*
16430
16431 2000-10-05  Havoc Pennington  <hp@redhat.com>
16432
16433         * demos/testpixbuf-save.c: add pixbuf save test
16434
16435         * demos/Makefile.am: add testpixbuf-save.c
16436
16437 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
16438
16439         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
16440         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
16441         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
16442         * gtk/gtktreeselection.[ch]: Replaced
16443         "node_selected"/"node_unselected" signal with "selection_changed"
16444         signal.
16445
16446 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
16447
16448         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
16449         tree widget.
16450
16451 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
16452
16453         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
16454         drawing.
16455
16456 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
16457
16458         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
16459         Move list pointer forwards before removing item from
16460         list. (Crash reported by Salmaso Raffaele)
16461
16462         * gdk/gdkwindow.h: Remove spurious trailing ,
16463
16464         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
16465         dependencies on uninstalled libraries, sorry folks.
16466
16467 2000-10-04  Havoc Pennington  <hp@redhat.com>
16468
16469         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
16470         gtk/gtkiconfactory.c: Fix copyrights    
16471
16472         * demos/testpixbuf.c: add inline pixbuf test
16473         
16474 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
16475
16476         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
16477         Add gdk_window_iconify.
16478
16479         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
16480         (gdk_window_set_geometry_hints): Add win_gravity
16481         to geometry structure.
16482
16483         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
16484         Implement _NET_WM_PING.
16485
16486         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
16487         Set _NET_WM_PID on the client leader.
16488
16489         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
16490         Handle UTF-8 better.
16491
16492         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
16493         UTF-8 better, set _NET_WM_NAME as well. Only set
16494         icon name if it hasn't previously been explicitely 
16495         set.
16496
16497 2000-10-03  Havoc Pennington  <hp@redhat.com>
16498
16499         * gtk/testtextbuffer.c: clean up trailing whitespace,
16500         add extensive tests for tag toggle iteration.
16501         
16502         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
16503         distance
16504
16505         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
16506         optimize case where the tag root is on level 1
16507         (gtk_text_line_previous_could_contain_tag): attempt to implement
16508         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
16509         functionality
16510
16511         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
16512         Implement this, though not very efficiently.
16513
16514         * gtk/gtktextiterprivate.h: reformat
16515
16516         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
16517         iterator
16518
16519         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
16520         this to properly revalidate the iterators.
16521
16522         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
16523         properly at the end of the line (and therefore on empty lines)
16524
16525         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
16526         maybe we should return a value...
16527
16528 2000-10-03  Tor Lillqvist  <tml@iki.fi>
16529
16530         * config.h.win32: Guard definition of alloca(). glib.h now handles
16531         that.
16532
16533         * gdk/gdk.def
16534         * gtk/gtk.def: Add new entry points.
16535
16536         Changes just to make GTK+ build without errors on Win32. No hope
16537         of it working in its current state, though...:
16538         
16539         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
16540         some functions from the X11 backend, just to make GTK+ build.
16541
16542         * gdk/makefile.mingw.in
16543         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
16544         number. Add new object files.
16545
16546         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
16547         GetMessageTime to get timestamp (where on X11 uses
16548         gdk_x11_get_server_time()).
16549
16550 2000-10-02  Havoc Pennington  <hp@pobox.com>
16551
16552         * gtk/gtktextview.c: text_window_* weren't static and should have
16553         been.
16554         Start work on child widgets; not yet complete, syncing to 
16555         office computer.
16556
16557         * gtk/gtktextchild.h: change this to contain a public interface,
16558         starting work on child interfaces.
16559         * gtk/gtktextchildprivate.h: move private interfaces here
16560
16561         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
16562
16563         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
16564         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
16565         gtk/gtktextmark.c: copyright notices
16566
16567         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
16568         internal functions      
16569
16570         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
16571         internal function
16572
16573         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
16574         Reformatting    
16575
16576 2000-09-30  Havoc Pennington  <hp@pobox.com>
16577
16578         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
16579         NULL start/end pointers
16580
16581         * gtk/gtktextbuffer.c: Write some docs
16582         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
16583         NULL, so you can just check whether there's a selection.        
16584
16585         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
16586         cleanup_line or segments_changed ourselves, it gets done 
16587         in unlink_segment
16588
16589         * gtk/gtktextmark.h:
16590         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
16591         
16592         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
16593
16594         * gtk/gtktextmark.c: delete some more old Tk cruft
16595
16596         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
16597         mark before removing it, so we can emit MARK_DELETED with a valid
16598         pointer.
16599         (gtk_text_buffer_mark_set): hold ref across signal emission
16600
16601         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
16602         whining about attempts to delete special marks
16603
16604         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
16605         underscore, since it's internal.
16606
16607         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
16608         now implemented in terms of iterators in gtktextiter.h
16609
16610         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
16611         New function, destructively sets contents of buffer. Also 
16612         a convenient way to clear the buffer by setting text to ""
16613
16614         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
16615         multiline string literal
16616
16617         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
16618         text changes.
16619
16620         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
16621         is not dereferenceable
16622         (gtk_text_iter_forward_lines): fix return value
16623
16624 2000-09-29  Havoc Pennington  <hp@redhat.com>
16625
16626         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
16627
16628         * gtk/gtktextview.c: Implement drag thresholding; change functions 
16629         that set border window size to have nicer name
16630         (gtk_text_view_mark_set_handler):  Fix this to have the 
16631         right signature.
16632
16633         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
16634
16635         * gtk/testtext.c: Update with API changes, put line numbers on 
16636         both sides.
16637         
16638         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
16639         with this
16640
16641         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
16642         pixbuf; delete a big block of #if 0 Tk code
16643
16644         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
16645         insert_pixmap with insert_pixbuf
16646
16647 2000-09-29  Martin Baulig  <baulig@suse.de>
16648
16649         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
16650         confusion with the GdkPixbuf of the GNOME 1.x platform.
16651
16652 2000-09-29  Havoc Pennington  <hp@pobox.com>
16653
16654         * gtk/gtktextview.c: Implement the side windows.
16655
16656         * gtk/testtext.c: Implement simple line numbering in the 
16657         left side window; seems to make scrolling sloooow. Oops.
16658         Also, cursor blink is for some reason causing redraws
16659         of the line numbers. Should investigate...
16660
16661 2000-09-28  Havoc Pennington  <hp@redhat.com>
16662
16663         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
16664         scrolling child windows, and draw focus rectangle properly.
16665         
16666         (gtk_text_view_buffer_to_window_coords):
16667         Coordinate transformation to deal with all these freaking windows
16668         and offsets
16669         (gtk_text_view_window_to_buffer_coords): transform the other way
16670
16671         * gtk/testtext.c (create_buffer): Update to match Pango API change
16672
16673         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
16674         anonymous tags
16675         (foreach_unref): don't emit remove signal from finalize, just
16676         set tag's parent to NULL
16677
16678 2000-09-26  Havoc Pennington  <hp@redhat.com>
16679
16680         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
16681         Fix some warnings       
16682
16683 2000-09-26  Havoc Pennington  <hp@redhat.com>
16684
16685         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
16686         headers into the private header list
16687
16688         * Makefile.am (pkgconfig_DATA): install pkg-config files
16689
16690         * configure.in: add pkg-config files
16691
16692         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
16693
16694         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
16695         outstanding icon caches on theme change.
16696
16697         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
16698         important types:
16699
16700         (GtkIconSource): Specification for creating a pixbuf 
16701         appropriate for a direction/state/size triplet from 
16702         a source pixbuf or filename
16703
16704         (GtkIconSet): List of GtkIconSource objects that are used to
16705         create the "same" icon (e.g. an OK button icon), and cache for
16706         rendered icons
16707
16708         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
16709         up the icon set for a given stock ID.  GTK maintains a stack of
16710         GtkIconFactory to search, and applications or libraries can add
16711         additional icon factories on top of the stack
16712         
16713         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
16714         the set of GtkIconSource specified for a given stock ID into 
16715         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
16716         RcStyle, under the specified stock ID.
16717
16718         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
16719         render_icon used to derive a GdkPixbuf from a GtkIconSource.
16720         This allows people to theme how prelight, insensitive, etc. are
16721         done.
16722
16723         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
16724         icon factories for a style, and return the resulting 
16725         icon set if any.
16726
16727         (gtk_style_render_icon): Render an icon using the render_icon 
16728         method in the GtkStyleClass.
16729
16730         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
16731         Use the style for a given widget to look up a stock ID, get the
16732         icon set, and render an icon using the render_icon method 
16733         of the style
16734
16735         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
16736         (contains information about a stock item), the built-in stock item
16737         IDs, and functions to add/lookup stock items.
16738
16739         * gtk/stock-icons/*: Stock icons that come with GTK
16740
16741         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
16742         a button based on a GtkStockItem
16743         (gtk_button_new_accel): Takes a uline string and accel group, and
16744         installs the accelerator.
16745
16746         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
16747         image-display widget.
16748
16749 2000-09-25  Havoc Pennington  <hp@redhat.com>
16750
16751         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
16752
16753         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
16754         Fix a bug when removing node data, we didn't properly 
16755         re-splice the linked list after removing the data.
16756
16757         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
16758         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
16759
16760         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
16761
16762         * gtk/gtktextlayout.c (set_para_values): Set tab array 
16763         for the layout from the GtkTextTag.
16764
16765         * gtk/gtktexttypes.h: delete tab and search cruft, 
16766         remove g_convert() in favor of GLib version
16767
16768         * gtk/gtktexttypes.c: remove tab implementation from here,
16769         move to Pango
16770
16771         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
16772         tab stuff using new PangoTabArray from Pango
16773
16774         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
16775         unused border_width stuff
16776
16777 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
16778
16779         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
16780         glib) and now useless utf_to_latin1() latin1_to_utf()
16781
16782         * gtk/gtktextview.[ch]: Change ::move_insert and
16783         ::delete_text action signals to ::move and ::delete;
16784         create the signals with the right enumeration type,
16785         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
16786         C-v bindings, change Home, End to move to beginning/end
16787         of line, Add C-Home C-End to move to beginning/end
16788         of buffer. Change ::cut_text to ::cut_clipboard, etc;
16789         combine ::scroll_text into ::move; use new GtkSelectionData
16790         functions to simplify DND text handling.
16791         
16792         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
16793         deletion enumerations here, rename enumeration values to 
16794         be consistently plural.
16795
16796         * gtk/gtktextbuffer.c: Use new clipboard interfaces
16797         for cut/copy/paste and primary selection.
16798
16799         * gtk/gtktextbuffer.[ch]: Remove excess time and
16800         'interactive' arguments from cut/copy/paste;
16801         rename cut to cut_clipboard, etc; remove
16802         gtk_text_buffer_get_clipboard_contents().
16803
16804         * gtk/gtktextlayout.[ch]: Add 
16805         gtk_text_layout_move_iter_to_line_end() to move the iter to 
16806         line ends.
16807
16808         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
16809         Functions to set or get a UTF-8 string on the selection
16810         data.
16811
16812         * gtk/gtkclipboard.[ch]: New, simplified selection handling
16813         interfaces.
16814
16815         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
16816         created widgets - one of these is useless if we don't.
16817
16818         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
16819         a public function clear all targets registered for the
16820         widget.
16821
16822         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
16823         Never call gtk_widget_realize() - that was just asking
16824         for bizarre side-effects.
16825
16826         * gtk/gtkselection.c (gtk_selection_owner_set): Call
16827         gdk_selection_owner_set even if the widget is the
16828         same so that we reliably update the timestamp on
16829         the server.
16830
16831         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
16832         gdk_x11_get_server_time() function.
16833         
16834         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
16835         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
16836         Add some tricky filtering on serial numbers for
16837         selection clear events to fix up long-standard
16838         race condition FIXME's in gtkselection.c.
16839
16840         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
16841         routines to convert from utf8 to compound text or
16842         STRING and from a text property to UTF-8.
16843
16844         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
16845         a convenience function gdk_get_current_event_time().
16846
16847         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
16848         and free selection_data->data properly
16849
16850 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
16851
16852         * gtk/gtkthemes.c: Remove some unecessary includes.
16853
16854 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
16855
16856         * gtk/gtktextdisplay.c
16857         * gtk/gtktextlayout.c
16858         * gtk/gtktexttag.c
16859         * gtk/gtktexttag.h
16860         * gtk/testtext.c: Change the overstrike property to strikethrough,
16861         to closer match pango.
16862
16863 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
16864
16865         * gtk/gtktextview.c: Fix up visibility so that focus,
16866         cursor_visible and blink interact properly.  Reenable cursor blink
16867         which had been roughly disabled. Make blink and focus
16868         properly per-view.
16869
16870         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
16871         Add a flag for whether to display insertion cursor and
16872         a function to set the flag.
16873
16874         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
16875         get_line_y() to get_line_yrange(), to be a bit more generally
16876         useful.
16877
16878 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
16879
16880         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
16881           do stop_navigating_submenu, to clear last timeout properly.
16882           Also in gtk_menu_motion_notify move ignore_enter above
16883           the conditional to make it always happen as suggested by Owen
16884
16885 2000-09-07  Tor Lillqvist  <tml@iki.fi>
16886
16887         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
16888
16889         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
16890         w32api headers.
16891
16892         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
16893         declarations.
16894
16895         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
16896         (gdk_win32_get_colormap): A line had been deleted by mistake.
16897
16898         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
16899         (gdk_event_translate): Handle more virtual keycodes to be able to
16900         generate GDK events for Control-comma, Control-period, etc.
16901
16902         * gtk/gtk.def: Add some missing entry points.
16903
16904 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
16905
16906         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
16907         Doc comment fixing. (Mostly non-matching parameter names.)
16908
16909         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
16910         comments a little to avoid looking like a doc comment.
16911
16912         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
16913         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
16914         conversions be changed to GError?)
16915
16916         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
16917         Move private #defines into .c file.
16918
16919         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
16920         order of argument addition, remove duplicates.
16921
16922         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
16923         parent class is FrameClass, not BinClass.
16924
16925         * gtk/gtk.h: Add gtkinvisible, which was missing.
16926         (It's occasionalyl useful for client apps, if seldom.)
16927
16928         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
16929         #define.
16930
16931 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
16932
16933         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
16934         coordinates when creating window, instead of GDK-space
16935         coordinates. (Avoid BadValue on too large windows.)
16936
16937 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
16938
16939         * configure.in (use_mmx_asm): Remove conftest* after use along the
16940         lines of AC_TRY_COMPILE.        
16941         
16942         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
16943         of g_dirname, which is deprecated.
16944         (gtk_rc_parse_any): Removed calls to
16945         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
16946
16947         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
16948         Removed calls to g_hash_table_{freeze,thaw}, as they are
16949         deprecated now.
16950
16951         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
16952         instead of g_basename.
16953         
16954 2000-09-04 Elliot Lee <sopwith@redhat.com>
16955         
16956         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
16957         ANSI warning.
16958
16959 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
16960
16961         * gtk/gtkwidget.h:  Add some documenting comments about 
16962           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
16963           just as owen said on irc.
16964
16965         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
16966           set HAS_DEFAULT.  Only set it if there isn't another window
16967           holding it (a focus window which RECEIVES_DEFAULT) and only unset
16968           it if the widget is not the focused window with RECEIVES_DEFAULT.
16969           This fixes weird double default bugs in dialogs which has things
16970           call gtk_window_set_default at times.
16971
16972 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
16973
16974         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
16975         Nils Barth and David Santiago to improve submenu
16976         navigation. The patch does this by creating a triangular
16977         region from the point where the pointer leaves the
16978         menu to the submenu.  While the pointer is in
16979         that region and a timeout has not expired, events 
16980         that would cause the active submenu to change are
16981         ignored.
16982
16983 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
16984
16985         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
16986         moving a toplevel window immediately after sizing it would
16987         result in it being sized back to the old size since 
16988         impl->width, impl->height aren't updated until we hear
16989         back from the server. There is still a (longstanding) bug
16990         here that gdk_window_get_size() will give the wrong size
16991         until we do hear back.
16992
16993 2000-08-31  Havoc Pennington  <hp@redhat.com>
16994
16995         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
16996         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
16997         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
16998         Rename GtkTextStyleValues to GtkTextAttributes
16999
17000 2000-08-31  Havoc Pennington  <hp@pobox.com>
17001
17002         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
17003         for rapid testing whether an iterator is the end iterator
17004         (gtk_text_btree_new): init end line cache
17005         (gtk_text_line_is_last): use fast cached line to 
17006         see if we're the last line.
17007         (get_last_line): use cached line here too, should 
17008         speed up some random unrelated code.
17009         
17010 2000-08-30  Havoc Pennington  <hp@pobox.com>
17011
17012         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
17013         signals.
17014
17015         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
17016         delete_text signals. This allows the signals to be used for
17017         implementing undo.
17018
17019         * gtk/gtktextbuffer.c: Change signal handler signatures; 
17020         provide "interactive" argument when emitting insert_text or
17021         delete_text signal.
17022         
17023 2000-08-30  Havoc Pennington  <hp@pobox.com>
17024
17025         * gtk/gtktextbuffer.c: Docs
17026
17027 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
17028
17029         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
17030         from switch statements, since Tor removed the enumeration
17031         value.
17032         
17033         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
17034         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
17035
17036 2000-08-29 Elliot Lee <sopwith@redhat.com>
17037         * */*.h: Use G_GNUC_CONST.
17038
17039 2000-08-27  Havoc Pennington  <hp@pobox.com>
17040
17041         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
17042         minor indentation fixes, inserted some FIXME about stuff I
17043         realized was broken while documenting it.
17044         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
17045         GTK convention  
17046
17047 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
17048
17049         * gtk/testgtk.c (create_styles): Fix double free of
17050         font desc.
17051
17052 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
17053
17054         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
17055         
17056         * gtk/testgtk.c (create_styles): Add a test for modifying
17057         the style through gtk_widget_modify_*.
17058
17059         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
17060         a function to get the current modifier style.
17061
17062         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
17063         of the passed in GtkRcStyle instead of ref'ing it.
17064
17065         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
17066
17067 2000-08-20  Tor Lillqvist  <tml@iki.fi>
17068
17069         * gdk/gdkimage.h
17070         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
17071         shared memory image+pixmap GdkImage type, or
17072         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
17073         I am dropping that.
17074
17075         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
17076         actually call gtk_init_abi_check(), passing also
17077         sizeof(GtkWindow). Ditto for gtk_init_check(). 
17078
17079         * gtk/gtk.def
17080         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
17081         New functions, used to check that the GTK+-using code has been
17082         compiled using the correct compiler and switches. In particular,
17083         with gcc one has to use the -fnative-struct switch as GTK+ is
17084         compiled with that.
17085
17086 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
17087
17088         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
17089         ->prev fields when merging lists. (Found simultaneously
17090         by Pawel Salek and Jakub Jelinek)
17091
17092 2000-08-12  Tor Lillqvist  <tml@iki.fi>
17093
17094         * gdk/gdk.def
17095         * gtk/gtk.def: Add missing entries.
17096
17097         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
17098         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
17099
17100         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
17101         function. Dummy implementation at this point.
17102
17103         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
17104         rules. Undefine GTK_COMPILATION when compiling the test programs.
17105         
17106         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
17107
17108 2000-08-11  Tor Lillqvist  <tml@iki.fi>
17109
17110         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
17111         to convert back and forth from UTF-8 and the "system" (or "current
17112         locale") charset when necessary. Indentation/spacing cleanup.
17113
17114 2000-08-10  Havoc Pennington  <hp@redhat.com>
17115
17116         * Makefile.am (snapshot): Change the format of the snapshot
17117         version to match glib
17118
17119         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
17120         from EXTRA_DIST since it doesn't seem to exist
17121
17122 2000-08-10  Tor Lillqvist  <tml@iki.fi>
17123
17124         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
17125         version of the directory name (not the UTF-8 one) when building
17126         the path name to stat().
17127
17128 2000-08-03  Elliot Lee  <sopwith@redhat.com>
17129
17130         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
17131         PANGO_ATTR_SHAPE set.
17132
17133 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
17134
17135         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
17136         Peter Osterlund to simplify the code while keeping the
17137         functionality the same.
17138
17139 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
17140
17141         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
17142         is_viewable() test further inside the function, since removing the 
17143         window from the redraw list without clearing ->update_area
17144         was also very broken.
17145
17146 2000-08-02  Tor Lillqvist  <tml@iki.fi>
17147
17148         * configure.in: Check for <unistd.h>.
17149
17150 2000-08-01  Martin Baulig  <baulig@suse.de>
17151
17152         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
17153         to display the message that this is a development version of GTK+.
17154
17155 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
17156
17157         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
17158         was depending on widget->allocation instead of the width of text_area,
17159         which was incorrect for subclasses like GtkSpinButton.
17160
17161         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
17162         with width == 1 tests that should be width == -1.
17163
17164 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
17165
17166         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
17167         (broken, Elliot, every single window blank on X) custom code with call
17168         to gdk_window_is_viewable() which a) prevents code duplicate and
17169         b) works. 
17170
17171 2000-07-31  Elliot Lee  <sopwith@redhat.com>
17172
17173         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
17174         to get the GDK_PARENT_ROOT() macro to work.
17175         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
17176         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
17177         of, windows that aren't shown.
17178         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
17179         pointer grab stuff.
17180
17181 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
17182
17183         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
17184           s/gtk_main_iteration/g_main_iteration/
17185
17186           Did this already in change:
17187                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
17188           don't know how it got reverted.
17189
17190 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
17191
17192         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
17193         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
17194
17195         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
17196         not gdk_pixbuf.
17197
17198 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
17199
17200         * configure.in,po/{sp,sr}.po: Added Serbian files
17201
17202 2000-07-30  Tor Lillqvist  <tml@iki.fi>
17203
17204         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
17205
17206         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
17207         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
17208         GIOChannel implementation.
17209
17210         * gdk/win32/gdkinput.c
17211         * gdk/win32/gdkpango-win32.c: Update license name here, too.
17212
17213         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
17214         definition to match prototype.
17215
17216         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
17217
17218 2000-07-27  Elliot Lee  <sopwith@redhat.com>
17219
17220         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
17221         function, to allow handling image formats that cannot be detected
17222         by looking at content alone.
17223
17224 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
17225
17226         * docs/tutorial/*.gif *.jpg *.eps
17227           Update these to the same look-n-feel.
17228           Why does including images in DocBook suck so badly?
17229
17230 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
17231
17232         * gtk/gtktable.c: applied patch from Phil Thompson
17233         <phil@river-bank.demon.co.uk> that enables space settings for
17234         the last row/columns as well.
17235
17236 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
17237
17238         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
17239         updates the license headers to the GNU Lesser General Public License,
17240         as well as updating the copyright year to 2000.
17241
17242 2000-07-26  Robert Brady  <rwb197@zepler.org>
17243
17244         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
17245           and po/Makefile, was installing and looking for them under gtk20
17246           and gtk2 respectively.
17247
17248 2000-07-25  Havoc Pennington  <hp@redhat.com>
17249
17250         * gtk/testtext.c: Comment out some stuff that depends on the rest
17251         of my patches.
17252
17253 2000-07-25  Havoc Pennington  <hp@redhat.com>
17254
17255         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
17256         buffer
17257
17258 2000-07-25  Havoc Pennington  <hp@redhat.com>
17259
17260         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
17261         widget changes.
17262
17263         * gtk/gtktextview.h: To be consistent with usage of "line"
17264         throughout the API to mean "newline-terminated thingy", change
17265         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
17266         to MOVEMENT_LINE.
17267
17268         (GtkTextView): Add flags for default editability, and whether to
17269         show the cursor. Add functions to get/set that. Add 
17270
17271         (gtk_text_view_get_iter_location): new function
17272
17273         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
17274         gtktextlayout.h
17275         (g_convert): Add g_convert temporarily, will go in glib in a bit
17276         
17277         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
17278         GtkTextTagTableForeach instead of brokenly using GHFunc.
17279         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
17280
17281         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
17282         moved to public header.
17283
17284         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
17285         "invisible", since "elide" was a bad name.
17286         (gtk_text_tag_get_priority): Added
17287
17288         (GtkTextStyleValues): put this in public header, along with
17289         functions to use it.
17290
17291         * gtk/gtktextmarkprivate.h: Include more headers, since we no
17292         longer include gtktextbtree.h.
17293
17294         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
17295         gtk_text_mark_deleted
17296
17297         * gtk/gtktextlayout.h: Don't include the "really private" headers,
17298         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
17299         to make this possible. Now we only need to install
17300         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
17301         (However the Makefile.am isn't changed yet because of the
17302         logistics of merging gtk-hp-patches piecemeal)
17303
17304         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
17305         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
17306         gtk_text_iter_get_line is now used in the public API for a
17307         different purpose.
17308
17309         * gtk/gtktextiter.h: Clean up function names to be more
17310         consistent. Always call char offset "offset" and byte index
17311         "index". A "line" is always a line number. 
17312
17313         (gtk_text_iter_is_last): new function, more efficient than 
17314         the existing way to check
17315         (gtk_text_iter_is_first): new function, also more efficient
17316
17317         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
17318
17319         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
17320         gtk_text_iter_forward_char, etc.
17321
17322         (gtk_text_iter_forward_to_tag_toggle): Renamed from
17323         forward_find_tag_toggle, since this isn't a linear search
17324
17325         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
17326
17327         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
17328         New functions, search for a buffer substring.
17329
17330         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
17331         interactive and default editable (since we need to store that info
17332         until we receive the selection data).
17333
17334         Remove all the _at_char and at_line etc. versions of functions;
17335         only have iterator versions.
17336
17337         Add _interactive() versions of functions, that consider the
17338         editability of text. (FIXME add interactive flag to the 
17339         insert/delete signals per Darin's suggestion)
17340
17341         (gtk_text_buffer_get_tag_table): new function, demand-creates the
17342         tag table if necessary
17343
17344         Remove declaration of gtk_text_buffer_get_iter_from_string
17345
17346         (_gtk_text_buffer_get_btree): private/internal function, added.
17347         
17348
17349         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
17350         (gtk_text_line_is_last): new function
17351
17352 2000-07-25  Havoc Pennington  <hp@redhat.com>
17353
17354         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
17355         using GtkProgressBar. See Changes-2.0.txt for details.
17356
17357         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
17358         "pulse_step" which are the equivalent of
17359         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
17360         Implement new API.
17361         
17362         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
17363         (use_text_format) to mark whether text set on the progress bar is
17364         a format string. Deprecate entire GtkProgress interface.
17365
17366         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
17367         (gtk_progress_build_string): make this a no-op if use_text_format
17368         is FALSE
17369
17370         * docs/Changes-2.0.txt: Describe progress bar changes.
17371
17372 2000-07-25  Tor Lillqvist  <tml@iki.fi>
17373
17374         * Makefile.am: Include the build directory.
17375
17376         * configure.in: Generate build/Makefile, build/win32/Makefile,
17377         gdk/, gdk/win32/, and gtk/makefile.mingw.
17378
17379         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
17380         Add GETTEXT_PACKAGE.
17381         
17382         * gdk/gdk.def
17383         * gtk/gtk.def: Updates.
17384
17385         * gdk/gdkfont.h
17386         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
17387         need them any longer.
17388
17389         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
17390
17391         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
17392         PANGOWIN32_LIBS and gdk_pixbuf.
17393
17394         * gdk/win32: Compiles, but no doubt doesn't work at all.
17395
17396         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
17397
17398         * gdk/win32/gdkinput.c: New file, temporarily.
17399         
17400         * gdk/win32/gdkinput-win32.h: New file
17401
17402         * gdk/win32/gdkinputprivate.h: Remove.
17403
17404         * gdk/win32/gdkpango-win32.c: New file.
17405
17406         * gtk/makefile.mingw.in: New file
17407
17408         * gtk/makefile.cygwin: Removed
17409         
17410         * gtk/Makefile.am: Update accordingly.
17411
17412         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
17413         made externally visible.
17414
17415         * gtk/gtkmain.c: Use it.
17416         
17417         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
17418         is enough.
17419
17420         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
17421
17422 2000-07-24 Elliot Lee <sopwith@redhat.com>
17423         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
17424         individual backends already.
17425         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
17426         again. Yes, there really is a good reason for this, if you are using the gdkregion
17427         internals, and if you're not, why do you care?
17428         * gdk/gdkwindow.c: Fix inverted condition
17429         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
17430         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
17431         * gtk/gtkrange.c: Redraw trough when moving.
17432         * gtk/gtktypeutils.c: Fix warning by adding const cast.
17433         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
17434
17435 2000-07-23  Tor Lillqvist  <tml@iki.fi>
17436
17437         * configure.in: Check for mkstemp and sigsetjmp. Output
17438         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
17439
17440         More work on GDK for Win32. Still in an intermediate state.
17441
17442         * gdk/makefile.cygwin
17443         * gdk/win32/makefile.cygwin: Removed.
17444         
17445         * gdk/makefile.mingw.in
17446         * gdk/win32/makefile.mingw.in: New files.
17447
17448         * gdk/Makefile.am
17449         * gdk/win32/Makefile.am: Generate and distribute them.
17450
17451         * gdk/win32/gdkwindow-win32.h
17452         * gdk/win32/gdkdrawable-win32.h
17453         * gdk/win32/gdkpixmap-win32.h: New files.
17454
17455         * gdk/win32/gdkcolor-win32.c
17456         * gdk/win32/gdkcursor-win32.c
17457         * gdk/win32/gdkdrawable-win32.c
17458         * gdk/win32/gdkgc-win32.c
17459         * gdk/win32/gdkimage-win32.c
17460         * gdk/win32/gdkprivate-win32.h
17461         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
17462         Rename fields and variables called xcursor, xid, etc (these names
17463         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
17464
17465 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
17466
17467         * gtk/gtkentry.[ch]: Fix some problems with vertical
17468         alignment.
17469
17470         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
17471         char/byte confusion.
17472
17473 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
17474
17475         * gtk/gtktextview.c (changed_handler): Fix bug where
17476         redraw wasn't being done properly when height of
17477         dirty region changed.
17478
17479         * demos/Makefile.am: Remove various references to
17480         -lgmodule
17481
17482 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
17483
17484         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
17485         PangoAttrShape to reserve space for pixmaps, add 
17486         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
17487         in the display functions.
17488         
17489         * gtk/testgtk.c (create_layout): Set some more exotic
17490         scrolled window options
17491
17492         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
17493         Add function to set the shadow type of a window, to allow
17494         putting a shadow around widgets such as GtkLayout or GnomeCanvas
17495         which don't draw their own frame.
17496
17497 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
17498
17499         * docs/tutorial/package-db-tutorial.sh: New file for
17500           packaging DocBook format tutorial
17501
17502 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
17503
17504         * docs/tutorial/gtk-tut.sgml: Minor updates
17505
17506         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
17507
17508 2000-07-19  Tor Lillqvist  <tml@iki.fi>
17509
17510         * gtk/gtksignal.c: Fix C++ comment.
17511
17512         * gtk/gtkimmulticontext.c
17513         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
17514         don't return value from void functions.
17515
17516         * gtk/gtk.def: Add gtk_rc_style_unref.
17517
17518 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
17519
17520         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
17521         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
17522         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
17523         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
17524         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
17525         gtk/gtktypeutils.h: Include files outside of the extern "C"
17526         block. Makes some C++ compiler happy. Reported by Denis Vakatov
17527         <vakatov@peony.nlm.nih.gov>.
17528
17529 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
17530
17531         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
17532           Completes first pass. Hurrah!
17533
17534 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
17535
17536         * docs/tutorial/gtk-tut.sgml: More clean ups.
17537
17538 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
17539
17540         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
17541         paint the background of the text area which was accidentally
17542         removed at some point.
17543
17544         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
17545           
17546          - Move most of the functionality from the theme vtable
17547            into GtkRcStyleClass and GtkStyleClass. The moved
17548            vtable functions were changed a bit in the move to
17549            work better in their new home.
17550
17551          - Get rid of the engine and engine_data fields from
17552            GtkRcStyle and GtkStyle; instead the theme
17553            engine derives theme-specific subclasses of GtkRcStyle
17554            and GtkStyle
17555
17556          - Add extra dlsym() found entry point to themes,
17557            theme_create_rc_style().
17558
17559         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
17560         in gtk_style_real_copy.
17561
17562         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
17563         to register a type associated with an engine. (The engine
17564         won't be unloaded as there is an instance of the type.)
17565
17566
17567 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
17568
17569         * docs/tutorial/gtk-tut.sgml: Clean ups.
17570
17571 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
17572
17573         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
17574           of cleaning up to do.
17575
17576 2000-07-15  Tor Lillqvist  <tml@iki.fi>
17577
17578         * gdk/testgdk.c: New file, quick hack to test backends for
17579         pixel-by-pixel correctness of the most simple graphic operations.
17580
17581 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
17582
17583         * Really release 1.3.1
17584         
17585         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
17586         include structure.
17587
17588 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
17589
17590         * Released 1.3.1
17591
17592 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
17593
17594         * gtk/gtktextlayout.c: use FALSE for size_only most
17595         of the time when calling gtk_text_layout_get_line_display()
17596         to avoid causing double reshapes when a redraw follows
17597         immediately after.
17598
17599 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
17600
17601         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
17602         appropriate region and gdk_window_process_updates() so trough
17603         updating doesn't lag behind the window being scrolled.
17604
17605         * gdk/gdkgc.c: Make parent_class pointer static.
17606          
17607 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
17608
17609         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
17610         include <string.h>.
17611          
17612         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
17613         cut-and-paste error in computing memory offset for 4 channels.
17614
17615 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
17616
17617         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
17618         gtk_rc_append_default_pixmap_path(), since it wasn't
17619         adding an interesting path and we don't have a meaningful
17620         default for this value.
17621
17622 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
17623
17624         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
17625         gtk-config to gtk-config-2.0 move gtk_.m4 to
17626         gtk-2.0.m4
17627
17628         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
17629         gdk/Makefile.am demos/Makefile.am: Change 
17630         library names to libgtk-1.3.la, etc, so that we
17631         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
17632
17633         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
17634         gdk/Makefile.am gdk/x11/Makfile.am
17635         Move include files into /usr/include/gtk-2.0, 
17636         /usr/lib/gtk-2.0/include/
17637          
17638         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
17639         gtk/gtkintl.h: Change package for gettext from 
17640         gtk+ to gtk20. Put hack in autogen.sh to modify
17641         po/Makefile.in.in after gettextize to make this
17642         possible.
17643
17644         * gtk+.spec: Some updates, not tested.
17645
17646         * gdk-pixbuf/Makefile.am: Move loaders into
17647         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
17648
17649         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
17650         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
17651         to THEMENAME/gtk-2.0/. Move engine directory  to
17652         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
17653         
17654 2000-07-12  Tor Lillqvist  <tml@iki.fi>
17655
17656         Win32 changes, still doesn't build though.
17657
17658         * gdk/makefile.cygwin
17659         * gdk/win32/makefile.cygwin
17660         * gtk/makefile.cygwin: Updates.
17661
17662         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
17663         default values for fg and bg pixel as X11 does (0 and 1), not
17664         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
17665         Use 0 for pen width by default (treated as 1 anyway later, but for
17666         apps that might check the value in the GdkGC).
17667         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
17668         interface to gdk_gc_predraw and _postdraw.
17669
17670         * gdk/win32/gdkwin32.h
17671         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
17672
17673         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
17674         extraneous semicolon.
17675
17676         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
17677
17678         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
17679         not the Win32 bitspixel value.
17680
17681         * gdk/win32/gdkcc-win32.c:
17682         * gdk/win32/gdkcolor-win32.c 
17683         * gdk/win32/gdkprivate-win32.h
17684         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
17685         GDK object structure.
17686
17687 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
17688
17689         * docs/tutorial/gtk_tut_12.es.sgml (name): 
17690         * docs/tutorial/gtk_tut_it.sgml (name): 
17691         * docs/tutorial/gtk_tut_fr.sgml (name): 
17692         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
17693         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
17694
17695 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
17696
17697         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
17698           small changes.
17699
17700 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
17701
17702         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
17703         a bug here, never been here and never fixed anything ;(
17704         (don't segfault if tree->root_tree is NULL, which happens prior
17705         to widget realization, but puke instead).
17706
17707 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
17708
17709         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
17710         add the necessary tokens.
17711
17712         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
17713         (gtk_rc_style_to_style): copy thicknesses.
17714         (gtk_rc_init_style): apply thicknesses.
17715         (gtk_rc_parse_style): parse xthickness and ythickness.
17716
17717         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
17718
17719         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
17720         (gdk_window_new): 
17721         (_gdk_windowing_window_init): 
17722         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
17723         (gdk_pixmap_create_from_data): 
17724         (gdk_bitmap_create_from_data): 
17725         (gdk_pixmap_new): 
17726         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
17727         (gdk_image_new): 
17728         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
17729         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
17730         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
17731         (gdk_colormap_get_system): 
17732         (gdk_colormap_new): 
17733         * gdk/gdkwindow.c (gdk_window_init): 
17734         * gtk/gtkstyle.c (gtk_style_new):
17735         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
17736         * gdk/gdkpixmap.c (gdk_pixmap_init): 
17737         * gtk/gtkrc.c (gtk_rc_style_new):
17738         use g_object_new() instead of g_type_create_instance() which
17739         is a private function for fundamental type implementations.
17740
17741 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
17742
17743         * configure.in: Add check for db2html
17744
17745 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
17746
17747         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
17748         hack to set glib_debug_objects based on gtk_debug_flags.
17749
17750 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
17751
17752         * INSTALL.in: Update the Prerequisites section.
17753
17754         * Makefile.am demos/Makefile.am docs/Makefile.am
17755         docs/tutorial/Makefile.am gdk/x11/Makefile.am
17756         gdk/linux-fb/Makefile.am: Dist fixes
17757
17758 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
17759
17760         * NEWS: 10,000 foot view of 1.3.1 changes.
17761
17762 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
17763
17764         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
17765         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
17766         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
17767         gdk/x11/gdkmain-x11.c: 
17768
17769         Patch from George Lebl to add a GdkGrabStatus enumeration to use
17770         as a return value of gdk_*_grab(). Previously, we just
17771         returned the X11 values directly.
17772
17773 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
17774
17775         * gdk/x11/Makefile.am: Patch from George Lebl to 
17776         install all the headers in the right place.
17777
17778 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
17779
17780         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
17781           initial conversion to DocBook.
17782
17783 2000-07-04  Tor Lillqvist  <tml@iki.fi>
17784
17785         * README.win32: Improve a bit.
17786
17787         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
17788         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
17789         Alt+0nnn on the numpad (used to enter characters by numeric code
17790         from current DOS or ANSI codepage) working correctly, as in other
17791         Windows apps.
17792
17793         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
17794         same argument validity tests as in X11 version.
17795         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
17796
17797         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
17798         definitions in case missing from headers.
17799
17800         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
17801         destroy the window-specific cursor.
17802         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
17803         calling GetModuleHandle(NULL).
17804         (gdk_window_set_cursor): Reworked to always copy the passed cursor
17805         with CopyCursor before setting it as the window-specific
17806         cursor. It is OK for the caller to destroy the GdkCursor (and thus
17807         also its Windows cursor) after calling this function. Destroy any
17808         previous window-specific cursor.
17809
17810 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
17811
17812         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
17813         font charset is iso8859-1, not iso-8859-1.
17814
17815 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
17816
17817         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
17818         Use g_get_charset() instead of g_get_codeset().
17819
17820         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
17821         Comment out some strdup'ing functions to keep timj
17822         happy until we finish fighting this out.
17823
17824 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
17825
17826         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
17827         <= width or height.
17828
17829         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
17830         from 1.2 for parent/child states.
17831
17832         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
17833         of typos.
17834
17835         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
17836         event structures, replace with a generic axes field. Replace 
17837         deviceid/sourec with GdkDevice *device.
17838
17839         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
17840         to extract particular axis use value from event. (Also
17841         can be used for normal X/Y.)
17842
17843         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
17844         allow for arbitrary number of axes, namespace everything
17845         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
17846         everywhere.
17847
17848         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
17849         Get rid of the gdk_input_vtable setup if favor of simply
17850         defining the functions in gdkinput-none/gxi/xfree.c in
17851         a similar fashion to the way that the port structure is 
17852         done.
17853
17854         * gtk/gtkdnd.c: Fix fields of synthesized button press event
17855         for new event structures. 
17856
17857         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
17858         new device interfaces.
17859
17860 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
17861
17862         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
17863         set the initial text.
17864
17865         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
17866         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
17867         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
17868         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
17869
17870         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
17871         pango_layout_set_font_description to simplify.
17872
17873 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
17874
17875         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
17876         pango_layout_set_font_description to simplify.
17877
17878 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
17879
17880         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
17881         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
17882         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
17883
17884         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
17885         PANGO_PIXELS() macro.
17886
17887 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
17888
17889         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
17890         that returns a PangoContext owned by the widget and updated to
17891         match future changes in the widget. Also, make 
17892         gtk_widget_create_pango_layout() use this context. If we ever
17893         add a ::changed signal to PangoContext, this will make things
17894         much more convenient. 
17895
17896         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
17897         in the appropriate places instead of destroying the layouts and
17898         creating new ones.
17899
17900         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
17901         in a few strategic places.
17902
17903 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
17904
17905         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
17906         gtk_widget_size_request() on reparented child, if one. Otherwise,
17907         queue_resize() on the child never results in it getting size-requested
17908         at all.
17909
17910         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
17911         in option menus, so that (with luck) people won't copy it into
17912         their apps in the future.
17913
17914         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
17915         to gtk_option_menu_calc_size. This isn't perfect, but should fix
17916         a lot of problems with changing the size of the menu's menu
17917         items after adding it to the option menu.
17918
17919         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
17920
17921         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
17922         the text direction for a widget changes.
17923
17924         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
17925         ::direction_changed to get rid of various hacks.
17926
17927 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
17928
17929         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
17930         name.
17931
17932 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
17933
17934         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
17935         flag to the structure. Do not call XFreePixmap on pixmaps created
17936         by gdk_pixmap_foreign_new().
17937
17938 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
17939
17940         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
17941         value using GdkRGB functionality given GdkColormap and GdkColor.
17942         (name not final, waiting for inspiration.)
17943         
17944         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
17945         set the foreground/background of a GC using the GC's colormap
17946         and GdkRGB. (name not final, waiting for inspiration.)
17947
17948         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
17949         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
17950
17951         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
17952         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
17953         purely a function of the corresponding colormap. Make
17954         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
17955
17956         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
17957         gdk_pixbuf_*create_from_xpm_* in terms of
17958         gdk_pixbuf_new_from_xpm_data(), move into platform independent
17959         code.
17960
17961         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
17962         advantage of the new draw_rgb_32_image_dithalign.
17963
17964         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
17965
17966         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
17967         on each created GC.
17968
17969         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
17970
17971         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
17972         which we initialize from the drawable when the GC is created,
17973         if the drawable has a colormap.
17974
17975         * gdk/x11/gdkgc-x11.c: include string.h for memset.
17976
17977         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
17978
17979         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
17980
17981 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
17982
17983         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
17984         actually returning expose events, make sure to set
17985         the count field properly.
17986
17987         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
17988         accidentally reintroced bug which always cleared
17989         the graphics_exposures value. 
17990
17991 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
17992
17993         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
17994
17995 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
17996
17997         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
17998
17999 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
18000
18001         * docs/faq/gtk-faq.sgml: Start of Section 6.
18002
18003 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
18004
18005         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
18006         
18007         (Fixes problem with drawing childless frames. Pointed out
18008         by and a first patch from Anders)
18009         
18010         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
18011         compute a child_allocation, even if we don't have a child.
18012
18013         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
18014         Always chain to the parent's impl, even if we don't have a child.
18015
18016 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
18017
18018         * gdk/gdkrgb.c: If possible, create only a single shm segment and
18019         use multiple parts of it instead of creating a bunch of separate
18020         segments, since the maximum number of segments per system is not
18021         large. (This might be worth backporting to GTK+-1.2.x if we make a
18022         new release )
18023
18024         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
18025         structure in preparation for per-colormap GdkRGB.
18026
18027         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
18028         to False when we get EINVAL from shmget so that the caller of
18029         gdk_image_new can retry with a smaller segment size.
18030
18031 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
18032
18033         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
18034
18035 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
18036
18037         * configure.in: make the current version number 1.3.1 (binary age 0,
18038         interface age 0).
18039         
18040         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
18041         gtkcompat.h is all we want.
18042
18043         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
18044         GLib primitive types. fixed g_type_register_fundamental() argument
18045         ordering.
18046
18047         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
18048         compiles.
18049
18050         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
18051         object code cleanup, comment trigraph fixes, etc...
18052
18053 2000-06-23  Havoc Pennington  <hp@redhat.com>
18054
18055         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
18056         instead of making up a bogus name for first_para_mark
18057
18058         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
18059         0 as a context ID
18060
18061 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
18062
18063         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
18064
18065 2000-06-21  Havoc Pennington  <hp@pobox.com>
18066
18067         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
18068         we didn't check window->bg_pixmap != GDK_NO_BG.
18069
18070         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
18071         gdk-pixbuf
18072
18073 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
18074
18075         * docs/faq/gtk-faq.sgm: Move file to here.
18076           TODO: Update Makfile.am 
18077
18078 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
18079
18080         * docs/gtk-faq.sgm: Add Section 2
18081
18082 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
18083
18084         * docs/gtk-faq.sgm: New file. Start of DocBook
18085           version of the FAQ.
18086
18087 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
18088
18089         * configure.in (GDK_PIXBUF_MAJOR): Define version
18090         numbers for GDK_PIXBUF_*, as they get substituted
18091         into a header file. Need to consider versioning
18092         for gdk-pixbuf more carefully later.
18093
18094 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
18095
18096         Work with srcdir != builddir.   
18097         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
18098         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
18099         * demos/testpixbuf.c: Likewise.
18100         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
18101         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
18102         <gdk/x11/gdkx.h>.
18103         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
18104         "gdk-pixbuf.h".
18105         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
18106
18107 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
18108
18109         * TODO.xml: Change 1.4 version numbers to 2.0.
18110
18111 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
18112
18113         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
18114         fixups to GTK+ standard.
18115
18116 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
18117
18118         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
18119         gdk-pixbuf.
18120
18121         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
18122         fixups for GObject.
18123
18124         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
18125         gdk-pixbuf with GDK dependencies moved into GDK.
18126         
18127         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
18128         move gdk-pixbuf-loader here until GObject has signals.
18129
18130         * demos/: New directory of demos. Move demos from
18131         gdk-pixbuf here.
18132
18133         * demos/pixbuf-init.c: Small bit of code to check for
18134         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
18135         set GDK_PIXBUF_MODULEDIR appropriately.
18136
18137         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
18138         define which no longer makes sense.
18139
18140 2000-06-21  Havoc Pennington  <hp@redhat.com>
18141
18142         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
18143         gtk_get_default_language
18144
18145         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
18146         new function to get the default language
18147
18148         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
18149         s/gtk_text_view_style_values/gtk_text_style_values/
18150
18151         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
18152         Add a "language" field to tags.
18153
18154         (gtk_text_tag_set_arg): Fix bug in setting
18155         "bg_full_height_set" tag.
18156
18157 2000-06-21  Havoc Pennington  <hp@redhat.com>
18158
18159         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
18160         in the interfaces
18161
18162         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
18163         stuff instead when possible.
18164
18165         * gtk/gtktexttypes.h: Delete some unused constants
18166
18167         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
18168         testtextbuffer.c: use glib instead of custom unicode routines
18169
18170 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
18171
18172         * docs/es/: Removed mistakenly added generated sgml
18173
18174         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
18175         Remove outdated info files.
18176
18177         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
18178         Moved tutorial files into subdir
18179
18180         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
18181         subdir.
18182
18183         * docs/man/gtk_button.pod: Remove. (contents will be
18184         integrated into gtk-reference button page.)
18185
18186         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
18187         docs/faq/Makefile.am: Adjust for new organization
18188
18189 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
18190
18191         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
18192         not $(MKINSTALLDIRS)
18193
18194 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
18195
18196         * gtk/testgtk.c (create_text): Finish the job Elliot started
18197         of removing font setting test for text widget. (Since text widget
18198         and GdkFont are not deprecated, and cause portability problems.)
18199
18200 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
18201
18202         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
18203         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
18204         Remove use of libunicode in favor of new GLib functions.
18205
18206         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
18207         nano-x, framebuffer. The X11 include is just a hack until we get
18208         the necessary functions in gdkcolor.h, so there is no reason to
18209         add other includes of platforms.
18210
18211         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
18212         window bigger than the screen change.
18213
18214         * gtk/testgtk.c: Revert some random changes from Elliot
18215         that had no particular point and were causing testgtkrc
18216         not to function correctly.
18217         
18218         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
18219         because GdkSegment and GdkRegionBox have the same fields,
18220         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
18221         results in clearer code.
18222
18223         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
18224         gdk_input_translate_coordinates): Fix missed GdkObjectification
18225
18226 2000-06-18  Elliot Lee  <sopwith@redhat.com>
18227
18228         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
18229         * gtk/gtk{plug,socket}.h: Missed commits from previous.
18230
18231 2000-06-20  Havoc Pennington  <hp@redhat.com>
18232
18233         * modules/linux-fb/Makefile.am: Make this compile
18234         without framebuffer enabled
18235
18236         * gdk/linux-fb/Makefile.am: Add conditional to not build
18237         framebuffer unless specified in configure
18238
18239         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
18240         the size of the target instead of source if -1 was passed for
18241         width/height
18242
18243         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
18244         width/height confusion.
18245
18246 2000-06-19  Havoc Pennington  <hp@redhat.com>
18247
18248         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
18249         GDK_DRAWABLE_XID. In the future, we probably want to make it
18250         faster with G_DISABLE_CHECKS turned on.
18251
18252 2000-06-14  Havoc Pennington  <hp@redhat.com>
18253
18254         * gdk/Makefile.am: add gdkpixmap.c
18255
18256         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
18257         s/gdk_image_init/_gdk_windowing_image_init
18258
18259         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
18260         ref/unref
18261
18262         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
18263
18264         * gdk/gdkcompat.h: remove GdkWindowType compat, since
18265         GdkWindowType is now non-deprecated; 
18266         change gdk_window_get_type() compat to be
18267         gdk_window_get_window_type().
18268
18269         * gdk/gdkdnd.h: make GdkDragContext a GObject.
18270
18271         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
18272         virtual GObject. Make all functions call into the vtable.
18273         Move gdk_image_put() guts in here. Remove GdkDrawableType
18274         and gdk_drawable_get_type(), these are now GdkWindow-specific.
18275         draw_image, get_depth, get_size, set_colormap, get_colormap,
18276         get_visual added to the vtable.
18277         
18278         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
18279         GObject. Virtualize everything. 
18280         (gdk_gc_new_with_values): remove check for destroyed window,
18281         because now GdkWindow::create_gc will check this.
18282         (gdk_gc_set_values): New function to set GC values, this 
18283         was already implemented but wasn't in the header
18284
18285         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
18286
18287         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
18288         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
18289         remove _gdk_window_class; add _gdk_window_impl_get_type() and
18290         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
18291         _gdk_windowing_window_init, rename gdk_image_init to
18292         _gdk_windowing_image_init.
18293         
18294         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
18295         (gdk_draw_layout): Remove check for destroyed window, 
18296         because all the drawable methods already check it.
18297         
18298         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
18299         Add gdkpixmap.c which contains implementation of GdkDrawable
18300         virtual table (by chaining to a platform-specific implementation
18301         object).
18302         
18303         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
18304         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
18305         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
18306         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
18307         GdkColormapPrivate. 
18308
18309         * gdk/gdktypes.h: #include <glib-object.h>
18310
18311         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
18312         Move most functionality to platform-specific implementation
18313         object. GdkWindow itself now handles the backing store, then
18314         chains to the platform-specific implementation.
18315         (gdk_window_get_window_type): return GdkWindowType of the window.
18316         (gdk_window_peek_children): New routine, returns the children of 
18317         a GdkWindow
18318         (gdk_window_get_children): Was in X11-specific code and did 
18319         XQueryTree. Changed to simply return a copy of window->children; 
18320         so it can go in cross-platform code.
18321         
18322         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
18323
18324         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
18325         GdkColormap; just changed to use the new private data instead
18326         of casting to GdkColormapPrivate.
18327
18328         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
18329         gdk_cursor_new().
18330
18331         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
18332         (private data member in the GObject). 
18333         (xdnd_manager_source_filter): Function had broken 
18334         error handling, fix it (use gdk_error_trap_push).
18335
18336         * gdk/x11/gdkdrawable-x11.c: This file now implements
18337         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
18338         base class is purely for the convenience of the X port,
18339         and not part of the interface to cross-platform GDK.
18340
18341         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
18342         
18343         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
18344         specific to X, and returned by the create_gc virtual method
18345         of GdkDrawableImplX11. 
18346         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
18347         rather than gchar, this was also changed in the GdkGC vtable.
18348         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
18349         mask is 0, return immediately, instead of checking every flag.
18350         This is faster, and keeps us from segfaulting if values is NULL
18351         and the mask contains some nonzero flags.
18352
18353         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
18354         GdkWindow.
18355
18356         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
18357         GdkWindowPrivate is gone.
18358
18359         * gdk/x11/gdkim-x11.c: rename things that got renamed.
18360
18361         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
18362         remove the image_put stuff that got transferred to GdkDrawable.
18363         
18364         * gdk/x11/gdkinput.c: renamings
18365
18366         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
18367
18368         * gdk/x11/gdkpixmap-x11.c: GObject conversion
18369
18370         * gdk/x11/gdkprivate-x11.h: indentation fixes
18371
18372         * gdk/x11/gdkproperty-x11.c: renamings
18373
18374         * gdk/x11/gdkselection-x11.c: renamings
18375
18376         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
18377         implements the platform-specific "impl" object.
18378         Moved gdk_window_get_children to gdk/gdkwindow.c
18379
18380         * gdk/x11/gdkx.h: Remove all the private structs and private datas
18381         that no longer exist. Add declaration of GdkGCX11 object here.
18382         Fix all the macros to still work. 
18383
18384         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
18385         GdkDragContext from the boxed types since they are now GObjects.
18386
18387         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
18388         moved xthickness/ythickness into the instance. GtkStyleClass
18389         functions are now in the standard vtable for GtkStyle, so you have
18390         to create a GObject subclass to write a theme engine.
18391         (gtk_style_copy): fixed a leaked PangoFontDescription
18392         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
18393         can be the standard GObject function.
18394         
18395         * Throughout GTK:
18396         s/style->klass->[xy]thickness/style->[xy]thickness
18397         s/pango_layout_unref/g_object_unref/
18398
18399         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
18400         
18401         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
18402         accessing GDK internals.
18403
18404         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
18405         accessing GDK internals.
18406
18407 2000-06-18  Elliot Lee  <sopwith@redhat.com>
18408
18409         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
18410
18411         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
18412         problem by calculating event position relative to the trough
18413         rather than the slider.
18414         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
18415
18416         * gdk/gdkgc.h: Add GDK_NOR.
18417
18418         * configure.in, Makefile.am: Add modules top level dir
18419         * configure.in: Only use pangox library if building x11 target.
18420         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
18421
18422 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
18423
18424         * gtk/gtkcolorsel.c: Change private class member to be named
18425         private_data throughout the file.
18426
18427         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
18428         private_data to avoid clashing with keyword.
18429
18430 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
18431
18432         * gdk/gdkdnd.h: Add comment to remove warning.
18433
18434 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
18435
18436         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
18437         Byelorussian language; changed the Makefile and file names 
18438         to reflect that.
18439
18440 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
18441
18442         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
18443         rather than gdk_window_hide; this makes things work
18444         correctly if the window is programmatically hidden while
18445         iconified.
18446
18447 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
18448
18449         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
18450         cut and paste typo where wrong pixmap was being
18451         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
18452
18453 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
18454
18455         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
18456         Add helper function to compute format / bytes 
18457         relationship. Use in a couple places to fix up
18458         errors which assume 8 * format.
18459
18460         * gtk/gtkselection.c (gtk_selection_request): Use 32
18461         rather than 8 * sizeof (GdkAtom), to work correctly
18462         on Alpha.
18463
18464 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
18465
18466         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
18467         libgtk.la
18468         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
18469         versions
18470
18471         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
18472         checking macros return NULL since the function has a return value.
18473
18474 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
18475
18476         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
18477         GTK+ from building at all.
18478
18479         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
18480
18481 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
18482
18483         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
18484         gtk/Makefile.am: make it possible to configure gtk for different
18485         targets on the same platform. The library name is now 
18486         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
18487         flag. Only the x11 target compiles right now.
18488         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
18489         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
18490         * gdk/nanox/gdk*generic*: delete generic region code.
18491         * gdk/linux-fb/gdk*generic*: delete generic region code.
18492         * README.nanox: update information.
18493         
18494 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
18495
18496         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
18497         prepend not append. (Pointed out by Brett Hall.)
18498
18499 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
18500
18501         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
18502
18503 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
18504
18505         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
18506         need this later, and this makes sure that the atexit for
18507         glib gets called after that for GDK, so atexits are
18508         properly ordered for object leak checking.
18509
18510         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
18511
18512         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
18513         pango_x_shutdown_display()
18514
18515         * gtk/simple.c (main): Close window on destroy.
18516
18517 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
18518
18519         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
18520         to treat initial creation different from setting with 
18521         regards to the graphics-exposures parameter, so add a parameter
18522         indicating whether this is initial or not.
18523
18524 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
18525
18526         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
18527         to sort of work by adding an extra return_exposes arg
18528         to gdk_event_translate() - it might be better to simply
18529         deprecate the function altogether and force people to rewrite
18530         without it. gdk_window_scroll() handles most of it, and where
18531         gdk_window_scroll() doesn't work, simply redrawing more does.
18532
18533         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
18534         assertion.
18535
18536         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
18537
18538         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
18539         bunch of pretty much useless /* Print debugging info */ comments 
18540         which had drifted away from the code they were commenting.
18541
18542 2000-06-02  Havoc Pennington  <hp@pobox.com>
18543
18544         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
18545         is in working order.
18546         
18547         * gtk/testtext.c: Change to reflect anonymous mark API
18548
18549         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
18550
18551         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
18552         field, which was unused.
18553
18554         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
18555         saves some typing.
18556
18557         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
18558
18559         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
18560         flag on the insertion point and selection bound
18561
18562         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
18563         make mark-manipulation functions take a GtkTextMark* instead of a
18564         mark name.
18565         
18566         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
18567         GtkTextMarkBody; will be used to detect attempts to delete
18568         the permanent marks (insert and selection bound)
18569
18570         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
18571
18572 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
18573
18574         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
18575         flag to on.
18576
18577         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
18578         Honor DOUBLE_BUFFRED_FLAG
18579
18580         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
18581         function to set the DOUBLE_BUFFERED flag.
18582
18583         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
18584         or not exposes done on the widget should be double-buffered.
18585
18586         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
18587         to be what would be expected. (Fixes problem with a
18588         g_return_if_fail() validating a TextDirection enumeration)
18589
18590 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
18591
18592         * gtk/gtkwidget.c: Remove all references to 
18593         offscreen flag which was no longer used.
18594
18595         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
18596
18597         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
18598         for non-null label_widget->parent.
18599
18600         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
18601         which no longer was used.
18602
18603         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
18604
18605         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
18606         for null arguments.
18607
18608         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
18609         check for destroyed windows.
18610
18611 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
18612
18613         * gtk/gtkimmulticontext.c: Add a finalize method and unref
18614         the slave context there.
18615
18616         * gtk/gtkinvisible.[ch]: Make reference counting behavior
18617         identical to GtkWindow.
18618
18619 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
18620
18621         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
18622         pangox to here, so we can write them independent of rendering
18623         system, using GDK primitives.
18624
18625         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
18626         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
18627         since we have a rendering-system independent implementation in
18628         terms of draw_glyphs().
18629         
18630         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
18631         function to render a single line.
18632
18633         * gdk/x11/gdkpango.c: Move the guts of this file mostly
18634         into ../gdkpango.c, which simplifies things, since we
18635         don't have to deal with raw X gc's.
18636
18637 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
18638
18639         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
18640         get the logical attributes for a given GtkTextLine.
18641
18642 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
18643
18644         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
18645         g_locale_get_codeset() to g_get_codeset() change.
18646
18647 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
18648
18649         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
18650         descriptions.
18651
18652         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
18653         the entry.
18654
18655         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
18656         redoing (vastly simplifying) for Pango. Still needs quite
18657         a bit of work. (Size selection is currently poor. List of 
18658         predefined sizes is not a good idea, since all of these
18659         sizes won't necessarily be distinct.)
18660
18661 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
18662
18663         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
18664         CODESET results for LANG=C.
18665
18666 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
18667
18668         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
18669         which takes a stringized pango font description;
18670         ignore the older 'font' and 'fontset' declarations.
18671
18672         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
18673         field with a GdkFont derived via gdk_font_from_description(),
18674         for compatibility. (Should we just remove it entirely?
18675         Probably too much compatibility breakage, but people
18676         should be migrating to the new Pango stuff as quickly
18677         as possible.)
18678
18679 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
18680
18681         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
18682
18683 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
18684
18685         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
18686         redoing; there are some bugs in size allocation right
18687         now, the semi-existant distinction between header / day
18688         fonts was removed, but, with Pango, could actually
18689         be made functional in a nice way.
18690         
18691         * gtk/testcalender: Move calender from examples into this
18692         directory as a test program. (We really need to restrcture
18693         testgtk into a whole directory full of tests for every
18694         widget or functionality group, separated into multiple .c
18695         files.)
18696
18697 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
18698
18699         * gtk/testgtk.c (file_exists): Fix stupid typo that
18700         was keeping RC file from being loaded.
18701
18702         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
18703         RC file font code.
18704
18705 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
18706
18707         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
18708         Add function to load a GdkFont from a PangoFontDescription.
18709
18710 2000-05-29  Tor Lillqvist  <tml@iki.fi>
18711
18712         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
18713         variable should be of type GdkEventPrivate.
18714
18715 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
18716
18717         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
18718         to have any widget for the label, use a GtkLabel widget
18719         to display the text. (Based partially on a patch from
18720         Anders Carlson.)
18721
18722         (Quite a bit of code reorganization - strip 90% of the
18723         guts out of gtkaspectframe and add a single virtual
18724         func to GtkFrameClass - compute_child_allocation.)
18725
18726 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
18727
18728         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
18729         (Removed clist->row_center_offset field because caching
18730         it wasn't saving time or code, added private function
18731         _gtk_clist_create_cell_layout()).
18732
18733 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
18734
18735         * gtk/gtkaccellabel.c: Pangoized.
18736
18737         * gtk/[hv]ruler.c: Pangoized
18738
18739 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
18740
18741         * gtk/gtkfilesel.c (gtk_file_selection_init):
18742         Use gtk_clist_set_column_auto_resize() to remove need
18743         need for manual column width computations.
18744
18745 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
18746
18747         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
18748         ensuring Pango correctness, and considerably simplifying the
18749         code.
18750         
18751         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
18752
18753         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
18754         getting of numbers of lines.
18755
18756         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
18757         to the actual requested width of the lable, not to the wrap
18758         width we set.
18759
18760         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
18761
18762         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
18763           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
18764
18765         * gtk/gtktextview.c: Fix structure inheritance.
18766
18767         * gtk/gtkprogressbar.c: Pangoize.
18768
18769 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
18770
18771         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
18772         in a function.
18773
18774         * gtk/gtktextlayout.c (find_display_line_above): Fixed
18775         bug with computing line tops.
18776
18777         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
18778
18779 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
18780
18781         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
18782         and y_offset coordinates to do what we need now. (The offset between
18783         buffer and layout coordinates has been reintroduced, but is a 
18784         bit different than before.)
18785
18786         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
18787         handle the adjustments ourselves, and scroll as necessary using
18788         the new gdk_window_scroll().
18789         
18790         The advantage of this is that when we are incrementally revalidating,
18791         we are essentially rearranging things around the visible portion
18792         of the screen. With the old setup, the visible portion of the
18793         screen was moved around in the layout, so scrolling and redrawing
18794         to track that caused jumping of the display. Since we now
18795         control the scrolling ourselves, we can suppress this and
18796         only redraw when things actually change.
18797
18798 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
18799
18800         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
18801         the region not just redisplay it after-all, since we store the
18802         cursors in the LineDisplay. (Ugly interactions here between
18803         GtkLayout and GtkTextBTree here.)
18804         
18805         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
18806
18807 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
18808
18809         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
18810         Added function to scroll contents of a window while keeping the
18811         window constant. Works by XCopyArea or guffaw-scrolling depending
18812         on the details of how the window is set up. (guffaw-scrolling
18813         still needs to be filled in.)
18814
18815 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
18816
18817         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
18818         move the debugging that was tied to a global variable
18819         to that.
18820
18821         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
18822
18823         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
18824         validated flag, in line data instead of setting height/width to
18825         -1. This allows us to perform operations with partially invalid
18826         buffer (using the old size for invalid lines) and thus to do
18827         incremental vaidation. Keep height/width aggregates up to date
18828         when deleting text and rebalancing the tree.
18829
18830         * gtk/gtktextbtree.[ch]: Add functions validate a line
18831         (gtk_text_btree_validate_line), and to validate up
18832         to a number of pixels (gtk_text_btree_validate).
18833
18834         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
18835         that indicates that something is changed and a revalidation
18836         pass is needed. Change ::need_repaint to ::changed, and
18837         make it take old and new yranges instead of a rectangle.
18838
18839         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
18840         the line_data_destroy() function from 
18841         gtk_text_btree_add_view() to a virtual function in 
18842         GtkTextLayout
18843
18844         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
18845         since we are handling partial repaints in a different fashion
18846         now.
18847
18848         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
18849         of the selection instead of queueing a repaint on the
18850         entire widget.
18851
18852         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
18853         get_selection_bounds() down to btree, make the function
18854         in buffer a wrapper around the btree function.
18855
18856         * gtk/gtktextlayout.[ch]: Add functions to check if the
18857         layout is valid and to recompute either a range of pixels
18858         aroudn a line or a certain total number of pixels.
18859
18860         * gtk/gtktextlayout.[ch]: Cache a single line display;
18861         now that we only redraw the needed portions, the hit rate
18862         for this cache is quite high.
18863         
18864         * gtk/gtktextview.[ch]: Keep track of the first paragraph
18865         on the screen so that when re-laying-out the buffer, we can
18866         keep the same place. This requires connecting to ::value_changed
18867         on the adjustments
18868
18869         * gtk/gtktextview.[ch]: Add idle functions to revalidate
18870         the buffer after we receive an ::invalidated signal.
18871         
18872 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
18873
18874         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
18875         to max of allocation and layout size, not just to the
18876         layout size.
18877
18878         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
18879         Invalidate window so it gets redrawn properly.
18880
18881         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
18882         to mean the entire window.
18883
18884         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
18885         into public header.
18886
18887 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
18888
18889         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
18890         to get the name of a mark.
18891
18892         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
18893         to find the paragraph from a y position.
18894
18895 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
18896
18897         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
18898         nodes have width/height >= 0, not > 0.
18899
18900 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
18901
18902         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
18903         Add a size_only flag, so when we only need the size, we don't create
18904         useless appearance attributes.
18905
18906         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
18907         duplicate setting of font description.
18908
18909         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
18910
18911 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
18912
18913         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
18914         EXTRA_DIST. It does not work well when the file that
18915         everything depends on is not in the tarball.
18916
18917 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
18918
18919         * gtk/testgtk.c: Some hacks and fixes so that it basically
18920         works when not sitting in the GTK+ build tree.
18921
18922 2000-05-03  Havoc Pennington  <hp@redhat.com>
18923
18924         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
18925         Properly determine the ordering of the tag root and the current
18926         line within the tree. Previous algorithm only worked if the tag
18927         root's immediate parent was the common root of both the current
18928         line and the tag root.
18929
18930 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
18931
18932         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
18933         alignment.
18934
18935         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
18936         the widget text directional dynamically.
18937
18938         * gtk/gtktextview.[ch]: Added functions to get and set default
18939         wrap mode.
18940
18941 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
18942
18943         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
18944         in cursor location computation.
18945
18946 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
18947
18948         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
18949         vadjusment values properly when layout gets smaller.
18950
18951         * gtk/gtktextview.c (need_repaint_handler): Areas being
18952         passed in are far completely inaccurate, and sometimes
18953         too small, so, for now, just queue a redraw on the
18954         whole visible region.
18955
18956 2000-04-25  Havoc Pennington  <hp@redhat.com>
18957
18958         * gtk/gtktextbtree.c (summary_destroy): new function to 
18959         destroy tag summary nodes
18960         (gtk_text_line_next_could_contain_tag): this function was 
18961         totally broken if the line passed in wasn't below the tag
18962         root. Fix it.
18963         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
18964         "wildcard" case, we have to do a linear scan. Blah.
18965         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
18966         we have to do the linear scan
18967         (tag_removed_cb): When a tag is removed from the tag table, 
18968         remove the GtkTextTagInfo node from the btree.
18969         (gtk_text_btree_spew): Implement the spew function, for 
18970         our debugging pleasure.
18971
18972 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
18973
18974         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
18975         a problem with referring to the wrong buffer.
18976
18977         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
18978
18979         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
18980         font description to gtk_style_new() - otherwise things
18981         don't work without a .gtkrc file.
18982
18983         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
18984         tags table if we create it ourself, too.
18985
18986         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
18987         it was conflicting with XKB modifiers.
18988
18989         * gtk/gtktextview.[ch]: Add simple support for 
18990         GtkIMContext.
18991
18992 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
18993
18994         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
18995         with deletion from last commit.
18996
18997 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
18998
18999         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
19000         in the context from the current locale.
19001         
19002         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
19003         context, not hardcoded value.
19004
19005         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
19006         not logical.
19007
19008 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
19009
19010         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
19011         attributes - that doesn't handle partial-glyph selection
19012         properly. Instead use new pango_layout_line_get_x_ranges()
19013         functionality to draw the selection.
19014
19015         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
19016         now properly handles out-of-range coordinates.
19017
19018         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
19019
19020         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
19021         public.
19022
19023         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
19024         for paragraphs opposite to the base direction of the widget.
19025
19026         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
19027
19028         * gtk/gtktextlayout.c: Don't split segments on marks, since that
19029         causes Arabic words to reshape as you cursor through.
19030
19031         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
19032         cursor position when moving vertically with the arrow keys and
19033         scrolling with page-up/page-down. (Arrow keys save only the X,
19034         scrolling saves both X and Y.)
19035
19036         This means you can line-up / line-down or page-up / page-down
19037         without losing your place, and also that moving vertically
19038         with the cursor keys keeps the same X position, not the same
19039         character count:
19040
19041         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
19042         arrow keys move by display lines, not paragraphs.
19043
19044 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
19045
19046         * gtk/gtklayout.c: Make sure that the bin window is at least
19047         as big as the allocation. (Should we also make sure that the
19048         bin window is big enough to completely cover widget->window?)
19049
19050         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
19051         function to get the onscreen rectangle.
19052
19053         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
19054         for offsets in window coordinates.
19055
19056 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
19057
19058         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
19059         confusion.
19060
19061         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
19062         from the widget direction.
19063
19064         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
19065         Add a "direction" attribute.
19066
19067         * gtk/gtktextview.c: global s/tkxt/text_view/.
19068
19069         * gtk/testtext.c: Added long block of text in Arabic, to test out
19070         the direction attributes. (Some problems with the shaping system
19071         for arabic become obvious - like the fact the cursor splits words
19072         into unjoined pieces.)
19073
19074 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
19075
19076         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
19077
19078         * gtk/gtktextlayout.c: Fix up alignment.
19079
19080         * gtk/testtext.c: Add some tests for centering, wrapping.
19081
19082 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
19083
19084         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
19085         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
19086         If we wrote GTK+-specific layout-render function this could just replace
19087         the draw_layout() operation in the vtable.
19088
19089         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
19090         pango_layout_get_cursor_pos() and use that function.
19091
19092         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
19093         is a non-static symbol.
19094
19095         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
19096         with gtk_text_btree_find_line_by_y()
19097
19098         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
19099         renderer that handles GtkTextAppearance attributes.
19100
19101         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
19102
19103           - Move the values in the style that don't affect geometry into a
19104             GtkTextAppearance structure.
19105           - Change underline to take a PangoUnderline and "font" a string
19106             representation of a font description
19107           - Add a "font_desc" attribute which takes a FontDescription structure.
19108
19109         * gtk/gtktextlayout.[ch]:
19110
19111           - Get rid of the display-line list per each line. Instead, we
19112             generate, on demand, a GtkTextLineDisplay structure which]
19113             contains a PangoLayout * and other necesary information
19114             (offsets, cursor locations) for displaying a paragraph.
19115           - Get rid of the code to wrap lines, create display chunks,
19116             etc. Instead, we just go through a paragraph and convert
19117             it into the necessary inputs to a PangoLayout.
19118           - Implement a new attribute type, GtkTextAttrAppearance. This
19119             holds a GtkTextAppearance, and is used to pass colors, 
19120             stipple, etc, through from the layout to the display without
19121             having to use lots and lots of individual attributes.
19122           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
19123             in terms of PangoLayout functions.
19124         
19125         * gtk/gtktextview.c: 
19126          
19127           - Handle passing the necessary PangoContext to the layout
19128           - Some fixups in painting to deal with the automatic backing store
19129             and offsetting of GTK+-1.4
19130           - Add a style_set handler so that the default style reacts
19131             properly to theme changes.
19132         
19133         * gtk/gtktext?*.[ch]: Random code-style fixes.
19134
19135         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
19136
19137 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
19138
19139         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
19140         in original form preparatory to Pango-ization and gdkimcontext-ization.
19141
19142 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
19143
19144         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
19145         so that we can derive from gtkimcontext in language bindings properly.
19146
19147 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
19148
19149         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
19150         Add a compose table including (almost) all the compose combinations
19151         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
19152         data in the XIM implementation.
19153
19154         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
19155         Moved functions to convert keyvalues from and to unicode here from
19156         the win32 port and made them public.
19157
19158 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
19159
19160         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
19161
19162 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
19163
19164         * gtk/gtkimcontext.[ch]: Base class for new input context system
19165
19166         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
19167         the real input context implementation to be loaded from modules
19168         and switched on the fly.
19169
19170         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
19171         context that just does direct keysymbol => unicode translation.
19172
19173         * gtk/gtkentry.[ch]: Start switching editing over to using
19174         GtkInputContext. (No handling of preedit yet.)
19175
19176 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
19177
19178         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
19179         many substitutions. (klass should not be subsituted.)
19180
19181 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
19182
19183         * configure.in: Add checks for Pango
19184
19185         * configure.in docs/Makefile.am: Add test for sgml2html
19186         and allow 'make dist' without building html, but print out
19187         warnings in that case. (For making snapshots)
19188
19189         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
19190         Add Pango libraries and C flags
19191
19192         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
19193         Add function (gdk_draw_layout) to draw a pango layout.
19194
19195         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
19196         for getting Pango contexts for GDK.
19197
19198         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
19199
19200         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
19201         editing.
19202
19203         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
19204         keysym => unicode translations. More languages can be added
19205         here, but real input-method support is needed.
19206
19207         * docs/Changes-1.4.txt: Added note about entry behavior.
19208         
19209         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
19210         to set the reading direction for a widget and the global direction.
19211         Add test which allows toggling the global direction. Two private
19212         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
19213
19214         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
19215           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
19216
19217         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
19218
19219         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
19220         underlining now handled by Pango.
19221
19222         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
19223         to RCStyle and Style. (Having both this and the old font name and GdkFont 
19224         is temporary.)
19225
19226         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
19227         convenience functions for creating contexts and layouts for widgets.
19228
19229         * gtk/testgtk.c: Enhance label tests with multilingual labels.
19230
19231 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
19232
19233         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
19234         titles to be active, even if they aren't visible.
19235         (gtk_clist_column_titles_passive):  Ditto.
19236
19237 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
19238
19239         * gtkmenu.c:
19240         * gtkmenu.h:
19241         * gtktypeutils.h: Spelling/grammar fixes in comments.
19242
19243 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
19244
19245         * gdk/nanox/*.h: add missing header files.
19246
19247 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
19248
19249         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
19250         send_event to TRUE.
19251         (gtk_drawing_area_size): queue a resize.
19252
19253 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
19254
19255         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
19256         the handlers, also invalidate them. bug nailed down by Karl Nelson
19257         <kenelson@ece.ucdavis.edu>.
19258
19259 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
19260
19261         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
19262         "(nil)" foundries, patch from Grigorios Magklis.
19263
19264         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
19265         on non-available fonts, based on a patch by Grigorios Magklis
19266         <maglis@cs.rochester.edu>.
19267
19268 2000-05-18  Elliot Lee  <sopwith@redhat.com>
19269
19270         * gdk/x11/gdkregion-generic.c: If a region does not have any
19271         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
19272         instead of GDK_OVERLAP_RECTANGLE_IN.
19273
19274 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
19275
19276         * gtk/gtklayout.c (gtk_layout_map): Remove references to
19277         OFFSCREEN, as it is no longer necessary.
19278
19279 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
19280
19281         * gtk/gtkcolorsel.c: Patch from David Santiago
19282         <mrcooger@cyberverse.com> to change things so that the 
19283         indicator of the active palette entry is done independently,
19284         not via the focus, since it should always be visible.
19285
19286 2000-05-17  Tor Lillqvist  <tml@iki.fi>
19287
19288         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
19289         refcount leaks as in the X11 backend.
19290
19291         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
19292         cosmetics.
19293
19294         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
19295         backend. Add _gdk_windowing_window_destroy().
19296
19297         * gtk/gtkcolorsel.c: Include correct backend-specific header.
19298         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
19299         either, but these probably do exist on nanox?)
19300         
19301         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
19302         which isn't necessarily defined by <math.h>.
19303
19304         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
19305         ancestry past GtkObject.
19306
19307         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
19308         from DLL on Win32.
19309
19310         * gtk/gtk.def: Update corresponding to recent changes.
19311
19312         * gtk/makefile.{cygwin,msc}: Updates.
19313
19314 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
19315
19316         * docs/Changes-1.4.txt: A bit of editing.
19317
19318         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
19319         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
19320         to clear the update area for the window, and clear it
19321         when hiding a window.
19322
19323         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
19324         if window destroyed.
19325
19326         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
19327
19328         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
19329         gdk_window_destroy() to the generic code, since there was a lot of 
19330         window-system-independent logic it in. Add a function:
19331         
19332          _gdk_window_destroy() 
19333
19334         to the internal API to destroy a window without unreferencing it.
19335         Add a function:
19336
19337          _gdk_windowing_window_destroy()
19338
19339         That does the windowing-system-dependent part of destroying 
19340         the window.
19341
19342 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
19343
19344         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
19345
19346 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
19347
19348         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
19349         Make gtk_widget_shape_combine_mask() keep a reference count on
19350         the pixmap since it keeps it around.
19351
19352 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
19353
19354         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
19355         leak.
19356
19357         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
19358         leak with event filters.
19359
19360 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
19361
19362         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
19363         signal handlers with the right data arguments. (Fixes
19364         some warnings when a widget was repeatedly set as a drag
19365         destination.)
19366
19367         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
19368         window so we can avoid avoid setting the DND properties on the
19369         toplevel window repeatedly.
19370
19371 2000-05-13  Tor Lillqvist  <tml@iki.fi>
19372
19373         * gdk/win32/gdkwin32.h: Define more message types missing from
19374         mingw headers.
19375
19376         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
19377         call gdk_window_destroy_notify(). It was never called. This
19378         probably meant that the GdkWindow was never freed. Thanks Owen for
19379         noticing (!).
19380
19381         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
19382         window as destroyed before calling DestroyWindow(). DestroyWindow()
19383         causes a call to the window procedure (gdk_WindowProc), which
19384         calls gdk_event_translate(), which calls
19385         gdk_window_destroy_notify(), which gets confused unless the window
19386         is set as destroyed.
19387
19388         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
19389         this function to indicate it's win32 only. Put inside #ifdef
19390         G_ENABLE_DEBUG.
19391
19392         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
19393         debugging function. (gdk_event_translate:) Add a default branch
19394         that uses the above function to print debug messages with all
19395         Windows messages symbolically.
19396
19397         * gdk/win32/gdkprivate-win32.h: Declare it, and
19398         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
19399
19400 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
19401
19402         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
19403         public header file.
19404
19405 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
19406
19407         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
19408
19409         * gtk/gtktext.c: made the adjustments no-construct args, simply
19410         provide default adjustments.
19411         (gtk_text_destroy): release adjustments.
19412
19413         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
19414         adjustment argument non-construct.
19415
19416         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
19417         instead of in finalize.
19418         (gtk_progress_get_text_from_value): 
19419         (gtk_progress_get_current_text): 
19420         (gtk_progress_set_value): 
19421         (gtk_progress_get_percentage_from_value): 
19422         (gtk_progress_get_current_percentage): 
19423         (gtk_progress_set_percentage): 
19424         (gtk_progress_configure): ensure an adjustment is present.
19425
19426 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
19427
19428         * gtk/gtkcolorsel.[hc]:
19429         * gtk/gtkcolorseldialog.[hc]:
19430         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
19431         their parent implementation, use bit fields for boolean values, don't
19432         create unused widgets, usage of glib types, braces go on their own
19433         lines, function argument alignment, #include directives etc. etc. etc..
19434
19435         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
19436
19437 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
19438
19439         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
19440
19441         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
19442         of NULL.
19443
19444         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
19445         to freed data.
19446         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
19447
19448         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
19449         to NULL when the toplevel is getting destroyed.
19450         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
19451         (gtk_menu_destroy): 
19452         (gtk_menu_init): store the information of whether we have to
19453         readd the initial child ref_count during destruction in a new
19454         GtkMenu field needs_destruction_ref_count.
19455
19456         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
19457         here, those reading: learn from my mistake! ;)
19458         in order for set_?adjustment to support a default adjustemnt if
19459         invoked with an adjustment pointer of NULL, the code read (pseudo):
19460         if (v->adjustment) unref (v->adjustment);
19461         if (!adjustment) adjustment = adjustment_new ();
19462         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
19463         now imagine the first unref to actually free the old adjustment and
19464         adjustment_new() creating a new adjustment from the very same memory
19465         portion. here, the latter comparision will unintendedly fail, and
19466         all hell breaks loose.
19467         (gtk_viewport_set_hadjustment):
19468         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
19469         after unreferencing it.
19470
19471         * gtk/gtkcontainer.[hc]: removed toplevel registration
19472         functions: gtk_container_register_toplevel(),
19473         gtk_container_unregister_toplevel() and
19474         gtk_container_get_toplevels() which had wrong semantics
19475         anyways: it didn't reference and copy the list.
19476
19477         * gtk/gtkwindow.c: we take over the container toplevel registration
19478         bussiness now. windows are registered across multiple destructions,
19479         untill they are finalized. the initial implicit reference count
19480         users are holding on windows is removed with the first destruction
19481         though.
19482         (gtk_window_init): ref & sink and set has_user_ref_count, got
19483         rid of gtk_container_register_toplevel() call. add window to
19484         toplevel_list.
19485         (gtk_window_destroy): unref the window if has_user_ref_count
19486         is still set, got rid of call to
19487         gtk_container_unregister_toplevel().
19488         (gtk_window_finalize): remove window from toplevel list.
19489         (gtk_window_list_toplevels): new function to return a newly
19490         created list with referenced toplevels.
19491         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
19492
19493         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
19494         adjustment a non-construct arg.
19495         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
19496         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
19497         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
19498
19499         * gtk/gtkrange.c: added some realized checks.
19500         (gtk_range_destroy): get rid of the h/v adjustments in the
19501         destroy handler instead of finalize. remove timer.
19502         (gtk_range_get_adjustment): demand create adjustment.
19503
19504         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
19505         we simply create them on demand now and get rid of them in
19506         the destroy handler.
19507         (gtk_viewport_destroy): get rid of the h/v adjustments in the
19508         destroy handler instead of finalize.
19509         (gtk_viewport_get_hadjustment): 
19510         (gtk_viewport_get_vadjustment): 
19511         (gtk_viewport_size_allocate): demand create h/v adjustment
19512         if required.
19513
19514         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
19515         gtk_widget_real_destroy () functionality.
19516         (gtk_widget_real_destroy): reinitialize with a new style, instead
19517         of setting widget->style to NULL.
19518
19519 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
19520
19521         * gtk/gtkcalendar.c:
19522         * gtk/gtkbutton.c: ported _get_type() implementation over to
19523         GType, either to preserve memchunks allocation facilities,
19524         or because Gtk+ 1.0 GtkTypeInfo was still being used.
19525
19526         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
19527         over. prepare for ::destroy to be emitted multiple times.
19528         removed reference tracer magic. chain into GObjectClass.shutdown()
19529         to emit ::destroy signal.
19530
19531         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
19532         fundamental.
19533
19534         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
19535         cludge.
19536
19537         * gtk/gtksocket.c:
19538         * gtk/gtkplug.c:
19539         * gtk/gtklayout.c:
19540         * gtk/gtklabel.c:
19541         * gtk/gtkargcollector.c:
19542         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
19543         not being a fundamental anymore, and to work with the new
19544         type system (nuked fundamental type varargs clutter).
19545
19546         * gtk/*.c: install finalize handlers in the GObjectClass
19547         part of the class structure.
19548         changed direct GTK_OBJECT()->klass accesses to
19549         GTK_*_GET_CLASS().
19550         changed direct object_class->type accesses to GTK_CLASS_TYPE().
19551
19552         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
19553         GType. made most of the GTK_*() type macros and Gtk* typedefs
19554         simple wrappers around macros and types provided by GType.
19555         most notably, a significant portion of the old API vanished:
19556         GTK_TYPE_MAKE(),
19557         GTK_TYPE_SEQNO(),
19558         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
19559         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
19560         GTK_TYPE_ARGS,
19561         GTK_TYPE_CALLBACK,
19562         GTK_TYPE_C_CALLBACK,
19563         GTK_TYPE_FOREIGN,
19564         GtkTypeQuery,
19565         gtk_type_query(),
19566         gtk_type_set_varargs_type(),
19567         gtk_type_get_varargs_type(),
19568         gtk_type_check_object_cast(),
19569         gtk_type_check_class_cast(),
19570         gtk_type_describe_tree(),
19571         gtk_type_describe_heritage(),
19572         gtk_type_free(),
19573         gtk_type_children_types(),
19574         gtk_type_set_chunk_alloc(),
19575         gtk_type_register_enum(),
19576         gtk_type_register_flags(),
19577         gtk_type_parent_class().
19578         replacements, where available are described in ../docs/Changes-1.4.txt.
19579         implemented compatibility functions for the remaining API.
19580
19581         * configure.in: depend on glib 1.3.1, use gobject module.
19582
19583 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
19584
19585         * TODO.xml: Various updates to current status.
19586
19587 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
19588
19589         * gtk.m4: Print out version when test succeeds.
19590
19591 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
19592
19593         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
19594         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
19595         
19596         (Original triangle color selector from Simon Budig
19597         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
19598         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
19599         Santiago <mrcooger@cyberverse.com>)
19600
19601         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
19602         out into a separate widget.
19603
19604         * gtk/testgtk.c: Add some checkbuttons for toggling palette
19605         and opacity controls.
19606
19607 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
19608
19609         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
19610         snuck in prematurely.
19611
19612 2000-05-07  Tor Lillqvist  <tml@iki.fi>
19613
19614         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
19615         had deleted a ! operator by mistake, which caused
19616         GDK_SELECTION_CLEAR events never to be generated, which caused
19617         only the first copy to the clipboard from an gtkeditable to
19618         actually cause a copy to the Windows clipboard.
19619
19620 2000-05-06  Tor Lillqvist  <tml@iki.fi>
19621
19622         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
19623         compilation, too. Current mingw gcc distributions include the
19624         necessary headers. Also the necessary IIDs are now in mingw
19625         headers/libraries, and own definitions unnecessary.
19626
19627         More hacking on OLE2 DND, still doesn't work though, and thus
19628         ifdeffed out.
19629
19630         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
19631         here, too.
19632
19633 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
19634
19635         * gdk/nanox/*: nano-X port work in progress.
19636         * gdk/simple.c: simple test for Gdk.
19637         * README.nanox: notes about the port: read this first!
19638         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
19639         with nano-X.
19640
19641 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
19642
19643         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
19644         gdk_window_clear() into common code, implement in terms of
19645         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
19646         not redirected to the backing rectangle.
19647
19648 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
19649
19650         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
19651         EXTRA_DIST. It does not work well when the file that
19652         everything depends on is not in the tarball.
19653
19654 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
19655
19656         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
19657         with recursion where process_updates() is called from
19658         an expose handler. (GtkTextView is highly broken in
19659         doing this, but it should work, so it is a nice test
19660         case.)
19661
19662 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
19663
19664         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
19665         handle the case where updates are queued during processing of
19666         updates.
19667
19668 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
19669
19670         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
19671         window is on gdk_display - use that instead of segfaulting.
19672
19673 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
19674
19675         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
19676         broken and require an empty arg, give it to them.
19677
19678 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
19679
19680         * gtk/gtklabel.h: indentation fixes.
19681
19682 2000-05-02  Tor Lillqvist  <tml@iki.fi>
19683
19684         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
19685         draw too narrow or too low arcs, they seem to fail, at least with
19686         some display drivers.
19687
19688         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
19689
19690         Large changes to the Win32 backend, partially made necessary by
19691         the changes to the backend-independent internal
19692         structures. Attempts to implement similar backing store stuff as
19693         on X11. The current (CVS) version of the Win32 backend is *not* as
19694         stable as it was before the no-flicker branch was merged. A
19695         zipfile with that version is available from
19696         http://www.gimp.org/win32/. That should be use by "production"
19697         code until this CVS version is usable. (But note, the Win32
19698         backend has never been claimed to be "production quality".)
19699
19700         * README.win32: Add the above comment about versions.
19701
19702         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
19703
19704         * gdk/gdk.def: Update.
19705
19706         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
19707         presumably be replaced by some more better mechanism as 1.4 gets
19708         closer to release shape.
19709
19710         * gdk/makefile.{cygwin,msc}: Update.
19711
19712         * gdk/win32/*.c: Correct inclusions of the backend-specific and
19713         internal headers. Change code according to changes in these. Use
19714         gdk_drawable_*, not gdk_window_* where necessary.
19715
19716         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
19717         our old DND.
19718
19719         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
19720         to interpret single characters as UTF-8. Thanks to Hans Breuer.
19721         Use correct function name in warning messages.
19722
19723         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
19724         GSourceFuncs gdk_event_prepare and gdk_event_check.
19725         (gdk_event_get_graphics_expose): Do implement, use
19726         PeekMessage. Thanks to Hans Breuer.
19727         (event_mask_string): Debugging function to print an GdkEventMask.
19728         (gdk_pointer_grab): Use it.
19729
19730         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
19731         (old) book I used claimed was Hangul actually is CJK Unified
19732         Ideographs Extension A. Also, Hangul Syllables were missing.
19733         Improve logging.
19734
19735         * gdk/win32/gdkgc-win32.c: Largish changes.
19736
19737         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
19738         g_win32_getlocale() from GLib, and not setlocale() to get current
19739         locale name.
19740
19741         * gdk/win32/gdkprivate-win32.h
19742         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
19743         gdkwin32.h, similarily as in the X11 backend.
19744
19745         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
19746         assignment was used instead of equals in if test. Thanks to Hans
19747         Breuer.
19748
19749         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
19750         the X11 version.
19751
19752         * gdk/win32/makefile.{cygwin,msc}
19753         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
19754         path to the Win32 headers that works also with the mingw compiler.
19755
19756         * gtk/gtkstyle.c: Include <string.h>.
19757
19758 2000-04-26  Havoc Pennington  <hp@redhat.com>
19759
19760         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
19761         replacing the broken gtk_label_get ()
19762
19763 2000-04-15  Havoc Pennington  <hp@pobox.com>
19764
19765         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
19766         this keeps scanner scripts from getting confused.
19767
19768         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
19769         data, rather than void
19770
19771 2000-04-15  Tor Lillqvist  <tml@iki.fi>
19772
19773         * gtk/gtkclist.c (gtk_clist_motion)
19774         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
19775         with is_hint FALSE, get x and y from the event. They used to be
19776         used uninitialised. The Win32 backend never sends motion events
19777         marked as hints. This for instance fixes the annoying file and
19778         font selector behaviour in the Win32 version.
19779
19780 2000-04-14  Tor Lillqvist  <tml@iki.fi>
19781
19782         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
19783         gtk_private_n_signals variables, they are used by some software,
19784         sigh.
19785
19786         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
19787         installation directory from the Registry, where the installer
19788         should have put it.
19789
19790 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
19791
19792         * gdk/x11/Makefile.am: Fix problem with installation directory for
19793         gdkx.h
19794
19795         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
19796         <mrcooger@cyberverse.com> so that when selecting menus with the
19797         mouse, the first item will not be selected, but when selecting
19798         with an accelerator, or navigating left-right on a menubar with
19799         the menus popped up, the first item will be selected.
19800
19801 2000-04-05  Dan Damian  <dand@dnttm.ro>
19802
19803         * configure.in: Added "ro" to ALL_LINGUAS.
19804
19805 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
19806
19807         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
19808         indentation.
19809
19810         * Makefile.am (EXTRA_DIST): Fix typo.
19811
19812         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
19813         to catch gdkconfig.h
19814
19815         * gtk/gtkitemfactory.c: Added FIXME.
19816
19817 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
19818
19819         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
19820         s/return_if_fail/return_val_if_fail/g and add a return value.
19821
19822 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
19823
19824         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
19825         merge slipup.
19826
19827         * gdk/gdkinput.h: Fix missing line from merge.
19828
19829 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
19830
19831         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
19832         instead of gdkprivate.h.
19833
19834 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
19835
19836         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
19837         parent class to correctly be GtkDialogClass.
19838
19839 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
19840
19841         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
19842         toplevel windows and their immediate children by their parents,
19843         since the size of toplevel windows is out of our immediate
19844         control and we don't get any real benefit from trying to track
19845         this size for clipping.
19846
19847         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
19848         for input_only windows.
19849
19850         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
19851         to fix some hacks and make sure that we don't try to set the
19852         background of input only windows.
19853
19854 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
19855
19856         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
19857         the _really_ internal stuff, and leave gdkprivate.h for the fake private
19858         stuff that we've traditionally exposed.
19859
19860         * gdk/**.c: Use gdkinternals.h where appropriate.
19861
19862         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
19863         not include gdkprivate-x11.h, move all stuff of conceivable public
19864         interest into gdkx.h; keep all really private stuff in
19865         uninstalled header gdkprivate-x11.h.
19866
19867         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
19868         image->image_put on windows through a new function _gdk_window_draw_image()
19869         to allow us to do backing store for images. (Sort of ugly)
19870
19871         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
19872         contexts locally so that we can offset them properly when drawing 
19873         onto backing pixmaps.
19874
19875         * gdk/gdkinput.h: Reindented
19876
19877         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
19878         pixmap or color for the window, so we can properly initialize
19879         our double-buffer pixmaps, and also so that we temporarily set
19880         a background of None while scrolling.
19881
19882         * gdk/gdkregion.h: Revise region boolean operators to have an
19883         interface that is actually convenient - switch from creating new
19884         regions on every op, to "methods" that modify existing regions
19885         (A = A OP B). 3 argument forms which allow dest == src, would also
19886         be possible, but the current interfaces seem to map nicely
19887         onto what needs to be done. (There is quite a lot of region
19888         code in GDK now.)
19889
19890         * gdk/gdkregion.h: Add constructor from rectangle and a copy
19891         operator.
19892
19893         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
19894         gdkpoly-generic.h: Copy region code from Xlib, switch it over
19895         to 32 bit coordinates, modify it to be mostly GTK+ style
19896         and to have interfaces that match gdkregion.h.
19897
19898         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
19899         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
19900         create a backing pixmap and redirect all drawing to
19901         that backing pixmap until a matching gdk_window_end_paint().
19902
19903         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
19904         Create a special drawable class for GtkWindow's that 
19905         redirects the drawing to the backing pixmap as necessary
19906         and then calls the real operations in _gdk_windowing_window_class.
19907
19908         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
19909         Store invalid region for each window. Generate expose events for invalid
19910         region in an idle. This replaces both the expose compression
19911         and the redrawing queuing in GTK+. It is both more efficient and
19912         simpler than either one individually and far more so then the
19913         combination.
19914
19915         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
19916         Emulate 32 bit coordinates for windows with 16 bit coordinates
19917         by offsetting drawing, guffaw scrolling techniques and
19918         mapping/unmapping child windows as necessary.
19919
19920         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
19921         where, when invalid regions are processed, the region is stored,
19922         and if expose events come in that are detectably duplicate
19923         the processed exposes (by comparison of event serial numbers),
19924         the stored region is subtracted out of those exposes.
19925
19926         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
19927         regions newly exposed when scrolling or resizing windows.
19928         This, combined with forcing processesing of queued invalidated
19929         regions, gives nice flicker-free scrolling.
19930
19931         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
19932         invalidated regions after every scroll.
19933
19934         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
19935         emulation in GDK. Its, for all practical purposes just a
19936         GtkViewport/GtkFixed hybrid now.
19937
19938         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
19939         (16-bit) structures as necessary instead of just casting.
19940
19941         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
19942         in terms of the structures from gdkregion-generic.c, using appropriate
19943         offsets from GDK to X11 coordinates. Cache clip mask and
19944         origin and ts origin locally and only flush to the server
19945         when drawing, to avoid constantly setting and resetting these
19946         values when offsetting GC's for scrolling and backing pixmaps.
19947
19948         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
19949
19950         * gtk/gtkcontainer.c: Call process_all_updates at end
19951         of resizing to reduce flicker. (Avoids having redraw
19952         lag arbitrarily behind resize under some circumstances)
19953
19954         * gtk/gtkentry.c: Remove old backing store code, and simply take
19955         advantage of the new backing store capabilities of GDK.
19956
19957         * gtk/gtkmain.c: Simple implementation of widget backing
19958         store - simply push a paint while handling each expose.
19959         (Should really be configurable widget for widget.)
19960         
19961         * gtk/gtkwidget.c: Remove all the old complicated redraw
19962         code, and simply invalidate the GDK windows from
19963         gdk_window_queue_clear(), etc. (Sigh, so much carefully
19964         debugged complexity ... gone to the winds.)
19965
19966         Remove all the code for suppressing expose events while
19967         resizes are pending; this isn't needed since the invalid
19968         areas won't be processed until after the resizes are
19969         processed, since they are in a lower priority idle.
19970
19971 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
19972
19973         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
19974         and height of dest rectangle for non-intersecting rectangles.
19975
19976 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
19977
19978         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
19979         for GdkRectangle.
19980
19981 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
19982
19983         * gdk/gdk{events,image,private,types,window}.h
19984          gdk/x11/gdkinputprivate.h: Change all coordinates
19985          from int16 to int. Also, Change width and height from
19986          unsigned to signed to avoid all the stupid C 
19987          signedness bugs.
19988
19989 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
19990
19991         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
19992         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
19993         Add some more detailed checking.
19994
19995         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
19996         New function to retrieve the depth of a drawable.
19997
19998         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
19999         field, reorder fields to save memory. 
20000
20001 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
20002
20003         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
20004         of the background image instead of scaling the background down to
20005         a line.
20006
20007         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
20008         which temporarily set slider to wrong size.
20009
20010         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
20011         queue_clear().
20012
20013 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
20014
20015 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
20016
20017         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
20018
20019 2000-03-17  Tor Lillqvist  <tml@iki.fi>
20020
20021         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
20022         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
20023
20024         * gdk/win32/gdkfont-win32.c
20025         * gdk/win32/gdkproperty-win32.c
20026         * gdk/win32/gdkselection-win32.c
20027         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
20028         now declared such.
20029
20030 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
20031
20032         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
20033
20034 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
20035
20036         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
20037         is called without trapping X errors.
20038
20039 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
20040
20041         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
20042         way into the fontset lists.
20043
20044 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
20045
20046         * gtk/gtkthemes.h: add extern "C" scope.
20047
20048 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
20049
20050         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
20051         to make appends to the list constant. (gtk-guy-990901-0.patch)
20052
20053 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
20054
20055         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
20056         for the typename hash table.
20057
20058 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
20059
20060         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
20061         to make sure we never divide by zero. 
20062         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
20063
20064 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
20065
20066         * gtk/gtkfontsel.c: Apply patch from
20067         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
20068         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
20069
20070         Also, some cleanups in atom handling.
20071
20072 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
20073
20074         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
20075         not GtkWidget.
20076
20077 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
20078
20079         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
20080         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
20081         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
20082         more guint wrap-around bugs before going to bed.
20083
20084 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
20085
20086         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
20087         guint wrap arounds in allocation.width.
20088
20089         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
20090         process untill we fit the allocation given.
20091
20092 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
20093
20094         * gtk/gtkwidget.c:
20095         (gtk_widget_unrealize): guard widget access with ref/unref
20096         around signal emission.
20097         (gtk_widget_hide): same here, but also check its destroyed
20098         state before queueing a resize.
20099
20100 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
20101
20102         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
20103         of gtk_default_insensitive_bg as insensitive base color.
20104
20105         * gtk/gtktext.c (gtk_text_style_set): set the background color according
20106         to the widget's state.
20107         (gtk_text_realize): same here.
20108         (gtk_text_state_changed): same here.
20109         (draw_bg_rect): compare background color against base[] from
20110         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
20111
20112 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
20113
20114         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
20115         grabs are active, unless a delete event is send to the toplevel
20116         of the currently grab holding widget.
20117
20118 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
20119
20120         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
20121         debugging g_print's.
20122
20123 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
20124
20125         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
20126         ever make the scrolled-window requisition ever depend on the 
20127         visibility state of the scrollbars for the AUTOMATIC policy. 
20128         This breaks the GTK+ requisition model, and causes loops.
20129
20130 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
20131
20132         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
20133         the default font to avoid problems with XFree86-4.0 where the
20134         default charset is iso10646-1, not iso8859-1.
20135
20136 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
20137
20138         * acinclude.m4
20139         * config.guess
20140         * config.sub
20141         * ltconfig
20142         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
20143
20144         * gtk/Makefile.am: minor cosmetic consistency tweak
20145
20146 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
20147
20148         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
20149         the activate_time to 0, so that we handle a quick
20150         press/release press/release properly and don't suppress
20151         the second release. (Red Hat bug #7545)
20152
20153 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
20154
20155         * gtk/gtkctree.c (row_delete):
20156         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
20157         bugs with destruction notifier, *always* update internal
20158         structures *before* calling user code.
20159
20160 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
20161
20162         A few more fixes for bug #5487, #2051, #2677.
20163         * gtk/gtkclist.c : 
20164         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
20165         not GDK_BUTTON_PRESS.
20166         (resync_selection): resync only if selection_mode is
20167         GTK_SELECTION_EXTENDED
20168         * gtk/gtkctree.c (resync_selection): same here
20169
20170 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
20171
20172         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
20173         gdk_drag_get_selection() and gtk_menu_detach().
20174
20175         [ From Jeroen Ruigrok/Asmodai ]
20176
20177 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
20178
20179         * gtk/gtknotebook.c (gtk_notebook_size_request): 
20180         page->tab_label can be NULL.
20181
20182 2000-01-25  Havoc Pennington  <hp@pobox.com>
20183         
20184         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
20185         arg is boolean
20186
20187         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
20188
20189         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
20190
20191         * gdk/gdkproperty.c (gdk_property_get): return boolean
20192
20193         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
20194
20195         * gdk/gdkim.c (gdk_im_ready): return boolean
20196
20197         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
20198
20199         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
20200         glib clash, should fix glib)
20201
20202         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
20203         (gdk_get_show_events): return gboolean, and canonicalize 
20204         to TRUE/FALSE
20205
20206         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
20207         colormap is private
20208         (gdk_colors_alloc): gboolean whether to be contiguous
20209         (gdk_color_equal): return gboolean since we are a predicate
20210         and not a qsort() (this looks semi-wrong due to glib breakage,
20211         IMO glib should be fixed)
20212         
20213         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
20214         (gdk_get_use_xshm): return gboolean
20215         (gdk_pointer_is_grabbed): return gboolean
20216
20217         * gdk/gdk.h: Change prototypes to match all the above changes,
20218         and re-run egtk-format-protos as required.
20219
20220 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
20221
20222         * gtk/gtkctree.c (resync_selection): 
20223         * gtk/gtkclist.c (resync_selection):
20224
20225         Return immediately if clist->drag_pos < 0. This is a workaround
20226         for the corrupt state that the clist gets into when a
20227         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
20228
20229         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
20230         
20231         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
20232         variable from recent commit.
20233
20234 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
20235
20236         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
20237
20238 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
20239
20240         * gtk/Makefile.am: prefix all autogenerated source that get build in
20241         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
20242         in builddir. since we subsequently cd into srcdir for autogeneration,
20243         the paths have to be stripped from the target file names, thusly we
20244         use $(@F) as target names now.
20245         put a comment about configure.in's --disable-rebuilds option,
20246         which can be used for non-writable source directories, for development
20247         setups though, srcdir has to be *writable*.
20248
20249 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
20250
20251         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
20252           Finish the job of allowing event to be NULL.
20253           (Fixes bug #4283, reported by Chris Blizzard)
20254
20255         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
20256           things so that the cursor appears on screen, properly
20257           take into account INNER_BORDER.
20258           (Fixes bug #4754, reported by Antonio Campos)
20259
20260 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
20261
20262         * gtk/gtknotebook.c (gtk_notebook_map): Don't
20263           show the tab_label unless it itself is visible.
20264
20265           gtk/gtknotebook.c (gtk_notebook_size_request):
20266           Do a better job of making sure that the visibility
20267           of the tab label corresponds to whether it should
20268           be mapped or not.
20269
20270 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
20271
20272         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
20273           Use the requisition, not the allocation, since the
20274           allocation has not necessarily been computed yet.
20275           (Pointed out by Eugene Osintsev)
20276
20277 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
20278
20279         * gtk/gtkstyle.c (gtk_style_new): Dont' set
20280           style/base[GTK_STATE_INSENSITIVE] both to
20281           gtk_default_insensitive_bg!
20282           (Bug #2187, reported by Jonathan Blandford)
20283
20284         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
20285           Add Alt_L, Alt_R to list of invalid accelerators.
20286           (Bug #3736, reported by Vlad Harchev)
20287
20288 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
20289
20290         * gtk/gtkfilesel.c (open_ref_dir): Fix several
20291         bugs which occured after an attempt to open 
20292         invalid home directory left cmpl_state->reference_dir == NULL.
20293
20294          - completion on files in home directory didn't work
20295          - completion on an empty string caused  segfault
20296
20297          (Bug #3678, reported by Steve Ratcliffe)
20298
20299         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
20300         cut and paste error that was causing scales to
20301         be incorrectly positioned.
20302         (Bug #2956,
20303          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
20304
20305 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
20306
20307         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
20308         when checking for dcgettext, if we've found we needed
20309         it for dgettext.
20310 +
20311 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
20312
20313         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
20314         queue_clear on NO_WINDOW widgets during a reparent,
20315         since at that point the window and widget heirarchies
20316         are out of sync. This stops crashing in some cases
20317         (the scrolled window reparent test, for instance), and
20318         _probably_ won't cause drawing errors.
20319
20320         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
20321         test do what it was supposed to do and be robust against
20322         window closings, etc. (Bug #2443)
20323
20324 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
20325
20326         * gtk/gtkentry.c: Fix return values on mouse events.
20327         (Bug #2686, Sky <seb_sky@yahoo.com>)
20328
20329         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
20330         (pointed out by George Lebl)
20331
20332         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
20333         (From Ettore Perazzoli  <ettore@helixcode.com>)
20334  
20335 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
20336
20337         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
20338         clicks between rows or outside calender area correctly.
20339         (Patch from Damon Chaplin)
20340
20341         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
20342         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
20343           Call destroy function when overwriting existing data. 
20344           (Pointed out by Damon Chaplin)
20345
20346 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
20347
20348         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
20349           which was causing problems on various systems with Xmu.
20350           This hasn't been needed for a very long time.
20351           (Fixes #1185 3167)
20352
20353 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
20354
20355         * gdk/gdki18n.h: Include <ctype.h> when defining
20356           gdk_isw* in terms of is* as a fallback.
20357           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
20358
20359 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
20360
20361         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
20362           realize the widget when it is size allocated!
20363           (old, old bug)
20364
20365         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
20366           Removed unused call to gdk_window_get_size() that
20367           showed up when the above was fixed.
20368
20369 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
20370
20371         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
20372           fix up widget->window when the widget is a
20373           NO_WINDOW container widget.
20374
20375 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
20376
20377         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
20378           to account for the fact that feof() does _not_ 
20379           return TRUE on errors, and thus avoid infinite loops
20380           when trying to use gdk_pixmap_create_from_xpm()
20381           on unreadable values.
20382
20383 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
20384
20385         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
20386
20387 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
20388
20389         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
20390           gdk_gc_set_dashes to take gint8 instead of gchar to
20391           make it clearer that it is _not_ a NULL terminated string.
20392
20393         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
20394           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
20395           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
20396           arguments.
20397
20398 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
20399
20400         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
20401         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
20402         background size relative to our allocation, guard against small
20403         allocations, we may have not yet been size allocated.
20404
20405 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
20406
20407         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
20408         not just version == 3. We implement all 3 + most of 4 - 
20409         (we don't support matching text/plain;charset=iso-8859-1
20410         to a dest that expects text/plain). We'll still advertise
20411         3 to be safe, but any client implementing version >= 3
20412         must interoperate with 3.
20413         
20414 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
20415
20416         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
20417         background and gc members, add a warning in gtk_tooltips_set_color()
20418         indicating that this function is deprecated.
20419
20420 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
20421
20422         * docs/gtkfaq.sgml: FAQ Update:
20423           - Minor cleanups (Emmanuel, me)
20424           - New questions:
20425                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
20426                 How can I retrieve the text from a GtkMenuItem? (timj)
20427                 How do I validate/limit/filter the input to a GtkEntry? (me)
20428                 Memory does not seem to be released when I free the list
20429                         nodes I've allocated (timj)
20430
20431 2000-03-07  Tor Lillqvist  <tml@iki.fi>
20432
20433         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
20434         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
20435         for which it is no use to call GetLastError onWin9x.
20436         (gdk_other_api_failed) New function, for general error
20437         reporting without calling GetLastError.
20438         (gdk_win32_api_failed) OTOH, this function always calls
20439         GetLastError. (gdk_win32_last_error_string) Remove this function,
20440         GLib has the equivalent now.
20441
20442         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
20443         call them with function name, file name and line number in the
20444         arguments.
20445
20446         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
20447         functions.
20448         
20449         * gtk/gtk.def: Add some missing entry points.
20450
20451         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
20452         gtk_paned_set_gutter_size, which don't exist any longer, as void.
20453         
20454         Fixes by Hans Breuer:
20455
20456         * gdk/makefile.msc: Update for debugging.
20457
20458         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
20459         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
20460         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
20461         in the dash_list.
20462
20463         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
20464         the x11 backend.
20465
20466         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
20467
20468         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
20469
20470 2000-03-04  Tor Lillqvist  <tml@iki.fi>
20471
20472         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
20473         just pixel value of background colour.
20474
20475         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
20476         containing code snippet previously duplicated in a couple of
20477         places.
20478         
20479         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
20480         gdk_colormap_color.
20481
20482         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
20483         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
20484         events for autorepeated Shift, Control and Alt keys. Use
20485         gdk_colormap_color.
20486
20487         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
20488         pointer is inside the window the cursor of which we are setting,
20489         call SetCursor immediately.
20490
20491         * gdk/win32/makefile.cygwin
20492         * gtk/makefile.cygwin: If we don't have the build number stamp
20493         file, use zero.
20494
20495         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
20496         gtk_paned_set_gutter_size as empty.
20497
20498         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
20499         
20500 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
20501
20502         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
20503           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
20504           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
20505           docs/gtk_tut.sgml docs/gtk.texi TODO:
20506
20507           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
20508
20509 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
20510
20511         * gtk/gtkcalendar.c: Implement num_marked_dates,
20512           and don't emit mutiple day_selected signals on
20513           month_prev.
20514
20515 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
20516
20517         * docs/make-todo (lineno): let title and logo be configurable so
20518         that GNOME can use this script too.
20519
20520         * TODO.xml: added logourl and a title
20521
20522 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
20523
20524         * TODO.xml: Added some UI items, and an explanatory
20525         comment at the top of the file.
20526
20527 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
20528
20529         * TODO.xml: some updates, added abunch of new entries.
20530         a note for those fiddeling with this file, when done
20531         with it, invoke:
20532         $ ./docs/make-todo TODO.xml >/dev/null
20533         and correct output errors before comitting changes.
20534
20535 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
20536
20537         * TODO.xml: Added XML-structured TODO file.
20538         * docs/make-todo: python script to turn TODO.xml into
20539           pretty XML output. 
20540
20541 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
20542
20543         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
20544         the function to let it draw the seven dots, instead of the old,
20545         much maligned, method.
20546         (draw_dot): New function to draw a dot.
20547
20548         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
20549         to draw the handle inside the border width as opposed to outside.
20550         Use paint function instead of gdk_draw_point.
20551
20552         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
20553         to draw the handle inside the border width as opposed to outside.
20554         Use paint function instead of gdk_draw_point.
20555
20556         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
20557         Change indenting to be more GTK like.
20558
20559 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
20560
20561         * docs/gtk_tut.sgml: New section on GtkCalendar
20562         * examples/calendar: Update example code
20563
20564 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
20565
20566         * docs/gtkfaq.sgml: FAQ Update
20567
20568 2000-02-19  Anders Carlsson  <andersca@gnu.org>
20569
20570         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
20571         to prevent the scroll event to be propagated upwards.
20572
20573 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
20574
20575         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
20576         OwnerGrabButtonMask from button entries for
20577         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
20578
20579         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
20580         to the event mask (which will result in button/press release
20581         being added to the event mask on Unix) so scrolling works
20582         for layouts in scroll windows.
20583
20584         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
20585
20586         Patch from Anders Carlsson  <andersca@gnu.org> to add
20587         a scroll event.
20588
20589         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
20590         scrolling to the "Test Scrolling" part of testgtk.
20591  
20592         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
20593  
20594         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
20595         it against GDK_SCROLL.
20596  
20597         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
20598         way of mouse wheel scrolling.
20599  
20600         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
20601  
20602         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
20603  
20604         * gtk/gtkmain.c: Removed previous mouse wheel hack.
20605  
20606         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
20607         gdk_event_mask_table.
20608  
20609         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
20610         GdkEventScroll handler.
20611  
20612         * gdk/gdkevents.h: Added GdkEventScroll structure.
20613  
20614 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
20615
20616         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
20617         and Anders Carlsson to change the Paned widgets so that they
20618         can be dragged from anywhere along the length. Also change
20619         the way that this is drawn to make this apparent.
20620
20621         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
20622         from George Lebl to check that option_menu->menu is present
20623         before getting history.
20624
20625 2000-02-14  Tor Lillqvist  <tml@iki.fi>
20626
20627         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
20628         before the assertion for non-NULL segment list.
20629
20630         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
20631         Seems that pattern brushes *must* be 8x8 pixels! At least on my
20632         machine, but it might be display driver dependent. Sigh, so make
20633         sure the stipple is that size. Does Windows suck or what?
20634
20635         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
20636         places.
20637
20638 2000-02-13  Havoc Pennington  <hp@pobox.com>
20639
20640         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
20641         refcount to 1
20642         (gdk_cursor_new): init refcount to 1
20643
20644         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
20645
20646 2000-02-13  Tor Lillqvist  <tml@iki.fi>
20647
20648         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
20649         so that we don't have to do unnecessary settings to the HDC.
20650
20651         * gdk/win32/gdkdrawable-win32.c
20652         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
20653         gdk_gc_predraw.
20654
20655         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
20656         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
20657         GDI paths, call WidenPath to get the outline of the stroken path,
20658         and then fill the outline (with the brush that was built from the
20659         stipple).
20660
20661         * gdk/win32/gdkgc-win32.c: Factor out common code from
20662         _gdk_win32_gc_new and gdk_win32_gc_set_values into
20663         gdk_win32_gc_values_to_win32values. Use correct colour for
20664         SetBkColor() (Until now the code actually used a random colour in
20665         the call to SetBkColor()... but that didn't show up as not many
20666         GDI APIs use the background colour. Pattern (opaque stippled)
20667         brushes do.)
20668
20669         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
20670         gdk_win32_api_failed): New functions for error logging.
20671
20672         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
20673         WIN32_API_FAILED to call them, passing function or file name and
20674         line number.
20675
20676         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
20677
20678         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
20679         GdkColor for foreground and background in GdkGCWin32Data.
20680
20681         * gdk/makefile.cygwin: Link in the resource object separately.
20682
20683         * gdk/win32/rc/gdk.rc
20684         * gtk/gtk.rc (New file)
20685         * gdk/win32/makefile.cygwin
20686         * gtk/makefile.cygwin: Update build number in DLLs automatically,
20687         as in GLib.
20688
20689 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
20690
20691         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
20692         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
20693         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
20694         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
20695         parameters given and cursor->ref_count. coding style fixups.
20696
20697         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
20698         not GtkWidget.
20699         
20700         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
20701         fix up widget macros and add _GET_CLASS() variant.
20702         
20703         * gtk/*.c: some GtkType fixups.
20704
20705 2000-02-09  Tor Lillqvist  <tml@iki.fi>
20706
20707         * gdk/win32/gdkproperty-win32.c
20708         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
20709         were reversed.
20710
20711 2000-02-04  Tor Lillqvist  <tml@iki.fi>
20712
20713         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
20714         g_filename_to_utf8 to convert the font names Windows gives us from
20715         whatever is the default codepage to UTF-8.
20716         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
20717         in the other direction.
20718
20719         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
20720         error in debugging output.
20721
20722 2000-02-02  Tor Lillqvist  <tml@iki.fi>
20723
20724         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
20725         and height parameters to gdk_window_clear_area(). Not minus one.
20726
20727 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
20728
20729         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
20730         checks if the widget passed to gtk_drag_get_data() was not the
20731         dest widget.
20732
20733 2000-02-01  Tor Lillqvist  <tml@iki.fi>
20734
20735         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
20736         g_filename_from_utf8 functions (which were added a moment ago to
20737         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
20738         size buffers.
20739
20740         gtk_file_selection_get_filename returns the filename in the C
20741         runtime encoding. It calls g_filename_from_utf8, but copies the
20742         returned string to a static buffer, which is returned. I think
20743         this is better than returning the result from g_filename_from_utf8
20744         directly, which would mean all apps that use it would have to free
20745         the return value. Or should this function care about this issue at
20746         all? Maybe a new function with clearly defined semantics.
20747
20748         * gtk/gtkfilesel.h: Add comment about
20749         gtk_file_selection_get_filename returning the filename in the C
20750         runtime's encoding.
20751
20752         * README.win32
20753         * gdk/gdk.def
20754         * gdk/makefile.{cygwin,msc}
20755         * gtk/gtk.def: Updates.
20756
20757         * gdk/gdkcursor-win32.c: Initialise refcount.
20758
20759 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
20760
20761         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
20762
20763 2000-01-30  Havoc Pennington  <hp@pobox.com>
20764
20765         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
20766         destroy
20767
20768         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
20769
20770         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
20771         implemented in platform-specific code
20772
20773         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
20774
20775         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
20776         underscore in front
20777
20778         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
20779         put an underscore in front
20780
20781         * gdk/gdkcursor.c: new file, implements
20782         gdk_cursor_ref/gdk_cursor_unref
20783
20784         * gdk/gdkcursor.h: Refcount GdkCursor
20785
20786         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
20787
20788 2000-01-29  Tor Lillqvist  <tml@iki.fi>
20789
20790         * gdk/gdkwindow.h
20791         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
20792
20793 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
20794
20795         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
20796         structures to properly inherit from GtkWidget not GtkBin.
20797
20798 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
20799
20800         * gtk+.spec.in: Added lib/gtk+/include/* to %files
20801         (bug #5178 - Peter Wainright)
20802         
20803         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
20804         so that it will be installed.
20805         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
20806
20807 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
20808
20809         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
20810         for the GtkStyleClass vtable const.
20811
20812         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
20813         take a const string argument like GtkTranslateFunc. This will
20814         require changes in use code.
20815
20816 2000-01-19  Tor Lillqvist  <tml@iki.fi>
20817
20818         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
20819         semantics (to mimic the X11 backend, which just calls XClearArea)
20820         is to check for zero width (and height), and in that case use the
20821         window's width minus x (height minus y). This fixes for instance
20822         some redraw problems with gtkclist, which were easily noticeable
20823         in the gtk file selection widget.
20824
20825         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
20826         windows.
20827
20828 2000-01-13  Tor Lillqvist  <tml@iki.fi>
20829
20830         * configure.in
20831         * gdk/Makefile.am
20832         * gdk/x11/Makefile.am
20833         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
20834         (bug #5177).
20835         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
20836         out later.
20837
20838 2000-01-09  Tor Lillqvist  <tml@iki.fi>
20839
20840         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
20841         WM_MOVE for iconified or invisible windows. This fixes various
20842         problems when minimising windows. Thanks to Bernd Herd.
20843
20844 2000-01-05  Tor Lillqvist  <tml@iki.fi>
20845
20846         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
20847         backend's draw_lines method, not draw_points.
20848
20849 2000-01-02  Tor Lillqvist  <tml@iki.fi>
20850
20851         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
20852         before Owen's reorganisation: Don't have queued_events and
20853         queued_tail statics in this file, but use gdk_queued_events and
20854         gdk_queued_tail. This makes exposure event compression work again.
20855
20856         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
20857         seem to be needed?
20858
20859 1999-12-30  Tor Lillqvist  <tml@iki.fi>
20860
20861         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
20862         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
20863         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
20864         doesn't do anything.
20865
20866         * gdk/gdk.def: Add gdk_xid_table_insert.
20867
20868         * gdk/win32/gdkprivate-win32.h
20869         * gdk/win32/gdkevents-win32.c
20870         * gdk/win32/gdkinput-win32.c
20871         
20872         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
20873         extension_events field in the GdkWindowWin32Data struct. Use only
20874         the extension_events field in GdkWindowPrivate. Previously one was
20875         set, and the other one tested, which broke tablet
20876         functionality. Thanks to Keishi Suenaga for pointing this out.
20877
20878 1999-12-18  Tor Lillqvist  <tml@iki.fi>
20879
20880         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
20881         When handling a single character (text length == 1), don't handle
20882         it as if it was UTF-8.
20883
20884 1999-12-11  Tor Lillqvist  <tml@iki.fi>
20885
20886         * Makefile.am: Distribute README.win32.
20887         
20888         * gdk/Makefile.am
20889         * gdk/win32/Makefile.am: Distribute Win32 files.
20890
20891         * gdk/makefile.msc: New file.
20892
20893         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
20894         after label).
20895
20896         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
20897         gdk_error_code as GDKVAR, as they are referred outside GDK.
20898
20899         * gdk/win32/makefile.msc: Update.
20900
20901         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
20902         tweaks. Check only if at least one of those Unicode subrange bits
20903         we care for is set. If no code page bits are set, guess (wildly)
20904         based on the charset.
20905
20906         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
20907
20908         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
20909         non-NULL.
20910
20911         * gtk/gtkdnd.c
20912         * gtk/gtklayout.c
20913         * gtk/gtkplug.c
20914         * gtk/gtkselection.c
20915         * gtk/gtksocket.c
20916         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
20917         appropriate. There must be a cleaner way to handle this?
20918
20919         * gtk/gtkrc.c: Must include windows.h on Win32.
20920
20921         * gtk/testgtk.c: No need to include gdkx.h.
20922
20923         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
20924
20925 1999-12-07  Tor Lillqvist  <tml@iki.fi>
20926
20927         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
20928         the rbearing is set to the same as the width, but this should be
20929         fixed.
20930
20931 1999-12-06  Tor Lillqvist  <tml@iki.fi>
20932
20933         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
20934         function. If Windows doesn't tell us what Unicode subranges a font
20935         covers, guesstimate based on the codepages it covers. This will
20936         hopefully help those Windows versions or fonts that don't give us
20937         any useful Unicode subrange information with GetTextCharsetInfo.
20938         Call this function in gdk_font_load_internal.
20939
20940         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
20941         minor changes.
20942
20943 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
20944
20945         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
20946         New function, long needed.
20947
20948 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
20949
20950         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
20951         only_if_exists argument of gdk_atom_intern to
20952         bool.
20953
20954 1999-11-25  Tor Lillqvist  <tml@iki.fi>
20955
20956         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
20957         Fix two copy&paste errors.
20958
20959         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
20960         win32 has changed.
20961
20962         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
20963         GdkWin32SingleFont struct.
20964
20965         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
20966         subranges of loaded fonts. Clear font signature first, in case
20967         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
20968         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
20969
20970         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
20971         Unoffset clip region.
20972
20973 1999-11-23  Tor Lillqvist  <tml@iki.fi>
20974
20975         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
20976         event->any.window before calling filter functions.
20977
20978 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
20979
20980         * gtk/gtkgamma.h: Adapt cast macros to standard.
20981
20982 [ Merges from 1.2 ]
20983
20984 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
20985
20986         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
20987         If translation does not include a '/', use entire
20988         translation instead of crashing.
20989
20990 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
20991
20992         * docs/gtk_tut.sgml:
20993         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
20994
20995 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
20996
20997         * gtk/gtkselection.c (gtk_target_list_remove): Use
20998         g_list_remove_link, not g_list_remove.
20999
21000         [ From Geert Bevin <gbevin@thunderstorms.org> ]
21001         
21002 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
21003
21004         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
21005         statement upon unselection (how the heck did that slip in?).
21006
21007 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
21008
21009         * gtk/gtktext.c (gtk_text_freeze): 
21010         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
21011         in frozen state (and aparently crashes). patch provided by Anders
21012         Melchiorsen <and@kampsax.dtu.dk>.
21013
21014 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
21015
21016         * fix insensitive default/focus widget activation,
21017         reported by Matt Goodall <mgg@isotek.co.uk>.
21018
21019         * gtk/gtkwindow.c (gtk_window_key_press_event): 
21020         (gtk_window_activate_default):
21021         (gtk_window_activate_focus):
21022         return handled=FALSE for actiavtion of insensitive default
21023         widgets. return handled=TRUE for activation of insensitive
21024         focus widgets. don't activate in either case.
21025
21026 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
21027
21028         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
21029         and $glib_cflags to match library order and in the
21030         theory that an old version of GLib is more likely to
21031         be in the include directory for X then vice-versa.
21032         (Bug #2776)
21033
21034 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
21035
21036         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
21037         to determine the locale for fontsets, not LC_MESSAGES;
21038         the user may want English messages with a handling
21039         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
21040         will still be broken) (Bug #2891)
21041
21042 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
21043
21044         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
21045
21046 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
21047
21048         * gtk/gtkrc.ko: Changed the Korean default fontset.
21049
21050 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
21051
21052         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
21053         where when scrolling to the left or top double exposes
21054         were done, causing major slowdowns.
21055
21056 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
21057
21058         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
21059         names to lowercase and alphanumeric, before looking
21060         them up.
21061
21062         * gtk/Makefile.am: Install codeset variant gtkrc files
21063         with normalized names.
21064
21065 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
21066
21067         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
21068         popup menus when the menu is already visible, but its parent
21069         is still hidden, (happens after tornoff window got hidden).
21070
21071 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
21072
21073         * gtk/Makefile.am (install-data-local): Fix
21074         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
21075         deleted, causing error messages on install.
21076
21077 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
21078
21079         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
21080         the handle as well, since we now sometimes ignore
21081         exposes on the handle while resizing.
21082
21083 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
21084
21085         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
21086         extra g_free introduced in one of the last one or two 
21087         commits.
21088
21089 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
21090
21091         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
21092         consistent, put each style that a gtkrc.* file creates
21093         in a unique namespace, remove old files before installing.
21094
21095 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
21096
21097         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
21098         gtk_rc_init is called multiple times. (Yes, people who
21099         do that have bugs in their code.)
21100
21101 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
21102
21103         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
21104         Remove it since it's generated by the Makefile anyway
21105
21106 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
21107
21108         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
21109         device->info.axes for core pointer.
21110
21111 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
21112
21113         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
21114         idle_id, to deal with obsolete, broken C libraries.
21115
21116 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
21117
21118         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
21119         allocation->x/y twice!
21120
21121         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
21122         consistent with gtk_vscale_pos_trough().
21123
21124 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
21125
21126         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
21127         be queueing a resize on a toplevel container between
21128         the time we show it and when we map it. So, we need
21129         to test GTK_WIDGET_VISIBLE() for toplevels, and only
21130         use GTK_WIDGET_DRAWABLE() for child windows.
21131
21132 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
21133
21134         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
21135         (fixes bug #2144)
21136
21137 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
21138
21139         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
21140         container DRAWABLE (instead of VISIBLE), so we don't queue
21141         resizes on non-toplevel containers.
21142
21143 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
21144
21145         * gtk/gtkselection.[ch]: Make the data argument
21146         const guchar *.
21147
21148 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
21149
21150         * gtk/gtkwindow.c: Try to behave sensibly if 
21151         the focus widget is the window itself. (Should
21152         we allow this at all?)
21153
21154 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
21155
21156         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
21157         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
21158         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
21159         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
21160         in prototypes and implementations consistent (Tomas Ogren).
21161
21162         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
21163         before the widget is unparented (reported by damon).
21164
21165         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
21166         since we provide unsigned data anyways.
21167
21168 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
21169
21170         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
21171         the call to gtk_tooltips_layout_text() until later.
21172
21173         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
21174         Call gtk_widget_ensure_style() before using the style.
21175
21176 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
21177
21178         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
21179         for old widgets that don't propagate draws to all
21180         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
21181
21182 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
21183
21184         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
21185         for a redraw but just the widget that requested the resize.
21186
21187 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
21188
21189         * gtk/gtkcontainer.c: added new widget level method
21190         gtk_container_set_reallocate_redraws() and a GtkContainer flag
21191         reallocate_redraws : 1 to reflect the setting, exported this through
21192         the argument system as a boolean ::reallocate_redraws.
21193
21194         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
21195         on the widget because the allocation changes, do so as well for
21196         widget->parent if the parent has reallocate_redraws set to TRUE.
21197         with that containers requesting reallocation redraws get automatically
21198         redrawn if their children changed allocation (this unfortunately
21199         affects also other children that didn't change allocation, but we
21200         cannot work around that before 1.3).
21201
21202 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
21203
21204         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
21205         _and_ height are >0 (not _or_).
21206
21207         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
21208         instead of gtk_container_queue_resize(), which is a core gtk internal
21209         function (must have been on crack when i queued that).
21210
21211         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
21212         we can check more reliably if we want to discard expose events.
21213         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
21214         flag.
21215         
21216         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
21217         we simply trust these events. for deciding whether to discard exposes,
21218         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
21219         
21220 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
21221
21222         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
21223         queues of areas that are completely off screen.
21224
21225         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
21226         logic for handleboxes.
21227
21228         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
21229         check on width/height.
21230
21231 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
21232
21233         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
21234         we are fine with using $@ the way we do (if we actually encounter
21235         brokeness with $@ in VPATH builds because of additional path prefixes,
21236         we need to use $(@F) actually).
21237
21238 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
21239
21240         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
21241         short lived bugs, that would allow language bindings to do surgeries
21242         to our guts.
21243
21244 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
21245
21246         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
21247         where comparison was being done against an uninitialized
21248         value causing intermittant results depending on
21249         compiler flags. Also make it clearer that we aren't
21250         ever initializing the child as 0x0 (though this will
21251         be caught in gtk_widget_size_allocate())
21252
21253 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
21254
21255         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
21256         gtk_window_unset_transient_for() call after we do checks
21257         involving the old transient parent.
21258         [ From Lance Capser <lmc@cyberhighway.net> ]
21259
21260 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
21261
21262         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
21263         an empty file.
21264
21265 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
21266
21267         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
21268         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
21269
21270 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
21271
21272         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
21273         `$@' is valid only in the build dir, not after we've done 
21274         `cd $srcdir'.  Also use `test -f' instead of less portable
21275         `test -e'.
21276
21277 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
21278
21279         * gtk/gtktext.c (correct_cache_insert): Rewrite
21280          for simplicity, and hopefully correctness.
21281          (Fixes bug #1322, which was a segfault when
21282           on some insertions with the properties around
21283           the insertion set up just wrong.)
21284
21285         * gtk/gtktext.c (gtk_text_adjustment): When we receive
21286          a "changed" signal, clamp the new value to the adjustment
21287          bounds to avoid segfaulting if someone tries to change
21288          the adjustment to a bogus value. (Bug #1795)
21289
21290 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
21291
21292         * gtk/gtkmain.c: Ignore unexpected destroy notifies
21293         for children, for toplevel windows handle them
21294         like delete_event.
21295
21296         * gtk/gtkplug.c: Add an unrealize handler so that
21297         we unref plug->socket_window when we are done
21298         with it.
21299
21300 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
21301
21302         * gtk/gtktext.c (clear_area): Fix stupid signedness
21303          problem that was causing background to sometimes
21304          be misaligned.
21305
21306 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
21307
21308         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
21309         
21310         * gtk/gtkmenu.c (gtk_menu_position): Make
21311          sure we never position menus with negative x, y,
21312          since gtk_widget_set_uposition() can't handle that.
21313
21314         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
21315          Modify the positioning code a bit so that we always
21316          put the top-left corner onscreen. (This is for
21317          UI reasons, gtk_menu_position() now takes care of
21318          gtk_widet_set_uposition() brokeness.)
21319
21320 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
21321
21322         * gtk/Makefile.am: fixed up things for -jx, x > 1.
21323
21324 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
21325
21326         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
21327           RC style that is passed in. The lack of the ref
21328           before was a bug. If people worked around this
21329           bug, this will introduce a slight memory leak
21330           in their code. The code should typically look like:
21331
21332             rc_style = gtk_rc_style_new ();
21333             [...]
21334             gtk_widget_modify_style (widget, rc_style);
21335             gtk_rc_style_unref (rc_style);
21336
21337         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
21338           the style if it was already set.
21339
21340         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
21341           style if it was set before.
21342
21343 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
21344
21345         * gtk/testgtk.c (main): Add a check to see if we
21346           are being run from the correct directory and
21347           to quit nicely if we are not.
21348
21349         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
21350           static.
21351
21352 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
21353
21354         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
21355
21356         * gtk/gtkwindow.c:
21357         queue resizes unconditionally (gtk_widget_queue_resize will figure
21358         what to do if the window is not realized).
21359         (gtk_window_move_resize): only recenter the window
21360         for GTK_WIN_POS_CENTER_ALWAYS.
21361         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
21362         the same way as GTK_WIN_POS_CENTER.
21363
21364 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
21365
21366         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
21367         with (!(info->last_flags & GDK_HINT_POS)) instead of
21368         (!info->last_flags & GDK_HINT_POS).
21369
21370         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
21371         new_height unconditionally, because we use these values even if
21372         !default_size_changed && !hints_changed.
21373         comented the (default_size_changed || hints_changed) case with
21374         respect to resize rejects from the window manager.
21375
21376         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
21377         in the zvt condition hack, since this includes the window hints, set
21378         the hints after the handling_resize case.
21379
21380         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
21381         window is initially shown with to the geometry.
21382
21383 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
21384
21385         * gtk/gtkwindow.c (gtk_window_move_resize):
21386         s/size_changed/default_size_changed/g so i know what's
21387         really going on (frying brain on smaller flame now).
21388
21389 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
21390
21391         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
21392         we have size_changed upon handling_resize. this is a gross
21393         workaround for the broken zvt widget and should be removed in
21394         1.3 again (search for FIXME).
21395         Owen provided an accurate comment for this:
21396
21397         /* We could be here for two reasons
21398          *  1) We coincidentally got a resize while handling
21399          *     another resize.
21400          *  2) Our computation of size_changed was completely
21401          *     screwed up, probably because one of our children
21402          *     is broken. It's probably a zvt widget.
21403          *
21404          * For 1), we could just go ahead and ask for the
21405          * new size right now, but doing that for 2)
21406          * might well be fighting the user (and can even
21407          * trigger a loop). Since we really don't want to
21408          * do that, we requeue a resize in hopes that
21409          * by the time it gets handled, the child has seen
21410          * the light and is willing to go along with the
21411          * new size. (this happens for the zvt widget, since
21412          * the size_allocate() above will have stored the
21413          * requisition corresponding to the new size in the
21414          * zvt widget)
21415          *
21416          * This doesn't buy us anything for 1), but it shouldn't
21417          * hurt us too badly, since it is what would have
21418          * happened if we had gotten the configure event before
21419          * the new size had been set.
21420          */
21421
21422 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
21423
21424         * gtk/gtkrc.c: deal properly with the fact that RC
21425           style lists may include rc styles more than once.
21426
21427         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
21428           unused static function.
21429
21430         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
21431           stack of directories of RC files currently being
21432           parsed and implicitely add them to pixmap path.
21433           
21434           This fixes a bug where the directory would get
21435           appended then overwritten by pixmap_path declarations.
21436
21437           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
21438
21439         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
21440           theme's exit function. (Patch from Peter Wainwright,
21441           bug #1454)
21442
21443         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
21444           Add a destroy() handler to take care of removing
21445           group for menu item. (Fixes bug #1197)
21446
21447         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
21448           in warning message.
21449
21450 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
21451
21452         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
21453         roundtrip to figure window's width and height, since we know that
21454         anyways from widget->allocation.
21455
21456 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
21457
21458         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
21459           the hints after we request the new size.
21460
21461 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
21462
21463         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
21464           GTK_WIDGET_REALIZED() assertion - we can compute the
21465           hints before we are realized.
21466
21467         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
21468           hint changing so that we have a value of hints_changed
21469           when we decide whether to constrain the window size.
21470
21471         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
21472
21473         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
21474         change back to G_MAXINT.
21475
21476 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
21477
21478         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
21479         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
21480         contain uncluttered values.
21481         (gtk_window_compute_hints): simply assert that window is realized
21482         and that geometry_info is valid, since we rely on this anyways.
21483         (gtk_window_constrain_size): major cleanups to the code.
21484         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
21485         for the base size, instead of the minimums. use 32767 as max width
21486         and height (like in gtkwindow.c) instead of G_MAXINT.
21487
21488 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
21489
21490         * cleaned up the GtkContainer.need_resize flag handling mess, we
21491         only need to force resize requests when we were prematurely
21492         realized, or our widget tree was modified when we were temporarily
21493         hidden. handling these cases directly upon showing the window (i.e.
21494         while the GdkWindow is still unmapped) avoids the need to wait for
21495         a configure event response and therefore makes the GUI more snappier
21496         and avoids blank windows during the roundtrip.
21497
21498         * gtk/gtkwidget.c:
21499         (gtk_widget_hide): 
21500         (gtk_widget_show): don't queue resizes on toplevels, they know how
21501         to deal with matters.
21502
21503         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
21504         flag directly for not visible resize containers and spare us unecessary
21505         signal emissions.
21506
21507         * gtk/gtkwindow.c:
21508         (gtk_window_realize): if we need to enforce premature size allocation,
21509         queue a container resize so we are correctly resized later on.
21510         (gtk_window_init):
21511         (gtk_window_size_request):
21512         don't freak around with the ->need_resize flag,
21513         gtk_container_queue_resize() will care about that.
21514         (gtk_window_show):
21515         handle initial resizing issues here, we can handle matters better in
21516         this place, especially since we know that our GdkWindow is still
21517         unmapped.
21518         (gtk_window_move_resize):
21519         don't care about ->need_resize at all.
21520         handle size changes properly that occoured while we waited for a
21521         configure event.
21522
21523 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
21524
21525         * gtk/gtkwidget.c (gtk_widget_set_uposition):
21526         * gtk/gtkwindow.[hc] (gtk_window_reposition):
21527         Move the hint setting code from gtk_widget_set_uposition
21528         to here; set the hints so that we respect any previously
21529         set geometry hints.
21530
21531         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
21532         change the window hints here or move the window here,
21533         let that happen in gtk_window_move_resize().
21534
21535 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
21536
21537         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
21538         to already queued resizes (and therefore redraws) on a widget, check
21539         its anchestry as well.
21540
21541         * gtk/gtkcontainer.c:
21542         (gtk_container_queue_resize): clear resize widgets for resize
21543         containers before aborting prematurely. this is especially important
21544         for toplevels which may need imemdiate processing or their resize
21545         handler to be queued.
21546         (gtk_container_dequeue_resize_handler): added new internal function for
21547         gtkwindow.c.
21548
21549         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
21550         configure event, take possible changes in window position into account
21551         as well.
21552         if we request a new window size, queue up a resize handler that will
21553         last until the configure event response arrives.
21554         combined the ->need_resize case (initial show) with the general size
21555         (hints) changed case and added even more comments.
21556         if !auto_shrink, only revert to the old allocation if the new size
21557         is smaller than the current allocation.
21558
21559 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
21560
21561         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
21562                            gtk_window_set_geometry_hints
21563                            gtk_window_set_default_size):
21564         When hints are set, queue a resize so that the hints will
21565         be eventually reset on the toplevel.
21566
21567         * gtk/gtkwindow.c (gtk_window_show): Use
21568         gtk_window_compute_default_size(). Clear the need_resize flag
21569         on the initail map so that we don't unnecessarily trigger the
21570         resize code.
21571
21572         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
21573         into separate functions. Compare the hints we are setting
21574         with what we set last time so that we can accurately
21575         tell when we need to reset the hints.
21576
21577         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
21578         function to figure out the size from requisition
21579         and default_size.
21580
21581         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
21582         from fvwm to constrain a size to the geometry hints.
21583
21584         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
21585         to compare two sets of geometry hints.
21586
21587         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
21588         from gtk_window_set_hints(), just compute the hints,
21589         don't set them.
21590
21591         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
21592         code from gtk_window_move_resize() to separate function,
21593         rationalize a bit.
21594
21595 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
21596
21597         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
21598         structure into a new private structure.
21599
21600         * gtkrc.c: Split GtkRcStyle into public/private.
21601         In the private part, add a list of pointers to the
21602         RcStyle lists this RcStyle participates in.
21603
21604         * gtkrc.c: When a RcStyle is free, remove all
21605         lists referencing it from the 
21606         realized_style_ht hash, and free those lists.
21607         
21608         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
21609         gtk_rc_init(), since that adds the default styles
21610         to the list of parsed RC files again.
21611
21612         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
21613         
21614 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
21615
21616         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
21617         checks that ensure that a widget's allocation is at least 1 in width
21618         and height. (GNOME note: this doesn't affect old panel code anymore,
21619         because GtkSocket will request width and height of at least 1 since
21620         Fri Jul 23).
21621
21622         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
21623         allocated yet (happens if the user realizes the window prematurely),
21624         size request and allocate it.
21625         (gtk_window_size_allocate): guard against guint underflows.
21626
21627 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
21628
21629         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
21630         in gtk_built_sources, so gtk.defs gets built prior to all other
21631         sources.
21632
21633 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
21634
21635         * gtk/Makefile.am:
21636         invoke indent on gtkmarshal.*. 
21637         rewrote source generation rules, use COPYING as oldest source tag for
21638         a piggyback rule to generate all sources from (don't touch it ;).
21639         major cleanups, strip spaces on build rules for GNU Make.
21640
21641         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
21642         source and target files from commandline arguments. don't invoke indent.
21643
21644 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
21645
21646         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
21647         notebook after switch to avoid drawing problems.
21648         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
21649         
21650         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
21651         show them instead. 
21652         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
21653
21654 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
21655
21656         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
21657         notebook after switch to avoid drawing problems.
21658         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
21659         
21660         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
21661         show them instead. 
21662         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
21663
21664 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
21665
21666         * gtk/gtkwindow.c:
21667         we use window->need_resize from configure_event now, to indicate that
21668         the gtkwindow should keep its allocation (e.g. because the user resized
21669         the window through window manager handles). resize_count is now reliably
21670         used to figure whether we got the allocation we requested from the
21671         window manager.
21672         configure events get queued as resizes now, the real stuff (size
21673         computation and allocation) now only goes on in gtk_window_move_resize().
21674         GtkWindow's requisition now contains its *real* requisition (like all
21675         other widgets), *not* taking usize into account.
21676         geometry_info->last_{width|height} is now updated from set_hints() only
21677         so it always contains the last hints we set for the window manager.
21678         made some event handlers return TRUE instead of FALSE.
21679         the overall code should be much more straight forward now, and the
21680         significant code portions are accompanied by comments now.
21681         (gtk_window_set_hints):
21682         removed requisition argument and made it
21683         fetch the requisition through gtk_widget_get_child_requisition.
21684         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
21685         does that now.
21686         (gtk_window_show):
21687         ensure that the widget is realized before calling 
21688         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
21689         ensure that we got properly size requested and allocated before
21690         realization.
21691         (gtk_window_configure_event):
21692         ignore plain window moves, or reallocate the widget tree through the
21693         resize queue otherwise.
21694         (gtk_window_move_resize):
21695         mostly rewrote this function to figure window manager hints more
21696         reliably, coalesce window moves and resizes to reduce configure events
21697         and do actuall size allocations.
21698
21699 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
21700
21701         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
21702         that have a resize pending, because a redraw is already queued for them.
21703
21704         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
21705         hack to clear resize_widgets.
21706
21707         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
21708         for resize containers prior to size allocation. (this is also a bit
21709         ugly, but avoids side effects for stopped emissions and is thus more
21710         reliable).
21711         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
21712
21713         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
21714         function from gtk_tooltips_expose, as we connect to ::expose_event
21715         *and* ::draw now.
21716
21717 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
21718
21719         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
21720         checks.
21721         (gtk_target_list_unref): Likewise.
21722
21723         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
21724
21725 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
21726
21727         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
21728         guard against division by zero. (Fixes bug #1339)
21729
21730 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
21731
21732         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
21733         Prevent the trivial leak of information of allowing
21734         word motion when the entry is not visible.
21735
21736 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
21737
21738         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
21739         modality to error dialog as well as confirmation dialogs.
21740         (Bug #1803, reported by Rosanna Wing Sze Yuen)
21741
21742 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
21743
21744         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
21745         tree->view_lines.
21746         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
21747
21748         * gtk/Makefile.am (install-data-local): Solaris apparently
21749         has various troubles with ln -f; use rm first instead.
21750         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
21751
21752 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
21753
21754         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
21755         use `cp' followed by `rm' (the `rm' was already there).
21756
21757 July 30, 1999 Elliot Lee <sopwith@redhat.com>
21758         
21759         * configure.in: Fix autoconf warnings about cross compilation by
21760         trying to provide sane defaults for AC_TRY_RUN.
21761         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
21762         put them into $(srcdir) when generated. Also add a dependency of
21763         gtksignal.h on gtkmarshal.h for -j builds. 
21764         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
21765
21766 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
21767
21768         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
21769         GDK_THREADS_{LEAVE,ENTER} pair.
21770         (From Paul Fisher <pnfisher@redhat.com>)
21771
21772 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
21773
21774         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
21775         width and height are always >0 (owen).
21776
21777 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
21778
21779         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
21780         change that assured that a widget's allocated with and height are
21781         always >1, since this breaks *buggy* panel code. unfortunately this
21782         back-breaks the gimp's color selector.
21783
21784         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
21785         allocation is always >0 in width and height, before sending the
21786         configure event; this is a *gross* hack to get the gimp back to work.
21787         
21788         * marked both cases with TODO-1.3
21789
21790 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
21791
21792         * gtk/gtktext.c: Don't display wrap indicators when
21793         text is not editable and word wrap is on.
21794
21795 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
21796
21797         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
21798         option menus here as they are not derived from menu shell, assure that
21799         the option menu has a menu we can add items to.
21800
21801 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
21802
21803         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
21804         width/height to (gint) before calculations and check against < 0 to
21805         avoid guint wraparounds.
21806
21807 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
21808
21809         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
21810         width and height is never zero. sanity check both dimensions against
21811         32767 and issue a warning if the allocation is greater than that.
21812
21813 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
21814
21815         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
21816         to g_main_pending() as well.
21817
21818 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
21819
21820         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
21821         call to g_main_iteration() - since that will regrab
21822         GTK+ lock to process events.
21823
21824 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
21825
21826         * gtk/gtkwindow.c
21827         - Regularize with the rest of GTK+ by making widget->requisition
21828           not reflect the set_usize()
21829         - Always recompute geometry hints, then check if they
21830           changed before sending them to the X server. The
21831           previous checks for changes would fail in a number
21832           of circumstances. 
21833
21834 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
21835
21836         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
21837
21838 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
21839
21840         * gtk/gtkdnd.c:
21841         - Code cleanups
21842         - Instantaneously update on modifier key presses
21843         - Allow cancellation of the drag with Escape.
21844
21845 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
21846
21847         * gtk/testgtk.c (create_handle_box): Set the policy
21848         to auto_shrink - otherwise the appearance is rather
21849         strange when flipping between horizontal and vertical.
21850
21851 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
21852
21853         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
21854         (gtk_window_set_default_size): don't change a value if it's < 0.
21855         queue a resize.
21856
21857 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
21858
21859         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
21860
21861 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
21862
21863         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
21864         add an extra "/" when concating "/" + filename.
21865         (From Matt Grossman <mattg@oz.net>)
21866
21867 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
21868
21869         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
21870         for fg_gc if we set it for drawing pixmap.
21871
21872 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
21873
21874         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
21875         
21876         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
21877         already set, call old engine's destroy function and
21878         unref the old engine.
21879
21880 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
21881
21882         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
21883
21884 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
21885
21886         * gtk/gtkaccelgroup.h: mark certain functions as internal.
21887
21888 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
21889
21890         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
21891         expand behaviour changed.
21892
21893         * gtk/gtklabel.c (gtk_label_set_pattern):
21894         (gtk_label_set_justify):
21895         (gtk_label_set_line_wrap):
21896         don't bother invoking queue_clear, the reallocation does
21897         that for us, always free_words so the upcoming resize will
21898         relayout the label's contents.
21899
21900 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
21901
21902         * applied argument implementation patches from Elena Devdariani
21903         <elena@cogent.ca>.
21904
21905         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
21906         ::space_style, ::relief
21907         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
21908         * gtk/gtkpreview.c: ::expand
21909         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
21910         * gtk/gtknotebook.c: ::homogeneous
21911         * gtk/gtklabel.c: ::wrap
21912         * gtk/gtklist.c: ::selection_mode
21913         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
21914         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
21915         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
21916         * gtk/gtkclist.c: ::sort_type
21917         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
21918         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
21919
21920 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
21921
21922         * gtk/gtkstyle.c: Removed ill-thought-out part of last
21923         comment.
21924
21925 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
21926
21927         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
21928         counting right when we have to attach a new style
21929         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
21930
21931         * gtk/gtkstyle.c: Documented the refcounting
21932         peculularities of gtk_style_attach.
21933
21934 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
21935
21936         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
21937         window types.
21938
21939         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
21940         of GTK_TOPLEVEL for creating the window.
21941
21942 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
21943
21944         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
21945         the last argument (reported by Per Winkvist).
21946         
21947 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
21948
21949         Fixes for invisible XOR lines (Frank Loemker
21950         <floemker@TechFak.Uni-Bielefeld.DE>)
21951         
21952         * gtk/gtkclist.c (gtk_clist_realize): Always use
21953         a non-zero pixel for GDK_XOR.
21954
21955         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
21956         Use GDK_INVERT instead of GDK_XOR.
21957
21958 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
21959
21960         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
21961         signals if h/voffsets differ from adjustment values.
21962         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
21963
21964 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
21965
21966         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
21967         ::selection-done emissions up to the topmost menu shell.
21968
21969 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
21970
21971         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
21972         the user data on the window before destroying it.
21973
21974         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
21975         unrealize handler to take care of destroying 
21976         notebook->panel properly. 
21977         (Bug #1198 - Morten Welinder <terra@diku.dk>)
21978
21979         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
21980         of g_new and g_realloc to stop memory leak. (Actually,
21981         we could just use g_realloc(), but I'm not 100% sure
21982         that is portable).
21983         (Bug #1196 - Morten Welinder <terra@diku.dk>)
21984
21985 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
21986
21987         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
21988
21989         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
21990         for fontsets.
21991
21992         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
21993         with bin/button confusion.
21994
21995 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
21996
21997         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
21998         and show how preselection of radio items is done.
21999
22000 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
22001
22002         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
22003         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
22004         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
22005         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
22006         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
22007         * gtk/gtktable.c (gtk_table_attach): 
22008         * gtk/gtklist.c (gtk_list_insert_items): 
22009         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
22010         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
22011         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
22012         * gtk/gtkbin.c (gtk_bin_add): 
22013         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
22014         * gtk/gtkfixed.c (gtk_fixed_put): 
22015         * gtk/gtklayout.c (gtk_layout_put):
22016         general fixups to container_add logic. always realize child if
22017         child->parent is realized, only map the child and queue a resize
22018         if child and child->parent are both visible.
22019
22020 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
22021
22022         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
22023         instead of gtk_container_foreach to walk and unrealize children, so
22024         composite children get also unrealized.
22025         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
22026         (gtk_widget_map): assert that the widget is visible (basic constrain).
22027         (gtk_widget_real_map): assert that the widget is realized (basic
22028         constrain).
22029
22030 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
22031
22032         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
22033
22034 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
22035
22036         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
22037         file for iso-8859-2 locales.
22038
22039         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
22040
22041 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
22042
22043         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
22044          (Pointed out by andy@rz.uni-karlsruhe.de and others).
22045          Remove some suspicious and useless lines. 
22046
22047 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
22048
22049         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
22050         width,height = 0, 0 to mean - here to edge of window,
22051         instead of -1, -1, since the former is all we support.
22052
22053 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
22054
22055         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
22056         when removing from quit_functions list.
22057
22058 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
22059
22060         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
22061
22062 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
22063
22064         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
22065          When redrawing characters on non-visible entry, use appropriate
22066          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
22067
22068 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
22069
22070         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
22071         from drag coordinates.
22072         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
22073         use drag_dest_cell.
22074
22075         * gtk/gtktree (drag_dest_cell)
22076         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
22077         (Bug #1129)
22078
22079 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
22080
22081         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
22082         translate_* fields.
22083         (gtk_item_factory_finalize): invoke translate_notify independant from
22084         translate_data.
22085         (gtk_item_factory_set_translate_func): likewise.
22086         (gtk_item_factory_destroy): only remove ifactory pointer from those
22087         widgets that belong to us (stupid me).
22088
22089 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
22090
22091         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
22092         rc_style list when lookup succeeeds.
22093
22094 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
22095
22096         * gtk/gtkctree.c (resync_selection): 
22097         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
22098         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
22099         bug.
22100
22101 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
22102
22103         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
22104         Add some missing GDK_THREADS_ENTER()/LEAVE around
22105         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
22106
22107 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
22108
22109         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
22110         rather than emit_by_name.
22111
22112         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
22113         on the widget across multiple signal emissions.
22114         (gtk_editable_delete_text): same here.
22115         (gtk_editable_class_init): set widget_class->activate_signal after
22116         editable_signals[ACTIVATE] has been created.
22117
22118 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
22119
22120         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
22121         position here prematurely -- we might not have the
22122         right ->min_position and ->max_position yet.
22123
22124 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
22125
22126         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
22127         Add error traps so if the other end of the connection
22128         dies, we survive.
22129
22130         * gtk/gtkselection.c (gtk_selection_notify): Clean
22131         up properly when selection property retrieval fails.
22132         
22133         * gtk/gtkselection.c (gtk_selection_request): Correctly
22134         reject SelectionRequest notifies where the handler
22135         returns no data.
22136
22137 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
22138
22139         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
22140         when we've previously highlighted.
22141
22142         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
22143         emit two "drag_leave" signals for Motif drops.
22144
22145         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
22146         back the correct status messages when dropping from
22147         Motif onto a proxy window that is rejecting the
22148         drop.
22149
22150 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
22151
22152         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
22153         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
22154         to compare two argument values. added gtk_arg_to_valueloc() to set a
22155         variable from an arg through its location (pointer).
22156
22157         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
22158         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
22159         as gfloat*, uchars are collected as guchar*, ints are collected as
22160         gint*, etc...
22161
22162 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
22163
22164         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
22165         Include <string.h> instead of <strings.h>.
22166
22167         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
22168         (actually, a lot more duplicate includes occur if
22169          you trace through the sequence of #include's)
22170         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
22171         
22172 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
22173
22174         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
22175         gtk-a-higuti-990322-[0-3]
22176
22177         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
22178         that was causing -DX_LOCALE not to work.
22179
22180         * gtk/gtkrc.c (gtk_rc_init):
22181         X_LOCALE will never have LC_MESSAGES defined
22182
22183 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
22184
22185         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
22186         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
22187
22188         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
22189         left/right as well (gtk-michael-980726-0.patch.gz).
22190
22191         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
22192         for pointer values, use gchar instead of char. fixed uline allocation
22193         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
22194         chunks instead of G_ALLOC_ONLY.
22195         (gtk_label_size_request): always alter requisition as passed and leave
22196         widget->requisition alone.
22197         (gtk_label_set_text): allow NULL strings.
22198         (gtk_label_new): likewise.
22199
22200 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
22201
22202         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
22203
22204 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
22205
22206         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
22207         *and* mapped (i.e. drawable).
22208         (gtk_bin_expose): only send exposes to drawable children.
22209
22210         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
22211         (gtk_box_expose): only send exposes to drawable children.
22212
22213         * gtk/gtkhscale.c (gtk_hscale_draw): 
22214         * gtk/gtkvscale.c (gtk_vscale_draw):
22215         hm, this is an ugly one. we first compute the size of our trough area
22216         here (window relative) and then check intersection with the draw_area
22217         which is parent relative because we're a NO_WINDOW widget, so we need
22218         to offset the trough area by allocation.x and allocation.y before the
22219         check. (this must not be done for the background area though, since
22220         that's already computed parent relative).
22221
22222 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
22223
22224         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
22225         unrealize title buttons.
22226
22227 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
22228
22229         * gtk/gtkclist.c (gtk_clist_column_title_passive)
22230         (gtk_clist_column_title_active): 
22231         only connect/disconnect to GtkWidgetClass::event to block mouse events.
22232
22233         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
22234         zero initialize event, removed superfluous gdk_window_get_pointer call
22235
22236         * gtk/gtklist.c (gtk_list_vertical_timeout)
22237         (gtk_list_horizontal_timeout): removed superfluous
22238         gdk_window_get_pointer call
22239
22240 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
22241
22242         * plugging problems reported by "Bruce Mitchener, Jr."
22243         <bruce@puremagic.com> due to a purify session.
22244
22245         * gtk/gtkstyle.c:
22246         (gtk_style_ref): 
22247         (gtk_style_unref): assert ref_count to be > 0.
22248
22249         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
22250         the requisition.
22251         (gtk_clist_set_shift): likewise.
22252
22253         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
22254         adjustments.
22255
22256         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
22257         event before sending it and set send_event to TRUE (which needs to
22258         be done for *all* synthesized events).
22259         (gtk_list_vertical_timeout): likewise.
22260
22261         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
22262         leaks.
22263
22264         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
22265         to TRUE when synthesizing events.
22266
22267 [ *** end of merges from 1.2 *** ]      
22268         
22269 1999-11-21  Tor Lillqvist  <tml@iki.fi>
22270
22271         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
22272         (or copied from gdkconfig.h.win32 on Win32, sigh).
22273
22274         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
22275
22276         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
22277
22278         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
22279
22280         * gdk/gdkconfig.h.win32: New file.
22281
22282         * gdk/win32/makefile.cygwin: Build just a static archive here.
22283
22284         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
22285         for the DLL from the static archive built above.
22286
22287         * gdk/gdk.def: Moved here from the win32 subdirectory.
22288
22289         * gdk/win32/*: Adapt for the changed private struct organisation.
22290
22291         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
22292
22293 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
22294
22295         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
22296         for wheel mice (buttons 4 and 5).
22297
22298 1999-11-18  Tor Lillqvist  <tml@iki.fi>
22299
22300         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
22301         drawables use just the pixel field in the foreground and
22302         background GdkColor of the GdkGC.
22303
22304         gdk_gc_set_{fore,back}ground() are called in the GIMP with
22305         GdkColors containing uninitialized (red,green,blue) fields, and
22306         just the pixel field filled in, and furthermore in the
22307         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
22308         It thus turns out that we really don't need to have the full
22309         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
22310         it later to have just the pixel values.
22311
22312 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
22313
22314         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
22315
22316 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
22317
22318         * docs/gtkfaq.sgml: threads example from Erik Mouw.
22319         New question on GtkLabel background colors.
22320
22321         * docs/gtk_tut.sgml:
22322           - Correct the example code callback
22323             function definitions.
22324           - Update the gtkdial example code, from Frans van Schaik.
22325           - Update setselection.c to current API.
22326
22327         * examples/Makefile examples/*/*.c: Update to code
22328         listed in tutorial.
22329
22330 1999-11-10  Tor Lillqvist  <tml@iki.fi>
22331
22332         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
22333         subrange table (from the "Developing International Software for
22334         WIndows 95 and Windows NT" book) was missing the Hangul syllable
22335         block... Get the loaded font's charset correctly.
22336
22337         (Note that this, and the other *-win32.c files, still really are
22338         the old ones, the win32 subdirectory is not ready for compilation
22339         yet after the reorg.)
22340
22341 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
22342
22343         * gtk/gtkclist.c: Fix off-by-one bug in parameter
22344         check.
22345
22346 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
22347
22348         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
22349         on results of XQueryDeviceState().
22350
22351 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
22352
22353         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
22354         we need to accesss only ->children. We need an accessor
22355         for the children.
22356
22357         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
22358         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
22359         to get rid of gdkx.h include.
22360         
22361         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
22362         and random references to 'None'.
22363
22364         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
22365         Get rid of unused #include <gdk/gdkx.h>
22366
22367         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
22368         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
22369         gdkconfig.h.
22370
22371 1999-11-08  Tor Lillqvist  <tml@iki.fi>
22372
22373         * gdk/win32/gdkdraw.c
22374         * gdk/win32/gdkfont.c
22375         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
22376         following yesterday's changes. (Unrelated to Owen's reorg.)
22377
22378 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
22379
22380         * gdk/x11/gdkinput-gxi.c: Add missing include,
22381           fix GdkWindowPrivate => GdkDrawablePrivate.
22382
22383         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
22384
22385         * gdk/x11/Makefile.am (xinput_sources): Add missing
22386         backslash to fix building with --with-xinput=none
22387
22388 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
22389
22390         Move all X specific code into the x11/ directory.
22391         Aside from shuffling things around, did the following:
22392
22393        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
22394          gdk_arg_context_* - a simple argument parsing system
22395          in the style of popt.
22396
22397        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
22398          gdk/x11/gdkprivate-x11.h:
22399          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
22400          add ->klass and ->klass_data fields. The klass_data
22401          field points to an auxilliary structure that is
22402          windowing system dependent.
22403
22404        * gdk/gdkfont.c: Make most of the measurement functions
22405          simply wrappers around gdk_text_extents().
22406
22407        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
22408          _gdk_font_strlen() function that hides the weird
22409          behavior in gtk+-1.[02] where a string is interpreted
22410          differently for 8-bit and 16-bit fonts.
22411
22412        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
22413          to store common code for synthesizing double/triple
22414          press events.
22415         
22416        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
22417          Make all the function that modify an existing GC
22418          simply wrappers around gdk_gc_set_values().
22419          
22420        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
22421          for throwing out later.
22422
22423        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
22424          GdkImagePrivate and GdkColormapPrivate to have a
22425          windowing system dependent part (GdkFontPrivateX etc.)
22426          that "derives" from the system-independent part.
22427
22428        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
22429          Got rid of the included-source-files for XInput in
22430          favor of automake conditionals. (Which didn't exist
22431          when XInput support was originally added.)
22432
22433        * gdk/gdkrgb.c: Remove the visual id from the debugging
22434          statements since that is X11 specific; print out
22435          type/depth info instead.
22436          
22437
22438 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
22439
22440         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
22441         loading duplicates of hashed fonts.
22442
22443         * gdk/gdk.c (gdk_keysym_convert_case): rename
22444         gdk_XConvertCase to gdk_keysym_convert_case, allow
22445         results to be NULL in the GTK+ style.
22446
22447         * gdk/gdkcompat.h: Started compatibility header
22448         for renames.
22449
22450 1999-11-07  Tor Lillqvist  <tml@iki.fi>
22451
22452         * gdk/win32/gdkprivate.h: New font private structures, related to
22453         fontsets.
22454
22455         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
22456         gdk_font_list_free(). On X11, will just be wrappers to
22457         XListFonts() and XFreeFontNames(). On Win32, the code previously
22458         in gtkfontsel.c is now here.
22459
22460         New function gdk_font_xlfd_create(). On X11 will get the FONT
22461         property of the font (for GDK_FONT_FONTs), or call
22462         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
22463         builds a XLFD style name from the font information in the LOGFONT
22464         struct(s).
22465
22466         New function gdk_font_xlfd_free(), which correspondingly frees the
22467         string returned by gdk_font_xlfd_create().
22468
22469         Implement fontsets on Win32. Add a function that iterates over a
22470         wide char string and calls a callback function for each substring
22471         of wide chars from the same Unicode subrange (and thus probably
22472         available in the same real font).
22473
22474         Improve the XLFD emulation a bit.
22475
22476         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
22477
22478         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
22479         Beta3, WM_IME_CHAR messages don't seem to contain the composed
22480         multi-byte char as with the Active IMM on Win9x. Oh well, handle
22481         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
22482         ImmGetCompositionStringW() to get the composed Unicode chars.
22483
22484         * gdk/win32/gdkgc.c
22485         * gdk/win32/gdkdraw.c: Changes needed because of the font private
22486         struct changes.
22487
22488         * gdk/win32/gdk.def: Add the new functions.
22489
22490 1999-11-04  Tor Lillqvist  <tml@iki.fi>
22491
22492         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
22493         get the Platform SDK to get <dimm.h>.
22494
22495         * gdk/win32/gdkevents.c: More event handling fixes and
22496         simplification. Never generate motion events with is_hint true. We
22497         used to do that on bogus grounds earlier. Windows sends
22498         WM_MOUSEMOVE messages on button events even if the mouse hasn't
22499         moved, ignore these.
22500
22501         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
22502
22503         * gdk/win32/gdkglobals.c
22504         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
22505         the TrackMouseEvent function, and use it.
22506
22507         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
22508         char before calling WideCharToMultiByte in order to get a string
22509         for the window title.
22510
22511         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
22512
22513         * gdk/win32/gdk.def: Remove obsolete functions.
22514
22515         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
22516         /nodefaultlib and /defaultlib switches.
22517
22518         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
22519
22520 1999-10-31  Tor Lillqvist  <tml@iki.fi>
22521
22522         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
22523         EuroSign).
22524
22525         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
22526         same type as GdkWChar, especially on Win32.
22527
22528         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
22529
22530         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
22531         before passing to Windows GDI for drawing etc. Convert to the
22532         system default codepage before passing to Windows as window
22533         titles.
22534
22535         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
22536         support changing input locale on the fly.
22537
22538         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
22539         on-the-fly changes. Convert incoming characters from the current
22540         codepage to Unicode (and then to a UTF-8 multi-byte string) based
22541         on the current input language. Use keysym<->Unicode mapping tables
22542         and functions borrowed from xterm sources.
22543
22544         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
22545         editions of Win9x, use the ActiveX-based Active IMM (Input Method
22546         Manager) if available. IMEs and the Active IMM are available under
22547         the disguise of Chinese, Korean and Japanese support for IE and
22548         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
22549         support is present in all editions (as long as you install it).
22550
22551         Call DispatchMessage from gdk_events_queue() (and thus
22552         gdk_WindowProc()), instead of duplicating the code in
22553         gdk_WindowProc().
22554
22555         Reworked the grab handling and propagation code, factored out
22556         duplicated code snippets into separate functions. Other cleanups,
22557         too.
22558
22559         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
22560         the <dimm.h> header describing the Active IMM.
22561
22562         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
22563         just do the same as for "single" fonts.
22564
22565         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
22566         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
22567         the new keysyms from gdkkeysyms.h.
22568
22569         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
22570         fontset, so that gtkentry uses wide characters.
22571
22572         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
22573         GTk+'s system directory "gtk+", not "gtk".
22574
22575 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
22576
22577         * docs/gtkfaq.sgml: FAQ update
22578
22579 1999-10-21  Tor Lillqvist  <tml@iki.fi>
22580
22581         * gdk/win32/gdkprivate.h: Add more font private data.
22582
22583         * gdk/win32/gdkfont.c
22584         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
22585         fonts and strings. Now works much better. You still have to
22586         have a correct font selected, though. No fontset emulation yet.
22587
22588 1999-10-19  Tor Lillqvist  <tml@iki.fi>
22589
22590         * gtk/maketypes.awk: Use G_OS_WIN32.
22591
22592         * gtk/gtk.def: Add some missing entry points. Also some non-public
22593         ones, but PyGTK porter claims to need them.
22594
22595         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
22596         built-in type generation.
22597
22598 1999-10-14  Tor Lillqvist  <tml@iki.fi>
22599
22600         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
22601         GDK_FONT_FONT fonts (which is all we have for now, we don't
22602         emulate fontsets). The X11 version uses plain XDrawString in that
22603         case, too. The string passed to gdk_draw_text_wc seems to be in
22604         fact (at least, when used by gtkentry and gtktext) either in a
22605         single-byte charset, or a DBCS. Not Unicode.
22606
22607         This fixes the problem in gtkfontsel, where even if you had
22608         selected a font with a non-Latin1 charset (windows-greek, for
22609         instance), the preview still used Latin-1 glyphs.
22610
22611         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
22612         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
22613         (gdk_font_load): Recognize the demibold etc weights, even if we
22614         don't have the corresponding constants in the headers.
22615         (gdk_font_hash_insert): Use same hash mechanism as in the X11
22616         version. Should save font resources a bit, when we don't have
22617         multiple HFONTs for the same font.
22618
22619         * gdk/win32/gdkprivate.h: Add the names field as in the X11
22620         version.
22621
22622 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
22623
22624         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
22625         X values
22626
22627 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
22628
22629         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
22630         layout support (as mentioned on
22631         http://www.jcinteractive.com/gnome-ui/software/widgets/)
22632
22633 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
22634
22635         * gtk/fnmatch.c
22636         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
22637
22638 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
22639
22640         * configure.in (ALL_LINGUAS): Added Galician (gl)
22641
22642 1999-10-05  Tor Lillqvist  <tml@iki.fi>
22643
22644         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
22645
22646         * gdk/win32/gdkcompat.c: New file, actually provide an
22647         implementation for the deprecated functions. (Just temporarily.)
22648
22649         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
22650
22651         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
22652
22653         * gdk/win32/gdk.def gtk/gtk.def: Updates.
22654
22655 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
22656
22657         * configure.in: Added "uk" to ALL_LINGUAS.
22658         
22659 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
22660
22661         * configure.in: correct checking for BeOS check
22662
22663         * gdk/gdktypes.h
22664         * gtk/fnmatch.c
22665         * gtk/gtkfilesel.c
22666         * gtk/gtkitemfactory.c
22667         * gtk/gtkmain.[ch]
22668         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
22669
22670 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
22671
22672         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
22673         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
22674         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
22675         by Bulgarian). 
22676
22677 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
22678
22679         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
22680         Fix a reference to window_private->destroyed.   
22681
22682         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
22683         (ugly) setting of an internal GdkWindow member to use
22684         a _slightly_ cleaner macro.
22685
22686         * gdk/gdkprivate.h: Split GdkWindowPrivate into
22687         GdkDrawablePrivate and GdkWindowPrivate.
22688         Add extra macros for accessing GDK_DRAWABLE_ components.
22689
22690         * *.[ch]: Massive adjustments for the above, use the
22691         new macros in a lot of places.
22692
22693 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
22694
22695         * gdk/gdktypes.h: Make GdkDrawable the base type,
22696         not GdkWindow.
22697
22698 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
22699
22700         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
22701
22702 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
22703
22704         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
22705
22706 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
22707
22708         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
22709         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
22710
22711         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
22712
22713         * docs/gtk-config.1: Now autogenerated.
22714         * docs/Changes-1.4.txt: started
22715         
22716 1999-10-03  Tor Lillqvist  <tml@iki.fi>
22717
22718         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
22719         to #ifdef also here.
22720
22721         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
22722         Owen did to the X11 backend.
22723
22724         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
22725         ScrollWindowEx when blitting inside a window, it can't be correct
22726         in the general case.
22727
22728         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
22729         WM_GETMINMAXINFO is easier.
22730
22731         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
22732         depth equal to the bitspixel value, not the visual's depth.
22733
22734         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
22735         to 24 even if the bitspixel value is 32.
22736
22737         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
22738         need to check for depth==32 when bpp==32, depth will always be 24.
22739
22740 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
22741
22742         * docs/Changes-1.4.txt: Started
22743         
22744         * gtk/Makefile.am (gdk_headers): Include all the new headers.
22745
22746         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
22747         
22748         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
22749         into C file.
22750         
22751         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
22752         header to gdkinputprivate.h.
22753
22754         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
22755         unused since before 1.2.
22756
22757 1999-09-30  Tor Lillqvist  <tml@iki.fi>
22758
22759         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
22760         expand possible hex escapes in the font family (put there by
22761         logfont_to_xlfd if the font name isn't a legal XLFD font family,
22762         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
22763         On Win32, add hex escapes here, too.
22764
22765 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
22766
22767         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
22768         to #ifdef GDK_WINDOWING_X11.
22769
22770 [ Merges from gtk-1-2 ]
22771
22772 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
22773
22774         * configure.in: fixed "GNU Make" check to pass with new make version
22775         3.77.95.
22776
22777 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
22778
22779         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
22780         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
22781         AM_PATH_GTK() macros don't get confused by the -pre1.
22782
22783 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
22784
22785         * configure.in (REBUILD): Change check for perl5
22786           to check explicitely for v >= 5.002. (5.001
22787           does not work with our scripts.)
22788
22789 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
22790
22791         * configure.in: evaluate $PERL for the perl version check. added
22792         --disable-rebuilds to give the user an option to completely disable
22793         any source autogeneration rules.
22794
22795 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
22796
22797         * configure.in: evaluate $ac_make when checking for GNU Make.
22798
22799 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
22800
22801         * docs/Makefile.am: added generation.txt.
22802
22803         * Makefile.am: require automake 1.4, build README from README.in and
22804         INSTALL from INSTALL.in in dist-hook.
22805         
22806         * README.in:
22807         * INSTALL.in: new files to autogenerate README and INSTALL from.
22808
22809         * configure.in: figure whether we have GNU Make
22810
22811         * docs/generation.txt: minor additions/corrections.
22812
22813 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
22814
22815         * docs/gtkfaq.sgml: FAQ Update
22816
22817 July 30, 1999 Elliot Lee <sopwith@redhat.com>
22818         
22819         * configure.in: Fix autoconf warnings about cross compilation by
22820         trying to provide sane defaults for AC_TRY_RUN.
22821
22822 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
22823
22824         * ltconfig
22825         * ltmain.sh: upgrade to libtool 1.3.3
22826
22827 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
22828
22829         * INSTALL: Indicate that the --with-glib= configure
22830         time flag is unsupported.
22831
22832 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
22833
22834         * docs/generation.txt: Added a file that gives
22835         documenation about the autogeneration process for
22836         various autogenerated files.
22837         
22838 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
22839
22840         * configure.in (LIBS): Look for libgmodule in the
22841         right location.
22842
22843 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
22844
22845         * docs/gtk_tut.sgml: Removed references to
22846         code examples in my directory on gtk.org as
22847         they should all be in the tutorial now.
22848
22849         * docs/gtk_tut.sgml: Added sources for dial-test
22850         and scribble-xinput programs that were previously
22851         missing.
22852
22853 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
22854
22855         * TODO: Added entry about menu keyboard navigation, removed
22856         some finished items.
22857
22858 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
22859
22860         * acinclude.m4: Standardize on func_dgettext
22861         not func_gettext, so that the checks for dgettext
22862         actually are paid attention to.
22863
22864 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
22865
22866         * configure.in (LIBS): Add $INTLLIBS into $LIBS
22867         directly, rather than repeating the checks for
22868         gettext.
22869
22870         * INSTALL: Added information about gettext and
22871         NLS support.
22872
22873         * acinclude.m4 (LIBM): Check for dgettext, not
22874         just gettext. This should hopefully fix things wrt
22875         systems with old versions of GNU gettext installed.
22876
22877 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
22878
22879         * configure.in (LIBS): Look for libgmodule in the
22880         right location.
22881
22882 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
22883
22884         * autogen.sh: add --enable-maintainer-mode
22885
22886         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
22887
22888 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
22889
22890         * docs/gtk-config.1.in:
22891           docs/Makefile.am:
22892           configure.in: gtk-config is now generated.
22893
22894         * docs/gtk-config.1: Removed, now generated.
22895
22896 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
22897
22898         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
22899         handle CreateNotify itself, still put out a debuging message for
22900         --gdk-debug=events. made the ReparentNotify debugging message more
22901         verbose.
22902         wrap xcoords translation for ConfigureEvents into an error trap,
22903         a destroy event may already be pending, and in that case, the
22904         actuall coordinate values are not at all critical.
22905
22906 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
22907
22908         * gdk/gdkcc.c: Stop leaking the color_hash all over
22909         the place. Simplify and improve the logic.
22910
22911 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
22912
22913         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
22914         for prototypes and function implementations consistent (reported
22915         by Tomas Ogren).
22916
22917 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
22918
22919         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
22920         send_event set in debugging output.
22921         (gdk_compress_exposures): default initialize the event so we don't
22922         operate on bogus values (namely send_event).
22923
22924 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
22925
22926         * gdk/gdkwindow.c: When we receive an unexpected
22927         destroy notify on one of our windows, don't just
22928         warn about it, also mark our windows as destroyed.
22929
22930 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
22931
22932         * gdk/gdkfont.c (gdk_font_hash_insert): Add
22933           name => font and name => fontset hashes. The 
22934           name => fontset hash is a _big_ win since we
22935           weren't previously caching fontsets at all and loading
22936           fontsets is expensive. The name => font hash
22937           is less of a win, but it does save us from doing
22938           repeated XQueryFont calls on the same font.
22939
22940         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
22941           list so we can remove font/fontset from hash.
22942
22943 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
22944
22945         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
22946           and slightly confusing test. [ XInternAtom (,,TRUE)
22947           will never return None ].
22948
22949 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
22950
22951         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
22952           gdk/gdkwindow.c (gdk_window_set_hints):
22953
22954         Don't omit setting the properties if flags == 0 -
22955         there may be an existing set of properties there
22956         already. (Very old bug. Would it be better to
22957         delete the property instead?)
22958
22959         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
22960           spelling error in comment.
22961
22962 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
22963
22964         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
22965           to avoid stomping over gdk_error_warnings.
22966
22967         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
22968           as (bits_per_pixel + 7) / 8. This gives the same
22969           result as before for multiples of 8, but actually
22970           a "reasonable" value for 1bit or 4bit displays.
22971
22972 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
22973
22974         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
22975         GNU Make.
22976
22977 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
22978
22979         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
22980         discarding configure events.
22981
22982 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
22983
22984         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
22985         refcount is greater than zero.
22986
22987         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
22988
22989         * gdk/gdkfont.c (gdk_font_unref): Likewise.
22990
22991         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
22992
22993         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
22994
22995 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
22996
22997         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
22998         that format 32 => sizeof(item) == 4. It really is
22999         sizeof(long).
23000
23001 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
23002
23003         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
23004         core dump at all on X IO errors, only core dump
23005         if --enable-debug for X errors.
23006
23007 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
23008
23009         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
23010         unknown window:" message. disabled ConfigureNotify discarding code,
23011         because it led to events being processed out of order.
23012
23013 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
23014
23015         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
23016
23017         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
23018         we export this function, supress error warnings and don't reset the
23019         error code in the first half of this function.
23020
23021         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
23022         code (instead of just -1) so gdk_error_trap_pop() reveals something
23023         actually informative about the error that happened.
23024
23025         * gdk/*.c:
23026         don't rely on gdk_error_code being -1 if an error occoured, but just
23027         gdk_error_code != 0.
23028
23029 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
23030
23031         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
23032         pointer *before* invoking the filter function, so we at least don't
23033         crash if a filter is removed that is currently executed. window filters
23034         *really* need to be made truely reentrant at some point.
23035
23036 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
23037
23038         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
23039         PropertyNotify debug messages.
23040
23041 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
23042         
23043         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
23044         
23045         * gdk/gdkim.c: Fix cut-and-paste errors for 
23046         x/y and PreeditAttributes/StatusAttributes.
23047
23048 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
23049
23050         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
23051         G_MAXINT to 2^16 to alleviate overflow problems in
23052         various window managers.
23053
23054 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
23055
23056         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
23057         for fontsets.
23058
23059 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
23060
23061         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
23062         Initialize size_hints.x and size_hints.y because kwm
23063         brokenly pays attention to them.
23064         (Bug #1181 -  Lars Heete <hel@admin.de>)
23065
23066 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
23067
23068         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
23069         return value of gdk_list_visuals(). 
23070         (Bug #1193 - Morten Welinder <terra@diku.dk>)
23071
23072 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
23073
23074         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
23075         XSetIMValues to (void *) when comparing to NULL, to workaround
23076         the problem of some compilers barfing since older X headers don't
23077         have the prototype for it.
23078
23079 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
23080
23081         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
23082         for pseudocolor where colormap->colors was double
23083         allocated.
23084
23085         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
23086         color value in the hash table with the pixel filled
23087         in so when we do later hash table lookups, the color
23088         value is correct.
23089         
23090 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
23091
23092         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
23093         making the call
23094
23095 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
23096
23097         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
23098         pointed out by Morten Welinder <terra@diku.dk>.
23099
23100 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
23101
23102         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23103           default filter from the list
23104
23105 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
23106
23107         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23108           default filter from the list
23109
23110 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
23111
23112         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
23113
23114         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
23115         g_strdup_printf instead of calcing the length separately
23116
23117 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
23118
23119         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
23120         that we don't do in many other places. (Fixing duplicate 
23121         #include of config.h)
23122
23123         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
23124         Otherwise, #ifndef XINPUT_NONE check in the latter
23125         doesn't work. (Bug #546)
23126
23127 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
23128
23129         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
23130         "None" case insensitive.
23131
23132 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
23133
23134         * gdk/gdkselection.c: 
23135         Add error traps so if the other end of the connection
23136         dies, we survive.
23137
23138 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
23139
23140         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
23141         dest_xid field into two fields - one for the window
23142         to send in messages, one to indicate the last looked
23143         up window for caching purposes. This is needed, so
23144         that Leave messages get the correct window.
23145
23146 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
23147
23148         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
23149         Fix warning created by people mucking around
23150         with the gsource API.
23151
23152         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
23153         Change mapping between GIOCondition and GdkInputCondition
23154         to match the way the Linux kernel does it. This should
23155         fix problems where closed pipes were no longer signalling
23156         GDK_INPUT_READ on systems with a native poll().
23157
23158 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
23159
23160         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
23161         explicitly for the string "None" - it is in the XPM
23162         spec and some servers treat unknown colors in odd ways
23163         (like asking the user!)
23164
23165 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
23166
23167         * gdk/gdkevents.c: made "->" into a "." of previous change so
23168         it compiles
23169
23170 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
23171
23172         * gdk/gdkevents.c (gdk_compress_exposures): Set the
23173         window field of the event structure before calling
23174         user filters.
23175
23176 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
23177
23178         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
23179         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
23180
23181 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
23182
23183         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
23184         intermediate text property - prevents major memory
23185         leak when gdk_use_mb.
23186         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
23187
23188 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
23189
23190         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
23191         gtk-a-higuti-990322-[0-3]
23192
23193         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
23194         sizeof(wchar_t) != sizeof (GdkWChar)
23195
23196         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
23197         that was causing -DX_LOCALE not to work.
23198
23199         * gtk/gtkrc.c (gtk_rc_init):
23200         X_LOCALE will never have LC_MESSAGES defined
23201
23202         * gdk/gdk.c (gdk_init_check):
23203         Remove --xim-preedit and --xim-status from argv properly.
23204
23205         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
23206         that the client window is present on the X server
23207         before we pass it to the input method.
23208
23209 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
23210
23211         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
23212         if --display is specified on the command line, than
23213         the drag window will not be created on that display.
23214         
23215 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
23216
23217         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
23218         lookups with only_if_exists == TRUE were inserting
23219         bogus values into the atom cache.
23220
23221 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
23222
23223         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
23224         then reset it to NULL.
23225
23226         * gdk/gdkcolor.c:
23227         (gdk_colors_free): 
23228         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
23229         key for g_hash_table_remove() in both functions, this prevents us
23230         from accessing possibly uninitialized portions of a GdkColor structure
23231         where we are only interested in its pixel value.
23232
23233 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
23234
23235         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
23236         font hash table, if we have a GdkFontPrivate entry for this font
23237         already, simply increment its reference count, provided by Olaf Dietsche
23238         <olaf.dietsche+list.gtk@netcologne.de>.
23239
23240 1999-09-21  Tor Lillqvist  <tml@iki.fi>
23241
23242         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
23243         just to be sure.
23244
23245         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
23246         unused variables, leftovers from the X11 version.
23247
23248         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
23249
23250         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
23251         downcase fields on X11.
23252
23253 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
23254         
23255         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
23256         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
23257
23258 1999-09-17  Tor Lillqvist  <tml@iki.fi>
23259
23260         * gdk/win32/gdk.def: Add gdk_threads_mutex.
23261
23262         * gtk/makefile.msc: Correct path to libintl.
23263
23264         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
23265         use of gint vs. int, and gint vs. gboolean in headers and
23266         definitions. Use GtkType for the *_get_type functions. Note that
23267         these changes preserve binary compatibility.
23268
23269         * gdk/gdk.c
23270         * gdk/win32/gdk.c
23271         * gdk/gdk.h: Fix inconsistencies: gint vs int.
23272
23273         * gtk/gtkmain.c
23274         * gtk/gtkclist.c
23275         * gtk/gtkmenufactory.c
23276         * gtk/gtknotebook.c
23277         * gtk/gtkwidget.c: Fix inconsistencies, also gint
23278         vs. gboolean.
23279
23280         * gtk/gtkcolorsel.[ch]
23281         * gtk/gtkcombo.[ch]
23282         * gtk/gtkdrawingarea.[ch]
23283         * gtk/gtkgamma.[ch]
23284         * gtk/gtkhandlebox.[ch]
23285         * gtk/gtkhpaned.[ch]
23286         * gtk/gtkhruler.[ch]
23287         * gtk/gtkplug.[ch]
23288         * gtk/gtkpreview.[ch]
23289         * gtk/gtkruler.[ch]
23290         * gtk/gtksocket.[ch]
23291         * gtk/gtkstatusbar.[ch]
23292         * gtk/gtktoolbar.[ch]
23293         * gtk/gtkvbbox.[ch]
23294         * gtk/gtkvpaned.[ch]
23295         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
23296         functions.
23297
23298         * gtk/gtkgamma.h: Fix bug, missing () in call of
23299         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
23300
23301 1999-09-14  Tor Lillqvist  <tml@iki.fi>
23302
23303         * gdk/gdkcolor.c (gdk_colormap_new)
23304         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
23305         colormap->colors was allocated twice.
23306
23307         * gdk/win32/gdk.c: Remove some unused stuff.
23308
23309         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
23310         colormap.
23311
23312         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
23313         * gtk/gtklabel.h (gtk_label_get_type)
23314         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
23315         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
23316         in a couple of places, not guint.
23317
23318 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23319
23320         * configure.in,po/et.po: added Estonian language file
23321
23322 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23323
23324         * configure.in,po/da.po: added Danish file
23325
23326 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
23327
23328         * docs/gtkfaq.sgml: Minor FAQ Update
23329
23330 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
23331
23332         * docs/gtkfaq.sgml: FAQ update
23333
23334 1999-08-27  Tor Lillqvist  <tml@iki.fi>
23335
23336         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
23337         way to get window contents continually refreshed while resizing. I
23338         didn't like the effects myself, so it's not on by default.
23339
23340         * gdk/win32/gdkprivate.h: New flag variable
23341         gdk_event_func_from_window_proc, FALSE by default.
23342
23343         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
23344         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
23345         are passed --gdk-event-func-from-window-proc.
23346
23347         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
23348         and we have am event_func, call it instead of enqueing the event.
23349
23350 1999-08-23  Tor Lillqvist  <tml@iki.fi>
23351
23352         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
23353         Kelley: Set expose_count in GdkEventExposes correctly.
23354
23355         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
23356         MULTIPLE_WINDOW_CLASSES).
23357
23358         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
23359         for bug in NT, apparently NT *does* draw the end pixel, too, in
23360         LineTo with a one-pixel pen, so we don't have to do it ourselves.
23361
23362 1999-08-21  Tor Lillqvist  <tml@iki.fi>
23363
23364         Improvements by Hans Breuer: 
23365
23366         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
23367
23368         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
23369         CS_?REDRAW flags as they cause lots of (late) redraws when "show
23370         window contents while dragging" is turned on. Allocate at least
23371         one unique class for every GdkWindowType. If support for single
23372         window-specific icons is ever needed (eg. Dialog specific), every
23373         such window should get its own class.
23374
23375 1999-08-19  Tor Lillqvist  <tml@iki.fi>
23376
23377         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
23378         error that caused crashes.
23379
23380 1999-08-17  Tor Lillqvist  <tml@iki.fi>
23381
23382         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
23383         window, use ScrollWindowEx, and call UpdateWindow. This prevents
23384         bugs when for instance part of the window was outside the
23385         display. Thanks to Philippe Colantoni for finding and fixing this.
23386
23387 1999-08-16  Tor Lillqvist  <tml@iki.fi>
23388
23389         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
23390         endpoint calculations which were totally wrong. (A little RTFMing
23391         helps a lot ;-)
23392
23393         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
23394         from a separate directory, not from gettext, because of licensing
23395         issues (we want to use the LGPL version).
23396
23397         * README.win32: Mention the intl from glibc vs from gettext issue.
23398
23399 1999-08-13  Tor Lillqvist  <tml@iki.fi>
23400
23401         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
23402         in the key event handling: Now AltGr chars work again. Also,
23403         now Alt-digits are passed up as well as Control-digits.
23404         Pass keypad plus and minus as normal plus and minus.
23405
23406 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
23407
23408         * docs/gtkfaq.sgml: FAQ Update
23409
23410 1999-07-25  Tor Lillqvist  <tml@iki.fi>
23411
23412         * README.win32
23413         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
23414         the Wintab SDK.
23415
23416         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
23417         OK, but getting closer. Guard against bogus tilt data from Wacom
23418         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
23419         enable easier building without Wintab.
23420
23421         * gdk/win32/gdkinput.h
23422         * gdk/win32/gdkevents.c 
23423         * gdk/win32/gdkwindow.c: Minor changes related related to above.
23424         
23425         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
23426         code. As we have just one visual on Win32, no sense to have it in a
23427         table, and no need for the hash table.
23428
23429         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
23430         better on white background.
23431
23432 1999-07-21  Tor Lillqvist  <tml@iki.fi>
23433
23434         * README.win32: Update gcc build instructions. Mention gettext is
23435         GPL.
23436
23437         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
23438         supported cursor size with GetSystemMetrics.
23439
23440         * gdk/win32/gdkfont.c
23441         * gtk/gtkfontsel.c: Guard against some font weight and charset
23442         symbols being undefined (in mingw32 headers).
23443
23444         * gdk/win32/makefile.cygwin
23445         * gtk/makefile.cygwin
23446         * gtk/gtkthemes.c: No longer need to have differently named
23447         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
23448
23449 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
23450
23451         * docs/gtkfaq.sgml: Long awaited FAQ update.
23452
23453 1999-07-15  Tor Lillqvist  <tml@iki.fi>
23454
23455         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
23456         it. Obscure bit manipulation needed.
23457
23458         * gdk/win32/gdkevents.c: Logging.
23459         
23460         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
23461         style (file name include compiler name) for theme engines.
23462
23463 1999-07-13  Tor Lillqvist  <tml@iki.fi>
23464
23465         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
23466
23467         * gdk/win32/gdkevents.c: Fix long-standing bug in key
23468         events. The key.string wasn't zero-terminated, still we strdup'ed
23469         it in gdk_event_copy(). Synthesize crossing events for button
23470         events before possible propagation.
23471
23472         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
23473
23474         * gdk/win32/makefile.cygwin
23475         * gtk/makefile.cygwin: Use new DLL naming style for the
23476         GCC-compiled ones.
23477
23478         * gdk/win32/makefile.msc
23479         * gtk/makefile.msc: Cosmetics mostly.
23480
23481         * gtk/gtk.def: Add missing entry points.
23482
23483         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
23484
23485 1999-07-09  Tor Lillqvist  <tml@iki.fi>
23486
23487         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
23488         or height is zero. Don't print a warning if Pie or Arc fails, they
23489         always fail (?) for very narrow ellipses.
23490
23491         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
23492         the part or the destination window corresponding to source area
23493         outside of the source drawable's boundary.
23494
23495         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
23496         anything if less than two points.
23497
23498         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
23499         return NULL. Gtk cut-and-paste inside a single program works
23500         better this way. (It always gets the clipboard contents from
23501         Windows, not from its own copy, which is cleared anyway. I can't
23502         say I fully understand what happens... Emulating the X selection
23503         and property stuff is a bit of a mess.)
23504
23505         * gdk/win32/gdkevents.c
23506         * gdk/win32/gdkproperty.c: A bit more verbose logging.
23507
23508         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
23509         that never got deleted). Revamp gdk_region_shrink.
23510
23511         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
23512         after use.
23513
23514         * gtk/gtk.def: Add some missing entry points.
23515
23516         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
23517         component.
23518
23519 1999-07-04  Tor Lillqvist  <tml@iki.fi>
23520
23521         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
23522         Control-digits specially.
23523
23524 1999-07-03  Tor Lillqvist  <tml@iki.fi>
23525
23526         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
23527
23528 1999-06-28  Tor Lillqvist  <tml@iki.fi>
23529
23530         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
23531         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
23532         finding this.)
23533
23534 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
23535
23536         * gtk+.spec.in: Corrected some typos in files section.
23537         
23538 1999-06-15  Tor Lillqvist  <tml@iki.fi>
23539
23540         * README.win32: Mention using GNU gettext.
23541         * config.h.win32: Enable NLS stuff.
23542         * gtk/makefile.msc: Use GNU gettext.
23543         * gdk/win32/gdkdnd.c: Minor header reorg.
23544         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
23545         cosmetics.
23546         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
23547         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
23548
23549 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
23550
23551         * acinclude.m4
23552         * config.guess
23553         * config.status
23554         * ltconfig
23555         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
23556
23557 1999-05-30  Tor Lillqvist  <tml@iki.fi>
23558
23559         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
23560         SafeAdjustWindowRectEx. Don't override all calls to
23561         AdjustWindowRectEx by it, but use it only in two places: When
23562         creating a new top-level window and when moving a top-level
23563         window.
23564
23565         Use screen coordinate rectangle, not client rectangle, in
23566         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
23567         when we try to place a window so that the decoration (mainly,
23568         title bar) isn't visible.
23569
23570         These changes fix the bug that showed up for instance as the
23571         GIMP's saved top-level windows moving right and down (by an amount
23572         equal to the window decoration) for each session. This bug showed
23573         up also in testgtk's "Saved Position".
23574
23575         gdk_window_resize also redone a bit.
23576
23577 1999-05-25  Tor Lillqvist  <tml@iki.fi>
23578
23579         * gtk/testgtkrc: Add (commented out) Windows-style theme
23580         include line.
23581
23582         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
23583
23584 1999-05-18  Tor Lillqvist  <tml@iki.fi>
23585
23586         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
23587         gdkx.h to a gdk subdirectory, so that applications can include
23588         these with <gdk/*.h> without trouble.
23589
23590         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
23591         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
23592         have their bitmap destroyed.
23593
23594         * gdk/win32/gdk.def: Add gdk_root_parent.
23595
23596 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
23597
23598         * configure.in
23599           gtk-config.in
23600           ltconfig
23601           ltmain.sh     
23602           gtk/Makefile.am: changes to compile nicely (with xlib) 
23603           on BeOS
23604
23605 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
23606
23607         * acinclude.m4
23608         * config.guess
23609         * config.sub
23610         * ltconfig
23611         * ltmain.sh: upgrade to libtool 1.3
23612
23613 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
23614
23615         * gtk/gtkclist.c:
23616         * gtk/gtkctree.c: merges from gtk-1-2
23617
23618 1999-04-25  Tor Lillqvist  <tml@iki.fi>
23619
23620         Support added for building using a GNU toolchain on Win32,
23621         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
23622
23623         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
23624         * config.h.win32: Changes for gcc.
23625         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
23626         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
23627         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
23628         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
23629         Protect shl stuff unavaiilable with mingw32 headers.
23630         * gdk/win32/gdkevents.c: Fix typo.
23631         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
23632         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
23633         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
23634         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
23635         the mingw32 headers.
23636         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
23637         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
23638         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
23639         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
23640         Test for NATIVE_WIN32, not _MSC_VER.
23641         * gtk/gtkmain.c: No use warning about developer version on Win32,
23642         there aren't any non-developer versions anyhow.
23643         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
23644         * gtk/makefile.msc: Use pthread from another directory. Minor other
23645         changes. 
23646
23647 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
23648
23649         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23650           default filter from the list
23651
23652 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
23653
23654         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
23655          when gtk_widget_grab_default() is called for a widget that
23656          is not within a GtkWindow.
23657
23658 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
23659
23660         * docs/gtk_tut.sgml, examples/clist.c: use a
23661           scrolled window in the clist example. Minor
23662           tutorial fixes.
23663
23664 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
23665
23666         * docs/gtk_tut.sgml: Style check from David King
23667           <dking@youvegotmail.net>
23668
23669 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
23670
23671         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
23672         compile with unknown value of GDK_WINDOWING
23673
23674 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
23675
23676         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
23677         after the rule is fired.
23678         (install-exec-local): Install gdkconfig.h only if the contents are
23679         different from the currently installed gdkconfig.h.
23680
23681 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
23682
23683         * gdk/Makefile.am (configexecincludedir): Rename from 
23684         configincludedir so that gdkconfig.h will be installed 
23685         as part of `make install-exec'. 
23686
23687 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
23688
23689         * acinclude.m4
23690         * config.guess
23691         * config.sub
23692         * ltconfig
23693         * ltmain.sh: upgrade to libtool 1.2f
23694
23695         * autogen.sh: libtool is not required to autogen gtk+
23696
23697         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
23698         needed)
23699
23700 1999-03-18  Tor Lillqvist  <tml@iki.fi>
23701
23702         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
23703         declaring gdk variables exported/imported from the DLL. New image
23704         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
23705         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
23706         GDK_DRAG_PROTO_OLE2.
23707
23708         * gdk/gdk.h: Merge in Win32 version: Two new functions,
23709         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
23710         declared only for the Win32 version, but could be in the X11
23711         version as well. (Needed for a Xlib-less gdk_imlib.)
23712         gdk_color_hash should have only one parameter. Declare
23713         gdk_threads_mutex with GDKVAR.
23714         
23715         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
23716         just one parameter.
23717
23718         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
23719         per pixel, not bits.
23720
23721         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
23722         Fetch bpp (which means bits-per-pixel here) from another place on
23723         Win32. Accept also depth==32 (which we might get on Win32) with
23724         bpp==32.
23725
23726         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
23727         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
23728         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
23729         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
23730         in the backend-dependent directory, not in the common gdk
23731         directory.
23732
23733         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
23734         headers.
23735
23736 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
23737
23738         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
23739         want to use the Gtk+ devel version (which is true, and yes - even i am
23740         currently working with the 1.2.x branch). so everyone reading this, you
23741         probably want to issue
23742         cvs checkout -r glib-1-2 glib
23743         and
23744         cvs checkout -r gtk-1-2 gtk+
23745         as your next two comands.
23746
23747 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
23748
23749         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
23750         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
23751
23752         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
23753         file. strongly deprecated the GTK_HAVE_* macros, we provide
23754         GTK_CHECK_VERSION() for people that need to check for certain
23755         Gtk+ versions.
23756
23757         * gtk/gtkcompat.h: removed this from CVS.
23758         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
23759         idea right from the start, it just didn't seem like that back then.
23760
23761 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
23762
23763         * merges from gtk-1-2:
23764
23765 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
23766
23767         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
23768         item factory class has been created.
23769         (gtk_item_factory_parse_rc): likewise.
23770
23771         * gtk/gtkmenu.c:
23772         keep proper references for old_active_menu_item.
23773         (gtk_menu_reparent): unset the usize of the new parent,
23774         so the menu can sanely be size requested and we don't get nasty screen
23775         artefacts upon next reparentation.
23776         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
23777         enter notify. only synthesize enter notifies if the pointer really is
23778         inside the event window.
23779         (gtk_menu_popdown): use gtk_menu_shell_deselect().
23780         (gtk_menu_popup): move the background setting stuff into
23781         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
23782
23783         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
23784         gtk_menu_shell_select_item() to select the new item.
23785         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
23786         do the right thing for deselection as well.
23787
23788 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
23789
23790         * gtk/gtkwidget.[hc]:
23791         (gtk_widget_accelerators_locked): return whether a widget's accelerators
23792         are locked.
23793
23794         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
23795         existing accelerators if the widget's accelerators are locked.
23796
23797 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
23798
23799         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
23800
23801         * gtk/gtkmenu.c: truely forward key press and key release events to
23802         the menu widget from the toplevel or tearoff window. we can't simply
23803         connect to that, we need to stop further processing of the events as
23804         well.
23805
23806 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
23807
23808         * gtk/gtkmenu.c:
23809         (gtk_menu_key_press): pass event->keyval, event->state to
23810         gtk_accelerator_valid, instead of event->keyval twice.
23811         refuse to install single letter accelerators for menus that use
23812         single letter shortcuts.
23813
23814         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
23815         gtk_menu_ensure_uline_accel_group().
23816
23817         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
23818         which will always return an uline accel group, made
23819         gtk_menu_get_uline_accel_group() return NULL if the group isn't
23820         yet created.
23821
23822 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
23823
23824         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
23825
23826         * gtk/gtkclist.c (gtk_clist_column_title_passive):
23827         Leave button sensitive, trap  button_press, button_release,
23828         motion_notify, enter_notify and leave_notify events instead.
23829         (gtk_clist_column_title_active): disconnect event handler.
23830         (gtk_clist_drag_data_get): fixed memory leak. Reported by
23831         Guillaume Laurent <glaurent@worldnet.fr>
23832
23833 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
23834
23835         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
23836         width/height mixups.
23837
23838         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
23839         if needed.
23840
23841 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
23842
23843         * gtk/testgtk.c (create_item_factory): unref the item factory after
23844         window's destruction.
23845
23846         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
23847         count on the menu shell around the menu item's activation, since the
23848         signal emission may cause menu shell destruction.
23849
23850         * gtk/gtkitemfactory.c:
23851         the previous code leaked one accel group per menu. we use
23852         gtk_menu_get_uline_accel_group() now to fix that, and with that
23853         also create the underline accelerator group of the menus only if
23854         required (i.e. an underline accelerator has been specified).
23855         (gtk_item_factory_construct):
23856         (gtk_item_factory_create_item): removed code that would create an
23857         extra accel group for the menu (and leak references).
23858         (gtk_item_factory_create_item): adapted the underline accelerator
23859         installation code to properly feature gtk_menu_get_uline_accel_group().
23860
23861         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
23862         menu->accel_group, this may return NULL if the accelerator group
23863         hasn't been set yet.
23864         added gtk_menu_get_uline_accel_group() to retrive the underline
23865         accelerator group of the menu, this will be created on demand
23866         and proper care is taken about its reference count.
23867
23868         * gtk/gtkitemfactory.h:
23869         * gtk/gtkitemfactory.c:
23870         dumped the approach of keeping a widgets by action list on the
23871         factory since the factory<->widget destroy negotiation didn't work
23872         and would be hard to get going at all. instead we keep a list of
23873         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
23874         persistant throughout a program's life time).
23875         also, i removed the static const gchar *key_* variables, and made
23876         them inline strings (they weren't actually used anyways).
23877         (gtk_item_factory_add_item): update ifactory->items.
23878         (gtk_item_factory_destroy): destroy ifactory->items (and remove
23879         the item factory pointer from the remaining ifactory widgets).
23880         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
23881         list to find the widget.
23882         (gtk_item_factory_get_item): new function that works around
23883         gtk_item_factory_get_widget() limitations, this function will only
23884         return menu items, even for <Branch> entries.
23885
23886 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
23887
23888         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
23889         font hash table, if we have a GdkFontPrivate entry for this font
23890         already, simply increment its reference count, provided by Olaf Dietsche
23891         <olaf.dietsche+list.gtk@netcologne.de>.
23892
23893         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
23894         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
23895
23896 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
23897
23898         * gtk/gtkcontainer.c:
23899         (gtk_container_add_with_args):
23900         (gtk_container_addv):
23901         (gtk_container_add): before adding a child to a conatiner, make sure
23902         it is (default) constructed, this is neccessary because under certain
23903         circumstances the child will get relized and mapped immediatedly, in
23904         which case it has to be constructed already.
23905
23906 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
23907
23908         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
23909         values > 1 as TRUE also.
23910
23911 1999-03-16  Tor Lillqvist  <tml@iki.fi>
23912
23913         * README.win32: New file.
23914                 
23915         * configure.in: Check for lstat.
23916
23917         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
23918         completeness.
23919
23920         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
23921
23922         * gtk/gtk.def: Removed CRs.
23923
23924         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
23925         ..\gdk\win32).
23926
23927         * gdk/win32/makefile.msc: Correct upwards relative paths.
23928         
23929 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
23930
23931         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
23932           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
23933           it was connecting a void function to expose_event and the int
23934           returning function to the draw signal
23935
23936 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
23937
23938         * configure.in:
23939         Use correct path to libgmodule.la when ref'ing uninstalled copy
23940         of glib.  (Already in stable branch, Bug #417)
23941
23942 1999-03-15  Tor Lillqvist  <tml@iki.fi>
23943
23944         Win32 merge and general portability stuff:
23945                 
23946         * acconfig.h,configure.in: Check for <sys/time.h>.
23947
23948         * gdk/win32: New directory (actually, been there for a while).
23949         
23950         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
23951         NATIVE_WIN32, and use these. Always case fold on Win32. No
23952         backslashed escapes on native Win32.
23953
23954         * gtk/{gtk.def,makefile.msc}: New files.
23955
23956         * gtk/Makefile.am: Add above new files.
23957         
23958         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
23959         instead of <strings.h>.
23960
23961         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
23962         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
23963         <unistd.h> appropriately.
23964
23965         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
23966         Use ABS() (from <glib.h>) instead of abs().
23967         
23968         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
23969         of gtk (and thus glib) headers, so that WIN32 will be
23970         defined. With MS C, include <direct.h> for mkdir prototype.
23971
23972         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
23973         some casts, needed by MS C.
23974
23975         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
23976         implemented).
23977
23978         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
23979         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
23980         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
23981
23982         * gtk/gtkmain.h: Mark variables for export/import on Win32.
23983                 
23984         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
23985         the event is not a hint, or its window is not the slider. Needed
23986         on Win32, at least.
23987
23988         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
23989         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
23990         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
23991         a subdirectory of the Windows directory as gtk system
23992         configuration directory.
23993
23994         * gtk/gtkselection.c: No chunks on Win32.
23995
23996         * gtk/gtksocket.c: Not implemented on Win32.
23997
23998         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
23999
24000         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
24001
24002         * gtk/maketypes.awk: Declare variables with a macro that expands to
24003         necessary export/import magic in the case of Win32.
24004                 
24005         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
24006
24007 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
24008
24009         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
24010         since those were meant only for gdki18n.h.  
24011         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
24012         for widechar tests.
24013         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
24014
24015 1999-03-13  Tor Lillqvist  <tml@iki.fi>
24016
24017         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
24018         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
24019
24020         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
24021         installed) to CFLAGS.
24022
24023         * gdk/Makefile.am: Add rules for gdkconfig.h.
24024
24025         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
24026         APIs.
24027
24028         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
24029         gdkx.h anyway when compiling for X11.
24030         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
24031         general): Merge in Win32 version.
24032         
24033         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
24034         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
24035         expansion (if we don't have HAVE_PWD_H), allow for drive
24036         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
24037         included code from Craig Setera's port to Win32 (the one that uses
24038         X11, and the cygwin dll), even if it probably will be abandoned.
24039
24040         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
24041         the user entered one herself.  This way one can complete *.h and
24042         don't get matches on any .help files, for instance.
24043         
24044 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
24045
24046         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24047         font hash table, if we have a GdkFontPrivate entry for this font
24048         already, simply increment its reference count, provided by Olaf Dietsche
24049         <olaf.dietsche+list.gtk@netcologne.de>.
24050
24051         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
24052         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
24053
24054 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
24055
24056         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
24057         the number of calls to gdk_draw_point() (and thus to X) by
24058         clipping the points by hand.
24059
24060         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
24061         the clip parameter.
24062         (gtk_handle_box_paint): Only paint the handle if the expose area
24063         intersects it.
24064
24065 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
24066
24067         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
24068
24069 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
24070
24071         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
24072         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
24073
24074 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
24075
24076         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
24077          textmode (O_TEXT) for OS/2 version.
24078
24079 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
24080
24081         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
24082         GtkSpinButton, "input" and "output", to make the output more flexible.
24083         The user has to provide a mapping between adjustment->value and the
24084         output string (and vice versa, if the spin button is editable). 
24085         See testgtk for examples.
24086
24087 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
24088
24089         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
24090         new one.
24091         
24092         * configure.in: set gtk+ version to 1.3.0.