]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-2
docs updates, mention that invisible property isn't implemented
[~andy/gtk] / ChangeLog.pre-2-2
1 2002-01-01  Havoc Pennington  <hp@pobox.com>
2
3         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
4         fix
5         
6 2002-01-01  Havoc Pennington  <hp@pobox.com>
7
8         * gtk/gtktextview.c (changed_handler): Replace call to
9         gtk_widget_size_request() that expected to actually compute the
10         request with a direct use of widget_class->size_request, so we get
11         our size request right; fixes remaining part of #63065 reported by
12         Matthias Clasen
13
14 2001-12-31  Havoc Pennington  <hp@pobox.com>
15
16         * tests/testtext.c (do_insert_and_scroll): remove backward_char
17         since we no longer have bogus newline
18         (dialog_response_callback): remove another backward_char horkage, 
19         reported by Matthias Clasen #63065
20
21 2001-12-31  Havoc Pennington  <hp@pobox.com>
22
23         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
24         fix an incorrect assertion that the "valid" flag is always correct
25         in a node and add explanatory comment. This keeps me from 
26         reproducing #59101, but I'm remembering that 59101 was actually 
27         about incorrect pixel totals, so I'm not sure 59101 is actually 
28         fixed. May just have stopped happening due to some change in 
29         how C-k works.
30
31 2001-12-31  Havoc Pennington  <hp@pobox.com>
32
33         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
34         selection if shift is down, bug #50939
35         (gtk_text_view_button_press_event): add double/triple click
36         selection to the current selection if shift is down
37
38 2001-12-31  Havoc Pennington  <hp@pobox.com>
39
40         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
41         to use ensure_byte_offsets not ensure_char_offsets, patch 
42         from Padraig O'Briain bug #67356
43         
44 2001-12-30  Havoc Pennington  <hp@pobox.com>
45
46         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
47         the right values, reported by Jeff Franks
48
49 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
50
51         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
52
53 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
54
55         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
56         Minor documentation tweaks.
57
58 2001-12-28  Tor Lillqvist  <tml@iki.fi>
59
60         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
61         (unicode_classify): Don't return -1 on encountering an
62         unclassified character, but play it safe and return U_BASIC_LATIN.
63
64 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
65
66         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
67         of misc->xpad/ypad consistent with GtkLabel. Do 
68         directional flipping when interpreting misc->xalign/yalign.
69         Fix off-by-one error for negative x,y. (#67472, reported
70         by Mathieu Lacage)
71
72 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
73
74         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
75         Remove optimization that was causing problems because
76         we called gtk_widget_size_request() before we called
77         gtk_widget_queue_resize() so RESIZE_NEEDED was not
78         set. Optimization shouldn't mattter now that we
79         are smart about needlessly size requesting or allocating
80         widgets. (#67598, reported by Jacob Berkman)
81
82 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
83
84         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
85         Call gdk_window_get_pointer() on menu->bin_window not
86         menu->window, so we get the correct window for the
87         menu item. (#65213, Guillermo S. Romero)
88
89 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
90
91         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
92         the title by setting to NULL. Move docs inline. 
93         Update the title if the tearoff window already
94         exists. Code cleanup. (Fixes #65190, reported by
95         Vitaly Tishkov.)
96
97 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
98
99         * gtk/gtksocket.c (gtk_socket_key_press_event): 
100         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
101         special handling of key presses unless we are doing 
102         iter-app embedding. (Fixes #67590, Anders Carlsson)
103
104 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
105
106         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
107         (gtk_tree_model_sort_sort_level),
108         (gtk_tree_model_sort_insert_value): fix a few places where
109         I was confused between modelsort iters and other iters. This was
110         really going to happen someday ;)
111
112 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
113
114         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
115         we are unprelighted before reordering
116
117         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
118         need to break out of the for loop, not return (this fixed
119         the 'selection freeze' bug).
120
121         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
122         be pretty stable now, though it still needs some more code
123         cleanups.
124
125 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
126
127         * docs/Changes-2.0.txt: Document the fact that
128         gtk_paned_set_handle_size() has been removed.
129
130         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
131         since it pointed to gtk_paned_set_handle_size(), which
132         was removed. (#66760, Matt Wilson)
133
134 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
135
136         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
137         gtk_drag_hightlight_expose _after_, so it works with
138         widgets that paint there entire background. (#66735)
139
140 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
141
142         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
143         allocation to widget->allocation. (Fixes #67290,
144         Chris Phelps.)
145
146 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
147
148         (#67542, reported by Anders Carlsson)
149         
150         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
151         rc_style->font_desc with defaul style instead of replacing
152         it.
153
154         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
155         font descriptions in RC styles by calling
156         pango_font_description_merge(). 
157
158 2001-12-24  James Henstridge  <james@daa.com.au>
159
160         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
161         valid with both SGML and XML.
162
163 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
164
165         * configure.in: 1.3.12, interface, binary age 0.
166
167         * configure.in: Require new versions of Glib, Pango, ATK.
168
169         * NEWS: Updated.
170
171         * configure.in: Make explicit what libtool we are executing.
172         (Tomas Ogren)
173
174         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
175
176         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
177         parameter names for docs.
178
179 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
180
181         * gtk/gtkwindow.c (gtk_window_realize) 
182           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
183
184         * gtk/gtkentry.c (gtk_entry_key_release)
185           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
186         key release events to the input method.
187
188         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
189         Handle release of Control/Shift to end hex sequence.
190
191         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
192         Handle key releases as well as presses.
193
194 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
195
196         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
197
198         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
199         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
200         documentation about underscores and mnemonics. (#66380)
201
202         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
203         cyclic reference in docs.
204
205         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
206         of default value. (#65402)
207
208         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
209         Markup fixes.
210
211 2001-12-20  Anders Carlsson  <andersca@gnu.org>
212
213         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
214         map here.
215
216 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
217
218         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
219         (reported by Jeff Franks.)
220
221 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
222
223         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
224         prototype for direction_changed. (Reported by
225         Jeff Franks.)
226
227 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
228
229         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
230         Fix typo (list->data becomes list->next)
231
232 2001-12-06  Havoc Pennington  <hp@redhat.com>
233
234         Add Unicode control char menu, based on patch from Dov.
235         Bug #63495
236         
237         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
238         gtk_entry_enter_text
239         (gtk_entry_enter_text): function to do "typing in text"
240         (popup_targets_received): add the Unicode menu items
241
242         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
243         on Input Methods item, and add the unicode menu items.
244
245         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
246         used in GtkEntry and GtkTextView - may become public later.     
247
248 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
249
250         * gtk/gtkprogressbar.c: Fix a typo.
251         * gtk/gtkpaned.c: Fix a typo.
252         
253 2001-12-15  Darin Adler  <darin@bentspoon.com>
254
255         Fix some warnings.
256
257         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
258         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
259         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
260         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
261         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
262         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
263         Restructure loop to get rid of uninitialized variable warning. Also
264         gives a tiny efficiency gain.
265
266 2001-12-15  Murray Cumming  <murrayc@usa.net>
267
268         * Fixed first arg type of GtkScale's "format_value" signal's
269         function pointer.
270
271 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
272         docs/reference/gtk/tmpl/gtkcelleditable.sgml
273                 gtkcelleditable -> GtkCellEditable
274         docs/reference/gtk/tmpl/gtktreesortable.sgml
275                 gtktreesortable -> GtkTreeSortable
276
277 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
278
279         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
280         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
281         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
282         resp.
283
284 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
285
286         * gtk/gtktreeview.c (validate_visible_area): free path
287         at the end
288
289 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
290
291         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
292
293 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
294
295         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
296         to find the clicked node in the tree when tree == NULL
297
298 2001-12-13  Anders Carlsson  <andersca@gnu.org>
299
300         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
301         event->state with the default mod mask. 
302
303 2001-12-12  jacob berkman  <jacob@ximian.com>
304
305         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
306
307 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
308
309         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
310         Reset the existing slave before removing it to give
311         it a chance to commit and emit "preedit_changed" 
312         in case there was still a preedit string.
313
314 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
315         
316         * gtk/gtktextlayout.c: Typo fixes
317         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
318
319         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
320         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
321
322         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
323
324 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
325
326         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
327         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
328
329 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
330
331         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
332         "prepainting" the menu before realizing other than
333         via gtk_style_set_background() - this was broken when
334         we added menu scroll support.
335
336         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
337         window in the expose event -- fixes problem with border
338         flashing during scrolling.
339
340 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
341
342         * gtk/gtksettings.c (gtk_settings_get_property): Support
343         using names/nicks for the gdk_settings values for enum valued
344         types. (#57678, reported by Anders Carlsson)
345
346 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
347
348         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
349         with insert_page_menu.  Code duplication is bad.
350
351         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
352         wrong fix yesterday.
353
354 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
355
356         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
357         modifiers.
358
359 2001-12-12  James Henstridge  <james@daa.com.au>
360
361         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
362         (menu_item)->accel_path first when looking up the accel path.
363
364 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
365
366         * tests/testgtk.c (layout_expose_handler): Only draw
367         for events on the bin window.
368
369 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
370
371         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
372         mnemonics work with notebooks.
373
374 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
375
376         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
377         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
378         Makes some flicker while scrolling go away.
379
380 2001-12-11  Michael Natterer  <mitch@gimp.org>
381
382         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
383         adds alpha to the pixbuf; re-load the saved pixbuf and
384         pixel-by-pixel compare it with the original one.
385
386 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
387
388         * ChangeLog: Fix wrong ChangeLog entry
389         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
390         right corner
391
392 2001-12-10  jacob berkman  <jacob@ximian.com>
393
394         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
395         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
396         (gdk_keyboard_grab): do not grab things if the nograb debug flag
397         is set
398
399         * gdk/gdkinternals.h: 
400         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
401         keyboard / mouse
402
403 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
404
405         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
406         didn't reset the timer.
407
408 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
409
410         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
411
412 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
413
414         * gtk/gtkviewport.c: Add docs.
415
416 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
417
418         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
419         RBTree corruption bug--
420
421 2001-12-10  Anders Carlsson  <andersca@gnu.org>
422
423         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
424         if edited_column is NULL, also grab focus before removing
425         the cell_editable.
426
427 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
428
429         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
430           denominator in the horizontal case just like we do in the vertical
431           case (why I didn't notice that there were two cases the first time
432           around is beyond me:).  Also fix indentation in the vertical case.
433
434 2001-12-09  Anders Carlsson  <andersca@gnu.org>
435
436         * gdk/x11/gdkevents-x11.c: Update xsettings name.
437
438         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
439         gtk-dnd-drag-threshold GtkSetting.
440
441         * gtk/gtksettings.c (gtk_settings_class_init): Add 
442         setting for dnd drag threshold.
443
444 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
445
446         * gtk/gtkcontainer.c: Add docs.
447
448 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
449
450         * gtk/gtkwidget.c: Doc markup fix. 
451
452         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
453
454         * gtk/gtktreestore.c: Typo fixes. (#66445)
455
456         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
457
458         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
459         to gtk_clipboard_set_with_owner(). (#66424)
460  
461 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
462
463         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
464         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
465         Fabrice Bellet <fabrice@gnu.org>, #54127).
466
467 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
468
469         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
470         of places, so that people with crashy trees can just run their
471         program with GTK_DEBUG=TREE.
472
473 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
474
475         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
476         per jrb's request
477
478 2001-12-08  Anders Carlsson  <andersca@gnu.org>
479
480         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
481         since then the default GtkLayout expose handler won't be called.
482
483 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
484
485         * gtk/gtktreeview.c (validate_rows_handler): remove
486         g_return_if_fail.
487
488         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
489         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
490         empty model.
491
492 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
493
494         * gtk/gtktreeview.c (validate_visible_area): get logic right,
495         #66249
496
497         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
498         removing a node ended up with a corrupt tree.  Really really nasty
499         bug.
500         (_gtk_rbtree_debug_spew): new debug helper function
501         (_fixup_validation): new inline function to clean up code
502         readability a lot. 
503
504 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
505
506         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
507         Close comment.
508
509 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
510
511         * gtk/gtkstyle.h: Typo fixes.
512
513         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
514
515         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
516
517 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
518
519         * modules/input/gtkimcontextxim.c: Display the XIM
520         status callbacks with a popup window. (Patch from
521         HideToshi Tajima, #50628, somewhat modified.)
522
523 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
524
525         * gtk/Makefile.am: each source generation rule needs to use its own
526         temporary file, to avoid clashes for parallel builds. fixed rules
527         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
528
529 2001-12-07  Havoc Pennington  <hp@pobox.com>
530
531         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
532         "cursors that are actually useful" in gdk_cursor_new() docs
533
534 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
535
536         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
537         in computing the size of the second child.
538
539 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
540
541         * gtk/gtkrange.c: Make button 1 clicks on the trough
542         do pages, button 3 steps. (Patch from Hans Breuer
543         #63735)
544
545 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
546
547         * gtk/gtklabel.c: Fix docs. (#66383)
548
549         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
550         (#66278, #66280)
551         
552         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
553         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
554
555         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
556         Don't emit a g_warning() about being deprecated. (#66208)       
557
558         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
559
560         * gtk/gtkcontainer.c: Doc fixes.
561         
562         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
563
564         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
565
566 2001-12-05  Sven Neumann  <sven@gimp.org>
567
568         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
569
570         * gtk/queryimmodules.c: g_dir_read_name() returns const.
571
572 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
573
574         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
575         #66225
576         
577 2001-12-04  Manish Singh  <yosh@gimp.org>
578
579         * gtk/gtkmain.c
580         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
581         a gpointer.
582
583         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
584         correction to docs.
585
586         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
587
588 2001-12-04  Havoc Pennington  <hp@redhat.com>
589
590         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
591         g_assert_not_reached() that was bogus, since we demand-create the
592         tag info. reported by Chris Phelps
593
594         Jump through assorted hoops to fix bug from Chris Phelps where 
595         removing tags from the table resulted in btree trying to 
596         access tag->table
597         
598         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
599         ourselves to the tag table
600
601         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
602         (_gtk_text_tag_table_remove_buffer): private cruft to 
603         let us notify buffer of disappearing tags
604
605         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
606         header, put it in tagprivate    
607
608         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
609         tag_removed; it's emitted too late.
610         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
611         this
612
613         Padding for ABI-compat expansion
614         
615         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
616         (struct _GtkTextAppearance): one pad in here too
617
618         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
619
620         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
621         since action signals etc. seem pretty likely
622
623         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
624
625         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
626
627         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
628
629 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
630
631         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
632
633         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
634
635         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
636
637 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
638
639         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
640         #62084.
641
642 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
643
644         * demos/gtk-demo/main.c: (create_tree): Minor fix.
645
646         * docs/tree-column-sizing.txt: Update
647
648         * gtk/gtkrbtree.[ch]: Massive work to support validation.
649
650         * gtk/gtktreemodel.c: Doc fixes.
651
652         * gtk/gtktreeview.c: Incremental reflow added.
653         * gtk/gtktreeviewcolumn.c: ditto
654         * gtk/gtktreeviewcolumn.h: ditto
655
656 2001-12-04  Havoc Pennington  <hp@redhat.com>
657         
658         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
659         "invisible" property, #65999
660
661 2001-12-04  Matt Wilson  <msw@redhat.com>
662
663         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
664
665 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
666
667         * gtk/gtksettings.c (gtk_settings_set_property_value):
668         Simplify, make more efficient and fix memory leak
669         when turning quark into a string. (#66103, HideToshi
670         Tajima)
671
672         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
673         init() and unref priv->tooltips in destroy rather
674         than calling gtk_object_destroy() which has no
675         effect on memory management. (#66104, HideToshi
676         Tajima)
677
678         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
679         so we free the when the object is freed. (Fixes memory
680         leak, #66096, HideToshi Tajima)
681
682         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
683         a full GdkEvent structure to avoid reads of uninitialized/
684         invalid memory in gdk_event_put() (#65877, patch
685         from Hidetoshi Tajima)
686
687 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
688
689         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
690         toggle-size-request doesn't take a requisition.
691
692         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
693         reference to marshaler that no longer exists.
694
695 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
696
697         Patch from Bill Haneman (with many modifications) to make
698         the focus color work on dark themes and to make the
699         focus line width configurable. (#61079, #63074)
700
701         * gtk/gtkwidget.c: Add style properties, 
702         ::focus-widget, ::focus-line-width, and ::focus-padding.
703
704         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
705         state argument as well so we can use fg[STATE] to
706         draw instead of always drawing with black. 
707         Cange paint_focus() to respect GtkWidget::focus-width
708         and GtkWidget::focus-line-pattern. Fix continuity
709         problem where the default 1-1 stipple had a blob
710         in one corner and a gap in the other. Change the
711         interpretation of x/y/width/height to be the bounding
712         box of the focus rect instead of the rectangle
713         passed to gdk_draw_rectangle.
714
715         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
716         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
717         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
718         and ::focus-line-padding.
719
720         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
721         and remove duplicated code; fix drawing of focus rectangle
722         when interior-focus = FALSE. (#63072, #63073)
723
724         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
725         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
726         Range and TreeViewColumn will need more extensive fixing.
727
728         * gtk/gtkcolorsel.c: Honor focus line attributes when
729         drawing the focus on the color swatches. (#63071)
730
731         * gtk/gtkhsv.c: Honor focus line attributes when
732         drawing the focus for the ring and triangle.
733
734         * docs/widget_geometry.txt: Start at documenting how 
735         various widgets are drawn.
736
737         * gtk/gtkbutton.c (_gtk_button_paint): Export 
738         _gtk_button_paint() librarywide, so we don't have 
739         duplicate a bunch of code in gtktogglebutton.c.
740
741         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
742
743 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
744
745         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
746         NONE:POINTER.
747
748 2001-12-03  Alex Larsson  <alexl@redhat.com>
749
750         * gtk/gtkaccellabel.c:
751         * gtk/gtkarrow.c:
752         * gtk/gtkcolorsel.c:
753         * gtk/gtkcontainer.c:
754         * gtk/gtklabel.c:
755         * gtk/gtktextview.c:
756         * gtk/gtktogglebutton.c:
757         * gtk/gtktreeview.c:
758         * gtk/gtkwindow.c:
759         Return FALSE from expose handlers.
760
761 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
762
763         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
764         we use pointers, we should free the previous pointer first (if
765         it exists), before we set a new pointer. (#64726)
766
767         * gtk/gtktreeprivate.h: get rid of cursor_drag
768
769         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
770         for cursor_drag
771         (gtk_tree_view_bin_expose): don't directly return in the while
772         loop
773         (gtk_tree_view_class_init): indentend expanders by default
774         (gtk_tree_view_header_focus): only give the button focus
775         if it's clickable, visible and the column is reorderable
776         (#65539)
777
778         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
779         create and free cursor
780
781 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
782
783         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
784         some bugs with size requisition. (From Bill Haneman)
785
786         * gtk/gtkcalendar.c: Draw headers and selection in 
787         base/text[SELECTED] instead of fg/bg[SELECTED].
788
789         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
790         code and formatting.
791
792 2001-12-03  Havoc Pennington  <hp@pobox.com>
793
794         * gtk/gtktextview.c (set_window_height): 
795         (set_window_width): Hmm, setter functions normally assign the new
796         value to the object field. Reported by Chris Phelps.
797
798 2001-11-30  jacob berkman  <jacob@ximian.com>
799
800         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
801         signal id to 0 after we disconnect from it
802
803 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
804
805         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
806         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
807         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
808         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
809
810         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
811         GTK_DISABLE_DEPRECATED.
812
813         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
814         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
815
816 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
817
818         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
819         move/resize code, removing various bad, non-functional
820         hacks. (Fixes #65048, reported by Damon Chaplin.)
821
822 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
823
824         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
825         bad match error when target drawable is not the 
826         same depth as the root window. (#65841)
827
828         * HACKING: Update.
829
830 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
831
832         * gdk/gdkwindow.c: Typo fix.
833
834 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
835
836         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
837         empty menu items to behave like insensitive items (#59456)
838
839         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
840         next item if the first item in the menu is a tear off item
841         (#59456-2, suggestion by Matthias Clasen)
842
843         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
844         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
845         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
846         (gtk_real_menu_shell_activate_current): add check, so empty
847         menu items behave like insensitive items (#59456)
848         
849         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
850         the checks more readable ...
851         
852         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
853         (gtk_menu_shell_button_release): causes the menu to dropdown if the
854         caption is clicked again (#64977)
855
856 2001-11-29  Havoc Pennington  <hp@redhat.com>
857
858         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
859         assertion here that we were at the end iterator was not correct;
860         change code to move us to the end iterator. bug #65731
861
862 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
863
864         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
865         improper use of g_locale_to_utf8() to convert from
866         latin-1, and do it the easy way by building the string
867         correctly in the first place.
868
869 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
870
871         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
872         Convert atoms to and from atoms for properties of type XA_ATOM.
873         (#65555, patch from Hidetoshi Tajima)
874
875 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
876
877         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
878         to avoid problems with Objective C.
879
880 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
881         
882         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
883
884         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
885         Fix docs. (#65505)
886
887         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
888
889 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
890
891         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
892         accounting of menu->tearoff_scrollbar width to here
893         and make sure we have the correct requisition.
894
895         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
896         by using gtk_window_move().
897
898         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
899         the requisition to be updated by calling
900         gtk_widget_size_request() (#65440)
901
902         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
903         queue resize before calling gtk_menu_set_tearoff_state().
904
905 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
906
907         * demos/gtk-demo/editable_cells.c: fix typo
908
909         * demos/gtk-demo/list_store.c (add_columns): remove call to
910         gtk_tree_view_column_set_clickable which didn't make sense
911
912 2001-11-28  Havoc Pennington  <hp@redhat.com>
913
914         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
915         explaining the validation error in front of the G_BREAKPOINT
916
917         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
918         process updates with include_children = FALSE instead of TRUE, so
919         we redraw the range only, not the whole darn window.  Making
920         GtkRange a NO_WINDOW widget had weirdly caused the text widget
921         Trace/breakpoint trap bug to become much easier to trigger.
922
923 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
924
925         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
926         to gdkcursors.h.
927
928 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
929
930         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
931
932         * gdk/gdkcursor.h: Directly include the contents
933         of gdkcursors.h in the GdkCursorType enum.
934
935         * gdk/gdkcursors.h: Deleted.
936
937         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
938         header boilerplate.
939
940         * gdk/Makefile.am: Remove the X-derived-headers rule.
941
942 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
943
944         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
945         Notify on the ::active property _here_, not in
946         gtk_check_menu_item_set_active.
947
948 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
949
950         * gtk/gtkcellrendererpixbuf.c
951         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
952         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
953
954 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
955
956         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
957         comment about what is going on in this file.
958
959         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
960         x/y problem.
961
962 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
963
964         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
965         Calculate size based on the _child_ of the menu item,
966         not the menuitem. (#65005, Damon Chaplin)
967
968         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
969         some extra vertical padding to the label widget ... restores
970         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
971
972 2001-11-26  Tor Lillqvist  <tml@iki.fi>
973
974         * demos/pixbuf-demo.c
975         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
976
977         * demos/gtk-demo/main.c (read_line): No flockfile() or
978         getc_unlocked() on Win32.
979
980 2001-11-25  Tor Lillqvist  <tml@iki.fi>
981
982         * configure.in
983         * acconfig.h: As we now use GDir, no need to check for dirent.h.
984
985 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
986
987         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
988         when finished (#65266)
989
990 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
991
992         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
993         data after we set the property. (#65264)
994
995 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
996
997         * gtk/gtkbutton.c: add destroy method so label_text gets freed
998         if it has been allocated (#65268)
999
1000 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
1001
1002         * gdk/linux-fb/gdkdrawable-fb2.c
1003         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
1004
1005         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
1006
1007         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
1008         set_family
1009         
1010         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
1011
1012 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
1013
1014         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
1015         deactivate menu when menu_item isn't sensitive (#61389)
1016
1017 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
1018
1019         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
1020         we return (in case of a failure here)
1021
1022 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
1023
1024         * gtk/gtknotebook.c: Handle events in windows other
1025         than widget->event_window properly. (#65079, reported
1026         by Damon Chaplin)
1027
1028         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
1029
1030 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
1031
1032         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
1033         the image at the top. (#65020, request from Seth Nickell)
1034
1035 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
1036
1037         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
1038         arithmetic that was resulting in rows being drawn too low.
1039         (#65001, reported by Damon Chaplin)
1040
1041 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
1042
1043         * gtk/gtkrange.c (gtk_range_button_press): Offset 
1044         invalidated range correctly.
1045
1046         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
1047         of title window. (#65001, reported by Damon Chaplin)
1048
1049         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
1050         horrible hack with use of ::event_after.
1051
1052 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
1053
1054         * Version 1.3.11
1055
1056         * configure.in (ATK_REQUIRED_VERSION): Require
1057         GLib-1.3.11, Pango-0.22, ATK-0.7.
1058
1059         * tests/prop-editor.c (property_widget): Restore
1060         to working as well as it did before.
1061
1062         * gtk/gtklistitem.h: Mark deprecated since it is
1063         an integral part of GtkList.
1064
1065         * demos/gtk-demo/demo-common.h: New header file,
1066         for a common functions not important to the meat
1067         of the demos.
1068         
1069         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
1070         function to search for a file used by the demo.
1071
1072         * demos/*.c: Use demo_find_file.
1073
1074 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
1075
1076         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
1077         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
1078         fixes already mentioned in ChangeLog entry on 2001-11-14.
1079
1080         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
1081
1082 2001-11-23  Hans Breuer  <hans@breuer.org>
1083
1084         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
1085         reflect Pango API change
1086
1087         * gtk/gtk.def : updated externals
1088
1089         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
1090         g_return_val_if_fail() to avoid 'function must return a value'
1091
1092         * gtk/gtkrc.c : added spaces to fix small coding style issues
1093         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
1094         'static correctness'
1095
1096         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
1097         because they only can be build on win32 after applying my patch
1098
1099 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
1100
1101         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
1102         children, in order for the input pnly window to stay *above*
1103         children.
1104
1105 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
1106
1107         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
1108         type walks againts G_TYPE_FUNDAMENTAL_MAX.
1109         
1110         * tests/prop-editor.c: disable type hackery.
1111
1112 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
1113
1114         * gdk/gdkimage.c (gdk_image_get): Fix problem with
1115         lost parameter.
1116
1117 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
1118
1119         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
1120         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
1121         trailing commas in enum declarations.
1122
1123 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
1124
1125         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
1126         interface, binary age 0.
1127
1128         * NEWS: Updates
1129
1130         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
1131         fixes in docs.
1132
1133         * gtk/gtkmain.h: Remove unused and misnamespaced
1134         get_gtk_win32_directory() prototype.
1135
1136         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
1137         to match header.
1138
1139         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
1140         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
1141         to match docs.
1142
1143         * gdk/gdkevents.c (gdk_event_get_coords)
1144           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
1145           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
1146         Fix parameter names in docs.
1147         
1148         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
1149         (#64961, Akira Tagoh)
1150
1151 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
1152
1153         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
1154
1155         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
1156
1157         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
1158
1159         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
1160         back to gtk_accel_groups_from_object(), change @acceleratable
1161         parameter to gtk_accel_groups_activate() accordingly.
1162
1163         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
1164         left-over comment about quark return.
1165
1166         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
1167
1168         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
1169         (Patch from Matt Wilson)
1170
1171         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
1172         object is finalized.
1173
1174 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
1175
1176         * applied patch from owen to get rid of accel map notifiers.
1177         changed things to fix reentrancy and API as discussed on gtk-devel.
1178
1179         * gtk/gtkaccelgroup.[hc]:
1180         (gtk_accel_group_finalize): unregister this accel group from all
1181         accel map paths.
1182         (accel_closure_invalidate): handle invalidation of closures by
1183         disconnecting their accelerators.
1184         (quick_accel_add): move closure connection and changed notification
1185         into this function to reduce code duplication. don't emit change
1186         notification on closurers without accelerators.
1187         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
1188         for a GtkAccelGroupEntry.
1189         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
1190         (gtk_accel_group_connect_by_path): new function to add accelerators
1191         with an accel path.
1192         (gtk_accel_group_disconnect_closure): new function, disconnect a
1193         closure from of an accel group.
1194         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
1195         accel_mods pair and remove them.
1196         (_gtk_accel_group_reconnect): new function that basically does
1197         gtk_accel_group_disconnect_closure() and
1198         gtk_accel_group_connect_by_path() once an accel path changed.
1199         (gtk_accel_groups_disconnect_closure): remove this, there's
1200         gtk_accel_group_disconnect_closure().
1201         
1202         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
1203         nuke notifiers.
1204         (_gtk_accel_path_is_valid): make this non-static for
1205         gtkwidget.c and gtkaccelgroup.c assertions.
1206         (gtk_accel_map_add_notifer): removed this function.
1207         (gtk_accel_map_remove_notifer): same.
1208         (_gtk_accel_map_add_group):
1209         (_gtk_accel_map_remove_group): (un-)register accel groups, with
1210         accel paths for correct propagation.
1211         (gtk_accel_map_add_entry): return void.
1212         (gtk_accel_map_lookup): return gboolean instead of GQuark.
1213         
1214         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
1215         set accel_path on widgets.
1216         
1217         * gtk/gtkwidget.[hc]:
1218         (accel_path_changed): got rid of this, changes are handled by
1219         accel maps internally now.
1220         (_gtk_widget_set_accel_path): get things to work without notifiers.
1221         (gtk_widget_list_accel_closures): list accel closures of a widget.
1222         
1223         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
1224
1225 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
1226
1227         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
1228
1229 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
1230
1231         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
1232         replace gboolean free_last in the function parameters with
1233         gint depth. Changes to reflect new situation.
1234
1235         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
1236         replace gboolean free_last, with gint depth, add gint current_depth.
1237         Changes to reflect new situation.
1238
1239         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
1240         to reflect new situation
1241
1242         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
1243
1244 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
1245
1246         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
1247         where notebook gap was double shifted by allocation.x/y
1248
1249         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
1250         to unmap children.
1251
1252 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
1253
1254         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
1255         allocation to be relative to paned->allocation, now
1256         that this is a NO_WINDOW widget.
1257         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
1258
1259         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
1260         needs to be a boxed property.
1261
1262 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
1263
1264         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
1265         Use the widget's state when drawing the indicator, as
1266         in GtkCheckButton. This gives us color changes for
1267         un-prelighted checkbuttons. (#63308, Matt Wilson)
1268
1269 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
1270
1271         (Fixes related to #64428, Michael Meeks)
1272
1273         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
1274         widget, so it gets mapped again properly when we
1275         add to a parent.
1276
1277         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1278         plug->socket_window. 
1279
1280         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
1281         socket_window to NULL, not FALSE.
1282
1283         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1284         socket->same_app to TRUE. (#64612)
1285
1286 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
1287
1288         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
1289         gtk_fixed_set/get_has_window() to remove criticism
1290         about GTK_WIDGET_SET_FLAGS() hacks.
1291
1292 2001-11-19  Michael Natterer  <mitch@gimp.org>
1293
1294         * gtk/gtknotebook.c: show notebook->event_window with
1295         gdk_window_show_unraised(), so it doesn't catch the events which
1296         should go to the tab widgets first.
1297
1298 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
1299
1300         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
1301         "resizable" property, to get rid of the
1302         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
1303         (gtk_tree_view_column_set_resizable): New function to set resizable.
1304         (gtk_tree_view_column_set_resizable): getter.
1305
1306         * tests/testtreecolumns.c (add_clicked): modify for above change.
1307
1308         * Makefile.am (install-data-hook): remove old .pc files before
1309         installing the new one.  We used to symlink this, and it will
1310         break old installs.
1311
1312 2001-11-19  Havoc Pennington  <hp@pobox.com>
1313
1314         * tests/testtext.c (fill_example_buffer): put in a test for
1315         negative indentation values
1316
1317 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
1318
1319         * gtk/gtklabel.c (gtk_label_init): Change default for
1320         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
1321         labels are most often wrapped labels, this gives better
1322         compatibility with GTK+-1.2, where justification was
1323         ignored for wrapped labesl and is a more sensible
1324         default in any case. (#64489)
1325
1326         * gtk/gtklabel.c (gtk_label_class_init): Fix default
1327         for wrap property to FALSE.
1328
1329 2001-11-19  jacob berkman  <jacob@ximian.com>
1330
1331         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
1332
1333 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
1334
1335         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
1336         RevertToParent, not RevertToNone. (#64613, 
1337         Matthias Clasen)
1338
1339 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
1340
1341         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
1342         and label_yalign need to be float properties to
1343         correspond to GTK+-1.2, to gtk_frame_set_label_align,
1344         and to the types of the xalign and yalign properties of GtkMisc.
1345         (#63484, Vitaly Tishkov)
1346
1347 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
1348
1349         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
1350         of plug_added vfunc. (#64408, Jeff Franks)
1351
1352 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
1353
1354         * configure.in (deps): Undef HAVE_STDLIB_H before
1355         checking for jpeg, because jconfig.h has this
1356         in it too (%#$@!). Fix from Matthias Clasen, #64500.
1357
1358 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
1359
1360         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
1361         memory leak when retrieving atom names. (Michael Meeks,
1362         #64508)
1363
1364 2001-11-18  Alex Larsson  <alexl@redhat.com>
1365
1366         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
1367         Update to new Pango API.
1368         
1369 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
1370
1371         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
1372         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
1373         GTK_OBJECT_DESTROYED() check macro.
1374
1375         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
1376         instances of GTK_OBJECT_DESTROYED() that weren't
1377         needed any more.
1378
1379         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
1380         for a connection to ::destroy.
1381
1382 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
1383
1384         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
1385         have been since the beginning, but as special hack,
1386         allow clearing the NO_WINDOW flag to get a window widget.
1387
1388 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
1389
1390         * gtk/gtktreestore.c: return TRUE when value changed, so
1391         row_changed is being emitted
1392
1393 2001-11-18  Hans Breuer  <hans@breuer.org>
1394
1395         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
1396         no label without op, even if it's a no-op.
1397
1398         * gtk/gtk.def :
1399         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
1400
1401         * config.h.win32.in : remove definition of HAVE_DIRENT_H
1402         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
1403         required anymore, replace it.
1404         * gtk/queryimmodules.c : DIR -> GDir replacement, also
1405         getcwd() -> g_get_current_dir()
1406
1407         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
1408         Even 'noisy laugh' scolling appears to work, though I still can't
1409         claim to have fully understood what it is supposed to do ...
1410
1411 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
1412
1413         * gtk/gtkenums.h: Include glib-object.h instead of
1414         gobject/gsignal.h
1415
1416         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
1417           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
1418         argument to the window_at_pointer() field of
1419         GdkPointerHooks. (Patch from Erwann Chenede)
1420
1421         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
1422         to 6 pointers.
1423
1424 2001-11-17  Matt Wilson  <msw@redhat.com>
1425
1426         * gtk/gtkenums.h: must include glib-object.h only
1427
1428 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
1429
1430         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
1431         key bindings in order of visibility - mnemonics, then 
1432         accelerators, then send key to the focus widget, then
1433         bindings on the GtkWindow.
1434
1435         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
1436         Removed the xoffset, yoffset fields of GtkLayout which were
1437         identically zero for compat with 1.2, but were no longer 
1438         compatible with all uses of these fields in 1.2.
1439
1440         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
1441         unused variable.
1442
1443 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
1444
1445         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
1446         We no longer need to create the signals here ... they
1447         come from the interface.
1448
1449         * gtk/maketypes.awk: Use GType, not GtkType in output.
1450
1451         * gtk/gtktypeutils.h: Mark virtually all of this
1452         file deprecated.
1453
1454         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
1455         the only use of this function is the GtkArg using
1456         GtkCallbackMarshal, since destroy notification is
1457         silly here.
1458
1459 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
1460
1461         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
1462         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
1463         only for compatibility with GTK+-1.2; and deprecate it; 
1464         put all marshalers we actually use into gtkmarshalers.list 
1465         and use the _gtk_marshal_ prefix for these marshalers.
1466
1467 2001-11-17  Murray Cumming  <murrayc@usa.net>
1468
1469         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
1470         The first parameters of the signals are now registered as
1471         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
1472         
1473 2001-11-17  Tor Lillqvist  <tml@iki.fi>
1474
1475         * gtk-zip.sh.in: Build separate runtime and developer
1476         packages.
1477
1478         * gtk/gtk.def: Reflect recent accelerator-related changes.
1479
1480 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
1481
1482         * gtk/gtkwindow.c (gtk_window_set_default): Move 
1483         notification of "has_default" to here, so it
1484         is safe to call gtk_window_set_default() instead
1485         of gtk_widget_grab_default().
1486
1487         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
1488         gtk_widget_grab_focus(), which then calls 
1489         _gtk_widget_internal_set_focus(). This makes 
1490         gtk_window_set_focus() a safe way of both setting
1491         and unsetting the focus widget.
1492
1493         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
1494         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
1495         to find the toplevel.
1496
1497         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
1498         from the "internal functions" section.
1499
1500 2001-11-16  jacob berkman  <jacob@ximian.com>
1501
1502         * tests/testgtk.c (create_radio_buttons): add some no-indicator
1503         radio buttons
1504
1505         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
1506         initially active, also initially be depressed
1507         (gtk_radio_button_clicked): also update our depressed state
1508
1509 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
1510
1511         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
1512         key press events not just to focus/window but also to
1513         intermediate widgets.
1514
1515         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
1516         to switch pages. (Needs some work on handling focus
1517         when switching pages.)
1518
1519 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
1520
1521         * gtk/gtknotebook.c: Fix child allocations to be relative to 
1522         widget position and some drawing bugs.
1523
1524         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
1525         with reading uninitialized variable.
1526
1527 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
1528
1529         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
1530         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
1531         NO_WINDOW widgets.
1532
1533         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
1534         cleanup.
1535
1536         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
1537         we are drawing in a window when drawing the paned handle.
1538
1539 2001-11-16  Sven Neumann  <sven@gimp.org>
1540
1541         * demos/gtk-demo/appwindow.c
1542         * demos/gtk-demo/menus.c: reduce compiler warnings
1543
1544 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
1545
1546         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
1547         unused callback to make things compile with 
1548         gtk_tree_view_path_at_pos_change().
1549
1550 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
1551
1552         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
1553
1554 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
1555
1556         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
1557  
1558 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
1559
1560         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
1561         to get a GdkWindow to compare event->window to.
1562
1563         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
1564         the signal for lateral motion too, #64361
1565
1566         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
1567         arg as it is useless, #64137
1568
1569 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
1570
1571         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
1572
1573 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
1574  
1575         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
1576         gdk_window_invalidate_maybe_recurse() for recursion.
1577         (Soeren Sandmann)
1578
1579         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
1580  
1581         * gtk/gtkcontainer.c (gtk_container_expose): Call
1582         gtk_container_forall() not _foreach() to propagate,
1583         since we need to propagate exposes to internal children
1584         as well.
1585
1586         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
1587         Remove the restriction of only being able to call these
1588         on window widgets, since we have lots of NO_WINDOW widgets
1589         with windows now; for add events, recurse over the children
1590         of widget->window to find one owned by the widget.
1591
1592         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
1593         window to catch events.
1594
1595         * gtk/gtktogglebutton.[ch]: Remove the code for switching
1596         between NO_WINDOW and WINDOW widgets based on the mode.
1597
1598         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
1599         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
1600
1601         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
1602
1603         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
1604         change for range.
1605
1606         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
1607  
1608         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
1609
1610 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
1611
1612         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
1613         "message_type" and "buttons" CONSTRUCT properties. (#64069)
1614
1615         * tests/testsocket.c: Expand tests to add a "local passive
1616         child" (Test case for #64428)
1617
1618 2001-11-14  jacob berkman  <jacob@ximian.com>
1619
1620         * gtk/gtkgamma.c (button_clicked_callback): create the label with
1621         a mnemonic
1622
1623 2001-11-15  Sven Neumann  <sven@gimp.org>
1624
1625         * tests/testgtk.c: make it compile without warnings.
1626
1627 2001-11-14  Alex Larsson  <alexl@redhat.com>
1628
1629         * gtk/gtklabel.c:
1630         Don't recalculate the layout on each gkt_label_ensure_layout () for
1631         wrapped labels.
1632
1633 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
1634
1635         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
1636         the currently selected column when we get the column, #64380
1637
1638         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
1639         to cancel CellRendererText editting, #63613
1640
1641         * gtk/gtkcellrenderertext.c: ditto
1642
1643         * gtk/gtkcellrenderertext.h: formatting changes
1644
1645 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
1646
1647         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
1648
1649         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
1650
1651         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
1652
1653         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
1654
1655         * gtk/gtklabel.c: Documentation fixes (#64452)
1656
1657 2001-11-14  Daniel Egger  <degger@fhm.edu>
1658
1659         * gdk-pixbuf/io-xpm.c: 
1660         (xpm_skip_whitespaces): Remove unused static function.
1661         (xpm_skip_string): Dito.        
1662         (xpm_extract_color): Declare const variable const to avoid warnings. 
1663
1664         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
1665         
1666         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
1667         
1668         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
1669         a long.
1670
1671 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
1672
1673         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
1674         out accidental commit of debugging timing code.
1675
1676 2001-11-14  Havoc Pennington  <hp@redhat.com>
1677
1678         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
1679         it doesn't move to a new line each time you press it
1680
1681         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
1682         return value, #62987
1683
1684 2001-11-14  Havoc Pennington  <hp@redhat.com>
1685
1686         * tests/testtextbuffer.c (main): bulk of the tests were commented
1687         out, oops.
1688
1689         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
1690         function work, should resolve #63426
1691         (gtk_text_iter_ends_line): return TRUE for the end iterator
1692
1693         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
1694         a couple things that might get cached in here.
1695
1696 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
1697
1698         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
1699         "model" construct property for language bindings.
1700
1701         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
1702         function to let you set the column types of a GtkTreeStore for
1703         language bindings.
1704
1705         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
1706
1707 2001-11-13  Havoc Pennington  <hp@redhat.com>
1708
1709         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
1710         including reference to bugzilla bug about how we should have 
1711         a better way of positioning children
1712
1713         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
1714
1715         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
1716         size to side rects if they don't exist, #63438
1717
1718 2001-11-13  Havoc Pennington  <hp@redhat.com>
1719
1720         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
1721         properly replace selection with Return or Tab
1722
1723         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
1724         that didn't locate the end of the line correctly, should fix #63800
1725
1726 2001-11-13  Havoc Pennington  <hp@redhat.com>
1727
1728         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
1729         to requisition, request non-anchored children
1730         (gtk_text_view_size_allocate): handle border width, allocate
1731         non-anchored children
1732         (text_view_child_new_window): set the child as object data
1733         (gtk_text_view_move_child): allow children at negative
1734         coordinates, no reason why not
1735         (gtk_text_view_forall): make it copy the list of children before
1736         walking it, to avoid reentrancy issues  
1737         (gtk_text_view_move_child): short-circuit if position is unchanged
1738         (changed_handler): only queue_resize if requisition has changed
1739         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
1740         a better job of invalidation ourselves
1741
1742         * tests/testtext.c: add tests for the fixed-position children
1743
1744 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
1745
1746         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
1747         with gdk threads macro.
1748
1749 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
1750
1751         * gtk/maketypes.awk: fix type utils generation on unix.
1752
1753         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
1754         registry.
1755
1756         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
1757         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
1758         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
1759         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
1760         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
1761         introduced ::accel_changed signal for change notification, and
1762         gtk_accel_group_connect/disconnect to connect closures to accel groups.
1763         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
1764         functions.
1765         deprecated gtk_accel_group_ref/unref.
1766
1767         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
1768         to accel group changed notification and basically operate on closures.
1769         removed gtk_accel_label_get_accel_object and
1770         gtk_accel_label_set_accel_object.
1771         introduced gtk_accel_label_set_accel_closure, and for convenience,
1772         gtk_accel_label_set_accel_widget.
1773
1774         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
1775         which mostly moved into gtkaccelmap.[hc].
1776         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
1777         and gtk_item_factory_print_func.
1778
1779         * gtk/gtkmain.c: call _gtk_accel_map_init().
1780
1781         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
1782         that associates an accelerator path with menu items, through which
1783         persistent accelerator settings on menu items are enabled.
1784
1785         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
1786         paths of menu item can be default constructed to allow installation
1787         of accelerators on menu items that don't come with an accelerator
1788         binding by default.
1789
1790         * gtk/gtksettings.c: fix STRING type rc settings by special casing
1791         them appropriately in the parser.
1792
1793         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
1794         gtk_signal_newv().
1795
1796         * gtk/gtkwidget.[hc]: accelerator API revamp.
1797         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
1798         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
1799         gtk_widget_(un)lock_accelerators.
1800         accelerators maintained through gtk_widget_add/remove_accelerator()
1801         are not runtime changable now, the correct sequence to setup a
1802         widget for runtime changable accelerators is now:
1803           gtk_accel_map_add_entry(accel_path, key, mods);
1804           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
1805
1806         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
1807         group changes (as well as mnemonic changes) through the new signal
1808         ::accels_changed.
1809
1810 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
1811
1812         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
1813         GString->string conversions.
1814
1815 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
1816
1817         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
1818         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
1819
1820 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
1821
1822         * gtk/gtktreeview.c: Documentation fixes. (#64377)
1823         
1824         * gtk/gtktreestore.c: Documentation fixes. (#64376)
1825
1826 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
1827
1828         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
1829         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
1830         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
1831         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
1832
1833 2001-11-10  Hans Breuer  <hans@breuer.org>
1834
1835         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
1836         we know what we are talking about when asked for MINMAXINFO.
1837         Also some cleaning for !HAVE_DIMM_H etc.
1838
1839 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
1840
1841         * gtk/gtktreeviewcolumn.c: Fix docs for 
1842         gtk_tree_view_column_set_sort_order. (#62647)
1843         
1844         * gtk/gtkcontainer.c: Fix docs for 
1845         gtk_container_set_border_width. (#64139)
1846
1847         * gtk/gtkcolorsel.c: Documentation fixes.
1848
1849 2001-11-10  Hans Breuer  <hans@breuer.org>
1850
1851         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
1852         don't have strcasecmp()
1853
1854         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
1855         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
1856         code duplication wrap it in its own function and use it in 
1857         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
1858
1859         * gdk/win32/gdkdrawable-win32.c : implement the finalize
1860         method like the X11 version does, allow to set_colormap NULL
1861         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
1862         set_colormap, also some adaption to X11 version :
1863         (gdk_window_hide) call _gdk_window_clear_update_area
1864         (gdk_window_reparent) call _gdk_window_init_position
1865
1866         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
1867         call gdk_window_resize() after all hints are set, because the
1868         window resizing process (WM_GETMINMAXINFO) takes all of them into 
1869         account
1870
1871         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
1872
1873         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
1874         sizeof (GdkVisualPrivate)
1875
1876         * gdk/gdk.def gtk/gtk.def : upated externals
1877
1878         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
1879           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
1880         from now on use make.msc from $(TOP)/glib/build/win32
1881
1882         * gtk/stock-icons/makefile.msc : add stock_missing_image
1883
1884 2001-11-08  Tor Lillqvist  <tml@iki.fi>
1885
1886         * README.win32: Add headers. Add section about ActiveIMM.
1887
1888         * configure.in: Add --with-ie55 flag to specify the location of
1889         the "IE55 libs and headers" package downloadable from Microsoft,
1890         which contains, among other things, the Active IMM header dimm.h
1891         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
1892         Require GLib 1.3.10.
1893         
1894         * config.h.win32.in: New version, produced by merging two
1895         configure-generated ones (for gcc and MSVC). Hopefully #defines
1896         the same flags that the previous, hand-written one, did.
1897
1898         * gdk/Makefile.am
1899         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
1900
1901         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
1902         stuff. Remove unused GdkIOClosure.
1903
1904         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
1905         available).
1906
1907         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
1908         for uuid.lib. (Does it really have to be this hard to use an
1909         existing library with libtool? Probably I am missing something.)
1910
1911 2001-11-08  Darin Adler  <darin@bentspoon.com>
1912
1913         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
1914         typo where it says LEFT instead of CENTER.
1915
1916 2001-11-07  Darin Adler  <darin@bentspoon.com>
1917
1918         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
1919         (gtk_dialog_set_default_response): Add g_return_if_fail.
1920
1921 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
1922
1923         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
1924         Add row_draggable() vfunc, and wrapper function.
1925
1926         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
1927         row_drop_possible take a GtkSelectionData, rather than
1928         model/row pair.
1929
1930         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
1931         new DND interfaces.
1932
1933         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
1934         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
1935         and rename them to enable_model_drag_source/dest.
1936
1937         * gtk/treeviewcolumn.c: Add DND of columns between rows.
1938         Still can't drop _to_ the left tree, but other places
1939         work.
1940
1941         * gtk/gtktreeview.c (unset_reorderable): Unset the
1942         reorderable property if unset/enable_model_drag_source/dest
1943         are called manually.
1944
1945         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
1946         Correct for change in depth count handling.
1947
1948         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
1949         Pass in a expose area to gtk_tree_view_column_cell_render()
1950
1951 2001-11-06  Havoc Pennington  <hp@redhat.com>
1952
1953         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
1954
1955 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
1956
1957         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
1958
1959 2001-11-05  Havoc Pennington  <hp@redhat.com>
1960
1961         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
1962         widgets in here
1963         (gtk_text_view_realize): set parent window of child widgets
1964         (gtk_text_view_size_request): use child req to decide whether
1965         to invalidate layout, not widget->requisition
1966
1967         * gtk/gtktextdisplay.c (render_layout_line): set
1968         shaped_width_pixels for NULL shape objects, so that we properly
1969         draw the "missing pixbuf/widget" thing
1970         (render_layout_line): don't draw the widget here
1971         (gtk_text_layout_draw): pass out a list of widgets that need exposing
1972
1973         * demos/gtk-demo/textview.c (insert_text): add demo of child
1974         widgets
1975
1976         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
1977
1978         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
1979
1980         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
1981         scroll offsets
1982         (gtk_text_view_value_changed): poke new X and Y into child allocations
1983
1984 2001-11-06  Tor Lillqvist  <tml@iki.fi>
1985
1986         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
1987         -specific directory on Windows, too (#63759).
1988
1989 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
1990
1991         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
1992         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
1993         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
1994         directly to Picture objects instead of using XftDraw.
1995         This fixes the problem where we weren't able to 
1996         properly destroy XftDraw objects before destroying
1997         the accompanying windows, and probably improves
1998         efficiency a bit too. (#50214)
1999
2000 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
2001
2002         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
2003         Clamp max window width/height to 32767, not 32768 since
2004         we have to be able to deal with a dx/y of -32768 without
2005         getting a width of 65536 when guffaw scrolling.
2006
2007         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
2008         for the guffaw scrolling case, fixing some problems with
2009         copy-area case as well. Fix BadValue bug with moving windows
2010         by large amounts.
2011
2012         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
2013         clip in window structue before calling gdk_window_invalidate_region
2014         since that trims new invalidations to the window's visible
2015         region.
2016
2017         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
2018         Really set the static window gravity on the children, not
2019         repeatedly on the window.
2020
2021         * gtk/testgtk.c: Add a torture test for big windows and 
2022         gdk_window_scroll().
2023
2024 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
2025
2026         * acconfig.h configure.in: sigsetjmp is macroized in some places,
2027         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
2028
2029 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
2030
2031         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
2032         in terms of pango_color_parse().
2033
2034         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
2035         gdk_color_parse() implementations.
2036
2037 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
2038
2039         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
2040         queue_resize_on_group with both the old and new mode, not
2041         just the new mode. (#60171, Nicolas Setton). Also, notify
2042         the "mode" property.
2043         
2044 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
2045
2046         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
2047         for use in "shallow invalidation" of a widget. (Windows belonging
2048         to the widget, but not to the widget's children)
2049
2050         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
2051         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
2052         up on ancestors up to the resize container on queue_resize. Size
2053         requests only actually take place if GTK_REQUEST_NEEDED, size
2054         allocations only take place if GTK_ALLOC_NEEDED or the size
2055         changed.
2056
2057         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
2058         container->resize_widgets and the RESIZE_NEEDED flag since the
2059         above flags are sufficient to figure out what needs to be
2060         resized/reallocated. Remove code manipulating
2061         container->resize_widget.
2062
2063         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
2064         allows widgets to turn off being automatically invalidated is when
2065         they are resized.
2066
2067         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
2068         a widget is resized or moved is "shallow" as described above -
2069         only the windows that need to be invalidated are invalidated.
2070
2071         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
2072         Make these widget's init functions call 
2073         gtk_widget_set_redraw_on_allocate(widget,FALSE).
2074
2075         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
2076         _gtk_container_queue_resize(), since we don't want
2077         redrawing. (Probably could be done for other 
2078         calls to gtk_widget_queue_resize() in gtkwindow.c,
2079         but this is the most important one.)
2080
2081         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
2082         gtk_widget_queue_draw() - size_allocate() handles
2083         that as appropriate.
2084
2085         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
2086         of queue_clear() to avoid invalidating children.
2087
2088 2001-11-04  jacob berkman  <jacob@ximian.com>
2089
2090         * gtk/gtkmain.c (find_module): don't free the module name until
2091         after we load the module
2092
2093 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
2094  
2095         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
2096         derivation instead of boxed derivation.
2097  
2098         * gtk/gtkmarshal.list: Remove some now unused marshallers.
2099  
2100 2001-11-04  Tor Lillqvist  <tml@iki.fi>
2101
2102         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
2103         include yesterday, without really thinking), as that defeats the
2104         working of correct_libdir_prefix() (it becomes a no-op.). Add
2105         comment mentioning that. Thanks to Hans Breuer for noticing.
2106         
2107 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
2108
2109         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
2110         signal argument (was GtkWidget*).
2111
2112         * gtk/gtkwindow.c (gtk_window_frame_event),
2113           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
2114         Fixed argument types as above, removed GTK_WINDOW casts and
2115         added some GTK_WIDGET casts instead.
2116
2117 2001-11-03  Hans Breuer  <hans@breuer.org>
2118
2119         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
2120         finalize to parent class to get removed from the toplevel_list.
2121         Should fix 'random' crashes of #63474.
2122
2123         * gtk/gtktreemodelsort.c : chain finalize() to parent class
2124
2125 2001-11-03  Tor Lillqvist  <tml@iki.fi>
2126
2127         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
2128         for .dll or .so as appropriate as module suffix.
2129
2130         * gtk-zip.sh.in: Use correct import library names.
2131
2132         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
2133
2134         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
2135         Windows to turn build-time paths from a gtk.immodules distributed
2136         as part of a binary package into runtime ones in the
2137         end-user-chosen installation directory.
2138         (gtk_im_module_init): Use it for module path and domain
2139         directory.
2140
2141 2001-11-02  Tor Lillqvist  <tml@iki.fi>
2142
2143         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
2144         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
2145         Windows.
2146
2147 2001-10-30  Tor Lillqvist  <tml@iki.fi>
2148
2149         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
2150         files. Configure on Win32 (running on Cygwin) thinks symlinks
2151         exist, but pkg-config is not necesarily a Cygwin program, and
2152         doesn't understand them.
2153
2154 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
2155
2156         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
2157         a bit.  I don't think it's completely correct yet, but it's
2158         getting there.
2159
2160 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
2161
2162         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
2163         random + 5 for width and height. If people want padding,
2164         they should add padding. (Note the +5 isn't padding
2165         that will always appear - it just appears in the case
2166         where the widget is allocated it's requisition.)
2167         (#51018, Janet Davis)
2168
2169 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
2170
2171         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
2172         the structure for future expansion.
2173
2174 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
2175
2176         Patch from HideToshi Tajima (#51922)
2177         
2178         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
2179
2180         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
2181         set_use_preedit().
2182         
2183         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
2184         to destroy the input context because we change the
2185         client window or use_preedit, make sure we empty
2186         the preedit string.
2187
2188 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
2189
2190         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
2191         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
2192         proposed ordering of buttons with [OK] in the lower
2193         right hand corner. Patch from Gregory Merchan,
2194         #56331.
2195
2196 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
2197
2198         * gtk/gtklabel.c (gtk_label_select_region_index): remove
2199         extraneous gtk_label_clear_layout (label)
2200
2201 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2202
2203         * tests/makefile.msc, gtk/makefile.msc.in: Removed
2204         -DGTK_DISABLE_COMPAT_H.
2205
2206         * docs/Changes-2.0.txt:
2207         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
2208
2209         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
2210
2211 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
2212
2213         * examples/**/Makefile.am: Convert to use pkg-config
2214         rather than gtk-config. (#53375, Skip Montanaro)
2215
2216 2001-11-02  Matt Wilson  <msw@redhat.com>
2217
2218         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
2219         broken unused, non-compiling, static function.
2220
2221 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
2222
2223         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
2224         Iterate through children of the action area, not of
2225         the vbox. (#58278, Sergey Kuzminov)
2226
2227 2001-11-01  Havoc Pennington  <hp@pobox.com>
2228
2229         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
2230         order to remove a workaround in Nautilus that forced
2231         GTK_ENABLE_BROKEN
2232
2233         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
2234
2235 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
2236
2237         * gtk/gtkrange.c: Patch from George Lebl to 
2238         fix division by zero for full scroll bars. (#62114)
2239
2240 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
2241
2242         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
2243         around gtk_widget_event() if we are going to
2244         set a flag afterwards. (#63464)
2245
2246 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
2247
2248         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
2249         Actually add the missing/broken image icon as the
2250         image for the "missing image" stock icon.
2251
2252 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
2253
2254         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
2255         Set a reasonable default height for the window.
2256
2257         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
2258         bug where subsequent '-' weren't converted to '_'.
2259         (#59550, Matthias Clasen)
2260
2261         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
2262         justify the Help menu - just include a comment on
2263         how to do it. (#63539,  Marius Andreiana)
2264
2265         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
2266         list GTK_ICON_SIZE_INVALID.
2267
2268         * demos/gtk-demo/stock_browser.c: Show the biggest available
2269         size, not a fixed size. (Often reported, including #63539, 
2270         Marius Andreiana)
2271
2272 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
2273
2274         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
2275         #59583
2276
2277         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
2278         warning.
2279
2280 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
2281
2282         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
2283         (Daniel Elstner).
2284
2285 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
2286
2287         * gtk/gtkimcontext.[ch]: Add:
2288           - A ::retrieve_surrounding signal that asks the widget for
2289             context around the insertion point.
2290           - A ::delete_surrounding signal that asks the widget to 
2291             delete context aroudn the insertion point.
2292           - gtk_im_context_set_context() for widgets to set context
2293             around the insertion point in response to ::retrieve_context.
2294           - gtk_im_context_get_context() for context to get context
2295             around the insertion point
2296
2297         * gtkmarshal.list: Add BOOL:INT,INT
2298
2299         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
2300         set_surrounding() methods, and the ::retrieve_surrounding /
2301         ::delete_surrounding signals.
2302
2303         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
2304         GtkIMContext::retrieve_surrounding / ::delete_surrounding
2305         signals.
2306
2307 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
2308
2309         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
2310         it's amazing how well things work sometimes, even when they're
2311         completely wrong.
2312
2313         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2314         where you could try to collapse a node w/o it having children.
2315
2316         (gtk_tree_view_class_init): remove Shift L<->R as they already
2317         existed for expand/collapse.
2318
2319 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
2320
2321         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
2322         found by Matt Wilson.
2323
2324 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
2325
2326         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
2327         Control, and Shift|Control L<->R, #63475
2328
2329 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
2330
2331         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
2332         infinite loop noticed by yosh.
2333
2334 2001-11-01  Michael Meeks  <michael@ximian.com>
2335
2336         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
2337         GTK_REALIZED flag so we don't re-enter when we are
2338         destroyed from the plug side.
2339
2340 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
2341
2342         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
2343         Add a "menu" property and notify on it. (#62798,
2344         Padraig O'Briain)
2345
2346         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
2347         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
2348         Fix set_text to take a gchar, not a guchar, and to have 
2349         a len argument.
2350
2351 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
2352
2353         * gtk/gtkstock.c: fix typo to make it compile
2354
2355 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
2356
2357         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
2358         the widget is insensitive, draw the text insensitively, #63306
2359
2360 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
2361
2362         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
2363
2364 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
2365
2366         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
2367         gtk_selection_data_set_tree_row, #60218
2368         (gtk_tree_get_row_drag_data): rename
2369         gtk_selection_data_get_tree_row, #60218
2370
2371         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
2372         get this right, after the third try, #63122.
2373
2374 2001-10-31  jacob berkman  <jacob@ximian.com>
2375
2376         * gdk/gdkselection.h (GDK_TARGET_STRING): 
2377         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
2378         for Xatoms (and not using the XA_* macros)!
2379
2380 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
2381
2382         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
2383         gtk_window_get_focus() getter to determine the currently
2384         focused widget within the window. (#63145, request
2385         from Damian Ivereigh)
2386
2387 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
2388
2389         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
2390
2391         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
2392         GTK_SELECTION_NONE enum.
2393         (_gtk_tree_selection_internal_select_node): ditto
2394
2395         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
2396         constness.
2397
2398         * gtk/gtkcellrenderertoggle.c: more yummy constness.
2399
2400         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
2401         if mode == GTK_SELECTION_NONE
2402
2403 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
2404
2405         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
2406         "cursor_changed" signal, #62850.
2407
2408 2001-10-31  Matt Wilson  <msw@redhat.com>
2409
2410         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
2411         allocating the treedatalist, zero it to make sure the values are
2412         cleared from any garbage that was in this chunk.
2413
2414 2001-10-31  Murray Cumming  <murrayc@usa.net>
2415
2416         * gtk/cellrenderertext.h: "edited" default signal handler
2417         gchar* args are now const.
2418         gtk/cellrenderertoggle.h: "toggled" default signal handler
2419         gchar* arg is now const.
2420         Also changed other signal handlers for "edited" and "toggled" to
2421         have the same signature.
2422
2423 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
2424
2425         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
2426         rewrite.  Static models now totally work.  I'm not 100% sure about
2427         row_inserted and row_changed, but I'll get those later.
2428
2429 2001-10-30  Sven Neumann  <sven@gimp.org>
2430
2431         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
2432         output for configure --help.
2433
2434 2001-10-30  Havoc Pennington  <hp@pobox.com>
2435
2436         * gtk/gtktextview.c (changed_handler): Update the IM spot location
2437         here, if text was invalidated in the visible area, because the
2438         scroll offset doesn't normally change in that case, and the mark
2439         isn't set, just implicitly moved over as text is added/removed
2440         
2441 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
2442
2443         * gtk/gtkseparatormenuitem.c: Code cleanup.
2444         (gtk_separator_menu_item_class_init): Fix bugs in this code.
2445
2446 2001-10-29  jacob berkman  <jacob@ximian.com>
2447
2448         * gdk/Makefile.am (LDFLAGS): 
2449         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
2450         LDFLAGS, so put win32 flags in here
2451
2452 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
2453
2454         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
2455         I can't believe this took this long to fix.
2456
2457 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
2458
2459         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
2460         reordered signal.
2461
2462 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
2463
2464         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
2465         the focus to the fileop entry for create dir / rename
2466         file. (#62838)
2467
2468 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
2469
2470         * configure.in: Don't use AC_CHECK_FILE to check for a 
2471         file since it always spits warnings about cross compilation,
2472         use -f instead. It's not like we cross compile properly
2473         anyways.
2474
2475         * configure.in (gtktargetlib): Move call to AC_PROG_CC
2476         to suppress autoconf warning.
2477
2478         * acconfig.h: Add some missing #undefs from recent
2479         Win32 additions.
2480
2481 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
2482
2483         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
2484         when we didn't find it. (#62944, Eric Lemings)
2485
2486         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
2487         sign in assignment. (#63209, Arkadiusz Miskiewicz)
2488
2489 2001-10-29  Anders Carlsson  <andersca@gnu.org>
2490
2491         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
2492         the buttons size request before using it. Fixes #61696.
2493
2494 2001-10-29  Tor Lillqvist  <tml@iki.fi>
2495
2496         * README.win32: Updates.
2497
2498         * gtk-zip.sh.in: New file, used to build distribution package for
2499         Windows.
2500
2501         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
2502         applicable with GDKVAR.
2503
2504         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
2505         Wintab library.
2506
2507         * gdk/win32/gdkwin32.h
2508         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
2509         X11 headers better, and to enable gdkwin32.h to be installed and
2510         included from applications, but not the *-win32.h headers.
2511
2512         * gdk/win32/*.c: Corresponding small changes, simplifications of
2513         #includes.
2514         
2515         * gdk/win32/gdkregion-win32.c: Remove.
2516
2517         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
2518
2519         * gdk/win32/gdkfont-win32.c
2520         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
2521
2522         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
2523         GDK_NONE values into hash table.
2524
2525         * gtk/gtk.def: Update.
2526
2527         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
2528         gethostname().
2529
2530         * gtk/gtkmain.c 
2531         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
2532         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
2533         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
2534         g_win32_get_package_installation_subdirectory() with the actual
2535         DLL name saved above. Redefine above directory name macros to call
2536         these functions. Remove some ifdefs.
2537
2538         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
2539         variable for export on Win32) also to the _vars file.
2540
2541         Changes for autoconfiscated build on Win32, and addition of Win32
2542         backend to the related files:
2543         
2544         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
2545         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
2546         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
2547         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
2548         win32 target, using pangowin32. Don't use the
2549         -export-symbols-regex option on Win32, we use .def files to list
2550         exported symbols. Check <winsock.h> (for gethostname() in
2551         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
2552         prevent premature m4 expansion.
2553
2554         * acconfig.h: Add HAVE_WINTAB.
2555
2556         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
2557         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
2558         MS_LIB_AVAILABLE, build MS import library. Install the import
2559         libraries. If HAVE_WINTAB, link with the Wintab library.
2560
2561         * gdk/win32/Makefile.am: Actually enable building the win32
2562         objects here, not just list all files in EXTRA_DIST. Link in the
2563         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
2564         copy the Wintab library into the .libs directory. 
2565
2566         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
2567         name of the GDK DLL when fetching the icon. Use the HMODULE saved
2568         in gdk_dll_hinstance by DllMain.
2569
2570         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
2571         build/win32/lt-compile-resource script.
2572
2573         * gdk/win32/rc/gdk.rc.in
2574         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
2575
2576         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
2577         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
2578         file. Install import libraries.
2579
2580 2001-10-29  Anders Carlsson  <andersca@gnu.org>
2581
2582         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
2583
2584 2001-10-28  Hans Breuer  <hans@breuer.org>
2585
2586         * gdk/gdk.c gdk/gdkevents.c
2587           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
2588           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
2589           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
2590           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
2591           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
2592           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
2593           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
2594         static correct-ness, underscore prefixing of library internal 
2595         functions
2596         (applied the undisputed and the win32 part. Of the latter 
2597          I'm probably the one who will change it back again, if Owen
2598          decides that the Gdk*Impl types should not be private to Gdk)
2599
2600         * gdk/gdk.def : added the remaining exported functions
2601
2602 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
2603
2604         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
2605         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
2606         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
2607
2608 2001-10-28  jacob berkman  <jacob@ximian.com>
2609
2610         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
2611         gtk_settings_get_default() here as that requires an X connection
2612         (which breaks doc building with no X connection) and is not
2613         multihead safe
2614         (gtk_color_selection_init): delay palette loading until realize
2615         time
2616         (gtk_color_selection_realize): load the palette, and initialize
2617         the global palette if it hasn't been already
2618
2619         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
2620         visual/cmap fields of klass->info since they are gone
2621         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
2622         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
2623         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
2624
2625         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
2626         cmap fields
2627         (gtk_preview_get_visual):
2628         (gtk_preview_get_cmap): mark as deprecated
2629
2630         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
2631         changes
2632
2633 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
2634
2635         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
2636         structure to have GObject not GtkObject as
2637         parent_instance. (Jeff Franks.)
2638
2639 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
2640
2641         * gdk/x11/gdkinput.c: Typo fix.
2642
2643 2001-10-26  Havoc Pennington  <hp@pobox.com>
2644
2645         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
2646         update_im_spot_location here explicitly
2647         (gtk_text_view_reset_im_context): don't update the spot location
2648         here
2649
2650 2001-10-27  Anders Carlsson  <andersca@gnu.org>
2651
2652         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
2653         This fixes #62942.
2654
2655         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
2656         Clarify that we're returning a spin button in the _new function.
2657         This fixes #54097.
2658         
2659 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
2660
2661         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
2662         Unfortunately, people apparently erroneously connect
2663         to ::clicked for GtkToggleButton and expect
2664         they know what happened in the default signal handler
2665         instead of appropriately connecting to notification
2666         signal ::toggled. When the revolution comes, such
2667         people will be first against the wall.
2668
2669         We'll just have to go back to the old less-reliable
2670         set-it-back hacks for handling model-view check
2671         buttons and radio buttons. :-(. 
2672
2673 2001-10-27  Hans Breuer  <hans@breuer.org>
2674
2675         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
2676           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
2677           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
2678           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
2679           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
2680           gtk/gtktreestore.c gtk/gtkvbbox.c : 
2681         to simplify parsing for exported functions:
2682         - made implementation signature static, when the local 
2683           prototype already was
2684         - put the functions return value on it's own line
2685         - added as space between the function name and the 
2686           opening bracket
2687
2688         * gtk/gtk.def : added the remaining exported functions
2689
2690 2001-10-27  Anders Carlsson  <andersca@gnu.org>
2691
2692         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
2693         Add note about width having to be greater than 0. This fixes
2694         #55574. 
2695
2696         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
2697         Fix docs to say previous instead of next.
2698         (gtk_text_iter_backward_word_start): Likewise.
2699         This fixes bug #62980.
2700
2701         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
2702         that the valid width is in range 0-65535 pixels. Fixes bug 
2703         #56754.
2704
2705         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
2706         a dot in the documentation. Fixes bug #62632.
2707
2708         * gdk/x11/gdkmain-x11.c: Replace int and guint with
2709         long and gulong in some places to make the code 64-bit
2710         clean.
2711         (_gdk_windowing_init_check): Replace gint with gulong.
2712         This patch was made by George Lebl and fixes bug #62113.
2713
2714         * tests/testgtk.c (create_range_controls): Don't set a 
2715         fixed height on the hscale widget. This fixes "bug" 
2716         #55840.
2717         (create_window_states): Set up destroy signals so that
2718         all windows will be destroyed when one is. This fixes 
2719         bug #58133.
2720
2721 2001-10-26  Anders Carlsson  <andersca@gnu.org>
2722
2723         * gtk/gtktreeview.c: 
2724         (gtk_tree_view_class_init): Create new "indent_expander"
2725         style property.
2726
2727         (gtk_tree_view_get_arrow_xrange): Add a tree argument
2728         to the function since the xrange can change depending
2729         on where in the tree we are. 
2730         
2731         (coords_are_over_arrow): Update function call to
2732         gtk_tree_view_get_arrow_xrange.
2733         (gtk_tree_view_draw_arrow): Likewise.
2734         
2735         (gtk_tree_view_real_expand_collapse_cursor_row):
2736         Call real_{expand|collapse}_row, so that we'll have an
2737         animation.
2738
2739 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
2740
2741         * tests/Makefile.am: fixed a small typo
2742
2743 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
2744
2745         * demos/gtk-demo/list_store.c (create_model): Anders
2746         Carlsson suggested to use G_N_ELEMENTS here
2747
2748 2001-10-26  Sven Neumann  <sven@gimp.org>
2749
2750         * gtk/gtkbutton.[ch]
2751         * gtk/gtkdnd.c: fixed inline comments
2752         
2753         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
2754
2755 2001-10-26  Hans Breuer  <hans@breuer.org>
2756
2757         * gdk-pixbuf/gdk_pixbuf.def : 
2758         * gdk/gdk.def : 
2759         * gtk/gtk.def : updated externals
2760
2761         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
2762         gdk_window_lookup implementation. It already was in
2763         gdk/win32/gdkwindow-win32.c
2764
2765         * gdk/win32/gdkproperty-win32.c : made it compile again
2766         after GdkAtom API change
2767
2768         * gtk/gtk/makefile.msc.in : updated
2769
2770 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
2771
2772         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
2773         require GLib 1.3.10.
2774
2775         * NEWS: updates.
2776
2777 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
2778
2779         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
2780         invalid nodes.
2781          (_gtk_rbnode_rotate_right): Ditto.
2782          (_gtk_rbtree_node_mark_invalid): New function.
2783          (_gtk_rbtree_node_mark_valid): New function.
2784
2785         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
2786         GObject, not a GtkObject.
2787         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
2788         correct.
2789         (gtk_tree_model_sort_row_deleted): ditto.
2790         (gtk_tree_model_sort_{un,}ref_node): Fix.
2791
2792         * gtk/gtktreeview.c: Protean incremental reflow support (commented
2793         out)
2794
2795         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
2796         to const char *key.
2797
2798         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
2799         Important 1 line fix to fix a lot of refcounting woes.
2800
2801 2001-10-25  Matt Wilson  <msw@redhat.com>
2802
2803         * gtk/gtktextview.c (gtk_text_view_destroy): call
2804         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
2805         now invalidates) so that we remove our idle functions.
2806         (gtk_text_view_destroy_layout): remove the first_validate_idle as
2807         well.
2808
2809         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
2810         the 'indent' property is G_MININT to G_MAXINT.  Don't use
2811         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
2812         instead.
2813
2814 2001-10-24  Anders Carlsson  <andersca@gnu.org>
2815
2816         * gtk/gtktreeview.c: 
2817         (gtk_tree_view_real_expand_row): add an animate argument
2818         (gtk_tree_view_real_collapse_row): likewise
2819         
2820         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
2821         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
2822         (gtk_tree_view_collapse_row): update functions that call
2823         real_{expand|collapse}_row to set the animate argument 
2824         accordingly.
2825         
2826 2001-10-24  Alex Larsson  <alexl@redhat.com>
2827
2828         * gdk/linux-fb/gdkfont-fb.c:
2829         Update to new Pango APIs
2830
2831         * gdk/linux-fb/gdkproperty-fb.c:
2832         Update to new GdkAtom APIs
2833
2834         * gdk/linux-fb/gdkwindow-fb.c:
2835         Remove warnings
2836
2837 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
2838
2839         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
2840
2841 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
2842
2843         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
2844         s_path as a child path
2845
2846 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
2847
2848         * gtk/gtktreemodelsort.c: more changes in an attempt to get
2849         it right. It's not yet ready for general consumption.
2850
2851         * tests/treestoretest.c: add a button and entry for the new
2852         iter_change function
2853         (iter_change): new function, to test
2854         the row_changed signal implementation of the GtkTreeModelSort
2855
2856         * tests/testtreesort.c: cleanups, changes to test more features
2857         of the GtkTreeModelSort at once
2858
2859 2001-10-24  Havoc Pennington  <hp@redhat.com>
2860
2861         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
2862         remove hack to strip off the bogus newline, since we killed the
2863         bogus newline; fixes #61779
2864
2865 2001-10-24  Havoc Pennington  <hp@redhat.com>
2866
2867         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
2868         create layout if we didn't have one
2869         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
2870         as appropriate, avoids blanking the screen 
2871         (gtk_text_view_invalidate): new function to do invalidation,
2872         containing old guts of invalidated_handler
2873
2874 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
2875
2876         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
2877         dreadful tooltips.
2878
2879 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
2880
2881         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
2882         set window->parent (except or the root window itself); if 
2883         the window's parent is not a GdkWindow, or is a window of 
2884         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
2885
2886         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
2887         windows of type GDK_WINDOW_FOREIGN.
2888
2889 2001-10-24  Havoc Pennington  <hp@pobox.com>
2890
2891         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
2892         the front of a segment, use the "slow" technique for moving
2893         backward, so we don't mess up the any_segment field in the iter. 
2894         Fixes #57707
2895
2896         * tests/testtextbuffer.c: add code to detect #57707, to avoid
2897         regression
2898
2899 2001-10-23  Havoc Pennington  <hp@redhat.com>
2900
2901         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
2902         if selection contains some editable text, #60975
2903         (gtk_text_view_scroll_to_iter): remove warning about scrolling
2904         prior to map; it should actually be OK to do so in many cases, 
2905         it would be nice to warn about scrolling when many lines have
2906         height 0, but I don't know what to do about that. Perhaps 
2907         move part of flush_scroll into this function? comment added 
2908         to consider this.
2909
2910 2001-10-23  Havoc Pennington  <hp@redhat.com>
2911
2912         * gtk/gtktextview.c (changed_handler): Correctly keep the same
2913         text on the top of the screen, considering that the changed region
2914         may have overlapped the first paragraph. Should fix msw's "text
2915         widget scrolled to wrong place on map" bug, and probably some
2916         other scrolling cases as well.
2917         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
2918         instead of some random value
2919
2920         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
2921         grab_focus, so #59708 is really fixed
2922
2923 2001-10-24  Anders Carlsson  <andersca@gnu.org>
2924
2925         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
2926         (popup_targets_received): Call append_action_signal with stock items
2927         
2928         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
2929         (gtk_label_do_popup): Call append_action_signal with stock items
2930         
2931         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
2932         (popup_targets_received): Call append_action_signal with stock items
2933
2934 2001-10-23  Havoc Pennington  <hp@redhat.com>
2935
2936         * gtk/gtktextview.c (changed_handler): queue a resize here; will
2937         temporarily slow down the widget a lot, until we figure out how to
2938         optimize to avoid full redraw everytime we queue a resize.
2939
2940 2001-10-23  Havoc Pennington  <hp@redhat.com>
2941
2942         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
2943         0 and char_len == 0, bug #61729
2944
2945 2001-10-23  Havoc Pennington  <hp@redhat.com>
2946
2947         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
2948         return value, #61714 (Vitaly Tishkov)
2949         (gtk_text_iter_backward_sentence_starts): ditto
2950         (gtk_text_iter_backward_word_starts): ditto
2951         (gtk_text_iter_forward_word_ends): ditto
2952         (gtk_text_iter_forward_sentence_ends): ditto
2953         (gtk_text_iter_backward_cursor_positions): ditto
2954
2955 2001-10-23  Havoc Pennington  <hp@redhat.com>
2956
2957         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
2958         fix from Dov Grobgeld, #61858
2959
2960 2001-10-23  Havoc Pennington  <hp@redhat.com>
2961
2962         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
2963         Update IM spot location at appropriate times, #50626
2964         (Hidetoshi Tajima)
2965
2966 2001-10-23  Havoc Pennington  <hp@redhat.com>
2967
2968         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
2969         on grab focus, unless it's caused by button click, #59708
2970
2971 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
2972
2973         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
2974
2975         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
2976         G_CONST_RETURN. (Murray Cumming)        
2977
2978         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
2979         Make G_CONST_RETURN.
2980
2981         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
2982         results of g_get_home_dir().
2983
2984         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
2985         copy. Storing the return from gtk_entry_get_text() is evil.
2986
2987         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
2988         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
2989         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
2990         gtk/gtksignal.c: Add const.
2991
2992         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
2993
2994         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
2995         if we are setting them on private widgets.
2996
2997         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
2998         Duplicate entry->text before setting it as object data.
2999
3000 2001-10-22  Havoc Pennington  <hp@redhat.com>
3001
3002         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
3003         up a char from the end iterator, fixes #61859 ("can't put cursor
3004         at the end of the buffer")
3005
3006         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
3007         to work with delimiters other than newline.
3008
3009         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
3010         get_bytes_in_line
3011
3012         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
3013         last line, since the newline is no longer counted.
3014         (gtk_text_iter_get_bytes_in_line): ditto
3015
3016 2001-10-22  Havoc Pennington  <hp@redhat.com>
3017
3018         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
3019         #58290 would trigger if it reappeared, I think
3020
3021 2001-10-22  Havoc Pennington  <hp@redhat.com>
3022
3023         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3024         add temporary code to dump btree contents on assertion failure
3025         described in #62656
3026         
3027         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
3028         assertions that we're getting the right end iter segment
3029
3030         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3031         verify that we aren't on the end iterator after moving 
3032         forward one segment - fixes return value in an obscure case. 
3033         Also, some trivial code cleanup/rearranging.
3034         
3035 2001-10-22  Havoc Pennington  <hp@redhat.com>
3036
3037         * gtk/gtktextlayout.h: add a #error unless you define
3038         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
3039
3040         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
3041         
3042 2001-10-22  Havoc Pennington  <hp@redhat.com>
3043
3044         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
3045         #62365
3046
3047 2001-10-22  Havoc Pennington  <hp@redhat.com>
3048
3049         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
3050         #62436
3051
3052 2001-10-22  Havoc Pennington  <hp@redhat.com>
3053
3054         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
3055         #62366
3056
3057 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
3058
3059         * gtk/gtklabel.c: Add cursor-position, selection-bound 
3060         properties. (#62148, reported by Padraig O'Briain)
3061
3062         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
3063         to cursor_position. (1.3.x addition, text_position is an awful
3064         name.) Make cursor_position read-only to avoid sticky questions
3065         of interaction with selection_bound. (#62636, reported by
3066         Padraig O'Briain)
3067
3068 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
3069
3070         Fixing popup menus to have "Paste" sensitized correctly. Original
3071         patches from Damian Ivereigh, much mangled.
3072
3073         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
3074         gtk_selection_data_targets_include_text(). (#60854)
3075
3076         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
3077         the clipboard has text" function gtk_clipboard_wait_is_text_available.
3078         (#60854)
3079
3080         * gtk/gtkentry.c: Only enable the paste item if the clipboard
3081         contains text. (#60973)
3082
3083         * gtk/gtktextview.c: Only enable the paste item if the clipboard
3084         contains text. (#60975)
3085
3086 2001-10-22  Havoc Pennington  <hp@redhat.com>
3087
3088         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
3089         "height_lines" and "width_columns" properties, it doesn't make
3090         sense to set the size request on a text view really. #62103
3091
3092 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
3093
3094         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
3095         g_node_depth is broken, and that it's not worth being consistent
3096         with it.
3097
3098 2001-10-22  Havoc Pennington  <hp@redhat.com>
3099
3100         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
3101         docs, #61777
3102         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
3103         change the two boolean args to a flags field, so we can extend 
3104         to add case insensitive, regexp searches later. #61852
3105
3106 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
3107
3108         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
3109         reflect reality, #62810
3110
3111 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
3112
3113         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
3114
3115         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
3116         system.  Instead of having a window the size of the tree, we have
3117         a window the size of widget->allocation, and simply draw with the
3118         offset.
3119         (coords_are_over_arrow): ditto.  Move to window coordinates.
3120         (do_prelight): ditto
3121         (do_unprelight): ditto
3122
3123         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3124         Minor fix from Kristian Rietveld to fix unsorted case.
3125
3126 2001-10-22  jacob berkman  <jacob@ximian.com>
3127
3128         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
3129         a PIXMAP cell (fixes crash when using PIXTEXT cells)
3130
3131 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
3132
3133         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
3134         (#58768, Vitaly Tishkov)
3135         
3136         * gtk/gtkobject.h: Deprecate with abandon. 
3137         (#61942, Vitaly Tishkov, Matthias Clasen)
3138
3139         * gtk/gtksignal.h: Deprecate everything.
3140
3141         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
3142         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
3143         (#61942, Matthias Clasen)
3144
3145         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
3146         Havoc Pennington)
3147
3148         * gtk/gtkitemfactory.h: Deprecate compat functions
3149         for GtkMenuFactory code. (#62071)
3150
3151         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
3152         gdk_draw_text,gdk_draw_text_wc. (#62071)
3153
3154 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
3155
3156         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
3157         g_thread_init(), we don't want to link to -lgthread if we don't
3158         have to.
3159
3160 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
3161
3162         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
3163         Add a function, gdk_threads_init() that must be explicitely 
3164         called to enable the GDK thread mutex.
3165
3166 2001-10-22  Jakub Steiner <jimmac@ximian.com>
3167
3168         * gtk/stock-icons/stock_stop.png: no body parts
3169         
3170 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
3171
3172         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
3173         problem with g_return_if_fail return value.
3174
3175         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
3176         virtual atom code from the gdk-multihead branch, removing the per-display
3177         part. Virtualizing atoms needs to be done now to prevent compat
3178         breakage in direct Xlib accessing code in the future. (#62208)
3179  
3180         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
3181         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
3182  
3183         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
3184         an opaque pointer type so the compiler catches attempts
3185         to mingle it with X atoms.
3186
3187         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
3188           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
3189           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
3190           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
3191           tests/testdnd.c,tests/testselection.c: 
3192         Fix up for above atom changes.
3193
3194         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
3195         now have the ability to add custom predefines.
3196
3197         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
3198         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
3199         to gtk_clipboard_get().
3200
3201         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
3202         for GdkAtom => pointer change.
3203
3204         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
3205         atoms, fix for GdkAtom => pointer change.
3206
3207 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
3208
3209         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
3210         new function spin_button_get_arrow_size() instead.
3211
3212         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
3213         arrow was hardcoded, it's now variable.
3214
3215         Fixes bug #50200
3216
3217 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
3218
3219         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
3220         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
3221         for those
3222
3223 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
3224
3225         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
3226         in favor of g_signal_*, gtk_object_* in favor of 
3227         g_object_*.
3228
3229 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
3230
3231         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
3232         from GObject now, we have to use the g_object_* functions, not
3233         gtk_object_*.
3234
3235 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
3236
3237         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
3238         nailed down now (this code is not yet ready for general consumption)
3239
3240 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
3241
3242         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
3243         for use_align
3244
3245 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
3246
3247         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
3248
3249 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
3250
3251         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
3252         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
3253         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
3254         GObject, not GtkObject. (#62621)
3255
3256 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
3257
3258         * tests/testsocket.c: Remove now useless include of unistd.h,
3259         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
3260         
3261 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
3262
3263         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
3264         Pango font API. #61933. (Untested, even for compilation.)
3265
3266 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
3267
3268         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
3269         export gtk_disable_setlocale(). (Caught by Sven Neumann)
3270
3271 2001-10-18  Havoc Pennington  <hp@redhat.com>
3272
3273         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
3274
3275 2001-10-18  Havoc Pennington  <hp@redhat.com>
3276
3277         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
3278         to GTK_RUN_LAST, #50239
3279
3280 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
3281
3282         * gtk/gtkimmodule.c (match_locale):
3283         Support "*" for all locales with least priority
3284         when to select default im module, #58201
3285
3286 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
3287
3288         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
3289         Fix docs. (#61976)
3290  
3291         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
3292
3293         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
3294
3295         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
3296         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
3297         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
3298         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
3299         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
3300         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
3301         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
3302
3303         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
3304
3305         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
3306         Don't restrict the width of the spinbutton entry field 
3307         to 10 digits. (#58681)
3308
3309 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
3310
3311         * tests/testtreeflow.c: new test program for the tree.
3312
3313 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
3314
3315         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
3316         reported by (Oleg Maiboroda), #62600
3317
3318 2001-10-18  Michael Meeks  <michael@ximian.com>
3319
3320         * gtk/gtkentry.c (gtk_entry_set_property),
3321         (gtk_entry_get_property): impl 'text'
3322         (gtk_entry_class_init): add the 'text' prop.
3323         (gtk_entry_insert_text): notify 'text' changed.
3324         (gtk_entry_delete_text): ditto.
3325
3326 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
3327
3328         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
3329         Documentation updates.
3330
3331 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
3332
3333         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
3334         in truncating length of text to MAX_SIZE. (Found by 
3335         Padraig O'Briain, #62055)
3336
3337 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
3338
3339         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
3340         MNEMONIC_ACTIVATE; signal was changed a long time
3341         ago.
3342
3343         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
3344         Fix wrong return statement. (Reported by HideToshi
3345         Tajima and others.)
3346
3347         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
3348         left over select_all vfunc.
3349
3350 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
3351
3352         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
3353         a utility function to translate coordinates relative to
3354         one widget's allocation to coordinates relative to another
3355         widget's allocation.
3356
3357         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
3358         that:
3359          - only accepts external focus if there is no active
3360            member of the group or the button is active.
3361          - makes arrow keys move the active button as well
3362            as the focus
3363          - make tab tab out directly.
3364         This makes a radio button group act as a single focus location.
3365         (#53577).
3366         
3367         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
3368         it was only a small optimization that didn't matter and made
3369         things more complicated.
3370
3371         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
3372         sorter for FOCUS_TAB as we did for the other focus directions,
3373         sort by center of widgets, not upper-left corner. (Shouldn't
3374         matter in general.)
3375
3376         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
3377         from the different types of focusing: encapsulate sorting the
3378         widgets for the focus direction into one routine
3379         (gtk_container_focus_sort()) and then share the work of moving the
3380         focus between the different focus directions.
3381
3382         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
3383         work correctly with focus chains containing non-immediate
3384         children. Sorting was being done using allocation coordinates for
3385         each widget in the focus chain, and if there were intermediate
3386         window-widgets, these allocations would not be in the same
3387         coordinate system.
3388
3389 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
3390
3391         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
3392         mnemonic_activate function to option menu.
3393
3394 2001-10-15  Murray Cumming <murrayc@usa.net>
3395
3396         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
3397           Corrected the type names used in some calls to g_signal_new().
3398         
3399 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
3400
3401         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
3402         specs, use g_pattern_spec_equal() instead of direct field accesses.
3403         upon compressing two equal paths of the same type, the resulting
3404         priority has to be the maximum.
3405         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
3406         GtkPathPriorityType enum and make it a macro.
3407
3408 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
3409
3410         * gtk/gtkwidget.c: Fix some doc comments.
3411
3412 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
3413
3414         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
3415         on empty models.
3416
3417 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
3418
3419         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
3420         Remove stale gdk backend includes.
3421  
3422 2001-10-10  Michael Meeks  <michael@ximian.com>
3423
3424         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
3425         and value_in_list properties.
3426         (gtk_combo_set_value_in_list): notify change.
3427         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
3428
3429 2001-10-11  James Henstridge  <james@daa.com.au>
3430
3431         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
3432         that gtk+ can be built with automake 1.5 while not breaking
3433         things for automake 1.4.
3434
3435 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
3436
3437         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
3438         (#60606)
3439
3440         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
3441         to disable calling setlocale (LC_ALL, "").
3442
3443         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
3444         docs that this function is not typically useful.
3445
3446         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
3447         Automatically initialize GDK for the current locale
3448         on gdk_init(). Don't reset locale to C when
3449         XSupportsLocale() fails.
3450
3451         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
3452         useless checks for UTF-8 locale breakage that mattered
3453         only for X.
3454
3455         * examples/calendar/calendar.c
3456         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
3457         gtk_set_locale().
3458
3459         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
3460         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
3461
3462 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
3463
3464         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
3465
3466         Fixes bug #61904
3467
3468 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
3469
3470         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
3471         new function, #61923
3472         (gtk_tree_selection_path_is_selected): Ditto
3473
3474 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
3475
3476         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
3477         not a GtkObject.  Thanks andersca.
3478
3479         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
3480
3481 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
3482
3483         * gtk/gtktreeviewcolumn.c
3484         (gtk_tree_view_model_sort_column_changed): fix broken code.
3485
3486 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
3487
3488         * gtk/gtkselection.c: s/succesfully/successfully/g
3489
3490 2001-10-08  Havoc Pennington  <hp@pobox.com>
3491
3492         * demos/gtk-demo/stock_browser.c: remove unused enum
3493
3494         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
3495         pass the current selection state of the node in to the user
3496         selection func
3497
3498 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
3499
3500         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
3501         non-existent function gdk_x11_cursor_get_xid 
3502         by gdk_x11_cursor_get_xcursor.
3503
3504 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
3505
3506         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
3507         warning.
3508
3509         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
3510         unref nodes, #okay61676
3511
3512         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
3513         to the property; no need to clear the other columns.  Also, we go
3514         to 'unsorted' if the model supports it.
3515
3516 2001-10-05  Sven Neumann  <sven@gimp.org>
3517
3518         * demos/testpixbuf-save.c
3519         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
3520         feature.
3521
3522 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
3523
3524         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
3525         destroy the search dialog
3526
3527         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3528         added check to prevent creation of a search dialog if there's
3529         already one around
3530
3531         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
3532         it instead of "search-dialog" (when getting/setting the search dialog
3533         widget).
3534
3535 2001-10-05  Jakub Steiner <jimmac@ximian.com>
3536
3537         * gtk/stock-icons/stock_broken_image.png: broken images icon
3538
3539 2001-10-04  Havoc Pennington  <hp@pobox.com>
3540
3541         Fix #56586
3542         
3543         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
3544         accelerator setting here...
3545
3546         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
3547         because we try to use it when a menu bar hasn't necessarily been 
3548         initialized.
3549
3550 2001-10-03  Havoc Pennington  <hp@redhat.com>
3551
3552         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
3553         it previously verified incorrect behavior
3554
3555         Fixes for #61565
3556         
3557         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
3558         off the end
3559         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
3560         the end
3561         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
3562         the end
3563         (gtk_text_iter_forward_lines): if on the last line, move to end of
3564         it
3565
3566         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
3567         don't return a line off the end
3568
3569 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
3570
3571         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
3572         functions to do_insert_text and do_delete_text, add signals
3573         insert_text, delete_text and changed
3574
3575         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
3576         and changed. Updates to match new situation.
3577
3578         * gtk/gtkspinbutton.c: updates to match new situation
3579
3580         * gtk/gtkoldeditable.h: remove signals changed, insert_text
3581         and delete_text
3582
3583         * gtk/gtkoldeditable.c: updates to match new situation
3584
3585         * gtk/gtktext.c: updates to match new situation
3586
3587         Fixes bug #59803
3588
3589 2001-10-03  Havoc Pennington  <hp@redhat.com>
3590
3591         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
3592         position
3593
3594         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
3595         changes
3596
3597         * tests/testtextbuffer.c (logical_motion_tests): updates
3598
3599 2001-10-03  jacob berkman  <jacob@ximian.com>
3600
3601         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
3602         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
3603         * gtk/gtksettings.c (apply_queued_setting): 
3604         * gtk/gtkmain.c (gtk_init_check): 
3605         * gtk/gtkcontainer.c (gtk_container_child_get_property):
3606         s/retrive/retrieve/
3607
3608 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
3609
3610         * gtk/gtktreemodelsort.[ch]: preparation for surgery
3611         * tests/testtreesort.c: ditto
3612
3613 2001-10-02  Havoc Pennington  <hp@redhat.com>
3614
3615         Throughout: assorted docs
3616         
3617         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
3618         gdk_window_set_geometry_hints() should be used instead.
3619
3620         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
3621         document them
3622
3623         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
3624         seem to exist in any .c files
3625
3626         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
3627         g_return_if_fail (pixel < colormap->size).
3628
3629 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
3630
3631         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
3632         NULL for @target_list to mean, use
3633         gtk_drag_dest_get_target_list (widget).
3634
3635         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
3636         drop could hang when calling gtk_drag_finish with 
3637         success == FALSE and del == TRUE.
3638
3639         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
3640         drops without a matching target found would propagate
3641         to the parent widget rather than being rejected.
3642
3643         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
3644         Use text_view->dnd_mark instead of mark name to be
3645         consistent with the rest of the code.
3646
3647         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
3648         pendantically correct for a drop-only-in-some-places
3649         widget. (Check whether you can insert in drag_drop,
3650         not just in drag_motion ... matters in theory, and
3651         for Motif drag and drop in practice.)
3652
3653         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
3654         Damian Ivereigh to not allow drops on non-editable
3655         entries. (#61124)
3656
3657         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
3658         text to be moved from a non-editable entry.
3659         
3660 2001-10-03  James Henstridge  <james@daa.com.au>
3661
3662         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
3663         s/width/fixed_width/ in order to get things to compile.
3664
3665 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
3666
3667         * gtk/gtkcelleditable.c: docs
3668
3669         * gtk/gtktreemodel.h: more docs.
3670
3671 2001-10-02  Havoc Pennington  <hp@redhat.com>
3672
3673         * gdk/x11/gdkwindow-x11.c: docs
3674
3675         * tests/testtextbuffer.c (logical_motion_tests): add sentence
3676         boundary tests
3677
3678 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
3679
3680         * demos/gtk-demo/Makefile.am: add editable_cells.c,
3681         list_store.c and tree_store.c
3682
3683         * demos/gtk-demo/appwindow.c: remove tearoff item from
3684         File menu, put menubar and toolbar in handle boxes.
3685
3686         * demos/gtk-demo/genincude.pl: various changes to support trees
3687
3688         * demos/gtk-demo/main.c: various changes to support trees
3689
3690         * demos/gtk-demo/stock_browser.c: changed name of demo
3691         to Stock Item and Icon Browser, so geninclude.pl doesn't see
3692         it as child
3693
3694         * demos/gtk-demo/editable_cells.c: new file/demo
3695         * demos/gtk-demo/list_store.c: new file/demo
3696         * demos/gtk-demo/tree_store.c: new file/demo
3697
3698 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
3699
3700         * gtk/gtkrc.c gtk/gtksettings.c: 
3701         g_string_printfa => g_string_append_printf.
3702
3703 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
3704
3705         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
3706         and destroy handler.
3707
3708         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
3709
3710         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
3711         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
3712         Singh <yosh@gimp.org>.
3713
3714 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
3715
3716         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
3717         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
3718
3719         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
3720
3721 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
3722
3723         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
3724         scroll_to_cell delayed code to happen in size_allocate.
3725
3726         * gtk/gtkstyle.c (gtk_default_draw_expander): change
3727         prelight/normal arrow drawing.
3728
3729         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
3730
3731         * gtk/gtktreestore.c: refactor.
3732
3733 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
3734
3735         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
3736         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
3737         centers the child in relation to the to indicator height.
3738
3739 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
3740
3741         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
3742         correct
3743
3744 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
3745
3746         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
3747         property code using g_param_spec_int and changed from
3748         g_value_get_enum to g_value_get_int instead. Probably a better way
3749         to fix the problem :-)
3750
3751 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
3752
3753     * gtk/gtkcellrenderertext.c changed "weight" property type from 
3754       g_param_spec_int to g_param_spec_enum.
3755
3756 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
3757
3758         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
3759         fix: s/Wether/Whether/ in reorderable property description
3760
3761 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
3762
3763         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
3764         start editing when you select with a keyboard.
3765
3766         (gtk_tree_view_button_press_event): much more graceful now.
3767
3768         * gtk/gtkstyle.c: Draw togglebutton better.
3769
3770 2001-09-26  Havoc Pennington  <hp@redhat.com>
3771
3772         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
3773         of passing non-stock label in to gtk_dialog_new_with_buttons
3774
3775         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
3776         debugging updates
3777
3778         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
3779         are private
3780
3781         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
3782         exist, fall back to mnemonic label, not plain label, bug #61184
3783         
3784 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
3785
3786         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
3787         stupid and emitting the signal every time.
3788
3789         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
3790
3791 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
3792
3793        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
3794
3795        * contrib/gdk-pixbuf-xlib/Makefile.am: install
3796        gdk-pixbuf-xlib-2.0.pc.
3797
3798 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
3799
3800         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
3801         problem where menmonic wasn't removed properly when
3802         setting a label when there already is a label.
3803         Also, handle setting the tab label back to the same
3804         value. (#61160, #61161)
3805
3806         * gtk/gtkentry.c (paste_received): Patch from 
3807         Damian Ivereigh to replace selection if there is 
3808         one. (#61121)
3809
3810 2001-09-25  Darin Adler  <darin@bentspoon.com>
3811
3812         * tests/.cvsignore: Ignore new test program.
3813
3814 2001-09-25  Havoc Pennington  <hp@redhat.com>
3815
3816         * gtk/gtktextview.c: fix for #50317
3817         
3818 2001-09-25  Havoc Pennington  <hp@redhat.com>
3819
3820         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
3821         gtk_text_iter_can_insert
3822         
3823         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
3824
3825         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
3826          (gtk_text_iter_can_insert): new function to fix #60282, should
3827         also fix msw's "can paste into empty buffer" bug.
3828
3829         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
3830         "event object,"  #59091
3831
3832         * gtk/gtktextbtree.c: indentation fixes
3833
3834         * gtk/gtktextiter.c (find_by_log_attrs): fixes
3835
3836 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
3837
3838         * configure.in: Version 1.3.9, interface age 0, binary age 0.
3839
3840         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
3841
3842         * NEWS: Updates.
3843
3844 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
3845
3846         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
3847         function for drawing cursors between gtkentry/gtklabel/gtktextview.
3848         Should this be public? It has a bit of an odd interface, but
3849         custom editing widgets probably should be using it.
3850         Function will draw with wider width for taller cursors, and
3851         draws a little indicator arrow to indicate directoin for split 
3852         cursors.
3853
3854         * gtk/gtktextview.c: Add a "cursor_color" property.
3855
3856         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
3857         gtk_text_layout_draw().
3858
3859         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
3860         _gtk_draw_insertion_cursor().
3861
3862 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
3863
3864         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
3865         the behavior where you could turn family_set (etc) back on
3866         and get back the values you had before.
3867
3868         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
3869         g_string_ascii_up() rather than looping through the
3870         string ourself.
3871
3872 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
3873
3874         * gtk/gtktreeviewcolumn.c
3875         (gtk_tree_view_column_set_cell_renderer): Removed
3876         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
3877
3878         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
3879         Patch from Detlef Reichl
3880
3881 2001-09-25  Havoc Pennington  <hp@redhat.com>
3882
3883         * tests/testtextbuffer.c (line_separator_tests): Add tests for
3884         line separators, addresses bug #57428
3885
3886 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
3887
3888         * gtk/gtkentry.c: Make a GtkCellEditable
3889         (get_widget_window_size): Change to let it honor size_allocate
3890         when a CellEditable.
3891
3892         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
3893         editable changes.
3894         (gtk_tree_view_set_cursor): Now you can set the cursor
3895         horizontally, as well as start editing.
3896
3897         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
3898         code to look more like the other check buttons.
3899
3900         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
3901         Change the way we calculate cell size.
3902
3903         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
3904
3905         * demos/gtk-demo/sizegroup.c: Add mnemonics.
3906
3907         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
3908         Fix logic.
3909
3910         * gtk/gtkcellrenderertext.c: Change to be editable.
3911
3912         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
3913
3914         * test/testtreesort.c: Fix misspelling
3915
3916         * test/testreecolumns.c: Add mnemonics.
3917
3918         * test/testreeedit.c: New test program.
3919
3920 2001-09-25  Havoc Pennington  <hp@pobox.com>
3921
3922         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
3923         etc. docs about how these are not going to do what you want for 
3924         the X/win32 ports. Futile attempt to avoid a FAQ...
3925
3926 2001-09-24  James Henstridge  <james@daa.com.au>
3927
3928         * gtk/gtkmarshal.list (VOID): add marshal function types.
3929
3930         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
3931         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
3932         GTK_TYPE_POINTER.
3933         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
3934         with no-op copy/free functions.
3935
3936         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
3937         GtkCTreeNode get_type function.
3938
3939 2001-09-24  Havoc Pennington  <hp@redhat.com>
3940
3941         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
3942         gtktextlayout.c:
3943         Get rid of the newline-that-could-not-be-deleted; buffers may 
3944         now be zero-length. Much easier to fix than expected, once 
3945         I figured out the right way to do it. However, there are 
3946         various subtle bugs introduced by this that will have to get 
3947         sorted out. Please use bugzilla.
3948
3949 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
3950
3951         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
3952         response back from the window manager if our size hasn't changed 
3953         since we won't get a response back from the window manager;
3954         there was code in there to do this, but it was in the wrong
3955         place so if the hints change and the size didn't we'd expect
3956         a response.
3957
3958         Also, optimize the position-only-changed case by running
3959         the resize queue immediately, and clean up some comments
3960         for the changes.
3961
3962 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
3963
3964         * gtk/gtknotebook.h: Add a compat macro that got lost.
3965
3966         * gtk/gtktreestore.c: Doc fixes.
3967
3968         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
3969         leak for windows that receive events after being destroyed.
3970         (#60863, Joshua N. Pritikin)
3971
3972         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
3973         rather than gtk_container_queue_resize().
3974
3975         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
3976         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
3977         gtk_container_child_composite_name. (#60217.)
3978
3979 2001-09-22  Hans Breuer  <hans@breuer.org>
3980
3981         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
3982
3983 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
3984
3985         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
3986         weight value should be an int
3987
3988 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
3989
3990         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
3991         to gtk_menu_scroll_item_visible(). Only call
3992         gtk_menu_scroll_item_visible() if the menu widget has been
3993         realized. Fixes bug #55310.
3994
3995 2001-09-21  Havoc Pennington  <hp@redhat.com>
3996
3997         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
3998         key press to IM context if cursor isn't in an editable location;
3999         bug #58425, patch from Hidetoshi Tajima
4000
4001 2001-09-21  Havoc Pennington  <hp@redhat.com>
4002
4003         Bug #60862
4004         
4005         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
4006         (_gtk_text_btree_unref): fix up mark memory management
4007
4008         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
4009
4010 2001-09-20  Havoc Pennington  <hp@redhat.com>
4011
4012         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
4013         try to handle alignment here, because it's done by PangoLayout
4014         after we set the layout width. Fix from Dov.
4015
4016 2001-09-21  Hans Breuer  <hans@breuer.org>
4017
4018         * gdk/gdk.def :
4019         * gtk/gtk.def : updated externals
4020
4021         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
4022         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
4023         Also handle that Win32 pathes cann't be hard-coded      
4024
4025         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
4026         module, themes etc directory calculations
4027
4028         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
4029         >16 bit right. The size limit within Win9x appears _not_ to be 32767
4030         but slightly smaller ...
4031
4032         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
4033         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
4034
4035         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
4036
4037         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
4038         handling. I'm not sure if it is better now, but at least not worse
4039
4040         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
4041
4042         * gdk/win32/gdkwin32.h : reflect recent API restrictions
4043
4044 2001-09-21  Matt Wilson  <msw@redhat.com>
4045
4046         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
4047         radio_menu_item->group to NULL after removing it from the list, as
4048         it is no longer in the group. (#60869)
4049
4050         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
4051
4052 2001-09-20  Havoc Pennington  <hp@pobox.com>
4053
4054         * configure.in (PANGO_REQUIRED_VERSION)
4055         (ATK_REQUIRED_VERSION): add variables and checks for specific 
4056         versions of dependencies. Previously we didn't verify the 
4057         Pango or ATk versions.
4058
4059 2001-09-09  Havoc Pennington  <hp@pobox.com>
4060
4061         * gtk/gtktextiter.c: fool with indentation
4062         (gtk_text_iter_in_range): add g_return_if_fail
4063
4064 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
4065
4066         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
4067         ref count on new tag to be 1.  Update doc.  (#60836)
4068
4069 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
4070
4071         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
4072         call to gdk_image_new_bitmap(). (#59094, reported by
4073         by Sven Neumann)
4074
4075 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
4076
4077         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
4078         day, as well as the current month and year.
4079         (#59047, reported by Vitaly Tishkov)
4080
4081 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
4082
4083         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
4084         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
4085         
4086 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
4087
4088         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
4089
4090         (build_option_menu): add func argument, connect ::changed
4091         signal to option menu instead of connecting the ::activate
4092         signal to the menu items,
4093
4094         (toplevel): get rid of RADIOMENUTOGGLED macro,
4095
4096         (list_toggle_sel_mode), (clist_toggle_sel_mode),
4097         (ctree_toggle_line_style), (ctree_toggle_expander_style),
4098         (ctree_toggle_justify), (ctree_toggle_sel_mode),
4099         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
4100         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
4101
4102         (notebook_type_changed): merged standard_notebook(),
4103         notabs_notebook(), scrollable_notebook() and borderless_notebook()
4104         into notebook_type_changed()
4105
4106         (create_list), (create_ctree), (create_notebook),
4107         (create_progress_bar): changed OptionMenuItem arrays into
4108         gchar * arrays. Removed "Extended" item where used.
4109
4110         Fixes bug #59885
4111
4112 2001-09-20  Sven Neumann  <sven@gimp.org>
4113
4114         * configure.in
4115         * gdk/Makefile.am
4116         * gtk/Makefile.am
4117         * gtk/gtkselection.c
4118         * gtk/gtktreeview.c
4119         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
4120
4121 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
4122
4123         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
4124         a missing pango_layout_iter_free ().
4125
4126 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
4127
4128         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
4129         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
4130
4131         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
4132         the function definition so we don't accidentally rely on
4133         the compat #define from gtk_radio_menu_item_group.
4134         (#60782, Jeff Franks)
4135
4136 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
4137
4138         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
4139         incorrect values for top, right and bottom due to cut-and-paste
4140         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
4141
4142 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
4143
4144         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
4145         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
4146         window, not just on the client leader. (#58463)
4147
4148 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
4149
4150         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
4151
4152         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
4153         non-public _gtk_menu_item_set_placement.
4154
4155         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
4156
4157 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
4158
4159         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
4160           gdk/linux-fb/gdkcolor-fb.c:
4161         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
4162         (#59723)
4163
4164 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
4165
4166         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
4167         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
4168         #59723)
4169
4170 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
4171
4172         Patch from Frank Belew #59037 for Solaris compilation.
4173
4174         * gtk/maketypes.awk: Change syntax slightly for a call
4175         to sub(), apparently making awk on Solaris happier.
4176
4177         * gtk/gtktreeview.c: Remove C++ comments.
4178
4179 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
4180
4181         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
4182         to handle '99% of the time. (#60473, reported by Christian Rose)
4183
4184         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
4185         which no longer exists. (#60379, reported by Vitaly Tishkov)
4186
4187 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
4188
4189         * Released 1.3.8.
4190
4191         * gdk/Makefile.am: kill EXTRA_DIST clearing.
4192         
4193 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
4194
4195         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
4196         as its broken in automake 1.4, add explicit object rule to
4197         generate this.
4198         
4199         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
4200         get rid of uneccessary stamps, group stuff more logically, and build
4201         sources due to object rules. fix srcdir!=builddir.
4202
4203 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
4204
4205         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
4206         incorrect parameter to compute_double_length
4207         (#58680, patch from Matthias Clasen)
4208
4209         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
4210
4211         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
4212
4213         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
4214         for GDK_RELEASE_MASK to avoid warnings with Forte.
4215
4216         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
4217         break; statements.
4218
4219 2001-09-18  Alex Larsson  <alexl@redhat.com>
4220
4221         * gtk/gtkcheckbutton.c:
4222         * gtk/gtkradiobutton.c:
4223         Don't draw with GTK_STATE_ACTIVE.
4224
4225         * gtk/gtkclist.c:
4226         * gtk/gtkctree.c:
4227         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
4228
4229         * gtk/gtktextdisplay.c:
4230         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4231         unfocused with base_gc [GTK_STATE_ACTIVE].
4232         
4233         * gtk/gtkentry.c:
4234         Add select all menu-item.
4235         Default cursor color is red.
4236         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4237         unfocused with base_gc [GTK_STATE_ACTIVE].
4238
4239         * gtk/gtklabel.[ch]:
4240         Add keynav + menu to selectable lables.
4241         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4242         unfocused with base_gc [GTK_STATE_ACTIVE].
4243
4244         * gtk/gtkfilesel.c:
4245         Add drag and drop support.
4246
4247         * gtk/gtkstyle.c:
4248         (This was checked in earlier)
4249         New default values for text/base SELECTED and ACTIVE
4250         
4251 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
4252
4253         * configure.in: up version to 1.3.8, interface age 0,
4254         binary age 0, depend on glib 1.3.8.
4255
4256         * NEWS: 1.3.8 updates.
4257
4258 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
4259
4260         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
4261         the editing code
4262
4263         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
4264         reason to call it beyond emiting the two signals.
4265
4266         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
4267         to GtkEntry.
4268
4269 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
4270
4271         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
4272           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
4273         PangoFontDescription.
4274
4275         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
4276         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
4277         structure.
4278   
4279         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
4280
4281         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
4282         direct access to style->font. Deprecate gtk_style_ref/unref.
4283   
4284         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
4285         Remove gtk_style_ref/unref with g_object_ref/unref.
4286   
4287         * gtk/gtkcalendar.c: Remove leftover macros accessing
4288         style->font.
4289   
4290         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
4291         variable.
4292   
4293         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
4294         style->font.
4295
4296 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
4297
4298         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
4299         "can_activate" properties in favor of
4300         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
4301         and GTK_CELL_RENDERER_MODE_EDITABLE
4302
4303 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
4304
4305         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
4306         editable widgets.  This function is private, and should only be
4307         used by GtkTreeView.
4308
4309 2001-09-18  Matt Wilson  <msw@redhat.com>
4310
4311         * docs/Makefile.am (EXTRA_DIST): don't use += before =
4312
4313         * docs/faq/Makefile.am (EXTRA_DIST): likewise
4314
4315         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
4316         
4317         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
4318         (EXTRA_HEADERS): likewise
4319
4320         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
4321         (EXTRA_HEADERS): likewise
4322         (EXTRA_DIST): likewise
4323         (CLEANFILES): likewise
4324
4325         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
4326
4327         * tests/Makefile.am (EXTRA_DIST): likewise
4328         
4329         * Makefile.am (install-data-local): changed to use
4330         install-data-hook, which runs after install-pkgconfigDATA, so that
4331         the pkgconfigdir will have been created and populated first.
4332
4333 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
4334
4335         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
4336         be the last big GtkTreeView API change.
4337
4338         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
4339         replace with "activate" and "start_editing".  Also, added a
4340         "can_activate" and "can_edit" property.
4341
4342         * gtk/gtktreeviewcolumn.c: modify to use above.
4343
4344 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
4345
4346         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
4347
4348 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
4349
4350         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
4351         icon instead of one with ugly white background.
4352
4353 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
4354
4355         * demos/gtk-demo/stock_browser.c (id_to_macro): make
4356         the uppercasing work. (#59550)
4357
4358 2001-09-14  Jakub Steiner <jimmac@ximian.com>
4359
4360         * gtk/stock-icons/dialog_error.png:
4361         * gtk/stock-icons/dialog_question.png: more road signs
4362
4363 2001-09-13  Jakub Steiner <jimmac@ximian.com>
4364
4365         * gtk/stock-icons/dialog_question.png:
4366         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
4367           like a road sign.
4368
4369 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
4370
4371         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
4372         signals to make them more clear.  Also, change ::range_changed to
4373         ::row_changed.
4374         * gtk/gtktreemodel.c: Adjust to interface change
4375         * gtk/gtktreemodel.h: ditto
4376         * gtk/gtktreemodelsort.c: ditto
4377         * gtk/gtktreestore.c: ditto
4378         * gtk/gtkliststore.c: ditto
4379         * gtk/gtktreeview.c: ditto
4380         * tests/testtreecolumns.c: ditto
4381         * gtk/gtkmarshal.list: Actually remove a marshaller!
4382
4383 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
4384
4385         * gtk/gtktextview.c
4386         Add support for Ctrl+Up/Down arrow to move cursor to beginning
4387         of previous/next paragraph. If within a paragraph cursor moves to
4388         beginning of that paragraph.
4389
4390 2001-09-12  Jakub Steiner <jimmac@ximian.com>
4391
4392         * gtk/stock-icons/dialog_question.png: replacing the shaky
4393           question mark with a sans-serif one.
4394         * gtk/stock-icons/stock_top.png, stock_bottom.png,
4395      stock_first.png, stock_last.png: using the new style arrows
4396         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
4397      colors.
4398         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
4399      color.
4400         * gtk/stock-icons/stock_zoom*: anti-aliased
4401         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
4402      '-' with a '_', removed the wrong files
4403
4404 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
4405  
4406         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
4407  
4408         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
4409         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
4410         than in gtk-2.0/major.minor.micro/<type>/. This
4411         works better for a search path for modules.
4412  
4413         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
4414         gtk_binary_version variable holding major.minor.(micro-binary_age).
4415  
4416         * modules/input/Makefile.am (moduledir): Fix installation
4417         directory to match change in lookup location.
4418  
4419         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
4420         suffixes. Needs to be handled in g_module_build_path().
4421
4422         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
4423         appropriate.
4424  
4425 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
4426
4427         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
4428         causing RC properties not to work.
4429
4430 2001-09-11  Jakub Steiner <jimmac@ximian.com>
4431
4432         * gtk/stock-icons/dialog-error.png: less drastic
4433         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
4434           "STOP" is international enough.
4435         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
4436         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
4437
4438 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
4439
4440         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
4441         (add|remove)_selection_clipboard symmetric. (bug #59836)
4442
4443         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
4444         Avoid SEGV for empty tree. (bug #60243)
4445
4446 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
4447
4448         * tests/testgtk.c (create_idle_test): slight fix for
4449         g_object_set() not usable for nesting anymore.
4450
4451         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
4452         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
4453         properties, supply ::shadow_type properties instead as most
4454         other widgets do.
4455
4456 2001-09-10  Alex Larsson  <alexl@redhat.com>
4457
4458         * demos/gtk-demo/stock_browser.c:
4459         * gdk/gdkcolor.c:
4460         * gdk/gdkfont.c:
4461         * gdk/gdkcursor.c:
4462         * gdk/gdkevents.c:
4463         * gdk/gdkrectangle.c:
4464         * gtk/gtktypeutils.c:
4465         Update to use the new g_boxed_type_register_static API.
4466
4467 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
4468
4469         * gtk/gtktreestore.c:
4470         Fix looping in gtk_tree_store_init() waiting for zero random int.
4471
4472 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
4473
4474         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
4475         behaviour which havoc broke. they have to default to 1.0 for
4476         expand behaviour.
4477
4478         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
4479
4480 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
4481
4482         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
4483         Amend previous change to avoid runtime error in g_param_spec_ref()
4484
4485 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
4486
4487         * gtk/gtkrc.c (insert_rc_property): Fix blank line
4488         in the wrong place.
4489
4490 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
4491
4492         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
4493         do a lookup immediately after creating style->property_cache,
4494         since bsearch crashes on zero length for Solaris.
4495         (Found by Padraig O'Briain.)
4496
4497 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
4498
4499         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
4500         Really return NULL if not set.
4501         (gtk_widget_init): Remove unused varaible.
4502         
4503 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
4504
4505         * configure.in:
4506         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
4507         in cvs.
4508
4509 2001-09-08  Havoc Pennington  <hp@pobox.com>
4510
4511         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
4512         people might want to use
4513
4514 2001-09-08  Havoc Pennington  <hp@pobox.com>
4515
4516         * gtk/gtkalignment.c (gtk_alignment_class_init): default
4517         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
4518
4519         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
4520
4521         * gtk/gtktextiter.c: fix docs
4522         (gtk_text_iter_spew): get rid of this
4523
4524         * gtk/gtklayout.c: docs
4525
4526         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
4527         to center image and label together, instead of having image on
4528         left and label centered, patch/suggestion from Jacob
4529
4530         * gtk/gtkdialog.c: docs
4531
4532 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
4533
4534         * gtk/gtkliststore.c: Write documentation
4535         * gtk/gtktreestore.c: Write documentation
4536
4537 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
4538
4539         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
4540         with GArray and bsearch(), to remove dependency on a still
4541         evolving interface that we want to keep private to glib/gobject. 
4542
4543 2001-09-08  Havoc Pennington  <hp@pobox.com>
4544
4545         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
4546         docs fixes
4547
4548         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
4549
4550         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
4551
4552         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
4553
4554         * gtk/gtkscrolledwindow.h: docs fixes
4555
4556         * gtk/gtkimage.c (gtk_image_new): docs fixes
4557
4558 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
4559
4560         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
4561         false alarm  constness warning with a cast.
4562
4563         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
4564         for the inside-gdk case.
4565
4566 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
4567
4568         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
4569         remove g_print.
4570
4571         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
4572         change models, #59899
4573
4574 2001-09-07  Havoc Pennington  <hp@pobox.com>
4575
4576         * gtk/gtkmain.c: move some docs inline
4577
4578 2001-09-07  Havoc Pennington  <hp@pobox.com>
4579
4580         * gtk/gtk.h: tsk tsk, jrb broke the build
4581
4582 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
4583
4584         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
4585         Removed 'fill' attribute.  It was silly b/c that was a property of
4586         the cell renderer, anyway.
4587         (gtk_tree_view_column_render): Actually render the packed
4588         renderers.
4589         * doc/tree-column-sizing.txt: initial devel documentation.
4590         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
4591         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
4592
4593         * tests/testtreefocus.c: fix up to reflect above changes.
4594         * tests/testtreeview.c: ditto
4595         * demos/gtk-demo/stock_browser.c: ditto
4596
4597 2001-09-07  Alex Larsson  <alexl@redhat.com>
4598
4599         * gdk/linux-fb/gdkcolor-fb.c:
4600         Removed unused function.
4601         
4602         * gdk/linux-fb/gdkdrawable-fb2.c
4603         * gdk/linux-fb/gdkfont-fb.c:
4604         Use PangoLanguage functions.
4605
4606         * gdk/linux-fb/gdkinput.c:
4607         * gdk/linux-fb/gdkselection-fb.c:
4608         Fix const warnings.
4609         
4610         * gdk/linux-fb/gdkwindow-fb.c:
4611         Fix warning. Implement gdk_window_set_icon_list() and
4612         gdk_window_get_frame_extents(). (No icon support yet though.)
4613
4614         * gtk/gtkwindow.c (gtk_window_get_position):
4615         If window->frame is set get the extents of it instead.
4616         
4617 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
4618
4619         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
4620         Make the default default colormap the GdkRGB colormap,
4621         not the system colormap.
4622
4623         * gtk/gtkinvisible.c (gtk_invisible_init) 
4624           gtk/gtkwindow.c (gtk_window_init): Set the current
4625         colormap, as returned by _gtk_widget_peek_colormap()
4626         on the widget.
4627
4628         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
4629         to GTK+. Make it return %NULL instead of the default
4630         colormap if no colormap has explicitely been pushed.
4631
4632         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
4633         colormaps on ancestral widgets before defaulting the
4634         the system default colormap.
4635
4636         * docs/Changes-2.0.txt: explain colormap changes.
4637
4638 2001-09-07  Havoc Pennington  <hp@redhat.com>
4639
4640         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
4641         #57424
4642
4643 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
4644
4645         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
4646         make gdk_set_use_xshm a noop. Remove --no-xshm command line
4647         option. If we aren't autodetecting properly, we need
4648         to fix the problem, or at least make it an environment
4649         variable setting, to avoid problems with propagating
4650         to embedded children, plugins, etc.
4651
4652         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
4653
4654         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
4655         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
4656         New function to render a pixmap and mask for a particular colormap.
4657
4658         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
4659         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
4660         of internal implementation of the same.
4661
4662 2001-09-07  Havoc Pennington  <hp@redhat.com>
4663
4664         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
4665         debug code that seems to have caused a breakpoint in valid cases
4666         
4667         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
4668         pointer on the first view when adding the second view, fixes
4669         crash when closing gtk-demo text test with active selection
4670
4671         * gtk/gtktextbuffer.c
4672         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
4673         clipboards in the list of clipboards - probably fixes #59836
4674
4675 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
4676
4677       Make gdkx.h the only installed header from gdk/x11.
4678       All structures in gdk/x11 are opaque.
4679
4680         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
4681         Don't install gdk{drawable,pixmap,window}-x11.h.
4682
4683         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
4684         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
4685         GdkVisualClass into C files.
4686
4687         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
4688
4689         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
4690         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
4691         Add public functions to replace previously exported direct
4692         structure access.
4693         gdk_x11_colormap_get_{xdisplay,xcolormap} 
4694         gdk_x11_cursor_get_{xdisplay,xcursor},
4695         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
4696         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
4697         gdk_x11_gc_get_{xdisplay,ximage}
4698         
4699         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
4700         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
4701
4702       Fix a number of variables and functions that were exported
4703       "accidentally" from GDK.
4704
4705         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
4706         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
4707         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
4708         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
4709         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
4710         gdk_event_queue_find_first, gdk_event_queue_remove_link,
4711         gdk_event_queue_append, gdk_event_button_generate,
4712         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
4713
4714         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
4715            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
4716         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
4717         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
4718         gdk_use_xshm, gdk_input_ignore_core.
4719
4720         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
4721         #defines to namespace functions into the private _gdk_ 
4722         namespace.
4723
4724         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
4725         to replace gdk_parent_root exported variable. Adjust and
4726         deprecate GDK_ROOT_PARENT().
4727
4728         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
4729         GDK_ROOT_PARENT usage, remove includes of port-specific
4730         headers.
4731
4732         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
4733         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
4734         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
4735
4736         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
4737         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
4738         gdk_wm_delete_window functions, gdk_wm_take_focus, 
4739         use gdk_atom_intern() instead.
4740
4741         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
4742           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
4743           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
4744           gtk/gtkselection.c 
4745         Unexport gdk_selection_property, just use 
4746         gdk_atom_intern ("GDK_SELECTION").
4747
4748         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
4749         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
4750         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
4751         GdkVisualprivate, gdk_x11_gc_flush.
4752
4753       Make a number of public exports of variables into functions
4754       to increase encapsulation.
4755
4756         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
4757         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
4758         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
4759
4760         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
4761         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
4762         gdk_error_warnings.
4763
4764         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
4765           docs/Changes-2.0.txt: 
4766         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
4767         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
4768         Add gdk_x11_get_default_xdisplay().
4769
4770         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
4771         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
4772         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
4773         Don't export gdk_progclass, move --class command line
4774         option and handling to common portion of GDK.
4775
4776       Miscellaneous fixes:
4777
4778         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
4779         g_return_val_if_fail that should have been g_return_if_fail.
4780
4781         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
4782         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
4783
4784         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
4785         X11 dependency.
4786
4787         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
4788         Remove unused gdk_key_repeat_disable/restore.
4789
4790         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
4791         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
4792         Remove unused gdk_null_window_warnings variable.
4793
4794         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
4795         it can be retrieved from the repository; it is too far
4796         from functional to be worth having people check out;
4797         it would be easier to start from scratch, I suspect.
4798
4799         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
4800
4801         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
4802         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
4803         Fix some accidentally global variables and unused global variables.
4804
4805         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
4806         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
4807         Fix some accidentally global variables and unused global variables.
4808
4809       Add some space for future expansion to multihead.
4810
4811         * gdk/gdkdrawable.h: Add four reserved function pointers
4812         for future expansion of GdkDrawableClass.
4813
4814         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
4815         where we can put a GdkScreen * later.
4816
4817 2001-09-07  Havoc Pennington  <hp@redhat.com>
4818
4819         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
4820         adjustments after validating destination yrange; fixes #53918
4821         (This may cause other issues, but I hope it won't)
4822         
4823 2001-09-05  Havoc Pennington  <hp@redhat.com>
4824
4825         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
4826         line into start line, update the character counts in parent nodes; 
4827         caused a bug when end and start line had different parent nodes.
4828
4829 2001-08-30  Havoc Pennington  <hp@redhat.com>
4830         
4831         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
4832         assertion that tag is in a table
4833
4834 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
4835
4836         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
4837         g_strcasecmp on NULL strings. (#59058)
4838
4839 2001-09-06  Alex Larsson  <alexl@redhat.com>
4840
4841         * gtk/gtkbin.c:
4842         * gtk/gtkfontsel.c:
4843         * gtk/gtkspinbutton.c:
4844         * gtk/gtktipsquery.c:
4845         Use GtkType/GType instead of uint.
4846
4847 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
4848
4849         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
4850         sort column.
4851
4852         * gtk/gtktreestore.c (gtk_list_store_init): ditto
4853
4854         * gtk/gtktreesortable.c: add docs.
4855
4856 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
4857
4858         * Version 1.3.7
4859
4860         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
4861         docs for gtk-config
4862
4863         * modules/input/Makefile.am (install-data-local): Don't
4864         run gtk-query-immodules if DESTDIR is set.
4865
4866         * NEWS: Various additions.
4867
4868 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
4869
4870         * NEWS: updates for 1.3.7 release.
4871
4872 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
4873
4874         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
4875         handle default sort feature
4876
4877         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
4878         new function to handle default sort.
4879         (gtk_tree_sortable_has_default_sort_func): check if default sort
4880         is set.
4881
4882         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
4883         handle default sort feature
4884
4885 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
4886
4887         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
4888         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
4889         #59731
4890
4891 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
4892
4893         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
4894         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
4895         time, #59727
4896
4897         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
4898         correctly.
4899
4900 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
4901
4902         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
4903         so that we don't eternally update the keymap after we
4904         get a change notification.
4905
4906         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
4907         incorrect cast.
4908
4909 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
4910
4911         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
4912         it working. It mostly works now, although there're still a few issues
4913         to be worked out.
4914
4915         * tests/testtreesort.c (main): changes to have a better test
4916         application for the GtkTreeModelSort.
4917
4918 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
4919
4920         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
4921         fix for bug #59222.
4922
4923         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
4924         gpointer search_data argument to function definition and
4925         prototype, to match GtkTreeViewSearchEqualFunc typedef.
4926
4927 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
4928
4929         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
4930         per jrb's request.
4931
4932 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
4933
4934         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
4935
4936         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
4937
4938 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
4939
4940         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
4941         Instead of always mirroring the selection to a single PRIMARY
4942         selection, allow it to be mirrored to any number of clipboards.
4943
4944         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
4945         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
4946
4947         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
4948         GtkClipboard argument, and for paste_clipboard, the
4949         @override_location argument from @paste_primary.
4950
4951         * gtk/gtktextview.c: Adapt to above change.
4952         
4953 2001-08-30  Havoc Pennington  <hp@redhat.com>
4954
4955         * gtk/gtktextview.c (invalidated_handler): put validate idle at
4956         resize - 2 just for flexibility
4957
4958 2001-08-30  Havoc Pennington  <hp@redhat.com>
4959
4960         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
4961         object from the empty-child-anchor case by drawing a little box.
4962         
4963         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
4964         if the child anchor has no anchored widgets - fixes #59328.
4965
4966         Also, remove bizarre deletion of preedit string that seems to have
4967         gotten in here somehow.
4968
4969 2001-08-30  Havoc Pennington  <hp@redhat.com>
4970
4971         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
4972         to #58420 from Hidetoshi Tajima and Matthias Clasen
4973
4974 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
4975
4976         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
4977         change color when the GtkTreeView loses focus.
4978
4979         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
4980         ditto.
4981         
4982         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
4983
4984 2001-08-28  Havoc Pennington  <hp@pobox.com>
4985
4986         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
4987
4988 2001-08-28  Havoc Pennington  <hp@pobox.com>
4989
4990         * demos/gtk-demo/main.c (setup_default_icon): add default icon
4991
4992         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
4993         warning fix
4994         (gtk_radio_button_new_with_label): warning fix
4995
4996         * gtk/gtkdnd.c: used some random GtkImage private structs, 
4997         update to reflect GtkImage changes
4998
4999         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
5000         whether the hint is supported, just always set the icon. A task
5001         list might want to use it even if the WM doesn't, and the WM may
5002         change over time. Also, XDeleteProperty() if list == NULL.
5003
5004         * gtk/gtkwindow.c (gtk_window_set_icon_list)
5005         (gtk_window_get_icon_list)
5006         (gtk_window_set_icon)
5007         (gtk_window_get_icon)
5008         (gtk_window_set_default_icon_list)
5009         (gtk_window_get_default_icon_list):
5010         new functions
5011
5012         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
5013
5014         * gtk/gtkimage.c: Implement property support, bug #59408
5015
5016         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
5017         on reparent-without-removing-first a bit more helpful.
5018         Let's just destroy this FAQ.
5019
5020 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
5021
5022         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
5023         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
5024
5025 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
5026
5027         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
5028         of use_text_format to the end of the function. (#56447)
5029
5030 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
5031
5032         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
5033         only in response to an area_prepared signal.
5034
5035 2001-08-28  Alex Larsson  <alexl@redhat.com>
5036
5037         * gtk/gtkwidget.c (gtk_widget_class_init):
5038         Make unrealize GTK_RUN_LAST.
5039
5040 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
5041
5042         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
5043         with_label and with_mnemonic should create radio buttons, not
5044         check buttons
5045
5046 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
5047
5048         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
5049         * tests/treestoretest.c (make_window): ditto
5050         * demos/gtk-demo/main.c (create_tree): ditto
5051         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
5052
5053 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
5054
5055         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
5056         GTK selection types rather than GtkTreeSelectionMode.
5057
5058         * docs/Changes-2.0: Add comment about selection change.
5059
5060 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
5061
5062         * gtk/gtkenums.h (GtkSelectionMode): deprecate
5063         GTK_SELECTION_EXTENDED.
5064
5065         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
5066         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
5067
5068         * gtk/gtkctree.c: ditto
5069
5070         * gtk/gtklist.c: ditto
5071
5072         * gtk/gtktree.c: ditto
5073
5074 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
5075
5076         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
5077         of typos in compat macros. (#59624, Skip Montaro)
5078
5079 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
5080
5081         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
5082         macro.
5083
5084          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
5085  
5086         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
5087         interface to be a standard setter from gtk_menu_item_right_justify.
5088         (gtk_menu_item_get_right_justified): a getter to go with the setter
5089
5090         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
5091         gtk_menu_item_right_justify.
5092
5093         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
5094         gtk_menu_item_set_right_justified.
5095  
5096 2001-08-27  Jens Finke <jens@gnome.org>
5097
5098         * gtk+.spec.in: Updated to match gpp requirements, reworked the
5099         files section to make it work with 1.3.x releases.
5100
5101 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
5102
5103         * gtk/gtkbutton.[ch]:
5104         Add properties for labels, mnemonics and stock items.
5105         Added C accessor functions for the properties.
5106         Removed deprecated button->child.
5107
5108         * gtk/gtkradiobutton.c:
5109         * gtk/gtktogglebutton.c:
5110         Update to use the functions in GtkButton.
5111
5112         * gtk/gtkcheckbutton.c:
5113         Update to use the functions in GtkButton.
5114         Changed size allocation of child. Now only gets as much
5115         space as it requests.
5116
5117         * gtk/gtkclist.c:
5118         Don't use GtkButton->child
5119
5120         * gtk/gtklabel.c:
5121         Fixed typo in docs
5122         
5123 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
5124
5125         * tests/testgtk.c:
5126         * tests/Makefile.am:
5127         Ressurect the properties test.
5128         I don't care if it is inferior, I just want to test my property code.
5129
5130 2001-08-25  Chema Celorio  <chema@celorio.com>
5131
5132         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
5133         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
5134         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
5135
5136 2001-08-24  Havoc Pennington  <hp@pobox.com>
5137
5138         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
5139         these are already in gtkmenu.h, and the copies
5140         here were broken.
5141
5142         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
5143
5144         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
5145         special-case bitmaps to allow no colormap
5146         (bitmap1): implement no-colormap bitmap-getting
5147         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
5148         alpha
5149         (rgb8): indentation
5150         (rgb1a, rgb1): change the way we read the data out of the image, 
5151         old way didn't seem to work quite right.
5152
5153         I'm pretty sure a lot of the rgbconvert code is still broken.
5154         
5155         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
5156         above position constraint (I really intended to do this before,
5157         don't know what's up with that)
5158         (gtk_XParseGeometry): shut up gcc
5159
5160         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
5161         and "0" should have been. remove the attempted 4-bytes-at-once
5162         optimization, it was totally broken.
5163
5164 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
5165
5166         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
5167         on push to buttons (based on patch from Soeren Sandmann, #54720)
5168
5169           - Add child_displacement_x/y style properties to control how far the
5170             child moves when the button is depressed.
5171
5172           - Add non-exported function _gtk_button_set_depressed to clean
5173             up the handling of the in/out shadow and separate it frmo
5174             widget->state.
5175
5176           - Lots of code cleanup and simplification of state handling
5177             for GtkButton/GtkToggleButton.
5178  
5179         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
5180         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
5181
5182 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
5183
5184         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
5185         and make gtk_image_new() take no arguments. The compiler will
5186         catch it, and it is vastly more useful than having
5187         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
5188
5189         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
5190         to add tearoff-title property (#51319, Lee Mallabone)
5191
5192 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
5193
5194         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
5195         gtk_menu_item_configure(). (#58925)
5196
5197 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
5198
5199         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
5200         "use_align" to give people the option to just make a cell visible.
5201
5202         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
5203         we were scrolling past the end of the tree.
5204
5205         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
5206         rename gtk_tree_view_column_pack_start_cell_renderer to
5207         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
5208
5209 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
5210
5211         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
5212         a stray g_object_ref() left over from gtk_object_ref/sink.
5213         (Pointed out by Josh Pritikin.)
5214
5215 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
5216
5217         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
5218         to gtk_container_get_children. Added deprecated compatibility
5219         macro. (Suggested by Vitaly Tishkov, #59051)
5220
5221         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
5222         calls.
5223
5224 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
5225
5226         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
5227         gtk_menu_bar_append/prepend/insert, forgot to do this
5228         when we deprecated gtk_menu_append/prepend/insert.
5229
5230         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
5231         compat macros.
5232
5233         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
5234         renamed by compat macro.
5235
5236         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
5237         gtk_font_selection_dialog_get_font(). (Suggested by
5238         Vitaly Tishkov, #59383)
5239
5240 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
5241
5242         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
5243         Rename from gtk_text_tag_table_size(). (#59366)
5244
5245 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
5246
5247         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
5248         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
5249         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
5250         (#59173).
5251
5252 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
5253
5254         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
5255         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
5256         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
5257
5258 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
5259
5260         [ Patch from Sebastian Wilhelmi, 52790 ]
5261
5262         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
5263
5264         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
5265         Move compatibility macros from g[dt]kcompat.h to within 
5266         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
5267
5268         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
5269
5270         * demos/Makefile.am demos/gtk-demo/Makefile.am 
5271           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
5272           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
5273
5274         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
5275                  testpixbuf.c}: Fix usages of deprecated functions.
5276
5277 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
5278
5279         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
5280         when changing models.
5281
5282 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
5283
5284         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
5285         We check the current event for modifiers rather than try to trap
5286         all presses.
5287
5288 2001-08-22  Anders Carlsson  <andersca@gnu.org>
5289
5290         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
5291         It's LIST_STORE, not LISTSTORE.
5292
5293 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
5294
5295         * gtk/gtk.h: Remove commented out gtkpacker reference.
5296
5297 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5298
5299         * configure.in (all_loaders): Add tga loader, 
5300         patch by Nicola Girardi. (#56067)
5301
5302 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
5303
5304         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
5305         a little.  More needs to be done tomorrow.
5306
5307 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
5308
5309         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
5310
5311 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
5312
5313         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
5314         reported by Kristian Rietveld <kristian@planet.nl> to handle row
5315         == NULL.
5316         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
5317         <kristian@planet.nl> to change destroy order.
5318
5319 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
5320
5321         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
5322         correct marshaller.
5323
5324 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
5325
5326         * gtk/gtkliststore.c: Fix up warnings, #58928.
5327
5328         * gtk/gtktreeselection.h: Change signal prototype, #58647
5329
5330         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
5331         #59221.
5332
5333         * gtk/gtkstyle.c: Actually prelight arrow, #50981
5334         
5335 2001-08-18  Hans Breuer  <hans@breuer.org>
5336
5337         * gdk/gdk.def : updated externals
5338
5339         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
5340         is required to get (at least) visible in entry fields. Some selections
5341         are really handled now - even on win32 - but copying via middle
5342         mouse button into a different app needs to wait ... 
5343
5344         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
5345         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
5346
5347         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
5348         handling. I'm not sure if it is better now, but at least not worse
5349
5350         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
5351         with SetWindowPos () which allows more fine-tuning backing-store wise
5352
5353         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
5354         Also changed move/resize to be more like the X version.
5355
5356         * gtk/gtk.def : updated externals
5357
5358 2001-08-19  Sven Neumann  <sven@gimp.org>
5359
5360         * gtk/gtktooltips.c
5361         * tests/testtreesort.c
5362         * tests/treestoretest.c: inserted some casts to get rid of compiler
5363         warnings.
5364
5365 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
5366
5367         * gtk/gtktreeviewcolumn.c
5368         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
5369
5370         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
5371         (_gtk_tree_view_find_node): If *node is NULL,
5372         *tree should be NULL too.
5373
5374         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
5375         column/renderers.
5376         * tests/testtreecolumns.c: ditto
5377         * tests/testtreefocus.c: ditto
5378         * tests/testtreesort.c: ditto
5379         * tests/testtreeview.c: ditto
5380         * tests/treestoretest.c: ditto
5381
5382 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
5383
5384         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
5385         signals; is_expander/is_expanded.
5386
5387         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
5388         pixbufs.
5389
5390         * gtk/gtktreeview.c: set above properties.
5391
5392 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
5393
5394         * gtk/gtkwidget.h: Really remove set_default_style().
5395
5396         * docs/Changes-2.0.txt: added a note about
5397         gtk_widget_push/pop/set_default_style.
5398
5399 2001-08-18  Havoc Pennington  <hp@pobox.com>
5400
5401         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
5402         hints_changed in addition to the other cases.
5403         (gtk_window_move_resize): include last position from configure
5404         notify in debug spew
5405
5406 2001-08-18  James Henstridge  <james@daa.com.au>
5407
5408         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
5409         second argument to the weak ref notify, cleaning up some uglyness.
5410         (gtk_accel_group_attach): remove and add the weak notifier when
5411         changing the accel groups slist.
5412         (gtk_accel_group_detach): same here.
5413
5414 2001-08-17  Darin Adler  <darin@bentspoon.com>
5415
5416         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
5417         missing parameters to utf8 functions to make it compile.
5418
5419 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
5420
5421         * gtk/gtktreeprivate.h:
5422         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
5423         (gtk_tree_view_init), (gtk_tree_view_set_property),
5424         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
5425         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
5426         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
5427         (gtk_tree_view_set_destroy_count_func),
5428         (gtk_tree_view_set_enable_search),
5429         (gtk_tree_view_get_enable_search),
5430         (gtk_tree_view_get_search_column),
5431         (gtk_tree_view_set_search_column),
5432         (gtk_tree_view_get_search_equal_func),
5433         (gtk_tree_view_set_search_equal_func),
5434         (gtk_tree_view_search_dialog_destroy),
5435         (gtk_tree_view_search_position_func),
5436         (gtk_tree_view_interactive_search),
5437         (gtk_tree_view_search_delete_event),
5438         (gtk_tree_view_search_button_press_event),
5439         (gtk_tree_view_search_key_press_event),
5440         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
5441         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
5442         * gtk/gtktreeview.h:
5443         Add heavily modified patch from Kristian Rietveld to handle
5444         interactive searching.
5445
5446 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
5447
5448         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
5449         string parameter.
5450
5451         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
5452         GtkMenuShell::selection_done, now that we have it, instead of 
5453         ::deactivate so we're not tearing the menu apart and notify
5454         the user prematurely.
5455
5456 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
5457
5458         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
5459         window, clear window->need_default_position to avoid infinite loops.
5460         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
5461
5462 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
5463
5464         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
5465         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
5466         (gtk_tree_view_set_property): don't cast possible NULL objects.
5467         (gtk_tree_view_destroy): reset the model to NULL.
5468
5469         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
5470         parent_class handler.
5471
5472 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5473
5474         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
5475
5476 2001-08-17  Anders Carlsson  <andersca@gnu.org>
5477
5478         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
5479         point numbers so that the result will be floating point.
5480
5481 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5482
5483         * tests/testgtk.c (create_handle_box): 
5484         (create_toolbar): Replace gtk_window_set_policy calls by
5485         gtk_window_set_resizable.
5486
5487 2001-08-16  Jakub Steiner <jimmac@ximian.com>
5488
5489         * gtk/stock-icons/dialog_info.png: new style bulb
5490         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
5491         * gtk/stock-icons/dialog_warning.png: need a hand?
5492         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
5493           the aa border gets chopped off ok
5494         * gtk/stock-icons/stock_colorselector.png: using the new hand
5495         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
5496           this one is for, but the old icon was butt ugly.
5497         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
5498         * gtk/stock-icons/stock*_insert_object.png: "
5499         * gtk/stock-icons/stock_index.png: using new hand icon
5500         * gtk/stock-icons/stock*_new.png: the document template being used 
5501           elsewhere too
5502         * gtk/stock-icons/stock*_print*.png: new print and print preview 
5503           icons (panel/menu)  
5504         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
5505           icons based on Tuomas' floppy image.
5506         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
5507         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
5508         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
5509         * gtk/stock-icons/stock*_undelete.png: "
5510         * gtk/stock-icons/stock_preferences.png: I have a version with a 
5511           document base if the sliders are no good.
5512         * gtk/stock-icons/stock_properties.png: properties 
5513         
5514
5515         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
5516           (tigert@ximian.com) clipboard icons
5517         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
5518         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
5519         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
5520           little bigger IMHO
5521
5522 2001-08-16  Sven Neumann  <sven@gimp.org>
5523
5524         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
5525
5526 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
5527
5528         * gtk/gtkcellrenderertext.c:
5529         Avoid warning when specifying NULL for "attributes" property
5530
5531 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5532
5533         * docs/debugging.txt: Add a warning about --enable-debug=no,
5534         some editorial changes.
5535
5536 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5537
5538         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
5539         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
5540         debugging info, remove unused debug flags. (#58330)
5541
5542 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
5543
5544         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
5545         (gtk_tree_selection_select_all): Remove strict checking for rows.
5546
5547 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5548         
5549         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
5550         Don't remove the tooltip window when the tip text changes. (#15891)
5551
5552 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
5553
5554         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
5555         $(srcdir).
5556
5557 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
5558
5559         * Makefile.am (EXTRA_DIST): Fix problem with trying to
5560         dist files from intl/, which is no longer there.
5561
5562 2001-08-11  Hans Breuer  <hans@breuer.org>
5563
5564         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
5565           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
5566           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
5567           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
5568           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
5569           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
5570
5571         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
5572           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
5573         GDK_TYPE_EVENT signals
5574
5575         * gtk/gtkalignment.c : removed 'direct allocation bug',
5576         which Tim discovered while reading the patch
5577
5578 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
5579
5580         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
5581         compat macros for push/pop/set_visual that were supposed
5582         to be added a long time ago, but got dropped. 
5583
5584 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
5585
5586         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
5587         property notifies.
5588
5589 2001-08-07  Havoc Pennington  <hp@pobox.com>
5590
5591         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
5592
5593         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
5594         some fixage is needed here, but nothing simple. Owen understands
5595         it. ;-)
5596
5597         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
5598         sizing and positioning.  Also, fix bug in compute_geometry_hints
5599         (width/height confusion for setting min size). 
5600         (gtk_window_move): new function
5601         (gtk_window_resize): new function
5602         (gtk_window_get_size): new function
5603         (gtk_window_get_position): new function
5604         (gtk_window_parse_geometry): new function
5605         
5606         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
5607         (gtk_widget_get_size_request): new function
5608         (gtk_widget_get_usize): delete, that was a short-lived function
5609         ;-)
5610         (gtk_widget_set_usize): deprecate
5611         (gtk_widget_set_uposition): deprecate, make it a trivial 
5612         gtk_window_move() wrapper
5613         (gtk_widget_class_init): remove x/y/width/height properties,
5614         add width_request height_request
5615         
5616         * demos/*: update to avoid deprecated functions
5617         
5618         * gtk/gtklayout.c: add x/y child properties
5619
5620         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
5621         uses of "gint16"
5622
5623         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
5624         sizing test
5625
5626         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
5627         configure events on toplevel windows are always in root window
5628         coordinates, following ICCCM spec that all synthetic events 
5629         are in root window coords already, while real events are 
5630         in parent window coords. Previously the code assumed that 
5631         coords of 0,0 were parent window coords, which was 
5632         really broken.
5633   
5634         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
5635         warning
5636  
5637         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
5638         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
5639         hints in gtk_window_parse_geometry()
5640  
5641         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
5642         new USER_POS USER_SIZE hints    
5643
5644 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5645
5646         * tests/prop-editor.c (properties_from_type): Use 
5647         g_object_class_list_properties to get the param specs 
5648         for a given type. (#58609)
5649
5650 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5651
5652         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
5653         free the text_aa parts. (#57549)
5654
5655 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5656
5657         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
5658         not the foreground color. (#57621)
5659
5660 2001-08-09  Alexander Larsson <alexl@redhat.com>
5661
5662         * gdk/win32/gdkfont-win32.c:
5663         Update to the new pango win32 api.
5664
5665 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
5666
5667         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
5668         COMPOUND_TEXT instead of TEXT
5669         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
5670         interpret the return value of g_string_to_compound_text()
5671         (#55152)
5672
5673 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5674
5675         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
5676         fail if iter is NULL. (#58347)
5677
5678 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5679
5680         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
5681         some off-by-one issues, fixing selection of line-ends. (#50323)
5682
5683 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5684
5685         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
5686         functions in order to make mouse operation work again in the
5687         color wheel. (#58604)
5688
5689 2001-08-07  James Henstridge  <james@daa.com.au>
5690
5691         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
5692         the accelerator when the accel object is changed.  Fixes bug
5693         #58628.
5694
5695 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
5696
5697         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
5698         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
5699         (gnome bugzilla #58202)
5700
5701 2001-08-06  Havoc Pennington  <hp@pobox.com>
5702  
5703         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
5704         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
5705         it was expecting a GdkWindow, not a GdkWindowImplX11.
5706  
5707         Also, we were getting the window rect in screen coords 
5708         and the screen rect in window coords then intersecting 
5709         them; instead, get window rect in window coords.
5710  
5711         Finally, there were codepaths that resulted in a stuck server grab
5712         (when the window was fully onscreen, or on gdk_image_new()
5713         failure); make the server ungrab thing a bit more
5714         robust/consistent.
5715
5716 2001-08-06  Sven Neumann  <sven@gimp.org>
5717
5718         * gdk/gdkpango.c (gdk_pango_context_destroy): 
5719         check if info->colormap != NULL before unref'ing it. It might have
5720         been set to NULL using gdk_pango_context_set_colormap().
5721
5722 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
5723
5724         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
5725         Fix conversion from float to int so that we don't get
5726         skew in the int => float => int roundtrip. 
5727         (#58120, reported by Vitaly Tishkov). Also fix problem
5728         where if no alpha was set, the returned alpha
5729         from (say) set_current_alpha() was returned as 1, not 65535.
5730
5731 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
5732
5733         * gtk/gtklist.c (gtk_list_clear_items): Fix
5734         problem with selecting a new focus child.
5735
5736         * gtk/gtklist.c (gtk_list_clear_items): Clear 
5737         list->undo/list_focus_child after unparenting
5738         child, since unparenting the child can result
5739         in list->last_focus_child being set. (#58024)
5740
5741         * Makefile.am (SUBDIRS): Add target specific pc
5742         files to DISTCLEANFILES.
5743
5744         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
5745         (58327, Matthias Clasen)
5746
5747 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
5748
5749         * tests/testgtk.c: Patch from Hans (with various modifications),
5750         to add the ability to use testgtk as a rough-and-ready
5751         benchmark. Try, 'testgtk --bench all:5' (if you want decent
5752         numbers, run without a window manager)
5753
5754 2001-08-04 Alexander Larsson <alexl@redhat.com>
5755
5756         * gdk/win32/gdkinput.c:
5757         Add #ifdef HAVE_WINTAB around wintab.h include.
5758
5759         * gtk/gtk.def:
5760         Removed marshals that have been moved to glib.
5761         Commented out plug and socket. They didn't compile for me 
5762         on win32.
5763
5764 2001-08-04  Hans Breuer  <hans@breuer.org>
5765
5766         * gtk/stocks-icons/makefile.msc : new file
5767         * gtk/makefile.msc.in : use it
5768
5769         * gtk/gtkstyle.c : not all platforms do provide M_PI and
5770         friends, but luckily there is G_PI
5771
5772         * gtk/gtk.def : updated
5773
5774         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
5775         windows WS_POPUP, but only those without a parent. This fixes the 
5776         mis-alignment between the selectable (temp, input only) window and 
5777         the window text of GtkLabel.
5778
5779         (gdk_window_show) : respect private->state when actually showing
5780         the window.
5781
5782         (gdk_window_set_transient_for) : Implementation from Wolfgang 
5783         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
5784         error handling. Should fix #50586.
5785
5786         * gdk/win32/gdkevents-win32.c : beautify log output
5787
5788 2001-08-04  Michael Natterer  <mitch@gimp.org>
5789
5790         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
5791         Need to show the image after adding it to the GtkImageMenuItem.
5792         This used to work without in testgtk because of the
5793         gtk_widget_show_all() at the end of the function.
5794         (Closes #54978).
5795
5796 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
5797
5798         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
5799         (gtk_notebook_set_child_property): fix finding of child's page,
5800         since we have to validly deal with labels and menus here as well.
5801         (gtk_notebook_get_child_property): fix warning.
5802         (gtk_notebook_class_init): property tab_pack is of type
5803         GTK_TYPE_PACK_TYPE (enum) not boolean.
5804         (gtk_notebook_find_child): don't always warn, we might be looking
5805         for a label or menu child.
5806         (gtk_notebook_map): fix mapping of panel.
5807
5808         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
5809         widget's mapped state, regardless of the value being set equals
5810         old settings, since things like REALIZED(parent) or MAPPED(parent)
5811         may have changed since the old value was set. make it an error to
5812         invoke this function on a toplevel widget.
5813
5814 2001-07-31  Darin Adler  <darin@bentspoon.com>
5815
5816         * gdk/gdkprivate.h:
5817         * gdk/x11/gdkx.h:
5818         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
5819
5820         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
5821         GTK_OBJECT.
5822
5823 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
5824
5825         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
5826         scoping error pointed out by matthiasc@poet.de.
5827
5828 2001-07-31  Sven Neumann  <sven@gimp.org>
5829
5830         * demos/gtk-demo/appwindow.c
5831         * demos/gtk-demo/item_factory.c
5832         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
5833
5834 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
5835
5836         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
5837         argument order for g_signal_has_handler_pending.
5838
5839 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
5840
5841         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
5842         instead of long deprecated g_scanner_stat_mode().
5843
5844 2001-07-29  Hans Breuer  <hans@breuer.org>
5845
5846         * gdk/makefile.msc : build in the backend dir after
5847         auto-generating files
5848
5849         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
5850         with code from win32-production-branch.
5851
5852         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
5853         before calling DestroyWindow, which indirectly calls 
5854         gdk_window_destroy_notify ()
5855
5856         (performance patch merged from win32-production-branch)
5857         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
5858         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
5859         R2_COPYPEN rop). It is claimed to be much faster.
5860
5861 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
5862
5863         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
5864         add an "attributes" property to the text renderer for ATK.
5865
5866 2001-07-26  Alex Larsson  <alexl@redhat.com>
5867
5868         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
5869         Initialize image->bits_per_pixel from the drawable, not from
5870         the root window.
5871
5872         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
5873         Fix cast. argument is an IMPL already.
5874
5875 2001-07-15  James Henstridge  <james@daa.com.au>
5876
5877         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
5878         (gtk_window_remove_accel_group): same here.
5879         (gtk_window_key_press_event): same here.
5880
5881         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
5882         (gtk_widget_remove_accelerator): same here.
5883         (gtk_widget_remove_accelerators): same here.
5884
5885         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
5886
5887         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
5888         instead of GtkObject.
5889
5890         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
5891         now takes GObjects.
5892
5893         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
5894         pass a GObject to gtk_accel_group_entries_from_object.
5895         (gtk_item_factory_create_item): s/accel_widget/accel_object/
5896
5897         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
5898
5899         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
5900
5901         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
5902         GObjects can have accelerators set now.  Add compatibility
5903         defines.
5904
5905         * gtk/gtkmarshal.list: add missing marshallers.
5906
5907         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
5908         accelerators on plain GObjects.  gtk_accel_group_object_destroy
5909         has been converted into a weak reference, and
5910         gtk_accel_group_delete_entries is now a destroy notify for that
5911         piece of data.
5912
5913 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
5914
5915         * gdk/gdkdraw.c: Added a check on the colormap depth to
5916         gdk_drawable_set_colormap()
5917         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
5918         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
5919         for pixmaps without visuals (more specifically, bitmaps)
5920         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
5921         doesn't set a colormap with the wrong depth
5922
5923
5924 2001-07-22  Anders Carlsson  <andersca@gnome.org>
5925
5926         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
5927         expander_height and expander_width properties with a single
5928         property, expander_size.
5929         (gtk_tree_view_init): Set the tab_offset to expander_size
5930         plus some padding.
5931         (gtk_tree_view_unrealize): Remove the expand/collapse
5932         timeout if it exists.
5933         (coords_are_over_arrow): Fix a small bug.
5934         (gtk_tree_view_motion_draw_column_motion_arrow): Use
5935         expander_size.
5936         (gtk_tree_view_draw_focus): Use "treeview" instead of
5937         "add-mode" as detail when drawing the focus.
5938         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
5939         instead of "add-mode" as detail when drawing the focus.
5940         (gtk_tree_view_deleted): If we have a node currently being
5941         expanded or collapsed, remove the timeout and set the node 
5942         to NULL.
5943         (gtk_tree_view_queue_draw_arrow): New function that just
5944         redraws the arrow of a node.
5945         (gtk_tree_view_draw_arrow): Use expander_size instead of
5946         expander_width/expander_height, also pass a different
5947         expander_style to gtk_paint_expander depending on the 
5948         state of the node being drawn.
5949         (expand_collapse_timeout): New function for expanding 
5950         or collapsing a node depending on the previous state.
5951         (gtk_tree_view_real_expand_row): Add timeout and set 
5952         correct state for node being expanded.
5953         (gtk_tree_view_real_collapse_row): Add timeout and set
5954         correct state for node being collapsed.
5955
5956         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
5957         information about the node currently being expanded or
5958         collapsed, and also a timeout id.
5959
5960         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
5961         with expander_style for draw_expander.
5962
5963         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
5964         expander_style.
5965         (create_expander_affine): New function for creating an 
5966         expander affine.
5967         (apply_affine_on_point): New function for applying an 
5968         affine to a point.
5969         (gtk_default_draw_expander): Modified to take expander_style
5970         instead of is_open, and to draw the rectangle rotated differently
5971         depending on the expander style.
5972         (gtk_paint_expander): Replace is_open with expander_style.
5973
5974         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
5975
5976         * gtk/gtkenums.h: Add expander style enum.
5977
5978 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
5979
5980         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
5981         value from gtk_tree_model_get_iter, the model might be empty.
5982
5983 2001-07-20  Hans Breuer  <hans@breuer.org>
5984
5985         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
5986         gdk/gdkinput.c like the other backends
5987
5988         * gdk/win32/gdkinput-win32.h :
5989         * gdk/win32/gdkinput.c :
5990         * gdk/win32/gdkvisual-win32.c :
5991         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
5992         GdkVisual GObjectification. UNTESTED for pen-devices because
5993         I simply have none.
5994
5995         * gdk/gdk.def :
5996         * gtk/gtk.def : updated externals
5997
5998         * gtk/gtkiconfactory.c :
5999         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
6000         before passing &error to functions to avoid strange crashes
6001         
6002         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
6003
6004         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
6005
6006         * gtk/makefile.msc.in : updated
6007
6008 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
6009
6010         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
6011         Add property support. (#51858)
6012
6013 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
6014
6015         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
6016         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
6017         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
6018
6019 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
6020
6021         * gtk/gtkcolorsel.c: Add propery support (roughly
6022         based on patch from Lee Mallabone, #51014)
6023
6024         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
6025         deprecated, since we already g_warning() on it.
6026
6027 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
6028
6029         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
6030         typo that sometimes caused selection not to work properly.
6031
6032         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
6033         entry when tabbing in. (#57743)
6034         
6035         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
6036         user drags up above or down below the entry, move
6037         to the end or the beginning of the entry. (Suggestion
6038         from Jay Cox, #50940)
6039
6040         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
6041         a current selection, then when moving by chars or
6042         words, move to the end of the selection rather than
6043         from entry->current_pos. (Suggestion from Jay Cox,
6044         #50942)
6045         
6046 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
6047
6048         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
6049         set window->decorated. (Patch from Hidetoshi Tajima,
6050         #55846)
6051
6052 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
6053
6054         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
6055         the widget/child realization/mapping invariants.
6056
6057         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
6058         gtk_widget_[get/set]_child_visible() to control
6059         whether visible children of a mapped window are
6060         mapped.
6061
6062         * docs/widget_system.txt: Updated for changes in
6063         container contract, and addition of GTK_CHILD_VISIBLE.
6064
6065         * gtk/gtkcontainer.c: Add generic map()/unmap()
6066         functions that work for almost all containers.
6067
6068         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
6069         gtk_widget_set_child_visible() where necessary.
6070
6071         * gtk/*.c: Remove excess map(), unmap(), and 
6072         realization/mapping invariant enforcing code
6073         from many containers.
6074
6075 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
6076
6077         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
6078         Get the foreground color from 'text', nor 'fg'. (#57568)
6079
6080 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
6081
6082         * gtk/*.c: Patch from Matthias Clasen to remove remove
6083         all instances of g_return_if_fail (foo != NULL); that are
6084         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
6085         since the second check catches the NULL anyways.
6086
6087 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
6088
6089         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
6090         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
6091         GDK_THREADS_ENTER()/LEAVE() pairs.
6092
6093         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
6094         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
6095         pairs. (Problem found by M. Meeks)
6096
6097 2001-07-18  Darin Adler  <darin@bentspoon.com>
6098
6099         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
6100         that we don't get a g_warning message every time we register a new
6101         icon size.
6102
6103         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
6104         using pixel variable of the correct type.
6105         
6106 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
6107
6108         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
6109         so that using X functions on a GdkWindow is possible, if
6110         a little hairy.
6111
6112         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
6113         and ts_origin of a GC, so that external parties can offset/restore
6114         a GC, when using gdk_window_get_internal_paint_info().
6115
6116 2001-07-17  Darin Adler  <darin@bentspoon.com>
6117
6118         * .cvsignore: Ignore the sgml directory made by gtkdoc.
6119         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
6120         instead of the deprecated gtk_window_set_policy.
6121         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
6122         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
6123         function to get rid of warning and some code too.
6124         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
6125         missing const.
6126         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
6127         unused local.
6128         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
6129         const.
6130         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
6131         (gdk_utf8_to_compound_text): Add missing const.
6132         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
6133         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
6134         cast and get rid of an unnecessary one.
6135         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
6136         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
6137         local.
6138         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
6139         Remove unused local.
6140         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
6141         missing const.
6142         * tests/testsocket.c: (add_child): Add cast so the printf format
6143         doesn't make us implicitly depend on what integer type
6144         gtk_socket_get_id returns.
6145         * tests/testtextbuffer.c: Add missing const.
6146         * tests/testtreefocus.c: (main): Remove unused local.
6147         * tests/treestoretest.c: (iter_remove): Remove unused local.
6148         (uppercase_value): Remove unused function.
6149         (make_window): Add statement to quiet the compiler's uninitialized
6150         variable warning.
6151
6152 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
6153
6154         * gtk/gtkrange.c:
6155         (second_timeout): 
6156         (initial_timeout): 
6157         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
6158         (gtk_range_calc_layout): compute the new layout based on an
6159         adjustment->value being passed in as argument.
6160         (gtk_range_button_press): for button2 slider warps, first recalc
6161         the layout, then adjust the value. also, use update_slider_position()
6162         for adjusting the value, so we keep pixel quantisation at which we
6163         usually operate (upon motion or button releases). the reason for this
6164         is that, we can't change the adjustment upon button2 presses to a non
6165         quantised value and upon button2 release re-quantise the value since
6166         that'd alter the value even if we didn't get any motion events (causing
6167         unexpected scroll area warps upon release and/or slider pixel-jitter).
6168         (gtk_range_motion_notify): update the slider position from queried
6169         coordinates, not event coordinates.
6170
6171 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
6172
6173         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
6174         the default gc values are: width=0, CapBut, JoinMiter.
6175
6176 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
6177
6178         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
6179         into account the xpad and ypad when calculating the width and the
6180         height of the pixbuf cel.
6181
6182 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
6183
6184         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
6185         Rename to gtk_radio_menu_item_get_group(), add deprecated
6186         alias. (#57044)
6187
6188         * gtk/gtkfilesel.c: Indentation fix.
6189
6190 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
6191
6192         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
6193         Hasselmann to fix warnings in compat macros. 
6194         (#56773)
6195
6196         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
6197         stupid wrong cast added in last patch.
6198
6199 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
6200
6201         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
6202         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
6203
6204 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
6205
6206         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
6207         missing cast.
6208
6209         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
6210         NULL/FALSE return value confusion.
6211
6212         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
6213         problem when scrollbar completely fills range. (Patch
6214         from  Matthias Clasen, #57047)
6215
6216 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
6217
6218         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
6219         clean up when handling events for move-resize emulation.
6220         (Problem traced down by Matthias Clasen, #57271)
6221
6222 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
6223
6224         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
6225           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
6226           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
6227           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
6228           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
6229           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
6230           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
6231         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
6232
6233 2001-07-09  Peter Williams  <peterw@ximian.com>
6234
6235         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
6236         for when srcdir != builddir
6237
6238 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
6239
6240         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
6241         gtk_tree_model_get_iter_root.
6242
6243         * gtk/gtkliststore.c: Add a bunch of g_return statements.
6244         (gtk_list_store_iter_n_children): Fix up.
6245
6246         * gtk/gtktreestore.c: Add a bunch of g_return statements.
6247
6248 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
6249
6250         * gtk/gtkwidget.c (gtk_widget_class_init):
6251         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
6252         restore some workingness.
6253
6254         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
6255         handle of window type for input-only windows.
6256
6257 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
6258
6259         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
6260         Patch from Gregory Merchan to add 
6261         gtk_button_box_set_secondary(), which separates
6262         the child into a separate group from the normal
6263         buttons. (#56331)
6264
6265         * gtk/gtkdialog.c: Make help buttons secondary by
6266         default.
6267
6268         * gtk/gtkbbox.c: Added a child property "secondary".
6269
6270         * gtk/testgtk.c: Turn on the help button for the 
6271         color selector to check that it properly appears
6272         as secondary.
6273
6274 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
6275  
6276         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
6277         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
6278         Add gdk_set_pointer_hooks() to allow pointer-querying to
6279         be hooked by an event record/playback system like GERD.
6280         (#56914)
6281         
6282 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
6283
6284         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
6285         in the right value of initial_emission to
6286         gtk_widget_set_style_internal (#57091)
6287
6288 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
6289
6290         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
6291         Make compile.
6292
6293         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
6294         with calling gtk_widget_set_style_internal() with
6295         the old style, not the new style. (#56989)
6296
6297 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
6298
6299         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
6300           gtk/gtkwidget.c:
6301         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
6302         not GTK_WIDGET_GET_ANCESTOR ... see 
6303         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
6304         Indicate the best practice in the docs for gtk_widget_get_toplevel().
6305
6306         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
6307         so GtkPlug can give the correct signals when transforming
6308         from a child to a toplevel.
6309         
6310         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
6311         reparentation correctly.
6312
6313         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
6314         Propagate the previous_toplevel argument down properly.
6315
6316         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
6317         of wrong atr list.
6318
6319         * gtk/gtkplug.[ch]: Add an "embedded" signal.
6320
6321         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
6322         signals.
6323
6324         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
6325         functions gtk_plug_get_id(), gtk_socket_get_id(),
6326         to avoid the user having to worry about realization,
6327         and gdkx.h.
6328
6329         * tests/testsocket.c: Extend to try out the new signals
6330         and gtk_plug/socket_get_id().
6331
6332         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
6333         setting of underline attributes.
6334
6335         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
6336         DestroyNotify events from SubstructureNotifyMask
6337
6338         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
6339         Switch GDK_WINDOW_TYPE (window) as needed.
6340
6341         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
6342         allow creation of toplevel windows as children of
6343         foreign windows.
6344
6345         * gtk/gtkplug.c: Remove hacks involving changing private
6346         fields of GdkWindow.
6347
6348         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
6349         exactly the same signals and notification
6350         be emitted for local embedding as for inter-process
6351         embedding.
6352
6353 2001-07-04  James Henstridge  <james@daa.com.au>
6354
6355         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
6356
6357 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
6358
6359         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
6360         XEMBED embedding add a _XEMBED_INFO property to the
6361         client with version number and a "mapped" flags.
6362         Use the mapped flag instead of the racy MapRequestEvent
6363
6364         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
6365         code to reliably set things (when the child is a passive
6366         embedder participating in the XEMBED protocol) intead
6367         of just being a hack for embedding non-participating
6368         programs. Fix various bugs and race conditions.
6369         
6370         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
6371         work by simply making the GtkSocket the gtk parent
6372         of the GtkPlug. Set a flag in this case and make
6373         the GtkPlug work like a normal container by overriding
6374         methods such as check_resize and "chaining past" GtkWindow
6375         to GtkBin.
6376
6377         * gtk/gtkentry.c (gtk_entry_real_activate)
6378           gtk/gtkmain.c (gtk_propagate_event): 
6379         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
6380         
6381         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
6382         gtk_widget_get_ancestor):
6383         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
6384         might not give the expected result and recommend
6385         an alternative.
6386
6387         * tests/testsocket.c tests/testsocket_child.c
6388         tests/testsocket_common.c tests/Makefile.am: Extended
6389         to test different type of adding plugs to sockets
6390         (local,active,passive), and to test mapping/unmapping
6391         the plug.
6392
6393         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
6394         mark the window as destroyed until after we
6395         called _gdk_windowing_window_destroy().
6396         (_gdk_windowing_window_destroy() may use GDK functions
6397         on the window.)
6398
6399         * gdk/x11/gdkinput.c: Remove the check for finalization - 
6400         devices can be finalized under some circumnstances.
6401  
6402         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
6403         small problem with GDK_TYPE_DEVICE.
6404  
6405 2001-07-02  Havoc Pennington  <hp@pobox.com>
6406
6407         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
6408         use constants not atoms.
6409
6410 2001-07-02  James Henstridge  <james@daa.com.au>
6411
6412         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
6413         PANGO_TYPE_TAB_ARRAY.
6414
6415         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
6416         for PANGO_TYPE_TAB_ARRAY.
6417
6418         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
6419         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
6420
6421         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
6422         the file.  Remove Pango types from defs -- they are now defined in
6423         libpango.
6424
6425 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
6426
6427         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
6428
6429         * gtk/gtkobject.c (gtk_object_destroy): invoke
6430         g_object_run_dispose().
6431
6432         * gtk/gtkwindow.c: 
6433         * gtk/gtkwidget.c: 
6434         * gtk/gtkobject.c:
6435         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
6436         method.
6437
6438 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
6439
6440         * gtk/gtktypeutils.c (gtk_type_class): Remove
6441         change check for GTK_TYPE_OBJECT derivation to
6442         G_TYPE_OBJECTS - it's Tim-approved to use this 
6443         for arbitary objects.
6444
6445         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
6446         prefix gtk_container_dequeue_resize_handler().
6447
6448         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
6449         to the hierarachy_changed signal, since you otherwise
6450         have to always keep that around.
6451
6452         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
6453         for extra argument to hierarchy_changed.
6454
6455 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
6456
6457         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
6458         for style to mean "revert to default style"
6459
6460         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
6461           gtk_widget_restore_default_style): Make this functions
6462         deprecated aliases for gtk_widget_set_style (widget, NULL).
6463
6464         * gtk/gtkwidget.[ch]: Remove:
6465            gtk_widget_set_default_style ()
6466            gtk_widget_push_style ()
6467            gtk_widget_pop_style ()
6468         These functions interact are overriden by RC files, and
6469         thus virtually useless, and complicated.
6470
6471 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
6472
6473         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
6474         most of the previous global variables in gtkrc.c. This is
6475         in preparation for multi-head, since each screen can
6476         have different GtkSettings and RC information.
6477
6478         * gtk/gtkrc.[ch]: 
6479
6480         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
6481         GtkSettings parameter to GtkRcStyle::parse.
6482
6483         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
6484         Add two new settings gtk-theme-name, gtk-key-theme-name,
6485         for RC files that are loaded by name after reading
6486         the default RC files.
6487         
6488         * gtk/gtkrc.c: Allow priorities for styles, as wll as
6489         bindings.
6490
6491         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
6492         and use it by default for RC files loaded via 
6493         gtk-theme-name, gtk-key-theme-name.
6494
6495         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
6496         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
6497         tests/testgtkrc: Require pathnames to be absolute.
6498
6499         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
6500         the source when parsing, since the operation of looking up a
6501         pixmap from an RC file depends on the parsing context.
6502
6503         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
6504         reset RC styles on all widgets when files are reparsed.
6505
6506         * tests/testgtk.c (create_rc_file) 
6507           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
6508         Simplify, now that gtk_rc_reparse_all() resets styles on
6509         all widgets itself.
6510
6511         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
6512         return value.
6513
6514         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
6515         GtkSettings argument.
6516
6517         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
6518         gtk_settings_get_global().
6519
6520         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
6521         to get the appropriate GtkSettings for a widget. (For now,
6522         just gets the default GtkSetttings.) 
6523
6524         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
6525           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
6526         changes.
6527
6528         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
6529         getting a style for a path without actually having a widget.
6530         (Allows using a style for a subpart of a widget, for
6531         example.)
6532
6533         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
6534         the RC files to be reloaded for just one GtkSettings
6535         (not sure how useful this really is.)
6536
6537         * gtk/gtkrc.h: Deprecate
6538         gtk_rc_add_widget_name/widget_class/class_style
6539
6540 2001-06-30  Alex Larsson  <alexl@redhat.com>
6541
6542         * gdk/linux-fb/gdkinput-none.c:
6543         * gdk/linux-fb/gdkinput.c:
6544         * gdk/linux-fb/gdkinputprivate.h:
6545         Convert GdkDevice to a GObject.
6546
6547         * linux-fb/gdkprivate-fb.h:
6548         * linux-fb/gdkvisual-fb.c:
6549         Convert GdkVisual to a GObject.
6550
6551 2001-06-29  Alex Larsson  <alexl@redhat.com>
6552
6553         * gdk/gdkvisual.h:
6554         * gdk/gdkcolor.c:
6555         * gdk/x11/gdkx.h:
6556         * gdk/x11/gdkvisual-x11.c:
6557         Convert GdkVisual to a GObject.
6558
6559         * gdk/gdkinput.h:
6560         * gdk/gdkevents.c:
6561         * gdk/x11/gdkinputprivate.h:
6562         * gdk/x11/gdkinput-gxi.c:
6563         * gdk/x11/gdkinput-none.c:
6564         * gdk/x11/gdkinput-x11.c:
6565         * gdk/x11/gdkinput-xfree.c:
6566         * gdk/x11/gdkinput.c:
6567         Convert GdkDevice to a GObject.
6568
6569 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
6570
6571         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
6572         to just plain new, fixing the number of columns, and column types
6573         at creation time.
6574
6575         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
6576
6577         * gtk/gtkcellrenderertext.c
6578         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
6579         height to a specific font.
6580
6581         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
6582
6583         * tests/*c: change to work with new store models.
6584
6585 2001-06-29  Havoc Pennington  <hp@redhat.com>
6586
6587        * Throughout: fixes to compile with G_DISABLE_COMPAT
6588         (s/g_signal_connectc/g_signal_connect/,
6589         s/g_signal_newc/g_signal_new/,
6590         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
6591
6592 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
6593
6594         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
6595         add path argument to selection callbacks.
6596
6597 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
6598
6599         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
6600         walk through a model in a depth first manner, with the option to
6601         break out.
6602
6603 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
6604
6605         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
6606         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
6607         column and follow it when draged, rather than a location in the
6608         view. "expander_column" property and drawing functions changed
6609         accordingly.  Fixes bug #55942.
6610
6611         (gtk_tree_view_{set,get}_expander_column): Now works with a
6612         GtkTreeViewColumn* instead of int.
6613
6614 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
6615
6616         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
6617
6618 2001-06-28  Havoc Pennington  <hp@pobox.com>
6619
6620         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
6621         image data to the screen, using a server grab to avoid race
6622         conditions.
6623
6624         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
6625         check for NULL return from gtk_image_new_from_stock(), it never
6626         returns NULL.
6627         (gtk_item_factory_create_item): fix bug where we parsed the stock
6628         ID as an inline pixbuf
6629
6630         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
6631
6632         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
6633         support (should be using binding set here)
6634
6635         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
6636         support (should be using binding set here)
6637
6638         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
6639         support
6640
6641         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
6642
6643         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
6644
6645         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
6646
6647         * gtk/gtkimcontextsimple.c
6648         (gtk_im_context_simple_filter_keypress): keypad
6649
6650         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
6651
6652         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
6653
6654         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
6655
6656         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
6657         should be binding-setted)
6658
6659         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
6660
6661         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
6662
6663         * gtk/gtkcalendar.c: numeric keypad fixes
6664
6665         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
6666         support
6667
6668         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
6669         screwup
6670
6671         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
6672         clip the render area to the drawable's clip region in advance,
6673         so we don't get data from the server that we don't need.
6674
6675         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
6676         check return value of gdk_pixbuf_get_from_drawable(), fall back 
6677         to bilevel alpha if we can't get the pixbuf to composite against.
6678
6679         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
6680
6681         * gdk/gdkimage.c (gdk_image_get_colormap): add
6682         gdk_image_set_colormap, gdk_image_get_colormap
6683
6684         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
6685         take a region of the image, instead of converting the entire
6686         image.
6687
6688         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
6689         keybinding signal. Add default bindings for it. Add default
6690         handler for show_help that shows the tooltip for the widget.
6691
6692         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
6693         "close" keybinding signal, remove key press handler.
6694
6695         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
6696         it's not our usual practice to leave a deprecated function around
6697         with a runtime warning, plus we don't want it to appear in docs,
6698         plus if we make them yellow no one will want to change them
6699         anyhow.
6700
6701 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
6702
6703         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
6704         GTK_WIDGET_REALIZE() for resize queueing.
6705
6706         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
6707         GTK_WIDGET_REALIZE() for post event delivery destruction upon
6708         GDK_DESTROY.
6709         
6710         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
6711         sompensate for former (pre-2.0) connect_after() facility.
6712         (gtk_widget_send_expose): 
6713         (gtk_widget_event): assert the widget is realized, since event delivery
6714         to non-realized widgets is essentially a bug. event handlers should
6715         be able to unconditionally rely on widget->window (unless they
6716         emit events on their own which can trigger widget destruction).
6717         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
6718         logic. event delivery happens as follows:
6719         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
6720         b) if !was_handled in (a) and the widget is still realized, emit event-
6721            specific signal (RUN_LAST handler). returns was_handled.
6722         c) emission of GtkWidget::event-after for notification if the widget is
6723            still realized (regardless of was_handled from previous stages, no
6724            class handler). no return value.
6725         d) was_handled gets passed on to caller, to determine further
6726            propagation. if the widget got unrealized meanwhile, was_handled
6727            is returned as TRUE.
6728
6729         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
6730         gdk_event_get_coords().
6731
6732 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
6733
6734         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
6735         age 0, binary age 0. depend on glib 1.3.7.
6736
6737         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
6738
6739         * gtk/gtkmenubar.c: same here.
6740         
6741         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
6742
6743         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
6744
6745         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
6746         
6747         * gtk/gtkmenubar.c (add_to_window): likewise.
6748         
6749         * gtk/gtktextbtree.c: and here...
6750         
6751         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
6752         
6753         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
6754         
6755         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
6756         
6757         * gtk/gtktreeviewcolumn.c:
6758         (_gtk_tree_view_column_set_tree_view): yet again.
6759
6760         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
6761         signal connections without g_signal_connect_data().
6762         
6763         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
6764         demo of the matter.
6765         
6766         * demos/testpixbuf.c (main): running out of equality phrases for the
6767         ChangeLog, but had to adapt connections here as well.
6768         
6769         * demos/testanimation.c (progressive_timeout): and for the fun of it,
6770         tackled this the same way.
6771         
6772         * tests/testtext.c (create_view): ok, it's becoming a pain at this
6773         point, but had enough enery for one more fix.
6774
6775         * tests/testtreecolumns.c (main): stand up man, do your work!
6776
6777         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
6778         fix, either that's been all of it or CVS gtk is broken yet again.
6779         
6780 2001-06-29  James Henstridge  <james@daa.com.au>
6781
6782         The following changes correspond to bug #56812
6783
6784         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
6785         code for GdkDevice.
6786
6787         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
6788         GdkCursor.
6789
6790 2001-06-19  Havoc Pennington  <hp@pobox.com>
6791
6792         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
6793         for mapping a window without fooling with stacking order, but
6794         updating the "withdrawn" flag
6795
6796         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
6797         filtering as soon as possible, moving move resize and wmspec_check
6798         handling after the event filter.  Make default filter apply to all
6799         events, not just those with no GdkWindow wrapped around the X
6800         window. Fix a FIXME about how the window could be a pixmap using 
6801         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
6802
6803         Also, be robust against events not on a known GdkWindow.
6804
6805         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
6806         gdk_x11_ungrab_server): export reference-counted server grabs, so
6807         other people can grab server over a GDK function that also does
6808         so.
6809
6810 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
6811
6812         * gtk/gtktreeviewcolumn.c
6813         (gtk_tree_view_column_pack_start_cell_renderer): New function to
6814         reflect that you can (hypothetically) pack cell renderers into a
6815         column.
6816         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
6817         (gtk_tree_view_column_cell_is_visible): Move more functionality to
6818         the column.
6819         (gtk_tree_view_column_cell_can_focus): Move more functionality to
6820         the column.
6821
6822         * gtk/gtktreeview.c: Move to use new column-packing code.
6823         (gtk_tree_view_real_expand_row): remove totally braindead code.
6824         (gtk_tree_view_real_collapse_row): ditto.
6825
6826 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
6827
6828         * gtk/gtktreeviewcolumn.c: Fix a typo.
6829         
6830 2001-06-26  Joel Becker  <jlbec@evilplan.org>
6831
6832         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
6833           at the end of the file
6834
6835 2001-06-26  Havoc Pennington  <hp@redhat.com>
6836
6837         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
6838
6839 2001-06-26  Havoc Pennington  <hp@redhat.com>
6840
6841         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
6842         property
6843
6844 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
6845
6846         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
6847         stupid missing statement
6848
6849         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
6850         private function for ATK.  It notifies you of how many _visible_
6851         children are deleted when a node is deleted.  Should be used by
6852         atk only.
6853
6854 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
6855
6856         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
6857         Use new pango_context_get_metrics() to fix problems
6858         with font lists in descriptions. (#56184, reported by
6859         Jonas Borgström)
6860
6861 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
6862
6863         * gtk/gtkiconfactory.c:
6864         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
6865         item factory so inlined pixbufs actually work.
6866
6867 2001-06-25  Havoc Pennington  <hp@redhat.com>
6868
6869         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
6870         s/RESIZEABLE/RESIZABLE/
6871
6872         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
6873
6874 2001-06-25  Alexander Larsson  <alexl@redhat.com>
6875
6876         * configure.in:
6877         Added --enable-fbmanager. This is some experimental code
6878         that lets several GtkFB apps coordinate their access to the
6879         framebuffer.
6880         
6881         * acconfig.h:
6882         Added ENABLE_FB_MANAGER.
6883
6884         * gdk/linux-fb/Makefile.am:
6885         Added gdkfbmanager and gdkfbswitch.
6886
6887         * gdk/linux-fb/gdkkeyboard-fb.c:
6888         * gdk/linux-fb/gdkmouse-fb.c:
6889         * gdk/linux-fb/gdkprivate-fb.h:
6890         Split device init and open so that
6891         they can be opened and closed while switched
6892         away.
6893
6894         * gdk/linux-fb/gdkmain-fb.c:
6895         Add the basic manager communication.
6896
6897         * gdk/linux-fb/gdkrender-fb.c:
6898         Don't update to the shadow fb if we're
6899         blocked by the fb manager.
6900
6901 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
6902
6903         * docs/Changes-2.0.txt: Add note about child property
6904         changes.
6905
6906 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
6907
6908         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
6909         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
6910
6911         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
6912         with un'reffing wrong list reported by Jeff Franks.
6913
6914         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
6915
6916         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
6917         for the default icon. Remove inline XPM.
6918
6919         * gtk/gtkstock.h gtk/gtkiconfactory.c:
6920         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
6921         is used for GTK_STOCK_DND, but it is a bit too small.)
6922
6923         * gtk/stock-icons/stock_dnd_multiple.png
6924         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
6925
6926         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
6927         TRUE when starting a drag. In other cases, we are
6928         just observing. (#52995)
6929
6930         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
6931         function to set the icon for a drag from a GdkPixbuf
6932         or stock ID.
6933
6934         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
6935         Likewise, for drag sources.
6936
6937         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
6938         (Now should be done using the stock system.)
6939
6940 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
6941
6942         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
6943         Removed - didn't work and not particularly useful anyways
6944         if it did. 
6945
6946 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
6947
6948         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
6949         introduced last night that was making things decidedly not work.
6950
6951         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
6952         so that we have getter/setter pairing everywhere it makes
6953         sense. (#55767)
6954
6955         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
6956         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
6957         deprecated compat macro. (#55516)
6958
6959         * gtk/gtklabel.[ch]: Add functions
6960         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
6961         gtk_label_set_label(), which mirror the property API for GtkLabel.
6962         Make gtk_label_get_attributes() only reflect the attributes
6963         set by gtk_label_set_attributes.
6964
6965         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
6966         from gtk_notebook_set_page().
6967
6968 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
6969
6970         * configure.in: Fix tests for XShm.h.
6971
6972         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
6973         gdk_image_new() by use of goto, properly use g_object_unref().
6974
6975 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
6976
6977         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
6978         calls, as GdkImage is an object. these should be g_obejct_unref()
6979         instead but that won't work because of the g_error() statement
6980         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
6981         to spot these places.
6982
6983 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
6984
6985         * modules/input/gtkimcontextxim.c: Fixup some problems with 
6986         text length handling in error cases.
6987
6988         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
6989         a bit to make test actually warn on attempt to allocation
6990         a negative size. (#56101, Matthias Clasen)
6991
6992 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
6993
6994         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
6995         noticed by Brian Cameron.
6996         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
6997         Cameron.
6998
6999 2001-06-22  Hans Breuer  <hans@breuer.org>
7000
7001         * gdk/gdk.def : updated externals
7002
7003         * gdk/win32/gdkdrawable-win32.c : corrected some casts
7004         in GDK_NOTEs
7005
7006         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
7007         to translate coordinates to the internal > 16 bit system
7008         Try to handle WM_WINDOWPOSCHANGED to get better performance for
7009         when moving/resizing
7010
7011         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
7012         and gdk_keymap_get_direction (). The latter is untested for
7013         the RTL case
7014
7015         * gtk/gtk.def : updated externals
7016
7017         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
7018         from pango_language_from_string (), not an already freed pointer
7019
7020         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
7021         binary (-kb) to be useable on windoze
7022  
7023 2001-06-21  Alexander Larsson  <alexl@redhat.com>
7024
7025         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
7026         Update to new PangoLanguage changes.
7027         
7028         * gtk/gtkwindow-decorate.c:
7029         * gtk/gtkwindow.[ch]:
7030         Added setting argument to gtk_window_set_has_frame ()
7031         
7032 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
7033
7034         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
7035         the case without XKB properly.
7036
7037         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
7038         unused gtk_rc_auto_parse variable.
7039
7040         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
7041         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
7042         longer needed with GdkPixbuf.
7043
7044         * gtk/gtkrc.c (_gtk_rc_init): Make private.
7045
7046 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
7047
7048         * gtk/gtkentry.h: Mark deprecated functions with
7049         GTK_DISABLE_DEPRECATED.
7050
7051 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
7052
7053         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
7054
7055         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
7056
7057         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
7058           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
7059           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
7060           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
7061           to recent changes in Pango.
7062
7063         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
7064           to test whether the basic engine honors them.
7065
7066 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
7067
7068         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
7069         gtk_container_child_get_property().
7070
7071 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
7072
7073         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
7074         (gtk_tree_view_move_cursor_page_up_down): implement.
7075
7076 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
7077
7078         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
7079         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
7080         don't use automatic fixed size buffer for printf-ing floats, doubles
7081         can expand to really _huge_ strings, use g_strdup_printf() instead.
7082
7083 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
7084
7085         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
7086         construct property in 1.2 and still needs to be.
7087
7088         * gtk/gtkwidget.c: "composite_child" is not a settable property.
7089
7090 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
7091
7092         * gtk/gtkliststore.c (gtk_list_store_clear): 
7093         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
7094         clear a model.
7095
7096 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
7097
7098         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
7099
7100         * gtk/Makefile.am:
7101         * gtk/gtk.h: disabled GtkPacker compilation.
7102
7103         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
7104
7105         * gtk/gtknotebook.c:
7106         * gtk/gtktable.c:
7107         * gtk/gtkbox.c: ported this over to child properties.
7108
7109         * gtk/gtksettings.c: fetch class properties via
7110         g_object_class_list_properties().
7111
7112         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
7113         child arg interface. use gobjectnotifyqueue.c for child property
7114         notification.
7115
7116         * gtk/gtkwidget.[hc]: provide necessary means for container child
7117         properties, i.e. ::child_notify signal,
7118         gtk_widget_freeze_child_notify(),
7119         gtk_widget_child_notify(),
7120         gtk_widget_thaw_child_notify().
7121
7122         * tests/testgtk.c: removed inferior property handling code, for
7123         property editing, a generic module should be used, and GLE
7124         coincidentally fullfills that purpose.
7125
7126         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
7127         needs to be adapted to g_object_class_list_properties() before this
7128         builds again.
7129
7130 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
7131
7132         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
7133         test if a node is expanded.
7134
7135 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
7136
7137         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7138         where collapsing a selected row would result in the cursor/anchor
7139         getting screwed up.
7140
7141 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
7142
7143         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
7144         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
7145         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
7146         Now I can really reorder/sort all Store widgets.  treesorttest
7147         seems to just work now.
7148         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
7149         testtreesort worked through a big coincidence all this time.
7150         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
7151         code.
7152         * tests/testtreecolumns.c: Big 'ol warning at the top letting
7153         people know that this code should never ever ever be copied.
7154
7155 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
7156
7157         * gtk/gtkwindow.h: Fixed a small typo, it should be
7158         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
7159         on line 134.
7160
7161 2001-06-14  Havoc Pennington  <hp@redhat.com>
7162
7163         Docs fixups, and:
7164         
7165         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
7166         GTK_DISABLE_DEPRECATED
7167
7168 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
7169
7170         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
7171         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
7172         finish it off tonight, though it basically works now when it's a
7173         list.  Also, I have a sinking feeling neither GtkTreeStore or
7174         GtkListStore actually resort when adding a new item.  I'll look
7175         into it.
7176
7177 2001-06-14  Havoc Pennington  <hp@redhat.com>
7178
7179         * demos/gtk-demo/main.c (load_file): fix bug identified by
7180         warnings I just added to gtktextbuffer
7181
7182 2001-06-14  Havoc Pennington  <hp@redhat.com>
7183
7184         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
7185
7186         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
7187
7188         * gtk/gtktextbtree.c: don't leak node data all over the place.
7189
7190         * demos/gtk-demo/main.c (main): create fontify tags for the right
7191         buffer
7192
7193         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
7194         to mention tags in the same table can't have the same name,
7195         suggested by Skip Montanaro
7196
7197 2001-06-11  Havoc Pennington  <hp@redhat.com>
7198
7199         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
7200         for trying to add two tags with same name to the tag table
7201
7202         * demos/gtk-demo/main.c (main): fix colors ;-)
7203
7204 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
7205
7206         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
7207         that allows grouping together multiple windows so that grabs
7208         within that set of windows only affect those windows.
7209
7210         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
7211         signal for notification when a widget becomes shadowed
7212         by a grab or is no longer shadowed by a grab.
7213
7214         * gtk/gtkwidget.c (gtk_widget_propagate_state)
7215           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
7216         insenstive widgets to maintain a grab.
7217
7218 2001-06-14  Alexander Larsson  <alexl@redhat.com>
7219
7220         * docs/README.linux-fb:
7221         Add some example config files that can be used with the URW fonts.
7222         
7223         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
7224         Set up the color ramps for DirectColor mode.
7225
7226 2001-06-11  Havoc Pennington  <hp@redhat.com>
7227
7228         * Release 1.3.6
7229          
7230 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7231
7232         * gdk/linux-fb/gdkwindow-fb.c:
7233         Unify shaped window code and make it repaint the area that used
7234         to be part of the shape, but isn't anymore.
7235
7236 2001-06-11  Havoc Pennington  <hp@redhat.com>
7237
7238         * NEWS: Updates
7239
7240         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
7241
7242         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
7243         
7244 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7245
7246         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
7247         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
7248         passes zero instead, so do we.
7249         
7250 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7251
7252         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
7253         Deep copy dash_list too.
7254         (_gdk_fb_gc_new): Set default cap_style before
7255         setting values.
7256
7257 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
7258
7259         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
7260         gdk_keymap_get_direction): New functions.
7261
7262 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
7263
7264         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
7265         gtk_tree_model_get_flags by adding a second flag for atk.
7266
7267         * gtk/gtktreemodel.c: make cursor behavior interact better with
7268         mouse presses.
7269
7270 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
7271
7272         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
7273         expand_row/collapse_row to be 2 signals each -- test_expand_row
7274         and row_expanded as well as test_collapse_row and row_collapsed.
7275
7276 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
7277
7278         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
7279         signal name to be changed instead of selection_changed.
7280
7281 2001-06-08  Havoc Pennington  <hp@redhat.com>
7282
7283         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
7284         "scroll_offset" property for notification when the layout offsets
7285         may have changed
7286         (gtk_entry_adjust_scroll): add notify for scroll_offset
7287         (gtk_entry_layout_index_to_text_index): function to compensate for
7288         preedit string when doing coordinate stuff on the entry's layout
7289         (gtk_entry_text_index_to_layout_index): inverse function
7290         (gtk_entry_get_layout_offsets): hook to get current position of
7291         the layout      
7292         (gtk_entry_get_layout): hook to get the layout itself.
7293
7294         * gtk/gtklabel.c (gtk_label_get_layout): new function
7295
7296 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
7297
7298         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
7299         keybinding.
7300         (gtk_tree_view_focus): Fix merge conflict.
7301
7302 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
7303
7304         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
7305         clean up cursor handling.
7306
7307 2001-06-08  Havoc Pennington  <hp@redhat.com>
7308
7309         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
7310         function
7311
7312         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
7313         this function
7314
7315 2001-06-08  Alex Larsson  <alexl@redhat.com>
7316
7317         * gtk/gtkcompat.h.in:
7318         Added compat macros for all old GTK_TYPE_GDK_xxx types.
7319         Fixes bug #52892
7320
7321 2001-06-08  Havoc Pennington  <hp@redhat.com>
7322         
7323         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
7324         parent still
7325
7326 2001-06-08  Havoc Pennington  <hp@redhat.com>
7327
7328         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
7329         don't call g_list funcs on GSList
7330
7331         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
7332         gtk_container_focus(), since some widgets have focusable locations
7333         which are not other widgets. These widgets should not have to be 
7334         containers just to manage the focus. For example, GtkHSV is
7335         currently a container for no good reason. Also, this cleans
7336         up the "if (is_container && is_sensitive && is_drawable)
7337         container_focus ()" mess in widget implementations.
7338
7339         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
7340         function, and have it just call gtk_widget_child_focus().
7341
7342         * gtk/gtkhsv.c: derive from widget not container
7343         
7344         Throughout: fix to reflect GtkContainer::focus change
7345         
7346 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
7347
7348         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
7349         range.  Fix bug #55921
7350
7351         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
7352         (#55920).
7353
7354 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
7355
7356         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
7357         and gdk_keymap_get_current_direction().
7358
7359         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
7360           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
7361         the current locked group, use it to set the keymap
7362         direction.
7363
7364         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
7365         to determine whether we draw a split cursor or use
7366         a jumping cursor based on the current direction.
7367
7368         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
7369         Obey the split cursor setting. 
7370
7371 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
7372
7373         * gtk/gtkimmulticontext.c (activate_cb): Only activate
7374         when toggling on, not when toggling off... (#55906)
7375
7376 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
7377
7378         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
7379         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
7380         in docs. (#55812, Vitaly Tishkov)
7381
7382 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
7383
7384         * demos/gtk-demo/main.c (create_tree): Changed signal name from
7385         selection_changed to changed in signal connection to GtkTreeSelection,
7386         also used g_signal_connectc since GtkTreeSelection is now a GObject.
7387
7388 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
7389
7390         * gtk/gtktreeselection.c: Now it's a GObject instead of a
7391         GtkObject.  The GtkTreeSelection::selection_changed signal is now
7392         the GtkTreeSelection::changed signal.
7393
7394         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
7395         object.
7396
7397         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
7398         object.
7399
7400 2001-06-07  Havoc Pennington  <hp@redhat.com>
7401
7402         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
7403
7404 2001-06-07  Havoc Pennington  <hp@redhat.com>
7405         
7406         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
7407         (not tested yet because with absolute path to srcdir I can't build
7408         atk, but it was broken anyway so this may help) 
7409
7410 2001-06-07  Havoc Pennington  <hp@redhat.com>
7411
7412         * configure.in: output m4macros/Makefile
7413         
7414 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
7415
7416         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
7417         buttons.  Fixes #55460 reported by matthiasc@poet.de.
7418
7419 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
7420
7421         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
7422         expansion/collapsing so it only happens in one place.
7423         (gtk_tree_view_real_expand_row): ditto.
7424
7425 2001-06-07  Havoc Pennington  <hp@redhat.com>
7426
7427         * tests/Makefile.am: add missing -I flag
7428
7429         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
7430
7431         * configure.in: use pkg-config to see if GModule is
7432         supported; fix to properly turn on included loaders 
7433         when GModule isn't supported; don't use AC_CHECK_LIB 
7434         when libs are not installed yet
7435
7436         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
7437
7438         * Makefile.am (SUBDIRS): add m4macros subdir
7439
7440         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
7441         dependencies also.
7442
7443 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
7444
7445         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
7446         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
7447
7448 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
7449
7450         * gtk/gtktreeview.c
7451         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
7452         bindings to expand and collapse rows.
7453         (gtk_tree_view_real_select_cursor_parent): New key binding.
7454         (gtk_tree_view_real_toggle_cursor_row): New key binding.
7455
7456         * gtk/gtkmarshal.list: new
7457         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
7458
7459 2001-06-06  Havoc Pennington  <hp@redhat.com>
7460
7461         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
7462
7463         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
7464         Down to move visually rather than logically, since it confuses 
7465         people. Add -/+ and Ctrl--/+ bindings for logical movement.
7466
7467 2001-06-06  Alex Larsson  <alexl@redhat.com>
7468
7469         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
7470         Fix up error messages.
7471
7472 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
7473
7474         * gtk/gtktooltips.h: Include gtkwidget.h 
7475         (#55798, Karl Nelson)
7476
7477         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
7478         a valid latin-1 character. (Marc Lehmann, #35467)
7479
7480         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
7481         (Marc Lehmann, #35467)
7482         
7483 2001-06-05  Alex Larsson  <alexl@redhat.com>
7484
7485         * demos/gtk-demo/appwindow.c (do_appwindow):
7486         Don't swap the order of the args to gtk_widget_destroyed.
7487
7488         * tests/testgtk.c (destroy_properties):
7489         Don't crash when the properties window is destroyed.
7490
7491         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
7492         Use with_mnemonics to handle the case of stock items with
7493         underscores in them.
7494
7495 2001-06-05  Havoc Pennington  <hp@redhat.com>
7496
7497         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
7498         gtk_text_iter_reorder
7499
7500 2001-06-05  Havoc Pennington  <hp@redhat.com>
7501
7502         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
7503
7504 2001-06-05  Havoc Pennington  <hp@redhat.com>
7505
7506         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
7507         to the range that was set
7508
7509         * gtk/gtkrange.c: add value_changed signal, primarily 
7510         intended for use with GtkScale
7511         (gtk_range_set_increments): new function
7512         (gtk_range_set_range): new function with weird name
7513         (gtk_range_set_value): new function
7514         (gtk_range_get_value): new function
7515
7516         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
7517         from gtk_spin_button_get_value_as_float(). Compat #define
7518         added for get_value_as_float.
7519
7520         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
7521
7522         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
7523
7524 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
7525
7526         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
7527
7528 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
7529
7530         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
7531
7532         * tests/testgtk.c (create_tooltips): Remove usage of
7533         gtk_widget_set().
7534
7535 2001-06-05  Havoc Pennington  <hp@redhat.com>
7536
7537         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
7538
7539         Applying patch from Jeff Franks, with function docs added.
7540         
7541         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
7542         remove call to set_mnemonic_widget, change docs a bit.  
7543
7544         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
7545         new function
7546
7547         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
7548         new function
7549
7550         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
7551
7552         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
7553         function
7554         (gtk_radio_button_new_with_mnemonic_from_widget): new function
7555
7556         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
7557         new function
7558
7559         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
7560         function        
7561
7562         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
7563         auto-selection of mnemonic widget.
7564
7565 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
7566
7567         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
7568         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
7569         (gtk_tree_view_column_set_min_width): ditto.
7570
7571 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
7572
7573         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
7574         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
7575
7576 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
7577
7578         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
7579         gtk_clist_thaw().
7580
7581 2001-06-04  Havoc Pennington  <hp@pobox.com>
7582
7583         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
7584 r       eleases for buttons 6, 7
7585
7586 2001-06-04  Havoc Pennington  <hp@redhat.com>
7587
7588         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
7589         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
7590         #55562
7591
7592 2001-06-04  Havoc Pennington  <hp@redhat.com>
7593
7594         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
7595         where text_view->layout == NULL by assuming its size is 0, 
7596         i.e. same as if we haven't done any reflow. Reported by 
7597         Hidetoshi Tajima #55448 
7598
7599 2001-06-04  Havoc Pennington  <hp@redhat.com>
7600
7601         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
7602         and 7 for scroll left/right, from Thomas Broyer
7603
7604 2001-05-10  Havoc Pennington  <hp@redhat.com>
7605
7606         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
7607         we need to parse the xsetting as if it were an RC file string.
7608
7609         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
7610         value of palette from settings, not from static variable
7611
7612         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
7613         xsettings translation table
7614
7615         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
7616         hardcoding the toolbar style conflicts with new customizable 
7617         toolbar style philosophy
7618         (gtk_toolbar_class_init): add settings for default toolbar style;
7619         these are used unless the app specifically forces a toolbar style
7620
7621         * gtk/gtksettings.c (settings_install_property_parser): only
7622         return at the start if we warn and parser == NULL
7623
7624         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
7625         palette changed handler so we don't notify dead color selections
7626
7627         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
7628         xthickness/ythickness of 0 or 1 properly 
7629         (gtk_default_draw_resize_grip): clear the background behind the
7630         resize grips, and align to bottom right if we square the 
7631         area to be drawn.
7632
7633         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
7634         statusbar label to 1, so it doesn't make toplevels resize oddly
7635         (gtk_statusbar_size_request): add grip size to request
7636         (gtk_statusbar_size_allocate): hack so the hbox still works with 
7637         the grip size in the request
7638
7639         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
7640         bug where showing all on a toplevel makes the toolbar 
7641         button text appear despite the toolbar mode
7642
7643         * gtk/gtkmenubar.c: add internal padding style property
7644
7645         * gtk/gtktoolbar.c: Add internal padding style property; add
7646         shadow type style property
7647
7648         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
7649         state; and put Container::border_width outside the frame
7650
7651         * gtk/gtktextview.c: don't draw focus rectangle if we're in
7652         interior focus mode, we just use blinking cursor
7653
7654 2001-06-04  Havoc Pennington  <hp@redhat.com>
7655
7656         * configure.in: Make gdk-pixbuf have same version number as GTK
7657
7658 2001-06-04  Havoc Pennington  <hp@redhat.com>
7659
7660         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
7661         digits greater than 6. If there actually are limits (which there
7662         likely aren't), should clamp to them not warn.
7663         (gtk_spin_button_new_with_range): don't take log of 0
7664         (gtk_spin_button_size_request): use digits to compute size
7665         request, rather than step increment.
7666
7667         * tests/testgtk.c (create_spins): test larger values of digits
7668         
7669         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
7670         font on map not expose, so we don't get weirdness during scrolling
7671
7672 2001-06-04  Havoc Pennington  <hp@redhat.com>
7673
7674         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
7675         Sam Solon, bug #54577, update value even if not drawable.
7676
7677 2001-06-04  Havoc Pennington  <hp@redhat.com>
7678
7679         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
7680         SCROLL_LEFT, reported by Thomas Broyer.
7681
7682 2001-06-04  Havoc Pennington  <hp@redhat.com>
7683
7684         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
7685         Process updates immediately, to prevent funny lag effect
7686         when scrolling, at some mild potential efficiency cost.
7687
7688 2001-06-04  Havoc Pennington  <hp@redhat.com>
7689
7690         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
7691         slider on the click.
7692
7693 2001-06-03  Havoc Pennington  <hp@pobox.com>
7694
7695         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
7696         hscale/vscale details, so we can use it for scrollbar as well.
7697
7698         * tests/testgtk.c (reformat_value): honor digits from GtkScale
7699
7700         * gtk/gtkenums.h (GtkTroughType): Remove this enum
7701         (GtkScrollType): add START and END from GtkTroughType
7702
7703         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
7704         its x/y arguments
7705
7706         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
7707         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
7708         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
7709         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
7710         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
7711
7712         Notable changes in the process:
7713          
7714         - stepper_size style property is the height for vertical 
7715           ranges, width for horizontal; the other dimension matches
7716           the trough size
7717         - add ability to do NeXT-style steppers (and several other styles
7718           that don't make any sense)
7719         - added min_slider_length, fixed_slider_length properties to
7720           GtkScrollbar
7721         - cleaned some private (or at least useless) functions out of
7722           gtkscale.h    
7723         - moved bindings to GtkScale from subclasses, even arrow keys,
7724           since blind users don't know scale orientation.
7725         - change move_slider action signal to use new GtkScrollType,
7726           remove GtkTroughType argument
7727         - digits rounds the values a range will input to the given 
7728           number of decimals, but will not try to force adjustment 
7729           values set by other controllers. That is, we no longer
7730           modify adjustment->value inside a value_changed handler.
7731         - added getters for GtkScale setters
7732         - middle-click begins a slider drag
7733         
7734 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
7735
7736         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
7737         getting the focus code to work.
7738         (gtk_tree_view_class_init): Add a bunch of keybindings.
7739
7740         * gtk/gtktreeviewcolumn.c
7741         (gtk_tree_view_column_set_cell_data_func):
7742         s/GtkCellDataFunc/GtkTreeCellDataFunc.
7743         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
7744         of "properties_changed" to help justify the death of the latter
7745         signal. (-:
7746
7747         * tests/testtreefocus.c (main): Let some columns be focussable to
7748         test focus better.
7749
7750 2001-06-01  Havoc Pennington  <hp@redhat.com>
7751
7752         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
7753         
7754         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
7755         overwrite in overwrite mode if we already deleted the selection
7756         and replaced it with new text.  
7757
7758         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
7759         selection to an empty range, clear the clipboard if we owned it.
7760         (gtk_label_set_selectable): give up selection if we become
7761         unselectable.
7762         (gtk_label_state_changed): override state changed to unselect text
7763         when insensitive
7764         (get_text_callback): add paranoia check that indexes aren't
7765         outside of label->text
7766         (gtk_label_select_region): make -1 for start_offset mean "end of
7767         label," for consistency with GtkEditable
7768
7769         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
7770         GTK_DIALOG_NO_SEPARATOR flag
7771
7772 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
7773
7774         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
7775         notifications on non-existant "enable_arrow_keys".
7776         (#53753, Skip Montanaro)
7777
7778 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
7779
7780         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
7781         GDK_TYPE_RECTANGLE.
7782
7783         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
7784         of allocation argument be GDK_TYPE_RECTANGLE.
7785
7786 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
7787
7788         * gtk/gtkoptionmenu.c: Account for the fact that the border
7789         width is _outside_ the window. (Fixes #54585, bug found
7790         by Bastien Nocera.)
7791
7792 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
7793
7794         * gtk/gtksettings.c (gtk_settings_get_property): Validate
7795         value from GDK settings against parameter spec.
7796
7797         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
7798         to temporary values and use g_value_transform(), since
7799         thinking that GValue was going to be easy or efficient
7800         to use was, of course, a mistake.
7801
7802         * gtk/gtksettings.c: Add cursor blink setting.
7803         
7804         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
7805
7806         * gtk/gtkentry.c: Add cursor blinking.
7807
7808         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
7809         cursor blink global settings.
7810
7811         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
7812         for :text_position in places where it is missing.
7813
7814 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
7815
7816         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
7817
7818 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
7819
7820         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
7821         not pkg-config. (#51032)
7822
7823         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
7824         (fixes #51952, James Henstridge)
7825         
7826 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
7827
7828         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
7829         Rename to the more correct gtk-go-up.
7830
7831         * gtk/stock-icons/stock_menu_sort_ascending.png:
7832         Added new file.
7833         
7834         * gtk/stock-icons/stock_menu_sort_descending.png:
7835         Changed to show descending instead of ascending.
7836
7837         * gtk/gtkiconfactory.c:
7838         Added menu size icon to sort ascending.
7839
7840         * gtk/stock-icons/Makefile.am:
7841         Added stock_menu_sort_ascending.png.
7842         
7843         * gtk/gtkseparatormenuitem.c:
7844         Use correct typenames.
7845
7846 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
7847
7848         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
7849         gulong as in GSignal.
7850
7851 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
7852
7853         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
7854         instances of GtkCellRenderer in code (all but dnd icon code).
7855         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
7856         there, and I can do multiple Cells per column.
7857
7858         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
7859
7860         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
7861         when model was unreffed prior to removing the row reference.
7862
7863 2001-05-25  Havoc Pennington  <hp@redhat.com>
7864
7865         * gtk/gtkiconfactory.c: fix so that default icons are created if 
7866         you call gtk_stock_list_ids()
7867
7868         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
7869         in list
7870
7871 2001-05-25  Havoc Pennington  <hp@redhat.com>
7872
7873         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
7874         set can render without falling back to missing image icon
7875
7876         * gtk/gtktextview.c (gtk_text_view_size_request): request full
7877         size of text, instead of random values
7878
7879         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
7880         size of tree view, instead of random values
7881
7882         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
7883         image in an appropriate size
7884
7885         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
7886         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
7887
7888         Throughout: fix GTK_STOCK_BUTTON_ instances
7889         
7890         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
7891         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
7892         Add a bunch of new stock items/icons
7893
7894         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
7895         new function, convenience for inserting columns with a data func
7896
7897         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
7898         (_gtk_icon_factory_list_ids): use list of all factories to
7899         generate a list of all known IDs
7900
7901         * gtk/gtkstock.c (gtk_stock_list_ids): replace
7902         gtk_stock_list_items() with a function that returns all IDs known
7903         including those for GtkIconFactory.
7904
7905 2001-05-25  Hans Breuer  <hans@breuer.org>
7906
7907         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
7908         work -> check boxes and radio buttons are drawn now, even on win9x.
7909         Improved line settings a bit, still no clue how to get really dotted
7910         lines on win9x, on NT it's PS_ALTERNATE.
7911
7912         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
7913         GDK_HINT_MIN_SIZE as well
7914
7915         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
7916
7917         * gtk/gtk.def : updated
7918
7919         * gtk/gtktreeprivate.h : change column_drop_func to be a function
7920         pointer not a function pointer pointer
7921
7922         * tests/testdnd.c : include <stdlib.h> for putenv prototype
7923
7924         * tests/testsocket.c : made it compile on win32 again
7925
7926         * tests/makefile.msc : one more test-app uses prop-editor.obj
7927
7928 2001-05-22  Havoc Pennington  <hp@pobox.com>
7929
7930         * gtk/gtkbin.c (gtk_bin_get_child): New function
7931
7932 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
7933
7934         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
7935         to ignore when doing compose processing.
7936
7937 2001-05-22  Joe Shaw  <joe@ximian.com>
7938
7939         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
7940         Simplify as suggested by Havoc. Just get the last iter and work
7941         backward to the tag instead of getting a line and working back from
7942         there. Fixes passing in an invalid offset to
7943         iter_init_from_byte_offset().
7944
7945 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
7946
7947         * gtk/gtktreeview*.h: 
7948         * gtk/gtkcell*.h:
7949         * gtk/gtk*store.h:
7950         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
7951         macros to all objects.
7952
7953 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
7954
7955         * gtk/gtkcellrenderertext.c
7956         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
7957         with very large (TM) amounts of text.  May be moved to
7958         GtkCellRenderer in the future, though I'm not sure it wants to be
7959         this accessible.
7960
7961         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
7962         More sanity brought to this class.  I like it.
7963
7964         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
7965         case.  Kids, don't try this at home.
7966
7967         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
7968         convenience function.
7969
7970         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
7971
7972 2001-05-21  Alexander Larsson  <alexl@redhat.com>
7973
7974         * gtk/gtkfontsel.c:
7975         Added properties. Based on patch by Lee Mallabone.
7976
7977         * gtk/gtkruler.c:
7978         * gtk/gtkhruler.c:
7979         * gtk/gtkvruler.c:
7980         * gtk/gtktext.c:
7981         * gtk/gtktextview.c:
7982         Converted GtkArg to GParam. Based on patches by John Margaglione.
7983
7984         * tests/Makefile.am:
7985         * tests/testtext.c:
7986         Add a property editor to testtext.
7987         
7988 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
7989
7990         * gtk/gtk{h,v,}paned.c: Only show the separator if 
7991
7992         * configure.in: Fixed reversed conditional causing all image
7993         libraries to be linked in.
7994
7995 2001-05-21  Joe Shaw  <joe@ximian.com>
7996
7997         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
7998         that top_y needs to be >= 0.
7999
8000 2001-05-11  Havoc Pennington  <hp@pobox.com>
8001         
8002         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
8003         losing connection to the X server.
8004
8005 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
8006
8007         * configure.in: Start checks for X from pangox/pangoxft
8008         CFLAGS to avoid duplicate libraries.
8009
8010         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
8011
8012         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
8013         to include gobject.
8014         
8015 2001-05-18  Alexander Larsson  <alexl@redhat.com>
8016
8017         * gtk/gtkspinbutton.c:
8018         Convert GtkArgs to GParams. Based on patch by John Margaglione.
8019         Also do size request reasonable for MAXDOUBLE. Previously it printed
8020         the limits to a buffer and overran it. Instead do it using log10() and
8021         limit the width to 10 digits.
8022         
8023         * gtk/gtkwidget.c (gtk_widget_get_property):
8024         Correctly handle setting the parent property to NULL.
8025
8026 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
8027
8028         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
8029         style attributes even if the widget isn't realized.
8030
8031         * demos/gtk-demo/main.c: Use a slightly smaller font.
8032
8033 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
8034
8035         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
8036         This is something that only a widget writer would ever want
8037         to change.
8038
8039         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
8040         gtk_signal_emit_by_name().
8041
8042         * gtk/gtkviewport.c: Fix some warnings.
8043
8044         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
8045         allowing the requisitions of multiple widgets to be grouped
8046         together.
8047
8048         * tests/testgtk.c: Add GtkSizeGroup test
8049
8050         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
8051
8052         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
8053         warnings.
8054
8055         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
8056
8057 2001-04-28  Martin Baulig  <baulig@suse.de>
8058
8059         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
8060         to gtk_image_menu_item_set_icon() and made it work if there's already
8061         an image.
8062         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
8063         (gtk_image_menu_item_new_with_label): New function.
8064
8065 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
8066
8067         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
8068         highlighting code!!!!  The result is okay so long as you don't try
8069         to stress it.  It also highlights a bug in the TextView so it's in
8070         an unproportional font right now until it's fixed.
8071
8072         *demos/gtk-demo/*.c: Clean up code a bit to make it
8073         ugly-parser(TM) friendly. (-:
8074
8075 2001-05-17  Joe Shaw  <joe@ximian.com>
8076
8077         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
8078         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
8079         if it is only partially onscreen.
8080
8081 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
8082
8083         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
8084         not by characters.
8085
8086         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
8087         are not zero or one; that is, when graphemes of multiple characters
8088         are involved.
8089
8090         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
8091         FIXME.
8092
8093 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
8094         
8095         * gtk/gtkbbox.c:
8096         Add properties, based on patch by Lee Mallabone.
8097
8098         * gtk/gtknotebook.c:
8099         * gtk/gtktoolbar.c:
8100         Convert from GtkArg to GParam, based on patch by John Margaglione.
8101         
8102         * gtk/gtkhscale.c:
8103         * gtk/gtkvscale.c:
8104         * gtk/gtkhscrollbar.c:
8105         * gtk/gtkvscrollbar.c:
8106         * gtk/gtkrange.c:
8107         Move adjustment property to GtkRange.
8108
8109         * gtk/gtklabel.c:
8110         Setup mnemonics on property changes
8111
8112         * gtk/gtkwidget.c (gtk_widget_get_property):
8113         GdkExtensionMode is an enum, not a flag. Set it with
8114         g_value_set_enum ().
8115
8116         * tests/prop-editor.c:
8117         Better propery editor.
8118
8119         * tests/testgtk.c:
8120         Add new property test. Pass zero to the property editor to
8121         get properties from all derived types.
8122         
8123 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
8124
8125         * autogen.sh (have_automake): Require libtool-1.4,
8126         automake-1.4p1.
8127
8128         * acinclude.m4: Remove libtool macros.
8129
8130         * gdk-pixbuf/Makefile.am: Add dependencies to loade
8131         modules.
8132
8133         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
8134         for libgdk.
8135
8136         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
8137         libgdk.la for libgtk.
8138
8139         * modules/input/Makefile.am: Make modules have full
8140         dependencies.
8141
8142 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
8143
8144         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
8145         #54699 where paths weren't being checked for correctness.
8146
8147 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
8148
8149         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
8150         in any order you wan, whether or not the column is added to the
8151         tree, or the tree is realized.  Yay!
8152
8153         * gtk/gtktreeviewcolumn.c
8154         (gtk_tree_view_column_setup_sort_column_id_callback): handle
8155         sorting columns a lot saner
8156
8157         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
8158         new function to actually set wether or not a column is
8159         reorderable.
8160
8161         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
8162         if we have 'em.
8163
8164         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
8165         Fix nasty bug where we were showing the button just before
8166         realizing it.  As a result, the parent window was
8167         tree_view->window instead of tree_view->priv->header_window.
8168
8169         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
8170         to let you easily reorder a list or tree.
8171
8172 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
8173
8174         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
8175         from args to properties.
8176
8177 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
8178
8179         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
8180         from args to properties. (#51957)
8181
8182         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
8183         calls to after ->set_property call.
8184
8185 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
8186
8187         * tests/prop-editor.c: Block against redundant changes.
8188
8189         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
8190         properties.
8191
8192 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
8193
8194         * gdk/gdkpixmap.h: Remove creative formatting.
8195
8196 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
8197
8198         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
8199         property API. (#51669)
8200
8201         * gtk/gtkscale.c: Patch from John Margaglione converting to
8202         property API. (#51891)
8203
8204         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
8205         to property API. (#50985)
8206
8207 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
8208
8209         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
8210         buffering state across expose event, so we still call end_paint().
8211
8212 2001-05-11  Alexander Larsson  <alexl@redhat.com>
8213
8214         * gtk/gtkhsv.c (paint_triangle):
8215         Expose the ring in the triangle at the correct place when
8216         exposing just a part of the triangle.
8217
8218         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
8219         Return FALSE, or window focusing will not work.
8220
8221 2001-05-11  Havoc Pennington  <hp@pobox.com>
8222
8223         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
8224         #54144
8225
8226         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
8227         bug #54330
8228
8229 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
8230
8231         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
8232         propagate exposes to NULL child.
8233
8234         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
8235         against not having one of the scrollbars.
8236
8237         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
8238         we don't keep a mnemonic window if we have no mnemonic installed.
8239
8240 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
8241
8242         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
8243         it has the _important_ side effect of initializing a class.
8244
8245 2001-05-10  Alexander Larsson  <alexl@redhat.com>
8246
8247         * gdk/linux-fb/gdkprivate-fb.h:
8248         Make sure you can compile out the implementation/wrapper assert
8249         macros.
8250
8251         * gdk/linux-fb/gdkdrawable-fb2.c:
8252         Check implementation/wrappers, initialize type for pixmap dummys.
8253
8254         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
8255         Hide the cursor if reading from the screen.
8256
8257         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8258         Fix sign bug in tiling code.
8259
8260         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
8261         Handle background pixmaps.
8262
8263 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
8264
8265         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
8266         function to let user control where columns are dragged.
8267
8268         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
8269         Escape is pressed.
8270
8271 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
8272
8273         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
8274         "columns_changed" signal.
8275         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
8276         motion code to draw arrows to the side if indicator is outside the
8277         widget.
8278         (gtk_tree_view_map_expanded_rows): Implement.
8279
8280 2001-05-07  Alexander Larsson  <alexl@redhat.com>
8281
8282         * demos/testpixbuf-save.c: 
8283         * demos/testpixbuf-drawable.c:
8284         Include gdkfb.h on linux-fb.
8285
8286 2001-05-07  Alexander Larsson  <alexl@redhat.com>
8287
8288         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
8289         New function for getting toplevel window at position.
8290         (gdk_drag_find_window): Use get_toplevel_window () instead
8291         of gdk_window_get_pointer(). (gdk_drag_status): Use
8292         correct context for getting window.
8293
8294         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
8295         g_strdup the atom name.
8296
8297         * gdk/linux-fb/gdkwindow-fb.c:
8298         Costmetic fix.
8299
8300         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
8301         Add code for changing cursor on linux-fb backend (same as
8302         win32).
8303
8304 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
8305
8306         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
8307         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
8308         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
8309         report was not for the development branch of GTK+, but it applies
8310         anyways).
8311
8312 2001-05-04  Havoc Pennington  <hp@redhat.com>
8313
8314         * configure.in: fix some shell typos
8315
8316         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
8317
8318         * gtk/gtkimage.c: handle animations
8319
8320         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
8321         border_width * 2, not just border_width
8322
8323         * gtk/gtkscale.c: add "format_value" signal to allow people
8324         to override the way values are drawn.
8325         (gtk_scale_get_value_size): fix width/height mistake,
8326         and compute size from actual displayed text, not 
8327         from made-up text.
8328
8329         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
8330         signal registration
8331
8332         * tests/testtext.c: Add "Remove all tags" menu item for testing
8333
8334         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
8335
8336         * demos/gtk-demo/main.c (main): add hack so we can find modules
8337         without installing gtk
8338
8339         * demos/gtk-demo/textview.c (insert_text): demo font scaling
8340
8341         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
8342         factor)
8343         (gtk_cell_renderer_text_set_property): remove some bogus
8344         g_object_notify
8345
8346         * gtk/gtktexttag.c: add "scale" property which is a font scaling
8347         factor
8348
8349         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
8350         to layout
8351
8352         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
8353         gtk_text_iter_is_first
8354
8355 2001-01-06  Hans Breuer  <hans@breuer.org>
8356
8357         * gdk/gdk.def : updated exports
8358
8359         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
8360         gdk won't compile anymore
8361  
8362         * gdk/win32/gdkevents-win32.c : initialize ret_val when
8363         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
8364         Improved gdk_flush () to not only do pending drawing operations
8365         but also process all currently pending events. This should make
8366         the behaviour more similar to the X11 version.  
8367
8368         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
8369         option needs to be set even if there is no GDK_GC_BACKGROUND.
8370         (gdk_win32_hdc_get) : use predraw_set_background () independent
8371         of value_mask. This allows to draw dashed lines leaving the original
8372         background intact.
8373
8374         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
8375         after processing, because we can't reuse it as the X11 version does.
8376
8377         * gtk/gtk.def : updated exports
8378
8379         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
8380         would like to get rid of this file again, and use straight
8381         makefile.msc again, as the other Gtk+ subdirs do)
8382
8383         * test/makefile.msc (new file) : build the test apps here
8384
8385 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
8386
8387         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
8388         strike-through setting
8389         (gdk_draw_layout_line_with_colors): Render strike-through
8390
8391 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
8392
8393         * Release 1.3.5
8394
8395         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
8396
8397         * NEWS: Updated
8398
8399         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
8400         Makefile breakage.
8401
8402 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
8403
8404         * demos/gtk-demo/images.c (progressive_timeout): Fix
8405         typo in filename.
8406
8407         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
8408         out FIXME warning; just too annoying.
8409
8410 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
8411
8412         * gdk/linux-fb/gdkcolor-fb.c:
8413         Better error messages.
8414
8415         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
8416         Initialize abs_x and abs_y.
8417         
8418         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8419         Correct handling of stipple offset.
8420
8421         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
8422         Treat directcolor framebuffers as truecolor.
8423         
8424 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
8425
8426         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
8427         dependency on Atk for accessibility support.
8428
8429         * configure.in **/Makefile.am: Major reworking of substituted
8430         variables for CFLAGS/LIBS to make a lot more sane and 
8431         keep the the compile/link lines a bit shorter.
8432
8433         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
8434
8435 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
8436
8437         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
8438         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
8439         use _gtk_boolean_handled_accumulator.
8440
8441 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
8442
8443         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
8444         to fix things so clicking inside selection leaves cursor
8445         at point where clicked. (#50324)
8446
8447         * gtk/gtksettings.c (gtk_settings_class_init): Restore
8448         sane value for default double click time.
8449
8450         * tests/testtext.c (test_init): Really path to input modules.
8451
8452 2001-05-03  Sven Neumann  <sven@convergence.de>
8453
8454         * demos/testpixbuf-save.c: include target-specific headers as
8455         done in testpixbuf-drawable.c
8456
8457 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
8458
8459         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
8460         new_text_length appropriately when we run into the 
8461         size limit for the entry. (#53445, reported by Jeff Franks)
8462
8463         * tests/testgtk.c (create_entry): Remove most of the
8464         property toggle buttons. Replace with a "Props" button
8465         that brings up a property editor.
8466
8467         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
8468         Split the property editor code out for reuse, improve.
8469
8470 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
8471
8472         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
8473         trap errors around calls to XSetInputFocus since we have
8474         no way of knowing reliably whether we are viewable or
8475         not. (#53947)
8476
8477 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
8478
8479         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
8480         fix bug in dropping columns.  Moving columns now basically works
8481         modula some fine tuning.
8482
8483 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
8484
8485         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
8486         autoscroll support.  It mostly works, but could use some fine
8487         tuning.
8488         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
8489         Actually move the column.
8490
8491 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
8492
8493         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
8494           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
8495           New default theme! A slighly improved version of the 2.0 Raleigh
8496           theme, with Windows-esque focus/drawing default. 
8497           (GtkWidget::interior_focus defaults to TRUE.)
8498
8499         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
8500
8501 2001-04-30  Havoc Pennington  <hp@pobox.com>
8502
8503         * tests/testtext.c (line_numbers_expose): fix to work with
8504         gtk_paint_layout change
8505
8506 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
8507
8508         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
8509           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
8510           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
8511           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
8512
8513         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
8514           with GtkWidget::interior_focus = TRUE better.
8515
8516         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
8517         ::default_outside_border for more flexibility.
8518
8519         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
8520         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
8521         change that had to be made with g_object_get.
8522
8523 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
8524
8525         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
8526         (gtk_tree_view_move_column_after): Clean up interface. 
8527
8528 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
8529
8530         * gtk/gtkpacker.h:
8531         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
8532          to gtkenum.h.
8533
8534         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
8535         handled in switch).
8536
8537         * gtk/Makefile.am:
8538         (gtk.defs): generate enum portions with  glib-mkenums.
8539         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
8540         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
8541         
8542         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
8543         addition.
8544
8545         * docs/Changes-2.0.txt: keep a note on signal handlers now
8546         not getting emitted during the emission they were connected within.
8547
8548 2001-04-28  Havoc Pennington  <hp@pobox.com>
8549
8550         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
8551
8552 2001-04-24  Havoc Pennington  <hp@redhat.com>
8553
8554         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
8555         (gtk_text_layout_move_iter_to_next_line): fix these two for
8556         invisible text, lots of other stuff still hosed.
8557
8558         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
8559         new function, replaces the get/set palette stuff. This function 
8560         is intended for use by libgnomeui which should set the hook to a
8561         thing which sets the palette in GConf, and we need the
8562         GConf-to-xsettings proxy which will result in the change being
8563         propagated back to the GTK app.
8564
8565         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
8566         about unusable signals that it may be because the signal has 
8567         parameters.
8568
8569         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
8570         style, otherwise gtkrc.c won't know to create a new GtkStyle for
8571         it.
8572         (gtk_widget_modify_color_component): call
8573         gtk_widget_modify_style() so the rc style will get copied.
8574         (gtk_widget_modify_font): ditto
8575
8576         * gtk/gtkrc.c: make a couple variables static
8577
8578         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
8579         help button by default, since it does nothing
8580
8581         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
8582         around with UI
8583
8584         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
8585         so we can have tooltips
8586
8587         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
8588         can have tooltips
8589
8590         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
8591         GDK_ENABLE_BROKEN, because its memory behavior is completely
8592         hosed.
8593
8594         * gtk/gtknotebook.c: remove key press handler, replace with
8595         binding set, add numeric keypad support
8596
8597         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
8598
8599         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
8600
8601         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
8602         addition to plain Delete
8603
8604         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
8605         GDK_KP_Enter in addition to GDK_Return
8606
8607         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
8608         activate on entry instead of key press
8609         (gtk_font_selection_on_clist_key_press): get
8610         rid of this signal handler, not needed with new font sel.
8611
8612         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
8613         no-longer-needed emit_stop_by_name(), just return TRUE
8614
8615         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
8616         cruft, this widget is no longer focusable.
8617
8618         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
8619         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
8620         move_slider action signal, add binding set for vscale/hscale, in
8621         the process support numeric keypad
8622
8623         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
8624         make GDK_Return and GDK_KP_Enter activate the entry via 
8625         binding set, instead of hardcoded.
8626
8627 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
8628
8629         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
8630         code.  Some documentation added.
8631
8632 2001-04-27  Havoc Pennington  <hp@redhat.com>
8633
8634         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
8635
8636         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
8637
8638         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
8639         line/para separators
8640         (gtk_entry_create_layout): set single paragraph mode on the layout
8641
8642         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
8643         spacing between the image and label; instead, inside a button box 
8644         the button will get extra space that will go there, but if people 
8645         configure button box for 0 chubbiness, then there's no spacing.
8646
8647         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
8648         and min/max size style properties, so people can tune their
8649         chubbiness.
8650
8651         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
8652         functions
8653
8654         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
8655         space_style, and button_relief into style properties, remove
8656         functions for setting them
8657         
8658         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
8659         it back down
8660
8661         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
8662         types from gtk_widget_style_get
8663
8664         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
8665         with a style property.
8666
8667         * gdk/x11/gdkevents-x11.c: namespace the settings
8668
8669         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
8670
8671         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
8672         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
8673         be used. Also, translate doc strings for settings. Also, namespace
8674         the double-click-time property. Also, remove bell properties crap.
8675
8676 2001-04-27  Sven Neumann  <sven@gimp.org>
8677
8678         * Makefile.am: before creating links, check if pkg-config files
8679         exist for the default target. Otherwise link to the pkg-config files
8680         that got installed with this build.
8681
8682 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
8683
8684         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
8685         dragging code.  Revealed some (potential) GdkWindow bugs.
8686
8687         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
8688         _gdk_window_init_position to the end of reparent to fix the case
8689         of reparenting when new_x != old_x and new_y != old_y.
8690
8691 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
8692
8693         * gtk/gtkentry.c (strstr_len): Fix optimization that
8694         was correct for the use here, but completely incorrect
8695         in general.
8696
8697 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
8698
8699         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
8700         until patch adding gtk_window_set_size() is recommitted. 
8701
8702         * **Makefile.am configure.in gdk/x11/gdkim-11.c
8703           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
8704           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
8705           (#10784)
8706
8707 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
8708
8709         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
8710         window == NULL in a number of cases.
8711
8712         * tests/testdnd.c: Set module path for gdk-pixbuf.
8713
8714 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
8715
8716         * gtk/Makefile.am xembed.h: File containing #defines
8717         for XEMBED protocol.
8718
8719         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
8720
8721         - Change protocol from old plug/socket specific protocol
8722           to XEMBED draft
8723         - Various fixes to work with GTK+-2.0
8724
8725         Still quite a bit of work to do here to handle initiation
8726         from the socket side (as specified by XEMBED), to handle
8727         the more advanced features of XEMBED, and to figure out
8728         a good way to handle same-app embedding with less overhead
8729         than using full XEMBED.
8730
8731 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
8732
8733         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
8734         track of whether the toplevel has the focus; only send
8735         focus-in events to the focus widget when the window
8736         actually has the focus.
8737
8738 2001-04-25  Havoc Pennington  <hp@pobox.com>
8739
8740         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
8741         were still in the header
8742
8743 2001-04-24  Alexander Larsson  <alexl@redhat.com>
8744
8745         * gtk/gtkclist.[ch]:
8746         * gtk/gtkctree.c:
8747         When there is a row highlighted for D'n'D it must alse
8748         be painted hightlighted on exposes. Otherwise exposes from
8749         the icon being dragged will mess up the hightlight.
8750
8751         * gtk/gtkfontsel.c:
8752         Don't recenter selected font when exposing the font family
8753         clist. This means you can now actually scroll the font family
8754         list.
8755
8756         * gtk/gtknotebook.c:
8757         Fix focus movement on scrolling tabs that are placed on the left
8758         and right.
8759
8760 2001-04-21  Havoc Pennington  <hp@pobox.com>
8761
8762         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
8763         empty/invisible lines.
8764
8765         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
8766         (gtk_text_iter_set_visible_line_index): new functions to set
8767         indexes excluding invisible text
8768
8769         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
8770         index
8771
8772         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
8773         (gtk_text_iter_get_visible_line_offset): new functions to 
8774         get indexes excluding invisible text
8775
8776         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
8777         bunch of extra padding that served no purpose
8778
8779         * gtk/gtkdialog.c: Make all the spacings configurable via style
8780         properties, for chubbiness configuration in themes
8781
8782         * tests/testtext.c: fix path to the immodules.
8783         
8784 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
8785
8786         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
8787         got munched by #endif.
8788
8789         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
8790
8791         * gtk/gtktreeview.c: Refactored code to clean up a number of
8792         events.
8793
8794         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
8795         values to make consistent with other functions.  Spotted by Jeff
8796         Franks <jcf@tpg.com.au>.
8797
8798         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
8799         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
8800
8801 2001-04-23  Sven Neumann  <sven@gimp.org>
8802
8803         * gtk/Makefile.am
8804         * gtk/gtkplug.c
8805         * gtk/gtksocket.c: on request of Owen, reverted my last change 
8806         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
8807
8808 2001-04-23  Sven Neumann  <sven@gimp.org>
8809
8810         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
8811         compile for non-X11 targets again
8812
8813 2001-04-20  Alexander Larsson  <alexl@redhat.com>
8814
8815         * gtk/gtkcolorsel.[ch]:
8816         API Change. Take GdkColor arguments instead of gdouble *.
8817         Leave the old gtk_color_selection_set_color for compatibility,
8818         but marked deprecated.
8819         Do correct rounding when converting RGB <-> HSV.
8820         
8821         * gtk/gtkcolorseldialog.c:
8822         * tests/testgtk.c:
8823         Use new GtkColorSelection API.
8824
8825         * gtk/gtkhsv.c:
8826         Fix problem selecting colors in triangle when Hue is 330.
8827         Fix some black dots around the HSB triangle.
8828         
8829         * gtk/gtkfilesel.c:
8830         return FALSE from the focus_in_event handler to fix focus problems.
8831
8832 2001-04-18  Havoc Pennington  <hp@redhat.com>
8833
8834         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
8835         set, so keybindings are configurable    
8836         (gtk_window_activate_default): Change to activate the focus widget
8837         instead if there's a focus widget, to be consistent with the
8838         behavior that previously existed in key_press_event
8839
8840 2001-04-18  Havoc Pennington  <hp@redhat.com>
8841
8842         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
8843
8844 2001-04-18  Havoc Pennington  <hp@redhat.com>
8845
8846         Close bug #50615:
8847         
8848         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
8849         the layout
8850
8851         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
8852
8853         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
8854
8855         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
8856         
8857         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
8858         to blue for base, in addition to bg
8859         
8860 2001-04-18  Havoc Pennington  <hp@redhat.com>
8861
8862         * tests/testgtk.c (create_image): allow shrinking the image window
8863         to test that we clip to allocation.
8864
8865         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
8866         #9845
8867
8868         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
8869
8870 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
8871
8872         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
8873         mode on shm segments to 0600. We'll see who complains.
8874
8875         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
8876         _gdk_windowing_window_destroy() AFTER recursing through
8877         children.
8878
8879         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
8880         testsocket_child on X.
8881
8882         * tests/testsocket[_child].c: Fix uses of
8883         gtk_window_get_default_accel_group().
8884
8885         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
8886
8887         * gdk/gdkimage.c: (gdk_image_get):
8888         Deal with the possibility that XGetImage() might return NULL.
8889         Allocate the GdkImagePrivate structure only after XGetImage()
8890         succeeds in order not to dereference a NULL ximage pointer.  This
8891         prevents a core dump when XGetImage() fails - which is unlikely,
8892         but can happen due to race conditions accessing the geometries of
8893         drawables.  An x error will still be triggered, but the gdk image
8894         wrapper at least wont seg fault.
8895         
8896 2001-04-18  Havoc Pennington  <hp@redhat.com>
8897
8898         * gtk/gtkimage.c: fix to properly queue resizes when the image is
8899         set
8900
8901         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
8902         if the insertion point isn't editable
8903
8904         * demos/gtk-demo/images.c: Added a GtkImage demo
8905
8906         * demos/gtk-demo/drawingarea.c: drawing area demo
8907         
8908         * demos/gtk-demo/menus.c (create_menu): cleanups
8909
8910 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
8911
8912         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
8913           gdk/x11/gdkevents-x11.c: Introduce an extra child
8914         of toplevel windows that serves to hold the focus to
8915         avoid events being delivered to embedded windows.
8916
8917         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
8918         some extra variables to clean up code and reduce the
8919         number of casts.
8920
8921         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
8922         guint for 1 bit bit fields, not gboolean.
8923
8924 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
8925
8926         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
8927         not TRUE. (Fixes #52925)
8928
8929 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
8930
8931         * Released 1.3.4
8932
8933         * NEWS: Updated
8934
8935         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
8936         use GTK_TYPE_ENUM.
8937
8938 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
8939
8940         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
8941
8942         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
8943         names to compatibility #defines so docs work.
8944
8945         * gtk/gtkenums.h: Remove GtkMenuFactoryType
8946
8947         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
8948
8949         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
8950
8951         * tests/testgtkrc: No magenta cursors, please.
8952
8953         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
8954
8955         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
8956         
8957 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
8958
8959         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
8960         grabs, since they are no longer necessary.
8961
8962         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
8963         by signal_connect() and call gtk_button_pressed() rather
8964         than signal_connect_after().
8965
8966         * tests/testgtk.c: Restore radio menu items to combos 
8967         since they'll look OK with Raleigh, and it is easier
8968         than finishing the process of removing them that was
8969         started earlier.
8970
8971 2001-04-16  Hans Breuer  <hans@breuer.org>
8972
8973         * gdk/gdk.def :
8974         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
8975
8976         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
8977         we are interested in the functions return value not the function address
8978         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
8979
8980         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
8981
8982 2001-04-14  Hans Breuer  <hans@breuer.org>
8983
8984         * gdk/gdk.def :
8985         * gdk/makefile.msc : updated
8986
8987         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
8988         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
8989         (the testgtk::text backgound pixmap is drawn again)
8990         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
8991         Win32 Pango change
8992         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
8993
8994         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
8995         Not sure if the returned settings have the right unit, because I couldn't
8996         find any docs for the X version ...
8997
8998         * gtk/gtk.def :
8999         * gtk/makefile.msc.in : updated
9000
9001 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
9002
9003         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
9004         wording problems. (Compared to version from Johannes Stezenbach to
9005         check correctness.)
9006
9007 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
9008
9009         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
9010         this to compile.
9011
9012 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
9013
9014         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
9015         not pixbufpos.
9016
9017         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
9018
9019         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
9020         are unsigned insts, therefore use g_value_set_uint.
9021         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
9022
9023 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
9024
9025         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
9026
9027         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
9028         GTK_TYPE_STRING.
9029
9030         * gtk/gtktreeview.c: New functions to allow initial column
9031         dragging work.
9032
9033         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
9034
9035         * tests/testtreefocus.c: give dave some love.
9036
9037         * tests/testtreesort.c: Modify test to check really long samples.
9038
9039 2001-04-11  Alexander Larsson  <alexl@redhat.com>
9040
9041         * gtk-2.0.m4: Pass pkg-config options
9042         before the other args so it works even if
9043         POSIXLY_CORRECT is set.
9044
9045 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
9046
9047         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
9048         0, interface 0).
9049
9050 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
9051
9052         * gtk/gtkcalendar.c (gtk_calendar_button_press):
9053         check for action_func != NULL
9054
9055 2001-04-04  Sven Neumann  <sven@gimp.org>
9056
9057         * tests/testgtk.c (test_init): corrected path to gtk.immodules
9058
9059 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
9060
9061         * Released Gtk+-1.3.3.
9062
9063 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
9064
9065         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
9066
9067 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
9068
9069         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
9070         files to/from source dir. (if we don't stay in builddir, we
9071         can't reach make-inline-pixbuf.
9072
9073         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
9074         deps.
9075
9076         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
9077         ages 0).
9078
9079 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
9080
9081         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
9082         moved to the GtkTreeSortable interface.
9083
9084         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
9085         Make more efficient (fixes #50262).
9086
9087 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
9088
9089         * NEWS: Updated.
9090
9091         * configure.in: Remove support for uninstalled glib.
9092
9093         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
9094         so as not to stop emission.
9095
9096         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
9097         is no longer supported.
9098
9099         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
9100         into tests, change build order to build modules before
9101         gtk/.
9102
9103         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
9104         to here.
9105
9106 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
9107
9108         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
9109         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
9110         GPatternSpec. this is actually unlikely to cause breakage in
9111         third-party apps since except for gle, pretty much ever caller
9112         passes NULL here.
9113
9114         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
9115
9116         * *.c: use g_pattern_*() API.
9117
9118         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
9119
9120         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
9121         directions aren't passed in.
9122
9123         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
9124         functionality to be usable from gtkstyle.c as well, give precedence
9125         for conversion to user-supplied parsers.
9126         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
9127
9128         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
9129         _gtk_settings_parse_convert() for rcporperty value conversion.
9130
9131 2001-04-03  Alexander Larsson  <alexl@redhat.com>
9132
9133         * gdk/linux-fb/gdkevents-fb.c:
9134         Add empty gdk_setting_get().
9135
9136 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
9137
9138         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
9139         variable names.
9140         
9141         * gtk/makeenums.pl: touch this so enum files get remade.
9142
9143 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
9144
9145         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
9146         work again when not sorted.
9147
9148         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
9149         and "expand_row" signal, closing bug 52578.
9150
9151         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
9152         support.
9153
9154         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
9155         support.
9156
9157 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
9158
9159         * gdk/gdkevents.h: Add GdkEventSetting event for notification
9160         of changes to system settings, gdk_setting_get() to retrieve
9161         a single system setting.
9162
9163         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
9164         to the draft XSETTINGS mechanism.
9165
9166         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
9167         XSETTINGS.
9168
9169         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
9170         of GDK settings changes to the GtkSettings object.
9171
9172         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
9173         double-click-timeout property to GDK.
9174
9175         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
9176         Define GDK boxed types here.
9177
9178         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
9179         gdk/gdkenumtypes.[ch] for enum definitions.
9180
9181         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
9182         * gtk/gtk-boxed.defs: Comment out GDK types
9183         * gtk/gtktypeutils.h: Remove GDK types
9184         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
9185
9186 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
9187
9188         * Applied patch from Ron Steinke to add signal accumulators
9189         so that signals with the convention 'TRUE return means
9190         handled' stop emission on a TRUE return.
9191
9192         * gtk/gtkmain.[ch]: Add private accumulator 
9193         _gtk_boolean_handled_accumulator, used throughout GTK+.
9194         
9195         * gtk/gtkspinbutton.c: Add accumulator for ::output.
9196
9197         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
9198         
9199         * gtk/gtkwidget.c: Add accumulators for event signals,
9200         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
9201         for ::mnemonic-activate.
9202
9203         * gtk/gtkwindow.c: Add accumulator for ::frame_event
9204
9205 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
9206
9207         * gtk/gtkwidget.c: Add missing include.
9208
9209 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
9210
9211         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
9212         marshaller.
9213
9214         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
9215         "changed" signal to "range_changed".
9216
9217         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
9218         removing a tree from one model would remove all trees from that
9219         model.
9220         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
9221         changed signal instead.
9222
9223 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
9224
9225         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
9226         chaining up to parent impl, since we have a INPUT_ONLY
9227         window.
9228
9229         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
9230         foreground color for the cursor.
9231
9232 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
9233
9234         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
9235         param spec when caching property values, since we unref it
9236         later when we free the style.
9237
9238         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
9239         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
9240
9241 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
9242
9243         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
9244         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
9245         stupidity.
9246
9247 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
9248
9249         [ First pass at adding style properties. Still needs some definite
9250         fine-tuning. ]
9251
9252         * gtk/gtkbutton.c: Add ::default_spacing style property.
9253          
9254         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
9255         ::indicator_spacing style properties.
9256
9257         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
9258         style properties.
9259
9260         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
9261         rather than a normal property.
9262
9263         * gtk/gtkwidget.c: Add an ::interior_focus style property to
9264         draw focus inside buttons, in the Windows/Java Metal/etc. style.
9265
9266         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
9267         Honor ::interior_focus.
9268         
9269         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
9270         TRUE.
9271
9272         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
9273         Add ::slider_width, ::trough_border, ::stepper_size,
9274         ::stepper_spacing style properties.
9275
9276         * gtk/gtkscale.[ch] Add ::slider-length style property.
9277
9278 2001-04-02 Alexander Larsson   <alexl@redhat.com>
9279
9280         * gdk/linux-fb/gdkwindow-fb.c:
9281         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
9282         warnings that were spewed on startup.
9283
9284         * gtk/gtkwindow-decorate.c:
9285         gtk_window_reposition -> _gtk_window_reposition
9286
9287 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
9288
9289         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9290         Add boxed type for GtkRequistion. Use it for ::size-request.
9291
9292         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9293         Add a new GtkBorder structure useful for geometry properties
9294         for widgets. Add corresponding GTK_TYPE_BORDER.
9295         
9296         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
9297         Support automatic parser selection like
9298         gtk_settings_install_property_parser().
9299
9300         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
9301         functionality for use by gtk_widget_class_install_style_property.
9302         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
9303
9304 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
9305
9306         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
9307         g_param_spec_unichar(). 
9308
9309 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
9310
9311         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
9312         _NET window managers.
9313
9314         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
9315
9316 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
9317
9318         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
9319         bad needs to be nuked, not just deprecated.
9320
9321         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
9322         gtk_widget_popup().
9323
9324         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
9325         
9326         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
9327         widget.
9328         
9329         * docs/Changes-2.0.txt: updates.
9330         
9331 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
9332
9333         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
9334         for (i = 0; i < 100; i ++)
9335           g_print ("I will confirm it compile before committing\n");
9336
9337 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
9338
9339         * gtk/gtktreestore.c: Initial work on implementing the
9340         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
9341
9342 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
9343
9344         * gtk/gtkwidget.c: fixed a bunch of notifications, added
9345         reference counts around emissions where the widget is used afterwards.
9346         added freeze/thaws around multiple properties being notified.
9347         (_gtk_widget_get_aux_info): cleanups.
9348         
9349         * gtk/gtksettings.c (gtk_settings_install_property): provide
9350         default parsing functions for gdkcolor, enums and flags.
9351
9352         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
9353         applied by owen.
9354         backed out gtk_window_get_location(), gtk_window_set_location(),
9355         gtk_window_get_size() and gtk_window_set_size(), these
9356         have to be sorted out wrg x/y/width/height/default_with/default_height
9357         properties.
9358         kept a flag in GtkWindowGeometryInfo to handle user
9359         resetting default sizes.
9360         cleaned up ZVT comments.
9361         bunch of assorted bug fixes, notification fixes.
9362         (_gtk_window_reposition): make this a really internal function.
9363         
9364         * gtk/testgtk.c: fixups.
9365         
9366 2001-03-31  Hans Breuer  <hans@breuer.org>
9367
9368         * config.h.win32.in : disable USE_MMX for msvc build cause
9369         the assembler doesn't fit and is out of my scope. Disable
9370         USE_GMODULE for msvc build as wel. The right way to share
9371         binaries on win32 would be to use libtiff.dll etc. To reduce
9372         installation hassles IMO it's better to include all fileformats
9373         builtin to gdk-pixbuf
9374
9375         * gdk-pixbuf/makefile.msc : new file
9376
9377         * gdk/gdk.def : updated
9378
9379         * gdk/win32/gdkevents-win32.c : don't erase the background if
9380         .no_bg is set. It improves the scrolling (e.g. of testgtk main
9381         buttons
9382         * gdk/win32/gdkgeometry-win32.c : added comment about the above
9383
9384         * gdk/win32/gdkwindow-win32.c : added three new functions like
9385         the X version. Only one is implemented, because the other two
9386         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
9387         be default behaviour on win32 anyway ...
9388
9389         * gtk/gtk.def : updated
9390
9391         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
9392         from where it was built and add an additional rule to automagically
9393         build gtkmarshal.[hc]
9394
9395         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
9396         before array access for the current entry isn't finished
9397
9398         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
9399         use g_return_val_if_fail
9400
9401         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
9402         for the static array, but let the compiler calculate it. It
9403         makes me wonder if gcc isn't capable to catch bugs like this ...
9404
9405 2001-03-31  James Henstridge  <james@daa.com.au>
9406
9407         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
9408         constant "-1" in the aux info structure.
9409
9410 2001-03-30  Alexander Larsson  <alexl@redhat.com>
9411
9412         * gtk/gtkbutton.c (gtk_button_get_property):
9413         * gtk/gtklabel.c:
9414         Remove leaks.
9415         
9416         * gtk/gtkcontainer.c:
9417         * gtk/gtkhscale.c:
9418         * gtk/gtkhscrollbar.c:
9419         * gtk/gtklayout.c:
9420         * gtk/gtkmisc.c:
9421         * gtk/gtkprogress.c:
9422         * gtk/gtkprogressbar.c:
9423         * gtk/gtkrange.c:
9424         * gtk/gtktable.c:
9425         * gtk/gtkviewport.c:
9426         * gtk/gtkvscale.c:
9427         * gtk/gtkvscrollbar.c:
9428         * gtk/gtkwidget.c:
9429         Property patches, based on patches from John Margaglione and Lee Mallabone.
9430
9431 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
9432
9433         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
9434         adjustment. Cleaned redundant preconditions (spin != NULL). Added
9435         inline API function docs.
9436         (gtk_spin_button_new_with_range): New convenience constructor.
9437         (gtk_spin_button_set_increments): New adjustment helper.
9438         (gtk_spin_button_set_range): New adjustment helper.
9439
9440         * gtk/testgtk.c : added test of the new convenince constructor and
9441         value_changed signals.
9442
9443 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
9444
9445         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
9446         listen to the reorder signal.
9447
9448 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
9449
9450         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
9451         to get the aux info structure fo the widget.
9452
9453         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
9454         above function.
9455
9456         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
9457
9458         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
9459         to get the size of the window manager frame, basically the same
9460         code that gdk_window_get_root_origin() had
9461         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
9462
9463         * gtk/gtkwindow.c (gtk_window_set_default_size): use
9464         gdk_window_resize() if the window is realized and resizeable
9465
9466         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
9467         typo so that setting gravity works
9468
9469         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
9470         allocation if auto_shrink is on, even if the default size
9471         has not changed.
9472
9473         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
9474         g_return_if_fail
9475
9476 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
9477
9478         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
9479         reordering/sorting work.  Now pretty much works.
9480
9481         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
9482         reorder mostly work.  Still need to get the parity correct.
9483
9484         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
9485         signal, so I can listen for the sort_column_changed signal so I
9486         can change my "sort_indicator" property.  Cool.
9487
9488 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
9489
9490         [ Patch from Havoc Pennington, hp@redhat.com ]
9491
9492         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
9493         Add functions gdk_window_begin_resize_drag/begin_move_drag
9494         to start resizing or moving a toplevel window. This
9495         is done either using the _NET_WM_MOVERESIZE protocol,
9496         or, if that isn't present, by emulation.
9497
9498         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
9499         to export the above to GTK+-land.
9500
9501         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
9502         
9503         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
9504         Move this function into gdkwindow, since we need it
9505         when implementing fallback resizing.
9506
9507         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
9508         Fix typo when setting gravity.
9509
9510         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
9511         Add an optional (but on by default) resize grip for resizing 
9512         the parent window.
9513
9514 01-03-29  Alexander Larsson  <alexl@redhat.com>
9515
9516         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
9517         Don't return TRUE from the event handler, that blocks all
9518         event signals on the tooltip widget. Now you can press buttons
9519         in toolbars again.
9520
9521 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
9522
9523         * gtk/testtext.c (create_buffer): Add missing NULL on
9524         valist.
9525
9526         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
9527         c-n-p problem with INCONSISTENT property.
9528
9529         [ Patch from Havoc Pennington  <hp@redhat.com> ]
9530
9531         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
9532         hook.
9533
9534         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
9535         signal as a hook for extending the default popup menu
9536
9537         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
9538         use radio menu items for the input method menuitems
9539
9540         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
9541         inserted unicode from Ctrl-Shift-hex input method
9542
9543         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
9544         validatation here, already done at GtkTextBuffer level.
9545
9546         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
9547         popup_menu run action signal and Shift+F10 and Menu keybindings.
9548
9549         * gtk/gtkentry.c: implement a default handler for popup_menu
9550
9551         * gtk/gtktextview.c: implement a default handler for popup_menu
9552
9553         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
9554         from a key event
9555         
9556         * gtk/gtklabel.c: remove "trailer" cruft
9557
9558 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
9559
9560         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
9561         handle reordering of trees.  Seems to mostly work w/ the exception
9562         of the parity flag.
9563
9564         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
9565         signal.
9566
9567 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
9568
9569         * gtk/gtkwidget.h: c++ fixes.
9570
9571 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
9572
9573         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
9574         memory.
9575
9576 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
9577
9578         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
9579         Nils Barth fixing event return values. (#51041)
9580
9581         * gtk/gtkwidget.c: Fix some return values for default
9582         functions.
9583
9584         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
9585         return values for trough_keys functions.
9586
9587         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
9588         value for add_accelerator (shoudl have been a void
9589         return.)
9590
9591         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
9592         Fix return type of EVENT.
9593
9594         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
9595         signal return a boolean.
9596
9597 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
9598
9599         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
9600         reordered signal.
9601
9602         * tests/testtreesort.c (main): fix spelling.
9603
9604 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
9605
9606         * gtk/gtkliststore.c: More work on implementing sortable
9607         interface.
9608
9609 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
9610
9611         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
9612         reference the widgets in the resulting list. (#11821)
9613         This makes this consistent with gtk_container_children.
9614
9615         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
9616         uses of gtk_window_list_toplevels.
9617
9618 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
9619
9620         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
9621         a virtual function to set whether the IM context should use 
9622         the preedit string. (#51922)
9623         
9624 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
9625
9626         * gdk/gdkpango.h: Remove stale FIXME comment.
9627
9628 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
9629
9630         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
9631         Fixed bug that returned NULL if a filename was selected.
9632
9633 2001-03-24  Havoc Pennington  <hp@pobox.com>
9634
9635         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
9636         to contain the word "theme"
9637
9638 2001-03-24  Havoc Pennington  <hp@pobox.com>
9639
9640         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
9641         slower but finer-grained
9642         (gtk_hsv_focus): get initial focus on the ring or triangle 
9643         according to tab direction
9644
9645         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
9646
9647 2001-03-23  Havoc Pennington  <hp@pobox.com>
9648
9649         * gtk/gtkhsv.c: make this somewhat key-navigable
9650
9651         * gtk/gtkfontsel.c: mnemonics
9652
9653         * gtk/gtkgamma.c: mnemonics
9654
9655         * gtk/gtkcolorsel.c: add mnemonics to labels
9656
9657 2001-03-22  Havoc Pennington  <hp@pobox.com>
9658
9659         Applied big patch from Seth Lytle to fix event handler return
9660         values, slightly modified.
9661
9662         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
9663         handled.
9664         (gtk_calendar_key_press): return TRUE for GDK_space triggers
9665         select_day
9666
9667         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
9668         (gtk_clist_button_release): return TRUE if handled
9669
9670         * gtk/gtkcolorsel.c (mouse_release):
9671         (palette_activate): 
9672         (palette_press): 
9673         (palette_new): 
9674         (mouse_press): 
9675         (get_screen_color): 
9676         fixed return type (void to gboolean), return TRUE,
9677         added GTK_SIGNAL_FUNC cast
9678
9679         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
9680         (void to gboolean), and return TRUE
9681         (gtk_combo_button_release): changed return value to TRUE after
9682         gtk_grab_add on combo->popwin
9683
9684         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
9685         collapse or expand
9686
9687         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
9688         button/motion
9689
9690         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
9691         press/release and motion that trigger act
9692
9693         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
9694
9695         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
9696         for GDK_Return
9697         
9698         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
9699         (gtk_list_button_release): return TRUE if selection
9700
9701         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
9702         press
9703
9704         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
9705         (gtk_menu_shell_button_release): chain parent_menu_shell retval
9706
9707         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
9708         nothing triggered
9709         (gtk_notebook_button_release): return TRUE if we do anything
9710
9711         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
9712         (gtk_spin_button_button_release): return TRUE or chained retval
9713
9714         * gtk/gtktext.c (gtk_text_button_press): 
9715         (gtk_text_button_release): return TRUE
9716         (gtk_text_key_press): remove redundant retval code
9717         
9718         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
9719         and sensitive
9720         (gtk_tree_item_subtree_button_click): changed type to gint, and return
9721         TRUE if sensitive
9722
9723         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
9724         return TRUE
9725
9726 2001-03-23  Havoc Pennington  <hp@redhat.com>
9727
9728         * gtk/testgtk.c: fix warnings
9729
9730         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
9731
9732         * gtk/gtktextview.c: fix warnings
9733
9734         * gtk/gtktext.c (find_cursor_at_line): fix warning
9735
9736         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
9737
9738         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
9739         of this function
9740
9741         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
9742         fix warning
9743
9744         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
9745
9746         * gtk/gtkfontsel.c: fix warning
9747
9748         * gtk/gtkcolorsel.c: fix warnings
9749
9750 2001-03-23  Havoc Pennington  <hp@redhat.com>
9751
9752         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
9753
9754         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
9755
9756         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
9757         and deprecated gtk_check_menu_item_set_show_toggle().
9758         
9759         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
9760
9761         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
9762
9763         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
9764
9765 2001-03-23  Havoc Pennington  <hp@redhat.com>
9766
9767         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
9768         some docs
9769
9770 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
9771
9772         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
9773         this.
9774
9775         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
9776         set_cell to set_value
9777
9778         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
9779         set_cell to set_value
9780
9781 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
9782
9783         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
9784         fix braino.
9785         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
9786         support.
9787
9788         * gtk/gtktreeview.c: Addition of initial sortable support.
9789
9790         * gtk/gtktreestore.c: Addition of initial sortable support.
9791
9792         * gtk/gtkliststore.c: Addition of initial sortable support.
9793
9794         * gtk/gtkmarshal.list: yet another marshaller.
9795
9796         * gtk/gtktreedatallist.[ch]: shared code between the store models
9797         for handling sorting headers.
9798
9799 2001-03-22  Havoc Pennington  <hp@redhat.com>
9800
9801         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
9802         (gtk_container_unset_focus_chain): Add ability to override the 
9803         focus chain for a container explicitly
9804
9805 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
9806
9807         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
9808         added PROP_MNEMONIC_WIDGET.
9809
9810         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
9811         (gtk_window_remove_mnemonic): 
9812         (gtk_window_add_mnemonic): fixed assertions.
9813         (gtk_window_activate_mnemonic): constrain modifier checks to those
9814         permitted by gtk_accelerator_get_default_mod_mask().
9815         got rid of gtk_window_get_default_accel_group().
9816
9817         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
9818         activatable widgets either by focussing or a warning.
9819         added a signal accumulator to ::activate_mnemonic which stops the
9820         emission once a handler returned TRUE.
9821
9822 2001-03-22  Havoc Pennington  <hp@pobox.com>
9823
9824         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
9825         the stock item label
9826
9827         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
9828
9829         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
9830
9831         * demos/gtk-demo/*.c: Add mnemonics all over the place
9832
9833         * gtk/gtklabel.h: mark parse_uline deprecated
9834
9835 2001-03-21  Alexander Larsson  <alexl@redhat.com>
9836
9837         * gtk/gtkitemfactory.[ch]:
9838         Add support for stock and normal imagemenuitems.
9839         
9840         * gtk/testgtk.c:
9841         Add some tests for mnemonics, stock toolbars, stock
9842         and image menuitems in itemfactory and gdk_window_scroll.
9843
9844 2001-03-21  Alexander Larsson  <alexl@redhat.com>
9845
9846         * gtk/gtkbutton.[ch]:
9847         * gtk/gtkdialog.c:
9848         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
9849         removed accel_group argument. Renamed gtk_button_new_accel() to
9850         gtk_button_new_with_mnemonic() and removed accel_group argument.
9851
9852         * gtk/gtkcheckbutton.[ch]:
9853         New function gtk_check_button_new_with_mnemonic().
9854
9855         * gtk/gtkentry.c:
9856         Override activate_mnemonic and just grab focus.
9857
9858         * gtk/gtkitemfactory.c:
9859         Don't add menu uline accel group, instead use mnemonics support.
9860
9861         * gtk/gtklabel.[ch]:
9862         New support for mnemonics.
9863
9864         * gtk/gtkmarshal.list:
9865         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
9866
9867         * gtk/gtkmenu.[c]:
9868         * gtkmenushell.c:
9869         Use mnemonics instead of accel groups for uline
9870         support in menu items.
9871         Removed gtk_menu_get_uline_accel_group() and
9872         gtk_menu_ensure_uline_accel_group().
9873
9874         * gtk/gtkmenuitem.c:
9875         Override activate_mnemonic to handle switching between
9876         menu items if there are collisions.
9877         
9878         * gtk/gtknotebook.c:
9879         Connect to activate_mnemonic on the tab_label, so that
9880         activating it switches to that notebook page.
9881
9882         * gtk/gtkwidget.[ch]:
9883         Add activate_mnemonic signal. New function
9884         gtk_widget_activate_mnemonic() to emit it.
9885         Default implementation does activate/grab_focus.
9886
9887         * gtk/gtkwindow.[ch]:
9888         Add support for mnemonics in windows.
9889         New functions:
9890         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
9891         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
9892
9893         * gtk/testgtk.c:
9894         Update to function name changes.
9895         
9896 2001-03-21  Alexander Larsson  <alexl@redhat.com>
9897
9898         * gtk/gtkimagemenuitem.[c]:
9899         Add gtk_image_menu_item_new_from_stock()
9900
9901 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
9902
9903         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
9904         Fix buglet in meeting.
9905
9906 2001-03-19  Havoc Pennington  <hp@redhat.com>
9907
9908         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
9909         add a bunch of accessor functions. This is because we have
9910         reasonable expectations of extending what fields it contains in
9911         the future.
9912
9913         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
9914         changes
9915
9916         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
9917         GtkIconSource   
9918
9919 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
9920
9921         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
9922         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
9923
9924         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
9925           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
9926           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
9927           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
9928         Change float to double everywhere with the exception of 0<->1.0 alignment
9929         and GtkCurve.
9930
9931 2001-03-19  Tor Lillqvist  <tml@iki.fi>
9932
9933         * gdk/win32/gdkdrawable-win32.c
9934         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
9935         output.
9936
9937         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
9938         gdkwin32.h.
9939
9940 2001-03-18  Tor Lillqvist  <tml@iki.fi>
9941
9942         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
9943         print_event_state, print_event): Use preprocessor macro to make
9944         code more compact. Print also GDK_WINDOW_STATE events.
9945         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
9946         
9947         * gtk/gtk.def
9948         * gtk/makefile.mingw.in: Update.
9949
9950         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
9951         to catch also Cygwin.
9952
9953 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
9954
9955         * gtk/gtkspinbutton.[hc]: added rc-style argument
9956         GtkSpinButton::shadow_type.
9957         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
9958         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
9959         rc-style settings.
9960
9961         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
9962
9963         * gtk/gtkwidget.c: quark cleanups.
9964
9965         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
9966         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
9967         to create_rc_style() (we don't do cloning in standard OO sense).
9968         added per rc style properties.
9969         
9970         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
9971         property values and for caching those. some cleanups.
9972         
9973         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
9974         
9975         * gtk/gtksettings.[hc]: new file for global rc-file properties
9976         (at least currently, should get extended to support X properties
9977         and other communication mechanisms).
9978         
9979         * gtk/gtkwidget.[hc]: added style property support:
9980         (gtk_widget_class_install_style_property_parser): install style
9981         property pspec with parser function for rc-file values other
9982         than LONG, DOUBLE or STRING.
9983         (gtk_widget_class_install_style_property): same as above without
9984         parser (parsers are going to be needed quite infrequently).
9985         (gtk_widget_style_get_property): retrive style property value.
9986         (gtk_widget_style_get_valist): same as above with varargs support,
9987         has NOCOPY semantics.
9988         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
9989
9990 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
9991
9992         * demos/gtk-demo/main.c (row_activated_cb): modified to use
9993         "row_activated" signal.
9994
9995         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
9996         stupidity.  Lets actually pass in the row with this signal...
9997
9998 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
9999
10000         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
10001
10002         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
10003
10004         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
10005         everything into the ::destroy function, and freed a lot more.
10006
10007 2001-03-16  Havoc Pennington  <hp@redhat.com>
10008
10009         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
10010         instead of gint16, to avoid overflow issues, since sizes > 16-bit
10011         are now allowed.
10012
10013 2001-03-16  Havoc Pennington  <hp@redhat.com>
10014
10015         * Applied patch from Nils Barth (bug # 51041) to 
10016         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
10017         in various places.
10018
10019 2001-03-15  Havoc Pennington  <hp@redhat.com>
10020         
10021         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
10022         for properties to set on the tag.
10023
10024         * gtk/testtext.c: fixups to reflect create_tag change
10025         
10026         * gtk/gtktexttag.c (gtk_text_tag_set_property):
10027         background/foreground stipple are objects, not boxed.
10028
10029         * demos/gtk-demo/textview.c: intellihancing
10030
10031 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
10032
10033         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
10034         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
10035
10036 2001-03-16  Alexander Larsson  <alexl@redhat.com>
10037
10038         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
10039         Fix sign error with queued region translations.
10040
10041 2001-03-15  HideToshi Tajima  <tajima@happy>
10042
10043         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
10044         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
10045         * gtk/gtkentry.c (update_im_cursor_location): 
10046         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
10047         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
10048         set_cursor_pos to set_cursor_location in GtkInputContext class
10049
10050 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
10051
10052         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
10053         the location of the cell relative to its area.
10054         * gtk/gtkcell*: modified for above change
10055         * gtk/gtktreeview.c: modified for above change.
10056
10057 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
10058
10059         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
10060          (gtk_tree_view_finalize): actually unref the model.  Thanks to
10061         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
10062
10063 2001-03-14  Havoc Pennington  <hp@redhat.com>
10064
10065         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
10066         
10067         * gtk/gtk.h: remove gtkdata.h
10068
10069         * gtk/Makefile.am: remove gtkdata
10070         
10071         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
10072         not "disconnect" on the adjustments.
10073         
10074         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
10075         GtkData
10076
10077         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
10078         not GtkData
10079
10080         * configure.in: handle case where X render exists, but Pango lacks
10081         Xft support.
10082
10083 2001-03-15 Alexander Larsson  <alexl@redhat.com>
10084
10085         * gtk/gtktoolbar.[ch]:
10086         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
10087         to add stock items to toolbars.
10088
10089         * gtk/Makefile.am:
10090         Remove ../gdk/gdkim.h from gdk_headers.
10091
10092 2001-03-15  Sven Neumann  <sven@gimp.org>
10093
10094         * gdk/gdkim.h: removed
10095         
10096         * gdk/gdkprivate.h
10097         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
10098
10099 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
10100
10101         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
10102         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
10103         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
10104         set_cursor_pos() virtual method
10105
10106         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
10107         (gtk_im_context_xim_set_cursor_pos): add implementation for
10108         set_cursor_pos() method
10109
10110         * gtk/gtkentry.c (recompute_idle_func): set current cursor
10111         position to input methods
10112
10113 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
10114
10115         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
10116         code a lot.
10117
10118         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
10119         g_mem_chunk.
10120         (_gtk_tree_data_list_alloc): use g_mem_chunk.
10121         (_gtk_tree_data_list_node_to_value): Fix to switch on
10122         G_TYPE_FUNDAMENTAL.
10123         (_gtk_tree_data_list_value_to_node): Fix to switch on
10124         G_TYPE_FUNDAMENTAL.
10125         (_gtk_tree_data_list_node_copy): Fix to switch on
10126         G_TYPE_FUNDAMENTAL.
10127
10128 2001-03-12  Havoc Pennington  <hp@redhat.com>
10129
10130         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
10131         to convert to new property API. Also, change default_width and
10132         default_height get_property to return 0 as the flag value for
10133         "unset"; -1 is not a valid value for these fields.
10134
10135 2001-03-12  Havoc Pennington  <hp@redhat.com>
10136
10137         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
10138         enum with registration for icon sizes, instead of strings.
10139
10140         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
10141         gtkwidget.c: Fix to reflect GtkIconSize
10142         
10143 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10144
10145         Make GtkFB compile and link.
10146         
10147         * gdk/linux-fb/gdkdrawable-fb2.c:
10148         window->mapped to GDK_WINDOW_IS_MAPPED(). 
10149         
10150         * gdk/linux-fb/gdkwindow-fb.c:
10151         window->mapped to GDK_WINDOW_IS_MAPPED(). 
10152         Added gdk_window_shape_combine_region.
10153         Added assorted placeholders for unimplemented new GdkWindow API calls.
10154
10155 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10156
10157         * gtk/gtkfilesel.c:
10158         Add more test when converting filenames from/to utf-8.
10159         Don't allow entering text in the filename entry which isn't allowed in
10160         a filename. Just beep instead.
10161
10162 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10163
10164         * gtk/gtkclist.c:
10165         Scroll using gdk_window_scroll(). Don't wait for exposes.
10166         Move the column headers in an order that makes them flash less.
10167
10168 2001-03-10  Hans Breuer  <hans@breuer.org>
10169
10170         * gdk/gdk.def : updated
10171
10172         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
10173         to offseting the clip_mask at the right place
10174
10175         * gdk/win32/gdkwindow-win32.c : don't create background brushes
10176         for all the gdkClasses, especially not for the input_only case.
10177         Otherwise flickering wont be avoidable, because we don't get
10178         WM_ERASEBKGND message for these windows.
10179
10180         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
10181         and fixed massive redraw problems apparently triggered by Alexanders 
10182         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
10183         but it seems to work quite well :-)
10184
10185         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
10186         prototype
10187
10188 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
10189
10190         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
10191         (gtk_list_store_set_cell): Fix a stupid typo.
10192
10193 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
10194
10195         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
10196         select_all not work if you're in SINGLE mode (it doesn't make that
10197         much sense, anyway.)
10198
10199         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
10200         handle types more sanely.
10201         (_gtk_tree_data_list_value_to_node): handle types more sanely.
10202         (_gtk_tree_data_list_node_copy): handle types more sanely.
10203
10204         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
10205         GValue better. Converts the type as well.
10206
10207         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
10208         GValue better. Converts the type as well.
10209
10210 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
10211
10212         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
10213         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
10214         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
10215         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
10216
10217         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
10218         gdk_im/gdk_ic.
10219
10220 2001-03-09  Hans Breuer  <hans@breuer.org>
10221
10222         * gdk/gdk.def : updated
10223
10224         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
10225         for their palette
10226
10227         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
10228         removing
10229
10230         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
10231         removing and implemented Havoc's GdkWindow state functions; 
10232         stick/unstick only as no-op, cause I don't know how to emulate 
10233         on win32 ...
10234
10235         * gtk/gtk.def : updated
10236
10237         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
10238
10239         * gtk/gtktypeutils.c : #include <string.h>
10240
10241         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
10242
10243 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
10244
10245         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
10246         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
10247         not a boxed.
10248
10249 2001-03-09  Alexander Larsson  <alexl@redhat.com>
10250
10251         * docs/Changes-2.0.txt:
10252         Document expose event->region change and that gtk_widget_event
10253         doesn't allow passing expose events.
10254
10255         * gdk/gdkevents.h:
10256         Add region to expose event.
10257         
10258         * gdk/gdkevents.c:
10259         Handle event->region in gdk_event_copy() and gdk_event_free().
10260
10261         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
10262         Generate expose_event->region when creating expose events.
10263
10264         * gdk/x11/gdkevents-x11.c:
10265         Generate expose events with regions when translating X events.
10266
10267         * gtk/gtkcontainer.[ch]:
10268         Default expose handler that propagates expose events to NO_WINDOW
10269         children. New function gtk_container_propagate_expose()
10270
10271         * gtk/gtkwidget.[ch]:
10272         Moved gtk_widget_event implementation to gtk_widget_event_internal.
10273         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
10274         expose events. New function gtk_widget_send_expose() to send expose
10275         events. New function gtk_widget_region_intersect() to calculate
10276         window/region intersections.
10277         
10278         * gtk/gtkmain.c (gtk_main_do_event):
10279         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
10280         Use gtk_widget_send_expose() to send expose events.
10281         
10282         * gtk/gtkbin.c:
10283         * gtk/gtkbox.c:
10284         * gtk/gtkfixed.c:
10285         * gtk/gtkimagemenuitem.c:
10286         * gtk/gtklist.c:
10287         * gtk/gtkpacker.c:
10288         * gtk/gtktable.c:
10289         * gtk/gtktree.c:
10290         Remove expose handler, using the default container implementation
10291         instead.
10292         
10293         * gtk/gtkbutton.c:
10294         * gtk/gtkcheckbutton.c:
10295         * gtk/gtkeventbox.c:
10296         * gtk/gtkfixed.c:
10297         * gtk/gtkhandlebox.c:
10298         * gtk/gtklayout.c:
10299         * gtk/gtklistitem.c:
10300         * gtk/gtkmenu.c:
10301         * gtk/gtkmenubar.c:
10302         * gtk/gtkmenuitem.c:
10303         * gtk/gtknotebook.c:
10304         * gtk/gtkoptionmenu.c:
10305         * gtk/gtkpaned.c:
10306         * gtk/gtkscrolledwindow.c:
10307         * gtk/gtktogglebutton.c:
10308         * gtk/gtktoolbar.c:
10309         * gtk/gtktreeitem.c:
10310         * gtk/gtkviewport.c:
10311         Chain expose handler to parent class handler. Use
10312         gtk_container_propagate_expose() to propagate exposes.
10313
10314         * gtk/gtkclist.c (check_exposures):
10315         * gtk/gtktext.c (process_exposes):
10316         Use gtk_widget_send_expose instead of gtk_widget_event.
10317
10318 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
10319
10320         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
10321
10322 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
10323
10324         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
10325         unref the nodes.   Fixes bug #50058.
10326
10327         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
10328         "::ref_iter" to "::ref_node".
10329         (gtk_tree_model_unref_node): change "::unref_iter" to
10330         "::unref_node". Fixes bug #50064.
10331
10332 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
10333
10334         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
10335         support for invisible cells.
10336          (gtk_tree_view_bin_expose): ditto
10337
10338 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
10339
10340         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
10341         on gobjects.
10342
10343         * tests/testtreefocus.c (main): New test file.
10344
10345         * tests/testtreeview.c: update to latest glib changes.
10346
10347         * tests/testtreecolumns.c: update to latest glib changes.
10348
10349 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
10350
10351         * gtk/testgtk.c: re-enabled event watcher emission hooks.
10352
10353 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
10354
10355         * *.c: added accumulator data argument to g_signal_newc()
10356         functions.
10357
10358         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
10359         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
10360         * gtk/treestoretest.c (make_window):
10361         s/g_signal_connect/g_signal_connectc/.
10362
10363         * gtk/gtktextbuffer.c: completed signal arg fixups,
10364         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
10365
10366 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
10367
10368         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
10369         G_CONST_RETURN.
10370
10371         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
10372         ::hierarchy-changed signal when a widget changes
10373         from anchored to unanchored or vice versa.
10374         (anchored means 
10375          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
10376         Use a private flag to keep track of this efficiently.
10377
10378 2001-03-07  Havoc Pennington  <hp@redhat.com>
10379
10380         * gtk/testgtk.c (create_spins): uglify so that size request gets
10381         tested.
10382
10383         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
10384         request on values for upper/lower, completes #6152
10385
10386 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
10387
10388         * Makefile.am: Remove gtk-config-2.0 again.
10389         (Grrrr, pkg-config. And stops make loops.)
10390
10391 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
10392
10393         * gtk/gtksignal.[hc]: removed old emission hook API.
10394         
10395         * docs/Changes-2.0.txt: fixed sections.
10396         
10397         * gtk/gtktextbuffer.c: signal arg fixups.
10398
10399 2001-03-07  Havoc Pennington  <hp@redhat.com>
10400
10401         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
10402
10403         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
10404         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
10405         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
10406         validation and the redraw which is higher priority than the
10407         validation.
10408
10409 2001-03-07  Havoc Pennington  <hp@redhat.com>
10410
10411         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
10412         (gtk_entry_set_property): remove trailer
10413
10414         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
10415         (gtk_entry_get_width_chars): new functions, to set size request to 
10416         a given number of characters
10417
10418         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
10419
10420         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
10421         (gtk_dialog_get_has_separator): new function
10422         (run_delete_handler): fix to not emit "response" signal
10423         because we already did in the delete event handler installed
10424         at dialog creation time.
10425         
10426         * gtk/gtkdialog.h: add a has_separator property,
10427         add GTK_DIALOG_NO_SEPARATOR flag
10428
10429 2001-03-07  Havoc Pennington  <hp@redhat.com>
10430
10431         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
10432         off decorations for a window.
10433
10434         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
10435         changes
10436
10437         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
10438         to get location of PangoLayout inside the label, closes #51198
10439
10440         * gtk/testgtk.c (create_bbox): fix up button box usage
10441
10442         * gtk/testcalendar.c (create_calendar): fix up button box usage
10443
10444         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
10445
10446         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
10447
10448         * gtk/gtkhbbox.h: deprecations
10449
10450         * gtk/gtkvbbox.h: deprecations
10451
10452         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
10453         emulate deprecated gtk_button_box_get_spacing
10454
10455         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
10456         the "set global default" functions
10457         (struct _GtkButtonBox): remove "spacing" field, use the one from 
10458         GtkBox base class
10459
10460         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
10461
10462         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
10463         render the icon, return the missing image icon.
10464
10465         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
10466         image icon if the load fails.   
10467
10468         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
10469         when no image is found; should be the Netscape "missing image"
10470         icon eventually but for now is a random image
10471
10472         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
10473         role for the session manager
10474
10475         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
10476
10477         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
10478         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
10479
10480         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
10481
10482 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
10483
10484         * gtk/*.c: marshaller fixes.
10485         
10486         * gtk/gtkmarshal.list: extreme cleanup.
10487
10488         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
10489         param spec for now.
10490
10491         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
10492         where appliable.
10493
10494         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
10495         special cased autogenerated boxed types from gtktypebuiltins_ids.c
10496         which are not reference counted:
10497         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
10498         PangoFontDescription, GtkTreeIter and GtkTreePath.
10499
10500 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
10501
10502         * gtk/gtktreeselection.h: 
10503         * gtk/gtktreemodel.c:
10504         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
10505         file should be included directly, and gobject/gmarshal.h
10506         as well as gtk/gtkmarshal.h even can't be included directly.
10507
10508         * Makefile.am: grr, install gtk-config-2.0.
10509
10510         * gtk/testgtk.c:
10511         * gtk/simple.c:
10512         * gtk/gtkmenu.c:
10513         * gtk/gtkitemfactory.c: use g_object_connect() instead of
10514         passing "*signal*::*" args to gtk_widget_set().
10515         
10516         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
10517         
10518         * gtk/*.c: removed trailer arg from property setters and getters.
10519         macro fixups.
10520
10521 2001-03-07  Alexander Larsson  <alexl@redhat.com>
10522
10523         * gtk/gtklabel.c (set_markup): Removed warning
10524
10525 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
10526
10527         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
10528         field to allow you to hide cell renderers.
10529
10530         * gtk/gtkcellrenderer.c: Add support for invisible cells.
10531
10532         * gtk/gtktreeview.c: Add support for invisible cells.
10533
10534 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
10535
10536         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
10537         Add "clicked" signal back to columns.
10538
10539         * ChangeLog: remove conflict markers.
10540
10541 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
10542
10543         * gtk/gtkbutton.c: Add animation of activation by, on 
10544         activate, pressing the button, and adding a timeout that 
10545         releases the button after 250ms or on key release and
10546         emits ::clicked. (#51501)
10547
10548         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
10549         action area, we connect to ::clicked instead of ::activate
10550         so the dialog stays up through the animation.
10551
10552 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
10553
10554         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
10555         check the ignore_enter flag for the menu shell that
10556         the item is actually a child of, not for attached
10557         submenus. (#51536)
10558
10559 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
10560
10561         * gtk/gtkmain.c (gtk_propagate_event): Only do special
10562         special key-press grab handling for widgets within
10563         GtkWindows. Otherwise, fall through to normal case.
10564
10565         This prevents key events being sent twice to GtkInvisible
10566         widgets, which can cause all sorts of mischief.
10567
10568 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
10569
10570         * gtk/gtkmain.c (gtk_propagate_event): When a grab
10571         widget is in effect, give the grab widget a first
10572         crack at KEY_PRESS/RELEASE events. (#424)
10573
10574 2001-03-06  James Henstridge  <james@daa.com.au>
10575
10576         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
10577         offset for the window_state_event to point at window_state_event
10578         rather than no_expose_event.
10579
10580 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
10581
10582         * gtk/gtkimmodule.h: fix busted /* comment */
10583
10584 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
10585
10586         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
10587         object properties.
10588
10589 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
10590
10591         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
10592         add object properties.
10593
10594         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
10595         to add object properties.
10596
10597         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
10598         object properties.
10599
10600         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
10601         add object properties.
10602
10603         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
10604         object properties.
10605
10606 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
10607
10608         * gtk/gtktreemodel.c: renamed "child_toggled" to
10609         "has_child_toggled".
10610
10611         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
10612         handle new signal name.
10613
10614         * gtk/gtktreestore.c: Updated to handle new signal name.
10615         * gtk/gtklisttore.c: Updated to handle new signal name.
10616         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
10617
10618 2001-03-05  Alexander Larsson  <alexl@redhat.com>
10619
10620         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
10621         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
10622
10623 2001-03-05  Michael Natterer  <mitch@gimp.org>
10624
10625         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
10626         pixbuf-engine coincidentially also failed to make one of it's
10627         parent_class pointers static, causing overwriting of GtkLabel's
10628         parent_class pointer in pixbuf_style_class_init().
10629         (Will commit the fix to the pixbuf-engine too).
10630
10631 2001-03-05  Alexander Larsson  <alexl@redhat.com>
10632
10633         * gdk/gdkwindow.h:
10634         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
10635         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
10636         gdk_window_set_icon_list for net wmspec functionality.
10637
10638         * gdk/x11/gdkwindow-x11.c:
10639         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
10640         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
10641         gdk_window_set_icon_list.
10642         Added gdk_wmspec_change_state helper function and used it in the code.
10643         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
10644
10645         * gtk/gtkdialog.c (gtk_dialog_init):
10646         Set GDK_WINDOW_TYPE_HINT_DIALOG.
10647
10648         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
10649         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
10650
10651         * gtk/gtkwindow.c:
10652         new function gtk_window_set_type_hint.
10653         On realize, set type hint and modal hint.
10654
10655         * gtk/gtkwindow.h:
10656         Added type_hint field and gtk_window_set_type_hint.
10657
10658 2001-03-05  Alexander Larsson  <alexl@redhat.com>
10659
10660         * gtk/gtklabel.[ch]:
10661         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
10662         New function gtk_label_get_accel_keyval () to get the underline accelerator
10663         of the label. Setting the label pattern overrides other attributes.
10664
10665 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
10666
10667         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
10668         Added missing initializers to gtk_rc_style_init().
10669
10670 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
10671
10672         * gtk/gtktextview.c: fixed bug #51097 about setting 
10673         gtk_text_view_set_border_window_size() if the widget is 
10674         already realized.
10675
10676 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
10677
10678         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
10679
10680         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
10681         comment. Won't do to have duplicated doc comments between
10682         the platform subdirs.
10683
10684 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
10685
10686         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
10687           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
10688
10689         Detectable auto-repeat - make a repeating key generate
10690         press/press/press/release instead of press/release pairs.
10691
10692         If we have Xkb and XkbSetDectableAutoRepeat supports
10693         that, we do it that way. Otherwise, when we get
10694         a release event, we check ahead with XPending to see
10695         if the next key is a KeyPress with the same keycode
10696         and timestamp. (Not 100% reliable, but pretty close.)
10697           
10698 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
10699         
10700         * gtk/gtkmain.c (gtk_propagate_event): Only do special
10701         special key-press grab handling for widgets within
10702         GtkWindows. Otherwise, fall through to normal case.
10703  
10704         This prevents key events being sent twice to GtkInvisible
10705         widgets, which can cause all sorts of mischief.
10706  
10707 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
10708  
10709         * gtk/gtkmain.c (gtk_propagate_event): When a grab
10710         widget is in effect, give the grab widget a first
10711         crack at KEY_PRESS/RELEASE events. (#424)
10712  
10713 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
10714
10715         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
10716         to extend the selection. (Roughly based on patch
10717         from Jay Cox, #50939)
10718
10719         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
10720         to properly handle previous GDK_BUTTON_PRESS. 
10721         (Patch from Jay Cox, #50938)
10722
10723         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
10724         '\0' back along with the deleted text. (#51148)
10725
10726 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
10727
10728         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
10729         the group when extracting it from the X keyboard event.
10730
10731         * modules/input/Makefile.am modules/input/imipa.c: 
10732         Simple module for entering IPA. (Do we need a 
10733         gtk-stupid-input-tricks CVS module?)
10734
10735 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
10736
10737         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
10738         const.
10739
10740         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
10741
10742         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
10743         is no focus widget for the dialog currently, grab the focus as well
10744         as the default.
10745
10746         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
10747         the action area's children to iterate through, not the
10748         dialog's children.
10749
10750 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
10751
10752         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
10753         Add plug-socket tests. (Won't work worth a darn until I commit
10754         the rest of the plug-socket changes, but no reason these
10755         can't go into CVS now.)
10756
10757 2001-03-02  Havoc Pennington  <hp@redhat.com>
10758
10759         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
10760         _gdk_region_get_xrectangles()
10761
10762         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
10763
10764         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
10765
10766         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
10767         function, contributed by Ron Steinke    
10768
10769         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
10770         gdk_net_wm_supports
10771
10772         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
10773         New function, contributed by Ron Steinke
10774
10775         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
10776         used to line up the text in the entry when using the entry for
10777         editable sheet cell hacks
10778
10779         * gtk/testgtk.c (create_entry): test the activate_default setting
10780         on GtkEntry
10781
10782         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
10783         cause the entry to activate the default button for a dialog when 
10784         activated
10785         (gtk_entry_get_activates_default): new function
10786
10787 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
10788
10789         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
10790         Hwang to move call to sync_selection() up a few lines
10791         to before the row list is modified, to fix crash when
10792         removing rows in the undo_selection list.
10793
10794         (Test case provided by Daniel Elstner:
10795
10796         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
10797
10798 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
10799
10800         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
10801         of tree->root_tree in parent_set rather than _map(), 
10802         fixing #50892 in a bit better manner.
10803
10804 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
10805
10806         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
10807
10808 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
10809
10810         * gtk/gtkstyle.c : Remove duplicate fwd decl for
10811         gtk_default_draw_shadow.
10812
10813 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
10814
10815         * gdk/gdkimage.c (gdk_image_new): Remove excess 
10816         warning, make warnings more verbose, treat a error
10817         in shmat as permanent, and don't try again.
10818         (#51163, Ed Randall.)
10819
10820 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
10821
10822         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
10823         delay for the first click before starting to scroll.
10824         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
10825
10826         * gtk/gtktext.c: GtkText should have I-beam cursor. 
10827         (based on gtk-enf-990513-1.patch, Eric Fisher.)
10828
10829 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
10830
10831         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
10832         cleanup to remove some references to unused
10833         ->xoffset, ->yoffset.
10834
10835 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
10836
10837         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
10838         mask. (#51039, fix from Martin Maierhofer)
10839
10840 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
10841
10842         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
10843         for unshifted + and shifted = for non-us keyboards.
10844         Make <Control>+ and <Control>- work as well as 
10845         <Control>KP_Plus, <Control>KP_Minus for recursive
10846         open/close.  (#2682, René Seindal)
10847
10848 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
10849
10850         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
10851         the active menu item before deactivating the menu,
10852         so gtk_menu_popdown doesn't change the history. (#50964)
10853         
10854 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
10855
10856         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
10857         draw lines with text_gc rather than black_gc.
10858         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
10859
10860 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
10861
10862         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
10863         Move handling of buttons fully in gtktreeviewcolumn.  This code is
10864         less interrelated then it was, but it still requires the
10865         GtkTreeView to map it.
10866
10867         * test/testtreecolumn.c: Now I can add a column to one view,
10868         remove it, add it to the another view, remove it, then re-add it
10869         to the first.  Nifty.
10870
10871 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
10872
10873         * docs/tutorial/gtk-tut.sgml: Minor corrections
10874
10875 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
10876
10877         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
10878         GtkRowReference.
10879
10880 2001-02-28  Havoc Pennington  <hp@redhat.com>
10881
10882         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
10883         draw_default
10884         (gtk_widget_draw_focus): remove this function; we could instead
10885         make it just gtk_widget_draw(), but in most cases I think the
10886         result would be broken user code, so think it's better to have
10887         that code not compile and get fixed
10888         (gtk_widget_draw_default): ditto
10889
10890         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
10891         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
10892         
10893         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
10894         widgets lose/get the default, instead of calling draw_default
10895         
10896         * docs/Changes-2.0.txt: note about all this
10897
10898         Then fixed every widget in GTK, I won't list all the filenames.
10899
10900 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
10901
10902         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
10903         _gtk_tree_row_reference_deleted.
10904         (inserted_callback): Proxy out to
10905         _gtk_tree_row_reference_inserted.
10906         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
10907         get around signal emission ordering problem.
10908
10909         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
10910         fix to work with SINGLE 
10911         (_gtk_tree_selection_internal_select_node): Major sanitization on
10912         selections.  SINGLE now seems to work.
10913
10914         * tests/Makefile.am: add testtreecolumn.c:
10915
10916         * tests/testtreecolumn.c: New test.  Mostly points out selection
10917         bugs currently, but will test columns later.
10918
10919         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
10920         selection bug.  I hate touching this code -- it's scary.
10921
10922 2001-02-26  Havoc Pennington  <hp@redhat.com>
10923
10924         * gtk/testgtk.c: test the window state stuff
10925
10926         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
10927         window come to the user's attention as if it were just created
10928         (gtk_window_iconify): new function
10929         (gtk_window_deiconify): new function
10930         (gtk_window_stick): new function
10931         (gtk_window_unstick): new function
10932         (gtk_window_maximize): new function
10933         (gtk_window_unmaximize): new function
10934
10935         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
10936
10937         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
10938
10939         * gdk/x11/gdkevents-x11.c: create window state events when
10940         appropriate
10941         (gdk_wmspec_supported): new function
10942
10943         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
10944         iconification before showing the window
10945         (gdk_window_deiconify): new function
10946         (gdk_window_stick): new function
10947         (gdk_window_unstick): new function
10948         (gdk_window_maximize): new function
10949         (gdk_window_unmaximize): new function
10950
10951         * gdk/gdkwindow.c: store the window state in the window; 
10952         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
10953         window->mapped.
10954         (gdk_window_get_state): return the current window state
10955
10956         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
10957         (gdk_event_get_state): handle GDK_WINDOW_STATE
10958         (gdk_synthesize_window_state): function to create the window state
10959         events
10960
10961         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
10962         event, for changes to "window state" such as maximized, sticky, 
10963         etc.
10964         
10965         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
10966         focuses a window
10967
10968         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
10969         finds out if we support a given WM spec hint
10970
10971 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
10972
10973         * docs/faq/gtk-faq.sgml: New question re memory leaks.
10974
10975 2001-02-25  Hans Breuer  <hans@breuer.org>
10976
10977         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
10978         cause we want to loose those prototypes only in the latter case
10979
10980         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
10981         GdkPixmapImplWin32 because it itsn't derived from it. Use the
10982         impl member variable instead
10983
10984         * gtk/gtk.def : updated
10985
10986         * gtk/gtklist.c : 
10987         * gtk/gtkmenus.c : include <string.h> for memset ()
10988
10989         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
10990         for everthing built here, but for gtk-x.x.dll only. This solves
10991         problem of indifferent gtk type definitions
10992
10993 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
10994
10995         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
10996
10997 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
10998
10999         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
11000         column that is exposed.
11001
11002         (_gtk_tree_view_update_size): Changed name from set_size, and
11003         changed function to do more work, and not force people calling it
11004         to figure out the size.  Simplifies a lot of code elsewhere.
11005
11006 2001-02-23  Alexander Larsson  <alexl@redhat.com>
11007
11008         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
11009         return solid masks for xpms that have no transparent color.
11010         This makes the ..._create_from_xpm... API backwards
11011         compatible.
11012
11013 2001-02-23  Tor Lillqvist  <tml@iki.fi>
11014
11015         * README.win32: Update. Mention the gtk-1-3-win32-production
11016         branch.
11017
11018         * gdk/win32/bdfcursor.c: New file. A program that generates
11019         xcursors.h. Thanks to Stefan Ondrejicka.
11020
11021         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
11022         compact format.
11023
11024         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
11025
11026         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
11027         function, uses xcursors.h.
11028         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
11029         cursor from inline data instead of using LoadCursor() to generate
11030         it from a resource.
11031
11032         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
11033         event, must check the Windows message for mouse button state, as
11034         the GDK event state might not have been built if it is
11035         undelivered. Remove one goto.
11036
11037         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
11038         SetCursor() if the current cursor as returned by GetCursor() is
11039         the window's previous cursor. The ChildWindowFromPoint() test
11040         apparently didn't work correctly.
11041
11042         * gdk/win32/rc/*.cur: Remove.
11043
11044         * gdk/win32/rc/gdk.rc.in: Remove cursors.
11045
11046         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
11047
11048         * gtk/makefile.{mingw,msc}.in: Updates.
11049
11050 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
11051
11052         * gtk/gtktreemodel.h: add functions for signal emission.
11053
11054         * gtk/gtktreestore.c: move to use above functions instead of
11055         g_signal_emit.
11056
11057         * gtk/gtkliststore.c: ditto
11058
11059 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
11060
11061         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
11062         GObject instead of GtkObject.
11063
11064         * gtk/gtkliststore.c: ditto.
11065
11066         * gtk/gtktreemodelsort.c: ditto.
11067
11068         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
11069         GtkTreeModelIface, instead of in each model.
11070
11071 2001-02-21  Havoc Pennington  <hp@redhat.com>
11072
11073         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
11074         unbreak this function
11075
11076         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
11077         properties
11078
11079         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
11080         properties
11081
11082         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
11083         properties
11084
11085         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
11086         mean unset the max length
11087
11088 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
11089
11090         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
11091         Changed name to be set_cell_data_func to make it clear what
11092         the functino does.  Close bug #51069.
11093
11094 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
11095
11096         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
11097         have memory actually freed.  Keeps box running longer.
11098
11099 2001-02-21  Alexander Larsson  <alexl@redhat.com>
11100         
11101         * gtk/gtkseparatormenuitem.[ch]:
11102         Added new menu separator item. The drawing and size handling
11103         is still done in GtkMenuItem, but the API is a bit more sane.
11104         
11105         * gtk/Makefile.am:
11106         Add gtkseparatormenuitem.[ch].
11107
11108         * gtk/gtk.h:
11109         Add gtkseparatormenuitem.h.
11110         
11111         * gtk/gtkentry.c:
11112         * gtk/gtkmenufactory.c:
11113         * gtk/gtktextview.c:
11114         Use the new API for menu separators.
11115         
11116         * demos/gtk-demo/menus.c (create_menu):
11117         Add some GtkSeparatorMenuItem demo code.
11118
11119 2001-02-20  Havoc Pennington  <hp@redhat.com>
11120
11121         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
11122         Lee Mallabone
11123
11124         * gtk/gtkarrow.c: Convert to new property API, patch from 
11125         Lee Mallabone
11126
11127 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
11128
11129         * tests/testtreeview.c (toggled_callback): fix to reflect change
11130         in GtkTreeModelStore.
11131
11132 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
11133
11134         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
11135         function to create an icon set from a pixbuf.
11136
11137 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11138
11139         * gtk/gtkcellrenderertext.[ch]:
11140         Add a "markup" property.
11141
11142         * gtk/treestoretest.c:
11143         Use the markup property, remove some leftover stuff from
11144         GtkTreeModelMapping.
11145
11146 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11147
11148         * gtk/gtklabel.c (gtk_label_set_selectable):
11149         Queue a redraw if the selectable setting was changed.
11150
11151 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11152
11153         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
11154         Actually copy the whole gc, not just the public parts.
11155         
11156         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
11157         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
11158         labels.
11159
11160 2001-02-19  Havoc Pennington  <hp@pobox.com>
11161
11162         * gdk/gdkwindow.c: docs
11163
11164         * gdk/gdkrgb.c: docs
11165
11166         * gdk/gdkregion-generic.c: docs
11167
11168         * gdk/gdkgc.c (gdk_gc_set_values): docs
11169
11170         * gdk/gdkdraw.c: docs
11171
11172         * gdk/gdkdrawable.h: deprecate drawable get/set data
11173
11174 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
11175
11176         * demos/gtk-demo/dialog.c: Add simple new demo.
11177
11178 2001-02-19  Havoc Pennington  <hp@redhat.com>
11179
11180         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
11181         insert_child_anchor signal, bug #50245
11182
11183         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
11184         from create_child_anchor, so the anchor is passed in
11185
11186         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
11187         (_gtk_widget_segment_new): have the child anchor object passed in, 
11188         instead of creating it.
11189
11190         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
11191         to gtk_text_buffer_get_modified
11192
11193 2001-02-19  Havoc Pennington  <hp@redhat.com>
11194
11195         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
11196         changed GLib without fixing GTK
11197
11198         * gtk/gtkrange.h: Rename all the stupid implementation detail 
11199         functions to have an underscore in front. Most of them should 
11200         probably just go away, but for starters don't export them.
11201         Bug #50482
11202
11203 2001-02-19  Havoc Pennington  <hp@redhat.com>
11204
11205         * gdk/gdkcolor.h: test was backward, so deprecated functions were
11206         excluded by default
11207
11208         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
11209         clean up the old code a bit
11210
11211         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
11212         inconsistent state
11213
11214         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
11215         draw inconsistent state
11216
11217         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
11218         (create_menu): add inconsistent test
11219
11220         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
11221         new function
11222         (gtk_check_menu_item_get_inconsistent): new function
11223         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
11224         state (using etched in for now)
11225
11226         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
11227         draw inconsistent state
11228
11229         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
11230         function, used when the user has selected a range of stuff in
11231         different states
11232         (gtk_toggle_button_get_inconsistent): accessor for that
11233         (gtk_toggle_button_paint): draw inconsistent state (etched in?
11234         don't know what else to do)
11235
11236 2001-02-19  Hans Breuer <hans@breuer.org>
11237
11238         * gtk/gtk.def : updated exported symbols
11239
11240         * gtk/makefile.msc.in : updated
11241
11242         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
11243         a colormap, when invoked from testgtk::entry. I'm not sure where
11244         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
11245         avoids immediate crashing ...
11246
11247         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
11248         any objections ?
11249
11250         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
11251         0 parameter. At least msvc doesn't like macros with var args. 
11252         I simply removed the extra 0, was it a feature or a typo ?
11253
11254         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
11255         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
11256         because the value assignment to the internal struct wasn't working.
11257         I'm not absolutely sure. The problem could have been resolved by
11258         changing the "func" declartion in the struct, but was the pointer
11259         to the function pointer intended ?
11260
11261         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
11262
11263         * gdk/gdk.def : updated exported symbols
11264
11265         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
11266         only use SetDIBitsToDevice if there is a palette at the drawable
11267         and the image is GDK_VISUAL_PSEUDO_COLOR
11268
11269         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
11270
11271         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
11272
11273         * gdk/*/makefile.msc : updated
11274
11275 2001-02-19  Havoc Pennington  <hp@redhat.com>
11276
11277         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
11278         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
11279
11280         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
11281         (gdk_key_repeat_restore): nuke
11282
11283         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
11284         (gdk_init_check): no atexit func
11285
11286         * gdk/gdkrgb.h: mark some stuff deprecated
11287
11288         * gdk/gdkcolor.h: mark some stuff deprecated
11289         
11290         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
11291
11292         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
11293
11294 2001-02-16  Havoc Pennington  <hp@redhat.com>
11295
11296         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
11297         scroll steps.
11298
11299         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
11300         steps, and add Ctrl-arrow shortcuts for paging visually as with
11301         HScale, since Page Up and Page Down move logically.
11302
11303         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
11304         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
11305         
11306         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
11307         steps
11308         (gtk_range_scroll): handle the visual steps
11309
11310         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
11311         scroll steps
11312
11313         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
11314         steps, not the logical ones.
11315
11316         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
11317         (scroll_vertical): handle up/down steps
11318
11319 2001-02-19 Alexander Larsson  <alexl@redhat.com>
11320
11321         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
11322         Copy data and free data with free().
11323
11324         * gdk-pixbuf/gdk-pixbuf.c:
11325         * gdk-pixbuf/io-jpeg.c:
11326         * gdk-pixbuf/io-png.c:
11327         Use g_try_malloc/g_free instead malloc/free.
11328         
11329         * gdk-pixbuf/test-gdk-pixbuf.c:
11330         Must... initialize... gobject...
11331         
11332         * gdk-pixbuf/pixops/timescale.c:
11333         * gtk/gtkcalendar.c:
11334         Use g_malloc instead of malloc.
11335         
11336 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
11337
11338         * gtk/testgtkrc:
11339         Comment out property assignments, these don't work yet.
11340
11341 2001-02-17  Havoc Pennington  <hp@pobox.com>
11342
11343         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
11344         bit.
11345
11346 2001-02-17  Havoc Pennington  <hp@pobox.com>
11347
11348         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
11349         shadowed variables that had broken size request in some cases,
11350         leading to bogus tooltips (#50996)
11351
11352 2001-02-06  Jon K Hellan  <hellan@acm.org>
11353
11354         Implement fast browsing of tooltips, bug #50619
11355         
11356         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
11357         and last_popdown
11358         
11359         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
11360         use_sticky_delay and last_popdown.
11361         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
11362         time of popdown.
11363         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
11364         is NULL.
11365         (gtk_tooltips_recently_shown): New static function.  Return true
11366         if < sticky_delay has elapsed since last popdown.
11367         (gtk_tooltips_event_handler): Display window after sticky_delay
11368         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
11369         since last popdown.
11370         
11371 2001-02-17  Havoc Pennington  <hp@pobox.com>
11372
11373         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
11374         instead of (). #6394
11375
11376         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
11377         G_CONST_RETURN, make it return by reference, #50473
11378         
11379 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
11380
11381         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
11382         generated ENTER_NOTIFY event with 0, otherwise not explicitely
11383         setup fields contain garbage (e.g. subwindow, breaking
11384         gdk_drawable_ref() upon event copy).
11385         (gtk_menu_stop_navigating_submenu_cb): same here.
11386
11387         * gtk/gtklist.c (gtk_list_vertical_timeout): 
11388         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
11389         * gtk/gtkclist.c (vertical_timeout): 
11390         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
11391         default-zero-intialization for unions to memset(,0,), as unions are
11392         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
11393         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
11394
11395         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
11396         g_closure_sink() warning.
11397
11398         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
11399         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
11400         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
11401         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
11402         
11403 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
11404
11405         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
11406         gtk_*_store_get, and moved to GtkTreeModel.
11407
11408         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
11409
11410         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
11411
11412         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
11413
11414         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
11415         set the func.
11416
11417         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
11418         freeze/thaw notify between setting all the properties for a cell.
11419
11420         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
11421
11422 2001-02-15  Havoc Pennington  <hp@redhat.com>
11423
11424         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
11425         the X coordinates so they're with respect to the line, rather than 
11426         with respect to the layout.
11427
11428         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
11429         Mallabone
11430
11431         * gtk/testgtk.c (create_range_controls): add vscale tests, 
11432         and inverted test
11433
11434         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
11435         #50806
11436
11437         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
11438
11439         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
11440         gtk_text_iter_is_end
11441
11442         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
11443         rename gtk_text_buffer_get_end_iter
11444
11445         * gtk/testgtk.c (create_labels): Add test for selectable
11446
11447         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
11448         the selection stuff. This code is kind of broken since it doesn't 
11449         use the theme engine.
11450
11451         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
11452         fix infinite loop and y offset problem
11453         (gdk_draw_layout_line_with_colors): fix foreground color handling
11454
11455         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
11456         that makes the label selectable.
11457         
11458         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
11459         layout when the style is set, since fonts etc. could have changed.      
11460
11461 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
11462
11463         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
11464
11465         * gtk/gtktreemodelsimple.[ch]: removed.
11466
11467 2001-02-16  Alexander Larsson  <alexl@redhat.com>
11468
11469         * gtk/gtktreemodelmapping.[ch]:
11470         New files. Implement GtkTreeModelMapping.
11471         
11472         * gtk/Makefile.am:
11473         Add gtktreemodelmapping.[ch].
11474         
11475         * gtk/gtk.h:
11476         Add gtktreemodelmapping.h
11477
11478         * gtk/treestoretest.c:
11479         Test the GtkTreeModelMapping
11480
11481 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
11482
11483         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
11484         have a demo, we might as well pass in real values.  Thanks to
11485         clahey for pointing this out.
11486
11487 2001-02-14  Havoc Pennington  <hp@pobox.com>
11488
11489         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
11490         "static" to a private function
11491         (gtk_image_menu_item_class_init): remove destroy handler,
11492         add "image" object property
11493
11494 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
11495
11496         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
11497         Add a shortcut if the window and the current clip_region doesn't
11498         overlap. This is needed when there are a lot of windows in a
11499         window. The layout test in testgtk is a good test.
11500
11501         * gdk/linux-fb/gdkwindow-fb.c:
11502         Whitespace fix.
11503
11504 2001-02-13  Sven Neumann  <sven@convergence.de>
11505
11506         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
11507
11508 2001-02-13  Alexander Larsson  <alexl@redhat.com>
11509
11510         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
11511         Don't reference last_cursor if it is null. Fixes crash when rotating
11512         the screen before having moved the mouse.
11513
11514         * gdk/linux-fb/gdkcc-fb.c: Zapp!
11515
11516         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
11517
11518         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
11519         when using 90 or 270 degrees rotation.
11520
11521 2001-02-12  Havoc Pennington  <hp@pobox.com>
11522
11523         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
11524         it always set the foreground, even if we were only using
11525         a stipple.
11526         (gdk_draw_layout_line_with_colors): new function, allow
11527         override colors
11528         (gdk_draw_layout_with_colors): new function, allow override
11529         colors
11530         (gdk_pango_layout_line_get_clip_region): function to get the clip
11531         region for a logical text range
11532         (gdk_pango_layout_get_clip_region): get the clip region for a
11533         logical text range
11534
11535         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
11536         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
11537         the right number of arguments.
11538
11539         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
11540         enhance the function to check that node data corresponds to a 
11541         view still belonging to the tree.
11542
11543         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
11544         GtkTreePath
11545         (gtk_tree_view_inserted): ditto
11546         (gtk_tree_view_child_toggled): ditto
11547
11548         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
11549         simplify this code.
11550
11551         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
11552         a PangoAttrList
11553
11554         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
11555
11556         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
11557
11558         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
11559         size in the size request 
11560         (gtk_menu_bar_size_allocate): consider toggle size here
11561
11562         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
11563         that displays a widget in the toggle slot
11564
11565         * gtk/testgtk.c: test GtkImageMenuItem
11566
11567         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
11568         
11569         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
11570         request and allocation
11571
11572         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
11573
11574         * gtk/gtkcheckmenuitem.c
11575         (gtk_check_menu_item_toggle_size_request): ditto
11576         
11577 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
11578
11579         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
11580         reference.
11581
11582         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
11583         and refuse to initialize GTK+ if they fail.
11584
11585 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
11586
11587         * configure.in: Add check for gtk-doc version.
11588
11589 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
11590
11591         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
11592         where the xpad/ypad was only being used on one side!
11593
11594 2001-02-11  Tor Lillqvist  <tml@iki.fi>
11595
11596         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
11597         function, copied from X11 version.
11598
11599         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
11600         DestroyCursor failures. The reason for the problem (despite the
11601         inconsistent messages from GetLastError()) was that
11602         DestroyCursor() cannot be called while a cursor is set in a
11603         window. Set the new cursor first and then destroy the old one.
11604         Thanks to jpe@archaeopteryx.com.
11605
11606         * gdk/win32/gdkcc-win32.c: Remove.
11607
11608         * gdk/win32/Makefile.am: Remove from here, too.
11609         
11610         * gdk/gdk.def
11611         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
11612
11613         * gtk/gtk.def
11614         * gtk/makefile.mingw.in: Updates.
11615
11616 2001-02-08  Havoc Pennington  <hp@redhat.com>
11617
11618         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
11619         add a widget to a bin that already has a child.
11620
11621         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
11622
11623         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
11624         
11625         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
11626
11627         * gdk/gdk.h: remove gdkcc.h
11628
11629         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
11630
11631         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
11632         GdkPixbuf, since the previous implementation was GdkColorContext
11633         dependent.
11634
11635         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
11636         
11637 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
11638
11639         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
11640         a sane value!
11641
11642 2001-02-08  Havoc Pennington  <hp@redhat.com>
11643
11644         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
11645         lighten them.
11646
11647 2001-02-08  Havoc Pennington  <hp@redhat.com>
11648
11649         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
11650         validation idle
11651
11652         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
11653         cell renderer
11654
11655         * demos/pixbuf-demo.c (timeout): remove deprecated
11656         gtk_widget_draw
11657
11658         * demos/testpixbuf-save.c (main): remove deprecated
11659         gtk_drawing_area_size
11660
11661         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
11662         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
11663         at the start of the allocation.
11664         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
11665         unsetup or NULL model.
11666
11667         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
11668         even/odd/sorted cells in the tree view.
11669
11670         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
11671         bugfixes
11672
11673         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
11674         backgrounds with draw_flat_box using different detail for even/odd
11675         rows.
11676
11677         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
11678         row, so we can draw the alternating colors thing
11679
11680         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
11681         property from a synonym property, notify for the synonym.
11682         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
11683         (gtk_text_tag_get_property): Always return the font, even if
11684         all its fields aren't set
11685
11686         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
11687         store the attr list; it leaves us with no way to change attributes
11688         in _render according to the render flags, and no way to implement
11689         get_property. Instead store all the specific text attributes. 
11690         Separate whether an attribute is enabled from its value. Sync all
11691         properties with GtkTextTag, make them all consistent, etc.
11692
11693         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
11694         renderers can highlight the sort row/column     
11695
11696         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
11697         accessor functions to get values; this has the side effect of
11698         showing up which accessor functions were missing. Added those.
11699
11700         * gtk/gtktreeviewcolumn.h: Replace set_justification with
11701         set_alignment, to be consistent with GtkLabel, GtkMisc
11702
11703         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
11704         arrow.
11705
11706         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
11707
11708         * gtk/gtktreesortable.h: updates in here
11709
11710 2001-02-07  Sven Neumann  <sven@convergence.de>
11711
11712         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
11713         pango dimensions after painting the background. We used to draw
11714         gigantic flat boxes here.
11715
11716 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
11717
11718         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
11719         error introduced with earlier commit) (pointed out by
11720         Ollie Lho)
11721
11722 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
11723
11724         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
11725         which are no longer necessary.
11726
11727 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
11728
11729         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
11730
11731 2001-02-04  Tor Lillqvist  <tml@iki.fi>
11732
11733         * gdk/gdk.def
11734         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
11735         Provide dummy implementations.
11736
11737 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
11738
11739         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
11740
11741         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
11742         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
11743         deprecated this function.
11744
11745         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
11746         argument.
11747
11748 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
11749
11750         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
11751
11752 2001-02-03  Havoc Pennington  <hp@pobox.com>
11753
11754         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
11755         Mikael Hermansson with patch from Mikael (if there was a toggle
11756         start one after the first character in the range, this function
11757         was broken). Bug #50380
11758
11759 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
11760
11761         * configure.in: Remove confusing comment about X11.
11762
11763 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
11764
11765         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
11766         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
11767         
11768 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
11769
11770         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
11771         it breaks things on BSD. If you want to compile GTK+ with
11772         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
11773         when configuring, since GTK+ simply can't be "pure ANSI" 
11774         in the header files it uses. (#8170, Greg Hudson)
11775
11776 2001-02-02  Havoc Pennington  <hp@redhat.com>
11777
11778         * gtk/gtkwindow.c: docs
11779
11780         * gtk/gtkwidget.c: docs
11781         (gtk_widget_set_colormap): add a reference to the colormap
11782         (gtk_widget_get_default_colormap): add a reference to the colormap
11783
11784         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
11785
11786         * gtk/gtktextiter.c: docs
11787
11788         * gtk/gtkmain.c (gtk_propagate_event): docs
11789
11790         * gtk/gtkpaned.c (gtk_paned_get_position): docs
11791         (gtk_paned_set_position): docs
11792
11793         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
11794         sort interface, no implementation yet.
11795
11796         * demos/testpixbuf.c (new_testrgb_window): replace
11797         gtk_drawing_area_size() with gtk_widget_set_usize()
11798
11799         * demos/testpixbuf-drawable.c (main): ditto
11800         
11801         * gtk/testgtk.c: remove use of GtkStatusbarMsg
11802
11803         * gtk/gtktextbuffer.c: docs
11804
11805         * gtk/gtkstock.c: docs
11806
11807         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
11808
11809         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
11810
11811         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
11812         
11813         * gtk/gtkimage.c: add some docs in here
11814         (gtk_image_size_request): change name of
11815         gtk_widget_render_stock_icon
11816         (gtk_image_get_icon_set): don't dup returned string
11817         (gtk_image_get_icon_set): don't dup returned string
11818
11819         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
11820         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
11821         and gtkiconfactory.h functions
11822
11823         * gtk/gtkiconfactory.c: add some docs in here
11824
11825         * gtk/gtkmain.c (gtk_get_default_language): document
11826         (gtk_get_current_event): document
11827         (gtk_get_current_event_state): document
11828         (gtk_get_event_widget): document
11829
11830         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
11831
11832         * gtk/gtkcontainer.c: Add some documentation
11833         (gtk_container_add): give a more explanatory warning on adding an
11834         already-parented widget, this is kind of a FAQ and also a common
11835         typo that's easier to debug with a nice warning 
11836
11837         * gtk/gtkcellrenderertoggle.c
11838         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
11839         adding this, it's useless
11840         (gtk_cell_renderer_toggle_set_active): remove
11841         (gtk_cell_renderer_toggle_get_radio): add
11842
11843         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
11844         the NULL cell renderer, that doesn't make any sense to me. 
11845
11846         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
11847         demo code should never use deprecated features.
11848
11849         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
11850         code should never use deprecated features.
11851
11852         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
11853         gtk_widget_queue_clear_area deprecated
11854
11855         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
11856         deprecated
11857
11858         * gtk/gtklabel.h: mark gtk_label_get() deprecated
11859
11860         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
11861         a GdkImage deprecated, replaced by new consistently-named
11862         functions       
11863
11864         * gtk/gtkmain.h: Mark gtk_exit() deprecated
11865
11866         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
11867
11868         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
11869         deprecated
11870
11871         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
11872         so it won't appear in docs and confuse people.
11873
11874         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
11875
11876         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
11877         macros deprecated. (can't mark the type itself deprecated, since
11878         GtkProgressBar is not deprecated and we need the type decl to use
11879         GtkProgressBar)
11880
11881         * gtk/gtkpixmap.h: Mark deprecated
11882
11883         * gtk/gtkoldeditable.h: Mark deprecated
11884
11885         * gtk/gtklist.h: Mark deprecated
11886
11887         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
11888         for anything anymore.
11889
11890         * gtk/gtkctree.h: Mark deprecated
11891
11892         * gtk/gtkclist.h: Mark deprecated
11893
11894         * gtk/gtkpreview.h: Mark deprecated
11895
11896         * gtk/gtkpacker.h: Mark deprecated
11897
11898         * gtk/gtktipsquery.h: Mark deprecated
11899
11900         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
11901
11902         * gtk/gtkvruler.h: Add comment that it will move out of GTK
11903
11904         * gtk/gtkhruler.h: Add comment that it will move out of GTK
11905
11906         * gtk/gtkruler.h: Add comment that it will move out of GTK
11907
11908         * gtk/gtkgamma.h: Add comment that it will move out of GTK
11909
11910         * gtk/gtkcurve.h: Add comment that it will move out of GTK
11911
11912 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
11913
11914         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
11915         gdk_colormap_sync private since it was never exported
11916         in a header file.
11917
11918         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
11919         colormap->colors[] for StaticGray, StaticColor colormaps.
11920
11921         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
11922         was being used as if it was image->bits_per_pixel.
11923
11924         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
11925         for the image in the GdkImage structure since it isn't
11926         reconstructable, and we need it to handle packed types
11927
11928         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
11929         the assumption that on Win32 image->bits_per_pixel == image->depth,
11930         always.
11931
11932         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
11933
11934         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
11935         warning message if no converter can be found. 
11936
11937 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
11938
11939         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
11940         chars to isupper() / tolower(). (#567)
11941
11942         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
11943         to clear up 64-bit warnings. (#567)
11944
11945 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
11946
11947         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
11948         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
11949
11950         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
11951         since some people set $(libdir) separately. (#1290, David Kaelbling)
11952
11953 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
11954
11955         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
11956         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
11957         MAXPATHLEN, but the code here depends on a fixed value.)
11958         (#4524)
11959
11960 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
11961
11962         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
11963         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
11964
11965 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
11966
11967         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
11968         viewable there is no way that moving the node will cause the 
11969         focus row to become not viewable, so omit check on the visibility
11970         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
11971
11972 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
11973
11974         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
11975         selection before inserting new text.
11976
11977 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
11978
11979         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
11980         Make the sensitivity of the reparented child track that of
11981         the original parent menu item. (#34218, David Hodson)
11982
11983         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
11984         the case where the current item is destroyed properly.
11985
11986         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
11987         some edge cases with child-less menuitems.
11988         
11989 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
11990
11991         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
11992         key pop down window. (#12074, Jon K Hellan)
11993
11994 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
11995
11996         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
11997         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
11998         The solution here isn't perfect - you get an extraneous
11999         emission of "toggle", which could conceivably confuse an app,
12000         but better than the current situation. LXR search seems to
12001         indicate that no apps in GNOME CVS connect to "toggle".
12002
12003 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
12004
12005         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
12006         gtk_public_h_sources to directly here to avoid warning when
12007         building srcdir != builddir. (#9656)
12008
12009 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
12010
12011         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
12012         handlers in gtkrange.c return the proper values (TRUE == handled)
12013         (#10316).
12014
12015         This is just the tip of the iceberg, but gtkrange.c is the
12016         most common place where the propagation is problematical,
12017         and also a place where it is almost certainly safe to change
12018         this in the stable branch.
12019
12020         (You don't want right click popups on a range control or anything...)
12021
12022 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
12023
12024         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
12025         area on focus out, even if a background pixmap isn't set.
12026         (#13941)
12027         
12028 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
12029
12030         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
12031         to deal with setting the shape properly when scrolling arrows are
12032         turned on, but not visible because there is sufficient space.
12033         (#13432)
12034
12035 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
12036
12037         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
12038         items with submenus, destroy the item along with the submenu.
12039         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
12040         properly.
12041
12042         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
12043         later.
12044
12045 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
12046
12047         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
12048         the focus widget sometimes wasn't drawn with the default if there
12049         was no default widget.
12050
12051         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
12052         unreference pixmaps. 
12053
12054         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
12055         for some extra safety.
12056
12057 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
12058
12059         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
12060         the text of a cell to the old pointer value better, by
12061         copying the new text before freeing the old text. Some code
12062         cleanup. (#8079, Karl Nelson)
12063
12064 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
12065
12066         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
12067         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
12068
12069 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
12070
12071         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
12072         item from a menu, check to see if it matches 
12073         menu->old_active_menu_item, and if so, unref and clear
12074         old_active_menu_item (Patch from Pavel Cisler)
12075
12076         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
12077         menu_shell->active_menu_item, if it is the child being
12078         removed. (Patch based on that of Gene Ragan, #50337)
12079
12080 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
12081
12082         * gdk/linux-fb/gdkselection-fb.c: 
12083         * gdk/linux-fb/gdkcolor-fb.c: 
12084         * gdk/linux-fb/gdkdrawable-fb2.c: 
12085         * gdk/linux-fb/gdkfont-fb.c: 
12086         * gdk/linux-fb/gdkim-fb.c: 
12087         * gdk/linux-fb/gdkinput.c: 
12088         * gdk/linux-fb/gdkkeyboard-fb.c: 
12089         * gdk/linux-fb/gdkmain-fb.c: 
12090         * gdk/linux-fb/gdkrender-fb.c: 
12091         A bunch of whitespace cleanup.
12092         
12093 2001-01-30  Havoc Pennington  <hp@pobox.com>
12094
12095         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
12096         #ifdef GTK_ENABLE_BROKEN.
12097
12098         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
12099         GTK_ENABLE_BROKEN just before including the broken headers.
12100         
12101         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
12102         deprecated types registered.
12103
12104         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
12105         we have to test the broken stuff.
12106
12107         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
12108         
12109 2001-01-30  Havoc Pennington  <hp@redhat.com>
12110
12111         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
12112         here where prev pointer was set to the wrong thing
12113
12114         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
12115         (gtk_tree_path_is_descendant): new function
12116
12117         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
12118         cached length
12119         (gtk_list_store_get_iter): don't modify iter if we can't get the
12120         path.
12121
12122         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
12123         
12124         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
12125         GtkTreeDragDest
12126
12127         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
12128         was causing segfault
12129
12130         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
12131         pointer to NULL
12132
12133         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
12134
12135         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
12136         on returning FALSE
12137         (gtk_list_store_iter_children): ditto
12138         (gtk_list_store_iter_nth_child): ditto
12139         (gtk_list_store_iter_nth_child): ditto
12140         (gtk_list_store_iter_parent): ditto
12141
12142         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
12143         on iter->user_data != NULL instead of silently accepting it.
12144         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
12145         we are returning TRUE.
12146         (gtk_tree_store_iter_children): ditto
12147         (gtk_tree_store_iter_nth_child): ditto
12148         (gtk_tree_store_iter_parent): ditto
12149         (gtk_tree_store_insert): remove handling of parent->user_data ==
12150         NULL, replace with parent == NULL       
12151
12152         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
12153         and a comment explaining things
12154
12155         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
12156         interface support to GtkTreeStore.
12157
12158         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
12159         FALSE if no prev, fix
12160
12161         * gtk/gtktreeview.c (set_source_row): use a row reference
12162         (set_dest_row): use a row reference
12163
12164 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
12165
12166         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
12167         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
12168         (gtk_tree_selection_select_iter): The same as above.
12169
12170 2001-01-26  Havoc Pennington  <hp@redhat.com>
12171
12172         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
12173         which holds a handle to a specific row (particular set of values
12174         in the model, i.e. pointer-identity row).
12175
12176         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
12177         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
12178         Still need to use it for the src/dest row saved on the drag context.
12179
12180 2001-01-26  Havoc Pennington  <hp@redhat.com>
12181
12182         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
12183
12184         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
12185         not offset by TREE_VIEW_HEADER_HEIGHT
12186         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
12187         TREE_VIEW_HEADER_HEIGHT
12188
12189         * configure.in (included_loaders): for me, --with-included-loaders
12190         generates the error "the specified loader yes does not exist",
12191         i.e. the arg defaults to "yes", so change test for value ""
12192         to test for value "yes", and include all loaders in that case.
12193
12194         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
12195
12196         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
12197         handle TREE_VIEW_VERTICAL_SEPARATOR
12198         (gtk_tree_view_bin_expose): fix to consider the row offset as
12199         pointing halfway into vertical separator.       
12200         (gtk_tree_view_draw_node_focus_rect): ditto
12201
12202         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
12203         --gtk-debug=updates, which causes gdk_window_set_debug_updates
12204         (TRUE) to be called.
12205
12206         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
12207         debug mode where the invalid region is colored in on invalidate,
12208         so you can see the flicker and know whether your redraw code is 
12209         doing a good job.
12210
12211         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
12212         tree window coordinates (clip rect is in tree window coords)
12213
12214         * gtk/Makefile.am: add gtktreednd.[hc]
12215
12216         * gtk/gtkliststore.c: implement gtktreednd interfaces.
12217
12218         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
12219         drag-and-drop data operations on a model (so we can set up tree
12220         drag-and-drop automatically)
12221
12222         * gtk/testgtk.c: Add a window to change sensitivity in the
12223         GtkLabel test; add a way to change the entry frame in GtkEntry
12224         test
12225
12226         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
12227         (gtk_entry_get_has_frame): new functions to remove the frame
12228         around an entry
12229         (gtk_entry_size_request): shrink requisition if no frame
12230         (gtk_entry_draw_focus): don't draw frame if no frame
12231
12232         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
12233         checks inside a cell renderer
12234         (gtk_default_draw_option): ditto for options
12235
12236         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
12237         children from the alignment, not the button
12238         (gtk_tree_view_column_init): ref/sink the column, to emulate
12239         GObject refcounting.
12240
12241         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
12242         
12243         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12244         Use theme functions to draw the toggles 
12245
12246         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
12247
12248         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
12249         GdkPangoAttrEmbossed to use in rendering insensitive text
12250
12251         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
12252
12253         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
12254         using new GDK features
12255         
12256 2001-01-24  Alexander Larsson  <alexl@redhat.com>
12257
12258         * gtk/gtkimage.c:
12259         Splitted gtk_image_clear into gtk_image_clear() and
12260         gtk_image_reset(). Call gtk_image_clear() in ::destroy
12261         to avoid leaks.
12262
12263         * gtk/gtklabel.c (set_markup):
12264         Don't leak text.
12265
12266         * gtk/gtktextlayout.c:
12267         Always free display->shaped_objects.
12268
12269         * gtk/testgtk.c (create_clist):
12270         Don't leak custom style.
12271
12272 2001-01-23  Alexander Larsson  <alexl@redhat.com>
12273
12274         * gtk/gtkcolorsel.c (grab_color_at_mouse):
12275         Don't leak image. Simplify using gdk_colormap_query_color().
12276         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
12277
12278         * linux-fb/gdkcolor-fb.c:
12279         Implemented gdk_colormap_query_color.
12280
12281 2001-01-23  Alexander Larsson  <alexl@redhat.com>
12282
12283         * linux-fb/gdkcursor-fb.c:
12284         Don't leak built-in cursors.
12285
12286         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
12287         Don't leak tmp_points.
12288
12289         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
12290         Don't modify desc. Don't leak font if the PangoFont
12291         isn't found.
12292         
12293         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
12294         Free dash_list.
12295
12296         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
12297         Don't leak string.
12298         
12299 2001-01-20  Havoc Pennington  <hp@pobox.com>
12300
12301         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
12302         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
12303         me, matches Pango
12304
12305 2001-01-22  Havoc Pennington  <hp@redhat.com>
12306
12307         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
12308
12309         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
12310
12311         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
12312         Remove, move back to gdk-pixbuf
12313
12314         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
12315         to all the word functions
12316
12317         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
12318         before doing anything on NULL layout or if we don't have the focus
12319
12320         * gtk/testtext.c (fill_example_buffer): "justification"
12321
12322         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
12323         to be called "justification" not "justify"
12324
12325         * demos/gtk-demo/textview.c (create_tags): "justification"
12326         
12327         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
12328
12329 2001-01-22  Alexander Larsson  <alexl@redhat.com>
12330
12331         * gdk/gdkwindow.c (gdk_window_invalidate_region):
12332         Don't leak visible_region. Use visible_region instead of region.
12333         
12334         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12335         Don't do extra gdk_drawable_ref(). This is not X.
12336         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
12337         gdk_fb_focused_window is ref:ed.
12338         (gdk_fb_window_send_crossing_events): Watch out for destroyed
12339         windows.
12340
12341 2001-01-22  Alexander Larsson  <alexl@redhat.com>
12342
12343         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
12344         Don't leak the PangoFontDescriptor.
12345
12346 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
12347
12348         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
12349         when not realized.
12350         (gtk_tree_view_scroll_to_cell): Make work when not realized.
12351         (gtk_tree_view_realize): add scroll_to support
12352         (gtk_tree_view_finalize): add a finalize method.  Populate.
12353         (gtk_tree_view_insert_column): ref and sink the column.
12354         (gtk_tree_view_append_column): ref and sink the column.
12355         (gtk_tree_view_queue_draw_node): New function to handle redrawing
12356         individual nodes.  Should make the code much more efficient, if
12357         actually used.
12358
12359 2001-01-19  Havoc Pennington  <hp@redhat.com>
12360
12361         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12362         byte_offset variable was being used to mean both "offset into
12363         layout" and "offset into buffer line" which was no longer true
12364         with addition of preedit string; fix
12365
12366 2001-01-19  Havoc Pennington  <hp@redhat.com>
12367
12368         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
12369
12370         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
12371         function
12372
12373         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
12374         implement
12375
12376         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
12377         scroll_to_cell, matches TextView scroll functions better
12378         (gtk_tree_view_tree_to_widget_coords): new function
12379         (gtk_tree_view_widget_to_tree_coords): new function
12380         (gtk_tree_view_get_visible_rect): new function
12381         (gtk_tree_view_get_path_at_pos): accept negative coordinates
12382         (gtk_tree_view_draw_node_focus_rect): new function moved from
12383         draw_focus, also, use width of bin_window as width of the focus
12384         rect
12385         (gtk_tree_view_expand_row): fix bug where it didn't recognize
12386         already-expanded rows
12387         (gtk_tree_view_get_cell_rect): new function
12388         (gtk_tree_view_get_path_at_pos): return the click position
12389         relative to the passed-in cell
12390         (gtk_tree_view_set_expander_column): new function
12391
12392         * configure.in: remove gtk-config-2.0 chmod
12393
12394         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
12395         and properly handle drags with targets we don't understand
12396         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
12397         scrolling anyway
12398         (gtk_text_view_drag_drop): stop scrolling here though, and set the
12399         mark invisible
12400
12401         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
12402         function
12403         (gtk_drag_dest_get_target_list): new function
12404         (gtk_drag_dest_set_target_list): new function
12405         
12406         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
12407
12408         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
12409         related to drag-and-drop
12410
12411 2001-01-19  Alexander Larsson  <alexl@redhat.com>
12412
12413         * gdk/linux-fb/gdkprivate-fb.h:
12414         Define EMULATE_GDKFONT.
12415         Add extra pango_font stuff to GfkFontPrivate.
12416         
12417         * gdk/linux-fb/gdkdrawable-fb2.c:
12418         * gdk/linux-fb/gdkfont-fb.c:
12419         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
12420         emulation using PangoFont.
12421
12422 2001-01-17  Havoc Pennington  <hp@pobox.com>
12423
12424         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
12425         all the non-deprecated set_foo functions. Added missing object
12426         properties, and added g_object_notify() to setters. 
12427         Wrote docs.
12428         
12429 2001-01-18  Tor Lillqvist  <tml@iki.fi>
12430
12431         * gtk/gtkmain.c
12432         * gtk/gtkrc.c: (Win32) Use the new
12433         g_win32_get_package_installation_(sub)directory() functions.
12434
12435         * config.h.win32.in: New file.
12436         
12437         * config.h.win32: Removed.
12438
12439         * configure.in: Output config.h.win32.
12440
12441         * Makefile.am: Add it to EXTRA_DIST.
12442
12443         * gtk/gtk.def: Update.
12444
12445 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
12446
12447         * gtk/gtklabel.c (gtk_label_size_request): Set the
12448         attributes onto the PangoLayout even if they are newly
12449         created from label->pattern.
12450
12451 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
12452
12453         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
12454
12455         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
12456         structures in functions. Fixes bug where gtk_dataset_*
12457         was accidentally still being used in one place, causing
12458         every dest side event to be treated independently.
12459
12460         * gtk/gtkdnd.c: Remove last vestages of handling
12461         ::draw (fixes warning)
12462         
12463         * gtk/gtkentry.[ch]: Add drag and drop support.
12464
12465         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
12466         new function gtk_check_drag_threshhold() for checking
12467         to check if (dx,dy) has exceeded the threshhold for starting
12468         a drag and use it everywhere.
12469
12470 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
12471
12472         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
12473         add -I{includedir}/gtk-2.0.
12474
12475         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
12476         gdk/gdk-pixbuf.h: Doc fixups.
12477         
12478         * gtk/gtkobject.h: Remove trailing , from enum
12479
12480 2001-01-17 Alexander Larsson <alexl@redhat.com> 
12481
12482         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
12483         Doh! Mixed up x and y.
12484
12485         * gdk/linux-fb/gdkglobals-fb.c:
12486         Removed gdk_fb_pointer_grab_window_events,
12487         added _gdk_fb_pointer_grab_owner_events and
12488         _gdk_fb_keyboard_grab_owner_events.
12489
12490         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
12491         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
12492         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
12493         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
12494         Send crossing events after ungrab finished.
12495         (gdk_keyboard_grab): Set ..._owner_events
12496         (type_masks): Move out of function.
12497         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
12498         gdk_fb_keyboard_event_window): New functions, return the
12499         window an event should be targeted at. Handles grabs and
12500         event propagation. Can return NULL.
12501         (gdk_event_make): Remove event_mask checking. Now always
12502         returns an event.
12503                 
12504         * gdk/linux-fb/gdkkeyboard-fb.c:
12505         * gdk/linux-fb/gdkproperty-fb.c:
12506         * gdk/linux-fb/gdkselection-fb.c:
12507         Use new event_window/gdk_event_make() behaviour.
12508         
12509         * gdk/linux-fb/gdkmouse-fb.c:
12510         Use new event_window/gdk_event_make() behaviour.
12511         Only send motion events if in the same window.
12512         If grabbed, use cursor from window if sibling of grabbed
12513         window, and cursor from grabbed window otherwise.
12514
12515         * gdk/linux-fb/gdkprivate-fb.h:
12516         Update gdk_fb_window_send_crossing_events, gdk_event_make
12517         and grab varaible declarations. Add gdk_fb_*_event_window().
12518
12519         * gdk/linux-fb/gdkwindow-fb.c:
12520         Use new event_window/gdk_event_make() behaviour.
12521         Keep correct track of focus window.
12522         (gdk_window_set_events): Set all specific button motion masks
12523         if GDK_BUTTON_MOTION_MASK set.
12524
12525         * gtk/gtkdnd.c (gtk_drag_update):
12526         Free info->last_event if gdk_drag_motion returned FALSE.
12527
12528 2001-01-16  Tor Lillqvist  <tml@iki.fi>
12529
12530         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
12531         Eliminate redraws when input-only windows are shown or
12532         hidden. Thanks to jpe@archaeopteryx.com.
12533
12534 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
12535
12536         * docs/faq/gtk-faq.sgml: FAQ update:
12537           - Update to bugzilla
12538           - Add GTK+ and security/SUID/SGID
12539           - Add DnD question
12540
12541 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
12542
12543         * gdk/linux-fb/gdkdnd-fb.c:
12544         Some cleanups.
12545         
12546 2001-01-15  Havoc Pennington  <hp@pobox.com>
12547
12548         * tests/testtreeview.c: add test stuff for CellRendererToggle
12549
12550         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
12551         accessor
12552
12553         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
12554         only toggle on button press (would do release like GtkButton, but
12555         we'd need implicit grab code for treeview cells)
12556
12557 2001-01-16  Tor Lillqvist  <tml@iki.fi>
12558
12559         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
12560
12561         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
12562         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
12563
12564         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
12565         to g_{locale,filename}_{to,from}_utf8 to match current API.
12566
12567         * gtk/makefile.msc.in (gtk_OBJECTS)
12568         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
12569
12570         * gtk/gtk.def: Update.
12571
12572 2001-01-15  Tor Lillqvist  <tml@iki.fi>
12573
12574         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
12575         implementaion that more closely mimics the events that an X server
12576         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
12577         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
12578         with nested preview widgets, for instance, more responsive when
12579         you move the mouse quickly into them.
12580         (find_window_for_pointer_event): Make it actually compile.
12581         (gdk_event_translate): Set send_event to the value of
12582         InSendMessage (). This doesn't really mean the same as X11's
12583         send_event flag, but is close enough, says jpe@archaeopteryx.com
12584
12585 2001-01-15  Alexander Larsson  <alexl@redhat.com>
12586
12587         * gdk/linux-fb/gdkdnd-fb.c:
12588         Implemented drag and drop.
12589         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
12590         when it tries to free and then copy the same event (info->last_event).
12591         I am not sure about why this happens, but will continue looking.
12592
12593 2001-01-15  Alexander Larsson  <alexl@redhat.com>
12594
12595         * gdk/linux-fb/gdkwindow-fb.c:
12596         Use gdk_window_invalidate_rect instead of
12597         gdk_window_invalidate_rect_clear to minimise flashing.
12598         When hiding windows you need to clear the root window though.
12599
12600 2001-01-15  Alexander Larsson  <alexl@redhat.com>
12601
12602         * gdk/linux-fb/gdkdrawable-fb2.c:
12603         For optization, add an full_shapes argument to gdk_fb_clip_region.
12604         If this is false, only the cliprects of the shapes are used.
12605
12606         * gdk/linux-fb/gdkprivate-fb.h:
12607         Export gdk_fb_window_peek_shape.
12608         Add full_shapes to gdk_fb_clip_region.
12609
12610         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
12611         When moving a window, don't clear everything under the it, just the
12612         root window. Makes stuff faster and flash less.
12613         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
12614         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
12615         offset of the shape.
12616         
12617
12618 2001-01-12  Havoc Pennington  <hp@redhat.com>
12619
12620         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
12621         current invalid region, fixes redraw bug while scrolling the 
12622         text widget
12623
12624         * gtk/gtktextview.c, gtk/gtktextview.h:
12625         Rearrange the scrolling/validation/etc. code in a major way, 
12626         so it seems to make sense to me. Probably isn't genuinely that
12627         much better, but...
12628
12629         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
12630         notifies
12631
12632         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
12633
12634 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
12635
12636         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
12637         Hide mouse pointer while rotation. Show it afterwards.
12638
12639 2001-01-12  Alexander Larsson  <alexl@redhat.com>
12640
12641         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
12642         windows in consideration when generating clip region.
12643
12644         * gdk/linux-fb/gdkfb.h:
12645         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
12646
12647         * gdk/linux-fb/gdkprivate-fb.h:
12648         Add shape to GdkWindowFBDatat.
12649         exported gdk_fb_window_get_abs_shape().
12650         removed gdk_fb_draw_lines declaration.
12651
12652         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
12653         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
12654         send focus changes when there is a grabbed window.
12655         (gdk_window_get_pointer): Handle shaped windows.
12656         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
12657         (gdk_fb_window_peek_shape): Returns the shape for a window,
12658         handles GDK_FB_USE_CHILD_SHAPE.
12659         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
12660         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
12661         (gdk_window_shape_combine_mask): Implement.
12662
12663         * gtk/gtkwindow-decorate.c:
12664         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
12665         setting the shape of a window makes the window transparent.
12666
12667 2001-01-11  Havoc Pennington  <hp@redhat.com>
12668
12669         * gtk/gtktreemodelsimple.h: Oops, broke some macros
12670
12671 2001-01-10  Havoc Pennington  <hp@redhat.com>
12672
12673         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
12674         add this function, bug 40251
12675
12676         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
12677         of type macro   
12678
12679 2001-01-11  Alexander Larsson  <alexl@redhat.com>
12680
12681         * acconfig.h:
12682         Added ENABLE_SHADOW_FB
12683
12684         * configure.in:
12685         Added --disable-shadowfb
12686
12687         * gdk/linux-fb/gdkcursor-fb.c:
12688         Update shadowfb when updating cursor
12689
12690         * gdk/linux-fb/gdkdrawable-fb2.c:
12691         Added wrappers for shadowfb that calls  the normal drawable
12692         methods, but calls gdk_shadow_fb_update(bounding box) when
12693         GdkWindows are drawed to.
12694         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
12695         which also returns the bounding box.
12696
12697         * gdk/linux-fb/gdkfb.h:
12698         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
12699
12700         * gdk/linux-fb/gdkgeometry-fb.c:
12701         Update shadowfb when scrolling window.
12702
12703         * gdk/linux-fb/gdkglobals-fb.c:
12704         Add _gdk_fb_screen_angle.
12705         
12706         * gdk/linux-fb/gdkkeyboard-fb.c:
12707         Test code for screen rotation. Shift-F2 in the xlate driver
12708         rotates the screen.
12709
12710         * gdk/linux-fb/gdkmain-fb.c:
12711         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
12712
12713         * gdk/linux-fb/gdkmouse-fb.c:
12714         Use fb_width/height instead of modeinfo.xres/yres.
12715
12716         * gdk/linux-fb/gdkprivate-fb.h:
12717         Added fb_men, fb_width, fb_height & fb_stride. When using
12718         shadow fb these can differ from the framebuffer stuff.
12719         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
12720         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
12721         _gdk_fb_screen_angle. Removed CM, RP.
12722
12723         * gdk/linux-fb/gdkrender-fb.c:
12724         Added code for shadowfb handling and screen rotation using
12725         shadowfb.
12726
12727         * gdk/linux-fb/gdkwindow-fb.c:
12728         Use fb_mem, fb_stride, fb_width, fb_height.
12729         Added recompute_rowstride to reset the rowstride of all windows.
12730         Added gdk_fb_recompute_all() which recomputes rootwindow size,
12731         window abs positions and window rowstrides. Usefull when the
12732         rotation has changed.
12733
12734 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
12735
12736         * docs/faq/gtk-faq.sgml: update to make web site updating easier
12737
12738 2001-01-10  Havoc Pennington  <hp@redhat.com>
12739
12740         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
12741         where sibling == iter
12742         (gtk_tree_store_insert_after): handle sibling == iter
12743         (gtk_tree_store_prepend): remove stamp checks
12744         (gtk_tree_store_insert_before): ditto
12745         (gtk_tree_store_append): ditto
12746         (gtk_tree_store_get_path): ditto
12747         (gtk_tree_store_get_value): ditto
12748         (gtk_tree_store_iter_has_child): ditto
12749         (gtk_tree_store_iter_n_children): ditto
12750         (gtk_tree_store_iter_nth_child): ditto
12751         (gtk_tree_store_insert_after): ditto
12752         (gtk_tree_store_is_ancestor): ditto
12753         (gtk_tree_store_iter_depth): ditto
12754         (gtk_tree_store_insert_before): assert that sibling's parent is
12755         the same as the passed-in parent
12756         (gtk_tree_store_insert_after): assert that sibling's parent is
12757         the same as the passed-in parent
12758
12759         
12760         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
12761         function to get the first iterator in a model
12762         
12763         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
12764         conventionally the "root" in this sense is just NULL afaict.
12765
12766         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
12767         where sibling == iter
12768         (gtk_list_store_insert_after): handle case where sibling == iter
12769
12770         * tests/testtreeview.c (run_automated_tests): fairly lame basic
12771         automated tests for ListStore, TreeStore
12772
12773         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
12774         (gtk_list_store_insert): update tail pointer, and fix it to work
12775         (gtk_list_store_insert_before): update tail pointer, and fix it to work
12776         (gtk_list_store_append): use tail to be faster
12777         (gtk_list_store_prepend): fix it, update tail pointer
12778         (gtk_list_store_insert_after): fix it, update tail pointer
12779
12780         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
12781         the list
12782
12783 2001-01-09  Havoc Pennington  <hp@redhat.com>
12784
12785         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
12786         is NULL due to a pending resize
12787
12788         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
12789         column width to values less than 1
12790
12791         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
12792         width to be between min/max width, and still set the width 
12793         even if autosize is turned on, so the tree view can use this 
12794         function in order to autosize.
12795         (gtk_tree_view_column_init): set initial width to 1 not 0
12796
12797         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
12798         setter function to modify column width, so we get notification
12799         (gtk_tree_view_insert_iter_height): ditto
12800         (gtk_tree_view_calc_size): ditto
12801         (gtk_tree_view_check_dirty): ditto
12802
12803         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
12804         properties to change all the interesting attributes of the tree
12805         view column.
12806         (gtk_tree_view_column_set_header_clickable): rename set_clickable
12807         (gtk_tree_view_column_get_clickable): add
12808         (gtk_tree_view_column_set_cell_renderer): don't unset the current
12809         attributes; assume a cell renderer with equivalent object
12810         properties has been swapped in. Do g_object_notify().
12811         (gtk_tree_view_column_set_visible): g_object_notify
12812         (gtk_tree_view_column_get_sizing): rename from get_col_type
12813         (gtk_tree_view_column_set_sizing): g_object_notify
12814         (gtk_tree_view_column_set_width): add g_object_notify
12815         (gtk_tree_view_column_set_min_width): ditto
12816         (gtk_tree_view_column_set_max_width): ditto
12817         (gtk_tree_view_column_set_title): ditto
12818         (gtk_tree_view_column_set_clickable): ditto
12819         (gtk_tree_view_column_set_widget): ditto
12820         (gtk_tree_view_column_set_justification): ditto
12821
12822 2001-01-09  Havoc Pennington  <hp@redhat.com>
12823
12824         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
12825         there are no rows in the model
12826
12827         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
12828         NULL, then return the start of the list
12829
12830         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
12831         if we can't get any rows from an empty model 
12832
12833         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
12834         extraneous * after function pointer typedef usage
12835
12836         * Makefile.am: don't specify full path to cp and rm
12837
12838         * gtk/gtkcellrenderertextpixbuf.c
12839         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
12840         NULL before dereferencing, fixes a segfault that happened from
12841         time to time
12842
12843         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
12844         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
12845         and reindent the function
12846         (gtk_cell_renderer_pixbuf_get_size): indentation
12847
12848         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
12849         we quit it
12850         (gtk_dialog_add_buttons_valist): add g_return_if_fail
12851         (gtk_dialog_set_default_response): New function, to set default
12852         button
12853         (gtk_dialog_set_response_sensitive): New function, to set 
12854         sensitivity of buttons
12855
12856         * gtk/gtkcellrendererpixbuf.c
12857         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
12858         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
12859
12860         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
12861         handle any G_TYPE_OBJECT subclass, not just the base class, and 
12862         also boxed types.
12863         (_gtk_tree_data_list_value_to_node): ditto
12864
12865         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
12866         --gtk-debug=tree
12867
12868         * gtk/gtkmain.c: add GTK_DEBUG_TREE
12869
12870         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
12871
12872 2001-01-09  Tor Lillqvist  <tml@iki.fi>
12873
12874         * gdk/win32/gdkevents-win32.c: Implement better mouse
12875         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
12876         (find_window_for_pointer_event): New function.
12877         (gdk_event_translate): Use it when handling mouse events.
12878
12879 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
12880
12881         * configure.in:
12882         Added --with-included-loaders option
12883
12884         * gdk-pixbuf/Makefile.am:
12885         * gdk-pixbuf/gdk-pixbuf-io.c:
12886         Add support for including selected gdk-pixbuf loaders only.
12887
12888         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
12889         gtk_window_set_has_frame):
12890         Added inline documentation.
12891
12892         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
12893         * docs/reference/gdk/tmpl/windows.sgml:
12894         Added inline documentation.
12895
12896 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
12897
12898         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
12899         realizing buttons that have already been realized.
12900
12901 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
12902
12903         * tests/testtreeview.c (main): Show menu items before adding to
12904         option menu.
12905
12906         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
12907         around if we kill them.
12908
12909         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12910         Return if we pass in a NULL model.
12911
12912 2001-01-08  Havoc Pennington  <hp@redhat.com>
12913
12914         * tests/testtreeview.c: hack on this some
12915
12916         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
12917         gtk_tree_store_set_valist, v is for arrays, valist for varargs
12918         list
12919         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
12920
12921         * gtk/gtkliststore.h: Add varargs set() and get() convenience
12922         functions
12923
12924 2001-01-08  Alexander Larsson  <alexl@redhat.com>
12925
12926         * gtk/gtkwindow-decorate.[hc]:
12927         * gtk/Makefile.am:
12928         New files. Contains an implementation of a minimal WM for
12929         linux-fb.
12930
12931         * gtk/gtkwindow.h:
12932         Add the possibility for GtkWindows to specify a frame. This
12933         is used for the window decoration code, but could concievably
12934         be used for X programs too (xmms style windows).
12935         GtkWindow->frame is the toplevel window if the window is framed.
12936         The signal frame_event gets all events that are targeted to
12937         GtkWindow->frame.
12938         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
12939         
12940         * gtk/gtkwindow.c:
12941         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
12942         Call out to gtkwindow-decorate.c for WM support in linx-fb.
12943
12944 2001-01-08  Alexander Larsson  <alexl@redhat.com>
12945
12946         * docs/README.linux-fb:
12947         Correct filename ~/.pangoft2_aliases
12948
12949         * gdk/gdkwindow.h:
12950         Added new function gdk_window_get_decorations.
12951
12952         * gdk/linux-fb/gdkfb.h:
12953         Removed _gdk_window_get_decorations declaration.
12954         Renamed _gdk_window_set_child_handler to
12955         gdk_fb_window_set_child_handler.
12956
12957         * gdk/linux-fb/gdkwindow-fb.c:
12958         Renamed _gdk_window_set_child_handler to
12959         gdk_fb_window_set_child_handler.
12960
12961         * gdk/x11/gdkwindow-x11.c:
12962         New function gdk_window_get_mwm_hints().
12963         Implemented gdk_window_get_decorations.
12964
12965         * docs/reference/gdk/tmpl/windows.sgml:
12966         * docs/reference/gdk/gdk-sections.txt:
12967         Added gdk_window_get_decorations docs.
12968         
12969 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
12970
12971         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
12972         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
12973         gdk_fb_window_send_crossing_events):
12974         Possibly send focus events when the mouse moves from one
12975         window to another.
12976
12977 2001-01-07  Tor Lillqvist  <tml@iki.fi>
12978
12979         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
12980         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
12981         to match current API.
12982
12983         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
12984         environment variable is set, don't call g_error when on a
12985         palettized (PseudoColor) display. Some people want to use GTK+ 
12986         in 256-colour mode even though works only partially.
12987
12988         * gdk/gdk.def
12989         * gtk/gtk.def
12990         * gtk/makefile.mingw.in: Update.
12991
12992 2001-01-05  Havoc Pennington  <hp@redhat.com>
12993
12994         * tests/testtreeview.c: hack on this a bit
12995
12996         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
12997         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
12998
12999         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
13000         was spelled incorrectly
13001         (GTK_IS_TREE_MODEL_SIMPLE): ditto
13002
13003         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
13004         from gtk_tree_view_set_headers_active   
13005
13006         * gtk/gtktexttag.c:
13007         (gtk_text_tag_get_property): handle PROP_DIRECTION
13008         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
13009         properties, bug 40235
13010
13011         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
13012         forward_to_line_end
13013
13014 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
13015
13016         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
13017         modules/input/gtkimcontextxim.c: Adapt to new prototypes
13018         for unicode,locale,filename conversion functions.
13019
13020 2001-01-05  Havoc Pennington  <hp@redhat.com>
13021
13022         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
13023         broken if called on the first position in the buffer.
13024
13025         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
13026         forward_to_delimiters to be called only if we aren't already at
13027         the delimiters.
13028
13029 2001-01-05  Havoc Pennington  <hp@redhat.com>
13030
13031         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
13032
13033 2001-01-05  Alexander Larsson  <alexl@redhat.com>
13034
13035         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
13036         colormap in here. Sync from X port.
13037         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
13038         Sync from X port.
13039         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
13040         This happens now and then, and i don't think it is a bug.
13041         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
13042         != endpoint.
13043         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
13044         GDK_LINE_SOLID.
13045
13046         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
13047         some of the fields filled in at least.
13048
13049         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
13050         miLineArcD is no more, remove it from the function definition.
13051
13052 2001-01-04  Havoc Pennington  <hp@redhat.com>
13053
13054         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
13055         this
13056
13057         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
13058         user_data instead of tree_node
13059
13060         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
13061         TREE_VIEW_COLUMN_SIZE
13062
13063         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
13064         "size" field to "width" finishes bug 40061
13065
13066         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
13067         for bitfields, bug 40268
13068
13069 2001-01-04  Havoc Pennington  <hp@redhat.com>
13070
13071         Rename some stuff:
13072         
13073         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
13074
13075         s/GtkModelSimple/GtkTreeModelSimple/g;
13076         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
13077         s/gtk_model_simple/gtk_tree_model_simple/g;
13078         s/gtkmodelsimple/gtktreemodelsimple/g;
13079
13080         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
13081
13082         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
13083         s/column_set_col_type/column_set_sizing/g;
13084
13085         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
13086         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
13087
13088         s/GtkCellRendererType/GtkCellRendererState/g;
13089         
13090         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
13091         (gtk_cell_renderer_toggle_class_init): change "state" property to
13092         "active", to match GtkToggleButton
13093         (gtk_cell_renderer_toggle_get_active): new function, bug
13094         40269
13095         (gtk_cell_renderer_toggle_set_active): new function
13096         (gtk_cell_renderer_toggle_set_property): route changes to toggle
13097         state through gtk_cell_renderer_set_active
13098
13099 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
13100
13101         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
13102         temporarily until they work again.  Brought up to date with
13103         changes in the model.
13104         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
13105         model.
13106
13107 2001-01-04  Havoc Pennington  <hp@redhat.com>
13108
13109         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
13110         equal to the line length, then position iterator before paragraph 
13111         separators. Fixes crash reported by Mikael Hermansson when
13112         pressing left arrow from the start of a line.   
13113
13114         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
13115         about byte indexes off the end
13116         (iter_set_from_char_offset): add g_error about char offsets
13117         off the end
13118
13119 2001-01-03  Havoc Pennington  <hp@redhat.com>
13120
13121         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
13122
13123         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
13124         of private functions; remove inclusion of private headers.
13125
13126         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
13127         function, so we don't need private functions in gtktextdisplay.c
13128
13129         * gtk/gtktextiterprivate.h: underscore-ification
13130
13131         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
13132         to instead say "only useful to implement widgets"
13133
13134         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
13135         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
13136         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
13137
13138         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
13139         This function was completely broken
13140
13141         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
13142
13143         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
13144
13145         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
13146
13147         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
13148
13149         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
13150
13151         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
13152
13153         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
13154         gtk_paint_layout
13155
13156         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
13157         gtk_paint_layout
13158
13159         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
13160         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
13161         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
13162         which were not implemented.     
13163
13164         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
13165         insert_pixbuf signal. Rename delete_text to delete_range since it
13166         also deletes pixbufs and child anchors. This almost closes bug
13167         40245 (still need to deal with child anchors)
13168
13169         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
13170         insert_pixbuf, change signal names as appropriate, change types of
13171         signals taking marks/tags to have the specific type, not just
13172         G_TYPE_OBJECT
13173         
13174         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
13175         closes bug 40051
13176
13177         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
13178         unnecessary remove_contents() call
13179         (gtk_option_menu_class_init): add a "changed" signal, closes
13180         bug 40039
13181         (gtk_option_menu_update_contents): emit "changed" if the 
13182         active menu item changes
13183
13184         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
13185         cast to GtkObject, reported by Jonas Borgstrom
13186         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
13187         we can't do stuff with side effects in finalize. Instead, spew a
13188         warning if the loader isn't closed.
13189
13190         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
13191         colormap in here, non-X ports probably need to sync to this change
13192
13193         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
13194         assertion that colormap != NULL, you can set the colormap to NULL
13195         if you like.
13196         
13197         * Makefile.am: remove gtk-config-2.0
13198
13199         * configure.in: Use pkg-config to locate GLib. Remove
13200         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
13201         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
13202         Use pkg-config to locate Pango. Output correct Pango libs to
13203         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
13204
13205         * Makefile.am (pkgconfig_DATA): install only target-specific pc
13206         files
13207         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
13208         X11 pc files
13209
13210         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
13211         unref from here
13212
13213 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
13214
13215         * configure.in:
13216         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
13217
13218 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
13219
13220         * gtk/gtktextlayout.c
13221         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
13222         variable when moving back onto a single line.
13223
13224 2001-01-01  Havoc Pennington  <hp@redhat.com>
13225
13226         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13227
13228         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13229
13230         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
13231         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
13232
13233 2001-01-01  Havoc Pennington  <hp@redhat.com>
13234
13235         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
13236
13237         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
13238         GtkTextAttributes
13239
13240         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
13241         #40246
13242         (gtk_text_attributes_copy_values): rename from 
13243         gtk_text_attributes_copy
13244         (gtk_text_attributes_copy): a more standard GTK copy function, 
13245         which returns a new object
13246
13247 2001-01-01  Havoc Pennington  <hp@redhat.com>
13248
13249         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
13250         
13251         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
13252         don't fill in tree_view->priv->selection, kind of an unexpected
13253         side effect
13254
13255         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
13256         gtkintl.h
13257         
13258         * gtk/gtkcellrenderer.c: Remove definition of _ and include
13259         gtkintl.h
13260         (gtk_cell_renderer_get_property): remove calls to g_value_init
13261
13262         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
13263         gtkintl.h
13264
13265         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
13266         and include gtkintl.h
13267         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
13268         property names
13269
13270         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
13271         GtkTreeSelection
13272         (_gtk_tree_selection_new_from_with_view): rename, return
13273         GtkTreeSelection
13274         (_gtk_tree_selection_set_tree_view): rename with uscore
13275         (gtk_tree_selection_get_selected): fill in the "model" out param
13276         first, so it gets filled in even if we return at the top of the 
13277         function
13278         (gtk_tree_selection_real_select_all): add a comment and an else{}
13279         to clarify this a bit
13280         (gtk_tree_selection_real_unselect_all): add the same else{}
13281
13282         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
13283         set_tree_view to have underscore prefixes, move them to the
13284         private header, fix return type of new_with_tree_view
13285         (struct _GtkTreeSelection): mark struct
13286         fields private  
13287
13288         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
13289         GtkTreeModelFlags, not a guint
13290         (gtk_tree_path_prev): return gboolean not gint
13291         (gtk_tree_path_up): return gboolean not gint
13292
13293         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
13294         return GtkTreeModelFlags, not a guint
13295
13296         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
13297         that child model is non-null before unrefing it
13298         (g_value_int_compare_func): make this a qsort compare func, not 
13299         a boolean predicate
13300
13301         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
13302         (add -umn to the end), and mark it unimplemented
13303         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
13304         I don't see what it's for - doesn't the model always sort itself?
13305         (gtk_tree_model_sort_set_compare): this had the wrong signature
13306
13307         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
13308         Fix the docs to say that it destructively replaces existing
13309         attributes (previously said that it added attributes).
13310         (gtk_tree_view_column_set_visible): canonicalize bool before
13311         equality testing. Also, check for realization before
13312         hiding/showing the tree_column->window; if this window could exist
13313         before realization, then it's busted and needs fixing, we can't 
13314         create GDK resources pre-realization. Also, remove
13315         superfluous queue_resize(), since set_size() does that for us.
13316         (gtk_tree_view_column_set_col_type): check realization before 
13317         using tree_column->window
13318
13319         * gtk/gtktreedatalist.c: fix filename in copyright notice
13320
13321 2000-12-31  Havoc Pennington  <hp@pobox.com>
13322
13323         * gtk/gtktextview.c: Rearrange all the
13324         scroll-while-dragging-or-selecting code to be different, not
13325         necessarily better. ;-)
13326         (gtk_text_view_scroll_to_mark): Change this
13327         function to take within_margin as a fraction instead of a pixel
13328         value, and to take alignment arguments (indicating where to align 
13329         the mark inside the visible area)
13330         
13331         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
13332         to GtkObject
13333
13334         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
13335         behavior so that offsets past the end of the line are not 
13336         allowed, and an offset equal to the line length moves the iterator
13337         to the next line
13338         (gtk_text_iter_set_line_index): make parallel change
13339         (gtk_text_iter_get_bytes_in_line): add this function
13340         
13341         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
13342         of byte indexes off the end of the line; byte index at the end of
13343         the line now returns FALSE and doesn't fill in the requested
13344         values, byte index past the end of the line is an error.  Also,
13345         don't allow -1 offset anymore, since its meaning is unclear.
13346
13347         This change exposes some bug in visual cursor motion, where we
13348         end up with a huge invalid byte index; needs fixing. Symptom of 
13349         bug is a crash when you hit up arrow.
13350         
13351         (_gtk_text_line_char_locate): match the change to byte_locate
13352
13353         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
13354         from start of line properly. fixes bug reported by Mikael
13355         Hermansson where backspace would delete all text before the
13356         cursor.
13357
13358 2000-12-30  Tor Lillqvist  <tml@iki.fi>
13359
13360         * gdk/win32/gdkwindow-win32.c
13361         (gdk_window_impl_win32_get_visible_region): New function, as in
13362         the X11 backend.
13363         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
13364         instead of duplicating the same code here.
13365
13366         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
13367         GDK_COLORMAP macro.
13368
13369         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
13370         destroy function.
13371         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
13372         access that.
13373
13374         * gtk/gtk.def: Update.
13375
13376         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
13377
13378 2000-12-30  Havoc Pennington  <hp@pobox.com>
13379
13380         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
13381         colormap on input only windows, to avoid special cases all over
13382         the code for these windows.
13383
13384 2000-12-26  Tor Lillqvist  <tml@iki.fi>
13385
13386         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
13387         we are on a palettized display ("PseudoColor" in X11), as the code
13388         for that doesn't work anyway, and never has.
13389
13390 2000-12-22  Alexander Larsson  <alexl@redhat.com>
13391
13392         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
13393         Don't use isprint() for chars > 255.
13394
13395 2000-12-21  Havoc Pennington  <hp@redhat.com>
13396
13397         * tests/testtreeview.c: more work
13398
13399 2000-12-21  Alexander Larsson  <alexl@redhat.com>
13400
13401         * docs/README.linux-fb:
13402         Update the docs to the new pangoft2 way.
13403
13404 2000-12-21  Alexander Larsson  <alexl@redhat.com>
13405
13406         * configure.in:
13407         For linux-fb get the pangoft2 cflags and libs. This needs a recent
13408         pango version.
13409         Remove modules/linux-fb/Makefile.
13410
13411         * gdk/linux-fb/gdkdrawable-fb2.c:
13412         Render glyphs using freetype.
13413
13414         * gdk/linux-fb/gdkfb.h:
13415         Add new fb-specific functions needed for managing windows.
13416
13417         * gdk/linux-fb/gdkmain-fb.c:
13418         Remove gdk_font_init/fini() calls.
13419
13420         * gdk/linux-fb/gdkpango-fb.c:
13421         Remove old implementation. Use pangoft2 instead.
13422
13423         * gdk/linux-fb/gdkprivate-fb.h:
13424         Remove PangoFBFont and related stuff.
13425
13426         * gdk/linux-fb/gdkwindow-fb.c:
13427         Implement drawable->get_visible_region.
13428         Implement support for _gdk_window_set_child_handler () and
13429         _gdk_window_get_decorations().
13430
13431         * modules/Makefile.am:
13432         Remove linux-fb subdir.
13433
13434         * modules/linux-fb/*:
13435         Removed all.
13436         
13437 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
13438
13439         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
13440         calls, as they are no longer needed.
13441
13442         * gtk/gtktreemodelsort.c: Fix up the comparison code.
13443         
13444         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
13445         figure out how to emit a signal on an interface.
13446
13447 2000-12-20  Havoc Pennington  <hp@redhat.com>
13448
13449         * tests: new directory to contain tests, gtk/test* should move
13450         here sometime (with appropriate on-cvs-server hackery)
13451
13452         * tests/testtreeview.c, tests/Makefile.am: a test
13453         
13454         * configure.in (AC_OUTPUT): add tests/Makefile
13455
13456         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
13457         and "invisible_set" which were missing
13458
13459         * gtk/gtkrbtree.h: some cheesy indentation fix
13460         
13461 2000-12-20  Alexander Larsson  <alexl@redhat.com>
13462
13463         * gtk/gtkinvisible.c (gtk_invisible_realize):
13464         Attach the style to the window so that the style it is not
13465         leaked when unrealizing the window.
13466
13467 2000-12-18  Havoc Pennington  <hp@redhat.com>
13468
13469         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
13470         begin/end user action where appropriate
13471         (gtk_text_view_commit_handler): add begin/end user action
13472
13473         * gtk/gtktextbuffer.c: add begin/end user action signals, and
13474         bracket interactive operations with begin/end user action pair.
13475         
13476         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
13477         "interactive" arg from insert_text and delete_text signals.
13478         Add begin_user_action, end_user_action signals
13479         (gtk_text_buffer_begin_user_action): 
13480         (gtk_text_buffer_end_user_action): New functions to delimit 
13481         a user-visible action
13482
13483         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
13484         signals.
13485         
13486 2000-12-18  Havoc Pennington  <hp@redhat.com>
13487
13488         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
13489         was pretty non-working.
13490
13491         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
13492         by passing the length to g_utf8_validate().
13493
13494 2000-12-16  Havoc Pennington  <hp@pobox.com>
13495
13496         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
13497         Port to GObject, can go back in gdk-pixbuf after setting up 
13498         a gdk-pixbuf-marshal.h header over there.
13499
13500         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
13501         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
13502         args
13503         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
13504         set
13505         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
13506         here, do it when we create the buttons later
13507         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
13508         (gtk_tree_view_map): paranoia checks that column->button is shown 
13509         and unmapped
13510         (gtk_tree_view_size_request): only request visible children.
13511         Move header size calculation in here, for cleanliness, and 
13512         to maintain invariants for child widgets if we eventually 
13513         let users set different children inside the buttons
13514         (gtk_tree_view_map_buttons): factor out code to map buttons,
13515         since it was being called several times
13516         (gtk_tree_view_size_allocate_buttons): move_resize the drag
13517         windows instead of just moving them; their height may change 
13518         if we allow random widgets in there, or the theme changes.
13519         (gtk_tree_view_size_allocate): move button size allocation 
13520         above emitting the scroll signals, to ensure a sane state when we
13521         hit user code
13522         (gtk_tree_view_button_release): remove queue_resize after
13523         tree_view_set_size(), set_size() will handle any resize queuing
13524         that's needed
13525         (gtk_tree_view_focus_in): just queue a draw, don't fool with
13526         draw_focus goo
13527         (gtk_tree_view_focus): use gtk_get_current_event() and
13528         gdk_event_get_state()
13529         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
13530         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
13531         semicolon
13532         (gtk_tree_view_create_button): show the button here
13533         (gtk_tree_view_button_clicked): actually emit the clicked signal
13534         on the column
13535         (_gtk_tree_view_set_size): return right away if the size is
13536         unchanged, as a cheesy optimization
13537         (gtk_tree_view_setup_model): rename set_model_realized to 
13538         setup_model to match the flag that indicates whether we've 
13539         called it
13540         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
13541         exist, because set_scroll_adjustment does that and it shouldn't
13542         matter what order you call these in
13543         (gtk_tree_view_get_vadjustment): ditto
13544         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
13545         for paranoia
13546         (gtk_tree_view_set_headers_visible): call
13547         gtk_tree_view_map_buttons() instead of using cut-and-paste code
13548         (gtk_tree_view_append_column): clarify whether the return value
13549         is the count of columns before or after, and do the increment 
13550         separately from the return statement so you can tell from the code.
13551         (gtk_tree_view_remove_column): ditto
13552         (gtk_tree_view_insert_column): ditto
13553         (gtk_tree_view_get_column): remove g_return_if_fail for columns
13554         outside the existing range, the docs say that outside-range
13555         columns are allowed, so we handle them as documented. (Presumably
13556         this allows a nice loop with column != NULL as test.)
13557         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
13558         mean (left/right/center etc.).
13559         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
13560         (gtk_tree_view_expand_row): add docs
13561         (gtk_tree_view_collapse_row): add docs
13562
13563         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
13564         function to emit the clicked signal on a column
13565         
13566         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
13567         state of an event
13568         (gdk_event_get_time): don't treat GDK_SCROLL 
13569         as a button event, remove default case from switch so gcc 
13570         will whine if we don't explicitly handle all event types
13571
13572         * gtk/gtktreeselection.h: added some FIXME 
13573         
13574         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
13575         "columns" to "n_columns" and "column" to "columns" for clarity
13576
13577 2000-12-16  Havoc Pennington  <hp@pobox.com>
13578         
13579         * gtk/gtktextiter.c: General cleanup of the log attr iteration
13580         stuff. This should make e.g. the delete key work again in the
13581         text widget...
13582         (gtk_text_iter_forward_cursor_positions): handle negative count
13583         (gtk_text_iter_backward_cursor_positions): handle negative count
13584         (gtk_text_iter_forward_word_ends): handle negative count
13585         (gtk_text_iter_backward_word_starts): handle negative count
13586
13587         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
13588         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
13589         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
13590         GObject. No doubt will cause breakage.
13591
13592         * demos/gtk-demo/textview.c: remove hacks around
13593         non-GObject-ification of the text objects
13594
13595         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
13596         the text tag
13597         
13598 2000-12-14  Havoc Pennington  <hp@pobox.com>
13599
13600         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
13601         that we have Xrender
13602
13603 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
13604
13605         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
13606         Add two virtualized functions gdk_drawable_get_clip_region - to
13607         get the clip region when drawing.
13608         
13609         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
13610         use invalidate_region.
13611
13612         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
13613         region.
13614
13615         * acconfig.h configure.in: Check for Xft. For now, assume
13616         that if Xft is found, Pango was compiled with Xft support
13617         as well.
13618
13619         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
13620         gdk_colormap_query_color().
13621         
13622         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
13623         with Xft if appropriate.
13624
13625         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
13626         a pangoxft context if we have XFT and the environment
13627         variable GD_USE_XFT is set.
13628         
13629         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
13630         and also possibly an XftDraw structure.
13631
13632         * gtk/gtkfontsel.c: Handle the case where the font from the
13633         style doesn't match any of the fonts a bit better.
13634         
13635         * gtk/testgtk.c: Add tabs between directional segments for
13636         hebrew/arabic test. (Not really necessary, just a little
13637         prettier.)
13638
13639 2000-12-14  Havoc Pennington  <hp@redhat.com>
13640
13641         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
13642         reading a file
13643
13644 2000-12-14  Havoc Pennington  <hp@redhat.com>
13645
13646         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
13647         unused call to get_last_line()
13648
13649         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
13650         here until boxed is working (and maybe after that - we should
13651         really not gratuitously break old code)
13652
13653         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
13654         specific types for font_desc and tabs args, move them to
13655         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
13656         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
13657
13658         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
13659         use GTK_TYPE_POINTER for signal signatures as a hack-around
13660
13661         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
13662         PangoTabArray
13663
13664         * gtk/gtktextlayout.c (line_display_iter_to_index): 
13665         make static
13666         (line_display_index_to_iter): make static
13667
13668         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
13669         to marshal a string not a boxed
13670
13671         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
13672
13673         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
13674         since the UTF-8 isn't validated yet
13675
13676         * gtk/gtktextsegment.c (char_segment_check_func): don't require
13677         lines to end in '\n'
13678         
13679         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
13680         forward_to_delimiters, and grapheme boundaries
13681         (gtk_text_view_delete_from_cursor): properly handle non-newline
13682         delimiters, and grapheme boundaries
13683
13684         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
13685         to gtk_text_iter_forward_to_delimiters, and make it work properly
13686         if empty lines end with a character other than '\n'
13687
13688         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
13689         position
13690
13691 2000-12-15  Tor Lillqvist  <tml@iki.fi>
13692
13693         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
13694
13695         * gtk/gtk.def
13696         * gdk/gdk.def: Update.
13697
13698         * gdk/win32/gdkmain-win32.c
13699         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
13700         gdkmain-win32.c here.
13701
13702         * gdk/win32/makefile.mingw.in (all): No need to make
13703         gdk-win32res.o here, the makefile one step up will call us to make
13704         it.
13705
13706         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
13707         gdkkeys-win32.
13708
13709         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
13710
13711         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
13712         call to g_source_add().
13713
13714         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
13715         leak. Thanks to Andreas Kemnade.
13716
13717 2000-12-13  Havoc Pennington  <hp@pobox.com>
13718
13719         * gtk/gtktextbtree.h: Remove double _ in front of some functions
13720
13721         * gtk/gtktext*.[hc]: update accordingly
13722         
13723 2000-12-13  Havoc Pennington  <hp@pobox.com>
13724
13725         * gtk/gtktextbtree.h: Put _ in front of every function in this 
13726         header file
13727
13728         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
13729
13730 2000-12-13  Alex Larsson  <alexl@redhat.com>
13731
13732         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
13733         Add support for ps2 intellimouse.
13734
13735         * gdkkeyboard-fb.c:
13736         Move shift-F1 repaint handling to xlate handler only.
13737         
13738         * docs/README.linux-fb:
13739         Add imps2 to docs.
13740         Document the new refresh keys.
13741         
13742 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
13743
13744         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
13745
13746         * gtk/gtkbox.c: change property types from (u)long to (u)int for
13747         ::position and ::padding.
13748
13749         * gtk/gtkcontainer.c: make ::border_width an INT property.
13750
13751         * gtk/gtkpacker.c: make ::position an INT property.
13752
13753         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
13754         guard against NULL h/v scrollbars, since this is used at construction
13755         time.
13756
13757         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
13758         internal gtk_clist_constructor().
13759
13760         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
13761         gtk_ctree_constructor().
13762
13763         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
13764         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
13765
13766         * docs/reference/Makefile.am: fun stuff, disabled docs generation
13767         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
13768
13769         * gtk/gtkwidget.[hc]:
13770         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
13771         and gtk_widget_get().
13772         (gtk_widget_new): use g_object_new_valist().
13773         (gtk_widget_set): use g_object_set_valist().
13774
13775         * gtk/gtkobject.[hc]:
13776         removed gtk_object_arg_get_info(), gtk_object_getv(),
13777         gtk_object_query_args(), gtk_object_newv(),
13778         gtk_object_class_add_signals(),
13779         gtk_object_class_user_signal_new(),
13780         gtk_object_class_user_signal_newv(),
13781         gtk_object_arg_set(), gtk_object_arg_get(),
13782         gtk_object_args_collect(),
13783         gtk_object_default_construct(),
13784         gtk_object_constructed(),
13785         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
13786         removed nsignals, signals and n_args members from GtkObjectClass.
13787         (gtk_object_new): use g_object_new_valist().
13788         (gtk_object_set): use g_object_set_valist().
13789         (gtk_object_get): use g_object_get_valist().
13790         
13791         * gtk/gtkcompat.h: define gtk_object_default_construct().
13792         
13793         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
13794         g_object_new().
13795
13796         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
13797         fucntions, cleaned up method assignments (make sure your structures
13798         are setup properly before calling out). removed all GTK_CONSTRUCTED
13799         hacks ;)
13800
13801 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
13802
13803         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
13804         off-by-one error in checks. (Dave Lambert)
13805
13806 2000-12-12  Alexander Larsson  <alexl@redhat.com>
13807
13808         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
13809         Don't free gdk_fb_keyboard twice.
13810
13811 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
13812
13813         * gtk/testgtk.c:
13814         (create_tooltips): 
13815         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
13816         use GObject swapped_signal:: properties instead.
13817
13818         * gtk/gtkcellrenderertoggle.c: 
13819         * gtk/gtkcellrenderertextpixbuf.c: 
13820         * gtk/gtkcellrenderertext.c: 
13821         * gtk/gtkcellrendererpixbuf.c: 
13822         * gtk/gtkcellrenderer.c:
13823         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
13824         missing warnings for invalid property ids, install properties
13825         with g_object_class_install_property() now.
13826         
13827         * gtk/gtksignal.c:
13828         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
13829         
13830 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
13831         
13832         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
13833         to determine if a window is the focus widget within
13834         its toplevel.
13835
13836         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
13837         to be boolean.
13838
13839         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
13840         of the case where the container CAN_FOCUS to here instead
13841         of having it in each individual move-the-focus place.
13842
13843         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
13844         focusing to be geometric in a much more obvious sense. Arrowing
13845         around is still non-intuitive because it isn't perfect and
13846         because entries, etc, grab the arrow keys, but it at least
13847         usually will do what you expect now.
13848         
13849         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
13850         file.
13851
13852         * gtk/gtknotebook.c: Change tabs to be a single item in
13853         the focus chain. Make movement of focus on tabs with arrow
13854         keys wrap around.
13855         
13856         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
13857         CHECK_FIND_CHILD macro to give informative error messages
13858         instead of silent returns.
13859
13860         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
13861         flag since we handle GdkReturn on the tabs.
13862
13863         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
13864         windows rather than sending expose events directly.
13865
13866         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
13867         definition for GtkNotebookPage into .c file, since it is private.
13868
13869         * gtk/testgtk.c (create_notebook): Add option for 
13870         testing borderless notebook.
13871
13872         * gtk/testgtk.c (page_switch): Removed egregious poking
13873         around in GTK+ internals.
13874
13875         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
13876
13877         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
13878         properly through gtk_clist_focus. Make the title headers a
13879         single item in the tab-focus chain, and make left-right wrap
13880         around.
13881
13882         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
13883         focus method so that wrapping around works properly.
13884
13885         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
13886         that is handled for the widget now. 
13887
13888 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
13889
13890         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
13891         widgets as TOPLEVEL.
13892
13893         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
13894         TOPLEVEL widgets are containers.
13895
13896         * gtk/gtkinvisible.h: Remove useless include.
13897
13898 2000-12-11  Havoc Pennington  <hp@redhat.com>
13899
13900         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
13901         Handle chopping off \r\n and 0x2029 in addition to \n before
13902         passing to PangoLayout
13903
13904         * gtk/gtkimcontextsimple.c
13905         (gtk_im_context_simple_get_preedit_string): 
13906         return an empty string if no match is pending
13907
13908         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
13909         assertion that the returned preedit string was sane
13910
13911         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
13912         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
13913         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
13914
13915 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
13916
13917         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
13918         Fix up finalizer to chain to its parent.
13919
13920 2000-12-11  Alexander Larsson  <alexl@redhat.com>
13921
13922         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
13923         Clearified the difference between the keyboard types. Wrote a note
13924         about the magic sysrq key to get out of raw mode.
13925
13926 2000-12-09  James Henstridge  <james@daa.com.au>
13927
13928         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
13929         member to hold masks for detecting the start of a protocol packet.
13930         (mouse_devs): add packet start masks for ps2 and ms device types.
13931         Left the mask for fidmour blank, as I have no idea what it should
13932         be.
13933         (handle_mouse_io): skip bytes until we get to the start of a
13934         packet.  My Logitech mouse seems to be passing an extra NULL pad
13935         byte, and GPM does a similar thing here.
13936         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
13937         this is the ms mouse driver.
13938         (gdk_fb_mouse_ms_packet): fix up button handling, which was
13939         completely broken except for button1.  It was checking the wrong
13940         bit in the packet for the status of the right mouse button, and
13941         wrongly assuming right == button2 rather than 3.  I fixed that and
13942         also added support for middle button (button2).
13943
13944 2000-12-08  Havoc Pennington  <hp@redhat.com>
13945
13946         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
13947         that cause a segfault on text insertion
13948
13949         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
13950         warning
13951
13952         * gtk/gtktextiter.c (test_log_attrs): use
13953         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
13954
13955         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
13956         Get log attrs for a line, using a cache stored on the buffer
13957         
13958         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
13959         reported by Jeff Franks
13960
13961 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
13962
13963         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
13964         /dev/ttyS0 -> /dev/mouse
13965
13966 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
13967
13968         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
13969         Added dummy gdk_fontset_load.
13970
13971 2000-12-08  Alexander Larsson  <alexl@redhat.com>
13972
13973         * docs/README.linux-fb:
13974         * docs/Makefile.am:
13975         Initial GtkFB docs.
13976         
13977         * gdk/linux-fb/Makefile.am:
13978         Define GDK_DATA_PREFIX.
13979
13980         * gdk/linux-fb/gdkmain-fb.c:
13981         Fix typo.
13982         Change default display to /dev/fb0.
13983
13984         * gdk/linux-fb/gdkpango-fb.c:
13985         Add $(prefix)/share/fonts/ to font path.
13986         
13987 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
13988
13989         * gdk/linux-fb/gdkkeyboard-fb.c:
13990         New file containing the abstracted keyboard driver. Most code
13991         taken from gdkinput-ps2.c
13992
13993         * gdk/linux-fb/gdkinput-ps2.c:
13994         Removed file.
13995         
13996         * gdk/linux-fb/Makefile.am:
13997         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
13998
13999         * gdk/linux-fb/gdkcolor-fb.c:
14000         display->fb was renamed to display->fb_fd.
14001
14002         * gdk/linux-fb/gdkcursor-fb.c:
14003         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14004
14005         * gdk/linux-fb/gdkinput.c:
14006         Moved gdk_input_init here from gdkinput-ps2.c
14007
14008         * gdk/linux-fb/gdkmain-fb.c:
14009         display->fb was renamed to display->fb_fd.
14010         Now the tty and the console is opened here instead
14011         of in the keyboard driver. Also check GDK_VT to see what
14012         tty to open.
14013         Move gdk_beep () here from gdkinput-ps2.c
14014         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14015
14016         * gdk/linux-fb/gdkmouse-fb.c:
14017         Add header.
14018         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14019         Return correct keyboard modifiers.
14020         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
14021
14022         * gdk/linux-fb/gdkprivate-fb.h:
14023         Add tty and vt info to display.
14024         Add orignal modeinfo storage to display
14025         Update global functions
14026
14027         * gdk/linux-fb/gdkwindow-fb.c:
14028         Added gdk_fb_window_find_focus().
14029         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14030
14031 2000-12-07  Havoc Pennington  <hp@pobox.com>
14032
14033         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
14034         function, noticed by Alex
14035
14036 2000-12-06  Elliot Lee  <sopwith@redhat.com>
14037
14038         * configure.in: Detect freetype properly
14039
14040         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
14041         above.
14042
14043 2000-12-06  Alexander Larsson  <alexl@redhat.com>
14044
14045         * gdk/linux-fb/Makefile.am:
14046         Add gdkmouse-fb.c
14047         
14048         * gdk/linux-fb/gdkmouse-fb.c:
14049         New file. Abstracted the mouse drivers a bit.
14050
14051         * gdk/linux-fb/gdkcursor-fb.c:
14052         The cursor hide/show functions was moved here from gdkinput-ps2.c.
14053
14054         * gdk/linux-fb/gdkinput-ps2.c:
14055         Removed old mouse handling code. Moved cursor handling code
14056         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
14057         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
14058         gdk_mouse_get_info.
14059
14060         * gdk/linux-fb/gdkmain-fb.c:
14061         Pass NULL pointers for x,y in gdk_mouse_get_info call.
14062
14063         * gdk/linux-fb/gdkprivate-fb.h:
14064         Removed public gdk_fb_find_common_ancestor, added and renamed
14065         functions for the new mouse handling code.
14066
14067         * gdk/linux-fb/gdkwindow-fb.c:
14068         Moved gdk_fb_window_send_crossing_events here. added global
14069         variable gdk_fb_window_containing_pointer. made
14070         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
14071         renamed to gdk_mouse_get_info.
14072
14073 2000-12-06  Alexander Larsson  <alexl@redhat.com>
14074
14075         * gdk/linux-fb/gdkevents-fb.c:
14076         Update to match latest gmain/gsource changes.
14077
14078         * gdk/linux-fb/gdkinput-ps2.c:
14079         Bogus gdk_keymap_get_entries_for_keycode implementation so that
14080         it links. Will be implemented later.
14081
14082 2000-12-03  Havoc Pennington  <hp@pobox.com>
14083
14084         * gdk/Makefile.am: add gdkkeys.[hc]
14085
14086         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
14087         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
14088
14089         * acconfig.h, configure.in: add checks and command line options
14090         for XKB
14091
14092         * gdk/x11/gdkkeys-x11.c: Implement the above functions
14093         
14094         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
14095         and group in the key event
14096
14097         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
14098         field with the low-level hardware key code, and a group
14099         field with the keyboard group
14100
14101         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
14102         and declare a couple globals used for keymap handling
14103         
14104         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
14105         hold down Shift-Control and type a hex number to get a Unicode 
14106         character corresponding to the hex number
14107         (gtk_im_context_simple_get_preedit_string): Fix cursor position
14108         (return bytes not chars)
14109
14110 2000-12-05  Elliot Lee  <sopwith@redhat.com>
14111
14112         * gdk/gdkcolor.h: Make GdkColor specify element sizes
14113         to avoid waste on 64-bit platforms.
14114
14115 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
14116
14117         * INSTALL: Fix link to PNG home, remove reference
14118         to fribidi.
14119
14120         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
14121         
14122         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
14123         tested.)
14124
14125         * gtk/gtkcheckmenuitem.c: Permanently turn on
14126         always_show_toggle.
14127
14128         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
14129         be NULL. (Vladimir Klebanov, #26545)
14130
14131         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
14132         some signed/unsigned comparison problems. (#6510,
14133         David Kaelbling)
14134
14135         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
14136         return type to boolean (Oskar Liljeblad, #18648)
14137
14138 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14139
14140         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
14141         Remove bogus colormap setting.
14142
14143 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14144
14145         * gdk/linux-fb/gdkcolor-fb.c:
14146         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
14147
14148         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
14149         Must set colormap.
14150         
14151 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
14152
14153         * docs/tutorial/gtk-tut.sgml: DND updates
14154
14155 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
14156
14157         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14158         Remove old debug g_warning().
14159         (gdk_fb_draw_drawable): The src argument can be either a wrapper
14160         or an implementation, just pass the implementation to draw_drawable_2.
14161         
14162         * gdk/linux-fb/gdkprivate-fb.h:
14163         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
14164
14165         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14166         clear and invalidate area when window is destroyed.
14167         (send_map_events): Remove old commented out code.
14168
14169 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14170
14171         * gdk/linux-fb/gdkpango-fb.c:
14172         Use italic instead of oblique in font aliases.
14173         
14174         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
14175         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
14176         other unsupported functions.
14177
14178 2000-12-04  Havoc Pennington  <hp@redhat.com>
14179
14180         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
14181
14182         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
14183
14184         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
14185
14186         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
14187         hack to avoid infinite loops (synthetic expose event) - 
14188         Owen has more appropriate fixes in a branch he'll check in later.
14189
14190         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
14191         separator, CR, and CRLF as line ends
14192
14193         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
14194         into lines using pango_find_paragraph_boundary(); other bits of
14195         the widget are still going to be broken if the boundary isn't '\n'
14196         though
14197
14198 2000-12-04  Alexander Larsson  <alexl@redhat.com>
14199
14200         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
14201         multiply.
14202
14203         * gdk/linux-fb/gdkpango-fb.c:
14204         Copied some 26.6 scaling macros from pango to clean up the rounding.
14205         (pango_fb_font_get_glyph_info): Correct sign on x value.
14206
14207         * gdk/linux-fb/gdkprivate-fb.h:
14208         Removed unreferenced external functions.
14209
14210         * modules/linux-fb/Makefile.am: Use ` instead of '.
14211
14212         * modules/linux-fb/basic.c:
14213         Remove dead code. In particular the dummy lang engine which broke all
14214         pango layouts in GtkFB. Don't include tables-big.i anymore.
14215
14216         * modules/linux-fb/tables-big.i:
14217         Upgrade to latest version from pango. Left for reference, basic_ranges
14218         moved to basic.c.
14219         
14220 2000-12-04  Havoc Pennington  <hp@redhat.com>
14221
14222         Fix bugs Alex found:
14223         
14224         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
14225         to "draw"
14226
14227         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
14228
14229         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
14230
14231         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
14232         implementation in here, apparently the expose() implementation was
14233         dead code.
14234
14235 2000-12-04  Alexander Larsson  <alexl@redhat.com>
14236
14237         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14238         Return positive descent.
14239
14240 2000-12-02  Havoc Pennington  <hp@pobox.com>
14241
14242         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
14243         method and signal
14244         
14245         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
14246         calls gdk_window_process_updates() to push the exposes through
14247         (gtk_widget_class_init): No more draw signal, no
14248         gtk_widget_real_draw()  
14249         
14250         * gtk/gtkbin.c (gtk_bin_draw): remove
14251
14252         * gtk/gtkbox.c (gtk_box_draw): remove
14253
14254         * gtk/gtkbutton.c (gtk_button_draw): remove
14255
14256         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
14257
14258         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
14259
14260         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
14261
14262         * gtk/gtkclist.c (gtk_clist_draw): remove
14263
14264         * gtk/gtkentry.c (gtk_entry_draw): remove
14265
14266         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
14267
14268         * gtk/gtkfixed.c (gtk_fixed_draw): remove
14269
14270         * gtk/gtkframe.c (gtk_frame_draw): remove
14271
14272         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
14273
14274         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
14275
14276         * gtk/gtklayout.c (gtk_layout_draw): remove
14277
14278         * gtk/gtklist.c (gtk_list_draw): remove
14279
14280         * gtk/gtklistitem.c (gtk_list_item_draw): remove
14281
14282         * gtk/gtkmenu.c (gtk_menu_draw): remove
14283
14284         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
14285
14286         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
14287
14288         * gtk/gtknotebook.c (gtk_notebook_draw): remove
14289
14290         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
14291
14292         * gtk/gtkpacker.c (gtk_packer_draw): remove
14293
14294         * gtk/gtkrange.c (gtk_range_draw): remove
14295
14296         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
14297
14298         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
14299
14300         * gtk/gtktable.c (gtk_table_draw): remove
14301
14302         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
14303
14304         * gtk/gtktext.c (gtk_text_draw): remove
14305
14306         * gtk/gtktextview.c (gtk_text_view_draw): remove
14307
14308         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
14309
14310         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
14311
14312         * gtk/gtktree.c (gtk_tree_draw): remove
14313
14314         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
14315
14316         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
14317
14318         * gtk/gtkviewport.c (gtk_viewport_draw): remove
14319
14320         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
14321
14322         * gtk/gtkvscale.c (gtk_vscale_draw): remove
14323
14324         * gtk/gtkwindow.c (gtk_window_draw): remove
14325
14326 2000-20-01  Anders Carlsson  <andersca@gnu.org>
14327
14328         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
14329         a GtkToggleButton is both insensitive and active, it was being
14330         drawn by the GtkButton draw handler which doesn't check the
14331         state. Now it's calling gtk_toggle_button_paint instead.
14332         
14333 2000-12-01  Havoc Pennington  <hp@redhat.com>
14334
14335         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
14336         dangling pointers to the appearance attributes from the 
14337         line display
14338
14339         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
14340         width/height to mean "full width/height of drawable"
14341
14342         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
14343         click to select word/line
14344         
14345         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
14346         when getting log attrs. Get a slice, so that pixmaps and stuff
14347         are properly handled.
14348
14349         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
14350         paste into the selection (replaces selection now, previously
14351         crashed or added to selection). Reveals longstanding btree bug -
14352         select multiple lines, middle-click on the selection, boom. This
14353         isn't related to my changes though.
14354
14355         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
14356         PangoLogAttrs changes
14357         (gtk_entry_move_backward_word): ditto
14358
14359         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
14360         functions return bool whether the iter moved onto a
14361         dereferenceable position.
14362  
14363         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
14364         functions for motion in terms of display lines.
14365
14366         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
14367         get the buffer a mark is inside
14368         
14369 2000-12-01  Alexander Larsson  <alexl@redhat.com>
14370
14371         * gdk/linux-fb/Makefile.am:
14372         * modules/linux-fb/Makefile.am:
14373         Freetype 2 final uses freetype-config
14374
14375         * gdk/linux-fb/gdkpango-fb.c:
14376         Upgrade to use Freetype 2 final.
14377         More flexible support for font aliases, this also fixes a bug with
14378         GtkFontSelector, as the aliases must be visible in the font/family list,
14379         or GtkFontSelector reads uninitialized memory.
14380
14381 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
14382
14383         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
14384         XGetIMValues to properly terminate variable argument list, and do
14385         NULL return check for ic_values and xim_styles.
14386
14387         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
14388         Restore preedit state after XmbResetIC().
14389         
14390         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
14391         XvaCreateNestedList() should take XvaNestedList, but not
14392         XvaNestedList*.
14393
14394         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
14395         preedit_draw_callback, preedit_caret_callback): Match
14396         "preedit-changed" signal name to "preedit_changed" to be
14397         consistent to the spec.
14398
14399         * gtk/gtkimcontextsimple.c (check_table):
14400         Match "preedit-changed" to "preedit_changed" to be consistent
14401         to the spec.
14402
14403 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
14404
14405         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
14406         gc->clip_region == NULL>
14407
14408 2000-11-30  Tor Lillqvist  <tml@iki.fi>
14409
14410         Changes by Hans Breuer:
14411         
14412         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
14413         Dont't use negative width and height as max_hints. This fixes
14414         Owen's recent testgtk changes for win32.
14415
14416         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
14417         gdk_win32_hdc_release): These are exported and may be called with
14418         other drawable types than our GdkDrawableImplWin32 (?).
14419
14420         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
14421         so always #define USE_BACKING_STORE.
14422
14423         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
14424         of printf for debugging output.
14425
14426         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
14427         
14428         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
14429
14430         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
14431         declaration.
14432
14433         * gtk/gtktexttypes.h: Ditto.
14434
14435         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
14436         (GDK_VoidSymbol) also if in case of arg check failure.
14437
14438         * gtk/gtkimcontextsimple.c
14439         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
14440         position to the pointer, but to the variable it points to.
14441
14442         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
14443
14444         * gtk/gtk.def: Updates.
14445
14446 2000-11-29  Elliot Lee  <sopwith@redhat.com>
14447
14448         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
14449         GTK_TYPE_TREE_MODEL.
14450
14451 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14452
14453         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
14454         Set the size of the font from the description.
14455         (gdk_text_width): Gross hack that calculates the width
14456         of text by text_length * size/2. This is necessary because
14457         GtkLabel does some ugly gtk_string_width call to calculate
14458         an good size.
14459         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
14460
14461 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
14462
14463         * docs/tutorial/gtk-tut.sgml: DND updates
14464
14465 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14466
14467         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
14468         If you pass width or height == 0 to gdk_window_clear_area they
14469         should be calculated from the window size.
14470
14471 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14472
14473         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
14474         a grab, but no grab-cursor, use the cursor from the grabbed
14475         window. (gdk_fb_window_send_crossing_events): Send normal
14476         enter/leave notifications if grab and owner_events == TRUE.
14477
14478 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14479
14480         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
14481         Do implicit button grabs, even if the window doesn't
14482         want the event.
14483         (gdk_fb_window_send_crossing_events): If there is a
14484         grab, only the grabbed window gets normal enter/leave
14485         notifications. On ungrab go from grabbed window to current.
14486         Don't send any notification to b when propagating from c -> b.
14487         If setting a grab on window, don't set prev_window.
14488         (handle_mouse_input): Send enter/leave events to the window the
14489         mouse is over, not the grabbed one.
14490         
14491 2000-11-28  Elliot Lee  <sopwith@redhat.com>
14492
14493         * gdk/gdkregion-generic.c: Zap warning.
14494         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
14495         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
14496
14497 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
14498
14499         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
14500         The cursor should be hidden if it is part of either the
14501         source or destination region. Not only if it is in both.
14502         (gdk_window_set_transient_for): Silence warnings.
14503
14504 2000-11-28  Alexander Larsson  <alexl@redhat.com>
14505
14506         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
14507         The default mode in X is Pie Arcs, therefore that is
14508         what Gtk+ uses.
14509
14510 2000-11-28  Alexander Larsson  <alexl@redhat.com>
14511
14512         * gdk/linux-fb/gdkinput-ps2.c:
14513         Implement correct EnterNotify/LeaveNotify:
14514         (gdk_fb_window_send_crossing_events): New function that sends
14515         all GdkCrossingEvents from the last mouse-window to the specified
14516         destination.
14517         (gdk_fb_window_visibility_crossing): Removed function.
14518         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
14519         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
14520         instead of gdk_window_get_pointer() for better readability.
14521
14522         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
14523         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
14524
14525         * gdk/linux-fb/gdkprivate-fb.h:
14526         removed gdk_fb_window_visibility_crossing, added
14527         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
14528
14529         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
14530         New function that finds the least common ancestor of two windows.
14531         (gdk_window_show, gdk_window_hide):
14532         Use gdk_fb_window_send_crossing_events.
14533         (gdk_fb_window_move_resize): Send configure events to toplevel
14534         windows. Use gdk_fb_window_send_crossing_events.
14535
14536 2000-11-27  Havoc Pennington  <hp@redhat.com>
14537
14538         * gtk/gtkprivate.h (enum): Remove a trailing comma
14539
14540 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
14541
14542         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
14543         the "changed" callback of the adjustment.  We need to redraw the
14544         spin button's arrows when the adjustment's range changes.
14545         (adjustment_changed_cb): Draw the arrows.
14546         (gtk_spin_button_value_changed): Draw the arrows.
14547
14548 2000-11-23  Alexander Larsson  <alexl@redhat.com>
14549
14550         * gdk/linux-fb/gdkselection-fb.c:
14551         Initial selection implementation.
14552
14553         * gtk/gtkselection.c:
14554         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
14555         requestor in gtk_selection_request.
14556         
14557         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
14558         Added gdk_selection_property atom.
14559
14560         * gdk/linux-fb/gdkprivate-fb.h:
14561         Export _gdk_selection_window_destroyed.
14562         Removed mask_off_x/y from GdkCursorPrivateFB.
14563         Removed hbearing, added top, left to PangoFBGlyphInfo.
14564
14565         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14566         Call _gdk_selection_window_destroyed
14567         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
14568         the root window has been created.
14569         (static_dx_hack, static_dy_hack, compare_draw_rects,
14570         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
14571         in region. They are already sorted. Instead just traverse them in
14572         reverse if draw_direction < 0.
14573         
14574         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
14575         Double-clicks must be sent after the normal button_press.
14576         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
14577         
14578         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
14579         Pass _gdk_fb_screen_gc instead of NULL.
14580
14581         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
14582         Initialize gdk_selection_property.
14583         (gdk_event_make): Remove unused code.
14584
14585         * gdk/linux-fb/gdkcursor-fb.c:
14586         Make the pixmap for the cursor the same size as the mask. Also remove
14587         the mask_off_x/y fields in GdkCursorPrivateFB and combine
14588         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
14589         Now the whole cursor is visible.
14590
14591         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14592         Fix bug where xdest+height instead of ydest+height was used
14593         to calculate if the source and dest overlapped. This fixes the
14594         redraw bug when the main window in testgtk was scrolled when
14595         partially covered by a tall window.
14596         Copy rectangles in region in order depending on draw_direction.
14597         Also moved the draw_direction flipping of start_y and end_y into
14598         the gc functions, as this might not be what all of them want.
14599         (gdk_fb_draw_lines): Support dashed lines.
14600         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
14601         so that the text is positioned correctly (was 1 pixel high).
14602
14603         gdk/linux-fb/gdkgc-fb.c:
14604         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
14605         all lines were drawn a pixel to short. Also checked the default of
14606         the rest of the values, and they're the same as X now.
14607
14608         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
14609         Clean up pixel positioning of the glyphs. Just use bgy->top and
14610         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
14611         to all divisions to get correct rounding behaviour.
14612
14613         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
14614         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
14615         Moved start_y/end_y flip into draw_drawable implementations.
14616         Flip also x rendering when draw_direction < 0.
14617         Remove unneccesary multiply with draw_direction.
14618
14619 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
14620
14621         * docs/tutorial/gtk-tut.sgml:
14622           - get rid of gtk_toggle_button_toggled FUD
14623           - start DND section - needs work - based on:
14624                 http://wolfpack.twu.net/docs/gtkdnd/
14625
14626 2000-11-22  Alexander Larsson  <alexl@redhat.com>
14627
14628         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14629         Correct calculation of font metrics. Now GtkEntrys have sane
14630         size.
14631
14632 2000-11-22  Alexander Larsson  <alexl@redhat.com>
14633
14634         * gdk/gdktypes.h:
14635         Add new type GdkSpan
14636         
14637         * docs/reference/gdk/gdk-sections.txt,
14638         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
14639         gdk/gdkregion.h:
14640         Implement and document gdk_region_spans_intersect_foreach.
14641
14642         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
14643         Add new file gdkrender-fb.c which contains all core
14644         rendering code.
14645         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
14646         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
14647         (optimized rectangle fillers).
14648
14649         * gdk/linux-fb/gdkdrawable-fb2.c:
14650         Move all rendering code to gdkrender-fb.c.
14651         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
14652         Use the new span intersection functions in gdk_fb_fill_spans.
14653         gdk_fb_draw_rectangle() clips filled rectangles and calls
14654         gc->fill_rectangle with the result.
14655         gdk_fb_fill_spans() gets extra argument "sorted".
14656
14657         * gdk/linux-fb/gdkevents-fb.c:
14658         Remove unused includes and defines.
14659         New function gdk_fb_get_time() to get correct time for events.
14660
14661         * gdk/linux-fb/gdkinput-ps2.c:
14662         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
14663         Make sure to set the time of all events.
14664
14665         * gdk/linux-fb/gdkmain-fb.c:
14666         Use gdk_fb_get_time ().
14667
14668         * gdk/linux-fb/gdkprivate-fb.h:
14669         New virtual GC calls: fill_span & fill_rectangle.
14670         Export gdk_fb_get_time().
14671         gdk_fb_fill_spans() gets extra argument "sorted".
14672
14673         * gdk/linux-fb/mi*.c:
14674         Use GdkSpan instead of GdkRectangle.
14675         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
14676         from XFree 4 source)
14677         
14678 2000-11-22    <jrb@redhat.com>
14679
14680         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
14681         reversing the order in an if statement will do.  Doing so managed
14682         to make the treemodelsort half work.  Other half will follow after
14683         I get the insert function fully fixed.
14684
14685 2000-11-21  Elliot Lee  <sopwith@redhat.com>
14686         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
14687         more than 2 bits. Besides, I need to implement an evil hack. :)
14688
14689 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
14690
14691         * docs/tutorial/gtk-tut.sgml: minor corrections
14692
14693 2000-11-20  Jonathan Blandford <jrb@redhat.com>
14694         * gtk/gtktreemodelsort.h: Add convertion functions to let you
14695           convert to and from relative path's and iters.
14696
14697         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
14698           testing sorting functions a bit better.  Currently broken -- will
14699           fix in morning.
14700
14701 2000-11-20  Havoc Pennington  <hp@redhat.com>
14702
14703         * gtk/gtkwidget.c: Documented a bunch of functions in here
14704         (gtk_widget_realize): Warn if you try to realize
14705         a widget with no parent that isn't a toplevel
14706         (gtk_widget_intersect): return a gboolean
14707
14708 2000-11-20  Havoc Pennington  <hp@redhat.com>
14709
14710         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
14711         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
14712         scrolling to be implemented in GDK to finish. Also, right now
14713         we just size_allocate all children on every layout change,
14714         which is pretty lame. Test commented out of testtext.c, 
14715         until it works better.
14716
14717 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
14718
14719         * gdk/linux-fb/gdkdrawable-fb2.c:
14720         Removed unused arguments from gdk_fb_drawable_get_pixel().
14721
14722         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
14723         Renamed fidur specific mouse packet data in MouseDevice to
14724         generic. Used it in ps2 mouse handling code to avoid blocking
14725         reads.
14726
14727 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
14728
14729         * demos/gtk-demo/main.c: Changed to have the list become
14730         non-italic when the demo window is destroyed through an external
14731         event (like a close button).  Doing so found three bugs in the
14732         widget.
14733
14734         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
14735
14736         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
14737         we actually set the cell.
14738
14739         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
14740
14741         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
14742         free a leaked path.  Thanks memprof.
14743
14744 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
14745
14746         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
14747         off-by-one error when destroying allocated segments
14748         on failure. (Elliot)
14749
14750 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
14751
14752         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
14753         memleaks found by Evan Martin.
14754
14755 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
14756
14757         * Released 1.3.2
14758         
14759         * NEWS: Updates for 1.3.2
14760
14761 2000-11-17  Tor Lillqvist  <tml@iki.fi>
14762
14763         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
14764         but in general for window system specific events.
14765
14766         * gtk/gtk.def
14767         * gtk/makefile.mingw.in
14768         * gtk/makefile.msc.in: Update.
14769         
14770         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
14771
14772 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
14773
14774         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
14775         distribute gtk.immodules.
14776
14777         * gtk/Makefile.am (install-data-local): Don't install the
14778         gtk.immodules file created for the uninstalled modules;
14779         instead run gtk-query-immodules after install
14780
14781 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
14782
14783         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
14784         -rpath to the right install location.
14785
14786         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
14787         -export-dynamic.
14788
14789         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
14790         properly.
14791
14792 2000-11-15  Havoc Pennington  <hp@pobox.com>
14793
14794         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
14795         patch from Mikael Hermansson to temporarily stop blinking while
14796         the user is using the keyboard to type or navigate. 
14797
14798         Also, when blinking, stay on for longer than we stay off. Also,
14799         return from start_cursor_blink if !cursor_visible, to save
14800         checking that flag all over the place before we call
14801         start_cursor_blink.
14802
14803 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
14804
14805         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
14806         only contain a "fontset" line, which is now ignored.
14807
14808         * gtk/gtkentry.c (gtk_entry_button_release): Make 
14809         double-click-to-select-word work.
14810         
14811 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
14812
14813         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
14814         Don't move back one char when we are actually at the end of the 
14815         paragraph.
14816
14817 2000-11-15  Robert Brady  <robert@suse.co.uk>
14818
14819         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
14820         'o' < 'p'.
14821         
14822         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
14823         bind_textdomain_codeset.
14824
14825         (gtk_init_check): Make the warning about translating default:LTR
14826         sterner.
14827         
14828 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
14829
14830         * **/Makefile.am : remove unecessary rules for win32-specific
14831         config-substituted targets. If you want these rules, use
14832         --enable-maintainer-mode (called automatically by autogen.sh).
14833         Stops a lot of unneccessary make-time warnings.
14834
14835         * gtk/gtktext{layout,display}.c: Factor in total width as
14836         well as screen when figuring alignment for word-wrap as well as
14837         no wrap; this is necessary to handle lines that cannot be wrapped
14838         at all.
14839
14840 2000-11-15  Havoc Pennington  <hp@redhat.com>
14841
14842         * gtk/testtext.c: Implement essential color cycling feature
14843
14844 2000-11-15  Havoc Pennington  <hp@redhat.com>
14845
14846         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
14847         when we invalidate the main window.
14848
14849         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
14850         GtkTextView will now invalidate the side windows for us when text
14851         changes.
14852
14853 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
14854
14855         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
14856         unconditionally, since we may need to update the horizontal
14857         scrollbars even if the height didn't change.
14858
14859         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
14860         the extra attrs, since some of them affect size.
14861
14862         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
14863         x_offset correctly.
14864
14865 2000-11-15  Havoc Pennington  <hp@redhat.com>
14866
14867         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
14868         don't move the first line out into the margin, instead move the
14869         whole paragraph in order to make space for the first line within 
14870         the margin
14871
14872 2000-11-15  Havoc Pennington  <hp@redhat.com>
14873
14874         * gtk/gtktextview.c (changed_handler): offset redraw rect by
14875         xoffset in addition to yoffset, so horizontal scrolling doesn't
14876         break redraws
14877
14878 2000-11-15  Havoc Pennington  <hp@redhat.com>
14879
14880         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
14881         from the cursor
14882         (render_layout_line): fix reversed test that caused weird
14883         underlines to get drawn
14884
14885 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
14886
14887         * gdk/linux-fb/gdkprivate-fb.h:
14888         Fix debug macros.
14889         
14890 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
14891
14892         * gdk/linux-fb/gdkprivate-fb.h:
14893         Added virtual functions set_pixel, get_color,
14894         fill_span and draw_drawable to the GC.
14895         Added global _gdk_fb_screen_gc to use instead of
14896         NULL when drawing to the screen.
14897         Added _gdk_fb_gc_calc_state() prototype.
14898
14899         * gdk/linux-fb/gdkgc-fb.c:
14900         Call _gdk_fb_gc_calc_state() on any gc state change.
14901
14902         * gdk/linux-fb/gdkglobals-fb.c:
14903         Add _gdk_fb_screen_gc
14904                 
14905         * gdk/linux-fb/gdkdrawable-fb2.c:
14906         _gdk_fb_gc_calc_state() calculates best functions
14907         for the GC state and depth.
14908         Moved bpp specialized code to separate functions.
14909         Added optimized 24 bpp AA draw_drawable.
14910
14911         * gdk/linux-fb/gdkevents-fb.c:
14912         Silence gcc warning.
14913
14914         * gdk/linux-fb/gdkimage-fb.c:
14915         Use _gdk_fb_screen_gc
14916
14917         * gdk/linux-fb/gdkwindow-fb.c:
14918         Init and use _gdk_fb_screen_gc
14919
14920         * gdk/linux-fb/mitypes.h:
14921         Remove unused types.
14922
14923 2000-11-14  Havoc Pennington  <hp@pobox.com>
14924
14925         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
14926         to pixels
14927
14928 2000-11-14  Havoc Pennington  <hp@pobox.com>
14929
14930         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
14931
14932         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
14933         unknown char, no real reason we were using a variable. 
14934         Remove gtk_text_unknown_char variable. Fix all the text widget
14935         files accordingly.
14936
14937         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
14938         since the Unicode spec seems to prefer that character for our
14939         purposes.
14940
14941 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
14942
14943         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
14944         value of g_getenv() isn't freeable, so g_strdup it.
14945
14946         * modules/input/inuktitut.c: Inuktitut input method.
14947
14948         * modules/input/Makefile.am: Build this.
14949         
14950 2000-11-14  Elliot Lee  <sopwith@redhat.com>
14951
14952         * gtk/Makefile.am: Install gtk.immodules, needed for operation
14953         of gtk programs.
14954
14955 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
14956
14957         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
14958         reversed > that was causing Home to go to end of previous line.
14959
14960         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
14961         modified-keypresses (leave for bindings.)
14962
14963         * modules/input/Makefile.am: Remove useless -export-dynamic
14964         from module LDFLAGS.
14965
14966 2000-11-14  Havoc Pennington  <hp@redhat.com>
14967
14968         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
14969         higher.
14970
14971         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
14972         account. Also, render rise, underline, background, etc. for
14973         pixbufs as well as text. Also, draw underlines one pixel higher.
14974
14975         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
14976         PangoAttribute for the rise, so it gets drawn properly. Also,
14977         add the GtkTextAppearance attribute for pixbuf/widget segments
14978         as well; we should go ahead and have rise, underline, background,
14979         stipple work for those
14980
14981         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
14982         Pango
14983
14984 2000-11-15  Tor Lillqvist  <tml@iki.fi>
14985
14986         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
14987
14988         * gtk/gtk.def: Update.
14989
14990         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
14991         included.
14992         (gtk_rc_get_im_module_file): Use run-time installation directory
14993         on Win32.
14994
14995         * gdk/win32/rc/gdk.rc: Remove.
14996         * gdk/win32/rc/gdk.rc.in: New file.
14997         * gdk/win32/rc/Makefile.am: New file
14998         * gdk/win32/Makefile.am: Corresponding changes.
14999
15000         * gtk/gtk.rc: Remove.
15001         * gtk/gtk-win32.rc.in: New file.
15002         * gtk/Makefile.am: Corresponding changes.
15003
15004         * configure.in: Corresponding changes.
15005
15006         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
15007         has a built gtkcompat.h. Developers using CVS code on Win32 can
15008         hand-edit it from gtkcompat.h.in.
15009
15010         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
15011         gtkcompat.h from gtkcompat.h.win32.
15012
15013 2000-11-14  Havoc Pennington  <hp@redhat.com>
15014
15015         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
15016         to default to GDK_ACTION_MOVE if the drag is within a single
15017         widget. Defaults to GDK_ACTION_COPY between widgets.
15018
15019 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
15020
15021         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
15022
15023         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
15024
15025         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
15026         srcdir != builddir
15027
15028         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
15029
15030         * configure.in (GTK_VERSION): Up to 1.3.2
15031
15032         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
15033         gtkimcontextxim.h
15034
15035         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
15036         missing doc comment.
15037
15038 2000-11-14  Alexander Larsson  <alexl@redhat.com>
15039
15040         * modules/linux-fb/basic.c:
15041         Use the glib iconv wrappers.
15042
15043 2000-11-13  Havoc Pennington  <hp@pobox.com>
15044
15045         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
15046         still more bugs.
15047
15048         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
15049         scroll the GdkWindows before realization.
15050
15051 2000-11-13  Havoc Pennington  <hp@redhat.com>
15052
15053         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
15054         where GC didn't always get updated properly
15055
15056         * demos/gtk-demo/textview.c (create_tags): Use subattributes
15057         of fonts instead of setting the entire font
15058
15059         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
15060         setting entire font
15061
15062         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
15063
15064         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
15065         a bunch of individually-settable font attributes. You can still 
15066         use the "font" and "font_desc" args, they just set all the font
15067         attributes at once.
15068
15069 2000-11-13 Elliot Lee <sopwith@redhat.com>
15070
15071         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
15072
15073 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
15074
15075         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
15076         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
15077
15078         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
15079         work better.
15080
15081 2000-11-13  Havoc Pennington  <hp@redhat.com>
15082
15083         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
15084         the module file.
15085
15086         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
15087         dest->language
15088
15089         * gtk/testtext.c: Test pixels above/below/inside paragraphs
15090         settings
15091
15092         * gtk/gtktextview.c: Implement object args and setters/getters for
15093         all the aspects of the GtkTextAttributes that are not set from
15094         GtkWidget attributes. This is spacing, justification, margins,
15095         etc.
15096
15097         (gtk_text_view_set_arg)
15098         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
15099         args
15100         (gtk_text_view_class_init): Add args for justify, left_margin,
15101         right_margin, indent, and tabs
15102         
15103
15104         * gtk/gtktextlayout.c (set_para_values): fix to display indent
15105         attribute properly
15106
15107         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
15108         replace with indent attribute
15109
15110         * gtk/gtktextlayout.c (set_para_values): multiply indent by
15111         PANGO_SCALE
15112
15113         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
15114         rearranging code to do that
15115         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
15116         i.e. don't subtract the top_margin first, just to keep
15117         all margin-futzing in one place.
15118
15119         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
15120
15121         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
15122         special case of last line, Pango now handles this itself.
15123         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
15124         Y coordinate
15125         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
15126         (find_display_line_above): wasn't moving the byte index as it
15127         iterated over lines, so always returned byte 0. Also, port to use
15128         PangoLayoutIter.
15129         (find_display_line_below): same problem as
15130         find_display_line_above. Also, port to use PangoLayoutIter.
15131
15132 2000-11-13  Alexander Larsson  <alexl@redhat.com>
15133
15134         * gdk/linux-fb/*.[ch]:
15135         Massive reindent to gtk+ standard. My hands hurt.
15136
15137         * gdk/linux-fb/gdkcolor-fb.c:
15138         Move GdkColorPrivateFB from inherited to windowing_data
15139
15140         * gdk/linux-fb/gdkcursor-fb.c:
15141         _gdk_cursor_new_from_pixmap made static
15142
15143         * gdk/linux-fb/gdkdnd-fb.c:
15144         GdkDragContextPrivate moved to windowing_data
15145
15146         * gdk/linux-fb/gdkdrawable-fb2.c:
15147         Removed endian.h, use glib endianness macros instead
15148         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
15149         and GDK_DRAWABLE_IMPL_FBDATA
15150
15151         * gdk/linux-fb/gdkfont-fb.c:
15152         Add empty gdk_font_load(). Needed for linking of Gtk+.
15153
15154         * gdk/linux-fb/gdkimage-fb.c:
15155         Removed endian.h, use glib endianness macros instead
15156         Moved GdkImagePrivateFB to windowing_data
15157         gdk_image_new_bitmap didn't always allocate enough
15158         memory.
15159
15160         * gdk/linux-fb/gdkinput-ps2.c:
15161         Added semi-working support for MS serial mice.
15162
15163         * gdk/linux-fb/gdkprivate-fb.h:
15164         s/GdkWindowPrivate/GdkWindowObject/
15165         Removed GdkWindowPrivate typedef
15166         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
15167         Removed GDK_DRAWABLE_P
15168         Move GdkColorPrivateFB from inherited to windowing_data
15169         Moved GdkImagePrivateFB to windowing_data
15170
15171         * gdk/linux-fb/gdkvisual-fb.c:
15172         Removed some unused debug code.
15173
15174         * gdk/linux-fb/gdkwindow-fb.c:
15175         Use stock cursors instead of including X headers.
15176         s/GdkWindowPrivate/GdkWindowObject/
15177
15178         * gdk/linux-fb/mitypes.h:
15179         Removed unused types.
15180
15181         * modules/linux-fb/basic.c:
15182         Use the pango fribidi wrappers.
15183
15184 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
15185
15186         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
15187         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
15188         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
15189         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
15190         GEqualFunc where applicable.
15191         
15192         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
15193         pango_font_description_equal as changed in pango.
15194         
15195         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
15196
15197         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
15198
15199         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
15200
15201         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
15202
15203         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
15204
15205         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
15206
15207         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
15208         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
15209
15210         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
15211         gtk_rc_styles_compare -> gtk_rc_styles_equal.
15212
15213 2000-11-12  Havoc Pennington  <hp@pobox.com>
15214
15215         * demos/gtk-demo/Makefile.am (democodedir): change demo install
15216         dir to datadir/gtk+-2.0/demo
15217
15218         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
15219         sorts of text widget and Pango font bugs. Urgh.
15220
15221         * demos/gtk-demo/Makefile.am (demos): Add textview.c
15222
15223         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
15224         tree that you should double click to see the demo. Fix 
15225         types of variables to reflect changed return values from 
15226         GtkTreeStore and GtkTreeViewColumn constructors.
15227
15228         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
15229         newly-created buffer to prepare for GObject semantics
15230
15231         * gtk/testtext.c: don't leak the buffer with GObject semantics
15232
15233         * gtk/testtextbuffer.c: ditto
15234         
15235 2000-11-12  Havoc Pennington  <hp@pobox.com>
15236
15237         Rename this testgtk to gtk-demo to avoid confusion, and 
15238         install it so people can use it as a supplement to 
15239         the documentation.
15240         
15241         * demos/gtk-demo: Moved from demos/testgtk
15242
15243         * demos/testgtk: Removed
15244
15245         * configure.in: make Makefile in gtk-demo
15246         
15247         * demos/gtk-demo/Makefile.am: Install sample source to 
15248         datadir/gtk-demo (maybe there's a better place?), and 
15249         rename the binary to gtk-demo
15250         
15251         * demos/gtk-demo/main.c (load_file): Load installed sample
15252         source if source isn't found in pwd.
15253
15254 2000-11-09  Havoc Pennington  <hp@pobox.com>
15255
15256         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
15257         argument to set the char displayed when visibility == FALSE
15258         (gtk_entry_create_layout): If !entry->visible, replace 
15259         all chars with the "invisible char"
15260
15261         * gtk/testgtk.c: Test the invisible_char deal
15262         
15263 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
15264
15265         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
15266         can't get a native font in the right encoding.
15267
15268 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
15269
15270         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
15271         respectively.
15272
15273 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
15274
15275         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
15276         Fix warning when moving between paragraphs.
15277
15278         * gtk/gtkentry.[ch]: Change move => move_cursor, 
15279         delete => delete_from_cursor, insert => insert_at_cursor
15280
15281 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
15282
15283         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
15284
15285         * modules/input/imthai-broken.c: A Thai input method for use if
15286         Thai keys are really generating Latin1 keysyms.
15287
15288         * modules/input/Makefile.am: Build these.
15289
15290 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
15291
15292         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
15293         g_filename_{to,from}_utf8 now takes an extra parameter.
15294
15295         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
15296         strftime into UTF-8.
15297
15298         (column_from_x, gtk_calendar_paint_day_names): Support RTL
15299         calendars.
15300
15301         (gtk_calendar_paint_day_names): Draw day names in the right 
15302         place.
15303         
15304 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
15305
15306         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
15307         problem with using result of g_get_charset() backwards -
15308         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
15309
15310         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
15311         negative min_width/height and max_width/height to
15312         mean "requisition"; this allows setting a window
15313         to be user-resizable in only one direction easily.
15314
15315         * gtk/testgtk.c (create_main_window): Remove hard-coded
15316         usize - set a default size in the vertical direction.
15317
15318 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
15319
15320         * gtk/gtkrange.c: Add some missing casts. Support 
15321         2 and 3 button clicks on the arrows to mean 
15322         "move by pages" and "jump to end". (Like gtkspinbutton)
15323
15324 2000-11-12 Hans Breuer <Hans@Breuer.Org>
15325
15326         * gdk/win32/makefile.msc : reflect build module changes
15327
15328         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
15329         from GdkPixmap*, cast implementation member instead.
15330
15331         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
15332         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
15333         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
15334         more Gdi functions return value checking. 
15335         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
15336         GdkImagePrivateWin32 *.
15337
15338         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
15339         menus useable again. Add #pragma message to keep reminded on this issue.
15340         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
15341         windows. This allows to enable backing store on Win32!
15342
15343         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
15344         in drawable is of impl type. Correct specific type checks appropriate.
15345  
15346         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
15347         GDK_WINDOW_DESTROYED before allocating new resources.
15348
15349         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
15350
15351         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
15352         (gdk_window_foreign_new) initialize parent handle.
15353         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
15354
15355         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
15356         Let the GDI invalidate the window on MoveWindow call to fix scrolling
15357         problems (e.g. main buttons in testgtk). 
15358
15359 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
15360
15361         * gtk/gtkentry.c (gtk_entry_key_press): Call 
15362         gtk_widget_activate for GDK_Return.
15363
15364         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
15365         of preedit cursor position.
15366
15367 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
15368
15369         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
15370         static.
15371
15372 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
15373
15374         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
15375         out support for multiple locales; that simple doesn't
15376         work reliably with current Xlib
15377
15378         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
15379         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
15380         Add support for positioning the cursor within the preedit string.
15381
15382 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
15383
15384         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
15385         at XIM input method module.
15386
15387         * gtk/gtktextview.c: Check for bindings after passing
15388         events to im context filter.
15389
15390 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
15391
15392         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
15393         empty attribute lists properly.
15394
15395 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
15396
15397         * gtk/queryimmodules.c (main): Return non-zero exit
15398         status if errors were encountered querying any
15399         modules.
15400
15401         * modules/input/Makefile.am (moduledir): remove
15402         leftover bin program target.
15403
15404         * docs/make-todo: Fix typo in error message.
15405
15406 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
15407
15408         * configure.in: Add modules/input/Makefile
15409
15410 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
15411
15412         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
15413         don't include gtkthemes.h.
15414
15415         * gtk/testgtk.c gtk/testtext.c: Set environment variables
15416         to point
15417
15418         * gtk/Makefile.am: Add new .c and .h files, build 
15419         gtk-query-immodules and use it to create a gtk.immodules
15420         file for use of test programs.
15421
15422         * gtk/gtkpreview.c: remove extra blank line.
15423
15424 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
15425
15426         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
15427         Add the ability to add extra tables beyond the default
15428         one, and also the ability to have compose sequences 
15429         that are prefixes of other compose sequences. 
15430
15431         * gtk/gtkimcontextsimple.c: Export a preedit string which
15432         consists of possible candidates for keystrokes that have
15433         been entered but not yet committed.
15434
15435         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
15436         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
15437
15438         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
15439         Add a function to add input-method switching menu items
15440         to a menu.
15441
15442         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
15443         when switching input methods.
15444
15445         * gtk/gtkimcontextsimple.[ch]: Change the format of
15446         the compose table to allow compose tables of different
15447         lengths / sequence.
15448
15449 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
15450
15451         * gtk/gtkimmodule.[ch]: Support routines for loading
15452         GtkIMContext implementations dynamically at runtime.
15453
15454         * modules/input/imcyrillic-translit.c: A sample input
15455         method (based on GtkIMContextSimple with an extra table),
15456         which demonstrates preedit strings and the module
15457         system for input modules
15458
15459         * gtk/queryimmodules.c: Program to query the available
15460         input modules and write the results into a file.
15461          
15462         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
15463         extra config options "im_module_file" (cache file for
15464         input method modules), and "im_module_path" - path
15465         to look for modules when generating cache file.
15466
15467         This doesn't scale.
15468
15469 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
15470
15471         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
15472         generic code from gtkthemes into a new abstraction
15473         GtkModule which has the logic for implementing
15474         a loadable module which implements a number of 
15475         GObject types.
15476
15477 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
15478
15479         * gtk/gtkeditable.[ch]: Convert GtkEditable from
15480         a class into an interface  
15481         
15482         * gtk/gtkoldeditable.[ch]: Move the old editable
15483         implementation into here, so legacy widgets can
15484         still rely on the implemenation. GtkOldEditable
15485         exports GtkEditable. Make selection handling
15486         code use new text conversion functions (and
15487         handle UTF-8 as a side-effect). Use GtkClipboard
15488         for CLIPBOARD.
15489
15490         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
15491         Adopt to match above changes.
15492
15493         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
15494         avoid GtkOldEditable implementation. Restructure
15495         to reduce number of places that modify state directly.
15496         Move to GtkBindingSet. Display the preedit string.
15497         Queue recomputation of PangoLayout and scroll position
15498         to improve effiency of doing complex changes naively.
15499         Add a menu with cut/copy/paste and input method selection.
15500
15501 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
15502
15503         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
15504         to set preedit string and attributes; display preedit string by
15505         inserting string and attributes at cursor when creating the
15506         GtkTextLineDisplay.
15507
15508         * gtk/gtktextlayout.c: Move all conversions between byte
15509         positions in PangoLayout and GtkTextIter into new functions
15510         line_display_iter_to_index/index_to_iter that properly
15511         handle the preedit string.
15512
15513         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
15514         it to return const char * (eventually will end up
15515         as GCONST char *, most likely.)
15516
15517         * gtk/gtktextview.[ch]: Handle the preedit string, call
15518         gtk_im_context_reset() as necessary, add a menu to switch
15519         input methods.
15520         
15521         * gtk/gtktextlayout.[ch]: Remove useless
15522         gtk_text_layout_get_log_attrs() function.
15523
15524 2000-11-11  Tor Lillqvist  <tml@iki.fi>
15525
15526         * gdk/gdk.def
15527         * gtk/gtk.def: Update.
15528
15529         * gdk/win32/*.c: Add last argument to g_type_register_static()
15530         calls.
15531
15532         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
15533
15534         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
15535         generated by older wheel mouse drivers. Get the correct y
15536         coordinate from WM_MOUSEWHEEL messages.
15537
15538         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
15539         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
15540         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
15541         Debugging functions.
15542
15543         * gdk/win32/gdkprivate-win32.h: Declare them.
15544
15545         * gdk/win32/gdkinput-win32.h: Add declaration for
15546         gdk_input_window_destroy().
15547
15548         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
15549
15550 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
15551
15552         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
15553         function to help handle keeping things in sync.
15554
15555 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
15556
15557         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
15558         BOXED marshallers.
15559
15560         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
15561         (gtk_list_store_class_init): use the new BOXED marshallers.
15562
15563         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
15564         new_with_values to new_with_types.
15565         (gtk_tree_store_get_column_type): add this.
15566         (gtk_tree_store_class_init): use the new BOXED marshallers.
15567
15568         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
15569         mirror some POINTER marshallers.
15570
15571 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
15572
15573         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
15574         allow more interesting iterators.  Also, made the lifecycle of
15575         iterators more explicit.
15576
15577         * gtk/gtktreemodelsort.[ch]: New model for sorting.
15578
15579         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
15580         types.
15581
15582 2000-11-09  Alexander Larsson  <alexl@redhat.com>
15583
15584         * demos/testgtk/menus.c:
15585         Changes to make the new testgtk compile after
15586         gtk_menu_append was removed.
15587
15588         * gdk/linux-fb/gdkdrawable-fb2.c
15589         (gdk_fb_get_depth, gdk_fb_get_visual,
15590         gdk_drawable_impl_fb_class_init): Implement
15591         these drawable functions. Now GtkImages work again.
15592
15593         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
15594
15595         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
15596         
15597         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
15598         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
15599         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
15600         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
15601
15602 2000-11-08  Havoc Pennington  <hp@pobox.com>
15603
15604         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
15605         visible_set args, don't know where these had gone, I thought they
15606         used to be there
15607
15608         * gtk/testtext.c: Add a menu item to apply invisibility tag;
15609         now we can test the feature and see that it's totally broken.
15610
15611 2000-11-08  Havoc Pennington  <hp@pobox.com>
15612
15613         Make DND copy pixbufs and tags when source and target share a 
15614         tag table.
15615         
15616         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
15617         in-process GTK_TEXT_BUFFER_CONTENTS target
15618         (gtk_text_view_drag_data_received): Paste from
15619         GTK_TEXT_BUFFER_CONTENTS if we receive it.
15620
15621 2000-11-08  Alexander Larsson  <alexl@redhat.com>
15622
15623         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
15624         API changes.
15625
15626         * gtk/gtkmenu.c: Add support for scrolling menus.
15627         Remove gtk_menu_append/prepend/insert, these have been moved to
15628         gtkcompat.h as #defines.
15629
15630         * gtk/gtkcompat.h.in:
15631         Add compatibility #defines for gtk_menu_append/prepend/insert
15632
15633         * gtk/gtkmenu.h: Add data needed for scrolling menus.
15634         GtkMenuPositionFunc gets an extra argument push_in.
15635         gtk_menu_append/prepend/insert removed.
15636         
15637         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
15638         positioning behaviour to fit to scrolling menus.
15639
15640         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
15641         into menuitem->submeny. That is wrong, and broke torn
15642         off submenus of torn off menus, since they were unrealized
15643         when the first menu was unrealized.
15644
15645         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
15646         gtk_menu_shell_select_item() since these need to be overridden in
15647         GtkMenu.
15648
15649         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
15650         positioning behaviour to fit to scrolling menus.
15651         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
15652         the current item so that it is prelighted when the menu pops up.
15653         This is a workaround to the fact that the menu doesn't get the
15654         initial enter event (due to grabs).
15655
15656         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
15657         s/gtk_menu_append/gtk_menu_shell_append/
15658
15659         * gtk/gtknotebook.c:
15660         s/gtk_menu_insert/gtk_menu_shell_insert/
15661
15662         * gtk/testgtk.c (create_menu, create_menus):
15663         Create the first menu with 50 items so that menu scrolling
15664         can be tested.
15665         
15666         
15667         Patch from Jonathan Blandford  <jrb@redhat.com>
15668
15669         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
15670         system to handle size requests.  First, we ask what the size of
15671         the toggle is.  Then, when allocating the size, we allocate the
15672         toggle_size first.  This way we can have multiple menu-item
15673         classes w/o needing a seperate class for each.
15674
15675         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
15676         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
15677
15678         * gtk/gtkcheckmenuitem.c
15679         (gtk_check_menu_item_toggle_size_request): New function to handle
15680         the toggle size-request.
15681
15682 2000-11-07  Havoc Pennington  <hp@redhat.com>
15683
15684         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
15685         Half-ass somewhat fix this function, so that scrolling to the
15686         insertion point works. Pango hacking is in the future to really
15687         fix it.
15688
15689         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
15690         length of data, no longer used.
15691
15692         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
15693         method contents in here, get rid of destroy method
15694         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
15695         that were backward. Remove debug spew.
15696         (cut_or_copy): Make the clipboard work with insert_range to
15697         preserve tags and pixbufs, not just the primary selection.
15698
15699 2000-11-07  Havoc Pennington  <hp@redhat.com>
15700
15701         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
15702         to gtk_text_mark_get_visible
15703
15704         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
15705         bug that was generating an invalid iterator
15706
15707         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
15708         ensure_char_offsets() in front of code placing the iter in an
15709         invalid state.
15710
15711         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
15712         make override_location arg const
15713         (paste): Replace the selection if we paste into the 
15714         current selection
15715
15716         * gtk/gtkselection.h: Remove "GtkSelectioData"
15717         (struct _GtkSelectionData): move the definition here.
15718
15719         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
15720         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
15721
15722         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
15723
15724         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
15725         (gtk_text_buffer_insert_range_interactive): implement
15726         (gtk_text_buffer_get_tags): Remove, replaced by
15727         gtk_text_iter_get_tags()
15728
15729         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
15730         limit parameter, to avoid infinite linear scan.
15731         (gtk_text_iter_backward_search): Add search limit
15732         (gtk_text_iter_forward_find_char): Add search limit
15733         (gtk_text_iter_backward_find_char): Add search limit
15734
15735 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
15736
15737         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
15738         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
15739         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
15740         gdk/linux-fb/gdkwindow-fb.c:
15741         use g_object_new() instead of g_type_create_instance() which
15742         is a private function for fundamental type implementations.
15743
15744         * gdk/linux-fb/gdkinput-ps2.c:
15745         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
15746         instead just store the current modifier state. Add a (somewhat broken)
15747         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
15748         Rename exported function gdk_input_ps2_get_mouseinfo to
15749         gdk_input_get_mouseinfo.
15750
15751         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
15752         gdk/linux-fb/gdkwindow-fb.c:
15753         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
15754         
15755
15756 2000-11-02  Havoc Pennington  <hp@redhat.com>
15757
15758         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
15759         use stock buttons. Should be 100% source compatible, appropriate
15760         filesel fields now point to dialog->vbox and dialog->action_area.
15761         On the bizarre side, dialog->action_area and filesel->action_area
15762         are not the same widget.
15763         (gtk_file_selection_init): Put some padding around the selection
15764         entry, so it isn't touching the GtkDialog separator.    
15765
15766         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
15767         use stock buttons, etc. Should also be source compatible.
15768         Set the dialog default title in _init not _new().
15769         
15770         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
15771         Use stock buttons; don't put a button box inside the existing
15772         dialog button box. Don't bother with push/pop colormap anymore.
15773
15774         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
15775         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
15776         for message dialog, and necessary for the font selection and color
15777         selection with help and apply buttons.
15778         
15779         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
15780         to the created button widget. Set GTK_CAN_DEFAULT on the button.
15781         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
15782         between buttons, put less padding around the action area.
15783         (gtk_dialog_run): Exit on unmap rather than on destroy. 
15784         This will also exit the loop if the widget is hidden.
15785         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
15786         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
15787         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
15788         special-case delete event.
15789
15790         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
15791         formatting
15792         
15793 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
15794
15795         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
15796         button to temporarily disable position recording in the
15797         "saved position" test.
15798
15799 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
15800
15801         * gtk/gtkthemes.c: added compat code that temporarily implements
15802         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
15803         going to be revamped by owen's upcoming GtkModule patches, but
15804         untill then people want gtk to build, right? ;)
15805
15806 2000-11-04  Havoc Pennington  <hp@pobox.com>
15807
15808         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
15809         list
15810
15811         * docs/Changes-2.0.txt: Add note about
15812         gtk_container_get_toplevels()
15813
15814         * gtk/gtktextview.h: formatting
15815         
15816         * gtk/gtktextview.c: don't start descriptions with "Returns",
15817         confuses gtk-doc
15818
15819 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
15820
15821         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
15822         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
15823
15824 2000-11-03  Havoc Pennington  <hp@redhat.com>
15825
15826         * gtk/gtktexttagtable.c: Docs
15827         (gtk_text_tag_table_size): return a signed int
15828
15829         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
15830         (gtk_text_tag_event): make the event_object a GObject
15831
15832         * gtk/gtktextview.c: Write API docs for all functions.
15833
15834         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
15835         for gtk_text_view_get_window_type() called on one of the private
15836         windows.
15837
15838         * gtk/gtktextview.c: Instead of accessing text_view->buffer
15839         directly, call get_buffer() which demand-creates a default
15840         buffer. So gtk_text_view_new() can be used to create a view with a
15841         default buffer in it, if you just want an empty text box users can
15842         put data in. Useful for GUI builders also.
15843
15844 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
15845
15846         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
15847         the charset encodign portion MUST be in lowercase.
15848         * gtk/gtkrc.az: added file for Azeri language
15849
15850 2000-11-03  Havoc Pennington  <hp@redhat.com>
15851
15852         Get widgets working on the btree/buffer side. Display of them 
15853         still doesn't work.
15854         
15855         * gtk/gtktextview.c: start implementing child widget stuff
15856
15857         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
15858
15859         * gtk/gtktextlayout.c: handle embedded widgets
15860
15861         * gtk/gtktextdisplay.c: handle embedded widgets
15862
15863         * gtk/gtktextchild.c: Implement all the child anchor goo
15864
15865         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
15866         function
15867
15868         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
15869         (insert_pixbuf_or_widget_segment): abstract out common portions of 
15870         creating a child anchor or a pixbuf segment.
15871         (gtk_text_btree_create_child_anchor): new function
15872         (gtk_text_btree_unregister_child_anchor): new function
15873
15874         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
15875         allocate_child signal on GtkTextLayout
15876
15877         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
15878         values
15879         (gtk_text_iter_get_child_anchor): new function
15880
15881         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
15882         default handler for the changed signal, which calls
15883         gtk_text_buffer_set_modified(), instead of just always emitting
15884         changed then calling set_modified() manually. I guess this is
15885         maybe more flexible. It seems logical.
15886
15887 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
15888
15889         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
15890         now.
15891
15892         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
15893
15894 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
15895
15896         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
15897         been marked static.
15898
15899 2000-11-02  Havoc Pennington  <hp@redhat.com>
15900
15901         * gtk/testgtk.c (create_labels): had a test backward
15902
15903         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
15904         fields, so the dest GC ends up with the correct clip origin, 
15905         etc. Fixes a bug where colored labels didn't redraw 
15906         properly.
15907
15908 2000-11-02  Alexander Larsson  <alexl@redhat.com>
15909
15910         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
15911         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
15912         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
15913         Add last argument to t_type_register_static call.
15914         
15915         * gdk/linux-fb/gdkdrawable-fb2.c:
15916         Add last argument to t_type_register_static call.
15917         export the get_image drawable virtual function.
15918
15919         * gdk/linux-fb/gdkimage-fb.c:
15920         Add last argument to t_type_register_static call.
15921         rename gtk_image_get to _gdk_fb_get_image and
15922         export it for use by gdkdrawable-fb2.
15923
15924         * gdk/linux-fb/gdkprivate-fb.h:
15925         export _gdk_fb_get_image.
15926
15927         * gdk/linux-fb/gdkselection-fb.c:
15928         Add new api call stubs.
15929
15930         * gtk/Makefile.am:
15931         Missing ( in linux-fb part.
15932
15933         * modules/linux-fb/Makefile.am:
15934         Must link with gdk_pixbuf or get unresolved symbol.
15935
15936 2000-11-01  Havoc Pennington  <hp@pobox.com>
15937
15938         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
15939         GTK_TYPE_TEXT_ITER and BOXED marshallers
15940
15941         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
15942
15943         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
15944         
15945         * gtk/gtk-boxed.defs: add GtkTextIter
15946
15947         * gtk/gtkmarshal.list: Add marshallers for text widget that 
15948         properly use OBJECT and BOXED
15949
15950 2000-11-01  Havoc Pennington  <hp@redhat.com>
15951
15952         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
15953
15954         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
15955         before returning it. 
15956         
15957 2000-11-01  Havoc Pennington  <hp@redhat.com>
15958
15959         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
15960         Clip the rectangle to be rendered to the drawable, since
15961         get_from_drawable() requires a region within the drawable
15962
15963 2000-11-01  Havoc Pennington  <hp@redhat.com>
15964
15965         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
15966         from coordinates.
15967
15968 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
15969
15970         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
15971         it isn't NULL.
15972
15973 2000-11-01  Havoc Pennington  <hp@pobox.com>
15974
15975         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
15976         on a label
15977         (gtk_label_finalize): unref the attr list if any.
15978
15979         * gtk/testgtk.c (create_get_image): close test on second click
15980         (make_message_dialog): close dialog if it exists
15981
15982         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
15983
15984         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
15985         gdk-pixbuf
15986
15987         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
15988         from Pango markup format
15989         (gtk_label_set_markup_with_accel): ditto but with accelerator
15990         parsing
15991
15992         * gtk/gtkimage.c (gtk_image_expose): reformatting.
15993
15994         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
15995         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
15996         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
15997         call gdk_window_get_origin().
15998
15999         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16000         implement GDK_PIXBUF_ALPHA_FULL
16001         
16002 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
16003
16004         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
16005         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
16006         g_signal_handlers_disconnect_matched to block/unblock and disconnect
16007         multiple handlers respectively, instead of only treating the
16008         first handler found (bug reported by owen).
16009
16010 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
16011
16012         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
16013
16014         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
16015
16016         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
16017         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
16018         gtk/gtktreeviewcolumn.h: Fixed inline docs.
16019
16020         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
16021         widget.  Needs writing someday.
16022
16023         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
16024         the docs.
16025
16026 2000-10-30  Havoc Pennington  <hp@redhat.com>
16027
16028         * gtk/gtktextview.h, gtk/gtktextview.c:
16029         Rename delete_at_cursor delete_from_cursor, and 
16030         move to move_cursor.
16031
16032 2000-10-30  Havoc Pennington  <hp@redhat.com>
16033
16034         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
16035         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
16036         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
16037         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
16038         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
16039         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
16040         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
16041         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
16042         gtktexttypes.h, gtktextview.c, gtktextview.h:
16043
16044         Massive reindentation and reformatting. Arg alignment and comments
16045         still need fixing in various places.
16046
16047 2000-10-30  Havoc Pennington  <hp@redhat.com>
16048
16049         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
16050         to be named insert_at_cursor and delete_at_cursor so C++ can
16051         handle them.
16052
16053 2000-10-28  Tor Lillqvist  <tml@iki.fi>
16054
16055         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
16056         to get a double directory separator in case the home directory
16057         ends with one. This would cause trouble especially on Windows,
16058         where the path will be confused with the syntax for an an UNC
16059         (network share) path \\server\share\path.
16060         (gtk_rc_add_initial_default_files): Ditto.
16061
16062 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
16063
16064         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
16065
16066         * gtk/gtktextview.c: Use correct marshallers.
16067
16068 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
16069
16070         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
16071         use new iter stuff, and added all the appropriate signals et al.
16072
16073         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
16074         code is internal to gtk only.
16075
16076 2000-10-28  Tor Lillqvist  <tml@iki.fi>
16077
16078         * gtk/gtk.def
16079         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
16080         glib-genmarshal etc.
16081
16082 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
16083
16084         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
16085         parallel builds.
16086
16087 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
16088
16089         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
16090
16091 2000-10-27  Robert Brady  <robert@suse.co.uk>
16092
16093         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
16094         en_GB (British), ia (Interlingua).
16095
16096 2000-10-26  Havoc Pennington  <hp@redhat.com>
16097
16098         * gtk/gtktextiter.c (my_strrstr): fix constness warning
16099
16100         Fixed output of:
16101         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
16102         
16103         * gtk/gtktextsegment.c (char_segment_new): rename
16104         (_char_segment_new_from_two_strings): rename
16105         (_toggle_segment_new): rename
16106         
16107         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
16108         (make_clipboard_widget): make it static
16109         (text_get_func): static
16110         (text_clear_func): static
16111
16112         * gtk/gtkcolorsel.c (adjustment_changed): make this function
16113         static
16114         (hex_changed): make it static
16115         (hsv_changed): make it static
16116         (opacity_entry_changed): make it static
16117
16118         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
16119         (toggle_segment_check_func): rename with _gtk
16120
16121         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
16122         (_widget_segment_new): rename
16123         (_widget_segment_add): rename
16124         (_widget_segment_remove): rename
16125         (_widget_segment_ref): rename
16126         (_widget_segment_unref): rename
16127
16128         * gtk/gtktextmark.c (_mark_segment_new): Rename
16129         _gtk_mark_segment_new   
16130
16131 2000-10-26  Havoc Pennington  <hp@redhat.com>
16132
16133         * gtk/gtkmarshal.list: add new marshallers used by the text widget
16134         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
16135         types
16136
16137         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
16138         marshaller types
16139
16140         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
16141         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
16142         license on these files.
16143
16144         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
16145         work.
16146
16147         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
16148         runtime random number different for each tree, instead of 
16149         a constant I made up.
16150
16151 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
16152
16153         * gtk/Makefile.am: buncha cleanups, kludged build sources
16154         dependencies with a Makefile: oldest-source-stamp dependancy
16155         for the moment. automake is really fighting us here, with
16156         intentionally not allowing user-defined rules or dependancies
16157         prior to it's -include $(DEP_FILES) statement. sucks rocks!
16158
16159         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
16160         to public headers. tehy have a comment stating that they are
16161         "semi-public" aren't included by gtk.h and if enums popup there,
16162         they can be /*< skip >*/-ed.
16163
16164         * gtk/gtktextlayout.h: 
16165         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
16166         added LGPL... <SIGH>
16167
16168 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
16169
16170         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
16171         GtkTreeIter.  Added iterators everywhere.
16172
16173         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
16174
16175         * gtk/gtktreeviewselection.c: Changed to use the iterators.
16176
16177         * gtk/gtktreestore.c: Changed to use the iterators.
16178
16179         * gtk/gtkliststore.c: Commented out the code.  Will convert to
16180         iterators tomorrow.
16181
16182         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
16183         iterators tomorrow.
16184
16185         * gtk/treestoretest.c: Changed to use iterators.
16186
16187         * demos/testgtk/main.c: Moved to use the new iterator system.
16188
16189 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
16190
16191         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
16192         localization misbehaviour.
16193
16194         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
16195         a useless type without copy/free.
16196
16197         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
16198         of GTK_TYPE_CTREE_NODE.
16199
16200 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
16201
16202         * gtk/gtksignal.c:
16203         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
16204         applicable.
16205
16206         * gtk/gtk-boxed.defs (GtkSelectionData): specify
16207         gtk_selection_data_copy and gtk_selection_data_free
16208         do GtkSelectionData work as params in signals.
16209
16210 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
16211
16212         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
16213         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
16214         couldn't they at least give it a non-standard name?
16215         
16216         * gtk/gtktextlayout.c: arg! yet another implementation of
16217         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
16218
16219         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
16220         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
16221         home. now i know this _is_ a conspiracy.
16222
16223         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
16224         ::state-changed.
16225
16226         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
16227         (gtk_accel_group_create_add): marshaller signature fixups.
16228
16229         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
16230         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
16231
16232         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
16233         anymore.
16234
16235 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
16236
16237         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
16238         due to the signal system changes, it wouldn't build currently. to
16239         be fixed soon.
16240
16241         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
16242
16243         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
16244         so it needs gtk_marshal_VOID__ENUM() instead of
16245         gtk_marshal_NONE__UINT().
16246
16247         * gdk/gdk*.c: adapted type registration functions.
16248
16249         * gtk/gtkbindings.c:
16250         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
16251         gone.
16252
16253         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
16254
16255         * gtk/gtkobject.c:
16256         (gtk_object_destroy):
16257         (gtk_object_shutdown): fixed recursion guards. basically we have to
16258         catch the case where any of GObject.shutdown() or gtk_object_destroy()
16259         is called during ::destroy, and avoid recursion there.
16260
16261         * gtk/gtktypeutils.c:
16262         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
16263         boxed_copy/boxed_free. this needs a more general solution based on a
16264         publically installed code-generator utility.
16265
16266         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
16267         glib's gobject has support for that now.
16268         define GtkSignalMarshaller in terms of GSignalCMarshaller.
16269
16270 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
16271
16272         * gtk/gtksignal.[hc]:
16273         * gtk/gtkmarshal.[hc]:
16274         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
16275         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
16276         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
16277         care of that.
16278
16279         * *.c: marshaller name fixups.
16280
16281         * gtk/gtkmarshal.list: added a comment briefing the format.
16282
16283 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
16284
16285         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
16286         compatibility macros here now. more specifically, most of
16287         the API is preserved (yes, _most_, nonwithstanding the
16288         following exceptions listed, the API is stil lHUGE ;)
16289         things that got removed completely:
16290         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
16291         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
16292         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
16293         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
16294         gtk_signal_remove_emission_hook().
16295         non-functional functions variants:
16296         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
16297         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
16298         not supported anymore.
16299         (gtk_signal_compat_matched): new internal function to aid
16300         implementation of the compatibility macros, it  provides
16301         functionality to block/unblock/disconnect handlers based
16302         on func/data.
16303
16304         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
16305
16306         * *.c: adaptions to new type registration API signatures.
16307
16308 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
16309
16310         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
16311
16312 2000-10-25  Robert Brady  <robert@suse.co.uk>
16313
16314         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
16315         gdk_property_delete): If window == NULL, assume the root window.
16316         (restoring the behaviour that was in 1.2).
16317         
16318         * gtk/testtext.c (save_buffer): Allow creation of new files when
16319         saving.
16320
16321         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
16322         calls to read().
16323
16324 2000-10-25  Tor Lillqvist  <tml@iki.fi>
16325
16326         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
16327
16328         * gdk/win32/gdkdrawable-win32.c
16329         * gdk/win32/gdkimage-win32.c
16330         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
16331         X11 backend.
16332
16333         * gdk/win32/gdkcc-win32.c
16334         * gdk/win32/gdkcolor-win32.c
16335         * gdk/win32/gdkfont-win32.c
16336         * gdk/win32/gdkinput-win32.c
16337         * gdk/win32/gdkmain-win32.c
16338         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
16339
16340 2000-10-24  Havoc Pennington  <hp@redhat.com>
16341
16342         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
16343         it a static function
16344
16345         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
16346         redraw text when a tag is applied to it.
16347
16348         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
16349         (gtk_text_tag_affects_nonsize_appearance): private functions to
16350         see if a tag requires various kinds of redraw/layout to be queued
16351         up.
16352
16353         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
16354
16355         * gtk/testtext.c (fill_example_buffer): Put the cursor 
16356         at the start of the buffer, so search works by default
16357
16358         * gtk/gtktextiter.c (lines_match): init match_start always
16359
16360         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
16361         function, get iter at a line + a byte index
16362
16363         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
16364         to set byte position within a line
16365         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
16366
16367 2000-10-23  Havoc Pennington  <hp@redhat.com>
16368
16369         * gtk/testtext.c: Re-enable the "find" dialog
16370
16371         * gtk/testgtk.c: Add test for gdk_drawable_get_image
16372         
16373         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
16374         the arguments to gdk_draw_drawable were in the wrong order
16375         (gdk_window_paint_init_bg): This function was ignoring the
16376         init_region, instead of clipping to it, so the entire backing
16377         pixmap was cleared on every begin_paint()
16378         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
16379         was in here again, the loop kept using the same GtkWindowPaint
16380         over and over.
16381         (gdk_window_begin_paint_region): Fix a bug where we had two
16382         x_offset instead of x_offset and y_offset
16383
16384         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
16385         before we get the image.
16386         (gdk_draw_drawable): get the composite before we draw the drawable.
16387         (gdk_drawable_real_get_composite_drawable): default
16388         get_composite_drawable implementation that returns the drawable 
16389         itself
16390
16391         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
16392         get_composite_drawable virtual function
16393
16394         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
16395         list-walking bug
16396
16397         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
16398         make this work if the source drawable is a GdkDrawableImplX11
16399         instead of a public drawable type. This is really broken; the
16400         problem is that GdkDrawable needs a virtual method get_xid(), but
16401         of course that doesn't work in practice. Enter RTTI.
16402
16403         Also, improve mismatched depth message.
16404
16405         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
16406         GdkPixmap
16407
16408         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
16409         install _gdk_x11_get_image as our implementation of get_image
16410         
16411         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
16412         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
16413
16414         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
16415         gdk_drawable_get_image
16416
16417         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
16418
16419         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
16420         get_image
16421
16422         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
16423         trailing semicolon after for loop
16424
16425 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
16426
16427         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
16428         where font_desc for widget's context lagged widget's font_desc by
16429         one step.
16430
16431 2000-10-22  Tor Lillqvist  <tml@iki.fi>
16432
16433         * gdk/win32/gdkgc-win32.c
16434         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
16435
16436         * gtk/makefile.mingw.in
16437         * gtk/gtk.def: Updates.
16438
16439         * gtk/testgtk.c: sleep() is called _sleep in MS's C
16440         library.
16441
16442         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
16443
16444         * gtk/makefile.msc: Remove
16445
16446         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
16447
16448         * gtk/Makefile.am: Add it.
16449
16450         * configure.in: Generate it.
16451
16452         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
16453         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
16454         something even if not implemented, to satisfy picky MSVC.
16455
16456         Patches by Hans Breuer:
16457         
16458         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
16459         SetBkMode() and SetTextAlign() before calling
16460         pango_win32_render().
16461
16462         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
16463         Set hcliprgn to NULL after destroying it.
16464         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
16465
16466         * gdk/win32/gdkgeometry-win32.c
16467         (_gdk_windowing_window_queue_antiexpose): More effective
16468         implementation.
16469
16470         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
16471         depth as default, not the visual's.
16472
16473         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
16474         against empty title.
16475
16476         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
16477         IMAGE_PRIVATE_DATA.
16478
16479         * gdk/win32/gdkimage-win32.c: Use it.
16480
16481 2000-10-22  Robert Brady  <robert@suse.co.uk>
16482
16483         * configure.in: Check for bind_textdomain_codeset
16484
16485         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
16486         present, make use of it.
16487
16488         Add a translatable string "default:LTR" which, if translated
16489         to "default:RTL", will cause the default direction to be
16490         Right-to-Left.
16491
16492         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
16493         direction if marked as flippable.
16494
16495         * gtk/gtkhscale.c: Mark widget as flippable.
16496         
16497 2000-10-04  Havoc Pennington  <hp@redhat.com>
16498
16499         * gtk/testgtk.c (create_buttons): create some stock buttons
16500         with the default accel group
16501         (create_image): test some new GtkImage features
16502         (make_message_dialog): test GtkMessageDialog
16503         (create_modal_window): fix someone's bizzarro indentation
16504
16505         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
16506         GTK_WIN_POS_CENTER_ON_PARENT. 
16507         Add "destroy with parent" setting, which means the window goes
16508         away with its transient parent.
16509         (gtk_window_get_default_accel_group): get the default accel group
16510         for the window.
16511         (gtk_window_set_destroy_with_parent): set/unset destroy with
16512         parent flag
16513         (gtk_window_read_rcfiles): invalidate icon set caches
16514         after reloading rcfiles 
16515
16516         * gtk/gtkenums.h (GtkWindowPosition): add
16517         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
16518         on its parent window when the dialog is mapped for the first time.
16519
16520         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
16521         a simple message dialog class
16522         
16523         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
16524         handler to emit response signal, and maybe later it would
16525         honor a hide_on_delete flag - though that isn't there yet.
16526         Set border width on the vbox to 2, so we get some padding.      
16527         Use a button box for the action area.
16528         (gtk_dialog_key_press): synthesize a delete event if Esc
16529         is pressed and the GtkWidget key press handler didn't 
16530         handle the escape key.
16531         (gtk_dialog_new_with_buttons): new function creates a dialog
16532         with some default buttons in it.
16533         (gtk_dialog_add_action_widget): add an activatable widget
16534         as a button in the dialog - you can also add a non-activatable
16535         widget by accessing the action area directly.
16536         (gtk_dialog_add_button): add a simple button - stock ID or 
16537         label - to the action area
16538         (gtk_dialog_response): emit response signal
16539         (gtk_dialog_run): block waiting for the dialog, return 
16540         the response. Override normal delete_event behavior, so that 
16541         delete_event does nothing inside gtk_dialog_run().
16542
16543         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
16544         emitted when an action widget is clicked or the dialog gets
16545         delete_event
16546
16547         * gtk/gtk.h: add gtkmessagedialog.h
16548
16549         * gtk/Makefile.am: add gtkmessagedialog.[hc]
16550
16551 2000-10-18  Havoc Pennington  <hp@redhat.com>
16552
16553         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
16554         where any number of empty lines would get skipped
16555
16556         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
16557         edge.
16558
16559         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
16560         warning about invalid iterators (explain more thoroughly)
16561         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
16562
16563         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
16564         big
16565
16566         * demos/*.c: Add error handling
16567
16568         * gtk/gtktextbuffer.c: don't modify const iterators
16569
16570         * gtk/gdk-pixbuf-loader.c: Add full error handling here
16571
16572         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
16573         on file load
16574
16575         * gtk/gtkiconfactory.c: Update to reflect addition of error
16576         handling to gdk-pixbuf loaders
16577
16578 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
16579
16580         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
16581         move to new modularized testgtk.
16582
16583 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
16584
16585         * gtk/gtktreeview.c: Draw the arrows correctly.
16586
16587         * gtk/gtktreemodel.c: Added user docs.
16588
16589         * gtk/gtk.h: remove gtktreedatalist.h.
16590
16591         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
16592         parent when generating my type.
16593
16594         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
16595         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
16596
16597 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
16598
16599         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
16600         GtkTreeModel from object to interface.
16601
16602 2000-10-16  Havoc Pennington  <hp@redhat.com>
16603
16604         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
16605         compilation
16606
16607 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
16608
16609         * gtk/gtktreeselection.c: Add API documentation to all public
16610         functions.
16611
16612         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
16613         functions.
16614
16615 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
16616
16617         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
16618         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
16619         docs to all public functions.
16620
16621         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
16622         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
16623         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
16624         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
16625         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
16626         issue.
16627
16628 2000-10-14  Robert Brady  <robert@suse.co.uk>
16629
16630         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
16631
16632 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
16633
16634         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
16635         values other then G_TYPE_STRING.
16636         * gtk/gtktreeselection.c: Minor commenting updates.
16637         * gtk/gtktreeview.c: Format updates.
16638
16639 2000-10-09  Tor Lillqvist  <tml@iki.fi>
16640
16641         * README.win32: Update.
16642
16643         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
16644         lines that had been deleted by mistake (?).
16645
16646         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
16647         also the case fg==white and bg==black (but still not randomly
16648         coloured cursors). Thanks to Wolfgang Sourdeau.
16649
16650         * gdk/win32/*.c: Silence gcc -Wall.
16651
16652         * gtk/gtk.def: Add missing entry points.
16653
16654         Fixes by Hans Breuer:
16655
16656         * gdk/makefile.msc
16657         * gdk/win32/makefile.msc: Update.
16658
16659         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
16660         some MSVC thing, presumably), cause breakpoint on failures. Add
16661         GDK_NOR case. Call g_log_set_always_fatal.
16662
16663         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
16664         should be pased by reference.
16665         
16666         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
16667         
16668         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
16669
16670         * gdk/win32/gdkevents-win32.c
16671         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
16672
16673         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
16674         implementation object.
16675
16676         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
16677         not just windows.
16678         
16679         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
16680         Use the wrapper object.
16681         
16682 2000-10-06  Havoc Pennington  <hp@redhat.com>
16683
16684         * Makefile.am (SRC_SUBDIRS): contrib subdir
16685
16686         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
16687         so it can be used in Xlib version
16688
16689         * demos/testpixbuf.c (update_timeout): error checking from 1.0
16690         tree
16691
16692         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
16693         change from 1.0 tree that returns first frame of animation
16694         if the loaded file is an animation.
16695
16696         * contrib: add new directory to hold stuff that comes with GTK+
16697         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
16698         
16699         * configure.in: add contrib/*
16700
16701 2000-10-05  Havoc Pennington  <hp@redhat.com>
16702
16703         * demos/testpixbuf-save.c: add pixbuf save test
16704
16705         * demos/Makefile.am: add testpixbuf-save.c
16706
16707 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
16708
16709         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
16710         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
16711         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
16712         * gtk/gtktreeselection.[ch]: Replaced
16713         "node_selected"/"node_unselected" signal with "selection_changed"
16714         signal.
16715
16716 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
16717
16718         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
16719         tree widget.
16720
16721 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
16722
16723         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
16724         drawing.
16725
16726 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
16727
16728         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
16729         Move list pointer forwards before removing item from
16730         list. (Crash reported by Salmaso Raffaele)
16731
16732         * gdk/gdkwindow.h: Remove spurious trailing ,
16733
16734         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
16735         dependencies on uninstalled libraries, sorry folks.
16736
16737 2000-10-04  Havoc Pennington  <hp@redhat.com>
16738
16739         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
16740         gtk/gtkiconfactory.c: Fix copyrights    
16741
16742         * demos/testpixbuf.c: add inline pixbuf test
16743         
16744 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
16745
16746         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
16747         Add gdk_window_iconify.
16748
16749         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
16750         (gdk_window_set_geometry_hints): Add win_gravity
16751         to geometry structure.
16752
16753         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
16754         Implement _NET_WM_PING.
16755
16756         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
16757         Set _NET_WM_PID on the client leader.
16758
16759         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
16760         Handle UTF-8 better.
16761
16762         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
16763         UTF-8 better, set _NET_WM_NAME as well. Only set
16764         icon name if it hasn't previously been explicitely 
16765         set.
16766
16767 2000-10-03  Havoc Pennington  <hp@redhat.com>
16768
16769         * gtk/testtextbuffer.c: clean up trailing whitespace,
16770         add extensive tests for tag toggle iteration.
16771         
16772         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
16773         distance
16774
16775         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
16776         optimize case where the tag root is on level 1
16777         (gtk_text_line_previous_could_contain_tag): attempt to implement
16778         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
16779         functionality
16780
16781         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
16782         Implement this, though not very efficiently.
16783
16784         * gtk/gtktextiterprivate.h: reformat
16785
16786         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
16787         iterator
16788
16789         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
16790         this to properly revalidate the iterators.
16791
16792         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
16793         properly at the end of the line (and therefore on empty lines)
16794
16795         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
16796         maybe we should return a value...
16797
16798 2000-10-03  Tor Lillqvist  <tml@iki.fi>
16799
16800         * config.h.win32: Guard definition of alloca(). glib.h now handles
16801         that.
16802
16803         * gdk/gdk.def
16804         * gtk/gtk.def: Add new entry points.
16805
16806         Changes just to make GTK+ build without errors on Win32. No hope
16807         of it working in its current state, though...:
16808         
16809         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
16810         some functions from the X11 backend, just to make GTK+ build.
16811
16812         * gdk/makefile.mingw.in
16813         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
16814         number. Add new object files.
16815
16816         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
16817         GetMessageTime to get timestamp (where on X11 uses
16818         gdk_x11_get_server_time()).
16819
16820 2000-10-02  Havoc Pennington  <hp@pobox.com>
16821
16822         * gtk/gtktextview.c: text_window_* weren't static and should have
16823         been.
16824         Start work on child widgets; not yet complete, syncing to 
16825         office computer.
16826
16827         * gtk/gtktextchild.h: change this to contain a public interface,
16828         starting work on child interfaces.
16829         * gtk/gtktextchildprivate.h: move private interfaces here
16830
16831         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
16832
16833         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
16834         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
16835         gtk/gtktextmark.c: copyright notices
16836
16837         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
16838         internal functions      
16839
16840         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
16841         internal function
16842
16843         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
16844         Reformatting    
16845
16846 2000-09-30  Havoc Pennington  <hp@pobox.com>
16847
16848         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
16849         NULL start/end pointers
16850
16851         * gtk/gtktextbuffer.c: Write some docs
16852         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
16853         NULL, so you can just check whether there's a selection.        
16854
16855         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
16856         cleanup_line or segments_changed ourselves, it gets done 
16857         in unlink_segment
16858
16859         * gtk/gtktextmark.h:
16860         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
16861         
16862         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
16863
16864         * gtk/gtktextmark.c: delete some more old Tk cruft
16865
16866         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
16867         mark before removing it, so we can emit MARK_DELETED with a valid
16868         pointer.
16869         (gtk_text_buffer_mark_set): hold ref across signal emission
16870
16871         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
16872         whining about attempts to delete special marks
16873
16874         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
16875         underscore, since it's internal.
16876
16877         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
16878         now implemented in terms of iterators in gtktextiter.h
16879
16880         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
16881         New function, destructively sets contents of buffer. Also 
16882         a convenient way to clear the buffer by setting text to ""
16883
16884         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
16885         multiline string literal
16886
16887         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
16888         text changes.
16889
16890         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
16891         is not dereferenceable
16892         (gtk_text_iter_forward_lines): fix return value
16893
16894 2000-09-29  Havoc Pennington  <hp@redhat.com>
16895
16896         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
16897
16898         * gtk/gtktextview.c: Implement drag thresholding; change functions 
16899         that set border window size to have nicer name
16900         (gtk_text_view_mark_set_handler):  Fix this to have the 
16901         right signature.
16902
16903         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
16904
16905         * gtk/testtext.c: Update with API changes, put line numbers on 
16906         both sides.
16907         
16908         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
16909         with this
16910
16911         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
16912         pixbuf; delete a big block of #if 0 Tk code
16913
16914         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
16915         insert_pixmap with insert_pixbuf
16916
16917 2000-09-29  Martin Baulig  <baulig@suse.de>
16918
16919         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
16920         confusion with the GdkPixbuf of the GNOME 1.x platform.
16921
16922 2000-09-29  Havoc Pennington  <hp@pobox.com>
16923
16924         * gtk/gtktextview.c: Implement the side windows.
16925
16926         * gtk/testtext.c: Implement simple line numbering in the 
16927         left side window; seems to make scrolling sloooow. Oops.
16928         Also, cursor blink is for some reason causing redraws
16929         of the line numbers. Should investigate...
16930
16931 2000-09-28  Havoc Pennington  <hp@redhat.com>
16932
16933         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
16934         scrolling child windows, and draw focus rectangle properly.
16935         
16936         (gtk_text_view_buffer_to_window_coords):
16937         Coordinate transformation to deal with all these freaking windows
16938         and offsets
16939         (gtk_text_view_window_to_buffer_coords): transform the other way
16940
16941         * gtk/testtext.c (create_buffer): Update to match Pango API change
16942
16943         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
16944         anonymous tags
16945         (foreach_unref): don't emit remove signal from finalize, just
16946         set tag's parent to NULL
16947
16948 2000-09-26  Havoc Pennington  <hp@redhat.com>
16949
16950         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
16951         Fix some warnings       
16952
16953 2000-09-26  Havoc Pennington  <hp@redhat.com>
16954
16955         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
16956         headers into the private header list
16957
16958         * Makefile.am (pkgconfig_DATA): install pkg-config files
16959
16960         * configure.in: add pkg-config files
16961
16962         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
16963
16964         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
16965         outstanding icon caches on theme change.
16966
16967         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
16968         important types:
16969
16970         (GtkIconSource): Specification for creating a pixbuf 
16971         appropriate for a direction/state/size triplet from 
16972         a source pixbuf or filename
16973
16974         (GtkIconSet): List of GtkIconSource objects that are used to
16975         create the "same" icon (e.g. an OK button icon), and cache for
16976         rendered icons
16977
16978         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
16979         up the icon set for a given stock ID.  GTK maintains a stack of
16980         GtkIconFactory to search, and applications or libraries can add
16981         additional icon factories on top of the stack
16982         
16983         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
16984         the set of GtkIconSource specified for a given stock ID into 
16985         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
16986         RcStyle, under the specified stock ID.
16987
16988         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
16989         render_icon used to derive a GdkPixbuf from a GtkIconSource.
16990         This allows people to theme how prelight, insensitive, etc. are
16991         done.
16992
16993         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
16994         icon factories for a style, and return the resulting 
16995         icon set if any.
16996
16997         (gtk_style_render_icon): Render an icon using the render_icon 
16998         method in the GtkStyleClass.
16999
17000         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
17001         Use the style for a given widget to look up a stock ID, get the
17002         icon set, and render an icon using the render_icon method 
17003         of the style
17004
17005         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
17006         (contains information about a stock item), the built-in stock item
17007         IDs, and functions to add/lookup stock items.
17008
17009         * gtk/stock-icons/*: Stock icons that come with GTK
17010
17011         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
17012         a button based on a GtkStockItem
17013         (gtk_button_new_accel): Takes a uline string and accel group, and
17014         installs the accelerator.
17015
17016         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
17017         image-display widget.
17018
17019 2000-09-25  Havoc Pennington  <hp@redhat.com>
17020
17021         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
17022
17023         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
17024         Fix a bug when removing node data, we didn't properly 
17025         re-splice the linked list after removing the data.
17026
17027         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
17028         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
17029
17030         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
17031
17032         * gtk/gtktextlayout.c (set_para_values): Set tab array 
17033         for the layout from the GtkTextTag.
17034
17035         * gtk/gtktexttypes.h: delete tab and search cruft, 
17036         remove g_convert() in favor of GLib version
17037
17038         * gtk/gtktexttypes.c: remove tab implementation from here,
17039         move to Pango
17040
17041         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
17042         tab stuff using new PangoTabArray from Pango
17043
17044         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
17045         unused border_width stuff
17046
17047 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
17048
17049         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
17050         glib) and now useless utf_to_latin1() latin1_to_utf()
17051
17052         * gtk/gtktextview.[ch]: Change ::move_insert and
17053         ::delete_text action signals to ::move and ::delete;
17054         create the signals with the right enumeration type,
17055         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
17056         C-v bindings, change Home, End to move to beginning/end
17057         of line, Add C-Home C-End to move to beginning/end
17058         of buffer. Change ::cut_text to ::cut_clipboard, etc;
17059         combine ::scroll_text into ::move; use new GtkSelectionData
17060         functions to simplify DND text handling.
17061         
17062         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
17063         deletion enumerations here, rename enumeration values to 
17064         be consistently plural.
17065
17066         * gtk/gtktextbuffer.c: Use new clipboard interfaces
17067         for cut/copy/paste and primary selection.
17068
17069         * gtk/gtktextbuffer.[ch]: Remove excess time and
17070         'interactive' arguments from cut/copy/paste;
17071         rename cut to cut_clipboard, etc; remove
17072         gtk_text_buffer_get_clipboard_contents().
17073
17074         * gtk/gtktextlayout.[ch]: Add 
17075         gtk_text_layout_move_iter_to_line_end() to move the iter to 
17076         line ends.
17077
17078         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
17079         Functions to set or get a UTF-8 string on the selection
17080         data.
17081
17082         * gtk/gtkclipboard.[ch]: New, simplified selection handling
17083         interfaces.
17084
17085         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
17086         created widgets - one of these is useless if we don't.
17087
17088         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
17089         a public function clear all targets registered for the
17090         widget.
17091
17092         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
17093         Never call gtk_widget_realize() - that was just asking
17094         for bizarre side-effects.
17095
17096         * gtk/gtkselection.c (gtk_selection_owner_set): Call
17097         gdk_selection_owner_set even if the widget is the
17098         same so that we reliably update the timestamp on
17099         the server.
17100
17101         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
17102         gdk_x11_get_server_time() function.
17103         
17104         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
17105         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
17106         Add some tricky filtering on serial numbers for
17107         selection clear events to fix up long-standard
17108         race condition FIXME's in gtkselection.c.
17109
17110         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
17111         routines to convert from utf8 to compound text or
17112         STRING and from a text property to UTF-8.
17113
17114         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
17115         a convenience function gdk_get_current_event_time().
17116
17117         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
17118         and free selection_data->data properly
17119
17120 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
17121
17122         * gtk/gtkthemes.c: Remove some unecessary includes.
17123
17124 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
17125
17126         * gtk/gtktextdisplay.c
17127         * gtk/gtktextlayout.c
17128         * gtk/gtktexttag.c
17129         * gtk/gtktexttag.h
17130         * gtk/testtext.c: Change the overstrike property to strikethrough,
17131         to closer match pango.
17132
17133 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
17134
17135         * gtk/gtktextview.c: Fix up visibility so that focus,
17136         cursor_visible and blink interact properly.  Reenable cursor blink
17137         which had been roughly disabled. Make blink and focus
17138         properly per-view.
17139
17140         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
17141         Add a flag for whether to display insertion cursor and
17142         a function to set the flag.
17143
17144         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
17145         get_line_y() to get_line_yrange(), to be a bit more generally
17146         useful.
17147
17148 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
17149
17150         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
17151           do stop_navigating_submenu, to clear last timeout properly.
17152           Also in gtk_menu_motion_notify move ignore_enter above
17153           the conditional to make it always happen as suggested by Owen
17154
17155 2000-09-07  Tor Lillqvist  <tml@iki.fi>
17156
17157         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
17158
17159         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
17160         w32api headers.
17161
17162         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
17163         declarations.
17164
17165         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
17166         (gdk_win32_get_colormap): A line had been deleted by mistake.
17167
17168         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
17169         (gdk_event_translate): Handle more virtual keycodes to be able to
17170         generate GDK events for Control-comma, Control-period, etc.
17171
17172         * gtk/gtk.def: Add some missing entry points.
17173
17174 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
17175
17176         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
17177         Doc comment fixing. (Mostly non-matching parameter names.)
17178
17179         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
17180         comments a little to avoid looking like a doc comment.
17181
17182         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
17183         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
17184         conversions be changed to GError?)
17185
17186         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
17187         Move private #defines into .c file.
17188
17189         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
17190         order of argument addition, remove duplicates.
17191
17192         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
17193         parent class is FrameClass, not BinClass.
17194
17195         * gtk/gtk.h: Add gtkinvisible, which was missing.
17196         (It's occasionalyl useful for client apps, if seldom.)
17197
17198         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
17199         #define.
17200
17201 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
17202
17203         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
17204         coordinates when creating window, instead of GDK-space
17205         coordinates. (Avoid BadValue on too large windows.)
17206
17207 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
17208
17209         * configure.in (use_mmx_asm): Remove conftest* after use along the
17210         lines of AC_TRY_COMPILE.        
17211         
17212         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
17213         of g_dirname, which is deprecated.
17214         (gtk_rc_parse_any): Removed calls to
17215         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
17216
17217         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
17218         Removed calls to g_hash_table_{freeze,thaw}, as they are
17219         deprecated now.
17220
17221         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
17222         instead of g_basename.
17223         
17224 2000-09-04 Elliot Lee <sopwith@redhat.com>
17225         
17226         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
17227         ANSI warning.
17228
17229 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
17230
17231         * gtk/gtkwidget.h:  Add some documenting comments about 
17232           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
17233           just as owen said on irc.
17234
17235         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
17236           set HAS_DEFAULT.  Only set it if there isn't another window
17237           holding it (a focus window which RECEIVES_DEFAULT) and only unset
17238           it if the widget is not the focused window with RECEIVES_DEFAULT.
17239           This fixes weird double default bugs in dialogs which has things
17240           call gtk_window_set_default at times.
17241
17242 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
17243
17244         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
17245         Nils Barth and David Santiago to improve submenu
17246         navigation. The patch does this by creating a triangular
17247         region from the point where the pointer leaves the
17248         menu to the submenu.  While the pointer is in
17249         that region and a timeout has not expired, events 
17250         that would cause the active submenu to change are
17251         ignored.
17252
17253 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
17254
17255         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
17256         moving a toplevel window immediately after sizing it would
17257         result in it being sized back to the old size since 
17258         impl->width, impl->height aren't updated until we hear
17259         back from the server. There is still a (longstanding) bug
17260         here that gdk_window_get_size() will give the wrong size
17261         until we do hear back.
17262
17263 2000-08-31  Havoc Pennington  <hp@redhat.com>
17264
17265         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
17266         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
17267         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
17268         Rename GtkTextStyleValues to GtkTextAttributes
17269
17270 2000-08-31  Havoc Pennington  <hp@pobox.com>
17271
17272         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
17273         for rapid testing whether an iterator is the end iterator
17274         (gtk_text_btree_new): init end line cache
17275         (gtk_text_line_is_last): use fast cached line to 
17276         see if we're the last line.
17277         (get_last_line): use cached line here too, should 
17278         speed up some random unrelated code.
17279         
17280 2000-08-30  Havoc Pennington  <hp@pobox.com>
17281
17282         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
17283         signals.
17284
17285         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
17286         delete_text signals. This allows the signals to be used for
17287         implementing undo.
17288
17289         * gtk/gtktextbuffer.c: Change signal handler signatures; 
17290         provide "interactive" argument when emitting insert_text or
17291         delete_text signal.
17292         
17293 2000-08-30  Havoc Pennington  <hp@pobox.com>
17294
17295         * gtk/gtktextbuffer.c: Docs
17296
17297 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
17298
17299         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
17300         from switch statements, since Tor removed the enumeration
17301         value.
17302         
17303         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
17304         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
17305
17306 2000-08-29 Elliot Lee <sopwith@redhat.com>
17307         * */*.h: Use G_GNUC_CONST.
17308
17309 2000-08-27  Havoc Pennington  <hp@pobox.com>
17310
17311         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
17312         minor indentation fixes, inserted some FIXME about stuff I
17313         realized was broken while documenting it.
17314         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
17315         GTK convention  
17316
17317 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
17318
17319         * gtk/testgtk.c (create_styles): Fix double free of
17320         font desc.
17321
17322 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
17323
17324         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
17325         
17326         * gtk/testgtk.c (create_styles): Add a test for modifying
17327         the style through gtk_widget_modify_*.
17328
17329         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
17330         a function to get the current modifier style.
17331
17332         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
17333         of the passed in GtkRcStyle instead of ref'ing it.
17334
17335         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
17336
17337 2000-08-20  Tor Lillqvist  <tml@iki.fi>
17338
17339         * gdk/gdkimage.h
17340         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
17341         shared memory image+pixmap GdkImage type, or
17342         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
17343         I am dropping that.
17344
17345         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
17346         actually call gtk_init_abi_check(), passing also
17347         sizeof(GtkWindow). Ditto for gtk_init_check(). 
17348
17349         * gtk/gtk.def
17350         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
17351         New functions, used to check that the GTK+-using code has been
17352         compiled using the correct compiler and switches. In particular,
17353         with gcc one has to use the -fnative-struct switch as GTK+ is
17354         compiled with that.
17355
17356 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
17357
17358         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
17359         ->prev fields when merging lists. (Found simultaneously
17360         by Pawel Salek and Jakub Jelinek)
17361
17362 2000-08-12  Tor Lillqvist  <tml@iki.fi>
17363
17364         * gdk/gdk.def
17365         * gtk/gtk.def: Add missing entries.
17366
17367         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
17368         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
17369
17370         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
17371         function. Dummy implementation at this point.
17372
17373         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
17374         rules. Undefine GTK_COMPILATION when compiling the test programs.
17375         
17376         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
17377
17378 2000-08-11  Tor Lillqvist  <tml@iki.fi>
17379
17380         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
17381         to convert back and forth from UTF-8 and the "system" (or "current
17382         locale") charset when necessary. Indentation/spacing cleanup.
17383
17384 2000-08-10  Havoc Pennington  <hp@redhat.com>
17385
17386         * Makefile.am (snapshot): Change the format of the snapshot
17387         version to match glib
17388
17389         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
17390         from EXTRA_DIST since it doesn't seem to exist
17391
17392 2000-08-10  Tor Lillqvist  <tml@iki.fi>
17393
17394         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
17395         version of the directory name (not the UTF-8 one) when building
17396         the path name to stat().
17397
17398 2000-08-03  Elliot Lee  <sopwith@redhat.com>
17399
17400         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
17401         PANGO_ATTR_SHAPE set.
17402
17403 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
17404
17405         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
17406         Peter Osterlund to simplify the code while keeping the
17407         functionality the same.
17408
17409 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
17410
17411         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
17412         is_viewable() test further inside the function, since removing the 
17413         window from the redraw list without clearing ->update_area
17414         was also very broken.
17415
17416 2000-08-02  Tor Lillqvist  <tml@iki.fi>
17417
17418         * configure.in: Check for <unistd.h>.
17419
17420 2000-08-01  Martin Baulig  <baulig@suse.de>
17421
17422         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
17423         to display the message that this is a development version of GTK+.
17424
17425 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
17426
17427         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
17428         was depending on widget->allocation instead of the width of text_area,
17429         which was incorrect for subclasses like GtkSpinButton.
17430
17431         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
17432         with width == 1 tests that should be width == -1.
17433
17434 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
17435
17436         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
17437         (broken, Elliot, every single window blank on X) custom code with call
17438         to gdk_window_is_viewable() which a) prevents code duplicate and
17439         b) works. 
17440
17441 2000-07-31  Elliot Lee  <sopwith@redhat.com>
17442
17443         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
17444         to get the GDK_PARENT_ROOT() macro to work.
17445         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
17446         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
17447         of, windows that aren't shown.
17448         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
17449         pointer grab stuff.
17450
17451 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
17452
17453         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
17454           s/gtk_main_iteration/g_main_iteration/
17455
17456           Did this already in change:
17457                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
17458           don't know how it got reverted.
17459
17460 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
17461
17462         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
17463         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
17464
17465         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
17466         not gdk_pixbuf.
17467
17468 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
17469
17470         * configure.in,po/{sp,sr}.po: Added Serbian files
17471
17472 2000-07-30  Tor Lillqvist  <tml@iki.fi>
17473
17474         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
17475
17476         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
17477         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
17478         GIOChannel implementation.
17479
17480         * gdk/win32/gdkinput.c
17481         * gdk/win32/gdkpango-win32.c: Update license name here, too.
17482
17483         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
17484         definition to match prototype.
17485
17486         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
17487
17488 2000-07-27  Elliot Lee  <sopwith@redhat.com>
17489
17490         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
17491         function, to allow handling image formats that cannot be detected
17492         by looking at content alone.
17493
17494 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
17495
17496         * docs/tutorial/*.gif *.jpg *.eps
17497           Update these to the same look-n-feel.
17498           Why does including images in DocBook suck so badly?
17499
17500 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
17501
17502         * gtk/gtktable.c: applied patch from Phil Thompson
17503         <phil@river-bank.demon.co.uk> that enables space settings for
17504         the last row/columns as well.
17505
17506 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
17507
17508         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
17509         updates the license headers to the GNU Lesser General Public License,
17510         as well as updating the copyright year to 2000.
17511
17512 2000-07-26  Robert Brady  <rwb197@zepler.org>
17513
17514         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
17515           and po/Makefile, was installing and looking for them under gtk20
17516           and gtk2 respectively.
17517
17518 2000-07-25  Havoc Pennington  <hp@redhat.com>
17519
17520         * gtk/testtext.c: Comment out some stuff that depends on the rest
17521         of my patches.
17522
17523 2000-07-25  Havoc Pennington  <hp@redhat.com>
17524
17525         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
17526         buffer
17527
17528 2000-07-25  Havoc Pennington  <hp@redhat.com>
17529
17530         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
17531         widget changes.
17532
17533         * gtk/gtktextview.h: To be consistent with usage of "line"
17534         throughout the API to mean "newline-terminated thingy", change
17535         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
17536         to MOVEMENT_LINE.
17537
17538         (GtkTextView): Add flags for default editability, and whether to
17539         show the cursor. Add functions to get/set that. Add 
17540
17541         (gtk_text_view_get_iter_location): new function
17542
17543         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
17544         gtktextlayout.h
17545         (g_convert): Add g_convert temporarily, will go in glib in a bit
17546         
17547         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
17548         GtkTextTagTableForeach instead of brokenly using GHFunc.
17549         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
17550
17551         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
17552         moved to public header.
17553
17554         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
17555         "invisible", since "elide" was a bad name.
17556         (gtk_text_tag_get_priority): Added
17557
17558         (GtkTextStyleValues): put this in public header, along with
17559         functions to use it.
17560
17561         * gtk/gtktextmarkprivate.h: Include more headers, since we no
17562         longer include gtktextbtree.h.
17563
17564         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
17565         gtk_text_mark_deleted
17566
17567         * gtk/gtktextlayout.h: Don't include the "really private" headers,
17568         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
17569         to make this possible. Now we only need to install
17570         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
17571         (However the Makefile.am isn't changed yet because of the
17572         logistics of merging gtk-hp-patches piecemeal)
17573
17574         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
17575         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
17576         gtk_text_iter_get_line is now used in the public API for a
17577         different purpose.
17578
17579         * gtk/gtktextiter.h: Clean up function names to be more
17580         consistent. Always call char offset "offset" and byte index
17581         "index". A "line" is always a line number. 
17582
17583         (gtk_text_iter_is_last): new function, more efficient than 
17584         the existing way to check
17585         (gtk_text_iter_is_first): new function, also more efficient
17586
17587         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
17588
17589         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
17590         gtk_text_iter_forward_char, etc.
17591
17592         (gtk_text_iter_forward_to_tag_toggle): Renamed from
17593         forward_find_tag_toggle, since this isn't a linear search
17594
17595         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
17596
17597         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
17598         New functions, search for a buffer substring.
17599
17600         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
17601         interactive and default editable (since we need to store that info
17602         until we receive the selection data).
17603
17604         Remove all the _at_char and at_line etc. versions of functions;
17605         only have iterator versions.
17606
17607         Add _interactive() versions of functions, that consider the
17608         editability of text. (FIXME add interactive flag to the 
17609         insert/delete signals per Darin's suggestion)
17610
17611         (gtk_text_buffer_get_tag_table): new function, demand-creates the
17612         tag table if necessary
17613
17614         Remove declaration of gtk_text_buffer_get_iter_from_string
17615
17616         (_gtk_text_buffer_get_btree): private/internal function, added.
17617         
17618
17619         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
17620         (gtk_text_line_is_last): new function
17621
17622 2000-07-25  Havoc Pennington  <hp@redhat.com>
17623
17624         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
17625         using GtkProgressBar. See Changes-2.0.txt for details.
17626
17627         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
17628         "pulse_step" which are the equivalent of
17629         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
17630         Implement new API.
17631         
17632         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
17633         (use_text_format) to mark whether text set on the progress bar is
17634         a format string. Deprecate entire GtkProgress interface.
17635
17636         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
17637         (gtk_progress_build_string): make this a no-op if use_text_format
17638         is FALSE
17639
17640         * docs/Changes-2.0.txt: Describe progress bar changes.
17641
17642 2000-07-25  Tor Lillqvist  <tml@iki.fi>
17643
17644         * Makefile.am: Include the build directory.
17645
17646         * configure.in: Generate build/Makefile, build/win32/Makefile,
17647         gdk/, gdk/win32/, and gtk/makefile.mingw.
17648
17649         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
17650         Add GETTEXT_PACKAGE.
17651         
17652         * gdk/gdk.def
17653         * gtk/gtk.def: Updates.
17654
17655         * gdk/gdkfont.h
17656         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
17657         need them any longer.
17658
17659         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
17660
17661         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
17662         PANGOWIN32_LIBS and gdk_pixbuf.
17663
17664         * gdk/win32: Compiles, but no doubt doesn't work at all.
17665
17666         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
17667
17668         * gdk/win32/gdkinput.c: New file, temporarily.
17669         
17670         * gdk/win32/gdkinput-win32.h: New file
17671
17672         * gdk/win32/gdkinputprivate.h: Remove.
17673
17674         * gdk/win32/gdkpango-win32.c: New file.
17675
17676         * gtk/makefile.mingw.in: New file
17677
17678         * gtk/makefile.cygwin: Removed
17679         
17680         * gtk/Makefile.am: Update accordingly.
17681
17682         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
17683         made externally visible.
17684
17685         * gtk/gtkmain.c: Use it.
17686         
17687         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
17688         is enough.
17689
17690         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
17691
17692 2000-07-24 Elliot Lee <sopwith@redhat.com>
17693         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
17694         individual backends already.
17695         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
17696         again. Yes, there really is a good reason for this, if you are using the gdkregion
17697         internals, and if you're not, why do you care?
17698         * gdk/gdkwindow.c: Fix inverted condition
17699         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
17700         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
17701         * gtk/gtkrange.c: Redraw trough when moving.
17702         * gtk/gtktypeutils.c: Fix warning by adding const cast.
17703         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
17704
17705 2000-07-23  Tor Lillqvist  <tml@iki.fi>
17706
17707         * configure.in: Check for mkstemp and sigsetjmp. Output
17708         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
17709
17710         More work on GDK for Win32. Still in an intermediate state.
17711
17712         * gdk/makefile.cygwin
17713         * gdk/win32/makefile.cygwin: Removed.
17714         
17715         * gdk/makefile.mingw.in
17716         * gdk/win32/makefile.mingw.in: New files.
17717
17718         * gdk/Makefile.am
17719         * gdk/win32/Makefile.am: Generate and distribute them.
17720
17721         * gdk/win32/gdkwindow-win32.h
17722         * gdk/win32/gdkdrawable-win32.h
17723         * gdk/win32/gdkpixmap-win32.h: New files.
17724
17725         * gdk/win32/gdkcolor-win32.c
17726         * gdk/win32/gdkcursor-win32.c
17727         * gdk/win32/gdkdrawable-win32.c
17728         * gdk/win32/gdkgc-win32.c
17729         * gdk/win32/gdkimage-win32.c
17730         * gdk/win32/gdkprivate-win32.h
17731         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
17732         Rename fields and variables called xcursor, xid, etc (these names
17733         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
17734
17735 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
17736
17737         * gtk/gtkentry.[ch]: Fix some problems with vertical
17738         alignment.
17739
17740         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
17741         char/byte confusion.
17742
17743 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
17744
17745         * gtk/gtktextview.c (changed_handler): Fix bug where
17746         redraw wasn't being done properly when height of
17747         dirty region changed.
17748
17749         * demos/Makefile.am: Remove various references to
17750         -lgmodule
17751
17752 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
17753
17754         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
17755         PangoAttrShape to reserve space for pixmaps, add 
17756         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
17757         in the display functions.
17758         
17759         * gtk/testgtk.c (create_layout): Set some more exotic
17760         scrolled window options
17761
17762         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
17763         Add function to set the shadow type of a window, to allow
17764         putting a shadow around widgets such as GtkLayout or GnomeCanvas
17765         which don't draw their own frame.
17766
17767 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
17768
17769         * docs/tutorial/package-db-tutorial.sh: New file for
17770           packaging DocBook format tutorial
17771
17772 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
17773
17774         * docs/tutorial/gtk-tut.sgml: Minor updates
17775
17776         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
17777
17778 2000-07-19  Tor Lillqvist  <tml@iki.fi>
17779
17780         * gtk/gtksignal.c: Fix C++ comment.
17781
17782         * gtk/gtkimmulticontext.c
17783         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
17784         don't return value from void functions.
17785
17786         * gtk/gtk.def: Add gtk_rc_style_unref.
17787
17788 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
17789
17790         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
17791         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
17792         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
17793         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
17794         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
17795         gtk/gtktypeutils.h: Include files outside of the extern "C"
17796         block. Makes some C++ compiler happy. Reported by Denis Vakatov
17797         <vakatov@peony.nlm.nih.gov>.
17798
17799 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
17800
17801         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
17802           Completes first pass. Hurrah!
17803
17804 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
17805
17806         * docs/tutorial/gtk-tut.sgml: More clean ups.
17807
17808 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
17809
17810         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
17811         paint the background of the text area which was accidentally
17812         removed at some point.
17813
17814         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
17815           
17816          - Move most of the functionality from the theme vtable
17817            into GtkRcStyleClass and GtkStyleClass. The moved
17818            vtable functions were changed a bit in the move to
17819            work better in their new home.
17820
17821          - Get rid of the engine and engine_data fields from
17822            GtkRcStyle and GtkStyle; instead the theme
17823            engine derives theme-specific subclasses of GtkRcStyle
17824            and GtkStyle
17825
17826          - Add extra dlsym() found entry point to themes,
17827            theme_create_rc_style().
17828
17829         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
17830         in gtk_style_real_copy.
17831
17832         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
17833         to register a type associated with an engine. (The engine
17834         won't be unloaded as there is an instance of the type.)
17835
17836
17837 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
17838
17839         * docs/tutorial/gtk-tut.sgml: Clean ups.
17840
17841 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
17842
17843         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
17844           of cleaning up to do.
17845
17846 2000-07-15  Tor Lillqvist  <tml@iki.fi>
17847
17848         * gdk/testgdk.c: New file, quick hack to test backends for
17849         pixel-by-pixel correctness of the most simple graphic operations.
17850
17851 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
17852
17853         * Really release 1.3.1
17854         
17855         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
17856         include structure.
17857
17858 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
17859
17860         * Released 1.3.1
17861
17862 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
17863
17864         * gtk/gtktextlayout.c: use FALSE for size_only most
17865         of the time when calling gtk_text_layout_get_line_display()
17866         to avoid causing double reshapes when a redraw follows
17867         immediately after.
17868
17869 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
17870
17871         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
17872         appropriate region and gdk_window_process_updates() so trough
17873         updating doesn't lag behind the window being scrolled.
17874
17875         * gdk/gdkgc.c: Make parent_class pointer static.
17876          
17877 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
17878
17879         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
17880         include <string.h>.
17881          
17882         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
17883         cut-and-paste error in computing memory offset for 4 channels.
17884
17885 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
17886
17887         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
17888         gtk_rc_append_default_pixmap_path(), since it wasn't
17889         adding an interesting path and we don't have a meaningful
17890         default for this value.
17891
17892 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
17893
17894         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
17895         gtk-config to gtk-config-2.0 move gtk_.m4 to
17896         gtk-2.0.m4
17897
17898         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
17899         gdk/Makefile.am demos/Makefile.am: Change 
17900         library names to libgtk-1.3.la, etc, so that we
17901         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
17902
17903         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
17904         gdk/Makefile.am gdk/x11/Makfile.am
17905         Move include files into /usr/include/gtk-2.0, 
17906         /usr/lib/gtk-2.0/include/
17907          
17908         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
17909         gtk/gtkintl.h: Change package for gettext from 
17910         gtk+ to gtk20. Put hack in autogen.sh to modify
17911         po/Makefile.in.in after gettextize to make this
17912         possible.
17913
17914         * gtk+.spec: Some updates, not tested.
17915
17916         * gdk-pixbuf/Makefile.am: Move loaders into
17917         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
17918
17919         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
17920         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
17921         to THEMENAME/gtk-2.0/. Move engine directory  to
17922         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
17923         
17924 2000-07-12  Tor Lillqvist  <tml@iki.fi>
17925
17926         Win32 changes, still doesn't build though.
17927
17928         * gdk/makefile.cygwin
17929         * gdk/win32/makefile.cygwin
17930         * gtk/makefile.cygwin: Updates.
17931
17932         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
17933         default values for fg and bg pixel as X11 does (0 and 1), not
17934         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
17935         Use 0 for pen width by default (treated as 1 anyway later, but for
17936         apps that might check the value in the GdkGC).
17937         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
17938         interface to gdk_gc_predraw and _postdraw.
17939
17940         * gdk/win32/gdkwin32.h
17941         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
17942
17943         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
17944         extraneous semicolon.
17945
17946         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
17947
17948         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
17949         not the Win32 bitspixel value.
17950
17951         * gdk/win32/gdkcc-win32.c:
17952         * gdk/win32/gdkcolor-win32.c 
17953         * gdk/win32/gdkprivate-win32.h
17954         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
17955         GDK object structure.
17956
17957 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
17958
17959         * docs/tutorial/gtk_tut_12.es.sgml (name): 
17960         * docs/tutorial/gtk_tut_it.sgml (name): 
17961         * docs/tutorial/gtk_tut_fr.sgml (name): 
17962         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
17963         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
17964
17965 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
17966
17967         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
17968           small changes.
17969
17970 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
17971
17972         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
17973         a bug here, never been here and never fixed anything ;(
17974         (don't segfault if tree->root_tree is NULL, which happens prior
17975         to widget realization, but puke instead).
17976
17977 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
17978
17979         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
17980         add the necessary tokens.
17981
17982         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
17983         (gtk_rc_style_to_style): copy thicknesses.
17984         (gtk_rc_init_style): apply thicknesses.
17985         (gtk_rc_parse_style): parse xthickness and ythickness.
17986
17987         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
17988
17989         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
17990         (gdk_window_new): 
17991         (_gdk_windowing_window_init): 
17992         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
17993         (gdk_pixmap_create_from_data): 
17994         (gdk_bitmap_create_from_data): 
17995         (gdk_pixmap_new): 
17996         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
17997         (gdk_image_new): 
17998         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
17999         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
18000         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
18001         (gdk_colormap_get_system): 
18002         (gdk_colormap_new): 
18003         * gdk/gdkwindow.c (gdk_window_init): 
18004         * gtk/gtkstyle.c (gtk_style_new):
18005         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
18006         * gdk/gdkpixmap.c (gdk_pixmap_init): 
18007         * gtk/gtkrc.c (gtk_rc_style_new):
18008         use g_object_new() instead of g_type_create_instance() which
18009         is a private function for fundamental type implementations.
18010
18011 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
18012
18013         * configure.in: Add check for db2html
18014
18015 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
18016
18017         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
18018         hack to set glib_debug_objects based on gtk_debug_flags.
18019
18020 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
18021
18022         * INSTALL.in: Update the Prerequisites section.
18023
18024         * Makefile.am demos/Makefile.am docs/Makefile.am
18025         docs/tutorial/Makefile.am gdk/x11/Makefile.am
18026         gdk/linux-fb/Makefile.am: Dist fixes
18027
18028 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
18029
18030         * NEWS: 10,000 foot view of 1.3.1 changes.
18031
18032 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
18033
18034         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
18035         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
18036         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
18037         gdk/x11/gdkmain-x11.c: 
18038
18039         Patch from George Lebl to add a GdkGrabStatus enumeration to use
18040         as a return value of gdk_*_grab(). Previously, we just
18041         returned the X11 values directly.
18042
18043 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
18044
18045         * gdk/x11/Makefile.am: Patch from George Lebl to 
18046         install all the headers in the right place.
18047
18048 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
18049
18050         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
18051           initial conversion to DocBook.
18052
18053 2000-07-04  Tor Lillqvist  <tml@iki.fi>
18054
18055         * README.win32: Improve a bit.
18056
18057         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
18058         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
18059         Alt+0nnn on the numpad (used to enter characters by numeric code
18060         from current DOS or ANSI codepage) working correctly, as in other
18061         Windows apps.
18062
18063         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
18064         same argument validity tests as in X11 version.
18065         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
18066
18067         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
18068         definitions in case missing from headers.
18069
18070         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
18071         destroy the window-specific cursor.
18072         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
18073         calling GetModuleHandle(NULL).
18074         (gdk_window_set_cursor): Reworked to always copy the passed cursor
18075         with CopyCursor before setting it as the window-specific
18076         cursor. It is OK for the caller to destroy the GdkCursor (and thus
18077         also its Windows cursor) after calling this function. Destroy any
18078         previous window-specific cursor.
18079
18080 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
18081
18082         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
18083         font charset is iso8859-1, not iso-8859-1.
18084
18085 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
18086
18087         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
18088         Use g_get_charset() instead of g_get_codeset().
18089
18090         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
18091         Comment out some strdup'ing functions to keep timj
18092         happy until we finish fighting this out.
18093
18094 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
18095
18096         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
18097         <= width or height.
18098
18099         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
18100         from 1.2 for parent/child states.
18101
18102         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
18103         of typos.
18104
18105         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
18106         event structures, replace with a generic axes field. Replace 
18107         deviceid/sourec with GdkDevice *device.
18108
18109         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
18110         to extract particular axis use value from event. (Also
18111         can be used for normal X/Y.)
18112
18113         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
18114         allow for arbitrary number of axes, namespace everything
18115         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
18116         everywhere.
18117
18118         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
18119         Get rid of the gdk_input_vtable setup if favor of simply
18120         defining the functions in gdkinput-none/gxi/xfree.c in
18121         a similar fashion to the way that the port structure is 
18122         done.
18123
18124         * gtk/gtkdnd.c: Fix fields of synthesized button press event
18125         for new event structures. 
18126
18127         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
18128         new device interfaces.
18129
18130 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
18131
18132         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
18133         set the initial text.
18134
18135         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
18136         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
18137         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
18138         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
18139
18140         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
18141         pango_layout_set_font_description to simplify.
18142
18143 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
18144
18145         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
18146         pango_layout_set_font_description to simplify.
18147
18148 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
18149
18150         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
18151         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
18152         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
18153
18154         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
18155         PANGO_PIXELS() macro.
18156
18157 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
18158
18159         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
18160         that returns a PangoContext owned by the widget and updated to
18161         match future changes in the widget. Also, make 
18162         gtk_widget_create_pango_layout() use this context. If we ever
18163         add a ::changed signal to PangoContext, this will make things
18164         much more convenient. 
18165
18166         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
18167         in the appropriate places instead of destroying the layouts and
18168         creating new ones.
18169
18170         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
18171         in a few strategic places.
18172
18173 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
18174
18175         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
18176         gtk_widget_size_request() on reparented child, if one. Otherwise,
18177         queue_resize() on the child never results in it getting size-requested
18178         at all.
18179
18180         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
18181         in option menus, so that (with luck) people won't copy it into
18182         their apps in the future.
18183
18184         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
18185         to gtk_option_menu_calc_size. This isn't perfect, but should fix
18186         a lot of problems with changing the size of the menu's menu
18187         items after adding it to the option menu.
18188
18189         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
18190
18191         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
18192         the text direction for a widget changes.
18193
18194         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
18195         ::direction_changed to get rid of various hacks.
18196
18197 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
18198
18199         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
18200         name.
18201
18202 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
18203
18204         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
18205         flag to the structure. Do not call XFreePixmap on pixmaps created
18206         by gdk_pixmap_foreign_new().
18207
18208 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
18209
18210         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
18211         value using GdkRGB functionality given GdkColormap and GdkColor.
18212         (name not final, waiting for inspiration.)
18213         
18214         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
18215         set the foreground/background of a GC using the GC's colormap
18216         and GdkRGB. (name not final, waiting for inspiration.)
18217
18218         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
18219         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
18220
18221         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
18222         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
18223         purely a function of the corresponding colormap. Make
18224         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
18225
18226         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
18227         gdk_pixbuf_*create_from_xpm_* in terms of
18228         gdk_pixbuf_new_from_xpm_data(), move into platform independent
18229         code.
18230
18231         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
18232         advantage of the new draw_rgb_32_image_dithalign.
18233
18234         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
18235
18236         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
18237         on each created GC.
18238
18239         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
18240
18241         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
18242         which we initialize from the drawable when the GC is created,
18243         if the drawable has a colormap.
18244
18245         * gdk/x11/gdkgc-x11.c: include string.h for memset.
18246
18247         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
18248
18249         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
18250
18251 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
18252
18253         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
18254         actually returning expose events, make sure to set
18255         the count field properly.
18256
18257         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
18258         accidentally reintroced bug which always cleared
18259         the graphics_exposures value. 
18260
18261 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
18262
18263         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
18264
18265 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
18266
18267         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
18268
18269 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
18270
18271         * docs/faq/gtk-faq.sgml: Start of Section 6.
18272
18273 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
18274
18275         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
18276         
18277         (Fixes problem with drawing childless frames. Pointed out
18278         by and a first patch from Anders)
18279         
18280         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
18281         compute a child_allocation, even if we don't have a child.
18282
18283         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
18284         Always chain to the parent's impl, even if we don't have a child.
18285
18286 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
18287
18288         * gdk/gdkrgb.c: If possible, create only a single shm segment and
18289         use multiple parts of it instead of creating a bunch of separate
18290         segments, since the maximum number of segments per system is not
18291         large. (This might be worth backporting to GTK+-1.2.x if we make a
18292         new release )
18293
18294         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
18295         structure in preparation for per-colormap GdkRGB.
18296
18297         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
18298         to False when we get EINVAL from shmget so that the caller of
18299         gdk_image_new can retry with a smaller segment size.
18300
18301 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
18302
18303         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
18304
18305 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
18306
18307         * configure.in: make the current version number 1.3.1 (binary age 0,
18308         interface age 0).
18309         
18310         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
18311         gtkcompat.h is all we want.
18312
18313         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
18314         GLib primitive types. fixed g_type_register_fundamental() argument
18315         ordering.
18316
18317         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
18318         compiles.
18319
18320         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
18321         object code cleanup, comment trigraph fixes, etc...
18322
18323 2000-06-23  Havoc Pennington  <hp@redhat.com>
18324
18325         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
18326         instead of making up a bogus name for first_para_mark
18327
18328         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
18329         0 as a context ID
18330
18331 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
18332
18333         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
18334
18335 2000-06-21  Havoc Pennington  <hp@pobox.com>
18336
18337         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
18338         we didn't check window->bg_pixmap != GDK_NO_BG.
18339
18340         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
18341         gdk-pixbuf
18342
18343 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
18344
18345         * docs/faq/gtk-faq.sgm: Move file to here.
18346           TODO: Update Makfile.am 
18347
18348 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
18349
18350         * docs/gtk-faq.sgm: Add Section 2
18351
18352 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
18353
18354         * docs/gtk-faq.sgm: New file. Start of DocBook
18355           version of the FAQ.
18356
18357 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
18358
18359         * configure.in (GDK_PIXBUF_MAJOR): Define version
18360         numbers for GDK_PIXBUF_*, as they get substituted
18361         into a header file. Need to consider versioning
18362         for gdk-pixbuf more carefully later.
18363
18364 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
18365
18366         Work with srcdir != builddir.   
18367         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
18368         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
18369         * demos/testpixbuf.c: Likewise.
18370         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
18371         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
18372         <gdk/x11/gdkx.h>.
18373         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
18374         "gdk-pixbuf.h".
18375         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
18376
18377 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
18378
18379         * TODO.xml: Change 1.4 version numbers to 2.0.
18380
18381 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
18382
18383         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
18384         fixups to GTK+ standard.
18385
18386 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
18387
18388         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
18389         gdk-pixbuf.
18390
18391         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
18392         fixups for GObject.
18393
18394         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
18395         gdk-pixbuf with GDK dependencies moved into GDK.
18396         
18397         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
18398         move gdk-pixbuf-loader here until GObject has signals.
18399
18400         * demos/: New directory of demos. Move demos from
18401         gdk-pixbuf here.
18402
18403         * demos/pixbuf-init.c: Small bit of code to check for
18404         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
18405         set GDK_PIXBUF_MODULEDIR appropriately.
18406
18407         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
18408         define which no longer makes sense.
18409
18410 2000-06-21  Havoc Pennington  <hp@redhat.com>
18411
18412         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
18413         gtk_get_default_language
18414
18415         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
18416         new function to get the default language
18417
18418         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
18419         s/gtk_text_view_style_values/gtk_text_style_values/
18420
18421         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
18422         Add a "language" field to tags.
18423
18424         (gtk_text_tag_set_arg): Fix bug in setting
18425         "bg_full_height_set" tag.
18426
18427 2000-06-21  Havoc Pennington  <hp@redhat.com>
18428
18429         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
18430         in the interfaces
18431
18432         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
18433         stuff instead when possible.
18434
18435         * gtk/gtktexttypes.h: Delete some unused constants
18436
18437         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
18438         testtextbuffer.c: use glib instead of custom unicode routines
18439
18440 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
18441
18442         * docs/es/: Removed mistakenly added generated sgml
18443
18444         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
18445         Remove outdated info files.
18446
18447         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
18448         Moved tutorial files into subdir
18449
18450         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
18451         subdir.
18452
18453         * docs/man/gtk_button.pod: Remove. (contents will be
18454         integrated into gtk-reference button page.)
18455
18456         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
18457         docs/faq/Makefile.am: Adjust for new organization
18458
18459 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
18460
18461         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
18462         not $(MKINSTALLDIRS)
18463
18464 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
18465
18466         * gtk/testgtk.c (create_text): Finish the job Elliot started
18467         of removing font setting test for text widget. (Since text widget
18468         and GdkFont are not deprecated, and cause portability problems.)
18469
18470 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
18471
18472         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
18473         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
18474         Remove use of libunicode in favor of new GLib functions.
18475
18476         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
18477         nano-x, framebuffer. The X11 include is just a hack until we get
18478         the necessary functions in gdkcolor.h, so there is no reason to
18479         add other includes of platforms.
18480
18481         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
18482         window bigger than the screen change.
18483
18484         * gtk/testgtk.c: Revert some random changes from Elliot
18485         that had no particular point and were causing testgtkrc
18486         not to function correctly.
18487         
18488         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
18489         because GdkSegment and GdkRegionBox have the same fields,
18490         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
18491         results in clearer code.
18492
18493         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
18494         gdk_input_translate_coordinates): Fix missed GdkObjectification
18495
18496 2000-06-18  Elliot Lee  <sopwith@redhat.com>
18497
18498         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
18499         * gtk/gtk{plug,socket}.h: Missed commits from previous.
18500
18501 2000-06-20  Havoc Pennington  <hp@redhat.com>
18502
18503         * modules/linux-fb/Makefile.am: Make this compile
18504         without framebuffer enabled
18505
18506         * gdk/linux-fb/Makefile.am: Add conditional to not build
18507         framebuffer unless specified in configure
18508
18509         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
18510         the size of the target instead of source if -1 was passed for
18511         width/height
18512
18513         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
18514         width/height confusion.
18515
18516 2000-06-19  Havoc Pennington  <hp@redhat.com>
18517
18518         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
18519         GDK_DRAWABLE_XID. In the future, we probably want to make it
18520         faster with G_DISABLE_CHECKS turned on.
18521
18522 2000-06-14  Havoc Pennington  <hp@redhat.com>
18523
18524         * gdk/Makefile.am: add gdkpixmap.c
18525
18526         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
18527         s/gdk_image_init/_gdk_windowing_image_init
18528
18529         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
18530         ref/unref
18531
18532         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
18533
18534         * gdk/gdkcompat.h: remove GdkWindowType compat, since
18535         GdkWindowType is now non-deprecated; 
18536         change gdk_window_get_type() compat to be
18537         gdk_window_get_window_type().
18538
18539         * gdk/gdkdnd.h: make GdkDragContext a GObject.
18540
18541         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
18542         virtual GObject. Make all functions call into the vtable.
18543         Move gdk_image_put() guts in here. Remove GdkDrawableType
18544         and gdk_drawable_get_type(), these are now GdkWindow-specific.
18545         draw_image, get_depth, get_size, set_colormap, get_colormap,
18546         get_visual added to the vtable.
18547         
18548         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
18549         GObject. Virtualize everything. 
18550         (gdk_gc_new_with_values): remove check for destroyed window,
18551         because now GdkWindow::create_gc will check this.
18552         (gdk_gc_set_values): New function to set GC values, this 
18553         was already implemented but wasn't in the header
18554
18555         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
18556
18557         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
18558         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
18559         remove _gdk_window_class; add _gdk_window_impl_get_type() and
18560         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
18561         _gdk_windowing_window_init, rename gdk_image_init to
18562         _gdk_windowing_image_init.
18563         
18564         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
18565         (gdk_draw_layout): Remove check for destroyed window, 
18566         because all the drawable methods already check it.
18567         
18568         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
18569         Add gdkpixmap.c which contains implementation of GdkDrawable
18570         virtual table (by chaining to a platform-specific implementation
18571         object).
18572         
18573         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
18574         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
18575         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
18576         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
18577         GdkColormapPrivate. 
18578
18579         * gdk/gdktypes.h: #include <glib-object.h>
18580
18581         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
18582         Move most functionality to platform-specific implementation
18583         object. GdkWindow itself now handles the backing store, then
18584         chains to the platform-specific implementation.
18585         (gdk_window_get_window_type): return GdkWindowType of the window.
18586         (gdk_window_peek_children): New routine, returns the children of 
18587         a GdkWindow
18588         (gdk_window_get_children): Was in X11-specific code and did 
18589         XQueryTree. Changed to simply return a copy of window->children; 
18590         so it can go in cross-platform code.
18591         
18592         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
18593
18594         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
18595         GdkColormap; just changed to use the new private data instead
18596         of casting to GdkColormapPrivate.
18597
18598         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
18599         gdk_cursor_new().
18600
18601         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
18602         (private data member in the GObject). 
18603         (xdnd_manager_source_filter): Function had broken 
18604         error handling, fix it (use gdk_error_trap_push).
18605
18606         * gdk/x11/gdkdrawable-x11.c: This file now implements
18607         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
18608         base class is purely for the convenience of the X port,
18609         and not part of the interface to cross-platform GDK.
18610
18611         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
18612         
18613         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
18614         specific to X, and returned by the create_gc virtual method
18615         of GdkDrawableImplX11. 
18616         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
18617         rather than gchar, this was also changed in the GdkGC vtable.
18618         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
18619         mask is 0, return immediately, instead of checking every flag.
18620         This is faster, and keeps us from segfaulting if values is NULL
18621         and the mask contains some nonzero flags.
18622
18623         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
18624         GdkWindow.
18625
18626         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
18627         GdkWindowPrivate is gone.
18628
18629         * gdk/x11/gdkim-x11.c: rename things that got renamed.
18630
18631         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
18632         remove the image_put stuff that got transferred to GdkDrawable.
18633         
18634         * gdk/x11/gdkinput.c: renamings
18635
18636         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
18637
18638         * gdk/x11/gdkpixmap-x11.c: GObject conversion
18639
18640         * gdk/x11/gdkprivate-x11.h: indentation fixes
18641
18642         * gdk/x11/gdkproperty-x11.c: renamings
18643
18644         * gdk/x11/gdkselection-x11.c: renamings
18645
18646         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
18647         implements the platform-specific "impl" object.
18648         Moved gdk_window_get_children to gdk/gdkwindow.c
18649
18650         * gdk/x11/gdkx.h: Remove all the private structs and private datas
18651         that no longer exist. Add declaration of GdkGCX11 object here.
18652         Fix all the macros to still work. 
18653
18654         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
18655         GdkDragContext from the boxed types since they are now GObjects.
18656
18657         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
18658         moved xthickness/ythickness into the instance. GtkStyleClass
18659         functions are now in the standard vtable for GtkStyle, so you have
18660         to create a GObject subclass to write a theme engine.
18661         (gtk_style_copy): fixed a leaked PangoFontDescription
18662         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
18663         can be the standard GObject function.
18664         
18665         * Throughout GTK:
18666         s/style->klass->[xy]thickness/style->[xy]thickness
18667         s/pango_layout_unref/g_object_unref/
18668
18669         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
18670         
18671         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
18672         accessing GDK internals.
18673
18674         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
18675         accessing GDK internals.
18676
18677 2000-06-18  Elliot Lee  <sopwith@redhat.com>
18678
18679         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
18680
18681         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
18682         problem by calculating event position relative to the trough
18683         rather than the slider.
18684         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
18685
18686         * gdk/gdkgc.h: Add GDK_NOR.
18687
18688         * configure.in, Makefile.am: Add modules top level dir
18689         * configure.in: Only use pangox library if building x11 target.
18690         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
18691
18692 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
18693
18694         * gtk/gtkcolorsel.c: Change private class member to be named
18695         private_data throughout the file.
18696
18697         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
18698         private_data to avoid clashing with keyword.
18699
18700 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
18701
18702         * gdk/gdkdnd.h: Add comment to remove warning.
18703
18704 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
18705
18706         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
18707         Byelorussian language; changed the Makefile and file names 
18708         to reflect that.
18709
18710 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
18711
18712         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
18713         rather than gdk_window_hide; this makes things work
18714         correctly if the window is programmatically hidden while
18715         iconified.
18716
18717 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
18718
18719         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
18720         cut and paste typo where wrong pixmap was being
18721         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
18722
18723 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
18724
18725         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
18726         Add helper function to compute format / bytes 
18727         relationship. Use in a couple places to fix up
18728         errors which assume 8 * format.
18729
18730         * gtk/gtkselection.c (gtk_selection_request): Use 32
18731         rather than 8 * sizeof (GdkAtom), to work correctly
18732         on Alpha.
18733
18734 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
18735
18736         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
18737         libgtk.la
18738         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
18739         versions
18740
18741         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
18742         checking macros return NULL since the function has a return value.
18743
18744 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
18745
18746         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
18747         GTK+ from building at all.
18748
18749         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
18750
18751 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
18752
18753         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
18754         gtk/Makefile.am: make it possible to configure gtk for different
18755         targets on the same platform. The library name is now 
18756         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
18757         flag. Only the x11 target compiles right now.
18758         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
18759         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
18760         * gdk/nanox/gdk*generic*: delete generic region code.
18761         * gdk/linux-fb/gdk*generic*: delete generic region code.
18762         * README.nanox: update information.
18763         
18764 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
18765
18766         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
18767         prepend not append. (Pointed out by Brett Hall.)
18768
18769 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
18770
18771         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
18772
18773 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
18774
18775         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
18776         need this later, and this makes sure that the atexit for
18777         glib gets called after that for GDK, so atexits are
18778         properly ordered for object leak checking.
18779
18780         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
18781
18782         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
18783         pango_x_shutdown_display()
18784
18785         * gtk/simple.c (main): Close window on destroy.
18786
18787 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
18788
18789         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
18790         to treat initial creation different from setting with 
18791         regards to the graphics-exposures parameter, so add a parameter
18792         indicating whether this is initial or not.
18793
18794 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
18795
18796         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
18797         to sort of work by adding an extra return_exposes arg
18798         to gdk_event_translate() - it might be better to simply
18799         deprecate the function altogether and force people to rewrite
18800         without it. gdk_window_scroll() handles most of it, and where
18801         gdk_window_scroll() doesn't work, simply redrawing more does.
18802
18803         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
18804         assertion.
18805
18806         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
18807
18808         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
18809         bunch of pretty much useless /* Print debugging info */ comments 
18810         which had drifted away from the code they were commenting.
18811
18812 2000-06-02  Havoc Pennington  <hp@pobox.com>
18813
18814         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
18815         is in working order.
18816         
18817         * gtk/testtext.c: Change to reflect anonymous mark API
18818
18819         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
18820
18821         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
18822         field, which was unused.
18823
18824         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
18825         saves some typing.
18826
18827         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
18828
18829         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
18830         flag on the insertion point and selection bound
18831
18832         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
18833         make mark-manipulation functions take a GtkTextMark* instead of a
18834         mark name.
18835         
18836         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
18837         GtkTextMarkBody; will be used to detect attempts to delete
18838         the permanent marks (insert and selection bound)
18839
18840         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
18841
18842 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
18843
18844         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
18845         flag to on.
18846
18847         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
18848         Honor DOUBLE_BUFFRED_FLAG
18849
18850         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
18851         function to set the DOUBLE_BUFFERED flag.
18852
18853         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
18854         or not exposes done on the widget should be double-buffered.
18855
18856         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
18857         to be what would be expected. (Fixes problem with a
18858         g_return_if_fail() validating a TextDirection enumeration)
18859
18860 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
18861
18862         * gtk/gtkwidget.c: Remove all references to 
18863         offscreen flag which was no longer used.
18864
18865         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
18866
18867         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
18868         for non-null label_widget->parent.
18869
18870         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
18871         which no longer was used.
18872
18873         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
18874
18875         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
18876         for null arguments.
18877
18878         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
18879         check for destroyed windows.
18880
18881 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
18882
18883         * gtk/gtkimmulticontext.c: Add a finalize method and unref
18884         the slave context there.
18885
18886         * gtk/gtkinvisible.[ch]: Make reference counting behavior
18887         identical to GtkWindow.
18888
18889 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
18890
18891         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
18892         pangox to here, so we can write them independent of rendering
18893         system, using GDK primitives.
18894
18895         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
18896         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
18897         since we have a rendering-system independent implementation in
18898         terms of draw_glyphs().
18899         
18900         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
18901         function to render a single line.
18902
18903         * gdk/x11/gdkpango.c: Move the guts of this file mostly
18904         into ../gdkpango.c, which simplifies things, since we
18905         don't have to deal with raw X gc's.
18906
18907 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
18908
18909         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
18910         get the logical attributes for a given GtkTextLine.
18911
18912 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
18913
18914         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
18915         g_locale_get_codeset() to g_get_codeset() change.
18916
18917 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
18918
18919         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
18920         descriptions.
18921
18922         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
18923         the entry.
18924
18925         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
18926         redoing (vastly simplifying) for Pango. Still needs quite
18927         a bit of work. (Size selection is currently poor. List of 
18928         predefined sizes is not a good idea, since all of these
18929         sizes won't necessarily be distinct.)
18930
18931 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
18932
18933         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
18934         CODESET results for LANG=C.
18935
18936 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
18937
18938         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
18939         which takes a stringized pango font description;
18940         ignore the older 'font' and 'fontset' declarations.
18941
18942         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
18943         field with a GdkFont derived via gdk_font_from_description(),
18944         for compatibility. (Should we just remove it entirely?
18945         Probably too much compatibility breakage, but people
18946         should be migrating to the new Pango stuff as quickly
18947         as possible.)
18948
18949 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
18950
18951         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
18952
18953 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
18954
18955         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
18956         redoing; there are some bugs in size allocation right
18957         now, the semi-existant distinction between header / day
18958         fonts was removed, but, with Pango, could actually
18959         be made functional in a nice way.
18960         
18961         * gtk/testcalender: Move calender from examples into this
18962         directory as a test program. (We really need to restrcture
18963         testgtk into a whole directory full of tests for every
18964         widget or functionality group, separated into multiple .c
18965         files.)
18966
18967 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
18968
18969         * gtk/testgtk.c (file_exists): Fix stupid typo that
18970         was keeping RC file from being loaded.
18971
18972         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
18973         RC file font code.
18974
18975 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
18976
18977         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
18978         Add function to load a GdkFont from a PangoFontDescription.
18979
18980 2000-05-29  Tor Lillqvist  <tml@iki.fi>
18981
18982         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
18983         variable should be of type GdkEventPrivate.
18984
18985 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
18986
18987         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
18988         to have any widget for the label, use a GtkLabel widget
18989         to display the text. (Based partially on a patch from
18990         Anders Carlson.)
18991
18992         (Quite a bit of code reorganization - strip 90% of the
18993         guts out of gtkaspectframe and add a single virtual
18994         func to GtkFrameClass - compute_child_allocation.)
18995
18996 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
18997
18998         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
18999         (Removed clist->row_center_offset field because caching
19000         it wasn't saving time or code, added private function
19001         _gtk_clist_create_cell_layout()).
19002
19003 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
19004
19005         * gtk/gtkaccellabel.c: Pangoized.
19006
19007         * gtk/[hv]ruler.c: Pangoized
19008
19009 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
19010
19011         * gtk/gtkfilesel.c (gtk_file_selection_init):
19012         Use gtk_clist_set_column_auto_resize() to remove need
19013         need for manual column width computations.
19014
19015 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
19016
19017         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
19018         ensuring Pango correctness, and considerably simplifying the
19019         code.
19020         
19021         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
19022
19023         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
19024         getting of numbers of lines.
19025
19026         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
19027         to the actual requested width of the lable, not to the wrap
19028         width we set.
19029
19030         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
19031
19032         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
19033           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
19034
19035         * gtk/gtktextview.c: Fix structure inheritance.
19036
19037         * gtk/gtkprogressbar.c: Pangoize.
19038
19039 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
19040
19041         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
19042         in a function.
19043
19044         * gtk/gtktextlayout.c (find_display_line_above): Fixed
19045         bug with computing line tops.
19046
19047         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
19048
19049 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
19050
19051         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
19052         and y_offset coordinates to do what we need now. (The offset between
19053         buffer and layout coordinates has been reintroduced, but is a 
19054         bit different than before.)
19055
19056         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
19057         handle the adjustments ourselves, and scroll as necessary using
19058         the new gdk_window_scroll().
19059         
19060         The advantage of this is that when we are incrementally revalidating,
19061         we are essentially rearranging things around the visible portion
19062         of the screen. With the old setup, the visible portion of the
19063         screen was moved around in the layout, so scrolling and redrawing
19064         to track that caused jumping of the display. Since we now
19065         control the scrolling ourselves, we can suppress this and
19066         only redraw when things actually change.
19067
19068 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
19069
19070         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
19071         the region not just redisplay it after-all, since we store the
19072         cursors in the LineDisplay. (Ugly interactions here between
19073         GtkLayout and GtkTextBTree here.)
19074         
19075         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
19076
19077 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
19078
19079         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
19080         Added function to scroll contents of a window while keeping the
19081         window constant. Works by XCopyArea or guffaw-scrolling depending
19082         on the details of how the window is set up. (guffaw-scrolling
19083         still needs to be filled in.)
19084
19085 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
19086
19087         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
19088         move the debugging that was tied to a global variable
19089         to that.
19090
19091         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
19092
19093         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
19094         validated flag, in line data instead of setting height/width to
19095         -1. This allows us to perform operations with partially invalid
19096         buffer (using the old size for invalid lines) and thus to do
19097         incremental vaidation. Keep height/width aggregates up to date
19098         when deleting text and rebalancing the tree.
19099
19100         * gtk/gtktextbtree.[ch]: Add functions validate a line
19101         (gtk_text_btree_validate_line), and to validate up
19102         to a number of pixels (gtk_text_btree_validate).
19103
19104         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
19105         that indicates that something is changed and a revalidation
19106         pass is needed. Change ::need_repaint to ::changed, and
19107         make it take old and new yranges instead of a rectangle.
19108
19109         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
19110         the line_data_destroy() function from 
19111         gtk_text_btree_add_view() to a virtual function in 
19112         GtkTextLayout
19113
19114         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
19115         since we are handling partial repaints in a different fashion
19116         now.
19117
19118         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
19119         of the selection instead of queueing a repaint on the
19120         entire widget.
19121
19122         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
19123         get_selection_bounds() down to btree, make the function
19124         in buffer a wrapper around the btree function.
19125
19126         * gtk/gtktextlayout.[ch]: Add functions to check if the
19127         layout is valid and to recompute either a range of pixels
19128         aroudn a line or a certain total number of pixels.
19129
19130         * gtk/gtktextlayout.[ch]: Cache a single line display;
19131         now that we only redraw the needed portions, the hit rate
19132         for this cache is quite high.
19133         
19134         * gtk/gtktextview.[ch]: Keep track of the first paragraph
19135         on the screen so that when re-laying-out the buffer, we can
19136         keep the same place. This requires connecting to ::value_changed
19137         on the adjustments
19138
19139         * gtk/gtktextview.[ch]: Add idle functions to revalidate
19140         the buffer after we receive an ::invalidated signal.
19141         
19142 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
19143
19144         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
19145         to max of allocation and layout size, not just to the
19146         layout size.
19147
19148         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
19149         Invalidate window so it gets redrawn properly.
19150
19151         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
19152         to mean the entire window.
19153
19154         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
19155         into public header.
19156
19157 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
19158
19159         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
19160         to get the name of a mark.
19161
19162         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
19163         to find the paragraph from a y position.
19164
19165 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
19166
19167         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
19168         nodes have width/height >= 0, not > 0.
19169
19170 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
19171
19172         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
19173         Add a size_only flag, so when we only need the size, we don't create
19174         useless appearance attributes.
19175
19176         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
19177         duplicate setting of font description.
19178
19179         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
19180
19181 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
19182
19183         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
19184         EXTRA_DIST. It does not work well when the file that
19185         everything depends on is not in the tarball.
19186
19187 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
19188
19189         * gtk/testgtk.c: Some hacks and fixes so that it basically
19190         works when not sitting in the GTK+ build tree.
19191
19192 2000-05-03  Havoc Pennington  <hp@redhat.com>
19193
19194         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
19195         Properly determine the ordering of the tag root and the current
19196         line within the tree. Previous algorithm only worked if the tag
19197         root's immediate parent was the common root of both the current
19198         line and the tag root.
19199
19200 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
19201
19202         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
19203         alignment.
19204
19205         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
19206         the widget text directional dynamically.
19207
19208         * gtk/gtktextview.[ch]: Added functions to get and set default
19209         wrap mode.
19210
19211 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
19212
19213         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
19214         in cursor location computation.
19215
19216 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
19217
19218         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
19219         vadjusment values properly when layout gets smaller.
19220
19221         * gtk/gtktextview.c (need_repaint_handler): Areas being
19222         passed in are far completely inaccurate, and sometimes
19223         too small, so, for now, just queue a redraw on the
19224         whole visible region.
19225
19226 2000-04-25  Havoc Pennington  <hp@redhat.com>
19227
19228         * gtk/gtktextbtree.c (summary_destroy): new function to 
19229         destroy tag summary nodes
19230         (gtk_text_line_next_could_contain_tag): this function was 
19231         totally broken if the line passed in wasn't below the tag
19232         root. Fix it.
19233         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
19234         "wildcard" case, we have to do a linear scan. Blah.
19235         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
19236         we have to do the linear scan
19237         (tag_removed_cb): When a tag is removed from the tag table, 
19238         remove the GtkTextTagInfo node from the btree.
19239         (gtk_text_btree_spew): Implement the spew function, for 
19240         our debugging pleasure.
19241
19242 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
19243
19244         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
19245         a problem with referring to the wrong buffer.
19246
19247         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
19248
19249         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
19250         font description to gtk_style_new() - otherwise things
19251         don't work without a .gtkrc file.
19252
19253         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
19254         tags table if we create it ourself, too.
19255
19256         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
19257         it was conflicting with XKB modifiers.
19258
19259         * gtk/gtktextview.[ch]: Add simple support for 
19260         GtkIMContext.
19261
19262 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
19263
19264         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
19265         with deletion from last commit.
19266
19267 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
19268
19269         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
19270         in the context from the current locale.
19271         
19272         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
19273         context, not hardcoded value.
19274
19275         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
19276         not logical.
19277
19278 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
19279
19280         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
19281         attributes - that doesn't handle partial-glyph selection
19282         properly. Instead use new pango_layout_line_get_x_ranges()
19283         functionality to draw the selection.
19284
19285         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
19286         now properly handles out-of-range coordinates.
19287
19288         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
19289
19290         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
19291         public.
19292
19293         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
19294         for paragraphs opposite to the base direction of the widget.
19295
19296         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
19297
19298         * gtk/gtktextlayout.c: Don't split segments on marks, since that
19299         causes Arabic words to reshape as you cursor through.
19300
19301         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
19302         cursor position when moving vertically with the arrow keys and
19303         scrolling with page-up/page-down. (Arrow keys save only the X,
19304         scrolling saves both X and Y.)
19305
19306         This means you can line-up / line-down or page-up / page-down
19307         without losing your place, and also that moving vertically
19308         with the cursor keys keeps the same X position, not the same
19309         character count:
19310
19311         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
19312         arrow keys move by display lines, not paragraphs.
19313
19314 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
19315
19316         * gtk/gtklayout.c: Make sure that the bin window is at least
19317         as big as the allocation. (Should we also make sure that the
19318         bin window is big enough to completely cover widget->window?)
19319
19320         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
19321         function to get the onscreen rectangle.
19322
19323         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
19324         for offsets in window coordinates.
19325
19326 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
19327
19328         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
19329         confusion.
19330
19331         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
19332         from the widget direction.
19333
19334         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
19335         Add a "direction" attribute.
19336
19337         * gtk/gtktextview.c: global s/tkxt/text_view/.
19338
19339         * gtk/testtext.c: Added long block of text in Arabic, to test out
19340         the direction attributes. (Some problems with the shaping system
19341         for arabic become obvious - like the fact the cursor splits words
19342         into unjoined pieces.)
19343
19344 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
19345
19346         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
19347
19348         * gtk/gtktextlayout.c: Fix up alignment.
19349
19350         * gtk/testtext.c: Add some tests for centering, wrapping.
19351
19352 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
19353
19354         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
19355         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
19356         If we wrote GTK+-specific layout-render function this could just replace
19357         the draw_layout() operation in the vtable.
19358
19359         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
19360         pango_layout_get_cursor_pos() and use that function.
19361
19362         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
19363         is a non-static symbol.
19364
19365         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
19366         with gtk_text_btree_find_line_by_y()
19367
19368         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
19369         renderer that handles GtkTextAppearance attributes.
19370
19371         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
19372
19373           - Move the values in the style that don't affect geometry into a
19374             GtkTextAppearance structure.
19375           - Change underline to take a PangoUnderline and "font" a string
19376             representation of a font description
19377           - Add a "font_desc" attribute which takes a FontDescription structure.
19378
19379         * gtk/gtktextlayout.[ch]:
19380
19381           - Get rid of the display-line list per each line. Instead, we
19382             generate, on demand, a GtkTextLineDisplay structure which]
19383             contains a PangoLayout * and other necesary information
19384             (offsets, cursor locations) for displaying a paragraph.
19385           - Get rid of the code to wrap lines, create display chunks,
19386             etc. Instead, we just go through a paragraph and convert
19387             it into the necessary inputs to a PangoLayout.
19388           - Implement a new attribute type, GtkTextAttrAppearance. This
19389             holds a GtkTextAppearance, and is used to pass colors, 
19390             stipple, etc, through from the layout to the display without
19391             having to use lots and lots of individual attributes.
19392           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
19393             in terms of PangoLayout functions.
19394         
19395         * gtk/gtktextview.c: 
19396          
19397           - Handle passing the necessary PangoContext to the layout
19398           - Some fixups in painting to deal with the automatic backing store
19399             and offsetting of GTK+-1.4
19400           - Add a style_set handler so that the default style reacts
19401             properly to theme changes.
19402         
19403         * gtk/gtktext?*.[ch]: Random code-style fixes.
19404
19405         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
19406
19407 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
19408
19409         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
19410         in original form preparatory to Pango-ization and gdkimcontext-ization.
19411
19412 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
19413
19414         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
19415         so that we can derive from gtkimcontext in language bindings properly.
19416
19417 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
19418
19419         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
19420         Add a compose table including (almost) all the compose combinations
19421         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
19422         data in the XIM implementation.
19423
19424         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
19425         Moved functions to convert keyvalues from and to unicode here from
19426         the win32 port and made them public.
19427
19428 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
19429
19430         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
19431
19432 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
19433
19434         * gtk/gtkimcontext.[ch]: Base class for new input context system
19435
19436         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
19437         the real input context implementation to be loaded from modules
19438         and switched on the fly.
19439
19440         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
19441         context that just does direct keysymbol => unicode translation.
19442
19443         * gtk/gtkentry.[ch]: Start switching editing over to using
19444         GtkInputContext. (No handling of preedit yet.)
19445
19446 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
19447
19448         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
19449         many substitutions. (klass should not be subsituted.)
19450
19451 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
19452
19453         * configure.in: Add checks for Pango
19454
19455         * configure.in docs/Makefile.am: Add test for sgml2html
19456         and allow 'make dist' without building html, but print out
19457         warnings in that case. (For making snapshots)
19458
19459         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
19460         Add Pango libraries and C flags
19461
19462         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
19463         Add function (gdk_draw_layout) to draw a pango layout.
19464
19465         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
19466         for getting Pango contexts for GDK.
19467
19468         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
19469
19470         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
19471         editing.
19472
19473         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
19474         keysym => unicode translations. More languages can be added
19475         here, but real input-method support is needed.
19476
19477         * docs/Changes-1.4.txt: Added note about entry behavior.
19478         
19479         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
19480         to set the reading direction for a widget and the global direction.
19481         Add test which allows toggling the global direction. Two private
19482         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
19483
19484         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
19485           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
19486
19487         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
19488
19489         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
19490         underlining now handled by Pango.
19491
19492         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
19493         to RCStyle and Style. (Having both this and the old font name and GdkFont 
19494         is temporary.)
19495
19496         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
19497         convenience functions for creating contexts and layouts for widgets.
19498
19499         * gtk/testgtk.c: Enhance label tests with multilingual labels.
19500
19501 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
19502
19503         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
19504         titles to be active, even if they aren't visible.
19505         (gtk_clist_column_titles_passive):  Ditto.
19506
19507 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
19508
19509         * gtkmenu.c:
19510         * gtkmenu.h:
19511         * gtktypeutils.h: Spelling/grammar fixes in comments.
19512
19513 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
19514
19515         * gdk/nanox/*.h: add missing header files.
19516
19517 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
19518
19519         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
19520         send_event to TRUE.
19521         (gtk_drawing_area_size): queue a resize.
19522
19523 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
19524
19525         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
19526         the handlers, also invalidate them. bug nailed down by Karl Nelson
19527         <kenelson@ece.ucdavis.edu>.
19528
19529 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
19530
19531         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
19532         "(nil)" foundries, patch from Grigorios Magklis.
19533
19534         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
19535         on non-available fonts, based on a patch by Grigorios Magklis
19536         <maglis@cs.rochester.edu>.
19537
19538 2000-05-18  Elliot Lee  <sopwith@redhat.com>
19539
19540         * gdk/x11/gdkregion-generic.c: If a region does not have any
19541         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
19542         instead of GDK_OVERLAP_RECTANGLE_IN.
19543
19544 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
19545
19546         * gtk/gtklayout.c (gtk_layout_map): Remove references to
19547         OFFSCREEN, as it is no longer necessary.
19548
19549 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
19550
19551         * gtk/gtkcolorsel.c: Patch from David Santiago
19552         <mrcooger@cyberverse.com> to change things so that the 
19553         indicator of the active palette entry is done independently,
19554         not via the focus, since it should always be visible.
19555
19556 2000-05-17  Tor Lillqvist  <tml@iki.fi>
19557
19558         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
19559         refcount leaks as in the X11 backend.
19560
19561         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
19562         cosmetics.
19563
19564         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
19565         backend. Add _gdk_windowing_window_destroy().
19566
19567         * gtk/gtkcolorsel.c: Include correct backend-specific header.
19568         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
19569         either, but these probably do exist on nanox?)
19570         
19571         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
19572         which isn't necessarily defined by <math.h>.
19573
19574         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
19575         ancestry past GtkObject.
19576
19577         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
19578         from DLL on Win32.
19579
19580         * gtk/gtk.def: Update corresponding to recent changes.
19581
19582         * gtk/makefile.{cygwin,msc}: Updates.
19583
19584 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
19585
19586         * docs/Changes-1.4.txt: A bit of editing.
19587
19588         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
19589         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
19590         to clear the update area for the window, and clear it
19591         when hiding a window.
19592
19593         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
19594         if window destroyed.
19595
19596         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
19597
19598         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
19599         gdk_window_destroy() to the generic code, since there was a lot of 
19600         window-system-independent logic it in. Add a function:
19601         
19602          _gdk_window_destroy() 
19603
19604         to the internal API to destroy a window without unreferencing it.
19605         Add a function:
19606
19607          _gdk_windowing_window_destroy()
19608
19609         That does the windowing-system-dependent part of destroying 
19610         the window.
19611
19612 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
19613
19614         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
19615
19616 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
19617
19618         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
19619         Make gtk_widget_shape_combine_mask() keep a reference count on
19620         the pixmap since it keeps it around.
19621
19622 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
19623
19624         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
19625         leak.
19626
19627         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
19628         leak with event filters.
19629
19630 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
19631
19632         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
19633         signal handlers with the right data arguments. (Fixes
19634         some warnings when a widget was repeatedly set as a drag
19635         destination.)
19636
19637         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
19638         window so we can avoid avoid setting the DND properties on the
19639         toplevel window repeatedly.
19640
19641 2000-05-13  Tor Lillqvist  <tml@iki.fi>
19642
19643         * gdk/win32/gdkwin32.h: Define more message types missing from
19644         mingw headers.
19645
19646         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
19647         call gdk_window_destroy_notify(). It was never called. This
19648         probably meant that the GdkWindow was never freed. Thanks Owen for
19649         noticing (!).
19650
19651         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
19652         window as destroyed before calling DestroyWindow(). DestroyWindow()
19653         causes a call to the window procedure (gdk_WindowProc), which
19654         calls gdk_event_translate(), which calls
19655         gdk_window_destroy_notify(), which gets confused unless the window
19656         is set as destroyed.
19657
19658         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
19659         this function to indicate it's win32 only. Put inside #ifdef
19660         G_ENABLE_DEBUG.
19661
19662         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
19663         debugging function. (gdk_event_translate:) Add a default branch
19664         that uses the above function to print debug messages with all
19665         Windows messages symbolically.
19666
19667         * gdk/win32/gdkprivate-win32.h: Declare it, and
19668         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
19669
19670 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
19671
19672         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
19673         public header file.
19674
19675 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
19676
19677         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
19678
19679         * gtk/gtktext.c: made the adjustments no-construct args, simply
19680         provide default adjustments.
19681         (gtk_text_destroy): release adjustments.
19682
19683         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
19684         adjustment argument non-construct.
19685
19686         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
19687         instead of in finalize.
19688         (gtk_progress_get_text_from_value): 
19689         (gtk_progress_get_current_text): 
19690         (gtk_progress_set_value): 
19691         (gtk_progress_get_percentage_from_value): 
19692         (gtk_progress_get_current_percentage): 
19693         (gtk_progress_set_percentage): 
19694         (gtk_progress_configure): ensure an adjustment is present.
19695
19696 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
19697
19698         * gtk/gtkcolorsel.[hc]:
19699         * gtk/gtkcolorseldialog.[hc]:
19700         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
19701         their parent implementation, use bit fields for boolean values, don't
19702         create unused widgets, usage of glib types, braces go on their own
19703         lines, function argument alignment, #include directives etc. etc. etc..
19704
19705         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
19706
19707 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
19708
19709         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
19710
19711         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
19712         of NULL.
19713
19714         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
19715         to freed data.
19716         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
19717
19718         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
19719         to NULL when the toplevel is getting destroyed.
19720         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
19721         (gtk_menu_destroy): 
19722         (gtk_menu_init): store the information of whether we have to
19723         readd the initial child ref_count during destruction in a new
19724         GtkMenu field needs_destruction_ref_count.
19725
19726         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
19727         here, those reading: learn from my mistake! ;)
19728         in order for set_?adjustment to support a default adjustemnt if
19729         invoked with an adjustment pointer of NULL, the code read (pseudo):
19730         if (v->adjustment) unref (v->adjustment);
19731         if (!adjustment) adjustment = adjustment_new ();
19732         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
19733         now imagine the first unref to actually free the old adjustment and
19734         adjustment_new() creating a new adjustment from the very same memory
19735         portion. here, the latter comparision will unintendedly fail, and
19736         all hell breaks loose.
19737         (gtk_viewport_set_hadjustment):
19738         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
19739         after unreferencing it.
19740
19741         * gtk/gtkcontainer.[hc]: removed toplevel registration
19742         functions: gtk_container_register_toplevel(),
19743         gtk_container_unregister_toplevel() and
19744         gtk_container_get_toplevels() which had wrong semantics
19745         anyways: it didn't reference and copy the list.
19746
19747         * gtk/gtkwindow.c: we take over the container toplevel registration
19748         bussiness now. windows are registered across multiple destructions,
19749         untill they are finalized. the initial implicit reference count
19750         users are holding on windows is removed with the first destruction
19751         though.
19752         (gtk_window_init): ref & sink and set has_user_ref_count, got
19753         rid of gtk_container_register_toplevel() call. add window to
19754         toplevel_list.
19755         (gtk_window_destroy): unref the window if has_user_ref_count
19756         is still set, got rid of call to
19757         gtk_container_unregister_toplevel().
19758         (gtk_window_finalize): remove window from toplevel list.
19759         (gtk_window_list_toplevels): new function to return a newly
19760         created list with referenced toplevels.
19761         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
19762
19763         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
19764         adjustment a non-construct arg.
19765         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
19766         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
19767         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
19768
19769         * gtk/gtkrange.c: added some realized checks.
19770         (gtk_range_destroy): get rid of the h/v adjustments in the
19771         destroy handler instead of finalize. remove timer.
19772         (gtk_range_get_adjustment): demand create adjustment.
19773
19774         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
19775         we simply create them on demand now and get rid of them in
19776         the destroy handler.
19777         (gtk_viewport_destroy): get rid of the h/v adjustments in the
19778         destroy handler instead of finalize.
19779         (gtk_viewport_get_hadjustment): 
19780         (gtk_viewport_get_vadjustment): 
19781         (gtk_viewport_size_allocate): demand create h/v adjustment
19782         if required.
19783
19784         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
19785         gtk_widget_real_destroy () functionality.
19786         (gtk_widget_real_destroy): reinitialize with a new style, instead
19787         of setting widget->style to NULL.
19788
19789 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
19790
19791         * gtk/gtkcalendar.c:
19792         * gtk/gtkbutton.c: ported _get_type() implementation over to
19793         GType, either to preserve memchunks allocation facilities,
19794         or because Gtk+ 1.0 GtkTypeInfo was still being used.
19795
19796         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
19797         over. prepare for ::destroy to be emitted multiple times.
19798         removed reference tracer magic. chain into GObjectClass.shutdown()
19799         to emit ::destroy signal.
19800
19801         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
19802         fundamental.
19803
19804         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
19805         cludge.
19806
19807         * gtk/gtksocket.c:
19808         * gtk/gtkplug.c:
19809         * gtk/gtklayout.c:
19810         * gtk/gtklabel.c:
19811         * gtk/gtkargcollector.c:
19812         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
19813         not being a fundamental anymore, and to work with the new
19814         type system (nuked fundamental type varargs clutter).
19815
19816         * gtk/*.c: install finalize handlers in the GObjectClass
19817         part of the class structure.
19818         changed direct GTK_OBJECT()->klass accesses to
19819         GTK_*_GET_CLASS().
19820         changed direct object_class->type accesses to GTK_CLASS_TYPE().
19821
19822         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
19823         GType. made most of the GTK_*() type macros and Gtk* typedefs
19824         simple wrappers around macros and types provided by GType.
19825         most notably, a significant portion of the old API vanished:
19826         GTK_TYPE_MAKE(),
19827         GTK_TYPE_SEQNO(),
19828         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
19829         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
19830         GTK_TYPE_ARGS,
19831         GTK_TYPE_CALLBACK,
19832         GTK_TYPE_C_CALLBACK,
19833         GTK_TYPE_FOREIGN,
19834         GtkTypeQuery,
19835         gtk_type_query(),
19836         gtk_type_set_varargs_type(),
19837         gtk_type_get_varargs_type(),
19838         gtk_type_check_object_cast(),
19839         gtk_type_check_class_cast(),
19840         gtk_type_describe_tree(),
19841         gtk_type_describe_heritage(),
19842         gtk_type_free(),
19843         gtk_type_children_types(),
19844         gtk_type_set_chunk_alloc(),
19845         gtk_type_register_enum(),
19846         gtk_type_register_flags(),
19847         gtk_type_parent_class().
19848         replacements, where available are described in ../docs/Changes-1.4.txt.
19849         implemented compatibility functions for the remaining API.
19850
19851         * configure.in: depend on glib 1.3.1, use gobject module.
19852
19853 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
19854
19855         * TODO.xml: Various updates to current status.
19856
19857 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
19858
19859         * gtk.m4: Print out version when test succeeds.
19860
19861 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
19862
19863         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
19864         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
19865         
19866         (Original triangle color selector from Simon Budig
19867         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
19868         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
19869         Santiago <mrcooger@cyberverse.com>)
19870
19871         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
19872         out into a separate widget.
19873
19874         * gtk/testgtk.c: Add some checkbuttons for toggling palette
19875         and opacity controls.
19876
19877 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
19878
19879         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
19880         snuck in prematurely.
19881
19882 2000-05-07  Tor Lillqvist  <tml@iki.fi>
19883
19884         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
19885         had deleted a ! operator by mistake, which caused
19886         GDK_SELECTION_CLEAR events never to be generated, which caused
19887         only the first copy to the clipboard from an gtkeditable to
19888         actually cause a copy to the Windows clipboard.
19889
19890 2000-05-06  Tor Lillqvist  <tml@iki.fi>
19891
19892         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
19893         compilation, too. Current mingw gcc distributions include the
19894         necessary headers. Also the necessary IIDs are now in mingw
19895         headers/libraries, and own definitions unnecessary.
19896
19897         More hacking on OLE2 DND, still doesn't work though, and thus
19898         ifdeffed out.
19899
19900         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
19901         here, too.
19902
19903 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
19904
19905         * gdk/nanox/*: nano-X port work in progress.
19906         * gdk/simple.c: simple test for Gdk.
19907         * README.nanox: notes about the port: read this first!
19908         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
19909         with nano-X.
19910
19911 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
19912
19913         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
19914         gdk_window_clear() into common code, implement in terms of
19915         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
19916         not redirected to the backing rectangle.
19917
19918 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
19919
19920         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
19921         EXTRA_DIST. It does not work well when the file that
19922         everything depends on is not in the tarball.
19923
19924 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
19925
19926         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
19927         with recursion where process_updates() is called from
19928         an expose handler. (GtkTextView is highly broken in
19929         doing this, but it should work, so it is a nice test
19930         case.)
19931
19932 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
19933
19934         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
19935         handle the case where updates are queued during processing of
19936         updates.
19937
19938 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
19939
19940         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
19941         window is on gdk_display - use that instead of segfaulting.
19942
19943 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
19944
19945         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
19946         broken and require an empty arg, give it to them.
19947
19948 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
19949
19950         * gtk/gtklabel.h: indentation fixes.
19951
19952 2000-05-02  Tor Lillqvist  <tml@iki.fi>
19953
19954         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
19955         draw too narrow or too low arcs, they seem to fail, at least with
19956         some display drivers.
19957
19958         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
19959
19960         Large changes to the Win32 backend, partially made necessary by
19961         the changes to the backend-independent internal
19962         structures. Attempts to implement similar backing store stuff as
19963         on X11. The current (CVS) version of the Win32 backend is *not* as
19964         stable as it was before the no-flicker branch was merged. A
19965         zipfile with that version is available from
19966         http://www.gimp.org/win32/. That should be use by "production"
19967         code until this CVS version is usable. (But note, the Win32
19968         backend has never been claimed to be "production quality".)
19969
19970         * README.win32: Add the above comment about versions.
19971
19972         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
19973
19974         * gdk/gdk.def: Update.
19975
19976         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
19977         presumably be replaced by some more better mechanism as 1.4 gets
19978         closer to release shape.
19979
19980         * gdk/makefile.{cygwin,msc}: Update.
19981
19982         * gdk/win32/*.c: Correct inclusions of the backend-specific and
19983         internal headers. Change code according to changes in these. Use
19984         gdk_drawable_*, not gdk_window_* where necessary.
19985
19986         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
19987         our old DND.
19988
19989         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
19990         to interpret single characters as UTF-8. Thanks to Hans Breuer.
19991         Use correct function name in warning messages.
19992
19993         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
19994         GSourceFuncs gdk_event_prepare and gdk_event_check.
19995         (gdk_event_get_graphics_expose): Do implement, use
19996         PeekMessage. Thanks to Hans Breuer.
19997         (event_mask_string): Debugging function to print an GdkEventMask.
19998         (gdk_pointer_grab): Use it.
19999
20000         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
20001         (old) book I used claimed was Hangul actually is CJK Unified
20002         Ideographs Extension A. Also, Hangul Syllables were missing.
20003         Improve logging.
20004
20005         * gdk/win32/gdkgc-win32.c: Largish changes.
20006
20007         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
20008         g_win32_getlocale() from GLib, and not setlocale() to get current
20009         locale name.
20010
20011         * gdk/win32/gdkprivate-win32.h
20012         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
20013         gdkwin32.h, similarily as in the X11 backend.
20014
20015         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
20016         assignment was used instead of equals in if test. Thanks to Hans
20017         Breuer.
20018
20019         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
20020         the X11 version.
20021
20022         * gdk/win32/makefile.{cygwin,msc}
20023         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
20024         path to the Win32 headers that works also with the mingw compiler.
20025
20026         * gtk/gtkstyle.c: Include <string.h>.
20027
20028 2000-04-26  Havoc Pennington  <hp@redhat.com>
20029
20030         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
20031         replacing the broken gtk_label_get ()
20032
20033 2000-04-15  Havoc Pennington  <hp@pobox.com>
20034
20035         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
20036         this keeps scanner scripts from getting confused.
20037
20038         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
20039         data, rather than void
20040
20041 2000-04-15  Tor Lillqvist  <tml@iki.fi>
20042
20043         * gtk/gtkclist.c (gtk_clist_motion)
20044         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
20045         with is_hint FALSE, get x and y from the event. They used to be
20046         used uninitialised. The Win32 backend never sends motion events
20047         marked as hints. This for instance fixes the annoying file and
20048         font selector behaviour in the Win32 version.
20049
20050 2000-04-14  Tor Lillqvist  <tml@iki.fi>
20051
20052         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
20053         gtk_private_n_signals variables, they are used by some software,
20054         sigh.
20055
20056         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
20057         installation directory from the Registry, where the installer
20058         should have put it.
20059
20060 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
20061
20062         * gdk/x11/Makefile.am: Fix problem with installation directory for
20063         gdkx.h
20064
20065         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
20066         <mrcooger@cyberverse.com> so that when selecting menus with the
20067         mouse, the first item will not be selected, but when selecting
20068         with an accelerator, or navigating left-right on a menubar with
20069         the menus popped up, the first item will be selected.
20070
20071 2000-04-05  Dan Damian  <dand@dnttm.ro>
20072
20073         * configure.in: Added "ro" to ALL_LINGUAS.
20074
20075 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
20076
20077         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
20078         indentation.
20079
20080         * Makefile.am (EXTRA_DIST): Fix typo.
20081
20082         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
20083         to catch gdkconfig.h
20084
20085         * gtk/gtkitemfactory.c: Added FIXME.
20086
20087 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
20088
20089         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
20090         s/return_if_fail/return_val_if_fail/g and add a return value.
20091
20092 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
20093
20094         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
20095         merge slipup.
20096
20097         * gdk/gdkinput.h: Fix missing line from merge.
20098
20099 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
20100
20101         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
20102         instead of gdkprivate.h.
20103
20104 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
20105
20106         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
20107         parent class to correctly be GtkDialogClass.
20108
20109 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
20110
20111         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
20112         toplevel windows and their immediate children by their parents,
20113         since the size of toplevel windows is out of our immediate
20114         control and we don't get any real benefit from trying to track
20115         this size for clipping.
20116
20117         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
20118         for input_only windows.
20119
20120         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
20121         to fix some hacks and make sure that we don't try to set the
20122         background of input only windows.
20123
20124 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
20125
20126         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
20127         the _really_ internal stuff, and leave gdkprivate.h for the fake private
20128         stuff that we've traditionally exposed.
20129
20130         * gdk/**.c: Use gdkinternals.h where appropriate.
20131
20132         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
20133         not include gdkprivate-x11.h, move all stuff of conceivable public
20134         interest into gdkx.h; keep all really private stuff in
20135         uninstalled header gdkprivate-x11.h.
20136
20137         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
20138         image->image_put on windows through a new function _gdk_window_draw_image()
20139         to allow us to do backing store for images. (Sort of ugly)
20140
20141         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
20142         contexts locally so that we can offset them properly when drawing 
20143         onto backing pixmaps.
20144
20145         * gdk/gdkinput.h: Reindented
20146
20147         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
20148         pixmap or color for the window, so we can properly initialize
20149         our double-buffer pixmaps, and also so that we temporarily set
20150         a background of None while scrolling.
20151
20152         * gdk/gdkregion.h: Revise region boolean operators to have an
20153         interface that is actually convenient - switch from creating new
20154         regions on every op, to "methods" that modify existing regions
20155         (A = A OP B). 3 argument forms which allow dest == src, would also
20156         be possible, but the current interfaces seem to map nicely
20157         onto what needs to be done. (There is quite a lot of region
20158         code in GDK now.)
20159
20160         * gdk/gdkregion.h: Add constructor from rectangle and a copy
20161         operator.
20162
20163         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
20164         gdkpoly-generic.h: Copy region code from Xlib, switch it over
20165         to 32 bit coordinates, modify it to be mostly GTK+ style
20166         and to have interfaces that match gdkregion.h.
20167
20168         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
20169         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
20170         create a backing pixmap and redirect all drawing to
20171         that backing pixmap until a matching gdk_window_end_paint().
20172
20173         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
20174         Create a special drawable class for GtkWindow's that 
20175         redirects the drawing to the backing pixmap as necessary
20176         and then calls the real operations in _gdk_windowing_window_class.
20177
20178         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
20179         Store invalid region for each window. Generate expose events for invalid
20180         region in an idle. This replaces both the expose compression
20181         and the redrawing queuing in GTK+. It is both more efficient and
20182         simpler than either one individually and far more so then the
20183         combination.
20184
20185         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
20186         Emulate 32 bit coordinates for windows with 16 bit coordinates
20187         by offsetting drawing, guffaw scrolling techniques and
20188         mapping/unmapping child windows as necessary.
20189
20190         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
20191         where, when invalid regions are processed, the region is stored,
20192         and if expose events come in that are detectably duplicate
20193         the processed exposes (by comparison of event serial numbers),
20194         the stored region is subtracted out of those exposes.
20195
20196         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
20197         regions newly exposed when scrolling or resizing windows.
20198         This, combined with forcing processesing of queued invalidated
20199         regions, gives nice flicker-free scrolling.
20200
20201         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
20202         invalidated regions after every scroll.
20203
20204         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
20205         emulation in GDK. Its, for all practical purposes just a
20206         GtkViewport/GtkFixed hybrid now.
20207
20208         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
20209         (16-bit) structures as necessary instead of just casting.
20210
20211         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
20212         in terms of the structures from gdkregion-generic.c, using appropriate
20213         offsets from GDK to X11 coordinates. Cache clip mask and
20214         origin and ts origin locally and only flush to the server
20215         when drawing, to avoid constantly setting and resetting these
20216         values when offsetting GC's for scrolling and backing pixmaps.
20217
20218         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
20219
20220         * gtk/gtkcontainer.c: Call process_all_updates at end
20221         of resizing to reduce flicker. (Avoids having redraw
20222         lag arbitrarily behind resize under some circumstances)
20223
20224         * gtk/gtkentry.c: Remove old backing store code, and simply take
20225         advantage of the new backing store capabilities of GDK.
20226
20227         * gtk/gtkmain.c: Simple implementation of widget backing
20228         store - simply push a paint while handling each expose.
20229         (Should really be configurable widget for widget.)
20230         
20231         * gtk/gtkwidget.c: Remove all the old complicated redraw
20232         code, and simply invalidate the GDK windows from
20233         gdk_window_queue_clear(), etc. (Sigh, so much carefully
20234         debugged complexity ... gone to the winds.)
20235
20236         Remove all the code for suppressing expose events while
20237         resizes are pending; this isn't needed since the invalid
20238         areas won't be processed until after the resizes are
20239         processed, since they are in a lower priority idle.
20240
20241 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
20242
20243         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
20244         and height of dest rectangle for non-intersecting rectangles.
20245
20246 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
20247
20248         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
20249         for GdkRectangle.
20250
20251 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
20252
20253         * gdk/gdk{events,image,private,types,window}.h
20254          gdk/x11/gdkinputprivate.h: Change all coordinates
20255          from int16 to int. Also, Change width and height from
20256          unsigned to signed to avoid all the stupid C 
20257          signedness bugs.
20258
20259 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
20260
20261         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
20262         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
20263         Add some more detailed checking.
20264
20265         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
20266         New function to retrieve the depth of a drawable.
20267
20268         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
20269         field, reorder fields to save memory. 
20270
20271 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
20272
20273         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
20274         of the background image instead of scaling the background down to
20275         a line.
20276
20277         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
20278         which temporarily set slider to wrong size.
20279
20280         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
20281         queue_clear().
20282
20283 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
20284
20285 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
20286
20287         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
20288
20289 2000-03-17  Tor Lillqvist  <tml@iki.fi>
20290
20291         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
20292         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
20293
20294         * gdk/win32/gdkfont-win32.c
20295         * gdk/win32/gdkproperty-win32.c
20296         * gdk/win32/gdkselection-win32.c
20297         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
20298         now declared such.
20299
20300 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
20301
20302         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
20303
20304 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
20305
20306         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
20307         is called without trapping X errors.
20308
20309 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
20310
20311         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
20312         way into the fontset lists.
20313
20314 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
20315
20316         * gtk/gtkthemes.h: add extern "C" scope.
20317
20318 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
20319
20320         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
20321         to make appends to the list constant. (gtk-guy-990901-0.patch)
20322
20323 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
20324
20325         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
20326         for the typename hash table.
20327
20328 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
20329
20330         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
20331         to make sure we never divide by zero. 
20332         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
20333
20334 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
20335
20336         * gtk/gtkfontsel.c: Apply patch from
20337         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
20338         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
20339
20340         Also, some cleanups in atom handling.
20341
20342 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
20343
20344         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
20345         not GtkWidget.
20346
20347 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
20348
20349         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
20350         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
20351         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
20352         more guint wrap-around bugs before going to bed.
20353
20354 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
20355
20356         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
20357         guint wrap arounds in allocation.width.
20358
20359         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
20360         process untill we fit the allocation given.
20361
20362 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
20363
20364         * gtk/gtkwidget.c:
20365         (gtk_widget_unrealize): guard widget access with ref/unref
20366         around signal emission.
20367         (gtk_widget_hide): same here, but also check its destroyed
20368         state before queueing a resize.
20369
20370 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
20371
20372         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
20373         of gtk_default_insensitive_bg as insensitive base color.
20374
20375         * gtk/gtktext.c (gtk_text_style_set): set the background color according
20376         to the widget's state.
20377         (gtk_text_realize): same here.
20378         (gtk_text_state_changed): same here.
20379         (draw_bg_rect): compare background color against base[] from
20380         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
20381
20382 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
20383
20384         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
20385         grabs are active, unless a delete event is send to the toplevel
20386         of the currently grab holding widget.
20387
20388 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
20389
20390         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
20391         debugging g_print's.
20392
20393 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
20394
20395         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
20396         ever make the scrolled-window requisition ever depend on the 
20397         visibility state of the scrollbars for the AUTOMATIC policy. 
20398         This breaks the GTK+ requisition model, and causes loops.
20399
20400 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
20401
20402         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
20403         the default font to avoid problems with XFree86-4.0 where the
20404         default charset is iso10646-1, not iso8859-1.
20405
20406 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
20407
20408         * acinclude.m4
20409         * config.guess
20410         * config.sub
20411         * ltconfig
20412         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
20413
20414         * gtk/Makefile.am: minor cosmetic consistency tweak
20415
20416 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
20417
20418         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
20419         the activate_time to 0, so that we handle a quick
20420         press/release press/release properly and don't suppress
20421         the second release. (Red Hat bug #7545)
20422
20423 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
20424
20425         * gtk/gtkctree.c (row_delete):
20426         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
20427         bugs with destruction notifier, *always* update internal
20428         structures *before* calling user code.
20429
20430 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
20431
20432         A few more fixes for bug #5487, #2051, #2677.
20433         * gtk/gtkclist.c : 
20434         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
20435         not GDK_BUTTON_PRESS.
20436         (resync_selection): resync only if selection_mode is
20437         GTK_SELECTION_EXTENDED
20438         * gtk/gtkctree.c (resync_selection): same here
20439
20440 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
20441
20442         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
20443         gdk_drag_get_selection() and gtk_menu_detach().
20444
20445         [ From Jeroen Ruigrok/Asmodai ]
20446
20447 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
20448
20449         * gtk/gtknotebook.c (gtk_notebook_size_request): 
20450         page->tab_label can be NULL.
20451
20452 2000-01-25  Havoc Pennington  <hp@pobox.com>
20453         
20454         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
20455         arg is boolean
20456
20457         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
20458
20459         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
20460
20461         * gdk/gdkproperty.c (gdk_property_get): return boolean
20462
20463         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
20464
20465         * gdk/gdkim.c (gdk_im_ready): return boolean
20466
20467         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
20468
20469         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
20470         glib clash, should fix glib)
20471
20472         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
20473         (gdk_get_show_events): return gboolean, and canonicalize 
20474         to TRUE/FALSE
20475
20476         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
20477         colormap is private
20478         (gdk_colors_alloc): gboolean whether to be contiguous
20479         (gdk_color_equal): return gboolean since we are a predicate
20480         and not a qsort() (this looks semi-wrong due to glib breakage,
20481         IMO glib should be fixed)
20482         
20483         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
20484         (gdk_get_use_xshm): return gboolean
20485         (gdk_pointer_is_grabbed): return gboolean
20486
20487         * gdk/gdk.h: Change prototypes to match all the above changes,
20488         and re-run egtk-format-protos as required.
20489
20490 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
20491
20492         * gtk/gtkctree.c (resync_selection): 
20493         * gtk/gtkclist.c (resync_selection):
20494
20495         Return immediately if clist->drag_pos < 0. This is a workaround
20496         for the corrupt state that the clist gets into when a
20497         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
20498
20499         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
20500         
20501         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
20502         variable from recent commit.
20503
20504 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
20505
20506         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
20507
20508 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
20509
20510         * gtk/Makefile.am: prefix all autogenerated source that get build in
20511         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
20512         in builddir. since we subsequently cd into srcdir for autogeneration,
20513         the paths have to be stripped from the target file names, thusly we
20514         use $(@F) as target names now.
20515         put a comment about configure.in's --disable-rebuilds option,
20516         which can be used for non-writable source directories, for development
20517         setups though, srcdir has to be *writable*.
20518
20519 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
20520
20521         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
20522           Finish the job of allowing event to be NULL.
20523           (Fixes bug #4283, reported by Chris Blizzard)
20524
20525         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
20526           things so that the cursor appears on screen, properly
20527           take into account INNER_BORDER.
20528           (Fixes bug #4754, reported by Antonio Campos)
20529
20530 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
20531
20532         * gtk/gtknotebook.c (gtk_notebook_map): Don't
20533           show the tab_label unless it itself is visible.
20534
20535           gtk/gtknotebook.c (gtk_notebook_size_request):
20536           Do a better job of making sure that the visibility
20537           of the tab label corresponds to whether it should
20538           be mapped or not.
20539
20540 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
20541
20542         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
20543           Use the requisition, not the allocation, since the
20544           allocation has not necessarily been computed yet.
20545           (Pointed out by Eugene Osintsev)
20546
20547 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
20548
20549         * gtk/gtkstyle.c (gtk_style_new): Dont' set
20550           style/base[GTK_STATE_INSENSITIVE] both to
20551           gtk_default_insensitive_bg!
20552           (Bug #2187, reported by Jonathan Blandford)
20553
20554         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
20555           Add Alt_L, Alt_R to list of invalid accelerators.
20556           (Bug #3736, reported by Vlad Harchev)
20557
20558 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
20559
20560         * gtk/gtkfilesel.c (open_ref_dir): Fix several
20561         bugs which occured after an attempt to open 
20562         invalid home directory left cmpl_state->reference_dir == NULL.
20563
20564          - completion on files in home directory didn't work
20565          - completion on an empty string caused  segfault
20566
20567          (Bug #3678, reported by Steve Ratcliffe)
20568
20569         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
20570         cut and paste error that was causing scales to
20571         be incorrectly positioned.
20572         (Bug #2956,
20573          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
20574
20575 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
20576
20577         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
20578         when checking for dcgettext, if we've found we needed
20579         it for dgettext.
20580 +
20581 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
20582
20583         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
20584         queue_clear on NO_WINDOW widgets during a reparent,
20585         since at that point the window and widget heirarchies
20586         are out of sync. This stops crashing in some cases
20587         (the scrolled window reparent test, for instance), and
20588         _probably_ won't cause drawing errors.
20589
20590         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
20591         test do what it was supposed to do and be robust against
20592         window closings, etc. (Bug #2443)
20593
20594 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
20595
20596         * gtk/gtkentry.c: Fix return values on mouse events.
20597         (Bug #2686, Sky <seb_sky@yahoo.com>)
20598
20599         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
20600         (pointed out by George Lebl)
20601
20602         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
20603         (From Ettore Perazzoli  <ettore@helixcode.com>)
20604  
20605 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
20606
20607         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
20608         clicks between rows or outside calender area correctly.
20609         (Patch from Damon Chaplin)
20610
20611         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
20612         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
20613           Call destroy function when overwriting existing data. 
20614           (Pointed out by Damon Chaplin)
20615
20616 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
20617
20618         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
20619           which was causing problems on various systems with Xmu.
20620           This hasn't been needed for a very long time.
20621           (Fixes #1185 3167)
20622
20623 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
20624
20625         * gdk/gdki18n.h: Include <ctype.h> when defining
20626           gdk_isw* in terms of is* as a fallback.
20627           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
20628
20629 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
20630
20631         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
20632           realize the widget when it is size allocated!
20633           (old, old bug)
20634
20635         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
20636           Removed unused call to gdk_window_get_size() that
20637           showed up when the above was fixed.
20638
20639 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
20640
20641         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
20642           fix up widget->window when the widget is a
20643           NO_WINDOW container widget.
20644
20645 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
20646
20647         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
20648           to account for the fact that feof() does _not_ 
20649           return TRUE on errors, and thus avoid infinite loops
20650           when trying to use gdk_pixmap_create_from_xpm()
20651           on unreadable values.
20652
20653 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
20654
20655         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
20656
20657 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
20658
20659         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
20660           gdk_gc_set_dashes to take gint8 instead of gchar to
20661           make it clearer that it is _not_ a NULL terminated string.
20662
20663         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
20664           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
20665           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
20666           arguments.
20667
20668 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
20669
20670         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
20671         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
20672         background size relative to our allocation, guard against small
20673         allocations, we may have not yet been size allocated.
20674
20675 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
20676
20677         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
20678         not just version == 3. We implement all 3 + most of 4 - 
20679         (we don't support matching text/plain;charset=iso-8859-1
20680         to a dest that expects text/plain). We'll still advertise
20681         3 to be safe, but any client implementing version >= 3
20682         must interoperate with 3.
20683         
20684 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
20685
20686         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
20687         background and gc members, add a warning in gtk_tooltips_set_color()
20688         indicating that this function is deprecated.
20689
20690 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
20691
20692         * docs/gtkfaq.sgml: FAQ Update:
20693           - Minor cleanups (Emmanuel, me)
20694           - New questions:
20695                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
20696                 How can I retrieve the text from a GtkMenuItem? (timj)
20697                 How do I validate/limit/filter the input to a GtkEntry? (me)
20698                 Memory does not seem to be released when I free the list
20699                         nodes I've allocated (timj)
20700
20701 2000-03-07  Tor Lillqvist  <tml@iki.fi>
20702
20703         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
20704         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
20705         for which it is no use to call GetLastError onWin9x.
20706         (gdk_other_api_failed) New function, for general error
20707         reporting without calling GetLastError.
20708         (gdk_win32_api_failed) OTOH, this function always calls
20709         GetLastError. (gdk_win32_last_error_string) Remove this function,
20710         GLib has the equivalent now.
20711
20712         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
20713         call them with function name, file name and line number in the
20714         arguments.
20715
20716         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
20717         functions.
20718         
20719         * gtk/gtk.def: Add some missing entry points.
20720
20721         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
20722         gtk_paned_set_gutter_size, which don't exist any longer, as void.
20723         
20724         Fixes by Hans Breuer:
20725
20726         * gdk/makefile.msc: Update for debugging.
20727
20728         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
20729         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
20730         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
20731         in the dash_list.
20732
20733         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
20734         the x11 backend.
20735
20736         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
20737
20738         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
20739
20740 2000-03-04  Tor Lillqvist  <tml@iki.fi>
20741
20742         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
20743         just pixel value of background colour.
20744
20745         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
20746         containing code snippet previously duplicated in a couple of
20747         places.
20748         
20749         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
20750         gdk_colormap_color.
20751
20752         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
20753         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
20754         events for autorepeated Shift, Control and Alt keys. Use
20755         gdk_colormap_color.
20756
20757         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
20758         pointer is inside the window the cursor of which we are setting,
20759         call SetCursor immediately.
20760
20761         * gdk/win32/makefile.cygwin
20762         * gtk/makefile.cygwin: If we don't have the build number stamp
20763         file, use zero.
20764
20765         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
20766         gtk_paned_set_gutter_size as empty.
20767
20768         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
20769         
20770 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
20771
20772         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
20773           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
20774           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
20775           docs/gtk_tut.sgml docs/gtk.texi TODO:
20776
20777           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
20778
20779 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
20780
20781         * gtk/gtkcalendar.c: Implement num_marked_dates,
20782           and don't emit mutiple day_selected signals on
20783           month_prev.
20784
20785 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
20786
20787         * docs/make-todo (lineno): let title and logo be configurable so
20788         that GNOME can use this script too.
20789
20790         * TODO.xml: added logourl and a title
20791
20792 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
20793
20794         * TODO.xml: Added some UI items, and an explanatory
20795         comment at the top of the file.
20796
20797 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
20798
20799         * TODO.xml: some updates, added abunch of new entries.
20800         a note for those fiddeling with this file, when done
20801         with it, invoke:
20802         $ ./docs/make-todo TODO.xml >/dev/null
20803         and correct output errors before comitting changes.
20804
20805 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
20806
20807         * TODO.xml: Added XML-structured TODO file.
20808         * docs/make-todo: python script to turn TODO.xml into
20809           pretty XML output. 
20810
20811 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
20812
20813         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
20814         the function to let it draw the seven dots, instead of the old,
20815         much maligned, method.
20816         (draw_dot): New function to draw a dot.
20817
20818         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
20819         to draw the handle inside the border width as opposed to outside.
20820         Use paint function instead of gdk_draw_point.
20821
20822         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
20823         to draw the handle inside the border width as opposed to outside.
20824         Use paint function instead of gdk_draw_point.
20825
20826         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
20827         Change indenting to be more GTK like.
20828
20829 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
20830
20831         * docs/gtk_tut.sgml: New section on GtkCalendar
20832         * examples/calendar: Update example code
20833
20834 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
20835
20836         * docs/gtkfaq.sgml: FAQ Update
20837
20838 2000-02-19  Anders Carlsson  <andersca@gnu.org>
20839
20840         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
20841         to prevent the scroll event to be propagated upwards.
20842
20843 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
20844
20845         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
20846         OwnerGrabButtonMask from button entries for
20847         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
20848
20849         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
20850         to the event mask (which will result in button/press release
20851         being added to the event mask on Unix) so scrolling works
20852         for layouts in scroll windows.
20853
20854         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
20855
20856         Patch from Anders Carlsson  <andersca@gnu.org> to add
20857         a scroll event.
20858
20859         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
20860         scrolling to the "Test Scrolling" part of testgtk.
20861  
20862         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
20863  
20864         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
20865         it against GDK_SCROLL.
20866  
20867         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
20868         way of mouse wheel scrolling.
20869  
20870         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
20871  
20872         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
20873  
20874         * gtk/gtkmain.c: Removed previous mouse wheel hack.
20875  
20876         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
20877         gdk_event_mask_table.
20878  
20879         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
20880         GdkEventScroll handler.
20881  
20882         * gdk/gdkevents.h: Added GdkEventScroll structure.
20883  
20884 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
20885
20886         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
20887         and Anders Carlsson to change the Paned widgets so that they
20888         can be dragged from anywhere along the length. Also change
20889         the way that this is drawn to make this apparent.
20890
20891         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
20892         from George Lebl to check that option_menu->menu is present
20893         before getting history.
20894
20895 2000-02-14  Tor Lillqvist  <tml@iki.fi>
20896
20897         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
20898         before the assertion for non-NULL segment list.
20899
20900         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
20901         Seems that pattern brushes *must* be 8x8 pixels! At least on my
20902         machine, but it might be display driver dependent. Sigh, so make
20903         sure the stipple is that size. Does Windows suck or what?
20904
20905         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
20906         places.
20907
20908 2000-02-13  Havoc Pennington  <hp@pobox.com>
20909
20910         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
20911         refcount to 1
20912         (gdk_cursor_new): init refcount to 1
20913
20914         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
20915
20916 2000-02-13  Tor Lillqvist  <tml@iki.fi>
20917
20918         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
20919         so that we don't have to do unnecessary settings to the HDC.
20920
20921         * gdk/win32/gdkdrawable-win32.c
20922         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
20923         gdk_gc_predraw.
20924
20925         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
20926         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
20927         GDI paths, call WidenPath to get the outline of the stroken path,
20928         and then fill the outline (with the brush that was built from the
20929         stipple).
20930
20931         * gdk/win32/gdkgc-win32.c: Factor out common code from
20932         _gdk_win32_gc_new and gdk_win32_gc_set_values into
20933         gdk_win32_gc_values_to_win32values. Use correct colour for
20934         SetBkColor() (Until now the code actually used a random colour in
20935         the call to SetBkColor()... but that didn't show up as not many
20936         GDI APIs use the background colour. Pattern (opaque stippled)
20937         brushes do.)
20938
20939         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
20940         gdk_win32_api_failed): New functions for error logging.
20941
20942         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
20943         WIN32_API_FAILED to call them, passing function or file name and
20944         line number.
20945
20946         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
20947
20948         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
20949         GdkColor for foreground and background in GdkGCWin32Data.
20950
20951         * gdk/makefile.cygwin: Link in the resource object separately.
20952
20953         * gdk/win32/rc/gdk.rc
20954         * gtk/gtk.rc (New file)
20955         * gdk/win32/makefile.cygwin
20956         * gtk/makefile.cygwin: Update build number in DLLs automatically,
20957         as in GLib.
20958
20959 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
20960
20961         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
20962         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
20963         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
20964         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
20965         parameters given and cursor->ref_count. coding style fixups.
20966
20967         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
20968         not GtkWidget.
20969         
20970         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
20971         fix up widget macros and add _GET_CLASS() variant.
20972         
20973         * gtk/*.c: some GtkType fixups.
20974
20975 2000-02-09  Tor Lillqvist  <tml@iki.fi>
20976
20977         * gdk/win32/gdkproperty-win32.c
20978         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
20979         were reversed.
20980
20981 2000-02-04  Tor Lillqvist  <tml@iki.fi>
20982
20983         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
20984         g_filename_to_utf8 to convert the font names Windows gives us from
20985         whatever is the default codepage to UTF-8.
20986         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
20987         in the other direction.
20988
20989         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
20990         error in debugging output.
20991
20992 2000-02-02  Tor Lillqvist  <tml@iki.fi>
20993
20994         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
20995         and height parameters to gdk_window_clear_area(). Not minus one.
20996
20997 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
20998
20999         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
21000         checks if the widget passed to gtk_drag_get_data() was not the
21001         dest widget.
21002
21003 2000-02-01  Tor Lillqvist  <tml@iki.fi>
21004
21005         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
21006         g_filename_from_utf8 functions (which were added a moment ago to
21007         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
21008         size buffers.
21009
21010         gtk_file_selection_get_filename returns the filename in the C
21011         runtime encoding. It calls g_filename_from_utf8, but copies the
21012         returned string to a static buffer, which is returned. I think
21013         this is better than returning the result from g_filename_from_utf8
21014         directly, which would mean all apps that use it would have to free
21015         the return value. Or should this function care about this issue at
21016         all? Maybe a new function with clearly defined semantics.
21017
21018         * gtk/gtkfilesel.h: Add comment about
21019         gtk_file_selection_get_filename returning the filename in the C
21020         runtime's encoding.
21021
21022         * README.win32
21023         * gdk/gdk.def
21024         * gdk/makefile.{cygwin,msc}
21025         * gtk/gtk.def: Updates.
21026
21027         * gdk/gdkcursor-win32.c: Initialise refcount.
21028
21029 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
21030
21031         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
21032
21033 2000-01-30  Havoc Pennington  <hp@pobox.com>
21034
21035         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
21036         destroy
21037
21038         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
21039
21040         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
21041         implemented in platform-specific code
21042
21043         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
21044
21045         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
21046         underscore in front
21047
21048         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
21049         put an underscore in front
21050
21051         * gdk/gdkcursor.c: new file, implements
21052         gdk_cursor_ref/gdk_cursor_unref
21053
21054         * gdk/gdkcursor.h: Refcount GdkCursor
21055
21056         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
21057
21058 2000-01-29  Tor Lillqvist  <tml@iki.fi>
21059
21060         * gdk/gdkwindow.h
21061         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
21062
21063 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
21064
21065         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
21066         structures to properly inherit from GtkWidget not GtkBin.
21067
21068 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
21069
21070         * gtk+.spec.in: Added lib/gtk+/include/* to %files
21071         (bug #5178 - Peter Wainright)
21072         
21073         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
21074         so that it will be installed.
21075         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
21076
21077 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
21078
21079         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
21080         for the GtkStyleClass vtable const.
21081
21082         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
21083         take a const string argument like GtkTranslateFunc. This will
21084         require changes in use code.
21085
21086 2000-01-19  Tor Lillqvist  <tml@iki.fi>
21087
21088         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
21089         semantics (to mimic the X11 backend, which just calls XClearArea)
21090         is to check for zero width (and height), and in that case use the
21091         window's width minus x (height minus y). This fixes for instance
21092         some redraw problems with gtkclist, which were easily noticeable
21093         in the gtk file selection widget.
21094
21095         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
21096         windows.
21097
21098 2000-01-13  Tor Lillqvist  <tml@iki.fi>
21099
21100         * configure.in
21101         * gdk/Makefile.am
21102         * gdk/x11/Makefile.am
21103         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
21104         (bug #5177).
21105         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
21106         out later.
21107
21108 2000-01-09  Tor Lillqvist  <tml@iki.fi>
21109
21110         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
21111         WM_MOVE for iconified or invisible windows. This fixes various
21112         problems when minimising windows. Thanks to Bernd Herd.
21113
21114 2000-01-05  Tor Lillqvist  <tml@iki.fi>
21115
21116         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
21117         backend's draw_lines method, not draw_points.
21118
21119 2000-01-02  Tor Lillqvist  <tml@iki.fi>
21120
21121         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
21122         before Owen's reorganisation: Don't have queued_events and
21123         queued_tail statics in this file, but use gdk_queued_events and
21124         gdk_queued_tail. This makes exposure event compression work again.
21125
21126         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
21127         seem to be needed?
21128
21129 1999-12-30  Tor Lillqvist  <tml@iki.fi>
21130
21131         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
21132         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
21133         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
21134         doesn't do anything.
21135
21136         * gdk/gdk.def: Add gdk_xid_table_insert.
21137
21138         * gdk/win32/gdkprivate-win32.h
21139         * gdk/win32/gdkevents-win32.c
21140         * gdk/win32/gdkinput-win32.c
21141         
21142         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
21143         extension_events field in the GdkWindowWin32Data struct. Use only
21144         the extension_events field in GdkWindowPrivate. Previously one was
21145         set, and the other one tested, which broke tablet
21146         functionality. Thanks to Keishi Suenaga for pointing this out.
21147
21148 1999-12-18  Tor Lillqvist  <tml@iki.fi>
21149
21150         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
21151         When handling a single character (text length == 1), don't handle
21152         it as if it was UTF-8.
21153
21154 1999-12-11  Tor Lillqvist  <tml@iki.fi>
21155
21156         * Makefile.am: Distribute README.win32.
21157         
21158         * gdk/Makefile.am
21159         * gdk/win32/Makefile.am: Distribute Win32 files.
21160
21161         * gdk/makefile.msc: New file.
21162
21163         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
21164         after label).
21165
21166         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
21167         gdk_error_code as GDKVAR, as they are referred outside GDK.
21168
21169         * gdk/win32/makefile.msc: Update.
21170
21171         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
21172         tweaks. Check only if at least one of those Unicode subrange bits
21173         we care for is set. If no code page bits are set, guess (wildly)
21174         based on the charset.
21175
21176         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
21177
21178         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
21179         non-NULL.
21180
21181         * gtk/gtkdnd.c
21182         * gtk/gtklayout.c
21183         * gtk/gtkplug.c
21184         * gtk/gtkselection.c
21185         * gtk/gtksocket.c
21186         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
21187         appropriate. There must be a cleaner way to handle this?
21188
21189         * gtk/gtkrc.c: Must include windows.h on Win32.
21190
21191         * gtk/testgtk.c: No need to include gdkx.h.
21192
21193         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
21194
21195 1999-12-07  Tor Lillqvist  <tml@iki.fi>
21196
21197         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
21198         the rbearing is set to the same as the width, but this should be
21199         fixed.
21200
21201 1999-12-06  Tor Lillqvist  <tml@iki.fi>
21202
21203         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
21204         function. If Windows doesn't tell us what Unicode subranges a font
21205         covers, guesstimate based on the codepages it covers. This will
21206         hopefully help those Windows versions or fonts that don't give us
21207         any useful Unicode subrange information with GetTextCharsetInfo.
21208         Call this function in gdk_font_load_internal.
21209
21210         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
21211         minor changes.
21212
21213 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
21214
21215         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
21216         New function, long needed.
21217
21218 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
21219
21220         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
21221         only_if_exists argument of gdk_atom_intern to
21222         bool.
21223
21224 1999-11-25  Tor Lillqvist  <tml@iki.fi>
21225
21226         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
21227         Fix two copy&paste errors.
21228
21229         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
21230         win32 has changed.
21231
21232         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
21233         GdkWin32SingleFont struct.
21234
21235         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
21236         subranges of loaded fonts. Clear font signature first, in case
21237         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
21238         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
21239
21240         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
21241         Unoffset clip region.
21242
21243 1999-11-23  Tor Lillqvist  <tml@iki.fi>
21244
21245         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
21246         event->any.window before calling filter functions.
21247
21248 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
21249
21250         * gtk/gtkgamma.h: Adapt cast macros to standard.
21251
21252 [ Merges from 1.2 ]
21253
21254 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
21255
21256         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
21257         If translation does not include a '/', use entire
21258         translation instead of crashing.
21259
21260 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
21261
21262         * docs/gtk_tut.sgml:
21263         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
21264
21265 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
21266
21267         * gtk/gtkselection.c (gtk_target_list_remove): Use
21268         g_list_remove_link, not g_list_remove.
21269
21270         [ From Geert Bevin <gbevin@thunderstorms.org> ]
21271         
21272 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
21273
21274         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
21275         statement upon unselection (how the heck did that slip in?).
21276
21277 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
21278
21279         * gtk/gtktext.c (gtk_text_freeze): 
21280         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
21281         in frozen state (and aparently crashes). patch provided by Anders
21282         Melchiorsen <and@kampsax.dtu.dk>.
21283
21284 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
21285
21286         * fix insensitive default/focus widget activation,
21287         reported by Matt Goodall <mgg@isotek.co.uk>.
21288
21289         * gtk/gtkwindow.c (gtk_window_key_press_event): 
21290         (gtk_window_activate_default):
21291         (gtk_window_activate_focus):
21292         return handled=FALSE for actiavtion of insensitive default
21293         widgets. return handled=TRUE for activation of insensitive
21294         focus widgets. don't activate in either case.
21295
21296 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
21297
21298         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
21299         and $glib_cflags to match library order and in the
21300         theory that an old version of GLib is more likely to
21301         be in the include directory for X then vice-versa.
21302         (Bug #2776)
21303
21304 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
21305
21306         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
21307         to determine the locale for fontsets, not LC_MESSAGES;
21308         the user may want English messages with a handling
21309         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
21310         will still be broken) (Bug #2891)
21311
21312 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
21313
21314         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
21315
21316 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
21317
21318         * gtk/gtkrc.ko: Changed the Korean default fontset.
21319
21320 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
21321
21322         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
21323         where when scrolling to the left or top double exposes
21324         were done, causing major slowdowns.
21325
21326 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
21327
21328         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
21329         names to lowercase and alphanumeric, before looking
21330         them up.
21331
21332         * gtk/Makefile.am: Install codeset variant gtkrc files
21333         with normalized names.
21334
21335 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
21336
21337         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
21338         popup menus when the menu is already visible, but its parent
21339         is still hidden, (happens after tornoff window got hidden).
21340
21341 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
21342
21343         * gtk/Makefile.am (install-data-local): Fix
21344         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
21345         deleted, causing error messages on install.
21346
21347 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
21348
21349         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
21350         the handle as well, since we now sometimes ignore
21351         exposes on the handle while resizing.
21352
21353 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
21354
21355         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
21356         extra g_free introduced in one of the last one or two 
21357         commits.
21358
21359 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
21360
21361         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
21362         consistent, put each style that a gtkrc.* file creates
21363         in a unique namespace, remove old files before installing.
21364
21365 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
21366
21367         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
21368         gtk_rc_init is called multiple times. (Yes, people who
21369         do that have bugs in their code.)
21370
21371 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
21372
21373         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
21374         Remove it since it's generated by the Makefile anyway
21375
21376 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
21377
21378         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
21379         device->info.axes for core pointer.
21380
21381 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
21382
21383         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
21384         idle_id, to deal with obsolete, broken C libraries.
21385
21386 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
21387
21388         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
21389         allocation->x/y twice!
21390
21391         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
21392         consistent with gtk_vscale_pos_trough().
21393
21394 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
21395
21396         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
21397         be queueing a resize on a toplevel container between
21398         the time we show it and when we map it. So, we need
21399         to test GTK_WIDGET_VISIBLE() for toplevels, and only
21400         use GTK_WIDGET_DRAWABLE() for child windows.
21401
21402 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
21403
21404         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
21405         (fixes bug #2144)
21406
21407 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
21408
21409         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
21410         container DRAWABLE (instead of VISIBLE), so we don't queue
21411         resizes on non-toplevel containers.
21412
21413 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
21414
21415         * gtk/gtkselection.[ch]: Make the data argument
21416         const guchar *.
21417
21418 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
21419
21420         * gtk/gtkwindow.c: Try to behave sensibly if 
21421         the focus widget is the window itself. (Should
21422         we allow this at all?)
21423
21424 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
21425
21426         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
21427         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
21428         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
21429         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
21430         in prototypes and implementations consistent (Tomas Ogren).
21431
21432         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
21433         before the widget is unparented (reported by damon).
21434
21435         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
21436         since we provide unsigned data anyways.
21437
21438 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
21439
21440         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
21441         the call to gtk_tooltips_layout_text() until later.
21442
21443         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
21444         Call gtk_widget_ensure_style() before using the style.
21445
21446 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
21447
21448         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
21449         for old widgets that don't propagate draws to all
21450         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
21451
21452 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
21453
21454         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
21455         for a redraw but just the widget that requested the resize.
21456
21457 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
21458
21459         * gtk/gtkcontainer.c: added new widget level method
21460         gtk_container_set_reallocate_redraws() and a GtkContainer flag
21461         reallocate_redraws : 1 to reflect the setting, exported this through
21462         the argument system as a boolean ::reallocate_redraws.
21463
21464         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
21465         on the widget because the allocation changes, do so as well for
21466         widget->parent if the parent has reallocate_redraws set to TRUE.
21467         with that containers requesting reallocation redraws get automatically
21468         redrawn if their children changed allocation (this unfortunately
21469         affects also other children that didn't change allocation, but we
21470         cannot work around that before 1.3).
21471
21472 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
21473
21474         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
21475         _and_ height are >0 (not _or_).
21476
21477         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
21478         instead of gtk_container_queue_resize(), which is a core gtk internal
21479         function (must have been on crack when i queued that).
21480
21481         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
21482         we can check more reliably if we want to discard expose events.
21483         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
21484         flag.
21485         
21486         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
21487         we simply trust these events. for deciding whether to discard exposes,
21488         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
21489         
21490 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
21491
21492         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
21493         queues of areas that are completely off screen.
21494
21495         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
21496         logic for handleboxes.
21497
21498         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
21499         check on width/height.
21500
21501 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
21502
21503         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
21504         we are fine with using $@ the way we do (if we actually encounter
21505         brokeness with $@ in VPATH builds because of additional path prefixes,
21506         we need to use $(@F) actually).
21507
21508 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
21509
21510         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
21511         short lived bugs, that would allow language bindings to do surgeries
21512         to our guts.
21513
21514 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
21515
21516         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
21517         where comparison was being done against an uninitialized
21518         value causing intermittant results depending on
21519         compiler flags. Also make it clearer that we aren't
21520         ever initializing the child as 0x0 (though this will
21521         be caught in gtk_widget_size_allocate())
21522
21523 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
21524
21525         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
21526         gtk_window_unset_transient_for() call after we do checks
21527         involving the old transient parent.
21528         [ From Lance Capser <lmc@cyberhighway.net> ]
21529
21530 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
21531
21532         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
21533         an empty file.
21534
21535 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
21536
21537         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
21538         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
21539
21540 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
21541
21542         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
21543         `$@' is valid only in the build dir, not after we've done 
21544         `cd $srcdir'.  Also use `test -f' instead of less portable
21545         `test -e'.
21546
21547 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
21548
21549         * gtk/gtktext.c (correct_cache_insert): Rewrite
21550          for simplicity, and hopefully correctness.
21551          (Fixes bug #1322, which was a segfault when
21552           on some insertions with the properties around
21553           the insertion set up just wrong.)
21554
21555         * gtk/gtktext.c (gtk_text_adjustment): When we receive
21556          a "changed" signal, clamp the new value to the adjustment
21557          bounds to avoid segfaulting if someone tries to change
21558          the adjustment to a bogus value. (Bug #1795)
21559
21560 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
21561
21562         * gtk/gtkmain.c: Ignore unexpected destroy notifies
21563         for children, for toplevel windows handle them
21564         like delete_event.
21565
21566         * gtk/gtkplug.c: Add an unrealize handler so that
21567         we unref plug->socket_window when we are done
21568         with it.
21569
21570 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
21571
21572         * gtk/gtktext.c (clear_area): Fix stupid signedness
21573          problem that was causing background to sometimes
21574          be misaligned.
21575
21576 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
21577
21578         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
21579         
21580         * gtk/gtkmenu.c (gtk_menu_position): Make
21581          sure we never position menus with negative x, y,
21582          since gtk_widget_set_uposition() can't handle that.
21583
21584         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
21585          Modify the positioning code a bit so that we always
21586          put the top-left corner onscreen. (This is for
21587          UI reasons, gtk_menu_position() now takes care of
21588          gtk_widet_set_uposition() brokeness.)
21589
21590 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
21591
21592         * gtk/Makefile.am: fixed up things for -jx, x > 1.
21593
21594 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
21595
21596         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
21597           RC style that is passed in. The lack of the ref
21598           before was a bug. If people worked around this
21599           bug, this will introduce a slight memory leak
21600           in their code. The code should typically look like:
21601
21602             rc_style = gtk_rc_style_new ();
21603             [...]
21604             gtk_widget_modify_style (widget, rc_style);
21605             gtk_rc_style_unref (rc_style);
21606
21607         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
21608           the style if it was already set.
21609
21610         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
21611           style if it was set before.
21612
21613 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
21614
21615         * gtk/testgtk.c (main): Add a check to see if we
21616           are being run from the correct directory and
21617           to quit nicely if we are not.
21618
21619         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
21620           static.
21621
21622 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
21623
21624         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
21625
21626         * gtk/gtkwindow.c:
21627         queue resizes unconditionally (gtk_widget_queue_resize will figure
21628         what to do if the window is not realized).
21629         (gtk_window_move_resize): only recenter the window
21630         for GTK_WIN_POS_CENTER_ALWAYS.
21631         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
21632         the same way as GTK_WIN_POS_CENTER.
21633
21634 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
21635
21636         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
21637         with (!(info->last_flags & GDK_HINT_POS)) instead of
21638         (!info->last_flags & GDK_HINT_POS).
21639
21640         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
21641         new_height unconditionally, because we use these values even if
21642         !default_size_changed && !hints_changed.
21643         comented the (default_size_changed || hints_changed) case with
21644         respect to resize rejects from the window manager.
21645
21646         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
21647         in the zvt condition hack, since this includes the window hints, set
21648         the hints after the handling_resize case.
21649
21650         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
21651         window is initially shown with to the geometry.
21652
21653 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
21654
21655         * gtk/gtkwindow.c (gtk_window_move_resize):
21656         s/size_changed/default_size_changed/g so i know what's
21657         really going on (frying brain on smaller flame now).
21658
21659 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
21660
21661         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
21662         we have size_changed upon handling_resize. this is a gross
21663         workaround for the broken zvt widget and should be removed in
21664         1.3 again (search for FIXME).
21665         Owen provided an accurate comment for this:
21666
21667         /* We could be here for two reasons
21668          *  1) We coincidentally got a resize while handling
21669          *     another resize.
21670          *  2) Our computation of size_changed was completely
21671          *     screwed up, probably because one of our children
21672          *     is broken. It's probably a zvt widget.
21673          *
21674          * For 1), we could just go ahead and ask for the
21675          * new size right now, but doing that for 2)
21676          * might well be fighting the user (and can even
21677          * trigger a loop). Since we really don't want to
21678          * do that, we requeue a resize in hopes that
21679          * by the time it gets handled, the child has seen
21680          * the light and is willing to go along with the
21681          * new size. (this happens for the zvt widget, since
21682          * the size_allocate() above will have stored the
21683          * requisition corresponding to the new size in the
21684          * zvt widget)
21685          *
21686          * This doesn't buy us anything for 1), but it shouldn't
21687          * hurt us too badly, since it is what would have
21688          * happened if we had gotten the configure event before
21689          * the new size had been set.
21690          */
21691
21692 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
21693
21694         * gtk/gtkrc.c: deal properly with the fact that RC
21695           style lists may include rc styles more than once.
21696
21697         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
21698           unused static function.
21699
21700         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
21701           stack of directories of RC files currently being
21702           parsed and implicitely add them to pixmap path.
21703           
21704           This fixes a bug where the directory would get
21705           appended then overwritten by pixmap_path declarations.
21706
21707           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
21708
21709         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
21710           theme's exit function. (Patch from Peter Wainwright,
21711           bug #1454)
21712
21713         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
21714           Add a destroy() handler to take care of removing
21715           group for menu item. (Fixes bug #1197)
21716
21717         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
21718           in warning message.
21719
21720 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
21721
21722         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
21723         roundtrip to figure window's width and height, since we know that
21724         anyways from widget->allocation.
21725
21726 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
21727
21728         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
21729           the hints after we request the new size.
21730
21731 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
21732
21733         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
21734           GTK_WIDGET_REALIZED() assertion - we can compute the
21735           hints before we are realized.
21736
21737         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
21738           hint changing so that we have a value of hints_changed
21739           when we decide whether to constrain the window size.
21740
21741         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
21742
21743         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
21744         change back to G_MAXINT.
21745
21746 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
21747
21748         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
21749         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
21750         contain uncluttered values.
21751         (gtk_window_compute_hints): simply assert that window is realized
21752         and that geometry_info is valid, since we rely on this anyways.
21753         (gtk_window_constrain_size): major cleanups to the code.
21754         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
21755         for the base size, instead of the minimums. use 32767 as max width
21756         and height (like in gtkwindow.c) instead of G_MAXINT.
21757
21758 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
21759
21760         * cleaned up the GtkContainer.need_resize flag handling mess, we
21761         only need to force resize requests when we were prematurely
21762         realized, or our widget tree was modified when we were temporarily
21763         hidden. handling these cases directly upon showing the window (i.e.
21764         while the GdkWindow is still unmapped) avoids the need to wait for
21765         a configure event response and therefore makes the GUI more snappier
21766         and avoids blank windows during the roundtrip.
21767
21768         * gtk/gtkwidget.c:
21769         (gtk_widget_hide): 
21770         (gtk_widget_show): don't queue resizes on toplevels, they know how
21771         to deal with matters.
21772
21773         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
21774         flag directly for not visible resize containers and spare us unecessary
21775         signal emissions.
21776
21777         * gtk/gtkwindow.c:
21778         (gtk_window_realize): if we need to enforce premature size allocation,
21779         queue a container resize so we are correctly resized later on.
21780         (gtk_window_init):
21781         (gtk_window_size_request):
21782         don't freak around with the ->need_resize flag,
21783         gtk_container_queue_resize() will care about that.
21784         (gtk_window_show):
21785         handle initial resizing issues here, we can handle matters better in
21786         this place, especially since we know that our GdkWindow is still
21787         unmapped.
21788         (gtk_window_move_resize):
21789         don't care about ->need_resize at all.
21790         handle size changes properly that occoured while we waited for a
21791         configure event.
21792
21793 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
21794
21795         * gtk/gtkwidget.c (gtk_widget_set_uposition):
21796         * gtk/gtkwindow.[hc] (gtk_window_reposition):
21797         Move the hint setting code from gtk_widget_set_uposition
21798         to here; set the hints so that we respect any previously
21799         set geometry hints.
21800
21801         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
21802         change the window hints here or move the window here,
21803         let that happen in gtk_window_move_resize().
21804
21805 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
21806
21807         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
21808         to already queued resizes (and therefore redraws) on a widget, check
21809         its anchestry as well.
21810
21811         * gtk/gtkcontainer.c:
21812         (gtk_container_queue_resize): clear resize widgets for resize
21813         containers before aborting prematurely. this is especially important
21814         for toplevels which may need imemdiate processing or their resize
21815         handler to be queued.
21816         (gtk_container_dequeue_resize_handler): added new internal function for
21817         gtkwindow.c.
21818
21819         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
21820         configure event, take possible changes in window position into account
21821         as well.
21822         if we request a new window size, queue up a resize handler that will
21823         last until the configure event response arrives.
21824         combined the ->need_resize case (initial show) with the general size
21825         (hints) changed case and added even more comments.
21826         if !auto_shrink, only revert to the old allocation if the new size
21827         is smaller than the current allocation.
21828
21829 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
21830
21831         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
21832                            gtk_window_set_geometry_hints
21833                            gtk_window_set_default_size):
21834         When hints are set, queue a resize so that the hints will
21835         be eventually reset on the toplevel.
21836
21837         * gtk/gtkwindow.c (gtk_window_show): Use
21838         gtk_window_compute_default_size(). Clear the need_resize flag
21839         on the initail map so that we don't unnecessarily trigger the
21840         resize code.
21841
21842         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
21843         into separate functions. Compare the hints we are setting
21844         with what we set last time so that we can accurately
21845         tell when we need to reset the hints.
21846
21847         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
21848         function to figure out the size from requisition
21849         and default_size.
21850
21851         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
21852         from fvwm to constrain a size to the geometry hints.
21853
21854         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
21855         to compare two sets of geometry hints.
21856
21857         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
21858         from gtk_window_set_hints(), just compute the hints,
21859         don't set them.
21860
21861         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
21862         code from gtk_window_move_resize() to separate function,
21863         rationalize a bit.
21864
21865 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
21866
21867         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
21868         structure into a new private structure.
21869
21870         * gtkrc.c: Split GtkRcStyle into public/private.
21871         In the private part, add a list of pointers to the
21872         RcStyle lists this RcStyle participates in.
21873
21874         * gtkrc.c: When a RcStyle is free, remove all
21875         lists referencing it from the 
21876         realized_style_ht hash, and free those lists.
21877         
21878         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
21879         gtk_rc_init(), since that adds the default styles
21880         to the list of parsed RC files again.
21881
21882         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
21883         
21884 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
21885
21886         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
21887         checks that ensure that a widget's allocation is at least 1 in width
21888         and height. (GNOME note: this doesn't affect old panel code anymore,
21889         because GtkSocket will request width and height of at least 1 since
21890         Fri Jul 23).
21891
21892         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
21893         allocated yet (happens if the user realizes the window prematurely),
21894         size request and allocate it.
21895         (gtk_window_size_allocate): guard against guint underflows.
21896
21897 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
21898
21899         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
21900         in gtk_built_sources, so gtk.defs gets built prior to all other
21901         sources.
21902
21903 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
21904
21905         * gtk/Makefile.am:
21906         invoke indent on gtkmarshal.*. 
21907         rewrote source generation rules, use COPYING as oldest source tag for
21908         a piggyback rule to generate all sources from (don't touch it ;).
21909         major cleanups, strip spaces on build rules for GNU Make.
21910
21911         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
21912         source and target files from commandline arguments. don't invoke indent.
21913
21914 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
21915
21916         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
21917         notebook after switch to avoid drawing problems.
21918         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
21919         
21920         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
21921         show them instead. 
21922         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
21923
21924 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
21925
21926         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
21927         notebook after switch to avoid drawing problems.
21928         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
21929         
21930         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
21931         show them instead. 
21932         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
21933
21934 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
21935
21936         * gtk/gtkwindow.c:
21937         we use window->need_resize from configure_event now, to indicate that
21938         the gtkwindow should keep its allocation (e.g. because the user resized
21939         the window through window manager handles). resize_count is now reliably
21940         used to figure whether we got the allocation we requested from the
21941         window manager.
21942         configure events get queued as resizes now, the real stuff (size
21943         computation and allocation) now only goes on in gtk_window_move_resize().
21944         GtkWindow's requisition now contains its *real* requisition (like all
21945         other widgets), *not* taking usize into account.
21946         geometry_info->last_{width|height} is now updated from set_hints() only
21947         so it always contains the last hints we set for the window manager.
21948         made some event handlers return TRUE instead of FALSE.
21949         the overall code should be much more straight forward now, and the
21950         significant code portions are accompanied by comments now.
21951         (gtk_window_set_hints):
21952         removed requisition argument and made it
21953         fetch the requisition through gtk_widget_get_child_requisition.
21954         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
21955         does that now.
21956         (gtk_window_show):
21957         ensure that the widget is realized before calling 
21958         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
21959         ensure that we got properly size requested and allocated before
21960         realization.
21961         (gtk_window_configure_event):
21962         ignore plain window moves, or reallocate the widget tree through the
21963         resize queue otherwise.
21964         (gtk_window_move_resize):
21965         mostly rewrote this function to figure window manager hints more
21966         reliably, coalesce window moves and resizes to reduce configure events
21967         and do actuall size allocations.
21968
21969 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
21970
21971         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
21972         that have a resize pending, because a redraw is already queued for them.
21973
21974         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
21975         hack to clear resize_widgets.
21976
21977         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
21978         for resize containers prior to size allocation. (this is also a bit
21979         ugly, but avoids side effects for stopped emissions and is thus more
21980         reliable).
21981         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
21982
21983         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
21984         function from gtk_tooltips_expose, as we connect to ::expose_event
21985         *and* ::draw now.
21986
21987 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
21988
21989         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
21990         checks.
21991         (gtk_target_list_unref): Likewise.
21992
21993         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
21994
21995 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
21996
21997         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
21998         guard against division by zero. (Fixes bug #1339)
21999
22000 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
22001
22002         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
22003         Prevent the trivial leak of information of allowing
22004         word motion when the entry is not visible.
22005
22006 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
22007
22008         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
22009         modality to error dialog as well as confirmation dialogs.
22010         (Bug #1803, reported by Rosanna Wing Sze Yuen)
22011
22012 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
22013
22014         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
22015         tree->view_lines.
22016         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
22017
22018         * gtk/Makefile.am (install-data-local): Solaris apparently
22019         has various troubles with ln -f; use rm first instead.
22020         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
22021
22022 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
22023
22024         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
22025         use `cp' followed by `rm' (the `rm' was already there).
22026
22027 July 30, 1999 Elliot Lee <sopwith@redhat.com>
22028         
22029         * configure.in: Fix autoconf warnings about cross compilation by
22030         trying to provide sane defaults for AC_TRY_RUN.
22031         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
22032         put them into $(srcdir) when generated. Also add a dependency of
22033         gtksignal.h on gtkmarshal.h for -j builds. 
22034         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
22035
22036 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
22037
22038         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
22039         GDK_THREADS_{LEAVE,ENTER} pair.
22040         (From Paul Fisher <pnfisher@redhat.com>)
22041
22042 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
22043
22044         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
22045         width and height are always >0 (owen).
22046
22047 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
22048
22049         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
22050         change that assured that a widget's allocated with and height are
22051         always >1, since this breaks *buggy* panel code. unfortunately this
22052         back-breaks the gimp's color selector.
22053
22054         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
22055         allocation is always >0 in width and height, before sending the
22056         configure event; this is a *gross* hack to get the gimp back to work.
22057         
22058         * marked both cases with TODO-1.3
22059
22060 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
22061
22062         * gtk/gtktext.c: Don't display wrap indicators when
22063         text is not editable and word wrap is on.
22064
22065 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
22066
22067         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
22068         option menus here as they are not derived from menu shell, assure that
22069         the option menu has a menu we can add items to.
22070
22071 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
22072
22073         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
22074         width/height to (gint) before calculations and check against < 0 to
22075         avoid guint wraparounds.
22076
22077 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
22078
22079         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
22080         width and height is never zero. sanity check both dimensions against
22081         32767 and issue a warning if the allocation is greater than that.
22082
22083 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
22084
22085         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
22086         to g_main_pending() as well.
22087
22088 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
22089
22090         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
22091         call to g_main_iteration() - since that will regrab
22092         GTK+ lock to process events.
22093
22094 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
22095
22096         * gtk/gtkwindow.c
22097         - Regularize with the rest of GTK+ by making widget->requisition
22098           not reflect the set_usize()
22099         - Always recompute geometry hints, then check if they
22100           changed before sending them to the X server. The
22101           previous checks for changes would fail in a number
22102           of circumstances. 
22103
22104 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
22105
22106         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
22107
22108 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
22109
22110         * gtk/gtkdnd.c:
22111         - Code cleanups
22112         - Instantaneously update on modifier key presses
22113         - Allow cancellation of the drag with Escape.
22114
22115 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
22116
22117         * gtk/testgtk.c (create_handle_box): Set the policy
22118         to auto_shrink - otherwise the appearance is rather
22119         strange when flipping between horizontal and vertical.
22120
22121 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
22122
22123         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
22124         (gtk_window_set_default_size): don't change a value if it's < 0.
22125         queue a resize.
22126
22127 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
22128
22129         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
22130
22131 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
22132
22133         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
22134         add an extra "/" when concating "/" + filename.
22135         (From Matt Grossman <mattg@oz.net>)
22136
22137 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
22138
22139         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
22140         for fg_gc if we set it for drawing pixmap.
22141
22142 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
22143
22144         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
22145         
22146         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
22147         already set, call old engine's destroy function and
22148         unref the old engine.
22149
22150 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
22151
22152         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
22153
22154 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
22155
22156         * gtk/gtkaccelgroup.h: mark certain functions as internal.
22157
22158 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
22159
22160         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
22161         expand behaviour changed.
22162
22163         * gtk/gtklabel.c (gtk_label_set_pattern):
22164         (gtk_label_set_justify):
22165         (gtk_label_set_line_wrap):
22166         don't bother invoking queue_clear, the reallocation does
22167         that for us, always free_words so the upcoming resize will
22168         relayout the label's contents.
22169
22170 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
22171
22172         * applied argument implementation patches from Elena Devdariani
22173         <elena@cogent.ca>.
22174
22175         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
22176         ::space_style, ::relief
22177         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
22178         * gtk/gtkpreview.c: ::expand
22179         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
22180         * gtk/gtknotebook.c: ::homogeneous
22181         * gtk/gtklabel.c: ::wrap
22182         * gtk/gtklist.c: ::selection_mode
22183         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
22184         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
22185         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
22186         * gtk/gtkclist.c: ::sort_type
22187         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
22188         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
22189
22190 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
22191
22192         * gtk/gtkstyle.c: Removed ill-thought-out part of last
22193         comment.
22194
22195 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
22196
22197         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
22198         counting right when we have to attach a new style
22199         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
22200
22201         * gtk/gtkstyle.c: Documented the refcounting
22202         peculularities of gtk_style_attach.
22203
22204 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
22205
22206         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
22207         window types.
22208
22209         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
22210         of GTK_TOPLEVEL for creating the window.
22211
22212 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
22213
22214         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
22215         the last argument (reported by Per Winkvist).
22216         
22217 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
22218
22219         Fixes for invisible XOR lines (Frank Loemker
22220         <floemker@TechFak.Uni-Bielefeld.DE>)
22221         
22222         * gtk/gtkclist.c (gtk_clist_realize): Always use
22223         a non-zero pixel for GDK_XOR.
22224
22225         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
22226         Use GDK_INVERT instead of GDK_XOR.
22227
22228 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
22229
22230         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
22231         signals if h/voffsets differ from adjustment values.
22232         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
22233
22234 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
22235
22236         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
22237         ::selection-done emissions up to the topmost menu shell.
22238
22239 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
22240
22241         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
22242         the user data on the window before destroying it.
22243
22244         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
22245         unrealize handler to take care of destroying 
22246         notebook->panel properly. 
22247         (Bug #1198 - Morten Welinder <terra@diku.dk>)
22248
22249         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
22250         of g_new and g_realloc to stop memory leak. (Actually,
22251         we could just use g_realloc(), but I'm not 100% sure
22252         that is portable).
22253         (Bug #1196 - Morten Welinder <terra@diku.dk>)
22254
22255 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
22256
22257         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
22258
22259         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
22260         for fontsets.
22261
22262         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
22263         with bin/button confusion.
22264
22265 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
22266
22267         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
22268         and show how preselection of radio items is done.
22269
22270 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
22271
22272         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
22273         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
22274         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
22275         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
22276         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
22277         * gtk/gtktable.c (gtk_table_attach): 
22278         * gtk/gtklist.c (gtk_list_insert_items): 
22279         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
22280         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
22281         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
22282         * gtk/gtkbin.c (gtk_bin_add): 
22283         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
22284         * gtk/gtkfixed.c (gtk_fixed_put): 
22285         * gtk/gtklayout.c (gtk_layout_put):
22286         general fixups to container_add logic. always realize child if
22287         child->parent is realized, only map the child and queue a resize
22288         if child and child->parent are both visible.
22289
22290 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
22291
22292         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
22293         instead of gtk_container_foreach to walk and unrealize children, so
22294         composite children get also unrealized.
22295         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
22296         (gtk_widget_map): assert that the widget is visible (basic constrain).
22297         (gtk_widget_real_map): assert that the widget is realized (basic
22298         constrain).
22299
22300 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
22301
22302         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
22303
22304 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
22305
22306         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
22307         file for iso-8859-2 locales.
22308
22309         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
22310
22311 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
22312
22313         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
22314          (Pointed out by andy@rz.uni-karlsruhe.de and others).
22315          Remove some suspicious and useless lines. 
22316
22317 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
22318
22319         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
22320         width,height = 0, 0 to mean - here to edge of window,
22321         instead of -1, -1, since the former is all we support.
22322
22323 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
22324
22325         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
22326         when removing from quit_functions list.
22327
22328 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
22329
22330         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
22331
22332 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
22333
22334         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
22335          When redrawing characters on non-visible entry, use appropriate
22336          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
22337
22338 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
22339
22340         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
22341         from drag coordinates.
22342         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
22343         use drag_dest_cell.
22344
22345         * gtk/gtktree (drag_dest_cell)
22346         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
22347         (Bug #1129)
22348
22349 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
22350
22351         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
22352         translate_* fields.
22353         (gtk_item_factory_finalize): invoke translate_notify independant from
22354         translate_data.
22355         (gtk_item_factory_set_translate_func): likewise.
22356         (gtk_item_factory_destroy): only remove ifactory pointer from those
22357         widgets that belong to us (stupid me).
22358
22359 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
22360
22361         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
22362         rc_style list when lookup succeeeds.
22363
22364 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
22365
22366         * gtk/gtkctree.c (resync_selection): 
22367         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
22368         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
22369         bug.
22370
22371 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
22372
22373         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
22374         Add some missing GDK_THREADS_ENTER()/LEAVE around
22375         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
22376
22377 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
22378
22379         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
22380         rather than emit_by_name.
22381
22382         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
22383         on the widget across multiple signal emissions.
22384         (gtk_editable_delete_text): same here.
22385         (gtk_editable_class_init): set widget_class->activate_signal after
22386         editable_signals[ACTIVATE] has been created.
22387
22388 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
22389
22390         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
22391         position here prematurely -- we might not have the
22392         right ->min_position and ->max_position yet.
22393
22394 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
22395
22396         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
22397         Add error traps so if the other end of the connection
22398         dies, we survive.
22399
22400         * gtk/gtkselection.c (gtk_selection_notify): Clean
22401         up properly when selection property retrieval fails.
22402         
22403         * gtk/gtkselection.c (gtk_selection_request): Correctly
22404         reject SelectionRequest notifies where the handler
22405         returns no data.
22406
22407 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
22408
22409         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
22410         when we've previously highlighted.
22411
22412         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
22413         emit two "drag_leave" signals for Motif drops.
22414
22415         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
22416         back the correct status messages when dropping from
22417         Motif onto a proxy window that is rejecting the
22418         drop.
22419
22420 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
22421
22422         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
22423         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
22424         to compare two argument values. added gtk_arg_to_valueloc() to set a
22425         variable from an arg through its location (pointer).
22426
22427         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
22428         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
22429         as gfloat*, uchars are collected as guchar*, ints are collected as
22430         gint*, etc...
22431
22432 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
22433
22434         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
22435         Include <string.h> instead of <strings.h>.
22436
22437         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
22438         (actually, a lot more duplicate includes occur if
22439          you trace through the sequence of #include's)
22440         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
22441         
22442 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
22443
22444         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
22445         gtk-a-higuti-990322-[0-3]
22446
22447         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
22448         that was causing -DX_LOCALE not to work.
22449
22450         * gtk/gtkrc.c (gtk_rc_init):
22451         X_LOCALE will never have LC_MESSAGES defined
22452
22453 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
22454
22455         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
22456         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
22457
22458         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
22459         left/right as well (gtk-michael-980726-0.patch.gz).
22460
22461         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
22462         for pointer values, use gchar instead of char. fixed uline allocation
22463         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
22464         chunks instead of G_ALLOC_ONLY.
22465         (gtk_label_size_request): always alter requisition as passed and leave
22466         widget->requisition alone.
22467         (gtk_label_set_text): allow NULL strings.
22468         (gtk_label_new): likewise.
22469
22470 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
22471
22472         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
22473
22474 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
22475
22476         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
22477         *and* mapped (i.e. drawable).
22478         (gtk_bin_expose): only send exposes to drawable children.
22479
22480         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
22481         (gtk_box_expose): only send exposes to drawable children.
22482
22483         * gtk/gtkhscale.c (gtk_hscale_draw): 
22484         * gtk/gtkvscale.c (gtk_vscale_draw):
22485         hm, this is an ugly one. we first compute the size of our trough area
22486         here (window relative) and then check intersection with the draw_area
22487         which is parent relative because we're a NO_WINDOW widget, so we need
22488         to offset the trough area by allocation.x and allocation.y before the
22489         check. (this must not be done for the background area though, since
22490         that's already computed parent relative).
22491
22492 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
22493
22494         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
22495         unrealize title buttons.
22496
22497 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
22498
22499         * gtk/gtkclist.c (gtk_clist_column_title_passive)
22500         (gtk_clist_column_title_active): 
22501         only connect/disconnect to GtkWidgetClass::event to block mouse events.
22502
22503         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
22504         zero initialize event, removed superfluous gdk_window_get_pointer call
22505
22506         * gtk/gtklist.c (gtk_list_vertical_timeout)
22507         (gtk_list_horizontal_timeout): removed superfluous
22508         gdk_window_get_pointer call
22509
22510 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
22511
22512         * plugging problems reported by "Bruce Mitchener, Jr."
22513         <bruce@puremagic.com> due to a purify session.
22514
22515         * gtk/gtkstyle.c:
22516         (gtk_style_ref): 
22517         (gtk_style_unref): assert ref_count to be > 0.
22518
22519         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
22520         the requisition.
22521         (gtk_clist_set_shift): likewise.
22522
22523         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
22524         adjustments.
22525
22526         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
22527         event before sending it and set send_event to TRUE (which needs to
22528         be done for *all* synthesized events).
22529         (gtk_list_vertical_timeout): likewise.
22530
22531         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
22532         leaks.
22533
22534         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
22535         to TRUE when synthesizing events.
22536
22537 [ *** end of merges from 1.2 *** ]      
22538         
22539 1999-11-21  Tor Lillqvist  <tml@iki.fi>
22540
22541         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
22542         (or copied from gdkconfig.h.win32 on Win32, sigh).
22543
22544         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
22545
22546         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
22547
22548         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
22549
22550         * gdk/gdkconfig.h.win32: New file.
22551
22552         * gdk/win32/makefile.cygwin: Build just a static archive here.
22553
22554         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
22555         for the DLL from the static archive built above.
22556
22557         * gdk/gdk.def: Moved here from the win32 subdirectory.
22558
22559         * gdk/win32/*: Adapt for the changed private struct organisation.
22560
22561         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
22562
22563 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
22564
22565         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
22566         for wheel mice (buttons 4 and 5).
22567
22568 1999-11-18  Tor Lillqvist  <tml@iki.fi>
22569
22570         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
22571         drawables use just the pixel field in the foreground and
22572         background GdkColor of the GdkGC.
22573
22574         gdk_gc_set_{fore,back}ground() are called in the GIMP with
22575         GdkColors containing uninitialized (red,green,blue) fields, and
22576         just the pixel field filled in, and furthermore in the
22577         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
22578         It thus turns out that we really don't need to have the full
22579         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
22580         it later to have just the pixel values.
22581
22582 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
22583
22584         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
22585
22586 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
22587
22588         * docs/gtkfaq.sgml: threads example from Erik Mouw.
22589         New question on GtkLabel background colors.
22590
22591         * docs/gtk_tut.sgml:
22592           - Correct the example code callback
22593             function definitions.
22594           - Update the gtkdial example code, from Frans van Schaik.
22595           - Update setselection.c to current API.
22596
22597         * examples/Makefile examples/*/*.c: Update to code
22598         listed in tutorial.
22599
22600 1999-11-10  Tor Lillqvist  <tml@iki.fi>
22601
22602         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
22603         subrange table (from the "Developing International Software for
22604         WIndows 95 and Windows NT" book) was missing the Hangul syllable
22605         block... Get the loaded font's charset correctly.
22606
22607         (Note that this, and the other *-win32.c files, still really are
22608         the old ones, the win32 subdirectory is not ready for compilation
22609         yet after the reorg.)
22610
22611 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
22612
22613         * gtk/gtkclist.c: Fix off-by-one bug in parameter
22614         check.
22615
22616 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
22617
22618         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
22619         on results of XQueryDeviceState().
22620
22621 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
22622
22623         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
22624         we need to accesss only ->children. We need an accessor
22625         for the children.
22626
22627         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
22628         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
22629         to get rid of gdkx.h include.
22630         
22631         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
22632         and random references to 'None'.
22633
22634         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
22635         Get rid of unused #include <gdk/gdkx.h>
22636
22637         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
22638         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
22639         gdkconfig.h.
22640
22641 1999-11-08  Tor Lillqvist  <tml@iki.fi>
22642
22643         * gdk/win32/gdkdraw.c
22644         * gdk/win32/gdkfont.c
22645         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
22646         following yesterday's changes. (Unrelated to Owen's reorg.)
22647
22648 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
22649
22650         * gdk/x11/gdkinput-gxi.c: Add missing include,
22651           fix GdkWindowPrivate => GdkDrawablePrivate.
22652
22653         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
22654
22655         * gdk/x11/Makefile.am (xinput_sources): Add missing
22656         backslash to fix building with --with-xinput=none
22657
22658 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
22659
22660         Move all X specific code into the x11/ directory.
22661         Aside from shuffling things around, did the following:
22662
22663        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
22664          gdk_arg_context_* - a simple argument parsing system
22665          in the style of popt.
22666
22667        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
22668          gdk/x11/gdkprivate-x11.h:
22669          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
22670          add ->klass and ->klass_data fields. The klass_data
22671          field points to an auxilliary structure that is
22672          windowing system dependent.
22673
22674        * gdk/gdkfont.c: Make most of the measurement functions
22675          simply wrappers around gdk_text_extents().
22676
22677        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
22678          _gdk_font_strlen() function that hides the weird
22679          behavior in gtk+-1.[02] where a string is interpreted
22680          differently for 8-bit and 16-bit fonts.
22681
22682        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
22683          to store common code for synthesizing double/triple
22684          press events.
22685         
22686        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
22687          Make all the function that modify an existing GC
22688          simply wrappers around gdk_gc_set_values().
22689          
22690        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
22691          for throwing out later.
22692
22693        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
22694          GdkImagePrivate and GdkColormapPrivate to have a
22695          windowing system dependent part (GdkFontPrivateX etc.)
22696          that "derives" from the system-independent part.
22697
22698        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
22699          Got rid of the included-source-files for XInput in
22700          favor of automake conditionals. (Which didn't exist
22701          when XInput support was originally added.)
22702
22703        * gdk/gdkrgb.c: Remove the visual id from the debugging
22704          statements since that is X11 specific; print out
22705          type/depth info instead.
22706          
22707
22708 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
22709
22710         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
22711         loading duplicates of hashed fonts.
22712
22713         * gdk/gdk.c (gdk_keysym_convert_case): rename
22714         gdk_XConvertCase to gdk_keysym_convert_case, allow
22715         results to be NULL in the GTK+ style.
22716
22717         * gdk/gdkcompat.h: Started compatibility header
22718         for renames.
22719
22720 1999-11-07  Tor Lillqvist  <tml@iki.fi>
22721
22722         * gdk/win32/gdkprivate.h: New font private structures, related to
22723         fontsets.
22724
22725         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
22726         gdk_font_list_free(). On X11, will just be wrappers to
22727         XListFonts() and XFreeFontNames(). On Win32, the code previously
22728         in gtkfontsel.c is now here.
22729
22730         New function gdk_font_xlfd_create(). On X11 will get the FONT
22731         property of the font (for GDK_FONT_FONTs), or call
22732         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
22733         builds a XLFD style name from the font information in the LOGFONT
22734         struct(s).
22735
22736         New function gdk_font_xlfd_free(), which correspondingly frees the
22737         string returned by gdk_font_xlfd_create().
22738
22739         Implement fontsets on Win32. Add a function that iterates over a
22740         wide char string and calls a callback function for each substring
22741         of wide chars from the same Unicode subrange (and thus probably
22742         available in the same real font).
22743
22744         Improve the XLFD emulation a bit.
22745
22746         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
22747
22748         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
22749         Beta3, WM_IME_CHAR messages don't seem to contain the composed
22750         multi-byte char as with the Active IMM on Win9x. Oh well, handle
22751         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
22752         ImmGetCompositionStringW() to get the composed Unicode chars.
22753
22754         * gdk/win32/gdkgc.c
22755         * gdk/win32/gdkdraw.c: Changes needed because of the font private
22756         struct changes.
22757
22758         * gdk/win32/gdk.def: Add the new functions.
22759
22760 1999-11-04  Tor Lillqvist  <tml@iki.fi>
22761
22762         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
22763         get the Platform SDK to get <dimm.h>.
22764
22765         * gdk/win32/gdkevents.c: More event handling fixes and
22766         simplification. Never generate motion events with is_hint true. We
22767         used to do that on bogus grounds earlier. Windows sends
22768         WM_MOUSEMOVE messages on button events even if the mouse hasn't
22769         moved, ignore these.
22770
22771         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
22772
22773         * gdk/win32/gdkglobals.c
22774         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
22775         the TrackMouseEvent function, and use it.
22776
22777         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
22778         char before calling WideCharToMultiByte in order to get a string
22779         for the window title.
22780
22781         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
22782
22783         * gdk/win32/gdk.def: Remove obsolete functions.
22784
22785         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
22786         /nodefaultlib and /defaultlib switches.
22787
22788         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
22789
22790 1999-10-31  Tor Lillqvist  <tml@iki.fi>
22791
22792         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
22793         EuroSign).
22794
22795         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
22796         same type as GdkWChar, especially on Win32.
22797
22798         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
22799
22800         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
22801         before passing to Windows GDI for drawing etc. Convert to the
22802         system default codepage before passing to Windows as window
22803         titles.
22804
22805         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
22806         support changing input locale on the fly.
22807
22808         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
22809         on-the-fly changes. Convert incoming characters from the current
22810         codepage to Unicode (and then to a UTF-8 multi-byte string) based
22811         on the current input language. Use keysym<->Unicode mapping tables
22812         and functions borrowed from xterm sources.
22813
22814         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
22815         editions of Win9x, use the ActiveX-based Active IMM (Input Method
22816         Manager) if available. IMEs and the Active IMM are available under
22817         the disguise of Chinese, Korean and Japanese support for IE and
22818         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
22819         support is present in all editions (as long as you install it).
22820
22821         Call DispatchMessage from gdk_events_queue() (and thus
22822         gdk_WindowProc()), instead of duplicating the code in
22823         gdk_WindowProc().
22824
22825         Reworked the grab handling and propagation code, factored out
22826         duplicated code snippets into separate functions. Other cleanups,
22827         too.
22828
22829         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
22830         the <dimm.h> header describing the Active IMM.
22831
22832         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
22833         just do the same as for "single" fonts.
22834
22835         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
22836         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
22837         the new keysyms from gdkkeysyms.h.
22838
22839         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
22840         fontset, so that gtkentry uses wide characters.
22841
22842         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
22843         GTk+'s system directory "gtk+", not "gtk".
22844
22845 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
22846
22847         * docs/gtkfaq.sgml: FAQ update
22848
22849 1999-10-21  Tor Lillqvist  <tml@iki.fi>
22850
22851         * gdk/win32/gdkprivate.h: Add more font private data.
22852
22853         * gdk/win32/gdkfont.c
22854         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
22855         fonts and strings. Now works much better. You still have to
22856         have a correct font selected, though. No fontset emulation yet.
22857
22858 1999-10-19  Tor Lillqvist  <tml@iki.fi>
22859
22860         * gtk/maketypes.awk: Use G_OS_WIN32.
22861
22862         * gtk/gtk.def: Add some missing entry points. Also some non-public
22863         ones, but PyGTK porter claims to need them.
22864
22865         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
22866         built-in type generation.
22867
22868 1999-10-14  Tor Lillqvist  <tml@iki.fi>
22869
22870         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
22871         GDK_FONT_FONT fonts (which is all we have for now, we don't
22872         emulate fontsets). The X11 version uses plain XDrawString in that
22873         case, too. The string passed to gdk_draw_text_wc seems to be in
22874         fact (at least, when used by gtkentry and gtktext) either in a
22875         single-byte charset, or a DBCS. Not Unicode.
22876
22877         This fixes the problem in gtkfontsel, where even if you had
22878         selected a font with a non-Latin1 charset (windows-greek, for
22879         instance), the preview still used Latin-1 glyphs.
22880
22881         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
22882         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
22883         (gdk_font_load): Recognize the demibold etc weights, even if we
22884         don't have the corresponding constants in the headers.
22885         (gdk_font_hash_insert): Use same hash mechanism as in the X11
22886         version. Should save font resources a bit, when we don't have
22887         multiple HFONTs for the same font.
22888
22889         * gdk/win32/gdkprivate.h: Add the names field as in the X11
22890         version.
22891
22892 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
22893
22894         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
22895         X values
22896
22897 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
22898
22899         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
22900         layout support (as mentioned on
22901         http://www.jcinteractive.com/gnome-ui/software/widgets/)
22902
22903 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
22904
22905         * gtk/fnmatch.c
22906         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
22907
22908 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
22909
22910         * configure.in (ALL_LINGUAS): Added Galician (gl)
22911
22912 1999-10-05  Tor Lillqvist  <tml@iki.fi>
22913
22914         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
22915
22916         * gdk/win32/gdkcompat.c: New file, actually provide an
22917         implementation for the deprecated functions. (Just temporarily.)
22918
22919         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
22920
22921         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
22922
22923         * gdk/win32/gdk.def gtk/gtk.def: Updates.
22924
22925 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
22926
22927         * configure.in: Added "uk" to ALL_LINGUAS.
22928         
22929 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
22930
22931         * configure.in: correct checking for BeOS check
22932
22933         * gdk/gdktypes.h
22934         * gtk/fnmatch.c
22935         * gtk/gtkfilesel.c
22936         * gtk/gtkitemfactory.c
22937         * gtk/gtkmain.[ch]
22938         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
22939
22940 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
22941
22942         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
22943         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
22944         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
22945         by Bulgarian). 
22946
22947 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
22948
22949         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
22950         Fix a reference to window_private->destroyed.   
22951
22952         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
22953         (ugly) setting of an internal GdkWindow member to use
22954         a _slightly_ cleaner macro.
22955
22956         * gdk/gdkprivate.h: Split GdkWindowPrivate into
22957         GdkDrawablePrivate and GdkWindowPrivate.
22958         Add extra macros for accessing GDK_DRAWABLE_ components.
22959
22960         * *.[ch]: Massive adjustments for the above, use the
22961         new macros in a lot of places.
22962
22963 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
22964
22965         * gdk/gdktypes.h: Make GdkDrawable the base type,
22966         not GdkWindow.
22967
22968 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
22969
22970         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
22971
22972 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
22973
22974         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
22975
22976 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
22977
22978         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
22979         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
22980
22981         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
22982
22983         * docs/gtk-config.1: Now autogenerated.
22984         * docs/Changes-1.4.txt: started
22985         
22986 1999-10-03  Tor Lillqvist  <tml@iki.fi>
22987
22988         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
22989         to #ifdef also here.
22990
22991         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
22992         Owen did to the X11 backend.
22993
22994         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
22995         ScrollWindowEx when blitting inside a window, it can't be correct
22996         in the general case.
22997
22998         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
22999         WM_GETMINMAXINFO is easier.
23000
23001         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
23002         depth equal to the bitspixel value, not the visual's depth.
23003
23004         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
23005         to 24 even if the bitspixel value is 32.
23006
23007         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
23008         need to check for depth==32 when bpp==32, depth will always be 24.
23009
23010 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
23011
23012         * docs/Changes-1.4.txt: Started
23013         
23014         * gtk/Makefile.am (gdk_headers): Include all the new headers.
23015
23016         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
23017         
23018         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
23019         into C file.
23020         
23021         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
23022         header to gdkinputprivate.h.
23023
23024         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
23025         unused since before 1.2.
23026
23027 1999-09-30  Tor Lillqvist  <tml@iki.fi>
23028
23029         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
23030         expand possible hex escapes in the font family (put there by
23031         logfont_to_xlfd if the font name isn't a legal XLFD font family,
23032         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
23033         On Win32, add hex escapes here, too.
23034
23035 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
23036
23037         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
23038         to #ifdef GDK_WINDOWING_X11.
23039
23040 [ Merges from gtk-1-2 ]
23041
23042 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
23043
23044         * configure.in: fixed "GNU Make" check to pass with new make version
23045         3.77.95.
23046
23047 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
23048
23049         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
23050         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
23051         AM_PATH_GTK() macros don't get confused by the -pre1.
23052
23053 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23054
23055         * configure.in (REBUILD): Change check for perl5
23056           to check explicitely for v >= 5.002. (5.001
23057           does not work with our scripts.)
23058
23059 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
23060
23061         * configure.in: evaluate $PERL for the perl version check. added
23062         --disable-rebuilds to give the user an option to completely disable
23063         any source autogeneration rules.
23064
23065 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
23066
23067         * configure.in: evaluate $ac_make when checking for GNU Make.
23068
23069 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
23070
23071         * docs/Makefile.am: added generation.txt.
23072
23073         * Makefile.am: require automake 1.4, build README from README.in and
23074         INSTALL from INSTALL.in in dist-hook.
23075         
23076         * README.in:
23077         * INSTALL.in: new files to autogenerate README and INSTALL from.
23078
23079         * configure.in: figure whether we have GNU Make
23080
23081         * docs/generation.txt: minor additions/corrections.
23082
23083 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
23084
23085         * docs/gtkfaq.sgml: FAQ Update
23086
23087 July 30, 1999 Elliot Lee <sopwith@redhat.com>
23088         
23089         * configure.in: Fix autoconf warnings about cross compilation by
23090         trying to provide sane defaults for AC_TRY_RUN.
23091
23092 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
23093
23094         * ltconfig
23095         * ltmain.sh: upgrade to libtool 1.3.3
23096
23097 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
23098
23099         * INSTALL: Indicate that the --with-glib= configure
23100         time flag is unsupported.
23101
23102 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
23103
23104         * docs/generation.txt: Added a file that gives
23105         documenation about the autogeneration process for
23106         various autogenerated files.
23107         
23108 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
23109
23110         * configure.in (LIBS): Look for libgmodule in the
23111         right location.
23112
23113 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
23114
23115         * docs/gtk_tut.sgml: Removed references to
23116         code examples in my directory on gtk.org as
23117         they should all be in the tutorial now.
23118
23119         * docs/gtk_tut.sgml: Added sources for dial-test
23120         and scribble-xinput programs that were previously
23121         missing.
23122
23123 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
23124
23125         * TODO: Added entry about menu keyboard navigation, removed
23126         some finished items.
23127
23128 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
23129
23130         * acinclude.m4: Standardize on func_dgettext
23131         not func_gettext, so that the checks for dgettext
23132         actually are paid attention to.
23133
23134 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
23135
23136         * configure.in (LIBS): Add $INTLLIBS into $LIBS
23137         directly, rather than repeating the checks for
23138         gettext.
23139
23140         * INSTALL: Added information about gettext and
23141         NLS support.
23142
23143         * acinclude.m4 (LIBM): Check for dgettext, not
23144         just gettext. This should hopefully fix things wrt
23145         systems with old versions of GNU gettext installed.
23146
23147 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
23148
23149         * configure.in (LIBS): Look for libgmodule in the
23150         right location.
23151
23152 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
23153
23154         * autogen.sh: add --enable-maintainer-mode
23155
23156         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
23157
23158 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
23159
23160         * docs/gtk-config.1.in:
23161           docs/Makefile.am:
23162           configure.in: gtk-config is now generated.
23163
23164         * docs/gtk-config.1: Removed, now generated.
23165
23166 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
23167
23168         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
23169         handle CreateNotify itself, still put out a debuging message for
23170         --gdk-debug=events. made the ReparentNotify debugging message more
23171         verbose.
23172         wrap xcoords translation for ConfigureEvents into an error trap,
23173         a destroy event may already be pending, and in that case, the
23174         actuall coordinate values are not at all critical.
23175
23176 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
23177
23178         * gdk/gdkcc.c: Stop leaking the color_hash all over
23179         the place. Simplify and improve the logic.
23180
23181 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
23182
23183         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
23184         for prototypes and function implementations consistent (reported
23185         by Tomas Ogren).
23186
23187 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
23188
23189         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
23190         send_event set in debugging output.
23191         (gdk_compress_exposures): default initialize the event so we don't
23192         operate on bogus values (namely send_event).
23193
23194 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
23195
23196         * gdk/gdkwindow.c: When we receive an unexpected
23197         destroy notify on one of our windows, don't just
23198         warn about it, also mark our windows as destroyed.
23199
23200 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
23201
23202         * gdk/gdkfont.c (gdk_font_hash_insert): Add
23203           name => font and name => fontset hashes. The 
23204           name => fontset hash is a _big_ win since we
23205           weren't previously caching fontsets at all and loading
23206           fontsets is expensive. The name => font hash
23207           is less of a win, but it does save us from doing
23208           repeated XQueryFont calls on the same font.
23209
23210         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
23211           list so we can remove font/fontset from hash.
23212
23213 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23214
23215         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
23216           and slightly confusing test. [ XInternAtom (,,TRUE)
23217           will never return None ].
23218
23219 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
23220
23221         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
23222           gdk/gdkwindow.c (gdk_window_set_hints):
23223
23224         Don't omit setting the properties if flags == 0 -
23225         there may be an existing set of properties there
23226         already. (Very old bug. Would it be better to
23227         delete the property instead?)
23228
23229         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
23230           spelling error in comment.
23231
23232 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
23233
23234         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
23235           to avoid stomping over gdk_error_warnings.
23236
23237         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
23238           as (bits_per_pixel + 7) / 8. This gives the same
23239           result as before for multiples of 8, but actually
23240           a "reasonable" value for 1bit or 4bit displays.
23241
23242 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
23243
23244         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
23245         GNU Make.
23246
23247 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
23248
23249         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
23250         discarding configure events.
23251
23252 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
23253
23254         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
23255         refcount is greater than zero.
23256
23257         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
23258
23259         * gdk/gdkfont.c (gdk_font_unref): Likewise.
23260
23261         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
23262
23263         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
23264
23265 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
23266
23267         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
23268         that format 32 => sizeof(item) == 4. It really is
23269         sizeof(long).
23270
23271 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
23272
23273         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
23274         core dump at all on X IO errors, only core dump
23275         if --enable-debug for X errors.
23276
23277 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
23278
23279         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
23280         unknown window:" message. disabled ConfigureNotify discarding code,
23281         because it led to events being processed out of order.
23282
23283 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
23284
23285         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
23286
23287         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
23288         we export this function, supress error warnings and don't reset the
23289         error code in the first half of this function.
23290
23291         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
23292         code (instead of just -1) so gdk_error_trap_pop() reveals something
23293         actually informative about the error that happened.
23294
23295         * gdk/*.c:
23296         don't rely on gdk_error_code being -1 if an error occoured, but just
23297         gdk_error_code != 0.
23298
23299 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
23300
23301         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
23302         pointer *before* invoking the filter function, so we at least don't
23303         crash if a filter is removed that is currently executed. window filters
23304         *really* need to be made truely reentrant at some point.
23305
23306 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
23307
23308         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
23309         PropertyNotify debug messages.
23310
23311 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
23312         
23313         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
23314         
23315         * gdk/gdkim.c: Fix cut-and-paste errors for 
23316         x/y and PreeditAttributes/StatusAttributes.
23317
23318 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
23319
23320         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
23321         G_MAXINT to 2^16 to alleviate overflow problems in
23322         various window managers.
23323
23324 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
23325
23326         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
23327         for fontsets.
23328
23329 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
23330
23331         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
23332         Initialize size_hints.x and size_hints.y because kwm
23333         brokenly pays attention to them.
23334         (Bug #1181 -  Lars Heete <hel@admin.de>)
23335
23336 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
23337
23338         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
23339         return value of gdk_list_visuals(). 
23340         (Bug #1193 - Morten Welinder <terra@diku.dk>)
23341
23342 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
23343
23344         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
23345         XSetIMValues to (void *) when comparing to NULL, to workaround
23346         the problem of some compilers barfing since older X headers don't
23347         have the prototype for it.
23348
23349 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
23350
23351         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
23352         for pseudocolor where colormap->colors was double
23353         allocated.
23354
23355         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
23356         color value in the hash table with the pixel filled
23357         in so when we do later hash table lookups, the color
23358         value is correct.
23359         
23360 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
23361
23362         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
23363         making the call
23364
23365 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
23366
23367         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
23368         pointed out by Morten Welinder <terra@diku.dk>.
23369
23370 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
23371
23372         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23373           default filter from the list
23374
23375 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
23376
23377         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23378           default filter from the list
23379
23380 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
23381
23382         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
23383
23384         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
23385         g_strdup_printf instead of calcing the length separately
23386
23387 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
23388
23389         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
23390         that we don't do in many other places. (Fixing duplicate 
23391         #include of config.h)
23392
23393         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
23394         Otherwise, #ifndef XINPUT_NONE check in the latter
23395         doesn't work. (Bug #546)
23396
23397 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
23398
23399         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
23400         "None" case insensitive.
23401
23402 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
23403
23404         * gdk/gdkselection.c: 
23405         Add error traps so if the other end of the connection
23406         dies, we survive.
23407
23408 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
23409
23410         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
23411         dest_xid field into two fields - one for the window
23412         to send in messages, one to indicate the last looked
23413         up window for caching purposes. This is needed, so
23414         that Leave messages get the correct window.
23415
23416 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
23417
23418         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
23419         Fix warning created by people mucking around
23420         with the gsource API.
23421
23422         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
23423         Change mapping between GIOCondition and GdkInputCondition
23424         to match the way the Linux kernel does it. This should
23425         fix problems where closed pipes were no longer signalling
23426         GDK_INPUT_READ on systems with a native poll().
23427
23428 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
23429
23430         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
23431         explicitly for the string "None" - it is in the XPM
23432         spec and some servers treat unknown colors in odd ways
23433         (like asking the user!)
23434
23435 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
23436
23437         * gdk/gdkevents.c: made "->" into a "." of previous change so
23438         it compiles
23439
23440 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
23441
23442         * gdk/gdkevents.c (gdk_compress_exposures): Set the
23443         window field of the event structure before calling
23444         user filters.
23445
23446 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
23447
23448         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
23449         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
23450
23451 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
23452
23453         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
23454         intermediate text property - prevents major memory
23455         leak when gdk_use_mb.
23456         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
23457
23458 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
23459
23460         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
23461         gtk-a-higuti-990322-[0-3]
23462
23463         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
23464         sizeof(wchar_t) != sizeof (GdkWChar)
23465
23466         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
23467         that was causing -DX_LOCALE not to work.
23468
23469         * gtk/gtkrc.c (gtk_rc_init):
23470         X_LOCALE will never have LC_MESSAGES defined
23471
23472         * gdk/gdk.c (gdk_init_check):
23473         Remove --xim-preedit and --xim-status from argv properly.
23474
23475         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
23476         that the client window is present on the X server
23477         before we pass it to the input method.
23478
23479 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
23480
23481         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
23482         if --display is specified on the command line, than
23483         the drag window will not be created on that display.
23484         
23485 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
23486
23487         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
23488         lookups with only_if_exists == TRUE were inserting
23489         bogus values into the atom cache.
23490
23491 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
23492
23493         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
23494         then reset it to NULL.
23495
23496         * gdk/gdkcolor.c:
23497         (gdk_colors_free): 
23498         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
23499         key for g_hash_table_remove() in both functions, this prevents us
23500         from accessing possibly uninitialized portions of a GdkColor structure
23501         where we are only interested in its pixel value.
23502
23503 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
23504
23505         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
23506         font hash table, if we have a GdkFontPrivate entry for this font
23507         already, simply increment its reference count, provided by Olaf Dietsche
23508         <olaf.dietsche+list.gtk@netcologne.de>.
23509
23510 1999-09-21  Tor Lillqvist  <tml@iki.fi>
23511
23512         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
23513         just to be sure.
23514
23515         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
23516         unused variables, leftovers from the X11 version.
23517
23518         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
23519
23520         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
23521         downcase fields on X11.
23522
23523 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
23524         
23525         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
23526         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
23527
23528 1999-09-17  Tor Lillqvist  <tml@iki.fi>
23529
23530         * gdk/win32/gdk.def: Add gdk_threads_mutex.
23531
23532         * gtk/makefile.msc: Correct path to libintl.
23533
23534         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
23535         use of gint vs. int, and gint vs. gboolean in headers and
23536         definitions. Use GtkType for the *_get_type functions. Note that
23537         these changes preserve binary compatibility.
23538
23539         * gdk/gdk.c
23540         * gdk/win32/gdk.c
23541         * gdk/gdk.h: Fix inconsistencies: gint vs int.
23542
23543         * gtk/gtkmain.c
23544         * gtk/gtkclist.c
23545         * gtk/gtkmenufactory.c
23546         * gtk/gtknotebook.c
23547         * gtk/gtkwidget.c: Fix inconsistencies, also gint
23548         vs. gboolean.
23549
23550         * gtk/gtkcolorsel.[ch]
23551         * gtk/gtkcombo.[ch]
23552         * gtk/gtkdrawingarea.[ch]
23553         * gtk/gtkgamma.[ch]
23554         * gtk/gtkhandlebox.[ch]
23555         * gtk/gtkhpaned.[ch]
23556         * gtk/gtkhruler.[ch]
23557         * gtk/gtkplug.[ch]
23558         * gtk/gtkpreview.[ch]
23559         * gtk/gtkruler.[ch]
23560         * gtk/gtksocket.[ch]
23561         * gtk/gtkstatusbar.[ch]
23562         * gtk/gtktoolbar.[ch]
23563         * gtk/gtkvbbox.[ch]
23564         * gtk/gtkvpaned.[ch]
23565         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
23566         functions.
23567
23568         * gtk/gtkgamma.h: Fix bug, missing () in call of
23569         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
23570
23571 1999-09-14  Tor Lillqvist  <tml@iki.fi>
23572
23573         * gdk/gdkcolor.c (gdk_colormap_new)
23574         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
23575         colormap->colors was allocated twice.
23576
23577         * gdk/win32/gdk.c: Remove some unused stuff.
23578
23579         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
23580         colormap.
23581
23582         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
23583         * gtk/gtklabel.h (gtk_label_get_type)
23584         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
23585         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
23586         in a couple of places, not guint.
23587
23588 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23589
23590         * configure.in,po/et.po: added Estonian language file
23591
23592 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23593
23594         * configure.in,po/da.po: added Danish file
23595
23596 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
23597
23598         * docs/gtkfaq.sgml: Minor FAQ Update
23599
23600 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
23601
23602         * docs/gtkfaq.sgml: FAQ update
23603
23604 1999-08-27  Tor Lillqvist  <tml@iki.fi>
23605
23606         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
23607         way to get window contents continually refreshed while resizing. I
23608         didn't like the effects myself, so it's not on by default.
23609
23610         * gdk/win32/gdkprivate.h: New flag variable
23611         gdk_event_func_from_window_proc, FALSE by default.
23612
23613         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
23614         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
23615         are passed --gdk-event-func-from-window-proc.
23616
23617         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
23618         and we have am event_func, call it instead of enqueing the event.
23619
23620 1999-08-23  Tor Lillqvist  <tml@iki.fi>
23621
23622         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
23623         Kelley: Set expose_count in GdkEventExposes correctly.
23624
23625         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
23626         MULTIPLE_WINDOW_CLASSES).
23627
23628         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
23629         for bug in NT, apparently NT *does* draw the end pixel, too, in
23630         LineTo with a one-pixel pen, so we don't have to do it ourselves.
23631
23632 1999-08-21  Tor Lillqvist  <tml@iki.fi>
23633
23634         Improvements by Hans Breuer: 
23635
23636         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
23637
23638         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
23639         CS_?REDRAW flags as they cause lots of (late) redraws when "show
23640         window contents while dragging" is turned on. Allocate at least
23641         one unique class for every GdkWindowType. If support for single
23642         window-specific icons is ever needed (eg. Dialog specific), every
23643         such window should get its own class.
23644
23645 1999-08-19  Tor Lillqvist  <tml@iki.fi>
23646
23647         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
23648         error that caused crashes.
23649
23650 1999-08-17  Tor Lillqvist  <tml@iki.fi>
23651
23652         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
23653         window, use ScrollWindowEx, and call UpdateWindow. This prevents
23654         bugs when for instance part of the window was outside the
23655         display. Thanks to Philippe Colantoni for finding and fixing this.
23656
23657 1999-08-16  Tor Lillqvist  <tml@iki.fi>
23658
23659         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
23660         endpoint calculations which were totally wrong. (A little RTFMing
23661         helps a lot ;-)
23662
23663         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
23664         from a separate directory, not from gettext, because of licensing
23665         issues (we want to use the LGPL version).
23666
23667         * README.win32: Mention the intl from glibc vs from gettext issue.
23668
23669 1999-08-13  Tor Lillqvist  <tml@iki.fi>
23670
23671         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
23672         in the key event handling: Now AltGr chars work again. Also,
23673         now Alt-digits are passed up as well as Control-digits.
23674         Pass keypad plus and minus as normal plus and minus.
23675
23676 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
23677
23678         * docs/gtkfaq.sgml: FAQ Update
23679
23680 1999-07-25  Tor Lillqvist  <tml@iki.fi>
23681
23682         * README.win32
23683         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
23684         the Wintab SDK.
23685
23686         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
23687         OK, but getting closer. Guard against bogus tilt data from Wacom
23688         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
23689         enable easier building without Wintab.
23690
23691         * gdk/win32/gdkinput.h
23692         * gdk/win32/gdkevents.c 
23693         * gdk/win32/gdkwindow.c: Minor changes related related to above.
23694         
23695         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
23696         code. As we have just one visual on Win32, no sense to have it in a
23697         table, and no need for the hash table.
23698
23699         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
23700         better on white background.
23701
23702 1999-07-21  Tor Lillqvist  <tml@iki.fi>
23703
23704         * README.win32: Update gcc build instructions. Mention gettext is
23705         GPL.
23706
23707         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
23708         supported cursor size with GetSystemMetrics.
23709
23710         * gdk/win32/gdkfont.c
23711         * gtk/gtkfontsel.c: Guard against some font weight and charset
23712         symbols being undefined (in mingw32 headers).
23713
23714         * gdk/win32/makefile.cygwin
23715         * gtk/makefile.cygwin
23716         * gtk/gtkthemes.c: No longer need to have differently named
23717         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
23718
23719 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
23720
23721         * docs/gtkfaq.sgml: Long awaited FAQ update.
23722
23723 1999-07-15  Tor Lillqvist  <tml@iki.fi>
23724
23725         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
23726         it. Obscure bit manipulation needed.
23727
23728         * gdk/win32/gdkevents.c: Logging.
23729         
23730         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
23731         style (file name include compiler name) for theme engines.
23732
23733 1999-07-13  Tor Lillqvist  <tml@iki.fi>
23734
23735         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
23736
23737         * gdk/win32/gdkevents.c: Fix long-standing bug in key
23738         events. The key.string wasn't zero-terminated, still we strdup'ed
23739         it in gdk_event_copy(). Synthesize crossing events for button
23740         events before possible propagation.
23741
23742         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
23743
23744         * gdk/win32/makefile.cygwin
23745         * gtk/makefile.cygwin: Use new DLL naming style for the
23746         GCC-compiled ones.
23747
23748         * gdk/win32/makefile.msc
23749         * gtk/makefile.msc: Cosmetics mostly.
23750
23751         * gtk/gtk.def: Add missing entry points.
23752
23753         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
23754
23755 1999-07-09  Tor Lillqvist  <tml@iki.fi>
23756
23757         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
23758         or height is zero. Don't print a warning if Pie or Arc fails, they
23759         always fail (?) for very narrow ellipses.
23760
23761         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
23762         the part or the destination window corresponding to source area
23763         outside of the source drawable's boundary.
23764
23765         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
23766         anything if less than two points.
23767
23768         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
23769         return NULL. Gtk cut-and-paste inside a single program works
23770         better this way. (It always gets the clipboard contents from
23771         Windows, not from its own copy, which is cleared anyway. I can't
23772         say I fully understand what happens... Emulating the X selection
23773         and property stuff is a bit of a mess.)
23774
23775         * gdk/win32/gdkevents.c
23776         * gdk/win32/gdkproperty.c: A bit more verbose logging.
23777
23778         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
23779         that never got deleted). Revamp gdk_region_shrink.
23780
23781         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
23782         after use.
23783
23784         * gtk/gtk.def: Add some missing entry points.
23785
23786         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
23787         component.
23788
23789 1999-07-04  Tor Lillqvist  <tml@iki.fi>
23790
23791         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
23792         Control-digits specially.
23793
23794 1999-07-03  Tor Lillqvist  <tml@iki.fi>
23795
23796         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
23797
23798 1999-06-28  Tor Lillqvist  <tml@iki.fi>
23799
23800         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
23801         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
23802         finding this.)
23803
23804 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
23805
23806         * gtk+.spec.in: Corrected some typos in files section.
23807         
23808 1999-06-15  Tor Lillqvist  <tml@iki.fi>
23809
23810         * README.win32: Mention using GNU gettext.
23811         * config.h.win32: Enable NLS stuff.
23812         * gtk/makefile.msc: Use GNU gettext.
23813         * gdk/win32/gdkdnd.c: Minor header reorg.
23814         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
23815         cosmetics.
23816         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
23817         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
23818
23819 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
23820
23821         * acinclude.m4
23822         * config.guess
23823         * config.status
23824         * ltconfig
23825         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
23826
23827 1999-05-30  Tor Lillqvist  <tml@iki.fi>
23828
23829         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
23830         SafeAdjustWindowRectEx. Don't override all calls to
23831         AdjustWindowRectEx by it, but use it only in two places: When
23832         creating a new top-level window and when moving a top-level
23833         window.
23834
23835         Use screen coordinate rectangle, not client rectangle, in
23836         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
23837         when we try to place a window so that the decoration (mainly,
23838         title bar) isn't visible.
23839
23840         These changes fix the bug that showed up for instance as the
23841         GIMP's saved top-level windows moving right and down (by an amount
23842         equal to the window decoration) for each session. This bug showed
23843         up also in testgtk's "Saved Position".
23844
23845         gdk_window_resize also redone a bit.
23846
23847 1999-05-25  Tor Lillqvist  <tml@iki.fi>
23848
23849         * gtk/testgtkrc: Add (commented out) Windows-style theme
23850         include line.
23851
23852         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
23853
23854 1999-05-18  Tor Lillqvist  <tml@iki.fi>
23855
23856         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
23857         gdkx.h to a gdk subdirectory, so that applications can include
23858         these with <gdk/*.h> without trouble.
23859
23860         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
23861         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
23862         have their bitmap destroyed.
23863
23864         * gdk/win32/gdk.def: Add gdk_root_parent.
23865
23866 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
23867
23868         * configure.in
23869           gtk-config.in
23870           ltconfig
23871           ltmain.sh     
23872           gtk/Makefile.am: changes to compile nicely (with xlib) 
23873           on BeOS
23874
23875 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
23876
23877         * acinclude.m4
23878         * config.guess
23879         * config.sub
23880         * ltconfig
23881         * ltmain.sh: upgrade to libtool 1.3
23882
23883 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
23884
23885         * gtk/gtkclist.c:
23886         * gtk/gtkctree.c: merges from gtk-1-2
23887
23888 1999-04-25  Tor Lillqvist  <tml@iki.fi>
23889
23890         Support added for building using a GNU toolchain on Win32,
23891         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
23892
23893         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
23894         * config.h.win32: Changes for gcc.
23895         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
23896         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
23897         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
23898         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
23899         Protect shl stuff unavaiilable with mingw32 headers.
23900         * gdk/win32/gdkevents.c: Fix typo.
23901         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
23902         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
23903         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
23904         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
23905         the mingw32 headers.
23906         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
23907         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
23908         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
23909         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
23910         Test for NATIVE_WIN32, not _MSC_VER.
23911         * gtk/gtkmain.c: No use warning about developer version on Win32,
23912         there aren't any non-developer versions anyhow.
23913         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
23914         * gtk/makefile.msc: Use pthread from another directory. Minor other
23915         changes. 
23916
23917 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
23918
23919         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23920           default filter from the list
23921
23922 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
23923
23924         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
23925          when gtk_widget_grab_default() is called for a widget that
23926          is not within a GtkWindow.
23927
23928 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
23929
23930         * docs/gtk_tut.sgml, examples/clist.c: use a
23931           scrolled window in the clist example. Minor
23932           tutorial fixes.
23933
23934 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
23935
23936         * docs/gtk_tut.sgml: Style check from David King
23937           <dking@youvegotmail.net>
23938
23939 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
23940
23941         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
23942         compile with unknown value of GDK_WINDOWING
23943
23944 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
23945
23946         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
23947         after the rule is fired.
23948         (install-exec-local): Install gdkconfig.h only if the contents are
23949         different from the currently installed gdkconfig.h.
23950
23951 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
23952
23953         * gdk/Makefile.am (configexecincludedir): Rename from 
23954         configincludedir so that gdkconfig.h will be installed 
23955         as part of `make install-exec'. 
23956
23957 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
23958
23959         * acinclude.m4
23960         * config.guess
23961         * config.sub
23962         * ltconfig
23963         * ltmain.sh: upgrade to libtool 1.2f
23964
23965         * autogen.sh: libtool is not required to autogen gtk+
23966
23967         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
23968         needed)
23969
23970 1999-03-18  Tor Lillqvist  <tml@iki.fi>
23971
23972         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
23973         declaring gdk variables exported/imported from the DLL. New image
23974         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
23975         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
23976         GDK_DRAG_PROTO_OLE2.
23977
23978         * gdk/gdk.h: Merge in Win32 version: Two new functions,
23979         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
23980         declared only for the Win32 version, but could be in the X11
23981         version as well. (Needed for a Xlib-less gdk_imlib.)
23982         gdk_color_hash should have only one parameter. Declare
23983         gdk_threads_mutex with GDKVAR.
23984         
23985         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
23986         just one parameter.
23987
23988         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
23989         per pixel, not bits.
23990
23991         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
23992         Fetch bpp (which means bits-per-pixel here) from another place on
23993         Win32. Accept also depth==32 (which we might get on Win32) with
23994         bpp==32.
23995
23996         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
23997         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
23998         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
23999         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
24000         in the backend-dependent directory, not in the common gdk
24001         directory.
24002
24003         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
24004         headers.
24005
24006 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
24007
24008         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
24009         want to use the Gtk+ devel version (which is true, and yes - even i am
24010         currently working with the 1.2.x branch). so everyone reading this, you
24011         probably want to issue
24012         cvs checkout -r glib-1-2 glib
24013         and
24014         cvs checkout -r gtk-1-2 gtk+
24015         as your next two comands.
24016
24017 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
24018
24019         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
24020         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
24021
24022         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
24023         file. strongly deprecated the GTK_HAVE_* macros, we provide
24024         GTK_CHECK_VERSION() for people that need to check for certain
24025         Gtk+ versions.
24026
24027         * gtk/gtkcompat.h: removed this from CVS.
24028         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
24029         idea right from the start, it just didn't seem like that back then.
24030
24031 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
24032
24033         * merges from gtk-1-2:
24034
24035 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
24036
24037         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
24038         item factory class has been created.
24039         (gtk_item_factory_parse_rc): likewise.
24040
24041         * gtk/gtkmenu.c:
24042         keep proper references for old_active_menu_item.
24043         (gtk_menu_reparent): unset the usize of the new parent,
24044         so the menu can sanely be size requested and we don't get nasty screen
24045         artefacts upon next reparentation.
24046         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
24047         enter notify. only synthesize enter notifies if the pointer really is
24048         inside the event window.
24049         (gtk_menu_popdown): use gtk_menu_shell_deselect().
24050         (gtk_menu_popup): move the background setting stuff into
24051         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
24052
24053         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
24054         gtk_menu_shell_select_item() to select the new item.
24055         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
24056         do the right thing for deselection as well.
24057
24058 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
24059
24060         * gtk/gtkwidget.[hc]:
24061         (gtk_widget_accelerators_locked): return whether a widget's accelerators
24062         are locked.
24063
24064         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
24065         existing accelerators if the widget's accelerators are locked.
24066
24067 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
24068
24069         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
24070
24071         * gtk/gtkmenu.c: truely forward key press and key release events to
24072         the menu widget from the toplevel or tearoff window. we can't simply
24073         connect to that, we need to stop further processing of the events as
24074         well.
24075
24076 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
24077
24078         * gtk/gtkmenu.c:
24079         (gtk_menu_key_press): pass event->keyval, event->state to
24080         gtk_accelerator_valid, instead of event->keyval twice.
24081         refuse to install single letter accelerators for menus that use
24082         single letter shortcuts.
24083
24084         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
24085         gtk_menu_ensure_uline_accel_group().
24086
24087         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
24088         which will always return an uline accel group, made
24089         gtk_menu_get_uline_accel_group() return NULL if the group isn't
24090         yet created.
24091
24092 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
24093
24094         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
24095
24096         * gtk/gtkclist.c (gtk_clist_column_title_passive):
24097         Leave button sensitive, trap  button_press, button_release,
24098         motion_notify, enter_notify and leave_notify events instead.
24099         (gtk_clist_column_title_active): disconnect event handler.
24100         (gtk_clist_drag_data_get): fixed memory leak. Reported by
24101         Guillaume Laurent <glaurent@worldnet.fr>
24102
24103 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
24104
24105         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
24106         width/height mixups.
24107
24108         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
24109         if needed.
24110
24111 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
24112
24113         * gtk/testgtk.c (create_item_factory): unref the item factory after
24114         window's destruction.
24115
24116         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
24117         count on the menu shell around the menu item's activation, since the
24118         signal emission may cause menu shell destruction.
24119
24120         * gtk/gtkitemfactory.c:
24121         the previous code leaked one accel group per menu. we use
24122         gtk_menu_get_uline_accel_group() now to fix that, and with that
24123         also create the underline accelerator group of the menus only if
24124         required (i.e. an underline accelerator has been specified).
24125         (gtk_item_factory_construct):
24126         (gtk_item_factory_create_item): removed code that would create an
24127         extra accel group for the menu (and leak references).
24128         (gtk_item_factory_create_item): adapted the underline accelerator
24129         installation code to properly feature gtk_menu_get_uline_accel_group().
24130
24131         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
24132         menu->accel_group, this may return NULL if the accelerator group
24133         hasn't been set yet.
24134         added gtk_menu_get_uline_accel_group() to retrive the underline
24135         accelerator group of the menu, this will be created on demand
24136         and proper care is taken about its reference count.
24137
24138         * gtk/gtkitemfactory.h:
24139         * gtk/gtkitemfactory.c:
24140         dumped the approach of keeping a widgets by action list on the
24141         factory since the factory<->widget destroy negotiation didn't work
24142         and would be hard to get going at all. instead we keep a list of
24143         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
24144         persistant throughout a program's life time).
24145         also, i removed the static const gchar *key_* variables, and made
24146         them inline strings (they weren't actually used anyways).
24147         (gtk_item_factory_add_item): update ifactory->items.
24148         (gtk_item_factory_destroy): destroy ifactory->items (and remove
24149         the item factory pointer from the remaining ifactory widgets).
24150         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
24151         list to find the widget.
24152         (gtk_item_factory_get_item): new function that works around
24153         gtk_item_factory_get_widget() limitations, this function will only
24154         return menu items, even for <Branch> entries.
24155
24156 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
24157
24158         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24159         font hash table, if we have a GdkFontPrivate entry for this font
24160         already, simply increment its reference count, provided by Olaf Dietsche
24161         <olaf.dietsche+list.gtk@netcologne.de>.
24162
24163         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
24164         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
24165
24166 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
24167
24168         * gtk/gtkcontainer.c:
24169         (gtk_container_add_with_args):
24170         (gtk_container_addv):
24171         (gtk_container_add): before adding a child to a conatiner, make sure
24172         it is (default) constructed, this is neccessary because under certain
24173         circumstances the child will get relized and mapped immediatedly, in
24174         which case it has to be constructed already.
24175
24176 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
24177
24178         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
24179         values > 1 as TRUE also.
24180
24181 1999-03-16  Tor Lillqvist  <tml@iki.fi>
24182
24183         * README.win32: New file.
24184                 
24185         * configure.in: Check for lstat.
24186
24187         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
24188         completeness.
24189
24190         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
24191
24192         * gtk/gtk.def: Removed CRs.
24193
24194         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
24195         ..\gdk\win32).
24196
24197         * gdk/win32/makefile.msc: Correct upwards relative paths.
24198         
24199 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
24200
24201         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
24202           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
24203           it was connecting a void function to expose_event and the int
24204           returning function to the draw signal
24205
24206 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
24207
24208         * configure.in:
24209         Use correct path to libgmodule.la when ref'ing uninstalled copy
24210         of glib.  (Already in stable branch, Bug #417)
24211
24212 1999-03-15  Tor Lillqvist  <tml@iki.fi>
24213
24214         Win32 merge and general portability stuff:
24215                 
24216         * acconfig.h,configure.in: Check for <sys/time.h>.
24217
24218         * gdk/win32: New directory (actually, been there for a while).
24219         
24220         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
24221         NATIVE_WIN32, and use these. Always case fold on Win32. No
24222         backslashed escapes on native Win32.
24223
24224         * gtk/{gtk.def,makefile.msc}: New files.
24225
24226         * gtk/Makefile.am: Add above new files.
24227         
24228         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
24229         instead of <strings.h>.
24230
24231         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
24232         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
24233         <unistd.h> appropriately.
24234
24235         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
24236         Use ABS() (from <glib.h>) instead of abs().
24237         
24238         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
24239         of gtk (and thus glib) headers, so that WIN32 will be
24240         defined. With MS C, include <direct.h> for mkdir prototype.
24241
24242         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
24243         some casts, needed by MS C.
24244
24245         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
24246         implemented).
24247
24248         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
24249         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
24250         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
24251
24252         * gtk/gtkmain.h: Mark variables for export/import on Win32.
24253                 
24254         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
24255         the event is not a hint, or its window is not the slider. Needed
24256         on Win32, at least.
24257
24258         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
24259         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
24260         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
24261         a subdirectory of the Windows directory as gtk system
24262         configuration directory.
24263
24264         * gtk/gtkselection.c: No chunks on Win32.
24265
24266         * gtk/gtksocket.c: Not implemented on Win32.
24267
24268         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
24269
24270         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
24271
24272         * gtk/maketypes.awk: Declare variables with a macro that expands to
24273         necessary export/import magic in the case of Win32.
24274                 
24275         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
24276
24277 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
24278
24279         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
24280         since those were meant only for gdki18n.h.  
24281         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
24282         for widechar tests.
24283         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
24284
24285 1999-03-13  Tor Lillqvist  <tml@iki.fi>
24286
24287         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
24288         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
24289
24290         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
24291         installed) to CFLAGS.
24292
24293         * gdk/Makefile.am: Add rules for gdkconfig.h.
24294
24295         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
24296         APIs.
24297
24298         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
24299         gdkx.h anyway when compiling for X11.
24300         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
24301         general): Merge in Win32 version.
24302         
24303         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
24304         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
24305         expansion (if we don't have HAVE_PWD_H), allow for drive
24306         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
24307         included code from Craig Setera's port to Win32 (the one that uses
24308         X11, and the cygwin dll), even if it probably will be abandoned.
24309
24310         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
24311         the user entered one herself.  This way one can complete *.h and
24312         don't get matches on any .help files, for instance.
24313         
24314 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
24315
24316         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24317         font hash table, if we have a GdkFontPrivate entry for this font
24318         already, simply increment its reference count, provided by Olaf Dietsche
24319         <olaf.dietsche+list.gtk@netcologne.de>.
24320
24321         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
24322         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
24323
24324 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
24325
24326         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
24327         the number of calls to gdk_draw_point() (and thus to X) by
24328         clipping the points by hand.
24329
24330         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
24331         the clip parameter.
24332         (gtk_handle_box_paint): Only paint the handle if the expose area
24333         intersects it.
24334
24335 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
24336
24337         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
24338
24339 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
24340
24341         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
24342         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
24343
24344 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
24345
24346         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
24347          textmode (O_TEXT) for OS/2 version.
24348
24349 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
24350
24351         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
24352         GtkSpinButton, "input" and "output", to make the output more flexible.
24353         The user has to provide a mapping between adjustment->value and the
24354         output string (and vice versa, if the spin button is editable). 
24355         See testgtk for examples.
24356
24357 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
24358
24359         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
24360         new one.
24361         
24362         * configure.in: set gtk+ version to 1.3.0.