]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
eade46193caabd81393a52b18709bf5ff6636782
[~andy/gtk] / ChangeLog.pre-2-10
1 2002-01-01  Havoc Pennington  <hp@pobox.com>
2
3         * docs/README.linux-fb: note that this file is obsolete
4
5         * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
6         files that they should not be edited and look in the reference 
7         manual instead. Probably these files should just be replaced by 
8         the note, and their main contents deleted.
9
10         * gtk/gtktextview.c: docs
11
12         * gtk/gtktextmark.c: docs
13
14         * gtk/gtktextchild.c: docs
15
16         * gtk/gtktextbuffer.c: docs stuff
17
18         * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
19         give people more leads in sorting out PRIMARY vs. CLIPBOARD
20
21 2002-01-01  Tor Lillqvist  <tml@iki.fi>
22
23         * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
24         ../gdk-pixbuf/gdk-pixbuf-csource.
25
26 2001-12-31  Tor Lillqvist  <tml@iki.fi>
27
28         * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
29         handling.
30         (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
31
32         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
33         -Wall.  Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
34         one more place.
35
36         * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
37         -Wall.
38
39         * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
40
41 2002-01-01  Havoc Pennington  <hp@pobox.com>
42
43         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc 
44         fix
45         
46 2002-01-01  Havoc Pennington  <hp@pobox.com>
47
48         * gtk/gtktextview.c (changed_handler): Replace call to
49         gtk_widget_size_request() that expected to actually compute the
50         request with a direct use of widget_class->size_request, so we get
51         our size request right; fixes remaining part of #63065 reported by
52         Matthias Clasen
53
54 2001-12-31  Havoc Pennington  <hp@pobox.com>
55
56         * tests/testtext.c (do_insert_and_scroll): remove backward_char
57         since we no longer have bogus newline
58         (dialog_response_callback): remove another backward_char horkage, 
59         reported by Matthias Clasen #63065
60
61 2001-12-31  Havoc Pennington  <hp@pobox.com>
62
63         * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
64         fix an incorrect assertion that the "valid" flag is always correct
65         in a node and add explanatory comment. This keeps me from 
66         reproducing #59101, but I'm remembering that 59101 was actually 
67         about incorrect pixel totals, so I'm not sure 59101 is actually 
68         fixed. May just have stopped happening due to some change in 
69         how C-k works.
70
71 2001-12-31  Havoc Pennington  <hp@pobox.com>
72
73         * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
74         selection if shift is down, bug #50939
75         (gtk_text_view_button_press_event): add double/triple click
76         selection to the current selection if shift is down
77
78 2001-12-31  Havoc Pennington  <hp@pobox.com>
79
80         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix 
81         to use ensure_byte_offsets not ensure_char_offsets, patch 
82         from Padraig O'Briain bug #67356
83         
84 2001-12-30  Havoc Pennington  <hp@pobox.com>
85
86         * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have 
87         the right values, reported by Jeff Franks
88
89 2001-12-30  Matthias Clasen  <matthiasc@poet.de>
90
91         * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
92
93 2001-12-28  Matthias Clasen  <matthiasc@poet.de>
94
95         * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c: 
96         Minor documentation tweaks.
97
98 2001-12-28  Tor Lillqvist  <tml@iki.fi>
99
100         * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
101         (unicode_classify): Don't return -1 on encountering an
102         unclassified character, but play it safe and return U_BASIC_LATIN.
103
104 Thu Dec 27 16:05:30 2001  Owen Taylor  <otaylor@redhat.com>
105
106         * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
107         of misc->xpad/ypad consistent with GtkLabel. Do 
108         directional flipping when interpreting misc->xalign/yalign.
109         Fix off-by-one error for negative x,y. (#67472, reported
110         by Mathieu Lacage)
111
112 Thu Dec 27 15:45:41 2001  Owen Taylor  <otaylor@redhat.com>
113
114         * gtk/gtkwidget.c (gtk_widget_set_style_internal):
115         Remove optimization that was causing problems because
116         we called gtk_widget_size_request() before we called
117         gtk_widget_queue_resize() so RESIZE_NEEDED was not
118         set. Optimization shouldn't mattter now that we
119         are smart about needlessly size requesting or allocating
120         widgets. (#67598, reported by Jacob Berkman)
121
122 Thu Dec 27 15:38:20 2001  Owen Taylor  <otaylor@redhat.com>
123
124         * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
125         Call gdk_window_get_pointer() on menu->bin_window not
126         menu->window, so we get the correct window for the
127         menu item. (#65213, Guillermo S. Romero)
128
129 Thu Dec 27 15:13:44 2001  Owen Taylor  <otaylor@redhat.com>
130
131         * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
132         the title by setting to NULL. Move docs inline. 
133         Update the title if the tearoff window already
134         exists. Code cleanup. (Fixes #65190, reported by
135         Vitaly Tishkov.)
136
137 Thu Dec 27 14:04:22 2001  Owen Taylor  <otaylor@redhat.com>
138
139         * gtk/gtksocket.c (gtk_socket_key_press_event): 
140         gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
141         special handling of key presses unless we are doing 
142         iter-app embedding. (Fixes #67590, Anders Carlsson)
143
144 Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
145
146         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
147         (gtk_tree_model_sort_sort_level),
148         (gtk_tree_model_sort_insert_value): fix a few places where
149         I was confused between modelsort iters and other iters. This was
150         really going to happen someday ;)
151
152 Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
153
154         * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
155         we are unprelighted before reordering
156
157         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
158         need to break out of the for loop, not return (this fixed
159         the 'selection freeze' bug).
160
161         * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
162         be pretty stable now, though it still needs some more code
163         cleanups.
164
165 Wed Dec 26 12:32:31 2001  Owen Taylor  <otaylor@redhat.com>
166
167         * docs/Changes-2.0.txt: Document the fact that
168         gtk_paned_set_handle_size() has been removed.
169
170         * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro, 
171         since it pointed to gtk_paned_set_handle_size(), which
172         was removed. (#66760, Matt Wilson)
173
174 Wed Dec 26 12:28:24 2001  Owen Taylor  <otaylor@redhat.com>
175
176         * gtk/gtkdnd.c (gtk_drag_highlight): Connect 
177         gtk_drag_hightlight_expose _after_, so it works with
178         widgets that paint there entire background. (#66735)
179
180 Wed Dec 26 12:17:06 2001  Owen Taylor  <otaylor@redhat.com>
181
182         * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
183         allocation to widget->allocation. (Fixes #67290,
184         Chris Phelps.)
185
186 Wed Dec 26 11:49:01 2001  Owen Taylor  <otaylor@redhat.com>
187
188         (#67542, reported by Anders Carlsson)
189         
190         * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
191         rc_style->font_desc with defaul style instead of replacing
192         it.
193
194         * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
195         font descriptions in RC styles by calling
196         pango_font_description_merge(). 
197
198 2001-12-24  James Henstridge  <james@daa.com.au>
199
200         * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
201         valid with both SGML and XML.
202
203 Sat Dec 22 12:38:03 2001  Owen Taylor  <otaylor@redhat.com>
204
205         * configure.in: 1.3.12, interface, binary age 0.
206
207         * configure.in: Require new versions of Glib, Pango, ATK.
208
209         * NEWS: Updated.
210
211         * configure.in: Make explicit what libtool we are executing.
212         (Tomas Ogren)
213
214         * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
215
216         * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix 
217         parameter names for docs.
218
219 Sat Dec 22 22:35:29 2001  Owen Taylor  <otaylor@redhat.com>
220
221         * gtk/gtkwindow.c (gtk_window_realize) 
222           gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
223
224         * gtk/gtkentry.c (gtk_entry_key_release)
225           gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
226         key release events to the input method.
227
228         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
229         Handle release of Control/Shift to end hex sequence.
230
231         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress): 
232         Handle key releases as well as presses.
233
234 2001-12-21  Matthias Clasen  <matthiasc@poet.de>
235
236         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
237
238         * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
239         gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
240         documentation about underscores and mnemonics. (#66380)
241
242         * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
243         cyclic reference in docs.
244
245         * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
246         of default value. (#65402)
247
248         * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): 
249         Markup fixes.
250
251 2001-12-20  Anders Carlsson  <andersca@gnu.org>
252
253         * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
254         map here.
255
256 Tue Dec 18 16:15:55 2001  Owen Taylor  <otaylor@redhat.com>
257
258         * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
259         (reported by Jeff Franks.)
260
261 Tue Dec 18 16:07:28 2001  Owen Taylor  <otaylor@redhat.com>
262
263         * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix 
264         prototype for direction_changed. (Reported by
265         Jeff Franks.)
266
267 2001-12-18  Padraig O'Briain <padraig.obriain@sun.com>
268
269         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
270         Fix typo (list->data becomes list->next)
271
272 2001-12-06  Havoc Pennington  <hp@redhat.com>
273
274         Add Unicode control char menu, based on patch from Dov.
275         Bug #63495
276         
277         * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
278         gtk_entry_enter_text
279         (gtk_entry_enter_text): function to do "typing in text"
280         (popup_targets_received): add the Unicode menu items
281
282         * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
283         on Input Methods item, and add the unicode menu items.
284
285         * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
286         used in GtkEntry and GtkTextView - may become public later.     
287
288 2001-12-16  Kjartan Maraas  <kmaraas@gnome.org>
289
290         * gtk/gtkprogressbar.c: Fix a typo.
291         * gtk/gtkpaned.c: Fix a typo.
292         
293 2001-12-15  Darin Adler  <darin@bentspoon.com>
294
295         Fix some warnings.
296
297         * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
298         g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
299         * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
300         * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
301         * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
302         * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
303         Restructure loop to get rid of uninitialized variable warning. Also
304         gives a tiny efficiency gain.
305
306 2001-12-15  Murray Cumming  <murrayc@usa.net>
307
308         * Fixed first arg type of GtkScale's "format_value" signal's
309         function pointer.
310
311 2001-12-14            Vitaly Tishkov       tvv@sparc.spb.su
312         docs/reference/gtk/tmpl/gtkcelleditable.sgml
313                 gtkcelleditable -> GtkCellEditable
314         docs/reference/gtk/tmpl/gtktreesortable.sgml
315                 gtktreesortable -> GtkTreeSortable
316
317 2001-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
318
319         * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
320         demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
321         and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
322         resp.
323
324 Thu Dec 13 22:02:41 2001  Kristian Rietveld   <kris@gtk.org>
325
326         * gtk/gtktreeview.c (validate_visible_area): free path
327         at the end
328
329 2001-12-13  Matthias Clasen  <matthiasc@poet.de>
330
331         * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
332
333 Thu Dec 13 20:37:27 2001  Kristian Rietveld  <kris@gtk.org>
334
335         * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
336         to find the clicked node in the tree when tree == NULL
337
338 2001-12-13  Anders Carlsson  <andersca@gnu.org>
339
340         * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare 
341         event->state with the default mod mask. 
342
343 2001-12-12  jacob berkman  <jacob@ximian.com>
344
345         * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
346
347 Wed Dec 12 17:22:45 2001  Owen Taylor  <otaylor@redhat.com>
348
349         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
350         Reset the existing slave before removing it to give
351         it a chance to commit and emit "preedit_changed" 
352         in case there was still a preedit string.
353
354 2001-12-12  Matthias Clasen  <matthiasc@poet.de>
355         
356         * gtk/gtktextlayout.c: Typo fixes
357         * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
358
359         * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel, 
360         gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
361
362         * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
363
364 Wed Dec 12 16:43:10 2001  Jonathan Blandford  <jrb@redhat.com>
365
366         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
367         validate_rows_timer in unrealize.  Reported by Matthew Wilson.
368
369 Wed Dec 12 16:18:26 2001  Owen Taylor  <otaylor@redhat.com>
370
371         * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
372         "prepainting" the menu before realizing other than
373         via gtk_style_set_background() - this was broken when
374         we added menu scroll support.
375
376         * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
377         window in the expose event -- fixes problem with border
378         flashing during scrolling.
379
380 Wed Dec 12 15:11:49 2001  Owen Taylor  <otaylor@redhat.com>
381
382         * gtk/gtksettings.c (gtk_settings_get_property): Support
383         using names/nicks for the gdk_settings values for enum valued
384         types. (#57678, reported by Anders Carlsson)
385
386 Wed Dec 12 15:01:33 2001  Jonathan Blandford  <jrb@redhat.com>
387
388         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
389         with insert_page_menu.  Code duplication is bad.
390
391         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
392         wrong fix yesterday.
393
394 Wed Dec 12 14:27:30 2001  Owen Taylor  <otaylor@redhat.com>
395
396         * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
397         modifiers.
398
399 2001-12-12  James Henstridge  <james@daa.com.au>
400
401         * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
402         (menu_item)->accel_path first when looking up the accel path.
403
404 Tue Dec 11 19:18:21 2001  Owen Taylor  <otaylor@redhat.com>
405
406         * tests/testgtk.c (layout_expose_handler): Only draw
407         for events on the bin window.
408
409 Tue Dec 11 18:55:16 2001  Jonathan Blandford  <jrb@redhat.com>
410
411         * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
412         mnemonics work with notebooks.
413
414 Tue Dec 11 15:25:06 2001  Jonathan Blandford  <jrb@redhat.com>
415
416         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
417         bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
418         Makes some flicker while scrolling go away.
419
420 2001-12-11  Michael Natterer  <mitch@gimp.org>
421
422         * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
423         adds alpha to the pixbuf; re-load the saved pixbuf and
424         pixel-by-pixel compare it with the original one.
425
426 Tue Dec 11 15:39:08 2001  Soeren Sandmann  <sandmann@daimi.au.dk>
427
428         * ChangeLog: Fix wrong ChangeLog entry
429         * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
430         right corner
431
432 2001-12-10  jacob berkman  <jacob@ximian.com>
433
434         * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer): 
435         * gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
436         (gdk_keyboard_grab): do not grab things if the nograb debug flag
437         is set
438
439         * gdk/gdkinternals.h: 
440         * gdk/gdk.c: add nograbs debug flag to disable grabs of the
441         keyboard / mouse
442
443 Mon Dec 10 19:42:29 2001  Jonathan Blandford  <jrb@redhat.com>
444
445         * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
446         didn't reset the timer.
447
448 2001-12-10  Matthias Clasen  <matthiasc@poet.de>
449
450         * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
451
452 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
453
454         * gtk/gtkviewport.c: Add docs.
455
456 Mon Dec 10 16:21:38 2001  Jonathan Blandford  <jrb@redhat.com>
457
458         * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
459         RBTree corruption bug--
460
461 2001-12-10  Anders Carlsson  <andersca@gnu.org>
462
463         * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
464         if edited_column is NULL, also grab focus before removing
465         the cell_editable.
466
467 Sun Dec 09 15:06:51 2001  George Lebl <jirka@5z.com>
468
469         * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
470           denominator in the horizontal case just like we do in the vertical
471           case (why I didn't notice that there were two cases the first time
472           around is beyond me:).  Also fix indentation in the vertical case.
473
474 2001-12-09  Anders Carlsson  <andersca@gnu.org>
475
476         * gdk/x11/gdkevents-x11.c: Update xsettings name.
477
478         * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
479         gtk-dnd-drag-threshold GtkSetting.
480
481         * gtk/gtksettings.c (gtk_settings_class_init): Add 
482         setting for dnd drag threshold.
483
484 2001-12-09  Matthias Clasen  <matthiasc@poet.de>
485
486         * gtk/gtkcontainer.c: Add docs.
487
488 2001-12-08  Matthias Clasen  <matthiasc@poet.de>
489
490         * gtk/gtkwidget.c: Doc markup fix. 
491
492         * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
493
494         * gtk/gtktreestore.c: Typo fixes. (#66445)
495
496         * gtk/gtkaccelgroup.c: Misc doc markup. (#66425) 
497
498         * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
499         to gtk_clipboard_set_with_owner(). (#66424)
500  
501 Sat Dec  8 16:12:10 2001  Christopher Blizzard  <blizzard@redhat.com>
502
503         * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
504         "<unknown>" if someone doesn't pass in a valid argc.  (Patch from
505         Fabrice Bellet <fabrice@gnu.org>, #54127).
506
507 Sat Dec  8 10:04:54 2001  Jonathan Blandford  <jrb@redhat.com>
508
509         * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
510         of places, so that people with crashy trees can just run their
511         program with GTK_DEBUG=TREE.
512
513 Sat Dec  8 20:57:24 2001  Kristian Rietveld  <kristian@planet.nl>
514
515         * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
516         per jrb's request
517
518 2001-12-08  Anders Carlsson  <andersca@gnu.org>
519
520         * tests/testgtk.c (layout_expose_handler): Don't return TRUE
521         since then the default GtkLayout expose handler won't be called.
522
523 Fri Dec  7 23:42:50 2001  Jonathan Blandford  <jrb@redhat.com>
524
525         * gtk/gtktreeview.c (validate_rows_handler): remove
526         g_return_if_fail.
527
528         * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
529         Singh <yosh@gimp.org> to fix bug when rendering Tree with an
530         empty model.
531
532 Fri Dec  7 20:06:14 2001  Jonathan Blandford  <jrb@redhat.com>
533
534         * gtk/gtktreeview.c (validate_visible_area): get logic right,
535         #66249
536
537         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
538         removing a node ended up with a corrupt tree.  Really really nasty
539         bug.
540         (_gtk_rbtree_debug_spew): new debug helper function
541         (_fixup_validation): new inline function to clean up code
542         readability a lot. 
543
544 Fri Dec  7 19:34:51 2001  Owen Taylor  <otaylor@redhat.com>
545
546         * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
547         Close comment.
548
549 2001-12-07  Matthias Clasen  <matthiasc@poet.de>
550
551         * gtk/gtkstyle.h: Typo fixes.
552
553         * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
554
555         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
556
557 Fri Dec  7 16:05:22 2001  Owen Taylor  <otaylor@redhat.com>
558
559         * modules/input/gtkimcontextxim.c: Display the XIM
560         status callbacks with a popup window. (Patch from
561         HideToshi Tajima, #50628, somewhat modified.)
562
563 Fri Dec  7 12:07:15 2001  Tim Janik  <timj@gtk.org>
564
565         * gtk/Makefile.am: each source generation rule needs to use its own
566         temporary file, to avoid clashes for parallel builds. fixed rules
567         for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
568
569 2001-12-07  Havoc Pennington  <hp@pobox.com>
570
571         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
572         "cursors that are actually useful" in gdk_cursor_new() docs
573
574 Thu Dec  6 23:09:21 2001  Owen Taylor  <otaylor@redhat.com>
575
576         * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
577         in computing the size of the second child.
578
579 Thu Dec  6 16:50:17 2001  Owen Taylor  <otaylor@redhat.com>
580
581         * gtk/gtkrange.c: Make button 1 clicks on the trough
582         do pages, button 3 steps. (Patch from Hans Breuer
583         #63735)
584
585 2001-12-06  Matthias Clasen  <matthiasc@poet.de>
586
587         * gtk/gtklabel.c: Fix docs. (#66383)
588
589         * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. 
590         (#66278, #66280)
591         
592         * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
593         gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
594
595         * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
596         Don't emit a g_warning() about being deprecated. (#66208)       
597
598         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
599
600         * gtk/gtkcontainer.c: Doc fixes.
601         
602         * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
603
604         * gtk/gtkstyle.c (gtk_style_attach): Add docs.
605
606 2001-12-05  Sven Neumann  <sven@gimp.org>
607
608         * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
609
610         * gtk/queryimmodules.c: g_dir_read_name() returns const.
611
612 Tue Dec  4 21:46:13 2001  HideToshi Tajima  <hidetoshi.tajima@sun.com>
613
614         * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
615         #66225
616         
617 2001-12-04  Manish Singh  <yosh@gimp.org>
618
619         * gtk/gtkmain.c
620         * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
621         a gpointer.
622
623         * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
624         correction to docs.
625
626         * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
627
628 2001-12-04  Havoc Pennington  <hp@redhat.com>
629
630         * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
631         g_assert_not_reached() that was bogus, since we demand-create the
632         tag info. reported by Chris Phelps
633
634         Jump through assorted hoops to fix bug from Chris Phelps where 
635         removing tags from the table resulted in btree trying to 
636         access tag->table
637         
638         * gtk/gtktextbuffer.c: set up mechanics of adding/removing 
639         ourselves to the tag table
640
641         * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer) 
642         (_gtk_text_tag_table_remove_buffer): private cruft to 
643         let us notify buffer of disappearing tags
644
645         * gtk/gtktexttag.h: remove BTreeNode typedef from this public
646         header, put it in tagprivate    
647
648         * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
649         tag_removed; it's emitted too late.
650         (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
651         this
652
653         Padding for ABI-compat expansion
654         
655         * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
656         (struct _GtkTextAppearance): one pad in here too
657
658         * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
659
660         * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
661         since action signals etc. seem pretty likely
662
663         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
664
665         * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
666
667         * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
668
669 2001-12-04  Matthias Clasen  <matthiasc@poet.de>
670
671         * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
672
673         * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
674
675         * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
676
677 Tue Dec  4 18:51:44 2001  Jonathan Blandford  <jrb@redhat.com>
678
679         * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
680         #62084.
681
682 Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
683
684         * demos/gtk-demo/main.c: (create_tree): Minor fix.
685
686         * docs/tree-column-sizing.txt: Update
687
688         * gtk/gtkrbtree.[ch]: Massive work to support validation.
689
690         * gtk/gtktreemodel.c: Doc fixes.
691
692         * gtk/gtktreeview.c: Incremental reflow added.
693         * gtk/gtktreeviewcolumn.c: ditto
694         * gtk/gtktreeviewcolumn.h: ditto
695
696 2001-12-04  Havoc Pennington  <hp@redhat.com>
697         
698         * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
699         "invisible" property, #65999
700
701 2001-12-04  Matt Wilson  <msw@redhat.com>
702
703         * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
704
705 Tue Dec  4 12:16:31 2001  Owen Taylor  <otaylor@redhat.com>
706
707         * gtk/gtksettings.c (gtk_settings_set_property_value):
708         Simplify, make more efficient and fix memory leak
709         when turning quark into a string. (#66103, HideToshi
710         Tajima)
711
712         * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
713         init() and unref priv->tooltips in destroy rather
714         than calling gtk_object_destroy() which has no
715         effect on memory management. (#66104, HideToshi
716         Tajima)
717
718         * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
719         so we free the when the object is freed. (Fixes memory
720         leak, #66096, HideToshi Tajima)
721
722         * gdk/gdkevents.c (gdk_synthesize_window_state): Use 
723         a full GdkEvent structure to avoid reads of uninitialized/
724         invalid memory in gdk_event_put() (#65877, patch
725         from Hidetoshi Tajima)
726
727 Tue Dec  4 11:06:54 2001  Owen Taylor  <otaylor@redhat.com>
728
729         * gtk/gtkmenuitem.c: Revert my last mistaken change - 
730         toggle-size-request doesn't take a requisition.
731
732         * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
733         reference to marshaler that no longer exists.
734
735 Mon Dec  3 16:39:17 2001  Owen Taylor  <otaylor@redhat.com>
736
737         Patch from Bill Haneman (with many modifications) to make
738         the focus color work on dark themes and to make the
739         focus line width configurable. (#61079, #63074)
740
741         * gtk/gtkwidget.c: Add style properties, 
742         ::focus-widget, ::focus-line-width, and ::focus-padding.
743
744         * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a 
745         state argument as well so we can use fg[STATE] to
746         draw instead of always drawing with black. 
747         Cange paint_focus() to respect GtkWidget::focus-width
748         and GtkWidget::focus-line-pattern. Fix continuity
749         problem where the default 1-1 stipple had a blob
750         in one corner and a gap in the other. Change the
751         interpretation of x/y/width/height to be the bounding
752         box of the focus rect instead of the rectangle
753         passed to gdk_draw_rectangle.
754
755         * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c 
756         gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c 
757         gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width 
758         and ::focus-line-padding.
759
760         * gtk/gtkentry.c: Handle :;focus-width property; cleanup
761         and remove duplicated code; fix drawing of focus rectangle
762         when interior-focus = FALSE. (#63072, #63073)
763
764         * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
765         gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
766         Range and TreeViewColumn will need more extensive fixing.
767
768         * gtk/gtkcolorsel.c: Honor focus line attributes when
769         drawing the focus on the color swatches. (#63071)
770
771         * gtk/gtkhsv.c: Honor focus line attributes when
772         drawing the focus for the ring and triangle.
773
774         * docs/widget_geometry.txt: Start at documenting how 
775         various widgets are drawn.
776
777         * gtk/gtkbutton.c (_gtk_button_paint): Export 
778         _gtk_button_paint() librarywide, so we don't have 
779         duplicate a bunch of code in gtktogglebutton.c.
780
781         * gtk/gtktogglebutton.c: Use _gtk_button_paint().
782
783 Mon Dec  3 21:04:13 2001  Jonathan Blandford  <jrb@redhat.com>
784
785         * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
786         NONE:POINTER.
787
788 2001-12-03  Alex Larsson  <alexl@redhat.com>
789
790         * gtk/gtkaccellabel.c:
791         * gtk/gtkarrow.c:
792         * gtk/gtkcolorsel.c:
793         * gtk/gtkcontainer.c:
794         * gtk/gtklabel.c:
795         * gtk/gtktextview.c:
796         * gtk/gtktogglebutton.c:
797         * gtk/gtktreeview.c:
798         * gtk/gtkwindow.c:
799         Return FALSE from expose handlers.
800
801 Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
802
803         * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
804         we use pointers, we should free the previous pointer first (if
805         it exists), before we set a new pointer. (#64726)
806
807         * gtk/gtktreeprivate.h: get rid of cursor_drag
808
809         * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check     
810         for cursor_drag
811         (gtk_tree_view_bin_expose): don't directly return in the while
812         loop
813         (gtk_tree_view_class_init): indentend expanders by default
814         (gtk_tree_view_header_focus): only give the button focus
815         if it's clickable, visible and the column is reorderable
816         (#65539)
817
818         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
819         create and free cursor
820
821 Mon Dec  3 10:23:07 2001  Owen Taylor  <otaylor@redhat.com>
822
823         * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
824         some bugs with size requisition. (From Bill Haneman)
825
826         * gtk/gtkcalendar.c: Draw headers and selection in 
827         base/text[SELECTED] instead of fg/bg[SELECTED].
828
829         * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
830         code and formatting.
831
832 2001-12-03  Havoc Pennington  <hp@pobox.com>
833
834         * gtk/gtktextview.c (set_window_height): 
835         (set_window_width): Hmm, setter functions normally assign the new
836         value to the object field. Reported by Chris Phelps.
837
838 2001-11-30  jacob berkman  <jacob@ximian.com>
839
840         * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
841         signal id to 0 after we disconnect from it
842
843 2001-11-30  Matthias Clasen  <matthiasc@poet.de>
844
845         * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
846         gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
847         gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
848         gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
849
850         * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not 
851         GTK_DISABLE_DEPRECATED.
852
853         * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
854         gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
855
856 Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
857
858         * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
859         move/resize code, removing various bad, non-functional
860         hacks. (Fixes #65048, reported by Damon Chaplin.)
861
862 Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
863
864         * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix 
865         bad match error when target drawable is not the 
866         same depth as the root window. (#65841)
867
868         * HACKING: Update.
869
870 2001-11-29  Matthias Clasen  <matthiasc@poet.de>
871
872         * gdk/gdkwindow.c: Typo fix.
873
874 Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
875
876         * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
877         empty menu items to behave like insensitive items (#59456)
878
879         * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
880         next item if the first item in the menu is a tear off item
881         (#59456-2, suggestion by Matthias Clasen)
882
883         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
884         (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
885         (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
886         (gtk_real_menu_shell_activate_current): add check, so empty
887         menu items behave like insensitive items (#59456)
888         
889         * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
890         the checks more readable ...
891         
892         * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
893         (gtk_menu_shell_button_release): causes the menu to dropdown if the
894         caption is clicked again (#64977)
895
896 2001-11-29  Havoc Pennington  <hp@redhat.com>
897
898         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
899         assertion here that we were at the end iterator was not correct;
900         change code to move us to the end iterator. bug #65731
901
902 Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
903
904         * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
905         improper use of g_locale_to_utf8() to convert from
906         latin-1, and do it the easy way by building the string
907         correctly in the first place.
908
909 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
910
911         * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
912         Convert atoms to and from atoms for properties of type XA_ATOM.
913         (#65555, patch from Hidetoshi Tajima)
914
915 Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
916
917         * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter 
918         to avoid problems with Objective C.
919
920 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
921         
922         * gtk/gtkaccelmap.c: Typo fixes. (#65607)
923
924         * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
925         Fix docs. (#65505)
926
927         * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
928
929 Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
930
931         * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
932         accounting of menu->tearoff_scrollbar width to here
933         and make sure we have the correct requisition.
934
935         * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
936         by using gtk_window_move().
937
938         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
939         the requisition to be updated by calling
940         gtk_widget_size_request() (#65440)
941
942         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate): 
943         queue resize before calling gtk_menu_set_tearoff_state().
944
945 Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
946
947         * demos/gtk-demo/editable_cells.c: fix typo
948
949         * demos/gtk-demo/list_store.c (add_columns): remove call to
950         gtk_tree_view_column_set_clickable which didn't make sense
951
952 2001-11-28  Havoc Pennington  <hp@redhat.com>
953
954         * gtk/gtktextview.c (gtk_text_view_paint): put the warning
955         explaining the validation error in front of the G_BREAKPOINT
956
957         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
958         process updates with include_children = FALSE instead of TRUE, so
959         we redraw the range only, not the whole darn window.  Making
960         GtkRange a NO_WINDOW widget had weirdly caused the text widget
961         Trace/breakpoint trap bug to become much easier to trigger.
962
963 Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
964
965         * gdk/Makefile.am (gdk_public_h_sources): Remove reference
966         to gdkcursors.h.
967
968 2001-11-28  Matthias Clasen  <matthiasc@poet.de>
969
970         * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
971
972         * gdk/gdkcursor.h: Directly include the contents
973         of gdkcursors.h in the GdkCursorType enum.
974
975         * gdk/gdkcursors.h: Deleted.
976
977         * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add 
978         header boilerplate.
979
980         * gdk/Makefile.am: Remove the X-derived-headers rule.
981
982 Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
983
984         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
985         Notify on the ::active property _here_, not in
986         gtk_check_menu_item_set_active.
987
988 Mon Nov 26 19:11:18 2001  Jonathan Blandford  <jrb@redhat.com>
989
990         * gtk/gtkcellrendererpixbuf.c
991         (gtk_cell_renderer_pixbuf_class_init): add 2 properties
992         (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
993
994 Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
995
996         * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
997         comment about what is going on in this file.
998
999         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
1000         x/y problem.
1001
1002 Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
1003
1004         * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size): 
1005         Calculate size based on the _child_ of the menu item,
1006         not the menuitem. (#65005, Damon Chaplin)
1007
1008         * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
1009         some extra vertical padding to the label widget ... restores
1010         GTK+-1.2 spacing. (#65085, Damon Chaplin.)
1011
1012 2001-11-26  Tor Lillqvist  <tml@iki.fi>
1013
1014         * demos/pixbuf-demo.c
1015         * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
1016
1017         * demos/gtk-demo/main.c (read_line): No flockfile() or
1018         getc_unlocked() on Win32.
1019
1020 2001-11-25  Tor Lillqvist  <tml@iki.fi>
1021
1022         * configure.in
1023         * acconfig.h: As we now use GDir, no need to check for dirent.h.
1024
1025 Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
1026
1027         * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
1028         when finished (#65266)
1029
1030 Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
1031
1032         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
1033         data after we set the property. (#65264)
1034
1035 Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
1036
1037         * gtk/gtkbutton.c: add destroy method so label_text gets freed
1038         if it has been allocated (#65268)
1039
1040 Sat Nov 24 13:39:51 2001  Manish Singh  <yosh@gimp.org>
1041
1042         * gdk/linux-fb/gdkdrawable-fb2.c
1043         * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
1044
1045         * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
1046
1047         * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
1048         set_family
1049         
1050         * gdk/linux-fb/gdkfbswitch.c: minor cleanups
1051
1052 Sat Nov 24 22:05:27 2001  Kristian Rietveld  <kristian@planet.nl>
1053
1054         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
1055         deactivate menu when menu_item isn't sensitive (#61389)
1056
1057 Sat Nov 24 15:35:26 2001  Kristian Rietveld  <kristian@planet.nl>
1058
1059         * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
1060         we return (in case of a failure here)
1061
1062 Fri Nov 23 19:22:50 2001  Owen Taylor  <otaylor@redhat.com>
1063
1064         * gtk/gtknotebook.c: Handle events in windows other
1065         than widget->event_window properly. (#65079, reported
1066         by Damon Chaplin)
1067
1068         * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
1069
1070 Fri Nov 23 18:57:46 2001  Owen Taylor  <otaylor@redhat.com>
1071
1072         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
1073         the image at the top. (#65020, request from Seth Nickell)
1074
1075 Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
1076
1077         * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
1078         arithmetic that was resulting in rows being drawn too low.
1079         (#65001, reported by Damon Chaplin)
1080
1081 Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
1082
1083         * gtk/gtkrange.c (gtk_range_button_press): Offset 
1084         invalidated range correctly.
1085
1086         * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling 
1087         of title window. (#65001, reported by Damon Chaplin)
1088
1089         * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
1090         horrible hack with use of ::event_after.
1091
1092 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
1093
1094         * Version 1.3.11
1095
1096         * configure.in (ATK_REQUIRED_VERSION): Require
1097         GLib-1.3.11, Pango-0.22, ATK-0.7.
1098
1099         * tests/prop-editor.c (property_widget): Restore
1100         to working as well as it did before.
1101
1102         * gtk/gtklistitem.h: Mark deprecated since it is
1103         an integral part of GtkList.
1104
1105         * demos/gtk-demo/demo-common.h: New header file,
1106         for a common functions not important to the meat
1107         of the demos.
1108         
1109         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
1110         function to search for a file used by the demo.
1111
1112         * demos/*.c: Use demo_find_file.
1113
1114 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
1115
1116         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
1117         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
1118         fixes already mentioned in ChangeLog entry on 2001-11-14.
1119
1120         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
1121
1122 2001-11-23  Hans Breuer  <hans@breuer.org>
1123
1124         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
1125         reflect Pango API change
1126
1127         * gtk/gtk.def : updated externals
1128
1129         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
1130         g_return_val_if_fail() to avoid 'function must return a value'
1131
1132         * gtk/gtkrc.c : added spaces to fix small coding style issues
1133         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
1134         'static correctness'
1135
1136         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
1137         because they only can be build on win32 after applying my patch
1138
1139 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
1140
1141         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
1142         children, in order for the input pnly window to stay *above*
1143         children.
1144
1145 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
1146
1147         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
1148         type walks againts G_TYPE_FUNDAMENTAL_MAX.
1149         
1150         * tests/prop-editor.c: disable type hackery.
1151
1152 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
1153
1154         * gdk/gdkimage.c (gdk_image_get): Fix problem with
1155         lost parameter.
1156
1157 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
1158
1159         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
1160         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
1161         trailing commas in enum declarations.
1162
1163 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
1164
1165         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
1166         interface, binary age 0.
1167
1168         * NEWS: Updates
1169
1170         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
1171         fixes in docs.
1172
1173         * gtk/gtkmain.h: Remove unused and misnamespaced
1174         get_gtk_win32_directory() prototype.
1175
1176         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
1177         to match header.
1178
1179         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
1180         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
1181         to match docs.
1182
1183         * gdk/gdkevents.c (gdk_event_get_coords)
1184           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
1185           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
1186         Fix parameter names in docs.
1187         
1188         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
1189         (#64961, Akira Tagoh)
1190
1191 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
1192
1193         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
1194
1195         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
1196
1197         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
1198
1199         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
1200         back to gtk_accel_groups_from_object(), change @acceleratable
1201         parameter to gtk_accel_groups_activate() accordingly.
1202
1203         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
1204         left-over comment about quark return.
1205
1206         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
1207
1208         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
1209         (Patch from Matt Wilson)
1210
1211         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
1212         object is finalized.
1213
1214 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
1215
1216         * applied patch from owen to get rid of accel map notifiers.
1217         changed things to fix reentrancy and API as discussed on gtk-devel.
1218
1219         * gtk/gtkaccelgroup.[hc]:
1220         (gtk_accel_group_finalize): unregister this accel group from all
1221         accel map paths.
1222         (accel_closure_invalidate): handle invalidation of closures by
1223         disconnecting their accelerators.
1224         (quick_accel_add): move closure connection and changed notification
1225         into this function to reduce code duplication. don't emit change
1226         notification on closurers without accelerators.
1227         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
1228         for a GtkAccelGroupEntry.
1229         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
1230         (gtk_accel_group_connect_by_path): new function to add accelerators
1231         with an accel path.
1232         (gtk_accel_group_disconnect_closure): new function, disconnect a
1233         closure from of an accel group.
1234         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
1235         accel_mods pair and remove them.
1236         (_gtk_accel_group_reconnect): new function that basically does
1237         gtk_accel_group_disconnect_closure() and
1238         gtk_accel_group_connect_by_path() once an accel path changed.
1239         (gtk_accel_groups_disconnect_closure): remove this, there's
1240         gtk_accel_group_disconnect_closure().
1241         
1242         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
1243         nuke notifiers.
1244         (_gtk_accel_path_is_valid): make this non-static for
1245         gtkwidget.c and gtkaccelgroup.c assertions.
1246         (gtk_accel_map_add_notifer): removed this function.
1247         (gtk_accel_map_remove_notifer): same.
1248         (_gtk_accel_map_add_group):
1249         (_gtk_accel_map_remove_group): (un-)register accel groups, with
1250         accel paths for correct propagation.
1251         (gtk_accel_map_add_entry): return void.
1252         (gtk_accel_map_lookup): return gboolean instead of GQuark.
1253         
1254         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
1255         set accel_path on widgets.
1256         
1257         * gtk/gtkwidget.[hc]:
1258         (accel_path_changed): got rid of this, changes are handled by
1259         accel maps internally now.
1260         (_gtk_widget_set_accel_path): get things to work without notifiers.
1261         (gtk_widget_list_accel_closures): list accel closures of a widget.
1262         
1263         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
1264
1265 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
1266
1267         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
1268
1269 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
1270
1271         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
1272         replace gboolean free_last in the function parameters with
1273         gint depth. Changes to reflect new situation.
1274
1275         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
1276         replace gboolean free_last, with gint depth, add gint current_depth.
1277         Changes to reflect new situation.
1278
1279         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
1280         to reflect new situation
1281
1282         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
1283
1284 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
1285
1286         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
1287         where notebook gap was double shifted by allocation.x/y
1288
1289         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
1290         to unmap children.
1291
1292 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
1293
1294         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
1295         allocation to be relative to paned->allocation, now
1296         that this is a NO_WINDOW widget.
1297         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
1298
1299         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
1300         needs to be a boxed property.
1301
1302 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
1303
1304         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
1305         Use the widget's state when drawing the indicator, as
1306         in GtkCheckButton. This gives us color changes for
1307         un-prelighted checkbuttons. (#63308, Matt Wilson)
1308
1309 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
1310
1311         (Fixes related to #64428, Michael Meeks)
1312
1313         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
1314         widget, so it gets mapped again properly when we
1315         add to a parent.
1316
1317         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1318         plug->socket_window. 
1319
1320         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
1321         socket_window to NULL, not FALSE.
1322
1323         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
1324         socket->same_app to TRUE. (#64612)
1325
1326 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
1327
1328         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
1329         gtk_fixed_set/get_has_window() to remove criticism
1330         about GTK_WIDGET_SET_FLAGS() hacks.
1331
1332 2001-11-19  Michael Natterer  <mitch@gimp.org>
1333
1334         * gtk/gtknotebook.c: show notebook->event_window with
1335         gdk_window_show_unraised(), so it doesn't catch the events which
1336         should go to the tab widgets first.
1337
1338 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
1339
1340         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
1341         "resizable" property, to get rid of the
1342         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
1343         (gtk_tree_view_column_set_resizable): New function to set resizable.
1344         (gtk_tree_view_column_set_resizable): getter.
1345
1346         * tests/testtreecolumns.c (add_clicked): modify for above change.
1347
1348         * Makefile.am (install-data-hook): remove old .pc files before
1349         installing the new one.  We used to symlink this, and it will
1350         break old installs.
1351
1352 2001-11-19  Havoc Pennington  <hp@pobox.com>
1353
1354         * tests/testtext.c (fill_example_buffer): put in a test for
1355         negative indentation values
1356
1357 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
1358
1359         * gtk/gtklabel.c (gtk_label_init): Change default for
1360         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
1361         labels are most often wrapped labels, this gives better
1362         compatibility with GTK+-1.2, where justification was
1363         ignored for wrapped labesl and is a more sensible
1364         default in any case. (#64489)
1365
1366         * gtk/gtklabel.c (gtk_label_class_init): Fix default
1367         for wrap property to FALSE.
1368
1369 2001-11-19  jacob berkman  <jacob@ximian.com>
1370
1371         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
1372
1373 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
1374
1375         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
1376         RevertToParent, not RevertToNone. (#64613, 
1377         Matthias Clasen)
1378
1379 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
1380
1381         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
1382         and label_yalign need to be float properties to
1383         correspond to GTK+-1.2, to gtk_frame_set_label_align,
1384         and to the types of the xalign and yalign properties of GtkMisc.
1385         (#63484, Vitaly Tishkov)
1386
1387 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
1388
1389         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
1390         of plug_added vfunc. (#64408, Jeff Franks)
1391
1392 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
1393
1394         * configure.in (deps): Undef HAVE_STDLIB_H before
1395         checking for jpeg, because jconfig.h has this
1396         in it too (%#$@!). Fix from Matthias Clasen, #64500.
1397
1398 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
1399
1400         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
1401         memory leak when retrieving atom names. (Michael Meeks,
1402         #64508)
1403
1404 2001-11-18  Alex Larsson  <alexl@redhat.com>
1405
1406         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
1407         Update to new Pango API.
1408         
1409 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
1410
1411         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
1412         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
1413         GTK_OBJECT_DESTROYED() check macro.
1414
1415         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
1416         instances of GTK_OBJECT_DESTROYED() that weren't
1417         needed any more.
1418
1419         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
1420         for a connection to ::destroy.
1421
1422 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
1423
1424         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
1425         have been since the beginning, but as special hack,
1426         allow clearing the NO_WINDOW flag to get a window widget.
1427
1428 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
1429
1430         * gtk/gtktreestore.c: return TRUE when value changed, so
1431         row_changed is being emitted
1432
1433 2001-11-18  Hans Breuer  <hans@breuer.org>
1434
1435         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
1436         no label without op, even if it's a no-op.
1437
1438         * gtk/gtk.def :
1439         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
1440
1441         * config.h.win32.in : remove definition of HAVE_DIRENT_H
1442         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
1443         required anymore, replace it.
1444         * gtk/queryimmodules.c : DIR -> GDir replacement, also
1445         getcwd() -> g_get_current_dir()
1446
1447         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
1448         Even 'noisy laugh' scolling appears to work, though I still can't
1449         claim to have fully understood what it is supposed to do ...
1450
1451 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
1452
1453         * gtk/gtkenums.h: Include glib-object.h instead of
1454         gobject/gsignal.h
1455
1456         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
1457           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
1458         argument to the window_at_pointer() field of
1459         GdkPointerHooks. (Patch from Erwann Chenede)
1460
1461         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
1462         to 6 pointers.
1463
1464 2001-11-17  Matt Wilson  <msw@redhat.com>
1465
1466         * gtk/gtkenums.h: must include glib-object.h only
1467
1468 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
1469
1470         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
1471         key bindings in order of visibility - mnemonics, then 
1472         accelerators, then send key to the focus widget, then
1473         bindings on the GtkWindow.
1474
1475         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
1476         Removed the xoffset, yoffset fields of GtkLayout which were
1477         identically zero for compat with 1.2, but were no longer 
1478         compatible with all uses of these fields in 1.2.
1479
1480         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
1481         unused variable.
1482
1483 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
1484
1485         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
1486         We no longer need to create the signals here ... they
1487         come from the interface.
1488
1489         * gtk/maketypes.awk: Use GType, not GtkType in output.
1490
1491         * gtk/gtktypeutils.h: Mark virtually all of this
1492         file deprecated.
1493
1494         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
1495         the only use of this function is the GtkArg using
1496         GtkCallbackMarshal, since destroy notification is
1497         silly here.
1498
1499 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
1500
1501         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
1502         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
1503         only for compatibility with GTK+-1.2; and deprecate it; 
1504         put all marshalers we actually use into gtkmarshalers.list 
1505         and use the _gtk_marshal_ prefix for these marshalers.
1506
1507 2001-11-17  Murray Cumming  <murrayc@usa.net>
1508
1509         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
1510         The first parameters of the signals are now registered as
1511         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
1512         
1513 2001-11-17  Tor Lillqvist  <tml@iki.fi>
1514
1515         * gtk-zip.sh.in: Build separate runtime and developer
1516         packages.
1517
1518         * gtk/gtk.def: Reflect recent accelerator-related changes.
1519
1520 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
1521
1522         * gtk/gtkwindow.c (gtk_window_set_default): Move 
1523         notification of "has_default" to here, so it
1524         is safe to call gtk_window_set_default() instead
1525         of gtk_widget_grab_default().
1526
1527         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
1528         gtk_widget_grab_focus(), which then calls 
1529         _gtk_widget_internal_set_focus(). This makes 
1530         gtk_window_set_focus() a safe way of both setting
1531         and unsetting the focus widget.
1532
1533         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
1534         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
1535         to find the toplevel.
1536
1537         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
1538         from the "internal functions" section.
1539
1540 2001-11-16  jacob berkman  <jacob@ximian.com>
1541
1542         * tests/testgtk.c (create_radio_buttons): add some no-indicator
1543         radio buttons
1544
1545         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
1546         initially active, also initially be depressed
1547         (gtk_radio_button_clicked): also update our depressed state
1548
1549 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
1550
1551         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
1552         key press events not just to focus/window but also to
1553         intermediate widgets.
1554
1555         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
1556         to switch pages. (Needs some work on handling focus
1557         when switching pages.)
1558
1559 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
1560
1561         * gtk/gtknotebook.c: Fix child allocations to be relative to 
1562         widget position and some drawing bugs.
1563
1564         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
1565         with reading uninitialized variable.
1566
1567 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
1568
1569         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
1570         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
1571         NO_WINDOW widgets.
1572
1573         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
1574         cleanup.
1575
1576         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
1577         we are drawing in a window when drawing the paned handle.
1578
1579 2001-11-16  Sven Neumann  <sven@gimp.org>
1580
1581         * demos/gtk-demo/appwindow.c
1582         * demos/gtk-demo/menus.c: reduce compiler warnings
1583
1584 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
1585
1586         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
1587         unused callback to make things compile with 
1588         gtk_tree_view_path_at_pos_change().
1589
1590 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
1591
1592         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
1593
1594 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
1595
1596         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
1597  
1598 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
1599
1600         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
1601         to get a GdkWindow to compare event->window to.
1602
1603         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
1604         the signal for lateral motion too, #64361
1605
1606         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
1607         arg as it is useless, #64137
1608
1609 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
1610
1611         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
1612
1613 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
1614  
1615         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
1616         gdk_window_invalidate_maybe_recurse() for recursion.
1617         (Soeren Sandmann)
1618
1619         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
1620  
1621         * gtk/gtkcontainer.c (gtk_container_expose): Call
1622         gtk_container_forall() not _foreach() to propagate,
1623         since we need to propagate exposes to internal children
1624         as well.
1625
1626         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
1627         Remove the restriction of only being able to call these
1628         on window widgets, since we have lots of NO_WINDOW widgets
1629         with windows now; for add events, recurse over the children
1630         of widget->window to find one owned by the widget.
1631
1632         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
1633         window to catch events.
1634
1635         * gtk/gtktogglebutton.[ch]: Remove the code for switching
1636         between NO_WINDOW and WINDOW widgets based on the mode.
1637
1638         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
1639         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
1640
1641         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
1642
1643         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
1644         change for range.
1645
1646         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
1647  
1648         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
1649
1650 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
1651
1652         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
1653         "message_type" and "buttons" CONSTRUCT properties. (#64069)
1654
1655         * tests/testsocket.c: Expand tests to add a "local passive
1656         child" (Test case for #64428)
1657
1658 2001-11-14  jacob berkman  <jacob@ximian.com>
1659
1660         * gtk/gtkgamma.c (button_clicked_callback): create the label with
1661         a mnemonic
1662
1663 2001-11-15  Sven Neumann  <sven@gimp.org>
1664
1665         * tests/testgtk.c: make it compile without warnings.
1666
1667 2001-11-14  Alex Larsson  <alexl@redhat.com>
1668
1669         * gtk/gtklabel.c:
1670         Don't recalculate the layout on each gkt_label_ensure_layout () for
1671         wrapped labels.
1672
1673 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
1674
1675         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
1676         the currently selected column when we get the column, #64380
1677
1678         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
1679         to cancel CellRendererText editting, #63613
1680
1681         * gtk/gtkcellrenderertext.c: ditto
1682
1683         * gtk/gtkcellrenderertext.h: formatting changes
1684
1685 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
1686
1687         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
1688
1689         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
1690
1691         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
1692
1693         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
1694
1695         * gtk/gtklabel.c: Documentation fixes (#64452)
1696
1697 2001-11-14  Daniel Egger  <degger@fhm.edu>
1698
1699         * gdk-pixbuf/io-xpm.c: 
1700         (xpm_skip_whitespaces): Remove unused static function.
1701         (xpm_skip_string): Dito.        
1702         (xpm_extract_color): Declare const variable const to avoid warnings. 
1703
1704         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
1705         
1706         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
1707         
1708         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
1709         a long.
1710
1711 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
1712
1713         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
1714         out accidental commit of debugging timing code.
1715
1716 2001-11-14  Havoc Pennington  <hp@redhat.com>
1717
1718         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
1719         it doesn't move to a new line each time you press it
1720
1721         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
1722         return value, #62987
1723
1724 2001-11-14  Havoc Pennington  <hp@redhat.com>
1725
1726         * tests/testtextbuffer.c (main): bulk of the tests were commented
1727         out, oops.
1728
1729         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
1730         function work, should resolve #63426
1731         (gtk_text_iter_ends_line): return TRUE for the end iterator
1732
1733         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
1734         a couple things that might get cached in here.
1735
1736 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
1737
1738         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
1739         "model" construct property for language bindings.
1740
1741         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
1742         function to let you set the column types of a GtkTreeStore for
1743         language bindings.
1744
1745         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
1746
1747 2001-11-13  Havoc Pennington  <hp@redhat.com>
1748
1749         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
1750         including reference to bugzilla bug about how we should have 
1751         a better way of positioning children
1752
1753         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
1754
1755         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
1756         size to side rects if they don't exist, #63438
1757
1758 2001-11-13  Havoc Pennington  <hp@redhat.com>
1759
1760         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
1761         properly replace selection with Return or Tab
1762
1763         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
1764         that didn't locate the end of the line correctly, should fix #63800
1765
1766 2001-11-13  Havoc Pennington  <hp@redhat.com>
1767
1768         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
1769         to requisition, request non-anchored children
1770         (gtk_text_view_size_allocate): handle border width, allocate
1771         non-anchored children
1772         (text_view_child_new_window): set the child as object data
1773         (gtk_text_view_move_child): allow children at negative
1774         coordinates, no reason why not
1775         (gtk_text_view_forall): make it copy the list of children before
1776         walking it, to avoid reentrancy issues  
1777         (gtk_text_view_move_child): short-circuit if position is unchanged
1778         (changed_handler): only queue_resize if requisition has changed
1779         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
1780         a better job of invalidation ourselves
1781
1782         * tests/testtext.c: add tests for the fixed-position children
1783
1784 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
1785
1786         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
1787         with gdk threads macro.
1788
1789 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
1790
1791         * gtk/maketypes.awk: fix type utils generation on unix.
1792
1793         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
1794         registry.
1795
1796         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
1797         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
1798         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
1799         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
1800         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
1801         introduced ::accel_changed signal for change notification, and
1802         gtk_accel_group_connect/disconnect to connect closures to accel groups.
1803         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
1804         functions.
1805         deprecated gtk_accel_group_ref/unref.
1806
1807         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
1808         to accel group changed notification and basically operate on closures.
1809         removed gtk_accel_label_get_accel_object and
1810         gtk_accel_label_set_accel_object.
1811         introduced gtk_accel_label_set_accel_closure, and for convenience,
1812         gtk_accel_label_set_accel_widget.
1813
1814         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
1815         which mostly moved into gtkaccelmap.[hc].
1816         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
1817         and gtk_item_factory_print_func.
1818
1819         * gtk/gtkmain.c: call _gtk_accel_map_init().
1820
1821         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
1822         that associates an accelerator path with menu items, through which
1823         persistent accelerator settings on menu items are enabled.
1824
1825         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
1826         paths of menu item can be default constructed to allow installation
1827         of accelerators on menu items that don't come with an accelerator
1828         binding by default.
1829
1830         * gtk/gtksettings.c: fix STRING type rc settings by special casing
1831         them appropriately in the parser.
1832
1833         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
1834         gtk_signal_newv().
1835
1836         * gtk/gtkwidget.[hc]: accelerator API revamp.
1837         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
1838         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
1839         gtk_widget_(un)lock_accelerators.
1840         accelerators maintained through gtk_widget_add/remove_accelerator()
1841         are not runtime changable now, the correct sequence to setup a
1842         widget for runtime changable accelerators is now:
1843           gtk_accel_map_add_entry(accel_path, key, mods);
1844           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
1845
1846         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
1847         group changes (as well as mnemonic changes) through the new signal
1848         ::accels_changed.
1849
1850 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
1851
1852         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
1853         GString->string conversions.
1854
1855 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
1856
1857         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
1858         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
1859
1860 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
1861
1862         * gtk/gtktreeview.c: Documentation fixes. (#64377)
1863         
1864         * gtk/gtktreestore.c: Documentation fixes. (#64376)
1865
1866 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
1867
1868         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
1869         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
1870         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
1871         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
1872
1873 2001-11-10  Hans Breuer  <hans@breuer.org>
1874
1875         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
1876         we know what we are talking about when asked for MINMAXINFO.
1877         Also some cleaning for !HAVE_DIMM_H etc.
1878
1879 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
1880
1881         * gtk/gtktreeviewcolumn.c: Fix docs for 
1882         gtk_tree_view_column_set_sort_order. (#62647)
1883         
1884         * gtk/gtkcontainer.c: Fix docs for 
1885         gtk_container_set_border_width. (#64139)
1886
1887         * gtk/gtkcolorsel.c: Documentation fixes.
1888
1889 2001-11-10  Hans Breuer  <hans@breuer.org>
1890
1891         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
1892         don't have strcasecmp()
1893
1894         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
1895         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
1896         code duplication wrap it in its own function and use it in 
1897         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
1898
1899         * gdk/win32/gdkdrawable-win32.c : implement the finalize
1900         method like the X11 version does, allow to set_colormap NULL
1901         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
1902         set_colormap, also some adaption to X11 version :
1903         (gdk_window_hide) call _gdk_window_clear_update_area
1904         (gdk_window_reparent) call _gdk_window_init_position
1905
1906         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
1907         call gdk_window_resize() after all hints are set, because the
1908         window resizing process (WM_GETMINMAXINFO) takes all of them into 
1909         account
1910
1911         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
1912
1913         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
1914         sizeof (GdkVisualPrivate)
1915
1916         * gdk/gdk.def gtk/gtk.def : upated externals
1917
1918         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
1919           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
1920         from now on use make.msc from $(TOP)/glib/build/win32
1921
1922         * gtk/stock-icons/makefile.msc : add stock_missing_image
1923
1924 2001-11-08  Tor Lillqvist  <tml@iki.fi>
1925
1926         * README.win32: Add headers. Add section about ActiveIMM.
1927
1928         * configure.in: Add --with-ie55 flag to specify the location of
1929         the "IE55 libs and headers" package downloadable from Microsoft,
1930         which contains, among other things, the Active IMM header dimm.h
1931         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
1932         Require GLib 1.3.10.
1933         
1934         * config.h.win32.in: New version, produced by merging two
1935         configure-generated ones (for gcc and MSVC). Hopefully #defines
1936         the same flags that the previous, hand-written one, did.
1937
1938         * gdk/Makefile.am
1939         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
1940
1941         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
1942         stuff. Remove unused GdkIOClosure.
1943
1944         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
1945         available).
1946
1947         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
1948         for uuid.lib. (Does it really have to be this hard to use an
1949         existing library with libtool? Probably I am missing something.)
1950
1951 2001-11-08  Darin Adler  <darin@bentspoon.com>
1952
1953         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
1954         typo where it says LEFT instead of CENTER.
1955
1956 2001-11-07  Darin Adler  <darin@bentspoon.com>
1957
1958         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
1959         (gtk_dialog_set_default_response): Add g_return_if_fail.
1960
1961 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
1962
1963         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
1964         Add row_draggable() vfunc, and wrapper function.
1965
1966         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
1967         row_drop_possible take a GtkSelectionData, rather than
1968         model/row pair.
1969
1970         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
1971         new DND interfaces.
1972
1973         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
1974         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
1975         and rename them to enable_model_drag_source/dest.
1976
1977         * gtk/treeviewcolumn.c: Add DND of columns between rows.
1978         Still can't drop _to_ the left tree, but other places
1979         work.
1980
1981         * gtk/gtktreeview.c (unset_reorderable): Unset the
1982         reorderable property if unset/enable_model_drag_source/dest
1983         are called manually.
1984
1985         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
1986         Correct for change in depth count handling.
1987
1988         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
1989         Pass in a expose area to gtk_tree_view_column_cell_render()
1990
1991 2001-11-06  Havoc Pennington  <hp@redhat.com>
1992
1993         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
1994
1995 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
1996
1997         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
1998
1999 2001-11-05  Havoc Pennington  <hp@redhat.com>
2000
2001         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
2002         widgets in here
2003         (gtk_text_view_realize): set parent window of child widgets
2004         (gtk_text_view_size_request): use child req to decide whether
2005         to invalidate layout, not widget->requisition
2006
2007         * gtk/gtktextdisplay.c (render_layout_line): set
2008         shaped_width_pixels for NULL shape objects, so that we properly
2009         draw the "missing pixbuf/widget" thing
2010         (render_layout_line): don't draw the widget here
2011         (gtk_text_layout_draw): pass out a list of widgets that need exposing
2012
2013         * demos/gtk-demo/textview.c (insert_text): add demo of child
2014         widgets
2015
2016         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
2017
2018         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
2019
2020         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
2021         scroll offsets
2022         (gtk_text_view_value_changed): poke new X and Y into child allocations
2023
2024 2001-11-06  Tor Lillqvist  <tml@iki.fi>
2025
2026         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
2027         -specific directory on Windows, too (#63759).
2028
2029 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
2030
2031         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
2032         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
2033         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
2034         directly to Picture objects instead of using XftDraw.
2035         This fixes the problem where we weren't able to 
2036         properly destroy XftDraw objects before destroying
2037         the accompanying windows, and probably improves
2038         efficiency a bit too. (#50214)
2039
2040 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
2041
2042         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
2043         Clamp max window width/height to 32767, not 32768 since
2044         we have to be able to deal with a dx/y of -32768 without
2045         getting a width of 65536 when guffaw scrolling.
2046
2047         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
2048         for the guffaw scrolling case, fixing some problems with
2049         copy-area case as well. Fix BadValue bug with moving windows
2050         by large amounts.
2051
2052         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
2053         clip in window structue before calling gdk_window_invalidate_region
2054         since that trims new invalidations to the window's visible
2055         region.
2056
2057         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
2058         Really set the static window gravity on the children, not
2059         repeatedly on the window.
2060
2061         * gtk/testgtk.c: Add a torture test for big windows and 
2062         gdk_window_scroll().
2063
2064 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
2065
2066         * acconfig.h configure.in: sigsetjmp is macroized in some places,
2067         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
2068
2069 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
2070
2071         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
2072         in terms of pango_color_parse().
2073
2074         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
2075         gdk_color_parse() implementations.
2076
2077 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
2078
2079         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
2080         queue_resize_on_group with both the old and new mode, not
2081         just the new mode. (#60171, Nicolas Setton). Also, notify
2082         the "mode" property.
2083         
2084 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
2085
2086         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
2087         for use in "shallow invalidation" of a widget. (Windows belonging
2088         to the widget, but not to the widget's children)
2089
2090         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
2091         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
2092         up on ancestors up to the resize container on queue_resize. Size
2093         requests only actually take place if GTK_REQUEST_NEEDED, size
2094         allocations only take place if GTK_ALLOC_NEEDED or the size
2095         changed.
2096
2097         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
2098         container->resize_widgets and the RESIZE_NEEDED flag since the
2099         above flags are sufficient to figure out what needs to be
2100         resized/reallocated. Remove code manipulating
2101         container->resize_widget.
2102
2103         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
2104         allows widgets to turn off being automatically invalidated is when
2105         they are resized.
2106
2107         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
2108         a widget is resized or moved is "shallow" as described above -
2109         only the windows that need to be invalidated are invalidated.
2110
2111         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
2112         Make these widget's init functions call 
2113         gtk_widget_set_redraw_on_allocate(widget,FALSE).
2114
2115         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
2116         _gtk_container_queue_resize(), since we don't want
2117         redrawing. (Probably could be done for other 
2118         calls to gtk_widget_queue_resize() in gtkwindow.c,
2119         but this is the most important one.)
2120
2121         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
2122         gtk_widget_queue_draw() - size_allocate() handles
2123         that as appropriate.
2124
2125         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
2126         of queue_clear() to avoid invalidating children.
2127
2128 2001-11-04  jacob berkman  <jacob@ximian.com>
2129
2130         * gtk/gtkmain.c (find_module): don't free the module name until
2131         after we load the module
2132
2133 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
2134  
2135         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
2136         derivation instead of boxed derivation.
2137  
2138         * gtk/gtkmarshal.list: Remove some now unused marshallers.
2139  
2140 2001-11-04  Tor Lillqvist  <tml@iki.fi>
2141
2142         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
2143         include yesterday, without really thinking), as that defeats the
2144         working of correct_libdir_prefix() (it becomes a no-op.). Add
2145         comment mentioning that. Thanks to Hans Breuer for noticing.
2146         
2147 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
2148
2149         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
2150         signal argument (was GtkWidget*).
2151
2152         * gtk/gtkwindow.c (gtk_window_frame_event),
2153           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
2154         Fixed argument types as above, removed GTK_WINDOW casts and
2155         added some GTK_WIDGET casts instead.
2156
2157 2001-11-03  Hans Breuer  <hans@breuer.org>
2158
2159         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
2160         finalize to parent class to get removed from the toplevel_list.
2161         Should fix 'random' crashes of #63474.
2162
2163         * gtk/gtktreemodelsort.c : chain finalize() to parent class
2164
2165 2001-11-03  Tor Lillqvist  <tml@iki.fi>
2166
2167         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
2168         for .dll or .so as appropriate as module suffix.
2169
2170         * gtk-zip.sh.in: Use correct import library names.
2171
2172         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
2173
2174         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
2175         Windows to turn build-time paths from a gtk.immodules distributed
2176         as part of a binary package into runtime ones in the
2177         end-user-chosen installation directory.
2178         (gtk_im_module_init): Use it for module path and domain
2179         directory.
2180
2181 2001-11-02  Tor Lillqvist  <tml@iki.fi>
2182
2183         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
2184         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
2185         Windows.
2186
2187 2001-10-30  Tor Lillqvist  <tml@iki.fi>
2188
2189         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
2190         files. Configure on Win32 (running on Cygwin) thinks symlinks
2191         exist, but pkg-config is not necesarily a Cygwin program, and
2192         doesn't understand them.
2193
2194 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
2195
2196         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
2197         a bit.  I don't think it's completely correct yet, but it's
2198         getting there.
2199
2200 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
2201
2202         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
2203         random + 5 for width and height. If people want padding,
2204         they should add padding. (Note the +5 isn't padding
2205         that will always appear - it just appears in the case
2206         where the widget is allocated it's requisition.)
2207         (#51018, Janet Davis)
2208
2209 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
2210
2211         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
2212         the structure for future expansion.
2213
2214 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
2215
2216         Patch from HideToshi Tajima (#51922)
2217         
2218         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
2219
2220         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
2221         set_use_preedit().
2222         
2223         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
2224         to destroy the input context because we change the
2225         client window or use_preedit, make sure we empty
2226         the preedit string.
2227
2228 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
2229
2230         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
2231         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
2232         proposed ordering of buttons with [OK] in the lower
2233         right hand corner. Patch from Gregory Merchan,
2234         #56331.
2235
2236 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
2237
2238         * gtk/gtklabel.c (gtk_label_select_region_index): remove
2239         extraneous gtk_label_clear_layout (label)
2240
2241 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2242
2243         * tests/makefile.msc, gtk/makefile.msc.in: Removed
2244         -DGTK_DISABLE_COMPAT_H.
2245
2246         * docs/Changes-2.0.txt:
2247         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
2248
2249         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
2250
2251 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
2252
2253         * examples/**/Makefile.am: Convert to use pkg-config
2254         rather than gtk-config. (#53375, Skip Montanaro)
2255
2256 2001-11-02  Matt Wilson  <msw@redhat.com>
2257
2258         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
2259         broken unused, non-compiling, static function.
2260
2261 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
2262
2263         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
2264         Iterate through children of the action area, not of
2265         the vbox. (#58278, Sergey Kuzminov)
2266
2267 2001-11-01  Havoc Pennington  <hp@pobox.com>
2268
2269         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
2270         order to remove a workaround in Nautilus that forced
2271         GTK_ENABLE_BROKEN
2272
2273         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
2274
2275 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
2276
2277         * gtk/gtkrange.c: Patch from George Lebl to 
2278         fix division by zero for full scroll bars. (#62114)
2279
2280 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
2281
2282         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
2283         around gtk_widget_event() if we are going to
2284         set a flag afterwards. (#63464)
2285
2286 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
2287
2288         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
2289         Actually add the missing/broken image icon as the
2290         image for the "missing image" stock icon.
2291
2292 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
2293
2294         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
2295         Set a reasonable default height for the window.
2296
2297         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
2298         bug where subsequent '-' weren't converted to '_'.
2299         (#59550, Matthias Clasen)
2300
2301         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
2302         justify the Help menu - just include a comment on
2303         how to do it. (#63539,  Marius Andreiana)
2304
2305         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
2306         list GTK_ICON_SIZE_INVALID.
2307
2308         * demos/gtk-demo/stock_browser.c: Show the biggest available
2309         size, not a fixed size. (Often reported, including #63539, 
2310         Marius Andreiana)
2311
2312 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
2313
2314         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
2315         #59583
2316
2317         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
2318         warning.
2319
2320 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
2321
2322         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
2323         (Daniel Elstner).
2324
2325 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
2326
2327         * gtk/gtkimcontext.[ch]: Add:
2328           - A ::retrieve_surrounding signal that asks the widget for
2329             context around the insertion point.
2330           - A ::delete_surrounding signal that asks the widget to 
2331             delete context aroudn the insertion point.
2332           - gtk_im_context_set_context() for widgets to set context
2333             around the insertion point in response to ::retrieve_context.
2334           - gtk_im_context_get_context() for context to get context
2335             around the insertion point
2336
2337         * gtkmarshal.list: Add BOOL:INT,INT
2338
2339         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
2340         set_surrounding() methods, and the ::retrieve_surrounding /
2341         ::delete_surrounding signals.
2342
2343         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
2344         GtkIMContext::retrieve_surrounding / ::delete_surrounding
2345         signals.
2346
2347 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
2348
2349         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
2350         it's amazing how well things work sometimes, even when they're
2351         completely wrong.
2352
2353         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2354         where you could try to collapse a node w/o it having children.
2355
2356         (gtk_tree_view_class_init): remove Shift L<->R as they already
2357         existed for expand/collapse.
2358
2359 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
2360
2361         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
2362         found by Matt Wilson.
2363
2364 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
2365
2366         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
2367         Control, and Shift|Control L<->R, #63475
2368
2369 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
2370
2371         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
2372         infinite loop noticed by yosh.
2373
2374 2001-11-01  Michael Meeks  <michael@ximian.com>
2375
2376         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
2377         GTK_REALIZED flag so we don't re-enter when we are
2378         destroyed from the plug side.
2379
2380 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
2381
2382         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
2383         Add a "menu" property and notify on it. (#62798,
2384         Padraig O'Briain)
2385
2386         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
2387         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
2388         Fix set_text to take a gchar, not a guchar, and to have 
2389         a len argument.
2390
2391 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
2392
2393         * gtk/gtkstock.c: fix typo to make it compile
2394
2395 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
2396
2397         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
2398         the widget is insensitive, draw the text insensitively, #63306
2399
2400 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
2401
2402         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
2403
2404 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
2405
2406         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
2407         gtk_selection_data_set_tree_row, #60218
2408         (gtk_tree_get_row_drag_data): rename
2409         gtk_selection_data_get_tree_row, #60218
2410
2411         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
2412         get this right, after the third try, #63122.
2413
2414 2001-10-31  jacob berkman  <jacob@ximian.com>
2415
2416         * gdk/gdkselection.h (GDK_TARGET_STRING): 
2417         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
2418         for Xatoms (and not using the XA_* macros)!
2419
2420 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
2421
2422         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
2423         gtk_window_get_focus() getter to determine the currently
2424         focused widget within the window. (#63145, request
2425         from Damian Ivereigh)
2426
2427 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
2428
2429         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
2430
2431         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
2432         GTK_SELECTION_NONE enum.
2433         (_gtk_tree_selection_internal_select_node): ditto
2434
2435         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
2436         constness.
2437
2438         * gtk/gtkcellrenderertoggle.c: more yummy constness.
2439
2440         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
2441         if mode == GTK_SELECTION_NONE
2442
2443 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
2444
2445         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
2446         "cursor_changed" signal, #62850.
2447
2448 2001-10-31  Matt Wilson  <msw@redhat.com>
2449
2450         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
2451         allocating the treedatalist, zero it to make sure the values are
2452         cleared from any garbage that was in this chunk.
2453
2454 2001-10-31  Murray Cumming  <murrayc@usa.net>
2455
2456         * gtk/cellrenderertext.h: "edited" default signal handler
2457         gchar* args are now const.
2458         gtk/cellrenderertoggle.h: "toggled" default signal handler
2459         gchar* arg is now const.
2460         Also changed other signal handlers for "edited" and "toggled" to
2461         have the same signature.
2462
2463 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
2464
2465         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
2466         rewrite.  Static models now totally work.  I'm not 100% sure about
2467         row_inserted and row_changed, but I'll get those later.
2468
2469 2001-10-30  Sven Neumann  <sven@gimp.org>
2470
2471         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
2472         output for configure --help.
2473
2474 2001-10-30  Havoc Pennington  <hp@pobox.com>
2475
2476         * gtk/gtktextview.c (changed_handler): Update the IM spot location
2477         here, if text was invalidated in the visible area, because the
2478         scroll offset doesn't normally change in that case, and the mark
2479         isn't set, just implicitly moved over as text is added/removed
2480         
2481 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
2482
2483         * gtk/gtkseparatormenuitem.c: Code cleanup.
2484         (gtk_separator_menu_item_class_init): Fix bugs in this code.
2485
2486 2001-10-29  jacob berkman  <jacob@ximian.com>
2487
2488         * gdk/Makefile.am (LDFLAGS): 
2489         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
2490         LDFLAGS, so put win32 flags in here
2491
2492 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
2493
2494         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
2495         I can't believe this took this long to fix.
2496
2497 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
2498
2499         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
2500         reordered signal.
2501
2502 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
2503
2504         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
2505         the focus to the fileop entry for create dir / rename
2506         file. (#62838)
2507
2508 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
2509
2510         * configure.in: Don't use AC_CHECK_FILE to check for a 
2511         file since it always spits warnings about cross compilation,
2512         use -f instead. It's not like we cross compile properly
2513         anyways.
2514
2515         * configure.in (gtktargetlib): Move call to AC_PROG_CC
2516         to suppress autoconf warning.
2517
2518         * acconfig.h: Add some missing #undefs from recent
2519         Win32 additions.
2520
2521 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
2522
2523         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
2524         when we didn't find it. (#62944, Eric Lemings)
2525
2526         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
2527         sign in assignment. (#63209, Arkadiusz Miskiewicz)
2528
2529 2001-10-29  Anders Carlsson  <andersca@gnu.org>
2530
2531         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
2532         the buttons size request before using it. Fixes #61696.
2533
2534 2001-10-29  Tor Lillqvist  <tml@iki.fi>
2535
2536         * README.win32: Updates.
2537
2538         * gtk-zip.sh.in: New file, used to build distribution package for
2539         Windows.
2540
2541         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
2542         applicable with GDKVAR.
2543
2544         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
2545         Wintab library.
2546
2547         * gdk/win32/gdkwin32.h
2548         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
2549         X11 headers better, and to enable gdkwin32.h to be installed and
2550         included from applications, but not the *-win32.h headers.
2551
2552         * gdk/win32/*.c: Corresponding small changes, simplifications of
2553         #includes.
2554         
2555         * gdk/win32/gdkregion-win32.c: Remove.
2556
2557         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
2558
2559         * gdk/win32/gdkfont-win32.c
2560         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
2561
2562         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
2563         GDK_NONE values into hash table.
2564
2565         * gtk/gtk.def: Update.
2566
2567         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
2568         gethostname().
2569
2570         * gtk/gtkmain.c 
2571         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
2572         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
2573         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
2574         g_win32_get_package_installation_subdirectory() with the actual
2575         DLL name saved above. Redefine above directory name macros to call
2576         these functions. Remove some ifdefs.
2577
2578         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
2579         variable for export on Win32) also to the _vars file.
2580
2581         Changes for autoconfiscated build on Win32, and addition of Win32
2582         backend to the related files:
2583         
2584         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
2585         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
2586         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
2587         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
2588         win32 target, using pangowin32. Don't use the
2589         -export-symbols-regex option on Win32, we use .def files to list
2590         exported symbols. Check <winsock.h> (for gethostname() in
2591         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
2592         prevent premature m4 expansion.
2593
2594         * acconfig.h: Add HAVE_WINTAB.
2595
2596         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
2597         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
2598         MS_LIB_AVAILABLE, build MS import library. Install the import
2599         libraries. If HAVE_WINTAB, link with the Wintab library.
2600
2601         * gdk/win32/Makefile.am: Actually enable building the win32
2602         objects here, not just list all files in EXTRA_DIST. Link in the
2603         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
2604         copy the Wintab library into the .libs directory. 
2605
2606         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
2607         name of the GDK DLL when fetching the icon. Use the HMODULE saved
2608         in gdk_dll_hinstance by DllMain.
2609
2610         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
2611         build/win32/lt-compile-resource script.
2612
2613         * gdk/win32/rc/gdk.rc.in
2614         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
2615
2616         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
2617         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
2618         file. Install import libraries.
2619
2620 2001-10-29  Anders Carlsson  <andersca@gnu.org>
2621
2622         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
2623
2624 2001-10-28  Hans Breuer  <hans@breuer.org>
2625
2626         * gdk/gdk.c gdk/gdkevents.c
2627           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
2628           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
2629           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
2630           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
2631           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
2632           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
2633           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
2634         static correct-ness, underscore prefixing of library internal 
2635         functions
2636         (applied the undisputed and the win32 part. Of the latter 
2637          I'm probably the one who will change it back again, if Owen
2638          decides that the Gdk*Impl types should not be private to Gdk)
2639
2640         * gdk/gdk.def : added the remaining exported functions
2641
2642 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
2643
2644         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
2645         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
2646         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
2647
2648 2001-10-28  jacob berkman  <jacob@ximian.com>
2649
2650         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
2651         gtk_settings_get_default() here as that requires an X connection
2652         (which breaks doc building with no X connection) and is not
2653         multihead safe
2654         (gtk_color_selection_init): delay palette loading until realize
2655         time
2656         (gtk_color_selection_realize): load the palette, and initialize
2657         the global palette if it hasn't been already
2658
2659         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
2660         visual/cmap fields of klass->info since they are gone
2661         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
2662         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
2663         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
2664
2665         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
2666         cmap fields
2667         (gtk_preview_get_visual):
2668         (gtk_preview_get_cmap): mark as deprecated
2669
2670         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
2671         changes
2672
2673 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
2674
2675         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
2676         structure to have GObject not GtkObject as
2677         parent_instance. (Jeff Franks.)
2678
2679 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
2680
2681         * gdk/x11/gdkinput.c: Typo fix.
2682
2683 2001-10-26  Havoc Pennington  <hp@pobox.com>
2684
2685         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
2686         update_im_spot_location here explicitly
2687         (gtk_text_view_reset_im_context): don't update the spot location
2688         here
2689
2690 2001-10-27  Anders Carlsson  <andersca@gnu.org>
2691
2692         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
2693         This fixes #62942.
2694
2695         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
2696         Clarify that we're returning a spin button in the _new function.
2697         This fixes #54097.
2698         
2699 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
2700
2701         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
2702         Unfortunately, people apparently erroneously connect
2703         to ::clicked for GtkToggleButton and expect
2704         they know what happened in the default signal handler
2705         instead of appropriately connecting to notification
2706         signal ::toggled. When the revolution comes, such
2707         people will be first against the wall.
2708
2709         We'll just have to go back to the old less-reliable
2710         set-it-back hacks for handling model-view check
2711         buttons and radio buttons. :-(. 
2712
2713 2001-10-27  Hans Breuer  <hans@breuer.org>
2714
2715         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
2716           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
2717           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
2718           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
2719           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
2720           gtk/gtktreestore.c gtk/gtkvbbox.c : 
2721         to simplify parsing for exported functions:
2722         - made implementation signature static, when the local 
2723           prototype already was
2724         - put the functions return value on it's own line
2725         - added as space between the function name and the 
2726           opening bracket
2727
2728         * gtk/gtk.def : added the remaining exported functions
2729
2730 2001-10-27  Anders Carlsson  <andersca@gnu.org>
2731
2732         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
2733         Add note about width having to be greater than 0. This fixes
2734         #55574. 
2735
2736         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
2737         Fix docs to say previous instead of next.
2738         (gtk_text_iter_backward_word_start): Likewise.
2739         This fixes bug #62980.
2740
2741         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
2742         that the valid width is in range 0-65535 pixels. Fixes bug 
2743         #56754.
2744
2745         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
2746         a dot in the documentation. Fixes bug #62632.
2747
2748         * gdk/x11/gdkmain-x11.c: Replace int and guint with
2749         long and gulong in some places to make the code 64-bit
2750         clean.
2751         (_gdk_windowing_init_check): Replace gint with gulong.
2752         This patch was made by George Lebl and fixes bug #62113.
2753
2754         * tests/testgtk.c (create_range_controls): Don't set a 
2755         fixed height on the hscale widget. This fixes "bug" 
2756         #55840.
2757         (create_window_states): Set up destroy signals so that
2758         all windows will be destroyed when one is. This fixes 
2759         bug #58133.
2760
2761 2001-10-26  Anders Carlsson  <andersca@gnu.org>
2762
2763         * gtk/gtktreeview.c: 
2764         (gtk_tree_view_class_init): Create new "indent_expander"
2765         style property.
2766
2767         (gtk_tree_view_get_arrow_xrange): Add a tree argument
2768         to the function since the xrange can change depending
2769         on where in the tree we are. 
2770         
2771         (coords_are_over_arrow): Update function call to
2772         gtk_tree_view_get_arrow_xrange.
2773         (gtk_tree_view_draw_arrow): Likewise.
2774         
2775         (gtk_tree_view_real_expand_collapse_cursor_row):
2776         Call real_{expand|collapse}_row, so that we'll have an
2777         animation.
2778
2779 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
2780
2781         * tests/Makefile.am: fixed a small typo
2782
2783 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
2784
2785         * demos/gtk-demo/list_store.c (create_model): Anders
2786         Carlsson suggested to use G_N_ELEMENTS here
2787
2788 2001-10-26  Sven Neumann  <sven@gimp.org>
2789
2790         * gtk/gtkbutton.[ch]
2791         * gtk/gtkdnd.c: fixed inline comments
2792         
2793         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
2794
2795 2001-10-26  Hans Breuer  <hans@breuer.org>
2796
2797         * gdk-pixbuf/gdk_pixbuf.def : 
2798         * gdk/gdk.def : 
2799         * gtk/gtk.def : updated externals
2800
2801         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
2802         gdk_window_lookup implementation. It already was in
2803         gdk/win32/gdkwindow-win32.c
2804
2805         * gdk/win32/gdkproperty-win32.c : made it compile again
2806         after GdkAtom API change
2807
2808         * gtk/gtk/makefile.msc.in : updated
2809
2810 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
2811
2812         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
2813         require GLib 1.3.10.
2814
2815         * NEWS: updates.
2816
2817 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
2818
2819         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
2820         invalid nodes.
2821          (_gtk_rbnode_rotate_right): Ditto.
2822          (_gtk_rbtree_node_mark_invalid): New function.
2823          (_gtk_rbtree_node_mark_valid): New function.
2824
2825         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
2826         GObject, not a GtkObject.
2827         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
2828         correct.
2829         (gtk_tree_model_sort_row_deleted): ditto.
2830         (gtk_tree_model_sort_{un,}ref_node): Fix.
2831
2832         * gtk/gtktreeview.c: Protean incremental reflow support (commented
2833         out)
2834
2835         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
2836         to const char *key.
2837
2838         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
2839         Important 1 line fix to fix a lot of refcounting woes.
2840
2841 2001-10-25  Matt Wilson  <msw@redhat.com>
2842
2843         * gtk/gtktextview.c (gtk_text_view_destroy): call
2844         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
2845         now invalidates) so that we remove our idle functions.
2846         (gtk_text_view_destroy_layout): remove the first_validate_idle as
2847         well.
2848
2849         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
2850         the 'indent' property is G_MININT to G_MAXINT.  Don't use
2851         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
2852         instead.
2853
2854 2001-10-24  Anders Carlsson  <andersca@gnu.org>
2855
2856         * gtk/gtktreeview.c: 
2857         (gtk_tree_view_real_expand_row): add an animate argument
2858         (gtk_tree_view_real_collapse_row): likewise
2859         
2860         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
2861         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
2862         (gtk_tree_view_collapse_row): update functions that call
2863         real_{expand|collapse}_row to set the animate argument 
2864         accordingly.
2865         
2866 2001-10-24  Alex Larsson  <alexl@redhat.com>
2867
2868         * gdk/linux-fb/gdkfont-fb.c:
2869         Update to new Pango APIs
2870
2871         * gdk/linux-fb/gdkproperty-fb.c:
2872         Update to new GdkAtom APIs
2873
2874         * gdk/linux-fb/gdkwindow-fb.c:
2875         Remove warnings
2876
2877 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
2878
2879         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
2880
2881 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
2882
2883         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
2884         s_path as a child path
2885
2886 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
2887
2888         * gtk/gtktreemodelsort.c: more changes in an attempt to get
2889         it right. It's not yet ready for general consumption.
2890
2891         * tests/treestoretest.c: add a button and entry for the new
2892         iter_change function
2893         (iter_change): new function, to test
2894         the row_changed signal implementation of the GtkTreeModelSort
2895
2896         * tests/testtreesort.c: cleanups, changes to test more features
2897         of the GtkTreeModelSort at once
2898
2899 2001-10-24  Havoc Pennington  <hp@redhat.com>
2900
2901         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
2902         remove hack to strip off the bogus newline, since we killed the
2903         bogus newline; fixes #61779
2904
2905 2001-10-24  Havoc Pennington  <hp@redhat.com>
2906
2907         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
2908         create layout if we didn't have one
2909         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
2910         as appropriate, avoids blanking the screen 
2911         (gtk_text_view_invalidate): new function to do invalidation,
2912         containing old guts of invalidated_handler
2913
2914 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
2915
2916         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
2917         dreadful tooltips.
2918
2919 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
2920
2921         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
2922         set window->parent (except or the root window itself); if 
2923         the window's parent is not a GdkWindow, or is a window of 
2924         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
2925
2926         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
2927         windows of type GDK_WINDOW_FOREIGN.
2928
2929 2001-10-24  Havoc Pennington  <hp@pobox.com>
2930
2931         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
2932         the front of a segment, use the "slow" technique for moving
2933         backward, so we don't mess up the any_segment field in the iter. 
2934         Fixes #57707
2935
2936         * tests/testtextbuffer.c: add code to detect #57707, to avoid
2937         regression
2938
2939 2001-10-23  Havoc Pennington  <hp@redhat.com>
2940
2941         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
2942         if selection contains some editable text, #60975
2943         (gtk_text_view_scroll_to_iter): remove warning about scrolling
2944         prior to map; it should actually be OK to do so in many cases, 
2945         it would be nice to warn about scrolling when many lines have
2946         height 0, but I don't know what to do about that. Perhaps 
2947         move part of flush_scroll into this function? comment added 
2948         to consider this.
2949
2950 2001-10-23  Havoc Pennington  <hp@redhat.com>
2951
2952         * gtk/gtktextview.c (changed_handler): Correctly keep the same
2953         text on the top of the screen, considering that the changed region
2954         may have overlapped the first paragraph. Should fix msw's "text
2955         widget scrolled to wrong place on map" bug, and probably some
2956         other scrolling cases as well.
2957         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
2958         instead of some random value
2959
2960         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
2961         grab_focus, so #59708 is really fixed
2962
2963 2001-10-24  Anders Carlsson  <andersca@gnu.org>
2964
2965         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
2966         (popup_targets_received): Call append_action_signal with stock items
2967         
2968         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
2969         (gtk_label_do_popup): Call append_action_signal with stock items
2970         
2971         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
2972         (popup_targets_received): Call append_action_signal with stock items
2973
2974 2001-10-23  Havoc Pennington  <hp@redhat.com>
2975
2976         * gtk/gtktextview.c (changed_handler): queue a resize here; will
2977         temporarily slow down the widget a lot, until we figure out how to
2978         optimize to avoid full redraw everytime we queue a resize.
2979
2980 2001-10-23  Havoc Pennington  <hp@redhat.com>
2981
2982         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
2983         0 and char_len == 0, bug #61729
2984
2985 2001-10-23  Havoc Pennington  <hp@redhat.com>
2986
2987         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
2988         return value, #61714 (Vitaly Tishkov)
2989         (gtk_text_iter_backward_sentence_starts): ditto
2990         (gtk_text_iter_backward_word_starts): ditto
2991         (gtk_text_iter_forward_word_ends): ditto
2992         (gtk_text_iter_forward_sentence_ends): ditto
2993         (gtk_text_iter_backward_cursor_positions): ditto
2994
2995 2001-10-23  Havoc Pennington  <hp@redhat.com>
2996
2997         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
2998         fix from Dov Grobgeld, #61858
2999
3000 2001-10-23  Havoc Pennington  <hp@redhat.com>
3001
3002         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
3003         Update IM spot location at appropriate times, #50626
3004         (Hidetoshi Tajima)
3005
3006 2001-10-23  Havoc Pennington  <hp@redhat.com>
3007
3008         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
3009         on grab focus, unless it's caused by button click, #59708
3010
3011 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
3012
3013         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
3014
3015         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
3016         G_CONST_RETURN. (Murray Cumming)        
3017
3018         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
3019         Make G_CONST_RETURN.
3020
3021         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
3022         results of g_get_home_dir().
3023
3024         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
3025         copy. Storing the return from gtk_entry_get_text() is evil.
3026
3027         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
3028         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
3029         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
3030         gtk/gtksignal.c: Add const.
3031
3032         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
3033
3034         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
3035         if we are setting them on private widgets.
3036
3037         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
3038         Duplicate entry->text before setting it as object data.
3039
3040 2001-10-22  Havoc Pennington  <hp@redhat.com>
3041
3042         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
3043         up a char from the end iterator, fixes #61859 ("can't put cursor
3044         at the end of the buffer")
3045
3046         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
3047         to work with delimiters other than newline.
3048
3049         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
3050         get_bytes_in_line
3051
3052         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
3053         last line, since the newline is no longer counted.
3054         (gtk_text_iter_get_bytes_in_line): ditto
3055
3056 2001-10-22  Havoc Pennington  <hp@redhat.com>
3057
3058         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
3059         #58290 would trigger if it reappeared, I think
3060
3061 2001-10-22  Havoc Pennington  <hp@redhat.com>
3062
3063         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3064         add temporary code to dump btree contents on assertion failure
3065         described in #62656
3066         
3067         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
3068         assertions that we're getting the right end iter segment
3069
3070         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
3071         verify that we aren't on the end iterator after moving 
3072         forward one segment - fixes return value in an obscure case. 
3073         Also, some trivial code cleanup/rearranging.
3074         
3075 2001-10-22  Havoc Pennington  <hp@redhat.com>
3076
3077         * gtk/gtktextlayout.h: add a #error unless you define
3078         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
3079
3080         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
3081         
3082 2001-10-22  Havoc Pennington  <hp@redhat.com>
3083
3084         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
3085         #62365
3086
3087 2001-10-22  Havoc Pennington  <hp@redhat.com>
3088
3089         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
3090         #62436
3091
3092 2001-10-22  Havoc Pennington  <hp@redhat.com>
3093
3094         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
3095         #62366
3096
3097 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
3098
3099         * gtk/gtklabel.c: Add cursor-position, selection-bound 
3100         properties. (#62148, reported by Padraig O'Briain)
3101
3102         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
3103         to cursor_position. (1.3.x addition, text_position is an awful
3104         name.) Make cursor_position read-only to avoid sticky questions
3105         of interaction with selection_bound. (#62636, reported by
3106         Padraig O'Briain)
3107
3108 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
3109
3110         Fixing popup menus to have "Paste" sensitized correctly. Original
3111         patches from Damian Ivereigh, much mangled.
3112
3113         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
3114         gtk_selection_data_targets_include_text(). (#60854)
3115
3116         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
3117         the clipboard has text" function gtk_clipboard_wait_is_text_available.
3118         (#60854)
3119
3120         * gtk/gtkentry.c: Only enable the paste item if the clipboard
3121         contains text. (#60973)
3122
3123         * gtk/gtktextview.c: Only enable the paste item if the clipboard
3124         contains text. (#60975)
3125
3126 2001-10-22  Havoc Pennington  <hp@redhat.com>
3127
3128         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
3129         "height_lines" and "width_columns" properties, it doesn't make
3130         sense to set the size request on a text view really. #62103
3131
3132 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
3133
3134         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
3135         g_node_depth is broken, and that it's not worth being consistent
3136         with it.
3137
3138 2001-10-22  Havoc Pennington  <hp@redhat.com>
3139
3140         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
3141         docs, #61777
3142         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
3143         change the two boolean args to a flags field, so we can extend 
3144         to add case insensitive, regexp searches later. #61852
3145
3146 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
3147
3148         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
3149         reflect reality, #62810
3150
3151 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
3152
3153         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
3154
3155         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
3156         system.  Instead of having a window the size of the tree, we have
3157         a window the size of widget->allocation, and simply draw with the
3158         offset.
3159         (coords_are_over_arrow): ditto.  Move to window coordinates.
3160         (do_prelight): ditto
3161         (do_unprelight): ditto
3162
3163         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3164         Minor fix from Kristian Rietveld to fix unsorted case.
3165
3166 2001-10-22  jacob berkman  <jacob@ximian.com>
3167
3168         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
3169         a PIXMAP cell (fixes crash when using PIXTEXT cells)
3170
3171 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
3172
3173         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
3174         (#58768, Vitaly Tishkov)
3175         
3176         * gtk/gtkobject.h: Deprecate with abandon. 
3177         (#61942, Vitaly Tishkov, Matthias Clasen)
3178
3179         * gtk/gtksignal.h: Deprecate everything.
3180
3181         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
3182         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
3183         (#61942, Matthias Clasen)
3184
3185         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
3186         Havoc Pennington)
3187
3188         * gtk/gtkitemfactory.h: Deprecate compat functions
3189         for GtkMenuFactory code. (#62071)
3190
3191         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
3192         gdk_draw_text,gdk_draw_text_wc. (#62071)
3193
3194 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
3195
3196         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
3197         g_thread_init(), we don't want to link to -lgthread if we don't
3198         have to.
3199
3200 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
3201
3202         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
3203         Add a function, gdk_threads_init() that must be explicitely 
3204         called to enable the GDK thread mutex.
3205
3206 2001-10-22  Jakub Steiner <jimmac@ximian.com>
3207
3208         * gtk/stock-icons/stock_stop.png: no body parts
3209         
3210 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
3211
3212         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
3213         problem with g_return_if_fail return value.
3214
3215         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
3216         virtual atom code from the gdk-multihead branch, removing the per-display
3217         part. Virtualizing atoms needs to be done now to prevent compat
3218         breakage in direct Xlib accessing code in the future. (#62208)
3219  
3220         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
3221         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
3222  
3223         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
3224         an opaque pointer type so the compiler catches attempts
3225         to mingle it with X atoms.
3226
3227         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
3228           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
3229           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
3230           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
3231           tests/testdnd.c,tests/testselection.c: 
3232         Fix up for above atom changes.
3233
3234         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
3235         now have the ability to add custom predefines.
3236
3237         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
3238         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
3239         to gtk_clipboard_get().
3240
3241         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
3242         for GdkAtom => pointer change.
3243
3244         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
3245         atoms, fix for GdkAtom => pointer change.
3246
3247 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
3248
3249         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
3250         new function spin_button_get_arrow_size() instead.
3251
3252         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
3253         arrow was hardcoded, it's now variable.
3254
3255         Fixes bug #50200
3256
3257 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
3258
3259         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
3260         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
3261         for those
3262
3263 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
3264
3265         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
3266         in favor of g_signal_*, gtk_object_* in favor of 
3267         g_object_*.
3268
3269 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
3270
3271         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
3272         from GObject now, we have to use the g_object_* functions, not
3273         gtk_object_*.
3274
3275 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
3276
3277         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
3278         nailed down now (this code is not yet ready for general consumption)
3279
3280 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
3281
3282         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
3283         for use_align
3284
3285 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
3286
3287         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
3288
3289 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
3290
3291         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
3292         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
3293         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
3294         GObject, not GtkObject. (#62621)
3295
3296 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
3297
3298         * tests/testsocket.c: Remove now useless include of unistd.h,
3299         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
3300         
3301 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
3302
3303         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
3304         Pango font API. #61933. (Untested, even for compilation.)
3305
3306 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
3307
3308         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
3309         export gtk_disable_setlocale(). (Caught by Sven Neumann)
3310
3311 2001-10-18  Havoc Pennington  <hp@redhat.com>
3312
3313         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
3314
3315 2001-10-18  Havoc Pennington  <hp@redhat.com>
3316
3317         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
3318         to GTK_RUN_LAST, #50239
3319
3320 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
3321
3322         * gtk/gtkimmodule.c (match_locale):
3323         Support "*" for all locales with least priority
3324         when to select default im module, #58201
3325
3326 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
3327
3328         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
3329         Fix docs. (#61976)
3330  
3331         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
3332
3333         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
3334
3335         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
3336         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
3337         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
3338         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
3339         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
3340         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
3341         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
3342
3343         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
3344
3345         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
3346         Don't restrict the width of the spinbutton entry field 
3347         to 10 digits. (#58681)
3348
3349 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
3350
3351         * tests/testtreeflow.c: new test program for the tree.
3352
3353 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
3354
3355         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
3356         reported by (Oleg Maiboroda), #62600
3357
3358 2001-10-18  Michael Meeks  <michael@ximian.com>
3359
3360         * gtk/gtkentry.c (gtk_entry_set_property),
3361         (gtk_entry_get_property): impl 'text'
3362         (gtk_entry_class_init): add the 'text' prop.
3363         (gtk_entry_insert_text): notify 'text' changed.
3364         (gtk_entry_delete_text): ditto.
3365
3366 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
3367
3368         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
3369         Documentation updates.
3370
3371 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
3372
3373         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
3374         in truncating length of text to MAX_SIZE. (Found by 
3375         Padraig O'Briain, #62055)
3376
3377 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
3378
3379         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
3380         MNEMONIC_ACTIVATE; signal was changed a long time
3381         ago.
3382
3383         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
3384         Fix wrong return statement. (Reported by HideToshi
3385         Tajima and others.)
3386
3387         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
3388         left over select_all vfunc.
3389
3390 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
3391
3392         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
3393         a utility function to translate coordinates relative to
3394         one widget's allocation to coordinates relative to another
3395         widget's allocation.
3396
3397         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
3398         that:
3399          - only accepts external focus if there is no active
3400            member of the group or the button is active.
3401          - makes arrow keys move the active button as well
3402            as the focus
3403          - make tab tab out directly.
3404         This makes a radio button group act as a single focus location.
3405         (#53577).
3406         
3407         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
3408         it was only a small optimization that didn't matter and made
3409         things more complicated.
3410
3411         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
3412         sorter for FOCUS_TAB as we did for the other focus directions,
3413         sort by center of widgets, not upper-left corner. (Shouldn't
3414         matter in general.)
3415
3416         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
3417         from the different types of focusing: encapsulate sorting the
3418         widgets for the focus direction into one routine
3419         (gtk_container_focus_sort()) and then share the work of moving the
3420         focus between the different focus directions.
3421
3422         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
3423         work correctly with focus chains containing non-immediate
3424         children. Sorting was being done using allocation coordinates for
3425         each widget in the focus chain, and if there were intermediate
3426         window-widgets, these allocations would not be in the same
3427         coordinate system.
3428
3429 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
3430
3431         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
3432         mnemonic_activate function to option menu.
3433
3434 2001-10-15  Murray Cumming <murrayc@usa.net>
3435
3436         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
3437           Corrected the type names used in some calls to g_signal_new().
3438         
3439 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
3440
3441         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
3442         specs, use g_pattern_spec_equal() instead of direct field accesses.
3443         upon compressing two equal paths of the same type, the resulting
3444         priority has to be the maximum.
3445         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
3446         GtkPathPriorityType enum and make it a macro.
3447
3448 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
3449
3450         * gtk/gtkwidget.c: Fix some doc comments.
3451
3452 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
3453
3454         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
3455         on empty models.
3456
3457 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
3458
3459         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
3460         Remove stale gdk backend includes.
3461  
3462 2001-10-10  Michael Meeks  <michael@ximian.com>
3463
3464         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
3465         and value_in_list properties.
3466         (gtk_combo_set_value_in_list): notify change.
3467         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
3468
3469 2001-10-11  James Henstridge  <james@daa.com.au>
3470
3471         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
3472         that gtk+ can be built with automake 1.5 while not breaking
3473         things for automake 1.4.
3474
3475 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
3476
3477         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
3478         (#60606)
3479
3480         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
3481         to disable calling setlocale (LC_ALL, "").
3482
3483         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
3484         docs that this function is not typically useful.
3485
3486         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
3487         Automatically initialize GDK for the current locale
3488         on gdk_init(). Don't reset locale to C when
3489         XSupportsLocale() fails.
3490
3491         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
3492         useless checks for UTF-8 locale breakage that mattered
3493         only for X.
3494
3495         * examples/calendar/calendar.c
3496         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
3497         gtk_set_locale().
3498
3499         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
3500         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
3501
3502 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
3503
3504         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
3505
3506         Fixes bug #61904
3507
3508 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
3509
3510         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
3511         new function, #61923
3512         (gtk_tree_selection_path_is_selected): Ditto
3513
3514 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
3515
3516         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
3517         not a GtkObject.  Thanks andersca.
3518
3519         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
3520
3521 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
3522
3523         * gtk/gtktreeviewcolumn.c
3524         (gtk_tree_view_model_sort_column_changed): fix broken code.
3525
3526 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
3527
3528         * gtk/gtkselection.c: s/succesfully/successfully/g
3529
3530 2001-10-08  Havoc Pennington  <hp@pobox.com>
3531
3532         * demos/gtk-demo/stock_browser.c: remove unused enum
3533
3534         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
3535         pass the current selection state of the node in to the user
3536         selection func
3537
3538 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
3539
3540         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
3541         non-existent function gdk_x11_cursor_get_xid 
3542         by gdk_x11_cursor_get_xcursor.
3543
3544 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
3545
3546         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
3547         warning.
3548
3549         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
3550         unref nodes, #okay61676
3551
3552         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
3553         to the property; no need to clear the other columns.  Also, we go
3554         to 'unsorted' if the model supports it.
3555
3556 2001-10-05  Sven Neumann  <sven@gimp.org>
3557
3558         * demos/testpixbuf-save.c
3559         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
3560         feature.
3561
3562 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
3563
3564         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
3565         destroy the search dialog
3566
3567         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
3568         added check to prevent creation of a search dialog if there's
3569         already one around
3570
3571         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
3572         it instead of "search-dialog" (when getting/setting the search dialog
3573         widget).
3574
3575 2001-10-05  Jakub Steiner <jimmac@ximian.com>
3576
3577         * gtk/stock-icons/stock_broken_image.png: broken images icon
3578
3579 2001-10-04  Havoc Pennington  <hp@pobox.com>
3580
3581         Fix #56586
3582         
3583         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
3584         accelerator setting here...
3585
3586         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
3587         because we try to use it when a menu bar hasn't necessarily been 
3588         initialized.
3589
3590 2001-10-03  Havoc Pennington  <hp@redhat.com>
3591
3592         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
3593         it previously verified incorrect behavior
3594
3595         Fixes for #61565
3596         
3597         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
3598         off the end
3599         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
3600         the end
3601         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
3602         the end
3603         (gtk_text_iter_forward_lines): if on the last line, move to end of
3604         it
3605
3606         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
3607         don't return a line off the end
3608
3609 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
3610
3611         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
3612         functions to do_insert_text and do_delete_text, add signals
3613         insert_text, delete_text and changed
3614
3615         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
3616         and changed. Updates to match new situation.
3617
3618         * gtk/gtkspinbutton.c: updates to match new situation
3619
3620         * gtk/gtkoldeditable.h: remove signals changed, insert_text
3621         and delete_text
3622
3623         * gtk/gtkoldeditable.c: updates to match new situation
3624
3625         * gtk/gtktext.c: updates to match new situation
3626
3627         Fixes bug #59803
3628
3629 2001-10-03  Havoc Pennington  <hp@redhat.com>
3630
3631         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
3632         position
3633
3634         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
3635         changes
3636
3637         * tests/testtextbuffer.c (logical_motion_tests): updates
3638
3639 2001-10-03  jacob berkman  <jacob@ximian.com>
3640
3641         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
3642         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
3643         * gtk/gtksettings.c (apply_queued_setting): 
3644         * gtk/gtkmain.c (gtk_init_check): 
3645         * gtk/gtkcontainer.c (gtk_container_child_get_property):
3646         s/retrive/retrieve/
3647
3648 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
3649
3650         * gtk/gtktreemodelsort.[ch]: preparation for surgery
3651         * tests/testtreesort.c: ditto
3652
3653 2001-10-02  Havoc Pennington  <hp@redhat.com>
3654
3655         Throughout: assorted docs
3656         
3657         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
3658         gdk_window_set_geometry_hints() should be used instead.
3659
3660         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
3661         document them
3662
3663         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
3664         seem to exist in any .c files
3665
3666         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
3667         g_return_if_fail (pixel < colormap->size).
3668
3669 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
3670
3671         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
3672         NULL for @target_list to mean, use
3673         gtk_drag_dest_get_target_list (widget).
3674
3675         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
3676         drop could hang when calling gtk_drag_finish with 
3677         success == FALSE and del == TRUE.
3678
3679         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
3680         drops without a matching target found would propagate
3681         to the parent widget rather than being rejected.
3682
3683         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
3684         Use text_view->dnd_mark instead of mark name to be
3685         consistent with the rest of the code.
3686
3687         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
3688         pendantically correct for a drop-only-in-some-places
3689         widget. (Check whether you can insert in drag_drop,
3690         not just in drag_motion ... matters in theory, and
3691         for Motif drag and drop in practice.)
3692
3693         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
3694         Damian Ivereigh to not allow drops on non-editable
3695         entries. (#61124)
3696
3697         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
3698         text to be moved from a non-editable entry.
3699         
3700 2001-10-03  James Henstridge  <james@daa.com.au>
3701
3702         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
3703         s/width/fixed_width/ in order to get things to compile.
3704
3705 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
3706
3707         * gtk/gtkcelleditable.c: docs
3708
3709         * gtk/gtktreemodel.h: more docs.
3710
3711 2001-10-02  Havoc Pennington  <hp@redhat.com>
3712
3713         * gdk/x11/gdkwindow-x11.c: docs
3714
3715         * tests/testtextbuffer.c (logical_motion_tests): add sentence
3716         boundary tests
3717
3718 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
3719
3720         * demos/gtk-demo/Makefile.am: add editable_cells.c,
3721         list_store.c and tree_store.c
3722
3723         * demos/gtk-demo/appwindow.c: remove tearoff item from
3724         File menu, put menubar and toolbar in handle boxes.
3725
3726         * demos/gtk-demo/genincude.pl: various changes to support trees
3727
3728         * demos/gtk-demo/main.c: various changes to support trees
3729
3730         * demos/gtk-demo/stock_browser.c: changed name of demo
3731         to Stock Item and Icon Browser, so geninclude.pl doesn't see
3732         it as child
3733
3734         * demos/gtk-demo/editable_cells.c: new file/demo
3735         * demos/gtk-demo/list_store.c: new file/demo
3736         * demos/gtk-demo/tree_store.c: new file/demo
3737
3738 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
3739
3740         * gtk/gtkrc.c gtk/gtksettings.c: 
3741         g_string_printfa => g_string_append_printf.
3742
3743 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
3744
3745         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
3746         and destroy handler.
3747
3748         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
3749
3750         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
3751         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
3752         Singh <yosh@gimp.org>.
3753
3754 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
3755
3756         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
3757         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
3758
3759         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
3760
3761 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
3762
3763         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
3764         scroll_to_cell delayed code to happen in size_allocate.
3765
3766         * gtk/gtkstyle.c (gtk_default_draw_expander): change
3767         prelight/normal arrow drawing.
3768
3769         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
3770
3771         * gtk/gtktreestore.c: refactor.
3772
3773 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
3774
3775         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
3776         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
3777         centers the child in relation to the to indicator height.
3778
3779 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
3780
3781         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
3782         correct
3783
3784 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
3785
3786         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
3787         property code using g_param_spec_int and changed from
3788         g_value_get_enum to g_value_get_int instead. Probably a better way
3789         to fix the problem :-)
3790
3791 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
3792
3793     * gtk/gtkcellrenderertext.c changed "weight" property type from 
3794       g_param_spec_int to g_param_spec_enum.
3795
3796 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
3797
3798         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
3799         fix: s/Wether/Whether/ in reorderable property description
3800
3801 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
3802
3803         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
3804         start editing when you select with a keyboard.
3805
3806         (gtk_tree_view_button_press_event): much more graceful now.
3807
3808         * gtk/gtkstyle.c: Draw togglebutton better.
3809
3810 2001-09-26  Havoc Pennington  <hp@redhat.com>
3811
3812         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
3813         of passing non-stock label in to gtk_dialog_new_with_buttons
3814
3815         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
3816         debugging updates
3817
3818         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
3819         are private
3820
3821         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
3822         exist, fall back to mnemonic label, not plain label, bug #61184
3823         
3824 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
3825
3826         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
3827         stupid and emitting the signal every time.
3828
3829         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
3830
3831 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
3832
3833        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
3834
3835        * contrib/gdk-pixbuf-xlib/Makefile.am: install
3836        gdk-pixbuf-xlib-2.0.pc.
3837
3838 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
3839
3840         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
3841         problem where menmonic wasn't removed properly when
3842         setting a label when there already is a label.
3843         Also, handle setting the tab label back to the same
3844         value. (#61160, #61161)
3845
3846         * gtk/gtkentry.c (paste_received): Patch from 
3847         Damian Ivereigh to replace selection if there is 
3848         one. (#61121)
3849
3850 2001-09-25  Darin Adler  <darin@bentspoon.com>
3851
3852         * tests/.cvsignore: Ignore new test program.
3853
3854 2001-09-25  Havoc Pennington  <hp@redhat.com>
3855
3856         * gtk/gtktextview.c: fix for #50317
3857         
3858 2001-09-25  Havoc Pennington  <hp@redhat.com>
3859
3860         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
3861         gtk_text_iter_can_insert
3862         
3863         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
3864
3865         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
3866          (gtk_text_iter_can_insert): new function to fix #60282, should
3867         also fix msw's "can paste into empty buffer" bug.
3868
3869         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
3870         "event object,"  #59091
3871
3872         * gtk/gtktextbtree.c: indentation fixes
3873
3874         * gtk/gtktextiter.c (find_by_log_attrs): fixes
3875
3876 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
3877
3878         * configure.in: Version 1.3.9, interface age 0, binary age 0.
3879
3880         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
3881
3882         * NEWS: Updates.
3883
3884 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
3885
3886         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
3887         function for drawing cursors between gtkentry/gtklabel/gtktextview.
3888         Should this be public? It has a bit of an odd interface, but
3889         custom editing widgets probably should be using it.
3890         Function will draw with wider width for taller cursors, and
3891         draws a little indicator arrow to indicate directoin for split 
3892         cursors.
3893
3894         * gtk/gtktextview.c: Add a "cursor_color" property.
3895
3896         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
3897         gtk_text_layout_draw().
3898
3899         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
3900         _gtk_draw_insertion_cursor().
3901
3902 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
3903
3904         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
3905         the behavior where you could turn family_set (etc) back on
3906         and get back the values you had before.
3907
3908         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
3909         g_string_ascii_up() rather than looping through the
3910         string ourself.
3911
3912 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
3913
3914         * gtk/gtktreeviewcolumn.c
3915         (gtk_tree_view_column_set_cell_renderer): Removed
3916         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
3917
3918         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
3919         Patch from Detlef Reichl
3920
3921 2001-09-25  Havoc Pennington  <hp@redhat.com>
3922
3923         * tests/testtextbuffer.c (line_separator_tests): Add tests for
3924         line separators, addresses bug #57428
3925
3926 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
3927
3928         * gtk/gtkentry.c: Make a GtkCellEditable
3929         (get_widget_window_size): Change to let it honor size_allocate
3930         when a CellEditable.
3931
3932         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
3933         editable changes.
3934         (gtk_tree_view_set_cursor): Now you can set the cursor
3935         horizontally, as well as start editing.
3936
3937         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
3938         code to look more like the other check buttons.
3939
3940         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
3941         Change the way we calculate cell size.
3942
3943         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
3944
3945         * demos/gtk-demo/sizegroup.c: Add mnemonics.
3946
3947         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
3948         Fix logic.
3949
3950         * gtk/gtkcellrenderertext.c: Change to be editable.
3951
3952         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
3953
3954         * test/testtreesort.c: Fix misspelling
3955
3956         * test/testreecolumns.c: Add mnemonics.
3957
3958         * test/testreeedit.c: New test program.
3959
3960 2001-09-25  Havoc Pennington  <hp@pobox.com>
3961
3962         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
3963         etc. docs about how these are not going to do what you want for 
3964         the X/win32 ports. Futile attempt to avoid a FAQ...
3965
3966 2001-09-24  James Henstridge  <james@daa.com.au>
3967
3968         * gtk/gtkmarshal.list (VOID): add marshal function types.
3969
3970         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
3971         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
3972         GTK_TYPE_POINTER.
3973         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
3974         with no-op copy/free functions.
3975
3976         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
3977         GtkCTreeNode get_type function.
3978
3979 2001-09-24  Havoc Pennington  <hp@redhat.com>
3980
3981         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
3982         gtktextlayout.c:
3983         Get rid of the newline-that-could-not-be-deleted; buffers may 
3984         now be zero-length. Much easier to fix than expected, once 
3985         I figured out the right way to do it. However, there are 
3986         various subtle bugs introduced by this that will have to get 
3987         sorted out. Please use bugzilla.
3988
3989 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
3990
3991         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
3992         response back from the window manager if our size hasn't changed 
3993         since we won't get a response back from the window manager;
3994         there was code in there to do this, but it was in the wrong
3995         place so if the hints change and the size didn't we'd expect
3996         a response.
3997
3998         Also, optimize the position-only-changed case by running
3999         the resize queue immediately, and clean up some comments
4000         for the changes.
4001
4002 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
4003
4004         * gtk/gtknotebook.h: Add a compat macro that got lost.
4005
4006         * gtk/gtktreestore.c: Doc fixes.
4007
4008         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
4009         leak for windows that receive events after being destroyed.
4010         (#60863, Joshua N. Pritikin)
4011
4012         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
4013         rather than gtk_container_queue_resize().
4014
4015         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
4016         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
4017         gtk_container_child_composite_name. (#60217.)
4018
4019 2001-09-22  Hans Breuer  <hans@breuer.org>
4020
4021         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
4022
4023 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
4024
4025         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
4026         weight value should be an int
4027
4028 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
4029
4030         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
4031         to gtk_menu_scroll_item_visible(). Only call
4032         gtk_menu_scroll_item_visible() if the menu widget has been
4033         realized. Fixes bug #55310.
4034
4035 2001-09-21  Havoc Pennington  <hp@redhat.com>
4036
4037         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
4038         key press to IM context if cursor isn't in an editable location;
4039         bug #58425, patch from Hidetoshi Tajima
4040
4041 2001-09-21  Havoc Pennington  <hp@redhat.com>
4042
4043         Bug #60862
4044         
4045         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
4046         (_gtk_text_btree_unref): fix up mark memory management
4047
4048         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
4049
4050 2001-09-20  Havoc Pennington  <hp@redhat.com>
4051
4052         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
4053         try to handle alignment here, because it's done by PangoLayout
4054         after we set the layout width. Fix from Dov.
4055
4056 2001-09-21  Hans Breuer  <hans@breuer.org>
4057
4058         * gdk/gdk.def :
4059         * gtk/gtk.def : updated externals
4060
4061         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
4062         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
4063         Also handle that Win32 pathes cann't be hard-coded      
4064
4065         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
4066         module, themes etc directory calculations
4067
4068         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
4069         >16 bit right. The size limit within Win9x appears _not_ to be 32767
4070         but slightly smaller ...
4071
4072         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
4073         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
4074
4075         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
4076
4077         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
4078         handling. I'm not sure if it is better now, but at least not worse
4079
4080         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
4081
4082         * gdk/win32/gdkwin32.h : reflect recent API restrictions
4083
4084 2001-09-21  Matt Wilson  <msw@redhat.com>
4085
4086         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
4087         radio_menu_item->group to NULL after removing it from the list, as
4088         it is no longer in the group. (#60869)
4089
4090         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
4091
4092 2001-09-20  Havoc Pennington  <hp@pobox.com>
4093
4094         * configure.in (PANGO_REQUIRED_VERSION)
4095         (ATK_REQUIRED_VERSION): add variables and checks for specific 
4096         versions of dependencies. Previously we didn't verify the 
4097         Pango or ATk versions.
4098
4099 2001-09-09  Havoc Pennington  <hp@pobox.com>
4100
4101         * gtk/gtktextiter.c: fool with indentation
4102         (gtk_text_iter_in_range): add g_return_if_fail
4103
4104 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
4105
4106         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
4107         ref count on new tag to be 1.  Update doc.  (#60836)
4108
4109 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
4110
4111         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
4112         call to gdk_image_new_bitmap(). (#59094, reported by
4113         by Sven Neumann)
4114
4115 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
4116
4117         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
4118         day, as well as the current month and year.
4119         (#59047, reported by Vitaly Tishkov)
4120
4121 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
4122
4123         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
4124         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
4125         
4126 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
4127
4128         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
4129
4130         (build_option_menu): add func argument, connect ::changed
4131         signal to option menu instead of connecting the ::activate
4132         signal to the menu items,
4133
4134         (toplevel): get rid of RADIOMENUTOGGLED macro,
4135
4136         (list_toggle_sel_mode), (clist_toggle_sel_mode),
4137         (ctree_toggle_line_style), (ctree_toggle_expander_style),
4138         (ctree_toggle_justify), (ctree_toggle_sel_mode),
4139         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
4140         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
4141
4142         (notebook_type_changed): merged standard_notebook(),
4143         notabs_notebook(), scrollable_notebook() and borderless_notebook()
4144         into notebook_type_changed()
4145
4146         (create_list), (create_ctree), (create_notebook),
4147         (create_progress_bar): changed OptionMenuItem arrays into
4148         gchar * arrays. Removed "Extended" item where used.
4149
4150         Fixes bug #59885
4151
4152 2001-09-20  Sven Neumann  <sven@gimp.org>
4153
4154         * configure.in
4155         * gdk/Makefile.am
4156         * gtk/Makefile.am
4157         * gtk/gtkselection.c
4158         * gtk/gtktreeview.c
4159         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
4160
4161 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
4162
4163         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
4164         a missing pango_layout_iter_free ().
4165
4166 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
4167
4168         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
4169         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
4170
4171         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
4172         the function definition so we don't accidentally rely on
4173         the compat #define from gtk_radio_menu_item_group.
4174         (#60782, Jeff Franks)
4175
4176 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
4177
4178         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
4179         incorrect values for top, right and bottom due to cut-and-paste
4180         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
4181
4182 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
4183
4184         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
4185         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
4186         window, not just on the client leader. (#58463)
4187
4188 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
4189
4190         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
4191
4192         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
4193         non-public _gtk_menu_item_set_placement.
4194
4195         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
4196
4197 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
4198
4199         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
4200           gdk/linux-fb/gdkcolor-fb.c:
4201         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
4202         (#59723)
4203
4204 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
4205
4206         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
4207         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
4208         #59723)
4209
4210 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
4211
4212         Patch from Frank Belew #59037 for Solaris compilation.
4213
4214         * gtk/maketypes.awk: Change syntax slightly for a call
4215         to sub(), apparently making awk on Solaris happier.
4216
4217         * gtk/gtktreeview.c: Remove C++ comments.
4218
4219 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
4220
4221         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
4222         to handle '99% of the time. (#60473, reported by Christian Rose)
4223
4224         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
4225         which no longer exists. (#60379, reported by Vitaly Tishkov)
4226
4227 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
4228
4229         * Released 1.3.8.
4230
4231         * gdk/Makefile.am: kill EXTRA_DIST clearing.
4232         
4233 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
4234
4235         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
4236         as its broken in automake 1.4, add explicit object rule to
4237         generate this.
4238         
4239         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
4240         get rid of uneccessary stamps, group stuff more logically, and build
4241         sources due to object rules. fix srcdir!=builddir.
4242
4243 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
4244
4245         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
4246         incorrect parameter to compute_double_length
4247         (#58680, patch from Matthias Clasen)
4248
4249         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
4250
4251         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
4252
4253         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
4254         for GDK_RELEASE_MASK to avoid warnings with Forte.
4255
4256         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
4257         break; statements.
4258
4259 2001-09-18  Alex Larsson  <alexl@redhat.com>
4260
4261         * gtk/gtkcheckbutton.c:
4262         * gtk/gtkradiobutton.c:
4263         Don't draw with GTK_STATE_ACTIVE.
4264
4265         * gtk/gtkclist.c:
4266         * gtk/gtkctree.c:
4267         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
4268
4269         * gtk/gtktextdisplay.c:
4270         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4271         unfocused with base_gc [GTK_STATE_ACTIVE].
4272         
4273         * gtk/gtkentry.c:
4274         Add select all menu-item.
4275         Default cursor color is red.
4276         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4277         unfocused with base_gc [GTK_STATE_ACTIVE].
4278
4279         * gtk/gtklabel.[ch]:
4280         Add keynav + menu to selectable lables.
4281         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
4282         unfocused with base_gc [GTK_STATE_ACTIVE].
4283
4284         * gtk/gtkfilesel.c:
4285         Add drag and drop support.
4286
4287         * gtk/gtkstyle.c:
4288         (This was checked in earlier)
4289         New default values for text/base SELECTED and ACTIVE
4290         
4291 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
4292
4293         * configure.in: up version to 1.3.8, interface age 0,
4294         binary age 0, depend on glib 1.3.8.
4295
4296         * NEWS: 1.3.8 updates.
4297
4298 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
4299
4300         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
4301         the editing code
4302
4303         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
4304         reason to call it beyond emiting the two signals.
4305
4306         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
4307         to GtkEntry.
4308
4309 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
4310
4311         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
4312           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
4313         PangoFontDescription.
4314
4315         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
4316         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
4317         structure.
4318   
4319         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
4320
4321         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
4322         direct access to style->font. Deprecate gtk_style_ref/unref.
4323   
4324         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
4325         Remove gtk_style_ref/unref with g_object_ref/unref.
4326   
4327         * gtk/gtkcalendar.c: Remove leftover macros accessing
4328         style->font.
4329   
4330         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
4331         variable.
4332   
4333         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
4334         style->font.
4335
4336 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
4337
4338         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
4339         "can_activate" properties in favor of
4340         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
4341         and GTK_CELL_RENDERER_MODE_EDITABLE
4342
4343 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
4344
4345         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
4346         editable widgets.  This function is private, and should only be
4347         used by GtkTreeView.
4348
4349 2001-09-18  Matt Wilson  <msw@redhat.com>
4350
4351         * docs/Makefile.am (EXTRA_DIST): don't use += before =
4352
4353         * docs/faq/Makefile.am (EXTRA_DIST): likewise
4354
4355         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
4356         
4357         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
4358         (EXTRA_HEADERS): likewise
4359
4360         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
4361         (EXTRA_HEADERS): likewise
4362         (EXTRA_DIST): likewise
4363         (CLEANFILES): likewise
4364
4365         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
4366
4367         * tests/Makefile.am (EXTRA_DIST): likewise
4368         
4369         * Makefile.am (install-data-local): changed to use
4370         install-data-hook, which runs after install-pkgconfigDATA, so that
4371         the pkgconfigdir will have been created and populated first.
4372
4373 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
4374
4375         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
4376         be the last big GtkTreeView API change.
4377
4378         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
4379         replace with "activate" and "start_editing".  Also, added a
4380         "can_activate" and "can_edit" property.
4381
4382         * gtk/gtktreeviewcolumn.c: modify to use above.
4383
4384 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
4385
4386         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
4387
4388 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
4389
4390         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
4391         icon instead of one with ugly white background.
4392
4393 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
4394
4395         * demos/gtk-demo/stock_browser.c (id_to_macro): make
4396         the uppercasing work. (#59550)
4397
4398 2001-09-14  Jakub Steiner <jimmac@ximian.com>
4399
4400         * gtk/stock-icons/dialog_error.png:
4401         * gtk/stock-icons/dialog_question.png: more road signs
4402
4403 2001-09-13  Jakub Steiner <jimmac@ximian.com>
4404
4405         * gtk/stock-icons/dialog_question.png:
4406         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
4407           like a road sign.
4408
4409 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
4410
4411         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
4412         signals to make them more clear.  Also, change ::range_changed to
4413         ::row_changed.
4414         * gtk/gtktreemodel.c: Adjust to interface change
4415         * gtk/gtktreemodel.h: ditto
4416         * gtk/gtktreemodelsort.c: ditto
4417         * gtk/gtktreestore.c: ditto
4418         * gtk/gtkliststore.c: ditto
4419         * gtk/gtktreeview.c: ditto
4420         * tests/testtreecolumns.c: ditto
4421         * gtk/gtkmarshal.list: Actually remove a marshaller!
4422
4423 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
4424
4425         * gtk/gtktextview.c
4426         Add support for Ctrl+Up/Down arrow to move cursor to beginning
4427         of previous/next paragraph. If within a paragraph cursor moves to
4428         beginning of that paragraph.
4429
4430 2001-09-12  Jakub Steiner <jimmac@ximian.com>
4431
4432         * gtk/stock-icons/dialog_question.png: replacing the shaky
4433           question mark with a sans-serif one.
4434         * gtk/stock-icons/stock_top.png, stock_bottom.png,
4435      stock_first.png, stock_last.png: using the new style arrows
4436         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
4437      colors.
4438         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
4439      color.
4440         * gtk/stock-icons/stock_zoom*: anti-aliased
4441         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
4442      '-' with a '_', removed the wrong files
4443
4444 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
4445  
4446         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
4447  
4448         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
4449         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
4450         than in gtk-2.0/major.minor.micro/<type>/. This
4451         works better for a search path for modules.
4452  
4453         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
4454         gtk_binary_version variable holding major.minor.(micro-binary_age).
4455  
4456         * modules/input/Makefile.am (moduledir): Fix installation
4457         directory to match change in lookup location.
4458  
4459         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
4460         suffixes. Needs to be handled in g_module_build_path().
4461
4462         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
4463         appropriate.
4464  
4465 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
4466
4467         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
4468         causing RC properties not to work.
4469
4470 2001-09-11  Jakub Steiner <jimmac@ximian.com>
4471
4472         * gtk/stock-icons/dialog-error.png: less drastic
4473         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
4474           "STOP" is international enough.
4475         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
4476         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
4477
4478 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
4479
4480         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
4481         (add|remove)_selection_clipboard symmetric. (bug #59836)
4482
4483         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
4484         Avoid SEGV for empty tree. (bug #60243)
4485
4486 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
4487
4488         * tests/testgtk.c (create_idle_test): slight fix for
4489         g_object_set() not usable for nesting anymore.
4490
4491         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
4492         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
4493         properties, supply ::shadow_type properties instead as most
4494         other widgets do.
4495
4496 2001-09-10  Alex Larsson  <alexl@redhat.com>
4497
4498         * demos/gtk-demo/stock_browser.c:
4499         * gdk/gdkcolor.c:
4500         * gdk/gdkfont.c:
4501         * gdk/gdkcursor.c:
4502         * gdk/gdkevents.c:
4503         * gdk/gdkrectangle.c:
4504         * gtk/gtktypeutils.c:
4505         Update to use the new g_boxed_type_register_static API.
4506
4507 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
4508
4509         * gtk/gtktreestore.c:
4510         Fix looping in gtk_tree_store_init() waiting for zero random int.
4511
4512 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
4513
4514         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
4515         behaviour which havoc broke. they have to default to 1.0 for
4516         expand behaviour.
4517
4518         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
4519
4520 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
4521
4522         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
4523         Amend previous change to avoid runtime error in g_param_spec_ref()
4524
4525 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
4526
4527         * gtk/gtkrc.c (insert_rc_property): Fix blank line
4528         in the wrong place.
4529
4530 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
4531
4532         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
4533         do a lookup immediately after creating style->property_cache,
4534         since bsearch crashes on zero length for Solaris.
4535         (Found by Padraig O'Briain.)
4536
4537 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
4538
4539         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
4540         Really return NULL if not set.
4541         (gtk_widget_init): Remove unused varaible.
4542         
4543 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
4544
4545         * configure.in:
4546         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
4547         in cvs.
4548
4549 2001-09-08  Havoc Pennington  <hp@pobox.com>
4550
4551         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
4552         people might want to use
4553
4554 2001-09-08  Havoc Pennington  <hp@pobox.com>
4555
4556         * gtk/gtkalignment.c (gtk_alignment_class_init): default
4557         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
4558
4559         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
4560
4561         * gtk/gtktextiter.c: fix docs
4562         (gtk_text_iter_spew): get rid of this
4563
4564         * gtk/gtklayout.c: docs
4565
4566         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
4567         to center image and label together, instead of having image on
4568         left and label centered, patch/suggestion from Jacob
4569
4570         * gtk/gtkdialog.c: docs
4571
4572 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
4573
4574         * gtk/gtkliststore.c: Write documentation
4575         * gtk/gtktreestore.c: Write documentation
4576
4577 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
4578
4579         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
4580         with GArray and bsearch(), to remove dependency on a still
4581         evolving interface that we want to keep private to glib/gobject. 
4582
4583 2001-09-08  Havoc Pennington  <hp@pobox.com>
4584
4585         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
4586         docs fixes
4587
4588         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
4589
4590         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
4591
4592         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
4593
4594         * gtk/gtkscrolledwindow.h: docs fixes
4595
4596         * gtk/gtkimage.c (gtk_image_new): docs fixes
4597
4598 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
4599
4600         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
4601         false alarm  constness warning with a cast.
4602
4603         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
4604         for the inside-gdk case.
4605
4606 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
4607
4608         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
4609         remove g_print.
4610
4611         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
4612         change models, #59899
4613
4614 2001-09-07  Havoc Pennington  <hp@pobox.com>
4615
4616         * gtk/gtkmain.c: move some docs inline
4617
4618 2001-09-07  Havoc Pennington  <hp@pobox.com>
4619
4620         * gtk/gtk.h: tsk tsk, jrb broke the build
4621
4622 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
4623
4624         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
4625         Removed 'fill' attribute.  It was silly b/c that was a property of
4626         the cell renderer, anyway.
4627         (gtk_tree_view_column_render): Actually render the packed
4628         renderers.
4629         * doc/tree-column-sizing.txt: initial devel documentation.
4630         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
4631         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
4632
4633         * tests/testtreefocus.c: fix up to reflect above changes.
4634         * tests/testtreeview.c: ditto
4635         * demos/gtk-demo/stock_browser.c: ditto
4636
4637 2001-09-07  Alex Larsson  <alexl@redhat.com>
4638
4639         * gdk/linux-fb/gdkcolor-fb.c:
4640         Removed unused function.
4641         
4642         * gdk/linux-fb/gdkdrawable-fb2.c
4643         * gdk/linux-fb/gdkfont-fb.c:
4644         Use PangoLanguage functions.
4645
4646         * gdk/linux-fb/gdkinput.c:
4647         * gdk/linux-fb/gdkselection-fb.c:
4648         Fix const warnings.
4649         
4650         * gdk/linux-fb/gdkwindow-fb.c:
4651         Fix warning. Implement gdk_window_set_icon_list() and
4652         gdk_window_get_frame_extents(). (No icon support yet though.)
4653
4654         * gtk/gtkwindow.c (gtk_window_get_position):
4655         If window->frame is set get the extents of it instead.
4656         
4657 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
4658
4659         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
4660         Make the default default colormap the GdkRGB colormap,
4661         not the system colormap.
4662
4663         * gtk/gtkinvisible.c (gtk_invisible_init) 
4664           gtk/gtkwindow.c (gtk_window_init): Set the current
4665         colormap, as returned by _gtk_widget_peek_colormap()
4666         on the widget.
4667
4668         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
4669         to GTK+. Make it return %NULL instead of the default
4670         colormap if no colormap has explicitely been pushed.
4671
4672         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
4673         colormaps on ancestral widgets before defaulting the
4674         the system default colormap.
4675
4676         * docs/Changes-2.0.txt: explain colormap changes.
4677
4678 2001-09-07  Havoc Pennington  <hp@redhat.com>
4679
4680         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
4681         #57424
4682
4683 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
4684
4685         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
4686         make gdk_set_use_xshm a noop. Remove --no-xshm command line
4687         option. If we aren't autodetecting properly, we need
4688         to fix the problem, or at least make it an environment
4689         variable setting, to avoid problems with propagating
4690         to embedded children, plugins, etc.
4691
4692         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
4693
4694         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
4695         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
4696         New function to render a pixmap and mask for a particular colormap.
4697
4698         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
4699         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
4700         of internal implementation of the same.
4701
4702 2001-09-07  Havoc Pennington  <hp@redhat.com>
4703
4704         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
4705         debug code that seems to have caused a breakpoint in valid cases
4706         
4707         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
4708         pointer on the first view when adding the second view, fixes
4709         crash when closing gtk-demo text test with active selection
4710
4711         * gtk/gtktextbuffer.c
4712         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
4713         clipboards in the list of clipboards - probably fixes #59836
4714
4715 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
4716
4717       Make gdkx.h the only installed header from gdk/x11.
4718       All structures in gdk/x11 are opaque.
4719
4720         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
4721         Don't install gdk{drawable,pixmap,window}-x11.h.
4722
4723         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
4724         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
4725         GdkVisualClass into C files.
4726
4727         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
4728
4729         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
4730         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
4731         Add public functions to replace previously exported direct
4732         structure access.
4733         gdk_x11_colormap_get_{xdisplay,xcolormap} 
4734         gdk_x11_cursor_get_{xdisplay,xcursor},
4735         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
4736         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
4737         gdk_x11_gc_get_{xdisplay,ximage}
4738         
4739         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
4740         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
4741
4742       Fix a number of variables and functions that were exported
4743       "accidentally" from GDK.
4744
4745         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
4746         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
4747         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
4748         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
4749         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
4750         gdk_event_queue_find_first, gdk_event_queue_remove_link,
4751         gdk_event_queue_append, gdk_event_button_generate,
4752         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
4753
4754         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
4755            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
4756         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
4757         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
4758         gdk_use_xshm, gdk_input_ignore_core.
4759
4760         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
4761         #defines to namespace functions into the private _gdk_ 
4762         namespace.
4763
4764         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
4765         to replace gdk_parent_root exported variable. Adjust and
4766         deprecate GDK_ROOT_PARENT().
4767
4768         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
4769         GDK_ROOT_PARENT usage, remove includes of port-specific
4770         headers.
4771
4772         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
4773         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
4774         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
4775
4776         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
4777         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
4778         gdk_wm_delete_window functions, gdk_wm_take_focus, 
4779         use gdk_atom_intern() instead.
4780
4781         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
4782           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
4783           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
4784           gtk/gtkselection.c 
4785         Unexport gdk_selection_property, just use 
4786         gdk_atom_intern ("GDK_SELECTION").
4787
4788         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
4789         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
4790         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
4791         GdkVisualprivate, gdk_x11_gc_flush.
4792
4793       Make a number of public exports of variables into functions
4794       to increase encapsulation.
4795
4796         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
4797         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
4798         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
4799
4800         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
4801         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
4802         gdk_error_warnings.
4803
4804         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
4805           docs/Changes-2.0.txt: 
4806         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
4807         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
4808         Add gdk_x11_get_default_xdisplay().
4809
4810         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
4811         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
4812         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
4813         Don't export gdk_progclass, move --class command line
4814         option and handling to common portion of GDK.
4815
4816       Miscellaneous fixes:
4817
4818         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
4819         g_return_val_if_fail that should have been g_return_if_fail.
4820
4821         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
4822         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
4823
4824         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
4825         X11 dependency.
4826
4827         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
4828         Remove unused gdk_key_repeat_disable/restore.
4829
4830         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
4831         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
4832         Remove unused gdk_null_window_warnings variable.
4833
4834         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
4835         it can be retrieved from the repository; it is too far
4836         from functional to be worth having people check out;
4837         it would be easier to start from scratch, I suspect.
4838
4839         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
4840
4841         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
4842         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
4843         Fix some accidentally global variables and unused global variables.
4844
4845         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
4846         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
4847         Fix some accidentally global variables and unused global variables.
4848
4849       Add some space for future expansion to multihead.
4850
4851         * gdk/gdkdrawable.h: Add four reserved function pointers
4852         for future expansion of GdkDrawableClass.
4853
4854         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
4855         where we can put a GdkScreen * later.
4856
4857 2001-09-07  Havoc Pennington  <hp@redhat.com>
4858
4859         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
4860         adjustments after validating destination yrange; fixes #53918
4861         (This may cause other issues, but I hope it won't)
4862         
4863 2001-09-05  Havoc Pennington  <hp@redhat.com>
4864
4865         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
4866         line into start line, update the character counts in parent nodes; 
4867         caused a bug when end and start line had different parent nodes.
4868
4869 2001-08-30  Havoc Pennington  <hp@redhat.com>
4870         
4871         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
4872         assertion that tag is in a table
4873
4874 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
4875
4876         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
4877         g_strcasecmp on NULL strings. (#59058)
4878
4879 2001-09-06  Alex Larsson  <alexl@redhat.com>
4880
4881         * gtk/gtkbin.c:
4882         * gtk/gtkfontsel.c:
4883         * gtk/gtkspinbutton.c:
4884         * gtk/gtktipsquery.c:
4885         Use GtkType/GType instead of uint.
4886
4887 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
4888
4889         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
4890         sort column.
4891
4892         * gtk/gtktreestore.c (gtk_list_store_init): ditto
4893
4894         * gtk/gtktreesortable.c: add docs.
4895
4896 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
4897
4898         * Version 1.3.7
4899
4900         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
4901         docs for gtk-config
4902
4903         * modules/input/Makefile.am (install-data-local): Don't
4904         run gtk-query-immodules if DESTDIR is set.
4905
4906         * NEWS: Various additions.
4907
4908 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
4909
4910         * NEWS: updates for 1.3.7 release.
4911
4912 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
4913
4914         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
4915         handle default sort feature
4916
4917         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
4918         new function to handle default sort.
4919         (gtk_tree_sortable_has_default_sort_func): check if default sort
4920         is set.
4921
4922         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
4923         handle default sort feature
4924
4925 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
4926
4927         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
4928         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
4929         #59731
4930
4931 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
4932
4933         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
4934         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
4935         time, #59727
4936
4937         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
4938         correctly.
4939
4940 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
4941
4942         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
4943         so that we don't eternally update the keymap after we
4944         get a change notification.
4945
4946         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
4947         incorrect cast.
4948
4949 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
4950
4951         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
4952         it working. It mostly works now, although there're still a few issues
4953         to be worked out.
4954
4955         * tests/testtreesort.c (main): changes to have a better test
4956         application for the GtkTreeModelSort.
4957
4958 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
4959
4960         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
4961         fix for bug #59222.
4962
4963         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
4964         gpointer search_data argument to function definition and
4965         prototype, to match GtkTreeViewSearchEqualFunc typedef.
4966
4967 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
4968
4969         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
4970         per jrb's request.
4971
4972 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
4973
4974         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
4975
4976         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
4977
4978 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
4979
4980         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
4981         Instead of always mirroring the selection to a single PRIMARY
4982         selection, allow it to be mirrored to any number of clipboards.
4983
4984         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
4985         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
4986
4987         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
4988         GtkClipboard argument, and for paste_clipboard, the
4989         @override_location argument from @paste_primary.
4990
4991         * gtk/gtktextview.c: Adapt to above change.
4992         
4993 2001-08-30  Havoc Pennington  <hp@redhat.com>
4994
4995         * gtk/gtktextview.c (invalidated_handler): put validate idle at
4996         resize - 2 just for flexibility
4997
4998 2001-08-30  Havoc Pennington  <hp@redhat.com>
4999
5000         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
5001         object from the empty-child-anchor case by drawing a little box.
5002         
5003         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
5004         if the child anchor has no anchored widgets - fixes #59328.
5005
5006         Also, remove bizarre deletion of preedit string that seems to have
5007         gotten in here somehow.
5008
5009 2001-08-30  Havoc Pennington  <hp@redhat.com>
5010
5011         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
5012         to #58420 from Hidetoshi Tajima and Matthias Clasen
5013
5014 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
5015
5016         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5017         change color when the GtkTreeView loses focus.
5018
5019         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
5020         ditto.
5021         
5022         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
5023
5024 2001-08-28  Havoc Pennington  <hp@pobox.com>
5025
5026         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
5027
5028 2001-08-28  Havoc Pennington  <hp@pobox.com>
5029
5030         * demos/gtk-demo/main.c (setup_default_icon): add default icon
5031
5032         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
5033         warning fix
5034         (gtk_radio_button_new_with_label): warning fix
5035
5036         * gtk/gtkdnd.c: used some random GtkImage private structs, 
5037         update to reflect GtkImage changes
5038
5039         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
5040         whether the hint is supported, just always set the icon. A task
5041         list might want to use it even if the WM doesn't, and the WM may
5042         change over time. Also, XDeleteProperty() if list == NULL.
5043
5044         * gtk/gtkwindow.c (gtk_window_set_icon_list)
5045         (gtk_window_get_icon_list)
5046         (gtk_window_set_icon)
5047         (gtk_window_get_icon)
5048         (gtk_window_set_default_icon_list)
5049         (gtk_window_get_default_icon_list):
5050         new functions
5051
5052         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
5053
5054         * gtk/gtkimage.c: Implement property support, bug #59408
5055
5056         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
5057         on reparent-without-removing-first a bit more helpful.
5058         Let's just destroy this FAQ.
5059
5060 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
5061
5062         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
5063         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
5064
5065 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
5066
5067         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
5068         of use_text_format to the end of the function. (#56447)
5069
5070 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
5071
5072         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
5073         only in response to an area_prepared signal.
5074
5075 2001-08-28  Alex Larsson  <alexl@redhat.com>
5076
5077         * gtk/gtkwidget.c (gtk_widget_class_init):
5078         Make unrealize GTK_RUN_LAST.
5079
5080 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
5081
5082         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
5083         with_label and with_mnemonic should create radio buttons, not
5084         check buttons
5085
5086 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
5087
5088         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
5089         * tests/treestoretest.c (make_window): ditto
5090         * demos/gtk-demo/main.c (create_tree): ditto
5091         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
5092
5093 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
5094
5095         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
5096         GTK selection types rather than GtkTreeSelectionMode.
5097
5098         * docs/Changes-2.0: Add comment about selection change.
5099
5100 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
5101
5102         * gtk/gtkenums.h (GtkSelectionMode): deprecate
5103         GTK_SELECTION_EXTENDED.
5104
5105         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
5106         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
5107
5108         * gtk/gtkctree.c: ditto
5109
5110         * gtk/gtklist.c: ditto
5111
5112         * gtk/gtktree.c: ditto
5113
5114 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
5115
5116         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
5117         of typos in compat macros. (#59624, Skip Montaro)
5118
5119 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
5120
5121         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
5122         macro.
5123
5124          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
5125  
5126         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
5127         interface to be a standard setter from gtk_menu_item_right_justify.
5128         (gtk_menu_item_get_right_justified): a getter to go with the setter
5129
5130         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
5131         gtk_menu_item_right_justify.
5132
5133         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
5134         gtk_menu_item_set_right_justified.
5135  
5136 2001-08-27  Jens Finke <jens@gnome.org>
5137
5138         * gtk+.spec.in: Updated to match gpp requirements, reworked the
5139         files section to make it work with 1.3.x releases.
5140
5141 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
5142
5143         * gtk/gtkbutton.[ch]:
5144         Add properties for labels, mnemonics and stock items.
5145         Added C accessor functions for the properties.
5146         Removed deprecated button->child.
5147
5148         * gtk/gtkradiobutton.c:
5149         * gtk/gtktogglebutton.c:
5150         Update to use the functions in GtkButton.
5151
5152         * gtk/gtkcheckbutton.c:
5153         Update to use the functions in GtkButton.
5154         Changed size allocation of child. Now only gets as much
5155         space as it requests.
5156
5157         * gtk/gtkclist.c:
5158         Don't use GtkButton->child
5159
5160         * gtk/gtklabel.c:
5161         Fixed typo in docs
5162         
5163 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
5164
5165         * tests/testgtk.c:
5166         * tests/Makefile.am:
5167         Ressurect the properties test.
5168         I don't care if it is inferior, I just want to test my property code.
5169
5170 2001-08-25  Chema Celorio  <chema@celorio.com>
5171
5172         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
5173         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
5174         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
5175
5176 2001-08-24  Havoc Pennington  <hp@pobox.com>
5177
5178         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
5179         these are already in gtkmenu.h, and the copies
5180         here were broken.
5181
5182         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
5183
5184         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
5185         special-case bitmaps to allow no colormap
5186         (bitmap1): implement no-colormap bitmap-getting
5187         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
5188         alpha
5189         (rgb8): indentation
5190         (rgb1a, rgb1): change the way we read the data out of the image, 
5191         old way didn't seem to work quite right.
5192
5193         I'm pretty sure a lot of the rgbconvert code is still broken.
5194         
5195         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
5196         above position constraint (I really intended to do this before,
5197         don't know what's up with that)
5198         (gtk_XParseGeometry): shut up gcc
5199
5200         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
5201         and "0" should have been. remove the attempted 4-bytes-at-once
5202         optimization, it was totally broken.
5203
5204 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
5205
5206         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
5207         on push to buttons (based on patch from Soeren Sandmann, #54720)
5208
5209           - Add child_displacement_x/y style properties to control how far the
5210             child moves when the button is depressed.
5211
5212           - Add non-exported function _gtk_button_set_depressed to clean
5213             up the handling of the in/out shadow and separate it frmo
5214             widget->state.
5215
5216           - Lots of code cleanup and simplification of state handling
5217             for GtkButton/GtkToggleButton.
5218  
5219         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
5220         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
5221
5222 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
5223
5224         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
5225         and make gtk_image_new() take no arguments. The compiler will
5226         catch it, and it is vastly more useful than having
5227         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
5228
5229         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
5230         to add tearoff-title property (#51319, Lee Mallabone)
5231
5232 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
5233
5234         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
5235         gtk_menu_item_configure(). (#58925)
5236
5237 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
5238
5239         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
5240         "use_align" to give people the option to just make a cell visible.
5241
5242         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
5243         we were scrolling past the end of the tree.
5244
5245         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
5246         rename gtk_tree_view_column_pack_start_cell_renderer to
5247         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
5248
5249 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
5250
5251         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
5252         a stray g_object_ref() left over from gtk_object_ref/sink.
5253         (Pointed out by Josh Pritikin.)
5254
5255 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
5256
5257         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
5258         to gtk_container_get_children. Added deprecated compatibility
5259         macro. (Suggested by Vitaly Tishkov, #59051)
5260
5261         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
5262         calls.
5263
5264 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
5265
5266         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
5267         gtk_menu_bar_append/prepend/insert, forgot to do this
5268         when we deprecated gtk_menu_append/prepend/insert.
5269
5270         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
5271         compat macros.
5272
5273         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
5274         renamed by compat macro.
5275
5276         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
5277         gtk_font_selection_dialog_get_font(). (Suggested by
5278         Vitaly Tishkov, #59383)
5279
5280 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
5281
5282         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
5283         Rename from gtk_text_tag_table_size(). (#59366)
5284
5285 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
5286
5287         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
5288         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
5289         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
5290         (#59173).
5291
5292 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
5293
5294         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
5295         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
5296         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
5297
5298 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
5299
5300         [ Patch from Sebastian Wilhelmi, 52790 ]
5301
5302         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
5303
5304         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
5305         Move compatibility macros from g[dt]kcompat.h to within 
5306         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
5307
5308         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
5309
5310         * demos/Makefile.am demos/gtk-demo/Makefile.am 
5311           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
5312           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
5313
5314         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
5315                  testpixbuf.c}: Fix usages of deprecated functions.
5316
5317 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
5318
5319         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
5320         when changing models.
5321
5322 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
5323
5324         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
5325         We check the current event for modifiers rather than try to trap
5326         all presses.
5327
5328 2001-08-22  Anders Carlsson  <andersca@gnu.org>
5329
5330         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
5331         It's LIST_STORE, not LISTSTORE.
5332
5333 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
5334
5335         * gtk/gtk.h: Remove commented out gtkpacker reference.
5336
5337 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5338
5339         * configure.in (all_loaders): Add tga loader, 
5340         patch by Nicola Girardi. (#56067)
5341
5342 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
5343
5344         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
5345         a little.  More needs to be done tomorrow.
5346
5347 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
5348
5349         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
5350
5351 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
5352
5353         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
5354         reported by Kristian Rietveld <kristian@planet.nl> to handle row
5355         == NULL.
5356         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
5357         <kristian@planet.nl> to change destroy order.
5358
5359 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
5360
5361         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
5362         correct marshaller.
5363
5364 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
5365
5366         * gtk/gtkliststore.c: Fix up warnings, #58928.
5367
5368         * gtk/gtktreeselection.h: Change signal prototype, #58647
5369
5370         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
5371         #59221.
5372
5373         * gtk/gtkstyle.c: Actually prelight arrow, #50981
5374         
5375 2001-08-18  Hans Breuer  <hans@breuer.org>
5376
5377         * gdk/gdk.def : updated externals
5378
5379         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
5380         is required to get (at least) visible in entry fields. Some selections
5381         are really handled now - even on win32 - but copying via middle
5382         mouse button into a different app needs to wait ... 
5383
5384         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
5385         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
5386
5387         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
5388         handling. I'm not sure if it is better now, but at least not worse
5389
5390         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
5391         with SetWindowPos () which allows more fine-tuning backing-store wise
5392
5393         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
5394         Also changed move/resize to be more like the X version.
5395
5396         * gtk/gtk.def : updated externals
5397
5398 2001-08-19  Sven Neumann  <sven@gimp.org>
5399
5400         * gtk/gtktooltips.c
5401         * tests/testtreesort.c
5402         * tests/treestoretest.c: inserted some casts to get rid of compiler
5403         warnings.
5404
5405 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
5406
5407         * gtk/gtktreeviewcolumn.c
5408         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
5409
5410         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
5411         (_gtk_tree_view_find_node): If *node is NULL,
5412         *tree should be NULL too.
5413
5414         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
5415         column/renderers.
5416         * tests/testtreecolumns.c: ditto
5417         * tests/testtreefocus.c: ditto
5418         * tests/testtreesort.c: ditto
5419         * tests/testtreeview.c: ditto
5420         * tests/treestoretest.c: ditto
5421
5422 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
5423
5424         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
5425         signals; is_expander/is_expanded.
5426
5427         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
5428         pixbufs.
5429
5430         * gtk/gtktreeview.c: set above properties.
5431
5432 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
5433
5434         * gtk/gtkwidget.h: Really remove set_default_style().
5435
5436         * docs/Changes-2.0.txt: added a note about
5437         gtk_widget_push/pop/set_default_style.
5438
5439 2001-08-18  Havoc Pennington  <hp@pobox.com>
5440
5441         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
5442         hints_changed in addition to the other cases.
5443         (gtk_window_move_resize): include last position from configure
5444         notify in debug spew
5445
5446 2001-08-18  James Henstridge  <james@daa.com.au>
5447
5448         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
5449         second argument to the weak ref notify, cleaning up some uglyness.
5450         (gtk_accel_group_attach): remove and add the weak notifier when
5451         changing the accel groups slist.
5452         (gtk_accel_group_detach): same here.
5453
5454 2001-08-17  Darin Adler  <darin@bentspoon.com>
5455
5456         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
5457         missing parameters to utf8 functions to make it compile.
5458
5459 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
5460
5461         * gtk/gtktreeprivate.h:
5462         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
5463         (gtk_tree_view_init), (gtk_tree_view_set_property),
5464         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
5465         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
5466         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
5467         (gtk_tree_view_set_destroy_count_func),
5468         (gtk_tree_view_set_enable_search),
5469         (gtk_tree_view_get_enable_search),
5470         (gtk_tree_view_get_search_column),
5471         (gtk_tree_view_set_search_column),
5472         (gtk_tree_view_get_search_equal_func),
5473         (gtk_tree_view_set_search_equal_func),
5474         (gtk_tree_view_search_dialog_destroy),
5475         (gtk_tree_view_search_position_func),
5476         (gtk_tree_view_interactive_search),
5477         (gtk_tree_view_search_delete_event),
5478         (gtk_tree_view_search_button_press_event),
5479         (gtk_tree_view_search_key_press_event),
5480         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
5481         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
5482         * gtk/gtktreeview.h:
5483         Add heavily modified patch from Kristian Rietveld to handle
5484         interactive searching.
5485
5486 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
5487
5488         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
5489         string parameter.
5490
5491         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
5492         GtkMenuShell::selection_done, now that we have it, instead of 
5493         ::deactivate so we're not tearing the menu apart and notify
5494         the user prematurely.
5495
5496 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
5497
5498         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
5499         window, clear window->need_default_position to avoid infinite loops.
5500         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
5501
5502 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
5503
5504         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
5505         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
5506         (gtk_tree_view_set_property): don't cast possible NULL objects.
5507         (gtk_tree_view_destroy): reset the model to NULL.
5508
5509         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
5510         parent_class handler.
5511
5512 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5513
5514         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
5515
5516 2001-08-17  Anders Carlsson  <andersca@gnu.org>
5517
5518         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
5519         point numbers so that the result will be floating point.
5520
5521 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5522
5523         * tests/testgtk.c (create_handle_box): 
5524         (create_toolbar): Replace gtk_window_set_policy calls by
5525         gtk_window_set_resizable.
5526
5527 2001-08-16  Jakub Steiner <jimmac@ximian.com>
5528
5529         * gtk/stock-icons/dialog_info.png: new style bulb
5530         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
5531         * gtk/stock-icons/dialog_warning.png: need a hand?
5532         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
5533           the aa border gets chopped off ok
5534         * gtk/stock-icons/stock_colorselector.png: using the new hand
5535         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
5536           this one is for, but the old icon was butt ugly.
5537         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
5538         * gtk/stock-icons/stock*_insert_object.png: "
5539         * gtk/stock-icons/stock_index.png: using new hand icon
5540         * gtk/stock-icons/stock*_new.png: the document template being used 
5541           elsewhere too
5542         * gtk/stock-icons/stock*_print*.png: new print and print preview 
5543           icons (panel/menu)  
5544         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
5545           icons based on Tuomas' floppy image.
5546         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
5547         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
5548         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
5549         * gtk/stock-icons/stock*_undelete.png: "
5550         * gtk/stock-icons/stock_preferences.png: I have a version with a 
5551           document base if the sliders are no good.
5552         * gtk/stock-icons/stock_properties.png: properties 
5553         
5554
5555         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
5556           (tigert@ximian.com) clipboard icons
5557         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
5558         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
5559         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
5560           little bigger IMHO
5561
5562 2001-08-16  Sven Neumann  <sven@gimp.org>
5563
5564         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
5565
5566 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
5567
5568         * gtk/gtkcellrenderertext.c:
5569         Avoid warning when specifying NULL for "attributes" property
5570
5571 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5572
5573         * docs/debugging.txt: Add a warning about --enable-debug=no,
5574         some editorial changes.
5575
5576 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5577
5578         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
5579         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
5580         debugging info, remove unused debug flags. (#58330)
5581
5582 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
5583
5584         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
5585         (gtk_tree_selection_select_all): Remove strict checking for rows.
5586
5587 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5588         
5589         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
5590         Don't remove the tooltip window when the tip text changes. (#15891)
5591
5592 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
5593
5594         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
5595         $(srcdir).
5596
5597 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
5598
5599         * Makefile.am (EXTRA_DIST): Fix problem with trying to
5600         dist files from intl/, which is no longer there.
5601
5602 2001-08-11  Hans Breuer  <hans@breuer.org>
5603
5604         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
5605           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
5606           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
5607           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
5608           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
5609           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
5610
5611         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
5612           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
5613         GDK_TYPE_EVENT signals
5614
5615         * gtk/gtkalignment.c : removed 'direct allocation bug',
5616         which Tim discovered while reading the patch
5617
5618 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
5619
5620         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
5621         compat macros for push/pop/set_visual that were supposed
5622         to be added a long time ago, but got dropped. 
5623
5624 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
5625
5626         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
5627         property notifies.
5628
5629 2001-08-07  Havoc Pennington  <hp@pobox.com>
5630
5631         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
5632
5633         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
5634         some fixage is needed here, but nothing simple. Owen understands
5635         it. ;-)
5636
5637         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
5638         sizing and positioning.  Also, fix bug in compute_geometry_hints
5639         (width/height confusion for setting min size). 
5640         (gtk_window_move): new function
5641         (gtk_window_resize): new function
5642         (gtk_window_get_size): new function
5643         (gtk_window_get_position): new function
5644         (gtk_window_parse_geometry): new function
5645         
5646         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
5647         (gtk_widget_get_size_request): new function
5648         (gtk_widget_get_usize): delete, that was a short-lived function
5649         ;-)
5650         (gtk_widget_set_usize): deprecate
5651         (gtk_widget_set_uposition): deprecate, make it a trivial 
5652         gtk_window_move() wrapper
5653         (gtk_widget_class_init): remove x/y/width/height properties,
5654         add width_request height_request
5655         
5656         * demos/*: update to avoid deprecated functions
5657         
5658         * gtk/gtklayout.c: add x/y child properties
5659
5660         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
5661         uses of "gint16"
5662
5663         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
5664         sizing test
5665
5666         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
5667         configure events on toplevel windows are always in root window
5668         coordinates, following ICCCM spec that all synthetic events 
5669         are in root window coords already, while real events are 
5670         in parent window coords. Previously the code assumed that 
5671         coords of 0,0 were parent window coords, which was 
5672         really broken.
5673   
5674         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
5675         warning
5676  
5677         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
5678         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
5679         hints in gtk_window_parse_geometry()
5680  
5681         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
5682         new USER_POS USER_SIZE hints    
5683
5684 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5685
5686         * tests/prop-editor.c (properties_from_type): Use 
5687         g_object_class_list_properties to get the param specs 
5688         for a given type. (#58609)
5689
5690 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5691
5692         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
5693         free the text_aa parts. (#57549)
5694
5695 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5696
5697         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
5698         not the foreground color. (#57621)
5699
5700 2001-08-09  Alexander Larsson <alexl@redhat.com>
5701
5702         * gdk/win32/gdkfont-win32.c:
5703         Update to the new pango win32 api.
5704
5705 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
5706
5707         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
5708         COMPOUND_TEXT instead of TEXT
5709         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
5710         interpret the return value of g_string_to_compound_text()
5711         (#55152)
5712
5713 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5714
5715         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
5716         fail if iter is NULL. (#58347)
5717
5718 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5719
5720         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
5721         some off-by-one issues, fixing selection of line-ends. (#50323)
5722
5723 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
5724
5725         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
5726         functions in order to make mouse operation work again in the
5727         color wheel. (#58604)
5728
5729 2001-08-07  James Henstridge  <james@daa.com.au>
5730
5731         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
5732         the accelerator when the accel object is changed.  Fixes bug
5733         #58628.
5734
5735 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
5736
5737         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
5738         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
5739         (gnome bugzilla #58202)
5740
5741 2001-08-06  Havoc Pennington  <hp@pobox.com>
5742  
5743         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
5744         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
5745         it was expecting a GdkWindow, not a GdkWindowImplX11.
5746  
5747         Also, we were getting the window rect in screen coords 
5748         and the screen rect in window coords then intersecting 
5749         them; instead, get window rect in window coords.
5750  
5751         Finally, there were codepaths that resulted in a stuck server grab
5752         (when the window was fully onscreen, or on gdk_image_new()
5753         failure); make the server ungrab thing a bit more
5754         robust/consistent.
5755
5756 2001-08-06  Sven Neumann  <sven@gimp.org>
5757
5758         * gdk/gdkpango.c (gdk_pango_context_destroy): 
5759         check if info->colormap != NULL before unref'ing it. It might have
5760         been set to NULL using gdk_pango_context_set_colormap().
5761
5762 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
5763
5764         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
5765         Fix conversion from float to int so that we don't get
5766         skew in the int => float => int roundtrip. 
5767         (#58120, reported by Vitaly Tishkov). Also fix problem
5768         where if no alpha was set, the returned alpha
5769         from (say) set_current_alpha() was returned as 1, not 65535.
5770
5771 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
5772
5773         * gtk/gtklist.c (gtk_list_clear_items): Fix
5774         problem with selecting a new focus child.
5775
5776         * gtk/gtklist.c (gtk_list_clear_items): Clear 
5777         list->undo/list_focus_child after unparenting
5778         child, since unparenting the child can result
5779         in list->last_focus_child being set. (#58024)
5780
5781         * Makefile.am (SUBDIRS): Add target specific pc
5782         files to DISTCLEANFILES.
5783
5784         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
5785         (58327, Matthias Clasen)
5786
5787 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
5788
5789         * tests/testgtk.c: Patch from Hans (with various modifications),
5790         to add the ability to use testgtk as a rough-and-ready
5791         benchmark. Try, 'testgtk --bench all:5' (if you want decent
5792         numbers, run without a window manager)
5793
5794 2001-08-04 Alexander Larsson <alexl@redhat.com>
5795
5796         * gdk/win32/gdkinput.c:
5797         Add #ifdef HAVE_WINTAB around wintab.h include.
5798
5799         * gtk/gtk.def:
5800         Removed marshals that have been moved to glib.
5801         Commented out plug and socket. They didn't compile for me 
5802         on win32.
5803
5804 2001-08-04  Hans Breuer  <hans@breuer.org>
5805
5806         * gtk/stocks-icons/makefile.msc : new file
5807         * gtk/makefile.msc.in : use it
5808
5809         * gtk/gtkstyle.c : not all platforms do provide M_PI and
5810         friends, but luckily there is G_PI
5811
5812         * gtk/gtk.def : updated
5813
5814         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
5815         windows WS_POPUP, but only those without a parent. This fixes the 
5816         mis-alignment between the selectable (temp, input only) window and 
5817         the window text of GtkLabel.
5818
5819         (gdk_window_show) : respect private->state when actually showing
5820         the window.
5821
5822         (gdk_window_set_transient_for) : Implementation from Wolfgang 
5823         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
5824         error handling. Should fix #50586.
5825
5826         * gdk/win32/gdkevents-win32.c : beautify log output
5827
5828 2001-08-04  Michael Natterer  <mitch@gimp.org>
5829
5830         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
5831         Need to show the image after adding it to the GtkImageMenuItem.
5832         This used to work without in testgtk because of the
5833         gtk_widget_show_all() at the end of the function.
5834         (Closes #54978).
5835
5836 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
5837
5838         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
5839         (gtk_notebook_set_child_property): fix finding of child's page,
5840         since we have to validly deal with labels and menus here as well.
5841         (gtk_notebook_get_child_property): fix warning.
5842         (gtk_notebook_class_init): property tab_pack is of type
5843         GTK_TYPE_PACK_TYPE (enum) not boolean.
5844         (gtk_notebook_find_child): don't always warn, we might be looking
5845         for a label or menu child.
5846         (gtk_notebook_map): fix mapping of panel.
5847
5848         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
5849         widget's mapped state, regardless of the value being set equals
5850         old settings, since things like REALIZED(parent) or MAPPED(parent)
5851         may have changed since the old value was set. make it an error to
5852         invoke this function on a toplevel widget.
5853
5854 2001-07-31  Darin Adler  <darin@bentspoon.com>
5855
5856         * gdk/gdkprivate.h:
5857         * gdk/x11/gdkx.h:
5858         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
5859
5860         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
5861         GTK_OBJECT.
5862
5863 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
5864
5865         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
5866         scoping error pointed out by matthiasc@poet.de.
5867
5868 2001-07-31  Sven Neumann  <sven@gimp.org>
5869
5870         * demos/gtk-demo/appwindow.c
5871         * demos/gtk-demo/item_factory.c
5872         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
5873
5874 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
5875
5876         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
5877         argument order for g_signal_has_handler_pending.
5878
5879 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
5880
5881         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
5882         instead of long deprecated g_scanner_stat_mode().
5883
5884 2001-07-29  Hans Breuer  <hans@breuer.org>
5885
5886         * gdk/makefile.msc : build in the backend dir after
5887         auto-generating files
5888
5889         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
5890         with code from win32-production-branch.
5891
5892         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
5893         before calling DestroyWindow, which indirectly calls 
5894         gdk_window_destroy_notify ()
5895
5896         (performance patch merged from win32-production-branch)
5897         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
5898         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
5899         R2_COPYPEN rop). It is claimed to be much faster.
5900
5901 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
5902
5903         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
5904         add an "attributes" property to the text renderer for ATK.
5905
5906 2001-07-26  Alex Larsson  <alexl@redhat.com>
5907
5908         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
5909         Initialize image->bits_per_pixel from the drawable, not from
5910         the root window.
5911
5912         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
5913         Fix cast. argument is an IMPL already.
5914
5915 2001-07-15  James Henstridge  <james@daa.com.au>
5916
5917         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
5918         (gtk_window_remove_accel_group): same here.
5919         (gtk_window_key_press_event): same here.
5920
5921         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
5922         (gtk_widget_remove_accelerator): same here.
5923         (gtk_widget_remove_accelerators): same here.
5924
5925         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
5926
5927         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
5928         instead of GtkObject.
5929
5930         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
5931         now takes GObjects.
5932
5933         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
5934         pass a GObject to gtk_accel_group_entries_from_object.
5935         (gtk_item_factory_create_item): s/accel_widget/accel_object/
5936
5937         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
5938
5939         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
5940
5941         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
5942         GObjects can have accelerators set now.  Add compatibility
5943         defines.
5944
5945         * gtk/gtkmarshal.list: add missing marshallers.
5946
5947         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
5948         accelerators on plain GObjects.  gtk_accel_group_object_destroy
5949         has been converted into a weak reference, and
5950         gtk_accel_group_delete_entries is now a destroy notify for that
5951         piece of data.
5952
5953 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
5954
5955         * gdk/gdkdraw.c: Added a check on the colormap depth to
5956         gdk_drawable_set_colormap()
5957         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
5958         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
5959         for pixmaps without visuals (more specifically, bitmaps)
5960         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
5961         doesn't set a colormap with the wrong depth
5962
5963
5964 2001-07-22  Anders Carlsson  <andersca@gnome.org>
5965
5966         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
5967         expander_height and expander_width properties with a single
5968         property, expander_size.
5969         (gtk_tree_view_init): Set the tab_offset to expander_size
5970         plus some padding.
5971         (gtk_tree_view_unrealize): Remove the expand/collapse
5972         timeout if it exists.
5973         (coords_are_over_arrow): Fix a small bug.
5974         (gtk_tree_view_motion_draw_column_motion_arrow): Use
5975         expander_size.
5976         (gtk_tree_view_draw_focus): Use "treeview" instead of
5977         "add-mode" as detail when drawing the focus.
5978         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
5979         instead of "add-mode" as detail when drawing the focus.
5980         (gtk_tree_view_deleted): If we have a node currently being
5981         expanded or collapsed, remove the timeout and set the node 
5982         to NULL.
5983         (gtk_tree_view_queue_draw_arrow): New function that just
5984         redraws the arrow of a node.
5985         (gtk_tree_view_draw_arrow): Use expander_size instead of
5986         expander_width/expander_height, also pass a different
5987         expander_style to gtk_paint_expander depending on the 
5988         state of the node being drawn.
5989         (expand_collapse_timeout): New function for expanding 
5990         or collapsing a node depending on the previous state.
5991         (gtk_tree_view_real_expand_row): Add timeout and set 
5992         correct state for node being expanded.
5993         (gtk_tree_view_real_collapse_row): Add timeout and set
5994         correct state for node being collapsed.
5995
5996         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
5997         information about the node currently being expanded or
5998         collapsed, and also a timeout id.
5999
6000         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
6001         with expander_style for draw_expander.
6002
6003         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
6004         expander_style.
6005         (create_expander_affine): New function for creating an 
6006         expander affine.
6007         (apply_affine_on_point): New function for applying an 
6008         affine to a point.
6009         (gtk_default_draw_expander): Modified to take expander_style
6010         instead of is_open, and to draw the rectangle rotated differently
6011         depending on the expander style.
6012         (gtk_paint_expander): Replace is_open with expander_style.
6013
6014         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
6015
6016         * gtk/gtkenums.h: Add expander style enum.
6017
6018 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
6019
6020         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
6021         value from gtk_tree_model_get_iter, the model might be empty.
6022
6023 2001-07-20  Hans Breuer  <hans@breuer.org>
6024
6025         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
6026         gdk/gdkinput.c like the other backends
6027
6028         * gdk/win32/gdkinput-win32.h :
6029         * gdk/win32/gdkinput.c :
6030         * gdk/win32/gdkvisual-win32.c :
6031         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
6032         GdkVisual GObjectification. UNTESTED for pen-devices because
6033         I simply have none.
6034
6035         * gdk/gdk.def :
6036         * gtk/gtk.def : updated externals
6037
6038         * gtk/gtkiconfactory.c :
6039         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
6040         before passing &error to functions to avoid strange crashes
6041         
6042         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
6043
6044         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
6045
6046         * gtk/makefile.msc.in : updated
6047
6048 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
6049
6050         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
6051         Add property support. (#51858)
6052
6053 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
6054
6055         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
6056         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
6057         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
6058
6059 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
6060
6061         * gtk/gtkcolorsel.c: Add propery support (roughly
6062         based on patch from Lee Mallabone, #51014)
6063
6064         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
6065         deprecated, since we already g_warning() on it.
6066
6067 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
6068
6069         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
6070         typo that sometimes caused selection not to work properly.
6071
6072         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
6073         entry when tabbing in. (#57743)
6074         
6075         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
6076         user drags up above or down below the entry, move
6077         to the end or the beginning of the entry. (Suggestion
6078         from Jay Cox, #50940)
6079
6080         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
6081         a current selection, then when moving by chars or
6082         words, move to the end of the selection rather than
6083         from entry->current_pos. (Suggestion from Jay Cox,
6084         #50942)
6085         
6086 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
6087
6088         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
6089         set window->decorated. (Patch from Hidetoshi Tajima,
6090         #55846)
6091
6092 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
6093
6094         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
6095         the widget/child realization/mapping invariants.
6096
6097         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
6098         gtk_widget_[get/set]_child_visible() to control
6099         whether visible children of a mapped window are
6100         mapped.
6101
6102         * docs/widget_system.txt: Updated for changes in
6103         container contract, and addition of GTK_CHILD_VISIBLE.
6104
6105         * gtk/gtkcontainer.c: Add generic map()/unmap()
6106         functions that work for almost all containers.
6107
6108         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
6109         gtk_widget_set_child_visible() where necessary.
6110
6111         * gtk/*.c: Remove excess map(), unmap(), and 
6112         realization/mapping invariant enforcing code
6113         from many containers.
6114
6115 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
6116
6117         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
6118         Get the foreground color from 'text', nor 'fg'. (#57568)
6119
6120 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
6121
6122         * gtk/*.c: Patch from Matthias Clasen to remove remove
6123         all instances of g_return_if_fail (foo != NULL); that are
6124         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
6125         since the second check catches the NULL anyways.
6126
6127 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
6128
6129         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
6130         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
6131         GDK_THREADS_ENTER()/LEAVE() pairs.
6132
6133         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
6134         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
6135         pairs. (Problem found by M. Meeks)
6136
6137 2001-07-18  Darin Adler  <darin@bentspoon.com>
6138
6139         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
6140         that we don't get a g_warning message every time we register a new
6141         icon size.
6142
6143         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
6144         using pixel variable of the correct type.
6145         
6146 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
6147
6148         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
6149         so that using X functions on a GdkWindow is possible, if
6150         a little hairy.
6151
6152         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
6153         and ts_origin of a GC, so that external parties can offset/restore
6154         a GC, when using gdk_window_get_internal_paint_info().
6155
6156 2001-07-17  Darin Adler  <darin@bentspoon.com>
6157
6158         * .cvsignore: Ignore the sgml directory made by gtkdoc.
6159         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
6160         instead of the deprecated gtk_window_set_policy.
6161         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
6162         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
6163         function to get rid of warning and some code too.
6164         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
6165         missing const.
6166         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
6167         unused local.
6168         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
6169         const.
6170         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
6171         (gdk_utf8_to_compound_text): Add missing const.
6172         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
6173         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
6174         cast and get rid of an unnecessary one.
6175         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
6176         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
6177         local.
6178         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
6179         Remove unused local.
6180         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
6181         missing const.
6182         * tests/testsocket.c: (add_child): Add cast so the printf format
6183         doesn't make us implicitly depend on what integer type
6184         gtk_socket_get_id returns.
6185         * tests/testtextbuffer.c: Add missing const.
6186         * tests/testtreefocus.c: (main): Remove unused local.
6187         * tests/treestoretest.c: (iter_remove): Remove unused local.
6188         (uppercase_value): Remove unused function.
6189         (make_window): Add statement to quiet the compiler's uninitialized
6190         variable warning.
6191
6192 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
6193
6194         * gtk/gtkrange.c:
6195         (second_timeout): 
6196         (initial_timeout): 
6197         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
6198         (gtk_range_calc_layout): compute the new layout based on an
6199         adjustment->value being passed in as argument.
6200         (gtk_range_button_press): for button2 slider warps, first recalc
6201         the layout, then adjust the value. also, use update_slider_position()
6202         for adjusting the value, so we keep pixel quantisation at which we
6203         usually operate (upon motion or button releases). the reason for this
6204         is that, we can't change the adjustment upon button2 presses to a non
6205         quantised value and upon button2 release re-quantise the value since
6206         that'd alter the value even if we didn't get any motion events (causing
6207         unexpected scroll area warps upon release and/or slider pixel-jitter).
6208         (gtk_range_motion_notify): update the slider position from queried
6209         coordinates, not event coordinates.
6210
6211 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
6212
6213         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
6214         the default gc values are: width=0, CapBut, JoinMiter.
6215
6216 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
6217
6218         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
6219         into account the xpad and ypad when calculating the width and the
6220         height of the pixbuf cel.
6221
6222 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
6223
6224         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
6225         Rename to gtk_radio_menu_item_get_group(), add deprecated
6226         alias. (#57044)
6227
6228         * gtk/gtkfilesel.c: Indentation fix.
6229
6230 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
6231
6232         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
6233         Hasselmann to fix warnings in compat macros. 
6234         (#56773)
6235
6236         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
6237         stupid wrong cast added in last patch.
6238
6239 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
6240
6241         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
6242         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
6243
6244 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
6245
6246         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
6247         missing cast.
6248
6249         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
6250         NULL/FALSE return value confusion.
6251
6252         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
6253         problem when scrollbar completely fills range. (Patch
6254         from  Matthias Clasen, #57047)
6255
6256 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
6257
6258         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
6259         clean up when handling events for move-resize emulation.
6260         (Problem traced down by Matthias Clasen, #57271)
6261
6262 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
6263
6264         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
6265           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
6266           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
6267           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
6268           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
6269           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
6270           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
6271         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
6272
6273 2001-07-09  Peter Williams  <peterw@ximian.com>
6274
6275         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
6276         for when srcdir != builddir
6277
6278 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
6279
6280         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
6281         gtk_tree_model_get_iter_root.
6282
6283         * gtk/gtkliststore.c: Add a bunch of g_return statements.
6284         (gtk_list_store_iter_n_children): Fix up.
6285
6286         * gtk/gtktreestore.c: Add a bunch of g_return statements.
6287
6288 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
6289
6290         * gtk/gtkwidget.c (gtk_widget_class_init):
6291         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
6292         restore some workingness.
6293
6294         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
6295         handle of window type for input-only windows.
6296
6297 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
6298
6299         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
6300         Patch from Gregory Merchan to add 
6301         gtk_button_box_set_secondary(), which separates
6302         the child into a separate group from the normal
6303         buttons. (#56331)
6304
6305         * gtk/gtkdialog.c: Make help buttons secondary by
6306         default.
6307
6308         * gtk/gtkbbox.c: Added a child property "secondary".
6309
6310         * gtk/testgtk.c: Turn on the help button for the 
6311         color selector to check that it properly appears
6312         as secondary.
6313
6314 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
6315  
6316         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
6317         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
6318         Add gdk_set_pointer_hooks() to allow pointer-querying to
6319         be hooked by an event record/playback system like GERD.
6320         (#56914)
6321         
6322 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
6323
6324         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
6325         in the right value of initial_emission to
6326         gtk_widget_set_style_internal (#57091)
6327
6328 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
6329
6330         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
6331         Make compile.
6332
6333         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
6334         with calling gtk_widget_set_style_internal() with
6335         the old style, not the new style. (#56989)
6336
6337 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
6338
6339         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
6340           gtk/gtkwidget.c:
6341         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
6342         not GTK_WIDGET_GET_ANCESTOR ... see 
6343         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
6344         Indicate the best practice in the docs for gtk_widget_get_toplevel().
6345
6346         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
6347         so GtkPlug can give the correct signals when transforming
6348         from a child to a toplevel.
6349         
6350         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
6351         reparentation correctly.
6352
6353         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
6354         Propagate the previous_toplevel argument down properly.
6355
6356         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
6357         of wrong atr list.
6358
6359         * gtk/gtkplug.[ch]: Add an "embedded" signal.
6360
6361         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
6362         signals.
6363
6364         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
6365         functions gtk_plug_get_id(), gtk_socket_get_id(),
6366         to avoid the user having to worry about realization,
6367         and gdkx.h.
6368
6369         * tests/testsocket.c: Extend to try out the new signals
6370         and gtk_plug/socket_get_id().
6371
6372         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
6373         setting of underline attributes.
6374
6375         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
6376         DestroyNotify events from SubstructureNotifyMask
6377
6378         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
6379         Switch GDK_WINDOW_TYPE (window) as needed.
6380
6381         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
6382         allow creation of toplevel windows as children of
6383         foreign windows.
6384
6385         * gtk/gtkplug.c: Remove hacks involving changing private
6386         fields of GdkWindow.
6387
6388         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
6389         exactly the same signals and notification
6390         be emitted for local embedding as for inter-process
6391         embedding.
6392
6393 2001-07-04  James Henstridge  <james@daa.com.au>
6394
6395         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
6396
6397 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
6398
6399         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
6400         XEMBED embedding add a _XEMBED_INFO property to the
6401         client with version number and a "mapped" flags.
6402         Use the mapped flag instead of the racy MapRequestEvent
6403
6404         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
6405         code to reliably set things (when the child is a passive
6406         embedder participating in the XEMBED protocol) intead
6407         of just being a hack for embedding non-participating
6408         programs. Fix various bugs and race conditions.
6409         
6410         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
6411         work by simply making the GtkSocket the gtk parent
6412         of the GtkPlug. Set a flag in this case and make
6413         the GtkPlug work like a normal container by overriding
6414         methods such as check_resize and "chaining past" GtkWindow
6415         to GtkBin.
6416
6417         * gtk/gtkentry.c (gtk_entry_real_activate)
6418           gtk/gtkmain.c (gtk_propagate_event): 
6419         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
6420         
6421         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
6422         gtk_widget_get_ancestor):
6423         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
6424         might not give the expected result and recommend
6425         an alternative.
6426
6427         * tests/testsocket.c tests/testsocket_child.c
6428         tests/testsocket_common.c tests/Makefile.am: Extended
6429         to test different type of adding plugs to sockets
6430         (local,active,passive), and to test mapping/unmapping
6431         the plug.
6432
6433         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
6434         mark the window as destroyed until after we
6435         called _gdk_windowing_window_destroy().
6436         (_gdk_windowing_window_destroy() may use GDK functions
6437         on the window.)
6438
6439         * gdk/x11/gdkinput.c: Remove the check for finalization - 
6440         devices can be finalized under some circumnstances.
6441  
6442         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
6443         small problem with GDK_TYPE_DEVICE.
6444  
6445 2001-07-02  Havoc Pennington  <hp@pobox.com>
6446
6447         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
6448         use constants not atoms.
6449
6450 2001-07-02  James Henstridge  <james@daa.com.au>
6451
6452         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
6453         PANGO_TYPE_TAB_ARRAY.
6454
6455         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
6456         for PANGO_TYPE_TAB_ARRAY.
6457
6458         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
6459         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
6460
6461         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
6462         the file.  Remove Pango types from defs -- they are now defined in
6463         libpango.
6464
6465 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
6466
6467         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
6468
6469         * gtk/gtkobject.c (gtk_object_destroy): invoke
6470         g_object_run_dispose().
6471
6472         * gtk/gtkwindow.c: 
6473         * gtk/gtkwidget.c: 
6474         * gtk/gtkobject.c:
6475         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
6476         method.
6477
6478 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
6479
6480         * gtk/gtktypeutils.c (gtk_type_class): Remove
6481         change check for GTK_TYPE_OBJECT derivation to
6482         G_TYPE_OBJECTS - it's Tim-approved to use this 
6483         for arbitary objects.
6484
6485         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
6486         prefix gtk_container_dequeue_resize_handler().
6487
6488         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
6489         to the hierarachy_changed signal, since you otherwise
6490         have to always keep that around.
6491
6492         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
6493         for extra argument to hierarchy_changed.
6494
6495 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
6496
6497         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
6498         for style to mean "revert to default style"
6499
6500         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
6501           gtk_widget_restore_default_style): Make this functions
6502         deprecated aliases for gtk_widget_set_style (widget, NULL).
6503
6504         * gtk/gtkwidget.[ch]: Remove:
6505            gtk_widget_set_default_style ()
6506            gtk_widget_push_style ()
6507            gtk_widget_pop_style ()
6508         These functions interact are overriden by RC files, and
6509         thus virtually useless, and complicated.
6510
6511 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
6512
6513         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
6514         most of the previous global variables in gtkrc.c. This is
6515         in preparation for multi-head, since each screen can
6516         have different GtkSettings and RC information.
6517
6518         * gtk/gtkrc.[ch]: 
6519
6520         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
6521         GtkSettings parameter to GtkRcStyle::parse.
6522
6523         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
6524         Add two new settings gtk-theme-name, gtk-key-theme-name,
6525         for RC files that are loaded by name after reading
6526         the default RC files.
6527         
6528         * gtk/gtkrc.c: Allow priorities for styles, as wll as
6529         bindings.
6530
6531         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
6532         and use it by default for RC files loaded via 
6533         gtk-theme-name, gtk-key-theme-name.
6534
6535         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
6536         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
6537         tests/testgtkrc: Require pathnames to be absolute.
6538
6539         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
6540         the source when parsing, since the operation of looking up a
6541         pixmap from an RC file depends on the parsing context.
6542
6543         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
6544         reset RC styles on all widgets when files are reparsed.
6545
6546         * tests/testgtk.c (create_rc_file) 
6547           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
6548         Simplify, now that gtk_rc_reparse_all() resets styles on
6549         all widgets itself.
6550
6551         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
6552         return value.
6553
6554         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
6555         GtkSettings argument.
6556
6557         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
6558         gtk_settings_get_global().
6559
6560         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
6561         to get the appropriate GtkSettings for a widget. (For now,
6562         just gets the default GtkSetttings.) 
6563
6564         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
6565           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
6566         changes.
6567
6568         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
6569         getting a style for a path without actually having a widget.
6570         (Allows using a style for a subpart of a widget, for
6571         example.)
6572
6573         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
6574         the RC files to be reloaded for just one GtkSettings
6575         (not sure how useful this really is.)
6576
6577         * gtk/gtkrc.h: Deprecate
6578         gtk_rc_add_widget_name/widget_class/class_style
6579
6580 2001-06-30  Alex Larsson  <alexl@redhat.com>
6581
6582         * gdk/linux-fb/gdkinput-none.c:
6583         * gdk/linux-fb/gdkinput.c:
6584         * gdk/linux-fb/gdkinputprivate.h:
6585         Convert GdkDevice to a GObject.
6586
6587         * linux-fb/gdkprivate-fb.h:
6588         * linux-fb/gdkvisual-fb.c:
6589         Convert GdkVisual to a GObject.
6590
6591 2001-06-29  Alex Larsson  <alexl@redhat.com>
6592
6593         * gdk/gdkvisual.h:
6594         * gdk/gdkcolor.c:
6595         * gdk/x11/gdkx.h:
6596         * gdk/x11/gdkvisual-x11.c:
6597         Convert GdkVisual to a GObject.
6598
6599         * gdk/gdkinput.h:
6600         * gdk/gdkevents.c:
6601         * gdk/x11/gdkinputprivate.h:
6602         * gdk/x11/gdkinput-gxi.c:
6603         * gdk/x11/gdkinput-none.c:
6604         * gdk/x11/gdkinput-x11.c:
6605         * gdk/x11/gdkinput-xfree.c:
6606         * gdk/x11/gdkinput.c:
6607         Convert GdkDevice to a GObject.
6608
6609 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
6610
6611         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
6612         to just plain new, fixing the number of columns, and column types
6613         at creation time.
6614
6615         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
6616
6617         * gtk/gtkcellrenderertext.c
6618         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
6619         height to a specific font.
6620
6621         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
6622
6623         * tests/*c: change to work with new store models.
6624
6625 2001-06-29  Havoc Pennington  <hp@redhat.com>
6626
6627        * Throughout: fixes to compile with G_DISABLE_COMPAT
6628         (s/g_signal_connectc/g_signal_connect/,
6629         s/g_signal_newc/g_signal_new/,
6630         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
6631
6632 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@redhat.com>
6633
6634         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
6635         add path argument to selection callbacks.
6636
6637 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
6638
6639         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
6640         walk through a model in a depth first manner, with the option to
6641         break out.
6642
6643 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
6644
6645         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
6646         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
6647         column and follow it when draged, rather than a location in the
6648         view. "expander_column" property and drawing functions changed
6649         accordingly.  Fixes bug #55942.
6650
6651         (gtk_tree_view_{set,get}_expander_column): Now works with a
6652         GtkTreeViewColumn* instead of int.
6653
6654 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
6655
6656         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
6657
6658 2001-06-28  Havoc Pennington  <hp@pobox.com>
6659
6660         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
6661         image data to the screen, using a server grab to avoid race
6662         conditions.
6663
6664         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
6665         check for NULL return from gtk_image_new_from_stock(), it never
6666         returns NULL.
6667         (gtk_item_factory_create_item): fix bug where we parsed the stock
6668         ID as an inline pixbuf
6669
6670         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
6671
6672         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
6673         support (should be using binding set here)
6674
6675         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
6676         support (should be using binding set here)
6677
6678         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
6679         support
6680
6681         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
6682
6683         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
6684
6685         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
6686
6687         * gtk/gtkimcontextsimple.c
6688         (gtk_im_context_simple_filter_keypress): keypad
6689
6690         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
6691
6692         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
6693
6694         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
6695
6696         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
6697         should be binding-setted)
6698
6699         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
6700
6701         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
6702
6703         * gtk/gtkcalendar.c: numeric keypad fixes
6704
6705         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
6706         support
6707
6708         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
6709         screwup
6710
6711         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
6712         clip the render area to the drawable's clip region in advance,
6713         so we don't get data from the server that we don't need.
6714
6715         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
6716         check return value of gdk_pixbuf_get_from_drawable(), fall back 
6717         to bilevel alpha if we can't get the pixbuf to composite against.
6718
6719         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
6720
6721         * gdk/gdkimage.c (gdk_image_get_colormap): add
6722         gdk_image_set_colormap, gdk_image_get_colormap
6723
6724         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
6725         take a region of the image, instead of converting the entire
6726         image.
6727
6728         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
6729         keybinding signal. Add default bindings for it. Add default
6730         handler for show_help that shows the tooltip for the widget.
6731
6732         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
6733         "close" keybinding signal, remove key press handler.
6734
6735         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
6736         it's not our usual practice to leave a deprecated function around
6737         with a runtime warning, plus we don't want it to appear in docs,
6738         plus if we make them yellow no one will want to change them
6739         anyhow.
6740
6741 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
6742
6743         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
6744         GTK_WIDGET_REALIZE() for resize queueing.
6745
6746         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
6747         GTK_WIDGET_REALIZE() for post event delivery destruction upon
6748         GDK_DESTROY.
6749         
6750         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
6751         sompensate for former (pre-2.0) connect_after() facility.
6752         (gtk_widget_send_expose): 
6753         (gtk_widget_event): assert the widget is realized, since event delivery
6754         to non-realized widgets is essentially a bug. event handlers should
6755         be able to unconditionally rely on widget->window (unless they
6756         emit events on their own which can trigger widget destruction).
6757         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
6758         logic. event delivery happens as follows:
6759         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
6760         b) if !was_handled in (a) and the widget is still realized, emit event-
6761            specific signal (RUN_LAST handler). returns was_handled.
6762         c) emission of GtkWidget::event-after for notification if the widget is
6763            still realized (regardless of was_handled from previous stages, no
6764            class handler). no return value.
6765         d) was_handled gets passed on to caller, to determine further
6766            propagation. if the widget got unrealized meanwhile, was_handled
6767            is returned as TRUE.
6768
6769         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
6770         gdk_event_get_coords().
6771
6772 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
6773
6774         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
6775         age 0, binary age 0. depend on glib 1.3.7.
6776
6777         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
6778
6779         * gtk/gtkmenubar.c: same here.
6780         
6781         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
6782
6783         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
6784
6785         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
6786         
6787         * gtk/gtkmenubar.c (add_to_window): likewise.
6788         
6789         * gtk/gtktextbtree.c: and here...
6790         
6791         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
6792         
6793         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
6794         
6795         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
6796         
6797         * gtk/gtktreeviewcolumn.c:
6798         (_gtk_tree_view_column_set_tree_view): yet again.
6799
6800         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
6801         signal connections without g_signal_connect_data().
6802         
6803         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
6804         demo of the matter.
6805         
6806         * demos/testpixbuf.c (main): running out of equality phrases for the
6807         ChangeLog, but had to adapt connections here as well.
6808         
6809         * demos/testanimation.c (progressive_timeout): and for the fun of it,
6810         tackled this the same way.
6811         
6812         * tests/testtext.c (create_view): ok, it's becoming a pain at this
6813         point, but had enough enery for one more fix.
6814
6815         * tests/testtreecolumns.c (main): stand up man, do your work!
6816
6817         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
6818         fix, either that's been all of it or CVS gtk is broken yet again.
6819         
6820 2001-06-29  James Henstridge  <james@daa.com.au>
6821
6822         The following changes correspond to bug #56812
6823
6824         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
6825         code for GdkDevice.
6826
6827         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
6828         GdkCursor.
6829
6830 2001-06-19  Havoc Pennington  <hp@pobox.com>
6831
6832         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
6833         for mapping a window without fooling with stacking order, but
6834         updating the "withdrawn" flag
6835
6836         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
6837         filtering as soon as possible, moving move resize and wmspec_check
6838         handling after the event filter.  Make default filter apply to all
6839         events, not just those with no GdkWindow wrapped around the X
6840         window. Fix a FIXME about how the window could be a pixmap using 
6841         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
6842
6843         Also, be robust against events not on a known GdkWindow.
6844
6845         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
6846         gdk_x11_ungrab_server): export reference-counted server grabs, so
6847         other people can grab server over a GDK function that also does
6848         so.
6849
6850 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
6851
6852         * gtk/gtktreeviewcolumn.c
6853         (gtk_tree_view_column_pack_start_cell_renderer): New function to
6854         reflect that you can (hypothetically) pack cell renderers into a
6855         column.
6856         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
6857         (gtk_tree_view_column_cell_is_visible): Move more functionality to
6858         the column.
6859         (gtk_tree_view_column_cell_can_focus): Move more functionality to
6860         the column.
6861
6862         * gtk/gtktreeview.c: Move to use new column-packing code.
6863         (gtk_tree_view_real_expand_row): remove totally braindead code.
6864         (gtk_tree_view_real_collapse_row): ditto.
6865
6866 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
6867
6868         * gtk/gtktreeviewcolumn.c: Fix a typo.
6869         
6870 2001-06-26  Joel Becker  <jlbec@evilplan.org>
6871
6872         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
6873           at the end of the file
6874
6875 2001-06-26  Havoc Pennington  <hp@redhat.com>
6876
6877         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
6878
6879 2001-06-26  Havoc Pennington  <hp@redhat.com>
6880
6881         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
6882         property
6883
6884 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
6885
6886         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
6887         stupid missing statement
6888
6889         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
6890         private function for ATK.  It notifies you of how many _visible_
6891         children are deleted when a node is deleted.  Should be used by
6892         atk only.
6893
6894 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
6895
6896         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
6897         Use new pango_context_get_metrics() to fix problems
6898         with font lists in descriptions. (#56184, reported by
6899         Jonas Borgström)
6900
6901 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
6902
6903         * gtk/gtkiconfactory.c:
6904         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
6905         item factory so inlined pixbufs actually work.
6906
6907 2001-06-25  Havoc Pennington  <hp@redhat.com>
6908
6909         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
6910         s/RESIZEABLE/RESIZABLE/
6911
6912         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
6913
6914 2001-06-25  Alexander Larsson  <alexl@redhat.com>
6915
6916         * configure.in:
6917         Added --enable-fbmanager. This is some experimental code
6918         that lets several GtkFB apps coordinate their access to the
6919         framebuffer.
6920         
6921         * acconfig.h:
6922         Added ENABLE_FB_MANAGER.
6923
6924         * gdk/linux-fb/Makefile.am:
6925         Added gdkfbmanager and gdkfbswitch.
6926
6927         * gdk/linux-fb/gdkkeyboard-fb.c:
6928         * gdk/linux-fb/gdkmouse-fb.c:
6929         * gdk/linux-fb/gdkprivate-fb.h:
6930         Split device init and open so that
6931         they can be opened and closed while switched
6932         away.
6933
6934         * gdk/linux-fb/gdkmain-fb.c:
6935         Add the basic manager communication.
6936
6937         * gdk/linux-fb/gdkrender-fb.c:
6938         Don't update to the shadow fb if we're
6939         blocked by the fb manager.
6940
6941 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
6942
6943         * docs/Changes-2.0.txt: Add note about child property
6944         changes.
6945
6946 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
6947
6948         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
6949         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
6950
6951         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
6952         with un'reffing wrong list reported by Jeff Franks.
6953
6954         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
6955
6956         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
6957         for the default icon. Remove inline XPM.
6958
6959         * gtk/gtkstock.h gtk/gtkiconfactory.c:
6960         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
6961         is used for GTK_STOCK_DND, but it is a bit too small.)
6962
6963         * gtk/stock-icons/stock_dnd_multiple.png
6964         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
6965
6966         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
6967         TRUE when starting a drag. In other cases, we are
6968         just observing. (#52995)
6969
6970         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
6971         function to set the icon for a drag from a GdkPixbuf
6972         or stock ID.
6973
6974         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
6975         Likewise, for drag sources.
6976
6977         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
6978         (Now should be done using the stock system.)
6979
6980 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
6981
6982         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
6983         Removed - didn't work and not particularly useful anyways
6984         if it did. 
6985
6986 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
6987
6988         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
6989         introduced last night that was making things decidedly not work.
6990
6991         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
6992         so that we have getter/setter pairing everywhere it makes
6993         sense. (#55767)
6994
6995         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
6996         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
6997         deprecated compat macro. (#55516)
6998
6999         * gtk/gtklabel.[ch]: Add functions
7000         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
7001         gtk_label_set_label(), which mirror the property API for GtkLabel.
7002         Make gtk_label_get_attributes() only reflect the attributes
7003         set by gtk_label_set_attributes.
7004
7005         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
7006         from gtk_notebook_set_page().
7007
7008 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
7009
7010         * configure.in: Fix tests for XShm.h.
7011
7012         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
7013         gdk_image_new() by use of goto, properly use g_object_unref().
7014
7015 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
7016
7017         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
7018         calls, as GdkImage is an object. these should be g_obejct_unref()
7019         instead but that won't work because of the g_error() statement
7020         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
7021         to spot these places.
7022
7023 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
7024
7025         * modules/input/gtkimcontextxim.c: Fixup some problems with 
7026         text length handling in error cases.
7027
7028         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
7029         a bit to make test actually warn on attempt to allocation
7030         a negative size. (#56101, Matthias Clasen)
7031
7032 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
7033
7034         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7035         noticed by Brian Cameron.
7036         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
7037         Cameron.
7038
7039 2001-06-22  Hans Breuer  <hans@breuer.org>
7040
7041         * gdk/gdk.def : updated externals
7042
7043         * gdk/win32/gdkdrawable-win32.c : corrected some casts
7044         in GDK_NOTEs
7045
7046         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
7047         to translate coordinates to the internal > 16 bit system
7048         Try to handle WM_WINDOWPOSCHANGED to get better performance for
7049         when moving/resizing
7050
7051         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
7052         and gdk_keymap_get_direction (). The latter is untested for
7053         the RTL case
7054
7055         * gtk/gtk.def : updated externals
7056
7057         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
7058         from pango_language_from_string (), not an already freed pointer
7059
7060         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
7061         binary (-kb) to be useable on windoze
7062  
7063 2001-06-21  Alexander Larsson  <alexl@redhat.com>
7064
7065         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
7066         Update to new PangoLanguage changes.
7067         
7068         * gtk/gtkwindow-decorate.c:
7069         * gtk/gtkwindow.[ch]:
7070         Added setting argument to gtk_window_set_has_frame ()
7071         
7072 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
7073
7074         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
7075         the case without XKB properly.
7076
7077         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
7078         unused gtk_rc_auto_parse variable.
7079
7080         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
7081         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
7082         longer needed with GdkPixbuf.
7083
7084         * gtk/gtkrc.c (_gtk_rc_init): Make private.
7085
7086 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
7087
7088         * gtk/gtkentry.h: Mark deprecated functions with
7089         GTK_DISABLE_DEPRECATED.
7090
7091 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
7092
7093         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
7094
7095         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
7096
7097         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
7098           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
7099           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
7100           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
7101           to recent changes in Pango.
7102
7103         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
7104           to test whether the basic engine honors them.
7105
7106 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
7107
7108         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
7109         gtk_container_child_get_property().
7110
7111 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
7112
7113         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
7114         (gtk_tree_view_move_cursor_page_up_down): implement.
7115
7116 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
7117
7118         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
7119         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
7120         don't use automatic fixed size buffer for printf-ing floats, doubles
7121         can expand to really _huge_ strings, use g_strdup_printf() instead.
7122
7123 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
7124
7125         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
7126         construct property in 1.2 and still needs to be.
7127
7128         * gtk/gtkwidget.c: "composite_child" is not a settable property.
7129
7130 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
7131
7132         * gtk/gtkliststore.c (gtk_list_store_clear): 
7133         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
7134         clear a model.
7135
7136 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
7137
7138         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
7139
7140         * gtk/Makefile.am:
7141         * gtk/gtk.h: disabled GtkPacker compilation.
7142
7143         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
7144
7145         * gtk/gtknotebook.c:
7146         * gtk/gtktable.c:
7147         * gtk/gtkbox.c: ported this over to child properties.
7148
7149         * gtk/gtksettings.c: fetch class properties via
7150         g_object_class_list_properties().
7151
7152         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
7153         child arg interface. use gobjectnotifyqueue.c for child property
7154         notification.
7155
7156         * gtk/gtkwidget.[hc]: provide necessary means for container child
7157         properties, i.e. ::child_notify signal,
7158         gtk_widget_freeze_child_notify(),
7159         gtk_widget_child_notify(),
7160         gtk_widget_thaw_child_notify().
7161
7162         * tests/testgtk.c: removed inferior property handling code, for
7163         property editing, a generic module should be used, and GLE
7164         coincidentally fullfills that purpose.
7165
7166         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
7167         needs to be adapted to g_object_class_list_properties() before this
7168         builds again.
7169
7170 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
7171
7172         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
7173         test if a node is expanded.
7174
7175 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
7176
7177         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
7178         where collapsing a selected row would result in the cursor/anchor
7179         getting screwed up.
7180
7181 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
7182
7183         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
7184         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
7185         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
7186         Now I can really reorder/sort all Store widgets.  treesorttest
7187         seems to just work now.
7188         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
7189         testtreesort worked through a big coincidence all this time.
7190         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
7191         code.
7192         * tests/testtreecolumns.c: Big 'ol warning at the top letting
7193         people know that this code should never ever ever be copied.
7194
7195 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
7196
7197         * gtk/gtkwindow.h: Fixed a small typo, it should be
7198         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
7199         on line 134.
7200
7201 2001-06-14  Havoc Pennington  <hp@redhat.com>
7202
7203         Docs fixups, and:
7204         
7205         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
7206         GTK_DISABLE_DEPRECATED
7207
7208 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
7209
7210         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
7211         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
7212         finish it off tonight, though it basically works now when it's a
7213         list.  Also, I have a sinking feeling neither GtkTreeStore or
7214         GtkListStore actually resort when adding a new item.  I'll look
7215         into it.
7216
7217 2001-06-14  Havoc Pennington  <hp@redhat.com>
7218
7219         * demos/gtk-demo/main.c (load_file): fix bug identified by
7220         warnings I just added to gtktextbuffer
7221
7222 2001-06-14  Havoc Pennington  <hp@redhat.com>
7223
7224         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
7225
7226         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
7227
7228         * gtk/gtktextbtree.c: don't leak node data all over the place.
7229
7230         * demos/gtk-demo/main.c (main): create fontify tags for the right
7231         buffer
7232
7233         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
7234         to mention tags in the same table can't have the same name,
7235         suggested by Skip Montanaro
7236
7237 2001-06-11  Havoc Pennington  <hp@redhat.com>
7238
7239         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
7240         for trying to add two tags with same name to the tag table
7241
7242         * demos/gtk-demo/main.c (main): fix colors ;-)
7243
7244 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
7245
7246         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
7247         that allows grouping together multiple windows so that grabs
7248         within that set of windows only affect those windows.
7249
7250         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
7251         signal for notification when a widget becomes shadowed
7252         by a grab or is no longer shadowed by a grab.
7253
7254         * gtk/gtkwidget.c (gtk_widget_propagate_state)
7255           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
7256         insenstive widgets to maintain a grab.
7257
7258 2001-06-14  Alexander Larsson  <alexl@redhat.com>
7259
7260         * docs/README.linux-fb:
7261         Add some example config files that can be used with the URW fonts.
7262         
7263         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
7264         Set up the color ramps for DirectColor mode.
7265
7266 2001-06-11  Havoc Pennington  <hp@redhat.com>
7267
7268         * Release 1.3.6
7269          
7270 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7271
7272         * gdk/linux-fb/gdkwindow-fb.c:
7273         Unify shaped window code and make it repaint the area that used
7274         to be part of the shape, but isn't anymore.
7275
7276 2001-06-11  Havoc Pennington  <hp@redhat.com>
7277
7278         * NEWS: Updates
7279
7280         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
7281
7282         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
7283         
7284 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7285
7286         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
7287         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
7288         passes zero instead, so do we.
7289         
7290 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
7291
7292         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
7293         Deep copy dash_list too.
7294         (_gdk_fb_gc_new): Set default cap_style before
7295         setting values.
7296
7297 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
7298
7299         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
7300         gdk_keymap_get_direction): New functions.
7301
7302 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
7303
7304         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
7305         gtk_tree_model_get_flags by adding a second flag for atk.
7306
7307         * gtk/gtktreemodel.c: make cursor behavior interact better with
7308         mouse presses.
7309
7310 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
7311
7312         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
7313         expand_row/collapse_row to be 2 signals each -- test_expand_row
7314         and row_expanded as well as test_collapse_row and row_collapsed.
7315
7316 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
7317
7318         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
7319         signal name to be changed instead of selection_changed.
7320
7321 2001-06-08  Havoc Pennington  <hp@redhat.com>
7322
7323         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
7324         "scroll_offset" property for notification when the layout offsets
7325         may have changed
7326         (gtk_entry_adjust_scroll): add notify for scroll_offset
7327         (gtk_entry_layout_index_to_text_index): function to compensate for
7328         preedit string when doing coordinate stuff on the entry's layout
7329         (gtk_entry_text_index_to_layout_index): inverse function
7330         (gtk_entry_get_layout_offsets): hook to get current position of
7331         the layout      
7332         (gtk_entry_get_layout): hook to get the layout itself.
7333
7334         * gtk/gtklabel.c (gtk_label_get_layout): new function
7335
7336 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
7337
7338         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
7339         keybinding.
7340         (gtk_tree_view_focus): Fix merge conflict.
7341
7342 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
7343
7344         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
7345         clean up cursor handling.
7346
7347 2001-06-08  Havoc Pennington  <hp@redhat.com>
7348
7349         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
7350         function
7351
7352         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
7353         this function
7354
7355 2001-06-08  Alex Larsson  <alexl@redhat.com>
7356
7357         * gtk/gtkcompat.h.in:
7358         Added compat macros for all old GTK_TYPE_GDK_xxx types.
7359         Fixes bug #52892
7360
7361 2001-06-08  Havoc Pennington  <hp@redhat.com>
7362         
7363         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
7364         parent still
7365
7366 2001-06-08  Havoc Pennington  <hp@redhat.com>
7367
7368         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
7369         don't call g_list funcs on GSList
7370
7371         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
7372         gtk_container_focus(), since some widgets have focusable locations
7373         which are not other widgets. These widgets should not have to be 
7374         containers just to manage the focus. For example, GtkHSV is
7375         currently a container for no good reason. Also, this cleans
7376         up the "if (is_container && is_sensitive && is_drawable)
7377         container_focus ()" mess in widget implementations.
7378
7379         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
7380         function, and have it just call gtk_widget_child_focus().
7381
7382         * gtk/gtkhsv.c: derive from widget not container
7383         
7384         Throughout: fix to reflect GtkContainer::focus change
7385         
7386 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
7387
7388         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
7389         range.  Fix bug #55921
7390
7391         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
7392         (#55920).
7393
7394 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
7395
7396         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
7397         and gdk_keymap_get_current_direction().
7398
7399         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
7400           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
7401         the current locked group, use it to set the keymap
7402         direction.
7403
7404         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
7405         to determine whether we draw a split cursor or use
7406         a jumping cursor based on the current direction.
7407
7408         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
7409         Obey the split cursor setting. 
7410
7411 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
7412
7413         * gtk/gtkimmulticontext.c (activate_cb): Only activate
7414         when toggling on, not when toggling off... (#55906)
7415
7416 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
7417
7418         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
7419         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
7420         in docs. (#55812, Vitaly Tishkov)
7421
7422 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
7423
7424         * demos/gtk-demo/main.c (create_tree): Changed signal name from
7425         selection_changed to changed in signal connection to GtkTreeSelection,
7426         also used g_signal_connectc since GtkTreeSelection is now a GObject.
7427
7428 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
7429
7430         * gtk/gtktreeselection.c: Now it's a GObject instead of a
7431         GtkObject.  The GtkTreeSelection::selection_changed signal is now
7432         the GtkTreeSelection::changed signal.
7433
7434         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
7435         object.
7436
7437         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
7438         object.
7439
7440 2001-06-07  Havoc Pennington  <hp@redhat.com>
7441
7442         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
7443
7444 2001-06-07  Havoc Pennington  <hp@redhat.com>
7445         
7446         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
7447         (not tested yet because with absolute path to srcdir I can't build
7448         atk, but it was broken anyway so this may help) 
7449
7450 2001-06-07  Havoc Pennington  <hp@redhat.com>
7451
7452         * configure.in: output m4macros/Makefile
7453         
7454 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
7455
7456         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
7457         buttons.  Fixes #55460 reported by matthiasc@poet.de.
7458
7459 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
7460
7461         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
7462         expansion/collapsing so it only happens in one place.
7463         (gtk_tree_view_real_expand_row): ditto.
7464
7465 2001-06-07  Havoc Pennington  <hp@redhat.com>
7466
7467         * tests/Makefile.am: add missing -I flag
7468
7469         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
7470
7471         * configure.in: use pkg-config to see if GModule is
7472         supported; fix to properly turn on included loaders 
7473         when GModule isn't supported; don't use AC_CHECK_LIB 
7474         when libs are not installed yet
7475
7476         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
7477
7478         * Makefile.am (SUBDIRS): add m4macros subdir
7479
7480         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
7481         dependencies also.
7482
7483 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
7484
7485         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
7486         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
7487
7488 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
7489
7490         * gtk/gtktreeview.c
7491         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
7492         bindings to expand and collapse rows.
7493         (gtk_tree_view_real_select_cursor_parent): New key binding.
7494         (gtk_tree_view_real_toggle_cursor_row): New key binding.
7495
7496         * gtk/gtkmarshal.list: new
7497         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
7498
7499 2001-06-06  Havoc Pennington  <hp@redhat.com>
7500
7501         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
7502
7503         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
7504         Down to move visually rather than logically, since it confuses 
7505         people. Add -/+ and Ctrl--/+ bindings for logical movement.
7506
7507 2001-06-06  Alex Larsson  <alexl@redhat.com>
7508
7509         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
7510         Fix up error messages.
7511
7512 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
7513
7514         * gtk/gtktooltips.h: Include gtkwidget.h 
7515         (#55798, Karl Nelson)
7516
7517         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
7518         a valid latin-1 character. (Marc Lehmann, #35467)
7519
7520         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
7521         (Marc Lehmann, #35467)
7522         
7523 2001-06-05  Alex Larsson  <alexl@redhat.com>
7524
7525         * demos/gtk-demo/appwindow.c (do_appwindow):
7526         Don't swap the order of the args to gtk_widget_destroyed.
7527
7528         * tests/testgtk.c (destroy_properties):
7529         Don't crash when the properties window is destroyed.
7530
7531         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
7532         Use with_mnemonics to handle the case of stock items with
7533         underscores in them.
7534
7535 2001-06-05  Havoc Pennington  <hp@redhat.com>
7536
7537         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
7538         gtk_text_iter_reorder
7539
7540 2001-06-05  Havoc Pennington  <hp@redhat.com>
7541
7542         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
7543
7544 2001-06-05  Havoc Pennington  <hp@redhat.com>
7545
7546         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
7547         to the range that was set
7548
7549         * gtk/gtkrange.c: add value_changed signal, primarily 
7550         intended for use with GtkScale
7551         (gtk_range_set_increments): new function
7552         (gtk_range_set_range): new function with weird name
7553         (gtk_range_set_value): new function
7554         (gtk_range_get_value): new function
7555
7556         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
7557         from gtk_spin_button_get_value_as_float(). Compat #define
7558         added for get_value_as_float.
7559
7560         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
7561
7562         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
7563
7564 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
7565
7566         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
7567
7568 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
7569
7570         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
7571
7572         * tests/testgtk.c (create_tooltips): Remove usage of
7573         gtk_widget_set().
7574
7575 2001-06-05  Havoc Pennington  <hp@redhat.com>
7576
7577         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
7578
7579         Applying patch from Jeff Franks, with function docs added.
7580         
7581         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
7582         remove call to set_mnemonic_widget, change docs a bit.  
7583
7584         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
7585         new function
7586
7587         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
7588         new function
7589
7590         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
7591
7592         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
7593         function
7594         (gtk_radio_button_new_with_mnemonic_from_widget): new function
7595
7596         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
7597         new function
7598
7599         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
7600         function        
7601
7602         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
7603         auto-selection of mnemonic widget.
7604
7605 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
7606
7607         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
7608         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
7609         (gtk_tree_view_column_set_min_width): ditto.
7610
7611 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
7612
7613         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
7614         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
7615
7616 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
7617
7618         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
7619         gtk_clist_thaw().
7620
7621 2001-06-04  Havoc Pennington  <hp@pobox.com>
7622
7623         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
7624 r       eleases for buttons 6, 7
7625
7626 2001-06-04  Havoc Pennington  <hp@redhat.com>
7627
7628         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
7629         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
7630         #55562
7631
7632 2001-06-04  Havoc Pennington  <hp@redhat.com>
7633
7634         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
7635         where text_view->layout == NULL by assuming its size is 0, 
7636         i.e. same as if we haven't done any reflow. Reported by 
7637         Hidetoshi Tajima #55448 
7638
7639 2001-06-04  Havoc Pennington  <hp@redhat.com>
7640
7641         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
7642         and 7 for scroll left/right, from Thomas Broyer
7643
7644 2001-05-10  Havoc Pennington  <hp@redhat.com>
7645
7646         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
7647         we need to parse the xsetting as if it were an RC file string.
7648
7649         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
7650         value of palette from settings, not from static variable
7651
7652         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
7653         xsettings translation table
7654
7655         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
7656         hardcoding the toolbar style conflicts with new customizable 
7657         toolbar style philosophy
7658         (gtk_toolbar_class_init): add settings for default toolbar style;
7659         these are used unless the app specifically forces a toolbar style
7660
7661         * gtk/gtksettings.c (settings_install_property_parser): only
7662         return at the start if we warn and parser == NULL
7663
7664         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
7665         palette changed handler so we don't notify dead color selections
7666
7667         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
7668         xthickness/ythickness of 0 or 1 properly 
7669         (gtk_default_draw_resize_grip): clear the background behind the
7670         resize grips, and align to bottom right if we square the 
7671         area to be drawn.
7672
7673         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
7674         statusbar label to 1, so it doesn't make toplevels resize oddly
7675         (gtk_statusbar_size_request): add grip size to request
7676         (gtk_statusbar_size_allocate): hack so the hbox still works with 
7677         the grip size in the request
7678
7679         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
7680         bug where showing all on a toplevel makes the toolbar 
7681         button text appear despite the toolbar mode
7682
7683         * gtk/gtkmenubar.c: add internal padding style property
7684
7685         * gtk/gtktoolbar.c: Add internal padding style property; add
7686         shadow type style property
7687
7688         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
7689         state; and put Container::border_width outside the frame
7690
7691         * gtk/gtktextview.c: don't draw focus rectangle if we're in
7692         interior focus mode, we just use blinking cursor
7693
7694 2001-06-04  Havoc Pennington  <hp@redhat.com>
7695
7696         * configure.in: Make gdk-pixbuf have same version number as GTK
7697
7698 2001-06-04  Havoc Pennington  <hp@redhat.com>
7699
7700         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
7701         digits greater than 6. If there actually are limits (which there
7702         likely aren't), should clamp to them not warn.
7703         (gtk_spin_button_new_with_range): don't take log of 0
7704         (gtk_spin_button_size_request): use digits to compute size
7705         request, rather than step increment.
7706
7707         * tests/testgtk.c (create_spins): test larger values of digits
7708         
7709         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
7710         font on map not expose, so we don't get weirdness during scrolling
7711
7712 2001-06-04  Havoc Pennington  <hp@redhat.com>
7713
7714         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
7715         Sam Solon, bug #54577, update value even if not drawable.
7716
7717 2001-06-04  Havoc Pennington  <hp@redhat.com>
7718
7719         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
7720         SCROLL_LEFT, reported by Thomas Broyer.
7721
7722 2001-06-04  Havoc Pennington  <hp@redhat.com>
7723
7724         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
7725         Process updates immediately, to prevent funny lag effect
7726         when scrolling, at some mild potential efficiency cost.
7727
7728 2001-06-04  Havoc Pennington  <hp@redhat.com>
7729
7730         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
7731         slider on the click.
7732
7733 2001-06-03  Havoc Pennington  <hp@pobox.com>
7734
7735         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
7736         hscale/vscale details, so we can use it for scrollbar as well.
7737
7738         * tests/testgtk.c (reformat_value): honor digits from GtkScale
7739
7740         * gtk/gtkenums.h (GtkTroughType): Remove this enum
7741         (GtkScrollType): add START and END from GtkTroughType
7742
7743         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
7744         its x/y arguments
7745
7746         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
7747         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
7748         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
7749         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
7750         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
7751
7752         Notable changes in the process:
7753          
7754         - stepper_size style property is the height for vertical 
7755           ranges, width for horizontal; the other dimension matches
7756           the trough size
7757         - add ability to do NeXT-style steppers (and several other styles
7758           that don't make any sense)
7759         - added min_slider_length, fixed_slider_length properties to
7760           GtkScrollbar
7761         - cleaned some private (or at least useless) functions out of
7762           gtkscale.h    
7763         - moved bindings to GtkScale from subclasses, even arrow keys,
7764           since blind users don't know scale orientation.
7765         - change move_slider action signal to use new GtkScrollType,
7766           remove GtkTroughType argument
7767         - digits rounds the values a range will input to the given 
7768           number of decimals, but will not try to force adjustment 
7769           values set by other controllers. That is, we no longer
7770           modify adjustment->value inside a value_changed handler.
7771         - added getters for GtkScale setters
7772         - middle-click begins a slider drag
7773         
7774 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
7775
7776         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
7777         getting the focus code to work.
7778         (gtk_tree_view_class_init): Add a bunch of keybindings.
7779
7780         * gtk/gtktreeviewcolumn.c
7781         (gtk_tree_view_column_set_cell_data_func):
7782         s/GtkCellDataFunc/GtkTreeCellDataFunc.
7783         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
7784         of "properties_changed" to help justify the death of the latter
7785         signal. (-:
7786
7787         * tests/testtreefocus.c (main): Let some columns be focussable to
7788         test focus better.
7789
7790 2001-06-01  Havoc Pennington  <hp@redhat.com>
7791
7792         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
7793         
7794         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
7795         overwrite in overwrite mode if we already deleted the selection
7796         and replaced it with new text.  
7797
7798         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
7799         selection to an empty range, clear the clipboard if we owned it.
7800         (gtk_label_set_selectable): give up selection if we become
7801         unselectable.
7802         (gtk_label_state_changed): override state changed to unselect text
7803         when insensitive
7804         (get_text_callback): add paranoia check that indexes aren't
7805         outside of label->text
7806         (gtk_label_select_region): make -1 for start_offset mean "end of
7807         label," for consistency with GtkEditable
7808
7809         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
7810         GTK_DIALOG_NO_SEPARATOR flag
7811
7812 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
7813
7814         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
7815         notifications on non-existant "enable_arrow_keys".
7816         (#53753, Skip Montanaro)
7817
7818 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
7819
7820         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
7821         GDK_TYPE_RECTANGLE.
7822
7823         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
7824         of allocation argument be GDK_TYPE_RECTANGLE.
7825
7826 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
7827
7828         * gtk/gtkoptionmenu.c: Account for the fact that the border
7829         width is _outside_ the window. (Fixes #54585, bug found
7830         by Bastien Nocera.)
7831
7832 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
7833
7834         * gtk/gtksettings.c (gtk_settings_get_property): Validate
7835         value from GDK settings against parameter spec.
7836
7837         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
7838         to temporary values and use g_value_transform(), since
7839         thinking that GValue was going to be easy or efficient
7840         to use was, of course, a mistake.
7841
7842         * gtk/gtksettings.c: Add cursor blink setting.
7843         
7844         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
7845
7846         * gtk/gtkentry.c: Add cursor blinking.
7847
7848         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
7849         cursor blink global settings.
7850
7851         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
7852         for :text_position in places where it is missing.
7853
7854 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
7855
7856         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
7857
7858 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
7859
7860         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
7861         not pkg-config. (#51032)
7862
7863         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
7864         (fixes #51952, James Henstridge)
7865         
7866 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
7867
7868         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
7869         Rename to the more correct gtk-go-up.
7870
7871         * gtk/stock-icons/stock_menu_sort_ascending.png:
7872         Added new file.
7873         
7874         * gtk/stock-icons/stock_menu_sort_descending.png:
7875         Changed to show descending instead of ascending.
7876
7877         * gtk/gtkiconfactory.c:
7878         Added menu size icon to sort ascending.
7879
7880         * gtk/stock-icons/Makefile.am:
7881         Added stock_menu_sort_ascending.png.
7882         
7883         * gtk/gtkseparatormenuitem.c:
7884         Use correct typenames.
7885
7886 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
7887
7888         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
7889         gulong as in GSignal.
7890
7891 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
7892
7893         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
7894         instances of GtkCellRenderer in code (all but dnd icon code).
7895         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
7896         there, and I can do multiple Cells per column.
7897
7898         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
7899
7900         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
7901         when model was unreffed prior to removing the row reference.
7902
7903 2001-05-25  Havoc Pennington  <hp@redhat.com>
7904
7905         * gtk/gtkiconfactory.c: fix so that default icons are created if 
7906         you call gtk_stock_list_ids()
7907
7908         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
7909         in list
7910
7911 2001-05-25  Havoc Pennington  <hp@redhat.com>
7912
7913         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
7914         set can render without falling back to missing image icon
7915
7916         * gtk/gtktextview.c (gtk_text_view_size_request): request full
7917         size of text, instead of random values
7918
7919         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
7920         size of tree view, instead of random values
7921
7922         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
7923         image in an appropriate size
7924
7925         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
7926         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
7927
7928         Throughout: fix GTK_STOCK_BUTTON_ instances
7929         
7930         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
7931         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
7932         Add a bunch of new stock items/icons
7933
7934         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
7935         new function, convenience for inserting columns with a data func
7936
7937         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
7938         (_gtk_icon_factory_list_ids): use list of all factories to
7939         generate a list of all known IDs
7940
7941         * gtk/gtkstock.c (gtk_stock_list_ids): replace
7942         gtk_stock_list_items() with a function that returns all IDs known
7943         including those for GtkIconFactory.
7944
7945 2001-05-25  Hans Breuer  <hans@breuer.org>
7946
7947         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
7948         work -> check boxes and radio buttons are drawn now, even on win9x.
7949         Improved line settings a bit, still no clue how to get really dotted
7950         lines on win9x, on NT it's PS_ALTERNATE.
7951
7952         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
7953         GDK_HINT_MIN_SIZE as well
7954
7955         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
7956
7957         * gtk/gtk.def : updated
7958
7959         * gtk/gtktreeprivate.h : change column_drop_func to be a function
7960         pointer not a function pointer pointer
7961
7962         * tests/testdnd.c : include <stdlib.h> for putenv prototype
7963
7964         * tests/testsocket.c : made it compile on win32 again
7965
7966         * tests/makefile.msc : one more test-app uses prop-editor.obj
7967
7968 2001-05-22  Havoc Pennington  <hp@pobox.com>
7969
7970         * gtk/gtkbin.c (gtk_bin_get_child): New function
7971
7972 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
7973
7974         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
7975         to ignore when doing compose processing.
7976
7977 2001-05-22  Joe Shaw  <joe@ximian.com>
7978
7979         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
7980         Simplify as suggested by Havoc. Just get the last iter and work
7981         backward to the tag instead of getting a line and working back from
7982         there. Fixes passing in an invalid offset to
7983         iter_init_from_byte_offset().
7984
7985 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
7986
7987         * gtk/gtktreeview*.h: 
7988         * gtk/gtkcell*.h:
7989         * gtk/gtk*store.h:
7990         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
7991         macros to all objects.
7992
7993 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
7994
7995         * gtk/gtkcellrenderertext.c
7996         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
7997         with very large (TM) amounts of text.  May be moved to
7998         GtkCellRenderer in the future, though I'm not sure it wants to be
7999         this accessible.
8000
8001         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
8002         More sanity brought to this class.  I like it.
8003
8004         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
8005         case.  Kids, don't try this at home.
8006
8007         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
8008         convenience function.
8009
8010         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
8011
8012 2001-05-21  Alexander Larsson  <alexl@redhat.com>
8013
8014         * gtk/gtkfontsel.c:
8015         Added properties. Based on patch by Lee Mallabone.
8016
8017         * gtk/gtkruler.c:
8018         * gtk/gtkhruler.c:
8019         * gtk/gtkvruler.c:
8020         * gtk/gtktext.c:
8021         * gtk/gtktextview.c:
8022         Converted GtkArg to GParam. Based on patches by John Margaglione.
8023
8024         * tests/Makefile.am:
8025         * tests/testtext.c:
8026         Add a property editor to testtext.
8027         
8028 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
8029
8030         * gtk/gtk{h,v,}paned.c: Only show the separator if 
8031
8032         * configure.in: Fixed reversed conditional causing all image
8033         libraries to be linked in.
8034
8035 2001-05-21  Joe Shaw  <joe@ximian.com>
8036
8037         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
8038         that top_y needs to be >= 0.
8039
8040 2001-05-11  Havoc Pennington  <hp@pobox.com>
8041         
8042         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
8043         losing connection to the X server.
8044
8045 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
8046
8047         * configure.in: Start checks for X from pangox/pangoxft
8048         CFLAGS to avoid duplicate libraries.
8049
8050         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
8051
8052         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
8053         to include gobject.
8054         
8055 2001-05-18  Alexander Larsson  <alexl@redhat.com>
8056
8057         * gtk/gtkspinbutton.c:
8058         Convert GtkArgs to GParams. Based on patch by John Margaglione.
8059         Also do size request reasonable for MAXDOUBLE. Previously it printed
8060         the limits to a buffer and overran it. Instead do it using log10() and
8061         limit the width to 10 digits.
8062         
8063         * gtk/gtkwidget.c (gtk_widget_get_property):
8064         Correctly handle setting the parent property to NULL.
8065
8066 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
8067
8068         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
8069         style attributes even if the widget isn't realized.
8070
8071         * demos/gtk-demo/main.c: Use a slightly smaller font.
8072
8073 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
8074
8075         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
8076         This is something that only a widget writer would ever want
8077         to change.
8078
8079         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
8080         gtk_signal_emit_by_name().
8081
8082         * gtk/gtkviewport.c: Fix some warnings.
8083
8084         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
8085         allowing the requisitions of multiple widgets to be grouped
8086         together.
8087
8088         * tests/testgtk.c: Add GtkSizeGroup test
8089
8090         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
8091
8092         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
8093         warnings.
8094
8095         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
8096
8097 2001-04-28  Martin Baulig  <baulig@suse.de>
8098
8099         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
8100         to gtk_image_menu_item_set_icon() and made it work if there's already
8101         an image.
8102         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
8103         (gtk_image_menu_item_new_with_label): New function.
8104
8105 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
8106
8107         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
8108         highlighting code!!!!  The result is okay so long as you don't try
8109         to stress it.  It also highlights a bug in the TextView so it's in
8110         an unproportional font right now until it's fixed.
8111
8112         *demos/gtk-demo/*.c: Clean up code a bit to make it
8113         ugly-parser(TM) friendly. (-:
8114
8115 2001-05-17  Joe Shaw  <joe@ximian.com>
8116
8117         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
8118         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
8119         if it is only partially onscreen.
8120
8121 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
8122
8123         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
8124         not by characters.
8125
8126         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
8127         are not zero or one; that is, when graphemes of multiple characters
8128         are involved.
8129
8130         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
8131         FIXME.
8132
8133 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
8134         
8135         * gtk/gtkbbox.c:
8136         Add properties, based on patch by Lee Mallabone.
8137
8138         * gtk/gtknotebook.c:
8139         * gtk/gtktoolbar.c:
8140         Convert from GtkArg to GParam, based on patch by John Margaglione.
8141         
8142         * gtk/gtkhscale.c:
8143         * gtk/gtkvscale.c:
8144         * gtk/gtkhscrollbar.c:
8145         * gtk/gtkvscrollbar.c:
8146         * gtk/gtkrange.c:
8147         Move adjustment property to GtkRange.
8148
8149         * gtk/gtklabel.c:
8150         Setup mnemonics on property changes
8151
8152         * gtk/gtkwidget.c (gtk_widget_get_property):
8153         GdkExtensionMode is an enum, not a flag. Set it with
8154         g_value_set_enum ().
8155
8156         * tests/prop-editor.c:
8157         Better propery editor.
8158
8159         * tests/testgtk.c:
8160         Add new property test. Pass zero to the property editor to
8161         get properties from all derived types.
8162         
8163 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
8164
8165         * autogen.sh (have_automake): Require libtool-1.4,
8166         automake-1.4p1.
8167
8168         * acinclude.m4: Remove libtool macros.
8169
8170         * gdk-pixbuf/Makefile.am: Add dependencies to loade
8171         modules.
8172
8173         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
8174         for libgdk.
8175
8176         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
8177         libgdk.la for libgtk.
8178
8179         * modules/input/Makefile.am: Make modules have full
8180         dependencies.
8181
8182 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
8183
8184         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
8185         #54699 where paths weren't being checked for correctness.
8186
8187 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
8188
8189         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
8190         in any order you wan, whether or not the column is added to the
8191         tree, or the tree is realized.  Yay!
8192
8193         * gtk/gtktreeviewcolumn.c
8194         (gtk_tree_view_column_setup_sort_column_id_callback): handle
8195         sorting columns a lot saner
8196
8197         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
8198         new function to actually set wether or not a column is
8199         reorderable.
8200
8201         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
8202         if we have 'em.
8203
8204         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
8205         Fix nasty bug where we were showing the button just before
8206         realizing it.  As a result, the parent window was
8207         tree_view->window instead of tree_view->priv->header_window.
8208
8209         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
8210         to let you easily reorder a list or tree.
8211
8212 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
8213
8214         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
8215         from args to properties.
8216
8217 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
8218
8219         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
8220         from args to properties. (#51957)
8221
8222         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
8223         calls to after ->set_property call.
8224
8225 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
8226
8227         * tests/prop-editor.c: Block against redundant changes.
8228
8229         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
8230         properties.
8231
8232 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
8233
8234         * gdk/gdkpixmap.h: Remove creative formatting.
8235
8236 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
8237
8238         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
8239         property API. (#51669)
8240
8241         * gtk/gtkscale.c: Patch from John Margaglione converting to
8242         property API. (#51891)
8243
8244         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
8245         to property API. (#50985)
8246
8247 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
8248
8249         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
8250         buffering state across expose event, so we still call end_paint().
8251
8252 2001-05-11  Alexander Larsson  <alexl@redhat.com>
8253
8254         * gtk/gtkhsv.c (paint_triangle):
8255         Expose the ring in the triangle at the correct place when
8256         exposing just a part of the triangle.
8257
8258         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
8259         Return FALSE, or window focusing will not work.
8260
8261 2001-05-11  Havoc Pennington  <hp@pobox.com>
8262
8263         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
8264         #54144
8265
8266         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
8267         bug #54330
8268
8269 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
8270
8271         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
8272         propagate exposes to NULL child.
8273
8274         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
8275         against not having one of the scrollbars.
8276
8277         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
8278         we don't keep a mnemonic window if we have no mnemonic installed.
8279
8280 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
8281
8282         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
8283         it has the _important_ side effect of initializing a class.
8284
8285 2001-05-10  Alexander Larsson  <alexl@redhat.com>
8286
8287         * gdk/linux-fb/gdkprivate-fb.h:
8288         Make sure you can compile out the implementation/wrapper assert
8289         macros.
8290
8291         * gdk/linux-fb/gdkdrawable-fb2.c:
8292         Check implementation/wrappers, initialize type for pixmap dummys.
8293
8294         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
8295         Hide the cursor if reading from the screen.
8296
8297         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8298         Fix sign bug in tiling code.
8299
8300         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
8301         Handle background pixmaps.
8302
8303 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
8304
8305         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
8306         function to let user control where columns are dragged.
8307
8308         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
8309         Escape is pressed.
8310
8311 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
8312
8313         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
8314         "columns_changed" signal.
8315         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
8316         motion code to draw arrows to the side if indicator is outside the
8317         widget.
8318         (gtk_tree_view_map_expanded_rows): Implement.
8319
8320 2001-05-07  Alexander Larsson  <alexl@redhat.com>
8321
8322         * demos/testpixbuf-save.c: 
8323         * demos/testpixbuf-drawable.c:
8324         Include gdkfb.h on linux-fb.
8325
8326 2001-05-07  Alexander Larsson  <alexl@redhat.com>
8327
8328         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
8329         New function for getting toplevel window at position.
8330         (gdk_drag_find_window): Use get_toplevel_window () instead
8331         of gdk_window_get_pointer(). (gdk_drag_status): Use
8332         correct context for getting window.
8333
8334         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
8335         g_strdup the atom name.
8336
8337         * gdk/linux-fb/gdkwindow-fb.c:
8338         Costmetic fix.
8339
8340         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
8341         Add code for changing cursor on linux-fb backend (same as
8342         win32).
8343
8344 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
8345
8346         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
8347         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
8348         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
8349         report was not for the development branch of GTK+, but it applies
8350         anyways).
8351
8352 2001-05-04  Havoc Pennington  <hp@redhat.com>
8353
8354         * configure.in: fix some shell typos
8355
8356         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
8357
8358         * gtk/gtkimage.c: handle animations
8359
8360         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
8361         border_width * 2, not just border_width
8362
8363         * gtk/gtkscale.c: add "format_value" signal to allow people
8364         to override the way values are drawn.
8365         (gtk_scale_get_value_size): fix width/height mistake,
8366         and compute size from actual displayed text, not 
8367         from made-up text.
8368
8369         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
8370         signal registration
8371
8372         * tests/testtext.c: Add "Remove all tags" menu item for testing
8373
8374         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
8375
8376         * demos/gtk-demo/main.c (main): add hack so we can find modules
8377         without installing gtk
8378
8379         * demos/gtk-demo/textview.c (insert_text): demo font scaling
8380
8381         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
8382         factor)
8383         (gtk_cell_renderer_text_set_property): remove some bogus
8384         g_object_notify
8385
8386         * gtk/gtktexttag.c: add "scale" property which is a font scaling
8387         factor
8388
8389         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
8390         to layout
8391
8392         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
8393         gtk_text_iter_is_first
8394
8395 2001-01-06  Hans Breuer  <hans@breuer.org>
8396
8397         * gdk/gdk.def : updated exports
8398
8399         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
8400         gdk won't compile anymore
8401  
8402         * gdk/win32/gdkevents-win32.c : initialize ret_val when
8403         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
8404         Improved gdk_flush () to not only do pending drawing operations
8405         but also process all currently pending events. This should make
8406         the behaviour more similar to the X11 version.  
8407
8408         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
8409         option needs to be set even if there is no GDK_GC_BACKGROUND.
8410         (gdk_win32_hdc_get) : use predraw_set_background () independent
8411         of value_mask. This allows to draw dashed lines leaving the original
8412         background intact.
8413
8414         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
8415         after processing, because we can't reuse it as the X11 version does.
8416
8417         * gtk/gtk.def : updated exports
8418
8419         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
8420         would like to get rid of this file again, and use straight
8421         makefile.msc again, as the other Gtk+ subdirs do)
8422
8423         * test/makefile.msc (new file) : build the test apps here
8424
8425 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
8426
8427         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
8428         strike-through setting
8429         (gdk_draw_layout_line_with_colors): Render strike-through
8430
8431 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
8432
8433         * Release 1.3.5
8434
8435         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
8436
8437         * NEWS: Updated
8438
8439         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
8440         Makefile breakage.
8441
8442 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
8443
8444         * demos/gtk-demo/images.c (progressive_timeout): Fix
8445         typo in filename.
8446
8447         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
8448         out FIXME warning; just too annoying.
8449
8450 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
8451
8452         * gdk/linux-fb/gdkcolor-fb.c:
8453         Better error messages.
8454
8455         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
8456         Initialize abs_x and abs_y.
8457         
8458         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
8459         Correct handling of stipple offset.
8460
8461         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
8462         Treat directcolor framebuffers as truecolor.
8463         
8464 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
8465
8466         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
8467         dependency on Atk for accessibility support.
8468
8469         * configure.in **/Makefile.am: Major reworking of substituted
8470         variables for CFLAGS/LIBS to make a lot more sane and 
8471         keep the the compile/link lines a bit shorter.
8472
8473         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
8474
8475 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
8476
8477         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
8478         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
8479         use _gtk_boolean_handled_accumulator.
8480
8481 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
8482
8483         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
8484         to fix things so clicking inside selection leaves cursor
8485         at point where clicked. (#50324)
8486
8487         * gtk/gtksettings.c (gtk_settings_class_init): Restore
8488         sane value for default double click time.
8489
8490         * tests/testtext.c (test_init): Really path to input modules.
8491
8492 2001-05-03  Sven Neumann  <sven@convergence.de>
8493
8494         * demos/testpixbuf-save.c: include target-specific headers as
8495         done in testpixbuf-drawable.c
8496
8497 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
8498
8499         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
8500         new_text_length appropriately when we run into the 
8501         size limit for the entry. (#53445, reported by Jeff Franks)
8502
8503         * tests/testgtk.c (create_entry): Remove most of the
8504         property toggle buttons. Replace with a "Props" button
8505         that brings up a property editor.
8506
8507         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
8508         Split the property editor code out for reuse, improve.
8509
8510 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
8511
8512         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
8513         trap errors around calls to XSetInputFocus since we have
8514         no way of knowing reliably whether we are viewable or
8515         not. (#53947)
8516
8517 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
8518
8519         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
8520         fix bug in dropping columns.  Moving columns now basically works
8521         modula some fine tuning.
8522
8523 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
8524
8525         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
8526         autoscroll support.  It mostly works, but could use some fine
8527         tuning.
8528         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
8529         Actually move the column.
8530
8531 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
8532
8533         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
8534           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
8535           New default theme! A slighly improved version of the 2.0 Raleigh
8536           theme, with Windows-esque focus/drawing default. 
8537           (GtkWidget::interior_focus defaults to TRUE.)
8538
8539         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
8540
8541 2001-04-30  Havoc Pennington  <hp@pobox.com>
8542
8543         * tests/testtext.c (line_numbers_expose): fix to work with
8544         gtk_paint_layout change
8545
8546 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
8547
8548         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
8549           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
8550           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
8551           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
8552
8553         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
8554           with GtkWidget::interior_focus = TRUE better.
8555
8556         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
8557         ::default_outside_border for more flexibility.
8558
8559         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
8560         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
8561         change that had to be made with g_object_get.
8562
8563 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
8564
8565         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
8566         (gtk_tree_view_move_column_after): Clean up interface. 
8567
8568 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
8569
8570         * gtk/gtkpacker.h:
8571         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
8572          to gtkenum.h.
8573
8574         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
8575         handled in switch).
8576
8577         * gtk/Makefile.am:
8578         (gtk.defs): generate enum portions with  glib-mkenums.
8579         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
8580         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
8581         
8582         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
8583         addition.
8584
8585         * docs/Changes-2.0.txt: keep a note on signal handlers now
8586         not getting emitted during the emission they were connected within.
8587
8588 2001-04-28  Havoc Pennington  <hp@pobox.com>
8589
8590         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
8591
8592 2001-04-24  Havoc Pennington  <hp@redhat.com>
8593
8594         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
8595         (gtk_text_layout_move_iter_to_next_line): fix these two for
8596         invisible text, lots of other stuff still hosed.
8597
8598         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
8599         new function, replaces the get/set palette stuff. This function 
8600         is intended for use by libgnomeui which should set the hook to a
8601         thing which sets the palette in GConf, and we need the
8602         GConf-to-xsettings proxy which will result in the change being
8603         propagated back to the GTK app.
8604
8605         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
8606         about unusable signals that it may be because the signal has 
8607         parameters.
8608
8609         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
8610         style, otherwise gtkrc.c won't know to create a new GtkStyle for
8611         it.
8612         (gtk_widget_modify_color_component): call
8613         gtk_widget_modify_style() so the rc style will get copied.
8614         (gtk_widget_modify_font): ditto
8615
8616         * gtk/gtkrc.c: make a couple variables static
8617
8618         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
8619         help button by default, since it does nothing
8620
8621         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
8622         around with UI
8623
8624         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
8625         so we can have tooltips
8626
8627         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
8628         can have tooltips
8629
8630         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
8631         GDK_ENABLE_BROKEN, because its memory behavior is completely
8632         hosed.
8633
8634         * gtk/gtknotebook.c: remove key press handler, replace with
8635         binding set, add numeric keypad support
8636
8637         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
8638
8639         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
8640
8641         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
8642         addition to plain Delete
8643
8644         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
8645         GDK_KP_Enter in addition to GDK_Return
8646
8647         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
8648         activate on entry instead of key press
8649         (gtk_font_selection_on_clist_key_press): get
8650         rid of this signal handler, not needed with new font sel.
8651
8652         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
8653         no-longer-needed emit_stop_by_name(), just return TRUE
8654
8655         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
8656         cruft, this widget is no longer focusable.
8657
8658         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
8659         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
8660         move_slider action signal, add binding set for vscale/hscale, in
8661         the process support numeric keypad
8662
8663         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
8664         make GDK_Return and GDK_KP_Enter activate the entry via 
8665         binding set, instead of hardcoded.
8666
8667 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
8668
8669         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
8670         code.  Some documentation added.
8671
8672 2001-04-27  Havoc Pennington  <hp@redhat.com>
8673
8674         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
8675
8676         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
8677
8678         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
8679         line/para separators
8680         (gtk_entry_create_layout): set single paragraph mode on the layout
8681
8682         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
8683         spacing between the image and label; instead, inside a button box 
8684         the button will get extra space that will go there, but if people 
8685         configure button box for 0 chubbiness, then there's no spacing.
8686
8687         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
8688         and min/max size style properties, so people can tune their
8689         chubbiness.
8690
8691         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
8692         functions
8693
8694         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
8695         space_style, and button_relief into style properties, remove
8696         functions for setting them
8697         
8698         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
8699         it back down
8700
8701         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
8702         types from gtk_widget_style_get
8703
8704         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
8705         with a style property.
8706
8707         * gdk/x11/gdkevents-x11.c: namespace the settings
8708
8709         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
8710
8711         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
8712         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
8713         be used. Also, translate doc strings for settings. Also, namespace
8714         the double-click-time property. Also, remove bell properties crap.
8715
8716 2001-04-27  Sven Neumann  <sven@gimp.org>
8717
8718         * Makefile.am: before creating links, check if pkg-config files
8719         exist for the default target. Otherwise link to the pkg-config files
8720         that got installed with this build.
8721
8722 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
8723
8724         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
8725         dragging code.  Revealed some (potential) GdkWindow bugs.
8726
8727         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
8728         _gdk_window_init_position to the end of reparent to fix the case
8729         of reparenting when new_x != old_x and new_y != old_y.
8730
8731 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
8732
8733         * gtk/gtkentry.c (strstr_len): Fix optimization that
8734         was correct for the use here, but completely incorrect
8735         in general.
8736
8737 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
8738
8739         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
8740         until patch adding gtk_window_set_size() is recommitted. 
8741
8742         * **Makefile.am configure.in gdk/x11/gdkim-11.c
8743           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
8744           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
8745           (#10784)
8746
8747 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
8748
8749         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
8750         window == NULL in a number of cases.
8751
8752         * tests/testdnd.c: Set module path for gdk-pixbuf.
8753
8754 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
8755
8756         * gtk/Makefile.am xembed.h: File containing #defines
8757         for XEMBED protocol.
8758
8759         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
8760
8761         - Change protocol from old plug/socket specific protocol
8762           to XEMBED draft
8763         - Various fixes to work with GTK+-2.0
8764
8765         Still quite a bit of work to do here to handle initiation
8766         from the socket side (as specified by XEMBED), to handle
8767         the more advanced features of XEMBED, and to figure out
8768         a good way to handle same-app embedding with less overhead
8769         than using full XEMBED.
8770
8771 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
8772
8773         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
8774         track of whether the toplevel has the focus; only send
8775         focus-in events to the focus widget when the window
8776         actually has the focus.
8777
8778 2001-04-25  Havoc Pennington  <hp@pobox.com>
8779
8780         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
8781         were still in the header
8782
8783 2001-04-24  Alexander Larsson  <alexl@redhat.com>
8784
8785         * gtk/gtkclist.[ch]:
8786         * gtk/gtkctree.c:
8787         When there is a row highlighted for D'n'D it must alse
8788         be painted hightlighted on exposes. Otherwise exposes from
8789         the icon being dragged will mess up the hightlight.
8790
8791         * gtk/gtkfontsel.c:
8792         Don't recenter selected font when exposing the font family
8793         clist. This means you can now actually scroll the font family
8794         list.
8795
8796         * gtk/gtknotebook.c:
8797         Fix focus movement on scrolling tabs that are placed on the left
8798         and right.
8799
8800 2001-04-21  Havoc Pennington  <hp@pobox.com>
8801
8802         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
8803         empty/invisible lines.
8804
8805         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
8806         (gtk_text_iter_set_visible_line_index): new functions to set
8807         indexes excluding invisible text
8808
8809         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
8810         index
8811
8812         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
8813         (gtk_text_iter_get_visible_line_offset): new functions to 
8814         get indexes excluding invisible text
8815
8816         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
8817         bunch of extra padding that served no purpose
8818
8819         * gtk/gtkdialog.c: Make all the spacings configurable via style
8820         properties, for chubbiness configuration in themes
8821
8822         * tests/testtext.c: fix path to the immodules.
8823         
8824 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
8825
8826         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
8827         got munched by #endif.
8828
8829         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
8830
8831         * gtk/gtktreeview.c: Refactored code to clean up a number of
8832         events.
8833
8834         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
8835         values to make consistent with other functions.  Spotted by Jeff
8836         Franks <jcf@tpg.com.au>.
8837
8838         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
8839         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
8840
8841 2001-04-23  Sven Neumann  <sven@gimp.org>
8842
8843         * gtk/Makefile.am
8844         * gtk/gtkplug.c
8845         * gtk/gtksocket.c: on request of Owen, reverted my last change 
8846         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
8847
8848 2001-04-23  Sven Neumann  <sven@gimp.org>
8849
8850         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
8851         compile for non-X11 targets again
8852
8853 2001-04-20  Alexander Larsson  <alexl@redhat.com>
8854
8855         * gtk/gtkcolorsel.[ch]:
8856         API Change. Take GdkColor arguments instead of gdouble *.
8857         Leave the old gtk_color_selection_set_color for compatibility,
8858         but marked deprecated.
8859         Do correct rounding when converting RGB <-> HSV.
8860         
8861         * gtk/gtkcolorseldialog.c:
8862         * tests/testgtk.c:
8863         Use new GtkColorSelection API.
8864
8865         * gtk/gtkhsv.c:
8866         Fix problem selecting colors in triangle when Hue is 330.
8867         Fix some black dots around the HSB triangle.
8868         
8869         * gtk/gtkfilesel.c:
8870         return FALSE from the focus_in_event handler to fix focus problems.
8871
8872 2001-04-18  Havoc Pennington  <hp@redhat.com>
8873
8874         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
8875         set, so keybindings are configurable    
8876         (gtk_window_activate_default): Change to activate the focus widget
8877         instead if there's a focus widget, to be consistent with the
8878         behavior that previously existed in key_press_event
8879
8880 2001-04-18  Havoc Pennington  <hp@redhat.com>
8881
8882         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
8883
8884 2001-04-18  Havoc Pennington  <hp@redhat.com>
8885
8886         Close bug #50615:
8887         
8888         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
8889         the layout
8890
8891         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
8892
8893         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
8894
8895         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
8896         
8897         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
8898         to blue for base, in addition to bg
8899         
8900 2001-04-18  Havoc Pennington  <hp@redhat.com>
8901
8902         * tests/testgtk.c (create_image): allow shrinking the image window
8903         to test that we clip to allocation.
8904
8905         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
8906         #9845
8907
8908         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
8909
8910 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
8911
8912         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
8913         mode on shm segments to 0600. We'll see who complains.
8914
8915         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
8916         _gdk_windowing_window_destroy() AFTER recursing through
8917         children.
8918
8919         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
8920         testsocket_child on X.
8921
8922         * tests/testsocket[_child].c: Fix uses of
8923         gtk_window_get_default_accel_group().
8924
8925         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
8926
8927         * gdk/gdkimage.c: (gdk_image_get):
8928         Deal with the possibility that XGetImage() might return NULL.
8929         Allocate the GdkImagePrivate structure only after XGetImage()
8930         succeeds in order not to dereference a NULL ximage pointer.  This
8931         prevents a core dump when XGetImage() fails - which is unlikely,
8932         but can happen due to race conditions accessing the geometries of
8933         drawables.  An x error will still be triggered, but the gdk image
8934         wrapper at least wont seg fault.
8935         
8936 2001-04-18  Havoc Pennington  <hp@redhat.com>
8937
8938         * gtk/gtkimage.c: fix to properly queue resizes when the image is
8939         set
8940
8941         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
8942         if the insertion point isn't editable
8943
8944         * demos/gtk-demo/images.c: Added a GtkImage demo
8945
8946         * demos/gtk-demo/drawingarea.c: drawing area demo
8947         
8948         * demos/gtk-demo/menus.c (create_menu): cleanups
8949
8950 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
8951
8952         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
8953           gdk/x11/gdkevents-x11.c: Introduce an extra child
8954         of toplevel windows that serves to hold the focus to
8955         avoid events being delivered to embedded windows.
8956
8957         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
8958         some extra variables to clean up code and reduce the
8959         number of casts.
8960
8961         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
8962         guint for 1 bit bit fields, not gboolean.
8963
8964 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
8965
8966         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
8967         not TRUE. (Fixes #52925)
8968
8969 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
8970
8971         * Released 1.3.4
8972
8973         * NEWS: Updated
8974
8975         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
8976         use GTK_TYPE_ENUM.
8977
8978 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
8979
8980         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
8981
8982         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
8983         names to compatibility #defines so docs work.
8984
8985         * gtk/gtkenums.h: Remove GtkMenuFactoryType
8986
8987         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
8988
8989         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
8990
8991         * tests/testgtkrc: No magenta cursors, please.
8992
8993         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
8994
8995         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
8996         
8997 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
8998
8999         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
9000         grabs, since they are no longer necessary.
9001
9002         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
9003         by signal_connect() and call gtk_button_pressed() rather
9004         than signal_connect_after().
9005
9006         * tests/testgtk.c: Restore radio menu items to combos 
9007         since they'll look OK with Raleigh, and it is easier
9008         than finishing the process of removing them that was
9009         started earlier.
9010
9011 2001-04-16  Hans Breuer  <hans@breuer.org>
9012
9013         * gdk/gdk.def :
9014         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
9015
9016         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
9017         we are interested in the functions return value not the function address
9018         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
9019
9020         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
9021
9022 2001-04-14  Hans Breuer  <hans@breuer.org>
9023
9024         * gdk/gdk.def :
9025         * gdk/makefile.msc : updated
9026
9027         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
9028         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
9029         (the testgtk::text backgound pixmap is drawn again)
9030         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
9031         Win32 Pango change
9032         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
9033
9034         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
9035         Not sure if the returned settings have the right unit, because I couldn't
9036         find any docs for the X version ...
9037
9038         * gtk/gtk.def :
9039         * gtk/makefile.msc.in : updated
9040
9041 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
9042
9043         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
9044         wording problems. (Compared to version from Johannes Stezenbach to
9045         check correctness.)
9046
9047 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
9048
9049         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
9050         this to compile.
9051
9052 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
9053
9054         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
9055         not pixbufpos.
9056
9057         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
9058
9059         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
9060         are unsigned insts, therefore use g_value_set_uint.
9061         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
9062
9063 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
9064
9065         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
9066
9067         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
9068         GTK_TYPE_STRING.
9069
9070         * gtk/gtktreeview.c: New functions to allow initial column
9071         dragging work.
9072
9073         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
9074
9075         * tests/testtreefocus.c: give dave some love.
9076
9077         * tests/testtreesort.c: Modify test to check really long samples.
9078
9079 2001-04-11  Alexander Larsson  <alexl@redhat.com>
9080
9081         * gtk-2.0.m4: Pass pkg-config options
9082         before the other args so it works even if
9083         POSIXLY_CORRECT is set.
9084
9085 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
9086
9087         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
9088         0, interface 0).
9089
9090 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
9091
9092         * gtk/gtkcalendar.c (gtk_calendar_button_press):
9093         check for action_func != NULL
9094
9095 2001-04-04  Sven Neumann  <sven@gimp.org>
9096
9097         * tests/testgtk.c (test_init): corrected path to gtk.immodules
9098
9099 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
9100
9101         * Released Gtk+-1.3.3.
9102
9103 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
9104
9105         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
9106
9107 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
9108
9109         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
9110         files to/from source dir. (if we don't stay in builddir, we
9111         can't reach make-inline-pixbuf.
9112
9113         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
9114         deps.
9115
9116         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
9117         ages 0).
9118
9119 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
9120
9121         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
9122         moved to the GtkTreeSortable interface.
9123
9124         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
9125         Make more efficient (fixes #50262).
9126
9127 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
9128
9129         * NEWS: Updated.
9130
9131         * configure.in: Remove support for uninstalled glib.
9132
9133         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
9134         so as not to stop emission.
9135
9136         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
9137         is no longer supported.
9138
9139         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
9140         into tests, change build order to build modules before
9141         gtk/.
9142
9143         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
9144         to here.
9145
9146 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
9147
9148         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
9149         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
9150         GPatternSpec. this is actually unlikely to cause breakage in
9151         third-party apps since except for gle, pretty much ever caller
9152         passes NULL here.
9153
9154         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
9155
9156         * *.c: use g_pattern_*() API.
9157
9158         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
9159
9160         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
9161         directions aren't passed in.
9162
9163         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
9164         functionality to be usable from gtkstyle.c as well, give precedence
9165         for conversion to user-supplied parsers.
9166         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
9167
9168         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
9169         _gtk_settings_parse_convert() for rcporperty value conversion.
9170
9171 2001-04-03  Alexander Larsson  <alexl@redhat.com>
9172
9173         * gdk/linux-fb/gdkevents-fb.c:
9174         Add empty gdk_setting_get().
9175
9176 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
9177
9178         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
9179         variable names.
9180         
9181         * gtk/makeenums.pl: touch this so enum files get remade.
9182
9183 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
9184
9185         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
9186         work again when not sorted.
9187
9188         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
9189         and "expand_row" signal, closing bug 52578.
9190
9191         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
9192         support.
9193
9194         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
9195         support.
9196
9197 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
9198
9199         * gdk/gdkevents.h: Add GdkEventSetting event for notification
9200         of changes to system settings, gdk_setting_get() to retrieve
9201         a single system setting.
9202
9203         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
9204         to the draft XSETTINGS mechanism.
9205
9206         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
9207         XSETTINGS.
9208
9209         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
9210         of GDK settings changes to the GtkSettings object.
9211
9212         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
9213         double-click-timeout property to GDK.
9214
9215         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
9216         Define GDK boxed types here.
9217
9218         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
9219         gdk/gdkenumtypes.[ch] for enum definitions.
9220
9221         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
9222         * gtk/gtk-boxed.defs: Comment out GDK types
9223         * gtk/gtktypeutils.h: Remove GDK types
9224         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
9225
9226 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
9227
9228         * Applied patch from Ron Steinke to add signal accumulators
9229         so that signals with the convention 'TRUE return means
9230         handled' stop emission on a TRUE return.
9231
9232         * gtk/gtkmain.[ch]: Add private accumulator 
9233         _gtk_boolean_handled_accumulator, used throughout GTK+.
9234         
9235         * gtk/gtkspinbutton.c: Add accumulator for ::output.
9236
9237         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
9238         
9239         * gtk/gtkwidget.c: Add accumulators for event signals,
9240         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
9241         for ::mnemonic-activate.
9242
9243         * gtk/gtkwindow.c: Add accumulator for ::frame_event
9244
9245 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
9246
9247         * gtk/gtkwidget.c: Add missing include.
9248
9249 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
9250
9251         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
9252         marshaller.
9253
9254         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
9255         "changed" signal to "range_changed".
9256
9257         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
9258         removing a tree from one model would remove all trees from that
9259         model.
9260         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
9261         changed signal instead.
9262
9263 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
9264
9265         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
9266         chaining up to parent impl, since we have a INPUT_ONLY
9267         window.
9268
9269         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
9270         foreground color for the cursor.
9271
9272 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
9273
9274         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
9275         param spec when caching property values, since we unref it
9276         later when we free the style.
9277
9278         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
9279         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
9280
9281 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
9282
9283         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
9284         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
9285         stupidity.
9286
9287 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
9288
9289         [ First pass at adding style properties. Still needs some definite
9290         fine-tuning. ]
9291
9292         * gtk/gtkbutton.c: Add ::default_spacing style property.
9293          
9294         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
9295         ::indicator_spacing style properties.
9296
9297         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
9298         style properties.
9299
9300         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
9301         rather than a normal property.
9302
9303         * gtk/gtkwidget.c: Add an ::interior_focus style property to
9304         draw focus inside buttons, in the Windows/Java Metal/etc. style.
9305
9306         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
9307         Honor ::interior_focus.
9308         
9309         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
9310         TRUE.
9311
9312         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
9313         Add ::slider_width, ::trough_border, ::stepper_size,
9314         ::stepper_spacing style properties.
9315
9316         * gtk/gtkscale.[ch] Add ::slider-length style property.
9317
9318 2001-04-02 Alexander Larsson   <alexl@redhat.com>
9319
9320         * gdk/linux-fb/gdkwindow-fb.c:
9321         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
9322         warnings that were spewed on startup.
9323
9324         * gtk/gtkwindow-decorate.c:
9325         gtk_window_reposition -> _gtk_window_reposition
9326
9327 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
9328
9329         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9330         Add boxed type for GtkRequistion. Use it for ::size-request.
9331
9332         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
9333         Add a new GtkBorder structure useful for geometry properties
9334         for widgets. Add corresponding GTK_TYPE_BORDER.
9335         
9336         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
9337         Support automatic parser selection like
9338         gtk_settings_install_property_parser().
9339
9340         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
9341         functionality for use by gtk_widget_class_install_style_property.
9342         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
9343
9344 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
9345
9346         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
9347         g_param_spec_unichar(). 
9348
9349 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
9350
9351         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
9352         _NET window managers.
9353
9354         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
9355
9356 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
9357
9358         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
9359         bad needs to be nuked, not just deprecated.
9360
9361         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
9362         gtk_widget_popup().
9363
9364         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
9365         
9366         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
9367         widget.
9368         
9369         * docs/Changes-2.0.txt: updates.
9370         
9371 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
9372
9373         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
9374         for (i = 0; i < 100; i ++)
9375           g_print ("I will confirm it compile before committing\n");
9376
9377 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
9378
9379         * gtk/gtktreestore.c: Initial work on implementing the
9380         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
9381
9382 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
9383
9384         * gtk/gtkwidget.c: fixed a bunch of notifications, added
9385         reference counts around emissions where the widget is used afterwards.
9386         added freeze/thaws around multiple properties being notified.
9387         (_gtk_widget_get_aux_info): cleanups.
9388         
9389         * gtk/gtksettings.c (gtk_settings_install_property): provide
9390         default parsing functions for gdkcolor, enums and flags.
9391
9392         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
9393         applied by owen.
9394         backed out gtk_window_get_location(), gtk_window_set_location(),
9395         gtk_window_get_size() and gtk_window_set_size(), these
9396         have to be sorted out wrg x/y/width/height/default_with/default_height
9397         properties.
9398         kept a flag in GtkWindowGeometryInfo to handle user
9399         resetting default sizes.
9400         cleaned up ZVT comments.
9401         bunch of assorted bug fixes, notification fixes.
9402         (_gtk_window_reposition): make this a really internal function.
9403         
9404         * gtk/testgtk.c: fixups.
9405         
9406 2001-03-31  Hans Breuer  <hans@breuer.org>
9407
9408         * config.h.win32.in : disable USE_MMX for msvc build cause
9409         the assembler doesn't fit and is out of my scope. Disable
9410         USE_GMODULE for msvc build as wel. The right way to share
9411         binaries on win32 would be to use libtiff.dll etc. To reduce
9412         installation hassles IMO it's better to include all fileformats
9413         builtin to gdk-pixbuf
9414
9415         * gdk-pixbuf/makefile.msc : new file
9416
9417         * gdk/gdk.def : updated
9418
9419         * gdk/win32/gdkevents-win32.c : don't erase the background if
9420         .no_bg is set. It improves the scrolling (e.g. of testgtk main
9421         buttons
9422         * gdk/win32/gdkgeometry-win32.c : added comment about the above
9423
9424         * gdk/win32/gdkwindow-win32.c : added three new functions like
9425         the X version. Only one is implemented, because the other two
9426         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
9427         be default behaviour on win32 anyway ...
9428
9429         * gtk/gtk.def : updated
9430
9431         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
9432         from where it was built and add an additional rule to automagically
9433         build gtkmarshal.[hc]
9434
9435         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
9436         before array access for the current entry isn't finished
9437
9438         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
9439         use g_return_val_if_fail
9440
9441         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
9442         for the static array, but let the compiler calculate it. It
9443         makes me wonder if gcc isn't capable to catch bugs like this ...
9444
9445 2001-03-31  James Henstridge  <james@daa.com.au>
9446
9447         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
9448         constant "-1" in the aux info structure.
9449
9450 2001-03-30  Alexander Larsson  <alexl@redhat.com>
9451
9452         * gtk/gtkbutton.c (gtk_button_get_property):
9453         * gtk/gtklabel.c:
9454         Remove leaks.
9455         
9456         * gtk/gtkcontainer.c:
9457         * gtk/gtkhscale.c:
9458         * gtk/gtkhscrollbar.c:
9459         * gtk/gtklayout.c:
9460         * gtk/gtkmisc.c:
9461         * gtk/gtkprogress.c:
9462         * gtk/gtkprogressbar.c:
9463         * gtk/gtkrange.c:
9464         * gtk/gtktable.c:
9465         * gtk/gtkviewport.c:
9466         * gtk/gtkvscale.c:
9467         * gtk/gtkvscrollbar.c:
9468         * gtk/gtkwidget.c:
9469         Property patches, based on patches from John Margaglione and Lee Mallabone.
9470
9471 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
9472
9473         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
9474         adjustment. Cleaned redundant preconditions (spin != NULL). Added
9475         inline API function docs.
9476         (gtk_spin_button_new_with_range): New convenience constructor.
9477         (gtk_spin_button_set_increments): New adjustment helper.
9478         (gtk_spin_button_set_range): New adjustment helper.
9479
9480         * gtk/testgtk.c : added test of the new convenince constructor and
9481         value_changed signals.
9482
9483 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
9484
9485         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
9486         listen to the reorder signal.
9487
9488 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
9489
9490         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
9491         to get the aux info structure fo the widget.
9492
9493         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
9494         above function.
9495
9496         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
9497
9498         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
9499         to get the size of the window manager frame, basically the same
9500         code that gdk_window_get_root_origin() had
9501         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
9502
9503         * gtk/gtkwindow.c (gtk_window_set_default_size): use
9504         gdk_window_resize() if the window is realized and resizeable
9505
9506         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
9507         typo so that setting gravity works
9508
9509         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
9510         allocation if auto_shrink is on, even if the default size
9511         has not changed.
9512
9513         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
9514         g_return_if_fail
9515
9516 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
9517
9518         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
9519         reordering/sorting work.  Now pretty much works.
9520
9521         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
9522         reorder mostly work.  Still need to get the parity correct.
9523
9524         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
9525         signal, so I can listen for the sort_column_changed signal so I
9526         can change my "sort_indicator" property.  Cool.
9527
9528 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
9529
9530         [ Patch from Havoc Pennington, hp@redhat.com ]
9531
9532         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
9533         Add functions gdk_window_begin_resize_drag/begin_move_drag
9534         to start resizing or moving a toplevel window. This
9535         is done either using the _NET_WM_MOVERESIZE protocol,
9536         or, if that isn't present, by emulation.
9537
9538         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
9539         to export the above to GTK+-land.
9540
9541         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
9542         
9543         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
9544         Move this function into gdkwindow, since we need it
9545         when implementing fallback resizing.
9546
9547         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
9548         Fix typo when setting gravity.
9549
9550         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
9551         Add an optional (but on by default) resize grip for resizing 
9552         the parent window.
9553
9554 01-03-29  Alexander Larsson  <alexl@redhat.com>
9555
9556         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
9557         Don't return TRUE from the event handler, that blocks all
9558         event signals on the tooltip widget. Now you can press buttons
9559         in toolbars again.
9560
9561 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
9562
9563         * gtk/testtext.c (create_buffer): Add missing NULL on
9564         valist.
9565
9566         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
9567         c-n-p problem with INCONSISTENT property.
9568
9569         [ Patch from Havoc Pennington  <hp@redhat.com> ]
9570
9571         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
9572         hook.
9573
9574         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
9575         signal as a hook for extending the default popup menu
9576
9577         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
9578         use radio menu items for the input method menuitems
9579
9580         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
9581         inserted unicode from Ctrl-Shift-hex input method
9582
9583         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
9584         validatation here, already done at GtkTextBuffer level.
9585
9586         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
9587         popup_menu run action signal and Shift+F10 and Menu keybindings.
9588
9589         * gtk/gtkentry.c: implement a default handler for popup_menu
9590
9591         * gtk/gtktextview.c: implement a default handler for popup_menu
9592
9593         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
9594         from a key event
9595         
9596         * gtk/gtklabel.c: remove "trailer" cruft
9597
9598 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
9599
9600         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
9601         handle reordering of trees.  Seems to mostly work w/ the exception
9602         of the parity flag.
9603
9604         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
9605         signal.
9606
9607 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
9608
9609         * gtk/gtkwidget.h: c++ fixes.
9610
9611 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
9612
9613         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
9614         memory.
9615
9616 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
9617
9618         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
9619         Nils Barth fixing event return values. (#51041)
9620
9621         * gtk/gtkwidget.c: Fix some return values for default
9622         functions.
9623
9624         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
9625         return values for trough_keys functions.
9626
9627         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
9628         value for add_accelerator (shoudl have been a void
9629         return.)
9630
9631         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
9632         Fix return type of EVENT.
9633
9634         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
9635         signal return a boolean.
9636
9637 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
9638
9639         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
9640         reordered signal.
9641
9642         * tests/testtreesort.c (main): fix spelling.
9643
9644 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
9645
9646         * gtk/gtkliststore.c: More work on implementing sortable
9647         interface.
9648
9649 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
9650
9651         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
9652         reference the widgets in the resulting list. (#11821)
9653         This makes this consistent with gtk_container_children.
9654
9655         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
9656         uses of gtk_window_list_toplevels.
9657
9658 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
9659
9660         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
9661         a virtual function to set whether the IM context should use 
9662         the preedit string. (#51922)
9663         
9664 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
9665
9666         * gdk/gdkpango.h: Remove stale FIXME comment.
9667
9668 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
9669
9670         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
9671         Fixed bug that returned NULL if a filename was selected.
9672
9673 2001-03-24  Havoc Pennington  <hp@pobox.com>
9674
9675         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
9676         to contain the word "theme"
9677
9678 2001-03-24  Havoc Pennington  <hp@pobox.com>
9679
9680         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
9681         slower but finer-grained
9682         (gtk_hsv_focus): get initial focus on the ring or triangle 
9683         according to tab direction
9684
9685         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
9686
9687 2001-03-23  Havoc Pennington  <hp@pobox.com>
9688
9689         * gtk/gtkhsv.c: make this somewhat key-navigable
9690
9691         * gtk/gtkfontsel.c: mnemonics
9692
9693         * gtk/gtkgamma.c: mnemonics
9694
9695         * gtk/gtkcolorsel.c: add mnemonics to labels
9696
9697 2001-03-22  Havoc Pennington  <hp@pobox.com>
9698
9699         Applied big patch from Seth Lytle to fix event handler return
9700         values, slightly modified.
9701
9702         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
9703         handled.
9704         (gtk_calendar_key_press): return TRUE for GDK_space triggers
9705         select_day
9706
9707         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
9708         (gtk_clist_button_release): return TRUE if handled
9709
9710         * gtk/gtkcolorsel.c (mouse_release):
9711         (palette_activate): 
9712         (palette_press): 
9713         (palette_new): 
9714         (mouse_press): 
9715         (get_screen_color): 
9716         fixed return type (void to gboolean), return TRUE,
9717         added GTK_SIGNAL_FUNC cast
9718
9719         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
9720         (void to gboolean), and return TRUE
9721         (gtk_combo_button_release): changed return value to TRUE after
9722         gtk_grab_add on combo->popwin
9723
9724         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
9725         collapse or expand
9726
9727         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
9728         button/motion
9729
9730         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
9731         press/release and motion that trigger act
9732
9733         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
9734
9735         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
9736         for GDK_Return
9737         
9738         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
9739         (gtk_list_button_release): return TRUE if selection
9740
9741         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
9742         press
9743
9744         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
9745         (gtk_menu_shell_button_release): chain parent_menu_shell retval
9746
9747         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
9748         nothing triggered
9749         (gtk_notebook_button_release): return TRUE if we do anything
9750
9751         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
9752         (gtk_spin_button_button_release): return TRUE or chained retval
9753
9754         * gtk/gtktext.c (gtk_text_button_press): 
9755         (gtk_text_button_release): return TRUE
9756         (gtk_text_key_press): remove redundant retval code
9757         
9758         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
9759         and sensitive
9760         (gtk_tree_item_subtree_button_click): changed type to gint, and return
9761         TRUE if sensitive
9762
9763         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
9764         return TRUE
9765
9766 2001-03-23  Havoc Pennington  <hp@redhat.com>
9767
9768         * gtk/testgtk.c: fix warnings
9769
9770         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
9771
9772         * gtk/gtktextview.c: fix warnings
9773
9774         * gtk/gtktext.c (find_cursor_at_line): fix warning
9775
9776         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
9777
9778         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
9779         of this function
9780
9781         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
9782         fix warning
9783
9784         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
9785
9786         * gtk/gtkfontsel.c: fix warning
9787
9788         * gtk/gtkcolorsel.c: fix warnings
9789
9790 2001-03-23  Havoc Pennington  <hp@redhat.com>
9791
9792         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
9793
9794         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
9795
9796         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
9797         and deprecated gtk_check_menu_item_set_show_toggle().
9798         
9799         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
9800
9801         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
9802
9803         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
9804
9805 2001-03-23  Havoc Pennington  <hp@redhat.com>
9806
9807         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
9808         some docs
9809
9810 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
9811
9812         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
9813         this.
9814
9815         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
9816         set_cell to set_value
9817
9818         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
9819         set_cell to set_value
9820
9821 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
9822
9823         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
9824         fix braino.
9825         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
9826         support.
9827
9828         * gtk/gtktreeview.c: Addition of initial sortable support.
9829
9830         * gtk/gtktreestore.c: Addition of initial sortable support.
9831
9832         * gtk/gtkliststore.c: Addition of initial sortable support.
9833
9834         * gtk/gtkmarshal.list: yet another marshaller.
9835
9836         * gtk/gtktreedatallist.[ch]: shared code between the store models
9837         for handling sorting headers.
9838
9839 2001-03-22  Havoc Pennington  <hp@redhat.com>
9840
9841         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
9842         (gtk_container_unset_focus_chain): Add ability to override the 
9843         focus chain for a container explicitly
9844
9845 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
9846
9847         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
9848         added PROP_MNEMONIC_WIDGET.
9849
9850         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
9851         (gtk_window_remove_mnemonic): 
9852         (gtk_window_add_mnemonic): fixed assertions.
9853         (gtk_window_activate_mnemonic): constrain modifier checks to those
9854         permitted by gtk_accelerator_get_default_mod_mask().
9855         got rid of gtk_window_get_default_accel_group().
9856
9857         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
9858         activatable widgets either by focussing or a warning.
9859         added a signal accumulator to ::activate_mnemonic which stops the
9860         emission once a handler returned TRUE.
9861
9862 2001-03-22  Havoc Pennington  <hp@pobox.com>
9863
9864         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
9865         the stock item label
9866
9867         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
9868
9869         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
9870
9871         * demos/gtk-demo/*.c: Add mnemonics all over the place
9872
9873         * gtk/gtklabel.h: mark parse_uline deprecated
9874
9875 2001-03-21  Alexander Larsson  <alexl@redhat.com>
9876
9877         * gtk/gtkitemfactory.[ch]:
9878         Add support for stock and normal imagemenuitems.
9879         
9880         * gtk/testgtk.c:
9881         Add some tests for mnemonics, stock toolbars, stock
9882         and image menuitems in itemfactory and gdk_window_scroll.
9883
9884 2001-03-21  Alexander Larsson  <alexl@redhat.com>
9885
9886         * gtk/gtkbutton.[ch]:
9887         * gtk/gtkdialog.c:
9888         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
9889         removed accel_group argument. Renamed gtk_button_new_accel() to
9890         gtk_button_new_with_mnemonic() and removed accel_group argument.
9891
9892         * gtk/gtkcheckbutton.[ch]:
9893         New function gtk_check_button_new_with_mnemonic().
9894
9895         * gtk/gtkentry.c:
9896         Override activate_mnemonic and just grab focus.
9897
9898         * gtk/gtkitemfactory.c:
9899         Don't add menu uline accel group, instead use mnemonics support.
9900
9901         * gtk/gtklabel.[ch]:
9902         New support for mnemonics.
9903
9904         * gtk/gtkmarshal.list:
9905         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
9906
9907         * gtk/gtkmenu.[c]:
9908         * gtkmenushell.c:
9909         Use mnemonics instead of accel groups for uline
9910         support in menu items.
9911         Removed gtk_menu_get_uline_accel_group() and
9912         gtk_menu_ensure_uline_accel_group().
9913
9914         * gtk/gtkmenuitem.c:
9915         Override activate_mnemonic to handle switching between
9916         menu items if there are collisions.
9917         
9918         * gtk/gtknotebook.c:
9919         Connect to activate_mnemonic on the tab_label, so that
9920         activating it switches to that notebook page.
9921
9922         * gtk/gtkwidget.[ch]:
9923         Add activate_mnemonic signal. New function
9924         gtk_widget_activate_mnemonic() to emit it.
9925         Default implementation does activate/grab_focus.
9926
9927         * gtk/gtkwindow.[ch]:
9928         Add support for mnemonics in windows.
9929         New functions:
9930         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
9931         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
9932
9933         * gtk/testgtk.c:
9934         Update to function name changes.
9935         
9936 2001-03-21  Alexander Larsson  <alexl@redhat.com>
9937
9938         * gtk/gtkimagemenuitem.[c]:
9939         Add gtk_image_menu_item_new_from_stock()
9940
9941 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
9942
9943         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
9944         Fix buglet in meeting.
9945
9946 2001-03-19  Havoc Pennington  <hp@redhat.com>
9947
9948         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
9949         add a bunch of accessor functions. This is because we have
9950         reasonable expectations of extending what fields it contains in
9951         the future.
9952
9953         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
9954         changes
9955
9956         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
9957         GtkIconSource   
9958
9959 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
9960
9961         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
9962         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
9963
9964         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
9965           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
9966           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
9967           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
9968         Change float to double everywhere with the exception of 0<->1.0 alignment
9969         and GtkCurve.
9970
9971 2001-03-19  Tor Lillqvist  <tml@iki.fi>
9972
9973         * gdk/win32/gdkdrawable-win32.c
9974         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
9975         output.
9976
9977         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
9978         gdkwin32.h.
9979
9980 2001-03-18  Tor Lillqvist  <tml@iki.fi>
9981
9982         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
9983         print_event_state, print_event): Use preprocessor macro to make
9984         code more compact. Print also GDK_WINDOW_STATE events.
9985         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
9986         
9987         * gtk/gtk.def
9988         * gtk/makefile.mingw.in: Update.
9989
9990         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
9991         to catch also Cygwin.
9992
9993 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
9994
9995         * gtk/gtkspinbutton.[hc]: added rc-style argument
9996         GtkSpinButton::shadow_type.
9997         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
9998         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
9999         rc-style settings.
10000
10001         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
10002
10003         * gtk/gtkwidget.c: quark cleanups.
10004
10005         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
10006         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
10007         to create_rc_style() (we don't do cloning in standard OO sense).
10008         added per rc style properties.
10009         
10010         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
10011         property values and for caching those. some cleanups.
10012         
10013         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
10014         
10015         * gtk/gtksettings.[hc]: new file for global rc-file properties
10016         (at least currently, should get extended to support X properties
10017         and other communication mechanisms).
10018         
10019         * gtk/gtkwidget.[hc]: added style property support:
10020         (gtk_widget_class_install_style_property_parser): install style
10021         property pspec with parser function for rc-file values other
10022         than LONG, DOUBLE or STRING.
10023         (gtk_widget_class_install_style_property): same as above without
10024         parser (parsers are going to be needed quite infrequently).
10025         (gtk_widget_style_get_property): retrive style property value.
10026         (gtk_widget_style_get_valist): same as above with varargs support,
10027         has NOCOPY semantics.
10028         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
10029
10030 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
10031
10032         * demos/gtk-demo/main.c (row_activated_cb): modified to use
10033         "row_activated" signal.
10034
10035         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
10036         stupidity.  Lets actually pass in the row with this signal...
10037
10038 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
10039
10040         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
10041
10042         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
10043
10044         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
10045         everything into the ::destroy function, and freed a lot more.
10046
10047 2001-03-16  Havoc Pennington  <hp@redhat.com>
10048
10049         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
10050         instead of gint16, to avoid overflow issues, since sizes > 16-bit
10051         are now allowed.
10052
10053 2001-03-16  Havoc Pennington  <hp@redhat.com>
10054
10055         * Applied patch from Nils Barth (bug # 51041) to 
10056         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
10057         in various places.
10058
10059 2001-03-15  Havoc Pennington  <hp@redhat.com>
10060         
10061         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
10062         for properties to set on the tag.
10063
10064         * gtk/testtext.c: fixups to reflect create_tag change
10065         
10066         * gtk/gtktexttag.c (gtk_text_tag_set_property):
10067         background/foreground stipple are objects, not boxed.
10068
10069         * demos/gtk-demo/textview.c: intellihancing
10070
10071 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
10072
10073         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
10074         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
10075
10076 2001-03-16  Alexander Larsson  <alexl@redhat.com>
10077
10078         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
10079         Fix sign error with queued region translations.
10080
10081 2001-03-15  HideToshi Tajima  <tajima@happy>
10082
10083         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
10084         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
10085         * gtk/gtkentry.c (update_im_cursor_location): 
10086         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
10087         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
10088         set_cursor_pos to set_cursor_location in GtkInputContext class
10089
10090 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
10091
10092         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
10093         the location of the cell relative to its area.
10094         * gtk/gtkcell*: modified for above change
10095         * gtk/gtktreeview.c: modified for above change.
10096
10097 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
10098
10099         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
10100          (gtk_tree_view_finalize): actually unref the model.  Thanks to
10101         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
10102
10103 2001-03-14  Havoc Pennington  <hp@redhat.com>
10104
10105         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
10106         
10107         * gtk/gtk.h: remove gtkdata.h
10108
10109         * gtk/Makefile.am: remove gtkdata
10110         
10111         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
10112         not "disconnect" on the adjustments.
10113         
10114         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
10115         GtkData
10116
10117         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
10118         not GtkData
10119
10120         * configure.in: handle case where X render exists, but Pango lacks
10121         Xft support.
10122
10123 2001-03-15 Alexander Larsson  <alexl@redhat.com>
10124
10125         * gtk/gtktoolbar.[ch]:
10126         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
10127         to add stock items to toolbars.
10128
10129         * gtk/Makefile.am:
10130         Remove ../gdk/gdkim.h from gdk_headers.
10131
10132 2001-03-15  Sven Neumann  <sven@gimp.org>
10133
10134         * gdk/gdkim.h: removed
10135         
10136         * gdk/gdkprivate.h
10137         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
10138
10139 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
10140
10141         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
10142         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
10143         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
10144         set_cursor_pos() virtual method
10145
10146         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
10147         (gtk_im_context_xim_set_cursor_pos): add implementation for
10148         set_cursor_pos() method
10149
10150         * gtk/gtkentry.c (recompute_idle_func): set current cursor
10151         position to input methods
10152
10153 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
10154
10155         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
10156         code a lot.
10157
10158         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
10159         g_mem_chunk.
10160         (_gtk_tree_data_list_alloc): use g_mem_chunk.
10161         (_gtk_tree_data_list_node_to_value): Fix to switch on
10162         G_TYPE_FUNDAMENTAL.
10163         (_gtk_tree_data_list_value_to_node): Fix to switch on
10164         G_TYPE_FUNDAMENTAL.
10165         (_gtk_tree_data_list_node_copy): Fix to switch on
10166         G_TYPE_FUNDAMENTAL.
10167
10168 2001-03-12  Havoc Pennington  <hp@redhat.com>
10169
10170         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
10171         to convert to new property API. Also, change default_width and
10172         default_height get_property to return 0 as the flag value for
10173         "unset"; -1 is not a valid value for these fields.
10174
10175 2001-03-12  Havoc Pennington  <hp@redhat.com>
10176
10177         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
10178         enum with registration for icon sizes, instead of strings.
10179
10180         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
10181         gtkwidget.c: Fix to reflect GtkIconSize
10182         
10183 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10184
10185         Make GtkFB compile and link.
10186         
10187         * gdk/linux-fb/gdkdrawable-fb2.c:
10188         window->mapped to GDK_WINDOW_IS_MAPPED(). 
10189         
10190         * gdk/linux-fb/gdkwindow-fb.c:
10191         window->mapped to GDK_WINDOW_IS_MAPPED(). 
10192         Added gdk_window_shape_combine_region.
10193         Added assorted placeholders for unimplemented new GdkWindow API calls.
10194
10195 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10196
10197         * gtk/gtkfilesel.c:
10198         Add more test when converting filenames from/to utf-8.
10199         Don't allow entering text in the filename entry which isn't allowed in
10200         a filename. Just beep instead.
10201
10202 2001-03-12  Alexander Larsson  <alexl@redhat.com>
10203
10204         * gtk/gtkclist.c:
10205         Scroll using gdk_window_scroll(). Don't wait for exposes.
10206         Move the column headers in an order that makes them flash less.
10207
10208 2001-03-10  Hans Breuer  <hans@breuer.org>
10209
10210         * gdk/gdk.def : updated
10211
10212         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
10213         to offseting the clip_mask at the right place
10214
10215         * gdk/win32/gdkwindow-win32.c : don't create background brushes
10216         for all the gdkClasses, especially not for the input_only case.
10217         Otherwise flickering wont be avoidable, because we don't get
10218         WM_ERASEBKGND message for these windows.
10219
10220         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
10221         and fixed massive redraw problems apparently triggered by Alexanders 
10222         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
10223         but it seems to work quite well :-)
10224
10225         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
10226         prototype
10227
10228 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
10229
10230         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
10231         (gtk_list_store_set_cell): Fix a stupid typo.
10232
10233 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
10234
10235         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
10236         select_all not work if you're in SINGLE mode (it doesn't make that
10237         much sense, anyway.)
10238
10239         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
10240         handle types more sanely.
10241         (_gtk_tree_data_list_value_to_node): handle types more sanely.
10242         (_gtk_tree_data_list_node_copy): handle types more sanely.
10243
10244         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
10245         GValue better. Converts the type as well.
10246
10247         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
10248         GValue better. Converts the type as well.
10249
10250 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
10251
10252         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
10253         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
10254         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
10255         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
10256
10257         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
10258         gdk_im/gdk_ic.
10259
10260 2001-03-09  Hans Breuer  <hans@breuer.org>
10261
10262         * gdk/gdk.def : updated
10263
10264         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
10265         for their palette
10266
10267         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
10268         removing
10269
10270         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
10271         removing and implemented Havoc's GdkWindow state functions; 
10272         stick/unstick only as no-op, cause I don't know how to emulate 
10273         on win32 ...
10274
10275         * gtk/gtk.def : updated
10276
10277         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
10278
10279         * gtk/gtktypeutils.c : #include <string.h>
10280
10281         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
10282
10283 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
10284
10285         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
10286         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
10287         not a boxed.
10288
10289 2001-03-09  Alexander Larsson  <alexl@redhat.com>
10290
10291         * docs/Changes-2.0.txt:
10292         Document expose event->region change and that gtk_widget_event
10293         doesn't allow passing expose events.
10294
10295         * gdk/gdkevents.h:
10296         Add region to expose event.
10297         
10298         * gdk/gdkevents.c:
10299         Handle event->region in gdk_event_copy() and gdk_event_free().
10300
10301         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
10302         Generate expose_event->region when creating expose events.
10303
10304         * gdk/x11/gdkevents-x11.c:
10305         Generate expose events with regions when translating X events.
10306
10307         * gtk/gtkcontainer.[ch]:
10308         Default expose handler that propagates expose events to NO_WINDOW
10309         children. New function gtk_container_propagate_expose()
10310
10311         * gtk/gtkwidget.[ch]:
10312         Moved gtk_widget_event implementation to gtk_widget_event_internal.
10313         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
10314         expose events. New function gtk_widget_send_expose() to send expose
10315         events. New function gtk_widget_region_intersect() to calculate
10316         window/region intersections.
10317         
10318         * gtk/gtkmain.c (gtk_main_do_event):
10319         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
10320         Use gtk_widget_send_expose() to send expose events.
10321         
10322         * gtk/gtkbin.c:
10323         * gtk/gtkbox.c:
10324         * gtk/gtkfixed.c:
10325         * gtk/gtkimagemenuitem.c:
10326         * gtk/gtklist.c:
10327         * gtk/gtkpacker.c:
10328         * gtk/gtktable.c:
10329         * gtk/gtktree.c:
10330         Remove expose handler, using the default container implementation
10331         instead.
10332         
10333         * gtk/gtkbutton.c:
10334         * gtk/gtkcheckbutton.c:
10335         * gtk/gtkeventbox.c:
10336         * gtk/gtkfixed.c:
10337         * gtk/gtkhandlebox.c:
10338         * gtk/gtklayout.c:
10339         * gtk/gtklistitem.c:
10340         * gtk/gtkmenu.c:
10341         * gtk/gtkmenubar.c:
10342         * gtk/gtkmenuitem.c:
10343         * gtk/gtknotebook.c:
10344         * gtk/gtkoptionmenu.c:
10345         * gtk/gtkpaned.c:
10346         * gtk/gtkscrolledwindow.c:
10347         * gtk/gtktogglebutton.c:
10348         * gtk/gtktoolbar.c:
10349         * gtk/gtktreeitem.c:
10350         * gtk/gtkviewport.c:
10351         Chain expose handler to parent class handler. Use
10352         gtk_container_propagate_expose() to propagate exposes.
10353
10354         * gtk/gtkclist.c (check_exposures):
10355         * gtk/gtktext.c (process_exposes):
10356         Use gtk_widget_send_expose instead of gtk_widget_event.
10357
10358 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
10359
10360         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
10361
10362 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
10363
10364         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
10365         unref the nodes.   Fixes bug #50058.
10366
10367         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
10368         "::ref_iter" to "::ref_node".
10369         (gtk_tree_model_unref_node): change "::unref_iter" to
10370         "::unref_node". Fixes bug #50064.
10371
10372 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
10373
10374         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
10375         support for invisible cells.
10376          (gtk_tree_view_bin_expose): ditto
10377
10378 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
10379
10380         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
10381         on gobjects.
10382
10383         * tests/testtreefocus.c (main): New test file.
10384
10385         * tests/testtreeview.c: update to latest glib changes.
10386
10387         * tests/testtreecolumns.c: update to latest glib changes.
10388
10389 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
10390
10391         * gtk/testgtk.c: re-enabled event watcher emission hooks.
10392
10393 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
10394
10395         * *.c: added accumulator data argument to g_signal_newc()
10396         functions.
10397
10398         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
10399         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
10400         * gtk/treestoretest.c (make_window):
10401         s/g_signal_connect/g_signal_connectc/.
10402
10403         * gtk/gtktextbuffer.c: completed signal arg fixups,
10404         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
10405
10406 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
10407
10408         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
10409         G_CONST_RETURN.
10410
10411         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
10412         ::hierarchy-changed signal when a widget changes
10413         from anchored to unanchored or vice versa.
10414         (anchored means 
10415          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
10416         Use a private flag to keep track of this efficiently.
10417
10418 2001-03-07  Havoc Pennington  <hp@redhat.com>
10419
10420         * gtk/testgtk.c (create_spins): uglify so that size request gets
10421         tested.
10422
10423         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
10424         request on values for upper/lower, completes #6152
10425
10426 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
10427
10428         * Makefile.am: Remove gtk-config-2.0 again.
10429         (Grrrr, pkg-config. And stops make loops.)
10430
10431 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
10432
10433         * gtk/gtksignal.[hc]: removed old emission hook API.
10434         
10435         * docs/Changes-2.0.txt: fixed sections.
10436         
10437         * gtk/gtktextbuffer.c: signal arg fixups.
10438
10439 2001-03-07  Havoc Pennington  <hp@redhat.com>
10440
10441         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
10442
10443         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
10444         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
10445         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
10446         validation and the redraw which is higher priority than the
10447         validation.
10448
10449 2001-03-07  Havoc Pennington  <hp@redhat.com>
10450
10451         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
10452         (gtk_entry_set_property): remove trailer
10453
10454         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
10455         (gtk_entry_get_width_chars): new functions, to set size request to 
10456         a given number of characters
10457
10458         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
10459
10460         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
10461         (gtk_dialog_get_has_separator): new function
10462         (run_delete_handler): fix to not emit "response" signal
10463         because we already did in the delete event handler installed
10464         at dialog creation time.
10465         
10466         * gtk/gtkdialog.h: add a has_separator property,
10467         add GTK_DIALOG_NO_SEPARATOR flag
10468
10469 2001-03-07  Havoc Pennington  <hp@redhat.com>
10470
10471         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
10472         off decorations for a window.
10473
10474         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
10475         changes
10476
10477         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
10478         to get location of PangoLayout inside the label, closes #51198
10479
10480         * gtk/testgtk.c (create_bbox): fix up button box usage
10481
10482         * gtk/testcalendar.c (create_calendar): fix up button box usage
10483
10484         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
10485
10486         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
10487
10488         * gtk/gtkhbbox.h: deprecations
10489
10490         * gtk/gtkvbbox.h: deprecations
10491
10492         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
10493         emulate deprecated gtk_button_box_get_spacing
10494
10495         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
10496         the "set global default" functions
10497         (struct _GtkButtonBox): remove "spacing" field, use the one from 
10498         GtkBox base class
10499
10500         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
10501
10502         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
10503         render the icon, return the missing image icon.
10504
10505         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
10506         image icon if the load fails.   
10507
10508         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
10509         when no image is found; should be the Netscape "missing image"
10510         icon eventually but for now is a random image
10511
10512         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
10513         role for the session manager
10514
10515         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
10516
10517         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
10518         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
10519
10520         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
10521
10522 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
10523
10524         * gtk/*.c: marshaller fixes.
10525         
10526         * gtk/gtkmarshal.list: extreme cleanup.
10527
10528         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
10529         param spec for now.
10530
10531         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
10532         where appliable.
10533
10534         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
10535         special cased autogenerated boxed types from gtktypebuiltins_ids.c
10536         which are not reference counted:
10537         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
10538         PangoFontDescription, GtkTreeIter and GtkTreePath.
10539
10540 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
10541
10542         * gtk/gtktreeselection.h: 
10543         * gtk/gtktreemodel.c:
10544         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
10545         file should be included directly, and gobject/gmarshal.h
10546         as well as gtk/gtkmarshal.h even can't be included directly.
10547
10548         * Makefile.am: grr, install gtk-config-2.0.
10549
10550         * gtk/testgtk.c:
10551         * gtk/simple.c:
10552         * gtk/gtkmenu.c:
10553         * gtk/gtkitemfactory.c: use g_object_connect() instead of
10554         passing "*signal*::*" args to gtk_widget_set().
10555         
10556         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
10557         
10558         * gtk/*.c: removed trailer arg from property setters and getters.
10559         macro fixups.
10560
10561 2001-03-07  Alexander Larsson  <alexl@redhat.com>
10562
10563         * gtk/gtklabel.c (set_markup): Removed warning
10564
10565 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
10566
10567         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
10568         field to allow you to hide cell renderers.
10569
10570         * gtk/gtkcellrenderer.c: Add support for invisible cells.
10571
10572         * gtk/gtktreeview.c: Add support for invisible cells.
10573
10574 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
10575
10576         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
10577         Add "clicked" signal back to columns.
10578
10579         * ChangeLog: remove conflict markers.
10580
10581 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
10582
10583         * gtk/gtkbutton.c: Add animation of activation by, on 
10584         activate, pressing the button, and adding a timeout that 
10585         releases the button after 250ms or on key release and
10586         emits ::clicked. (#51501)
10587
10588         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
10589         action area, we connect to ::clicked instead of ::activate
10590         so the dialog stays up through the animation.
10591
10592 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
10593
10594         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
10595         check the ignore_enter flag for the menu shell that
10596         the item is actually a child of, not for attached
10597         submenus. (#51536)
10598
10599 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
10600
10601         * gtk/gtkmain.c (gtk_propagate_event): Only do special
10602         special key-press grab handling for widgets within
10603         GtkWindows. Otherwise, fall through to normal case.
10604
10605         This prevents key events being sent twice to GtkInvisible
10606         widgets, which can cause all sorts of mischief.
10607
10608 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
10609
10610         * gtk/gtkmain.c (gtk_propagate_event): When a grab
10611         widget is in effect, give the grab widget a first
10612         crack at KEY_PRESS/RELEASE events. (#424)
10613
10614 2001-03-06  James Henstridge  <james@daa.com.au>
10615
10616         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
10617         offset for the window_state_event to point at window_state_event
10618         rather than no_expose_event.
10619
10620 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
10621
10622         * gtk/gtkimmodule.h: fix busted /* comment */
10623
10624 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
10625
10626         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
10627         object properties.
10628
10629 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
10630
10631         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
10632         add object properties.
10633
10634         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
10635         to add object properties.
10636
10637         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
10638         object properties.
10639
10640         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
10641         add object properties.
10642
10643         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
10644         object properties.
10645
10646 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
10647
10648         * gtk/gtktreemodel.c: renamed "child_toggled" to
10649         "has_child_toggled".
10650
10651         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
10652         handle new signal name.
10653
10654         * gtk/gtktreestore.c: Updated to handle new signal name.
10655         * gtk/gtklisttore.c: Updated to handle new signal name.
10656         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
10657
10658 2001-03-05  Alexander Larsson  <alexl@redhat.com>
10659
10660         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
10661         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
10662
10663 2001-03-05  Michael Natterer  <mitch@gimp.org>
10664
10665         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
10666         pixbuf-engine coincidentially also failed to make one of it's
10667         parent_class pointers static, causing overwriting of GtkLabel's
10668         parent_class pointer in pixbuf_style_class_init().
10669         (Will commit the fix to the pixbuf-engine too).
10670
10671 2001-03-05  Alexander Larsson  <alexl@redhat.com>
10672
10673         * gdk/gdkwindow.h:
10674         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
10675         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
10676         gdk_window_set_icon_list for net wmspec functionality.
10677
10678         * gdk/x11/gdkwindow-x11.c:
10679         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
10680         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
10681         gdk_window_set_icon_list.
10682         Added gdk_wmspec_change_state helper function and used it in the code.
10683         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
10684
10685         * gtk/gtkdialog.c (gtk_dialog_init):
10686         Set GDK_WINDOW_TYPE_HINT_DIALOG.
10687
10688         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
10689         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
10690
10691         * gtk/gtkwindow.c:
10692         new function gtk_window_set_type_hint.
10693         On realize, set type hint and modal hint.
10694
10695         * gtk/gtkwindow.h:
10696         Added type_hint field and gtk_window_set_type_hint.
10697
10698 2001-03-05  Alexander Larsson  <alexl@redhat.com>
10699
10700         * gtk/gtklabel.[ch]:
10701         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
10702         New function gtk_label_get_accel_keyval () to get the underline accelerator
10703         of the label. Setting the label pattern overrides other attributes.
10704
10705 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
10706
10707         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
10708         Added missing initializers to gtk_rc_style_init().
10709
10710 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
10711
10712         * gtk/gtktextview.c: fixed bug #51097 about setting 
10713         gtk_text_view_set_border_window_size() if the widget is 
10714         already realized.
10715
10716 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
10717
10718         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
10719
10720         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
10721         comment. Won't do to have duplicated doc comments between
10722         the platform subdirs.
10723
10724 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
10725
10726         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
10727           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
10728
10729         Detectable auto-repeat - make a repeating key generate
10730         press/press/press/release instead of press/release pairs.
10731
10732         If we have Xkb and XkbSetDectableAutoRepeat supports
10733         that, we do it that way. Otherwise, when we get
10734         a release event, we check ahead with XPending to see
10735         if the next key is a KeyPress with the same keycode
10736         and timestamp. (Not 100% reliable, but pretty close.)
10737           
10738 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
10739         
10740         * gtk/gtkmain.c (gtk_propagate_event): Only do special
10741         special key-press grab handling for widgets within
10742         GtkWindows. Otherwise, fall through to normal case.
10743  
10744         This prevents key events being sent twice to GtkInvisible
10745         widgets, which can cause all sorts of mischief.
10746  
10747 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
10748  
10749         * gtk/gtkmain.c (gtk_propagate_event): When a grab
10750         widget is in effect, give the grab widget a first
10751         crack at KEY_PRESS/RELEASE events. (#424)
10752  
10753 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
10754
10755         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
10756         to extend the selection. (Roughly based on patch
10757         from Jay Cox, #50939)
10758
10759         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
10760         to properly handle previous GDK_BUTTON_PRESS. 
10761         (Patch from Jay Cox, #50938)
10762
10763         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
10764         '\0' back along with the deleted text. (#51148)
10765
10766 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
10767
10768         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
10769         the group when extracting it from the X keyboard event.
10770
10771         * modules/input/Makefile.am modules/input/imipa.c: 
10772         Simple module for entering IPA. (Do we need a 
10773         gtk-stupid-input-tricks CVS module?)
10774
10775 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
10776
10777         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
10778         const.
10779
10780         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
10781
10782         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
10783         is no focus widget for the dialog currently, grab the focus as well
10784         as the default.
10785
10786         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
10787         the action area's children to iterate through, not the
10788         dialog's children.
10789
10790 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
10791
10792         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
10793         Add plug-socket tests. (Won't work worth a darn until I commit
10794         the rest of the plug-socket changes, but no reason these
10795         can't go into CVS now.)
10796
10797 2001-03-02  Havoc Pennington  <hp@redhat.com>
10798
10799         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
10800         _gdk_region_get_xrectangles()
10801
10802         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
10803
10804         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
10805
10806         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
10807         function, contributed by Ron Steinke    
10808
10809         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
10810         gdk_net_wm_supports
10811
10812         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
10813         New function, contributed by Ron Steinke
10814
10815         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
10816         used to line up the text in the entry when using the entry for
10817         editable sheet cell hacks
10818
10819         * gtk/testgtk.c (create_entry): test the activate_default setting
10820         on GtkEntry
10821
10822         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
10823         cause the entry to activate the default button for a dialog when 
10824         activated
10825         (gtk_entry_get_activates_default): new function
10826
10827 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
10828
10829         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
10830         Hwang to move call to sync_selection() up a few lines
10831         to before the row list is modified, to fix crash when
10832         removing rows in the undo_selection list.
10833
10834         (Test case provided by Daniel Elstner:
10835
10836         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
10837
10838 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
10839
10840         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
10841         of tree->root_tree in parent_set rather than _map(), 
10842         fixing #50892 in a bit better manner.
10843
10844 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
10845
10846         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
10847
10848 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
10849
10850         * gtk/gtkstyle.c : Remove duplicate fwd decl for
10851         gtk_default_draw_shadow.
10852
10853 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
10854
10855         * gdk/gdkimage.c (gdk_image_new): Remove excess 
10856         warning, make warnings more verbose, treat a error
10857         in shmat as permanent, and don't try again.
10858         (#51163, Ed Randall.)
10859
10860 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
10861
10862         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
10863         delay for the first click before starting to scroll.
10864         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
10865
10866         * gtk/gtktext.c: GtkText should have I-beam cursor. 
10867         (based on gtk-enf-990513-1.patch, Eric Fisher.)
10868
10869 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
10870
10871         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
10872         cleanup to remove some references to unused
10873         ->xoffset, ->yoffset.
10874
10875 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
10876
10877         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
10878         mask. (#51039, fix from Martin Maierhofer)
10879
10880 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
10881
10882         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
10883         for unshifted + and shifted = for non-us keyboards.
10884         Make <Control>+ and <Control>- work as well as 
10885         <Control>KP_Plus, <Control>KP_Minus for recursive
10886         open/close.  (#2682, René Seindal)
10887
10888 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
10889
10890         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
10891         the active menu item before deactivating the menu,
10892         so gtk_menu_popdown doesn't change the history. (#50964)
10893         
10894 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
10895
10896         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
10897         draw lines with text_gc rather than black_gc.
10898         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
10899
10900 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
10901
10902         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
10903         Move handling of buttons fully in gtktreeviewcolumn.  This code is
10904         less interrelated then it was, but it still requires the
10905         GtkTreeView to map it.
10906
10907         * test/testtreecolumn.c: Now I can add a column to one view,
10908         remove it, add it to the another view, remove it, then re-add it
10909         to the first.  Nifty.
10910
10911 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
10912
10913         * docs/tutorial/gtk-tut.sgml: Minor corrections
10914
10915 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
10916
10917         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
10918         GtkRowReference.
10919
10920 2001-02-28  Havoc Pennington  <hp@redhat.com>
10921
10922         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
10923         draw_default
10924         (gtk_widget_draw_focus): remove this function; we could instead
10925         make it just gtk_widget_draw(), but in most cases I think the
10926         result would be broken user code, so think it's better to have
10927         that code not compile and get fixed
10928         (gtk_widget_draw_default): ditto
10929
10930         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
10931         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
10932         
10933         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
10934         widgets lose/get the default, instead of calling draw_default
10935         
10936         * docs/Changes-2.0.txt: note about all this
10937
10938         Then fixed every widget in GTK, I won't list all the filenames.
10939
10940 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
10941
10942         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
10943         _gtk_tree_row_reference_deleted.
10944         (inserted_callback): Proxy out to
10945         _gtk_tree_row_reference_inserted.
10946         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
10947         get around signal emission ordering problem.
10948
10949         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
10950         fix to work with SINGLE 
10951         (_gtk_tree_selection_internal_select_node): Major sanitization on
10952         selections.  SINGLE now seems to work.
10953
10954         * tests/Makefile.am: add testtreecolumn.c:
10955
10956         * tests/testtreecolumn.c: New test.  Mostly points out selection
10957         bugs currently, but will test columns later.
10958
10959         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
10960         selection bug.  I hate touching this code -- it's scary.
10961
10962 2001-02-26  Havoc Pennington  <hp@redhat.com>
10963
10964         * gtk/testgtk.c: test the window state stuff
10965
10966         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
10967         window come to the user's attention as if it were just created
10968         (gtk_window_iconify): new function
10969         (gtk_window_deiconify): new function
10970         (gtk_window_stick): new function
10971         (gtk_window_unstick): new function
10972         (gtk_window_maximize): new function
10973         (gtk_window_unmaximize): new function
10974
10975         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
10976
10977         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
10978
10979         * gdk/x11/gdkevents-x11.c: create window state events when
10980         appropriate
10981         (gdk_wmspec_supported): new function
10982
10983         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
10984         iconification before showing the window
10985         (gdk_window_deiconify): new function
10986         (gdk_window_stick): new function
10987         (gdk_window_unstick): new function
10988         (gdk_window_maximize): new function
10989         (gdk_window_unmaximize): new function
10990
10991         * gdk/gdkwindow.c: store the window state in the window; 
10992         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
10993         window->mapped.
10994         (gdk_window_get_state): return the current window state
10995
10996         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
10997         (gdk_event_get_state): handle GDK_WINDOW_STATE
10998         (gdk_synthesize_window_state): function to create the window state
10999         events
11000
11001         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
11002         event, for changes to "window state" such as maximized, sticky, 
11003         etc.
11004         
11005         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
11006         focuses a window
11007
11008         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
11009         finds out if we support a given WM spec hint
11010
11011 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
11012
11013         * docs/faq/gtk-faq.sgml: New question re memory leaks.
11014
11015 2001-02-25  Hans Breuer  <hans@breuer.org>
11016
11017         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
11018         cause we want to loose those prototypes only in the latter case
11019
11020         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
11021         GdkPixmapImplWin32 because it itsn't derived from it. Use the
11022         impl member variable instead
11023
11024         * gtk/gtk.def : updated
11025
11026         * gtk/gtklist.c : 
11027         * gtk/gtkmenus.c : include <string.h> for memset ()
11028
11029         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
11030         for everthing built here, but for gtk-x.x.dll only. This solves
11031         problem of indifferent gtk type definitions
11032
11033 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
11034
11035         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
11036
11037 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
11038
11039         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
11040         column that is exposed.
11041
11042         (_gtk_tree_view_update_size): Changed name from set_size, and
11043         changed function to do more work, and not force people calling it
11044         to figure out the size.  Simplifies a lot of code elsewhere.
11045
11046 2001-02-23  Alexander Larsson  <alexl@redhat.com>
11047
11048         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
11049         return solid masks for xpms that have no transparent color.
11050         This makes the ..._create_from_xpm... API backwards
11051         compatible.
11052
11053 2001-02-23  Tor Lillqvist  <tml@iki.fi>
11054
11055         * README.win32: Update. Mention the gtk-1-3-win32-production
11056         branch.
11057
11058         * gdk/win32/bdfcursor.c: New file. A program that generates
11059         xcursors.h. Thanks to Stefan Ondrejicka.
11060
11061         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
11062         compact format.
11063
11064         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
11065
11066         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
11067         function, uses xcursors.h.
11068         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
11069         cursor from inline data instead of using LoadCursor() to generate
11070         it from a resource.
11071
11072         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
11073         event, must check the Windows message for mouse button state, as
11074         the GDK event state might not have been built if it is
11075         undelivered. Remove one goto.
11076
11077         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
11078         SetCursor() if the current cursor as returned by GetCursor() is
11079         the window's previous cursor. The ChildWindowFromPoint() test
11080         apparently didn't work correctly.
11081
11082         * gdk/win32/rc/*.cur: Remove.
11083
11084         * gdk/win32/rc/gdk.rc.in: Remove cursors.
11085
11086         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
11087
11088         * gtk/makefile.{mingw,msc}.in: Updates.
11089
11090 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
11091
11092         * gtk/gtktreemodel.h: add functions for signal emission.
11093
11094         * gtk/gtktreestore.c: move to use above functions instead of
11095         g_signal_emit.
11096
11097         * gtk/gtkliststore.c: ditto
11098
11099 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
11100
11101         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
11102         GObject instead of GtkObject.
11103
11104         * gtk/gtkliststore.c: ditto.
11105
11106         * gtk/gtktreemodelsort.c: ditto.
11107
11108         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
11109         GtkTreeModelIface, instead of in each model.
11110
11111 2001-02-21  Havoc Pennington  <hp@redhat.com>
11112
11113         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
11114         unbreak this function
11115
11116         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
11117         properties
11118
11119         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
11120         properties
11121
11122         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
11123         properties
11124
11125         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
11126         mean unset the max length
11127
11128 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
11129
11130         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
11131         Changed name to be set_cell_data_func to make it clear what
11132         the functino does.  Close bug #51069.
11133
11134 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
11135
11136         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
11137         have memory actually freed.  Keeps box running longer.
11138
11139 2001-02-21  Alexander Larsson  <alexl@redhat.com>
11140         
11141         * gtk/gtkseparatormenuitem.[ch]:
11142         Added new menu separator item. The drawing and size handling
11143         is still done in GtkMenuItem, but the API is a bit more sane.
11144         
11145         * gtk/Makefile.am:
11146         Add gtkseparatormenuitem.[ch].
11147
11148         * gtk/gtk.h:
11149         Add gtkseparatormenuitem.h.
11150         
11151         * gtk/gtkentry.c:
11152         * gtk/gtkmenufactory.c:
11153         * gtk/gtktextview.c:
11154         Use the new API for menu separators.
11155         
11156         * demos/gtk-demo/menus.c (create_menu):
11157         Add some GtkSeparatorMenuItem demo code.
11158
11159 2001-02-20  Havoc Pennington  <hp@redhat.com>
11160
11161         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
11162         Lee Mallabone
11163
11164         * gtk/gtkarrow.c: Convert to new property API, patch from 
11165         Lee Mallabone
11166
11167 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
11168
11169         * tests/testtreeview.c (toggled_callback): fix to reflect change
11170         in GtkTreeModelStore.
11171
11172 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
11173
11174         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
11175         function to create an icon set from a pixbuf.
11176
11177 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11178
11179         * gtk/gtkcellrenderertext.[ch]:
11180         Add a "markup" property.
11181
11182         * gtk/treestoretest.c:
11183         Use the markup property, remove some leftover stuff from
11184         GtkTreeModelMapping.
11185
11186 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11187
11188         * gtk/gtklabel.c (gtk_label_set_selectable):
11189         Queue a redraw if the selectable setting was changed.
11190
11191 2001-02-20  Alexander Larsson  <alexl@redhat.com>
11192
11193         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
11194         Actually copy the whole gc, not just the public parts.
11195         
11196         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
11197         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
11198         labels.
11199
11200 2001-02-19  Havoc Pennington  <hp@pobox.com>
11201
11202         * gdk/gdkwindow.c: docs
11203
11204         * gdk/gdkrgb.c: docs
11205
11206         * gdk/gdkregion-generic.c: docs
11207
11208         * gdk/gdkgc.c (gdk_gc_set_values): docs
11209
11210         * gdk/gdkdraw.c: docs
11211
11212         * gdk/gdkdrawable.h: deprecate drawable get/set data
11213
11214 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
11215
11216         * demos/gtk-demo/dialog.c: Add simple new demo.
11217
11218 2001-02-19  Havoc Pennington  <hp@redhat.com>
11219
11220         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
11221         insert_child_anchor signal, bug #50245
11222
11223         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
11224         from create_child_anchor, so the anchor is passed in
11225
11226         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
11227         (_gtk_widget_segment_new): have the child anchor object passed in, 
11228         instead of creating it.
11229
11230         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
11231         to gtk_text_buffer_get_modified
11232
11233 2001-02-19  Havoc Pennington  <hp@redhat.com>
11234
11235         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
11236         changed GLib without fixing GTK
11237
11238         * gtk/gtkrange.h: Rename all the stupid implementation detail 
11239         functions to have an underscore in front. Most of them should 
11240         probably just go away, but for starters don't export them.
11241         Bug #50482
11242
11243 2001-02-19  Havoc Pennington  <hp@redhat.com>
11244
11245         * gdk/gdkcolor.h: test was backward, so deprecated functions were
11246         excluded by default
11247
11248         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
11249         clean up the old code a bit
11250
11251         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
11252         inconsistent state
11253
11254         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
11255         draw inconsistent state
11256
11257         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
11258         (create_menu): add inconsistent test
11259
11260         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
11261         new function
11262         (gtk_check_menu_item_get_inconsistent): new function
11263         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
11264         state (using etched in for now)
11265
11266         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
11267         draw inconsistent state
11268
11269         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
11270         function, used when the user has selected a range of stuff in
11271         different states
11272         (gtk_toggle_button_get_inconsistent): accessor for that
11273         (gtk_toggle_button_paint): draw inconsistent state (etched in?
11274         don't know what else to do)
11275
11276 2001-02-19  Hans Breuer <hans@breuer.org>
11277
11278         * gtk/gtk.def : updated exported symbols
11279
11280         * gtk/makefile.msc.in : updated
11281
11282         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
11283         a colormap, when invoked from testgtk::entry. I'm not sure where
11284         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
11285         avoids immediate crashing ...
11286
11287         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
11288         any objections ?
11289
11290         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
11291         0 parameter. At least msvc doesn't like macros with var args. 
11292         I simply removed the extra 0, was it a feature or a typo ?
11293
11294         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
11295         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
11296         because the value assignment to the internal struct wasn't working.
11297         I'm not absolutely sure. The problem could have been resolved by
11298         changing the "func" declartion in the struct, but was the pointer
11299         to the function pointer intended ?
11300
11301         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
11302
11303         * gdk/gdk.def : updated exported symbols
11304
11305         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
11306         only use SetDIBitsToDevice if there is a palette at the drawable
11307         and the image is GDK_VISUAL_PSEUDO_COLOR
11308
11309         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
11310
11311         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
11312
11313         * gdk/*/makefile.msc : updated
11314
11315 2001-02-19  Havoc Pennington  <hp@redhat.com>
11316
11317         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
11318         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
11319
11320         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
11321         (gdk_key_repeat_restore): nuke
11322
11323         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
11324         (gdk_init_check): no atexit func
11325
11326         * gdk/gdkrgb.h: mark some stuff deprecated
11327
11328         * gdk/gdkcolor.h: mark some stuff deprecated
11329         
11330         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
11331
11332         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
11333
11334 2001-02-16  Havoc Pennington  <hp@redhat.com>
11335
11336         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
11337         scroll steps.
11338
11339         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
11340         steps, and add Ctrl-arrow shortcuts for paging visually as with
11341         HScale, since Page Up and Page Down move logically.
11342
11343         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
11344         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
11345         
11346         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
11347         steps
11348         (gtk_range_scroll): handle the visual steps
11349
11350         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
11351         scroll steps
11352
11353         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
11354         steps, not the logical ones.
11355
11356         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
11357         (scroll_vertical): handle up/down steps
11358
11359 2001-02-19 Alexander Larsson  <alexl@redhat.com>
11360
11361         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
11362         Copy data and free data with free().
11363
11364         * gdk-pixbuf/gdk-pixbuf.c:
11365         * gdk-pixbuf/io-jpeg.c:
11366         * gdk-pixbuf/io-png.c:
11367         Use g_try_malloc/g_free instead malloc/free.
11368         
11369         * gdk-pixbuf/test-gdk-pixbuf.c:
11370         Must... initialize... gobject...
11371         
11372         * gdk-pixbuf/pixops/timescale.c:
11373         * gtk/gtkcalendar.c:
11374         Use g_malloc instead of malloc.
11375         
11376 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
11377
11378         * gtk/testgtkrc:
11379         Comment out property assignments, these don't work yet.
11380
11381 2001-02-17  Havoc Pennington  <hp@pobox.com>
11382
11383         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
11384         bit.
11385
11386 2001-02-17  Havoc Pennington  <hp@pobox.com>
11387
11388         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
11389         shadowed variables that had broken size request in some cases,
11390         leading to bogus tooltips (#50996)
11391
11392 2001-02-06  Jon K Hellan  <hellan@acm.org>
11393
11394         Implement fast browsing of tooltips, bug #50619
11395         
11396         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
11397         and last_popdown
11398         
11399         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
11400         use_sticky_delay and last_popdown.
11401         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
11402         time of popdown.
11403         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
11404         is NULL.
11405         (gtk_tooltips_recently_shown): New static function.  Return true
11406         if < sticky_delay has elapsed since last popdown.
11407         (gtk_tooltips_event_handler): Display window after sticky_delay
11408         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
11409         since last popdown.
11410         
11411 2001-02-17  Havoc Pennington  <hp@pobox.com>
11412
11413         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
11414         instead of (). #6394
11415
11416         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
11417         G_CONST_RETURN, make it return by reference, #50473
11418         
11419 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
11420
11421         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
11422         generated ENTER_NOTIFY event with 0, otherwise not explicitely
11423         setup fields contain garbage (e.g. subwindow, breaking
11424         gdk_drawable_ref() upon event copy).
11425         (gtk_menu_stop_navigating_submenu_cb): same here.
11426
11427         * gtk/gtklist.c (gtk_list_vertical_timeout): 
11428         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
11429         * gtk/gtkclist.c (vertical_timeout): 
11430         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
11431         default-zero-intialization for unions to memset(,0,), as unions are
11432         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
11433         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
11434
11435         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
11436         g_closure_sink() warning.
11437
11438         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
11439         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
11440         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
11441         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
11442         
11443 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
11444
11445         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
11446         gtk_*_store_get, and moved to GtkTreeModel.
11447
11448         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
11449
11450         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
11451
11452         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
11453
11454         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
11455         set the func.
11456
11457         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
11458         freeze/thaw notify between setting all the properties for a cell.
11459
11460         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
11461
11462 2001-02-15  Havoc Pennington  <hp@redhat.com>
11463
11464         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
11465         the X coordinates so they're with respect to the line, rather than 
11466         with respect to the layout.
11467
11468         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
11469         Mallabone
11470
11471         * gtk/testgtk.c (create_range_controls): add vscale tests, 
11472         and inverted test
11473
11474         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
11475         #50806
11476
11477         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
11478
11479         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
11480         gtk_text_iter_is_end
11481
11482         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
11483         rename gtk_text_buffer_get_end_iter
11484
11485         * gtk/testgtk.c (create_labels): Add test for selectable
11486
11487         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
11488         the selection stuff. This code is kind of broken since it doesn't 
11489         use the theme engine.
11490
11491         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
11492         fix infinite loop and y offset problem
11493         (gdk_draw_layout_line_with_colors): fix foreground color handling
11494
11495         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
11496         that makes the label selectable.
11497         
11498         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
11499         layout when the style is set, since fonts etc. could have changed.      
11500
11501 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
11502
11503         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
11504
11505         * gtk/gtktreemodelsimple.[ch]: removed.
11506
11507 2001-02-16  Alexander Larsson  <alexl@redhat.com>
11508
11509         * gtk/gtktreemodelmapping.[ch]:
11510         New files. Implement GtkTreeModelMapping.
11511         
11512         * gtk/Makefile.am:
11513         Add gtktreemodelmapping.[ch].
11514         
11515         * gtk/gtk.h:
11516         Add gtktreemodelmapping.h
11517
11518         * gtk/treestoretest.c:
11519         Test the GtkTreeModelMapping
11520
11521 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
11522
11523         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
11524         have a demo, we might as well pass in real values.  Thanks to
11525         clahey for pointing this out.
11526
11527 2001-02-14  Havoc Pennington  <hp@pobox.com>
11528
11529         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
11530         "static" to a private function
11531         (gtk_image_menu_item_class_init): remove destroy handler,
11532         add "image" object property
11533
11534 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
11535
11536         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
11537         Add a shortcut if the window and the current clip_region doesn't
11538         overlap. This is needed when there are a lot of windows in a
11539         window. The layout test in testgtk is a good test.
11540
11541         * gdk/linux-fb/gdkwindow-fb.c:
11542         Whitespace fix.
11543
11544 2001-02-13  Sven Neumann  <sven@convergence.de>
11545
11546         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
11547
11548 2001-02-13  Alexander Larsson  <alexl@redhat.com>
11549
11550         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
11551         Don't reference last_cursor if it is null. Fixes crash when rotating
11552         the screen before having moved the mouse.
11553
11554         * gdk/linux-fb/gdkcc-fb.c: Zapp!
11555
11556         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
11557
11558         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
11559         when using 90 or 270 degrees rotation.
11560
11561 2001-02-12  Havoc Pennington  <hp@pobox.com>
11562
11563         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
11564         it always set the foreground, even if we were only using
11565         a stipple.
11566         (gdk_draw_layout_line_with_colors): new function, allow
11567         override colors
11568         (gdk_draw_layout_with_colors): new function, allow override
11569         colors
11570         (gdk_pango_layout_line_get_clip_region): function to get the clip
11571         region for a logical text range
11572         (gdk_pango_layout_get_clip_region): get the clip region for a
11573         logical text range
11574
11575         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
11576         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
11577         the right number of arguments.
11578
11579         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
11580         enhance the function to check that node data corresponds to a 
11581         view still belonging to the tree.
11582
11583         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
11584         GtkTreePath
11585         (gtk_tree_view_inserted): ditto
11586         (gtk_tree_view_child_toggled): ditto
11587
11588         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
11589         simplify this code.
11590
11591         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
11592         a PangoAttrList
11593
11594         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
11595
11596         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
11597
11598         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
11599         size in the size request 
11600         (gtk_menu_bar_size_allocate): consider toggle size here
11601
11602         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
11603         that displays a widget in the toggle slot
11604
11605         * gtk/testgtk.c: test GtkImageMenuItem
11606
11607         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
11608         
11609         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
11610         request and allocation
11611
11612         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
11613
11614         * gtk/gtkcheckmenuitem.c
11615         (gtk_check_menu_item_toggle_size_request): ditto
11616         
11617 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
11618
11619         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
11620         reference.
11621
11622         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
11623         and refuse to initialize GTK+ if they fail.
11624
11625 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
11626
11627         * configure.in: Add check for gtk-doc version.
11628
11629 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
11630
11631         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
11632         where the xpad/ypad was only being used on one side!
11633
11634 2001-02-11  Tor Lillqvist  <tml@iki.fi>
11635
11636         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
11637         function, copied from X11 version.
11638
11639         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
11640         DestroyCursor failures. The reason for the problem (despite the
11641         inconsistent messages from GetLastError()) was that
11642         DestroyCursor() cannot be called while a cursor is set in a
11643         window. Set the new cursor first and then destroy the old one.
11644         Thanks to jpe@archaeopteryx.com.
11645
11646         * gdk/win32/gdkcc-win32.c: Remove.
11647
11648         * gdk/win32/Makefile.am: Remove from here, too.
11649         
11650         * gdk/gdk.def
11651         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
11652
11653         * gtk/gtk.def
11654         * gtk/makefile.mingw.in: Updates.
11655
11656 2001-02-08  Havoc Pennington  <hp@redhat.com>
11657
11658         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
11659         add a widget to a bin that already has a child.
11660
11661         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
11662
11663         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
11664         
11665         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
11666
11667         * gdk/gdk.h: remove gdkcc.h
11668
11669         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
11670
11671         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
11672         GdkPixbuf, since the previous implementation was GdkColorContext
11673         dependent.
11674
11675         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
11676         
11677 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
11678
11679         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
11680         a sane value!
11681
11682 2001-02-08  Havoc Pennington  <hp@redhat.com>
11683
11684         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
11685         lighten them.
11686
11687 2001-02-08  Havoc Pennington  <hp@redhat.com>
11688
11689         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
11690         validation idle
11691
11692         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
11693         cell renderer
11694
11695         * demos/pixbuf-demo.c (timeout): remove deprecated
11696         gtk_widget_draw
11697
11698         * demos/testpixbuf-save.c (main): remove deprecated
11699         gtk_drawing_area_size
11700
11701         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
11702         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
11703         at the start of the allocation.
11704         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
11705         unsetup or NULL model.
11706
11707         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
11708         even/odd/sorted cells in the tree view.
11709
11710         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
11711         bugfixes
11712
11713         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
11714         backgrounds with draw_flat_box using different detail for even/odd
11715         rows.
11716
11717         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
11718         row, so we can draw the alternating colors thing
11719
11720         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
11721         property from a synonym property, notify for the synonym.
11722         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
11723         (gtk_text_tag_get_property): Always return the font, even if
11724         all its fields aren't set
11725
11726         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
11727         store the attr list; it leaves us with no way to change attributes
11728         in _render according to the render flags, and no way to implement
11729         get_property. Instead store all the specific text attributes. 
11730         Separate whether an attribute is enabled from its value. Sync all
11731         properties with GtkTextTag, make them all consistent, etc.
11732
11733         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
11734         renderers can highlight the sort row/column     
11735
11736         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
11737         accessor functions to get values; this has the side effect of
11738         showing up which accessor functions were missing. Added those.
11739
11740         * gtk/gtktreeviewcolumn.h: Replace set_justification with
11741         set_alignment, to be consistent with GtkLabel, GtkMisc
11742
11743         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
11744         arrow.
11745
11746         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
11747
11748         * gtk/gtktreesortable.h: updates in here
11749
11750 2001-02-07  Sven Neumann  <sven@convergence.de>
11751
11752         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
11753         pango dimensions after painting the background. We used to draw
11754         gigantic flat boxes here.
11755
11756 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
11757
11758         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
11759         error introduced with earlier commit) (pointed out by
11760         Ollie Lho)
11761
11762 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
11763
11764         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
11765         which are no longer necessary.
11766
11767 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
11768
11769         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
11770
11771 2001-02-04  Tor Lillqvist  <tml@iki.fi>
11772
11773         * gdk/gdk.def
11774         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
11775         Provide dummy implementations.
11776
11777 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
11778
11779         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
11780
11781         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
11782         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
11783         deprecated this function.
11784
11785         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
11786         argument.
11787
11788 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
11789
11790         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
11791
11792 2001-02-03  Havoc Pennington  <hp@pobox.com>
11793
11794         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
11795         Mikael Hermansson with patch from Mikael (if there was a toggle
11796         start one after the first character in the range, this function
11797         was broken). Bug #50380
11798
11799 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
11800
11801         * configure.in: Remove confusing comment about X11.
11802
11803 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
11804
11805         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
11806         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
11807         
11808 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
11809
11810         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
11811         it breaks things on BSD. If you want to compile GTK+ with
11812         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
11813         when configuring, since GTK+ simply can't be "pure ANSI" 
11814         in the header files it uses. (#8170, Greg Hudson)
11815
11816 2001-02-02  Havoc Pennington  <hp@redhat.com>
11817
11818         * gtk/gtkwindow.c: docs
11819
11820         * gtk/gtkwidget.c: docs
11821         (gtk_widget_set_colormap): add a reference to the colormap
11822         (gtk_widget_get_default_colormap): add a reference to the colormap
11823
11824         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
11825
11826         * gtk/gtktextiter.c: docs
11827
11828         * gtk/gtkmain.c (gtk_propagate_event): docs
11829
11830         * gtk/gtkpaned.c (gtk_paned_get_position): docs
11831         (gtk_paned_set_position): docs
11832
11833         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
11834         sort interface, no implementation yet.
11835
11836         * demos/testpixbuf.c (new_testrgb_window): replace
11837         gtk_drawing_area_size() with gtk_widget_set_usize()
11838
11839         * demos/testpixbuf-drawable.c (main): ditto
11840         
11841         * gtk/testgtk.c: remove use of GtkStatusbarMsg
11842
11843         * gtk/gtktextbuffer.c: docs
11844
11845         * gtk/gtkstock.c: docs
11846
11847         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
11848
11849         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
11850
11851         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
11852         
11853         * gtk/gtkimage.c: add some docs in here
11854         (gtk_image_size_request): change name of
11855         gtk_widget_render_stock_icon
11856         (gtk_image_get_icon_set): don't dup returned string
11857         (gtk_image_get_icon_set): don't dup returned string
11858
11859         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
11860         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
11861         and gtkiconfactory.h functions
11862
11863         * gtk/gtkiconfactory.c: add some docs in here
11864
11865         * gtk/gtkmain.c (gtk_get_default_language): document
11866         (gtk_get_current_event): document
11867         (gtk_get_current_event_state): document
11868         (gtk_get_event_widget): document
11869
11870         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
11871
11872         * gtk/gtkcontainer.c: Add some documentation
11873         (gtk_container_add): give a more explanatory warning on adding an
11874         already-parented widget, this is kind of a FAQ and also a common
11875         typo that's easier to debug with a nice warning 
11876
11877         * gtk/gtkcellrenderertoggle.c
11878         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
11879         adding this, it's useless
11880         (gtk_cell_renderer_toggle_set_active): remove
11881         (gtk_cell_renderer_toggle_get_radio): add
11882
11883         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
11884         the NULL cell renderer, that doesn't make any sense to me. 
11885
11886         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
11887         demo code should never use deprecated features.
11888
11889         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
11890         code should never use deprecated features.
11891
11892         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
11893         gtk_widget_queue_clear_area deprecated
11894
11895         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
11896         deprecated
11897
11898         * gtk/gtklabel.h: mark gtk_label_get() deprecated
11899
11900         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
11901         a GdkImage deprecated, replaced by new consistently-named
11902         functions       
11903
11904         * gtk/gtkmain.h: Mark gtk_exit() deprecated
11905
11906         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
11907
11908         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
11909         deprecated
11910
11911         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
11912         so it won't appear in docs and confuse people.
11913
11914         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
11915
11916         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
11917         macros deprecated. (can't mark the type itself deprecated, since
11918         GtkProgressBar is not deprecated and we need the type decl to use
11919         GtkProgressBar)
11920
11921         * gtk/gtkpixmap.h: Mark deprecated
11922
11923         * gtk/gtkoldeditable.h: Mark deprecated
11924
11925         * gtk/gtklist.h: Mark deprecated
11926
11927         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
11928         for anything anymore.
11929
11930         * gtk/gtkctree.h: Mark deprecated
11931
11932         * gtk/gtkclist.h: Mark deprecated
11933
11934         * gtk/gtkpreview.h: Mark deprecated
11935
11936         * gtk/gtkpacker.h: Mark deprecated
11937
11938         * gtk/gtktipsquery.h: Mark deprecated
11939
11940         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
11941
11942         * gtk/gtkvruler.h: Add comment that it will move out of GTK
11943
11944         * gtk/gtkhruler.h: Add comment that it will move out of GTK
11945
11946         * gtk/gtkruler.h: Add comment that it will move out of GTK
11947
11948         * gtk/gtkgamma.h: Add comment that it will move out of GTK
11949
11950         * gtk/gtkcurve.h: Add comment that it will move out of GTK
11951
11952 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
11953
11954         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
11955         gdk_colormap_sync private since it was never exported
11956         in a header file.
11957
11958         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
11959         colormap->colors[] for StaticGray, StaticColor colormaps.
11960
11961         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
11962         was being used as if it was image->bits_per_pixel.
11963
11964         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
11965         for the image in the GdkImage structure since it isn't
11966         reconstructable, and we need it to handle packed types
11967
11968         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
11969         the assumption that on Win32 image->bits_per_pixel == image->depth,
11970         always.
11971
11972         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
11973
11974         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
11975         warning message if no converter can be found. 
11976
11977 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
11978
11979         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
11980         chars to isupper() / tolower(). (#567)
11981
11982         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
11983         to clear up 64-bit warnings. (#567)
11984
11985 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
11986
11987         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
11988         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
11989
11990         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
11991         since some people set $(libdir) separately. (#1290, David Kaelbling)
11992
11993 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
11994
11995         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
11996         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
11997         MAXPATHLEN, but the code here depends on a fixed value.)
11998         (#4524)
11999
12000 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
12001
12002         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
12003         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
12004
12005 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
12006
12007         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
12008         viewable there is no way that moving the node will cause the 
12009         focus row to become not viewable, so omit check on the visibility
12010         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
12011
12012 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
12013
12014         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
12015         selection before inserting new text.
12016
12017 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
12018
12019         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
12020         Make the sensitivity of the reparented child track that of
12021         the original parent menu item. (#34218, David Hodson)
12022
12023         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
12024         the case where the current item is destroyed properly.
12025
12026         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
12027         some edge cases with child-less menuitems.
12028         
12029 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
12030
12031         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
12032         key pop down window. (#12074, Jon K Hellan)
12033
12034 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
12035
12036         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
12037         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
12038         The solution here isn't perfect - you get an extraneous
12039         emission of "toggle", which could conceivably confuse an app,
12040         but better than the current situation. LXR search seems to
12041         indicate that no apps in GNOME CVS connect to "toggle".
12042
12043 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
12044
12045         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
12046         gtk_public_h_sources to directly here to avoid warning when
12047         building srcdir != builddir. (#9656)
12048
12049 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
12050
12051         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
12052         handlers in gtkrange.c return the proper values (TRUE == handled)
12053         (#10316).
12054
12055         This is just the tip of the iceberg, but gtkrange.c is the
12056         most common place where the propagation is problematical,
12057         and also a place where it is almost certainly safe to change
12058         this in the stable branch.
12059
12060         (You don't want right click popups on a range control or anything...)
12061
12062 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
12063
12064         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
12065         area on focus out, even if a background pixmap isn't set.
12066         (#13941)
12067         
12068 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
12069
12070         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
12071         to deal with setting the shape properly when scrolling arrows are
12072         turned on, but not visible because there is sufficient space.
12073         (#13432)
12074
12075 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
12076
12077         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
12078         items with submenus, destroy the item along with the submenu.
12079         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
12080         properly.
12081
12082         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
12083         later.
12084
12085 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
12086
12087         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
12088         the focus widget sometimes wasn't drawn with the default if there
12089         was no default widget.
12090
12091         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
12092         unreference pixmaps. 
12093
12094         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
12095         for some extra safety.
12096
12097 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
12098
12099         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
12100         the text of a cell to the old pointer value better, by
12101         copying the new text before freeing the old text. Some code
12102         cleanup. (#8079, Karl Nelson)
12103
12104 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
12105
12106         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
12107         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
12108
12109 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
12110
12111         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
12112         item from a menu, check to see if it matches 
12113         menu->old_active_menu_item, and if so, unref and clear
12114         old_active_menu_item (Patch from Pavel Cisler)
12115
12116         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
12117         menu_shell->active_menu_item, if it is the child being
12118         removed. (Patch based on that of Gene Ragan, #50337)
12119
12120 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
12121
12122         * gdk/linux-fb/gdkselection-fb.c: 
12123         * gdk/linux-fb/gdkcolor-fb.c: 
12124         * gdk/linux-fb/gdkdrawable-fb2.c: 
12125         * gdk/linux-fb/gdkfont-fb.c: 
12126         * gdk/linux-fb/gdkim-fb.c: 
12127         * gdk/linux-fb/gdkinput.c: 
12128         * gdk/linux-fb/gdkkeyboard-fb.c: 
12129         * gdk/linux-fb/gdkmain-fb.c: 
12130         * gdk/linux-fb/gdkrender-fb.c: 
12131         A bunch of whitespace cleanup.
12132         
12133 2001-01-30  Havoc Pennington  <hp@pobox.com>
12134
12135         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
12136         #ifdef GTK_ENABLE_BROKEN.
12137
12138         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
12139         GTK_ENABLE_BROKEN just before including the broken headers.
12140         
12141         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
12142         deprecated types registered.
12143
12144         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
12145         we have to test the broken stuff.
12146
12147         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
12148         
12149 2001-01-30  Havoc Pennington  <hp@redhat.com>
12150
12151         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
12152         here where prev pointer was set to the wrong thing
12153
12154         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
12155         (gtk_tree_path_is_descendant): new function
12156
12157         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
12158         cached length
12159         (gtk_list_store_get_iter): don't modify iter if we can't get the
12160         path.
12161
12162         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
12163         
12164         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
12165         GtkTreeDragDest
12166
12167         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
12168         was causing segfault
12169
12170         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
12171         pointer to NULL
12172
12173         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
12174
12175         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
12176         on returning FALSE
12177         (gtk_list_store_iter_children): ditto
12178         (gtk_list_store_iter_nth_child): ditto
12179         (gtk_list_store_iter_nth_child): ditto
12180         (gtk_list_store_iter_parent): ditto
12181
12182         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
12183         on iter->user_data != NULL instead of silently accepting it.
12184         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
12185         we are returning TRUE.
12186         (gtk_tree_store_iter_children): ditto
12187         (gtk_tree_store_iter_nth_child): ditto
12188         (gtk_tree_store_iter_parent): ditto
12189         (gtk_tree_store_insert): remove handling of parent->user_data ==
12190         NULL, replace with parent == NULL       
12191
12192         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
12193         and a comment explaining things
12194
12195         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
12196         interface support to GtkTreeStore.
12197
12198         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
12199         FALSE if no prev, fix
12200
12201         * gtk/gtktreeview.c (set_source_row): use a row reference
12202         (set_dest_row): use a row reference
12203
12204 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
12205
12206         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
12207         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
12208         (gtk_tree_selection_select_iter): The same as above.
12209
12210 2001-01-26  Havoc Pennington  <hp@redhat.com>
12211
12212         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
12213         which holds a handle to a specific row (particular set of values
12214         in the model, i.e. pointer-identity row).
12215
12216         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
12217         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
12218         Still need to use it for the src/dest row saved on the drag context.
12219
12220 2001-01-26  Havoc Pennington  <hp@redhat.com>
12221
12222         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
12223
12224         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
12225         not offset by TREE_VIEW_HEADER_HEIGHT
12226         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
12227         TREE_VIEW_HEADER_HEIGHT
12228
12229         * configure.in (included_loaders): for me, --with-included-loaders
12230         generates the error "the specified loader yes does not exist",
12231         i.e. the arg defaults to "yes", so change test for value ""
12232         to test for value "yes", and include all loaders in that case.
12233
12234         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
12235
12236         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
12237         handle TREE_VIEW_VERTICAL_SEPARATOR
12238         (gtk_tree_view_bin_expose): fix to consider the row offset as
12239         pointing halfway into vertical separator.       
12240         (gtk_tree_view_draw_node_focus_rect): ditto
12241
12242         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
12243         --gtk-debug=updates, which causes gdk_window_set_debug_updates
12244         (TRUE) to be called.
12245
12246         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
12247         debug mode where the invalid region is colored in on invalidate,
12248         so you can see the flicker and know whether your redraw code is 
12249         doing a good job.
12250
12251         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
12252         tree window coordinates (clip rect is in tree window coords)
12253
12254         * gtk/Makefile.am: add gtktreednd.[hc]
12255
12256         * gtk/gtkliststore.c: implement gtktreednd interfaces.
12257
12258         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
12259         drag-and-drop data operations on a model (so we can set up tree
12260         drag-and-drop automatically)
12261
12262         * gtk/testgtk.c: Add a window to change sensitivity in the
12263         GtkLabel test; add a way to change the entry frame in GtkEntry
12264         test
12265
12266         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
12267         (gtk_entry_get_has_frame): new functions to remove the frame
12268         around an entry
12269         (gtk_entry_size_request): shrink requisition if no frame
12270         (gtk_entry_draw_focus): don't draw frame if no frame
12271
12272         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
12273         checks inside a cell renderer
12274         (gtk_default_draw_option): ditto for options
12275
12276         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
12277         children from the alignment, not the button
12278         (gtk_tree_view_column_init): ref/sink the column, to emulate
12279         GObject refcounting.
12280
12281         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
12282         
12283         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
12284         Use theme functions to draw the toggles 
12285
12286         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
12287
12288         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
12289         GdkPangoAttrEmbossed to use in rendering insensitive text
12290
12291         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
12292
12293         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
12294         using new GDK features
12295         
12296 2001-01-24  Alexander Larsson  <alexl@redhat.com>
12297
12298         * gtk/gtkimage.c:
12299         Splitted gtk_image_clear into gtk_image_clear() and
12300         gtk_image_reset(). Call gtk_image_clear() in ::destroy
12301         to avoid leaks.
12302
12303         * gtk/gtklabel.c (set_markup):
12304         Don't leak text.
12305
12306         * gtk/gtktextlayout.c:
12307         Always free display->shaped_objects.
12308
12309         * gtk/testgtk.c (create_clist):
12310         Don't leak custom style.
12311
12312 2001-01-23  Alexander Larsson  <alexl@redhat.com>
12313
12314         * gtk/gtkcolorsel.c (grab_color_at_mouse):
12315         Don't leak image. Simplify using gdk_colormap_query_color().
12316         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
12317
12318         * linux-fb/gdkcolor-fb.c:
12319         Implemented gdk_colormap_query_color.
12320
12321 2001-01-23  Alexander Larsson  <alexl@redhat.com>
12322
12323         * linux-fb/gdkcursor-fb.c:
12324         Don't leak built-in cursors.
12325
12326         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
12327         Don't leak tmp_points.
12328
12329         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
12330         Don't modify desc. Don't leak font if the PangoFont
12331         isn't found.
12332         
12333         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
12334         Free dash_list.
12335
12336         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
12337         Don't leak string.
12338         
12339 2001-01-20  Havoc Pennington  <hp@pobox.com>
12340
12341         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
12342         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
12343         me, matches Pango
12344
12345 2001-01-22  Havoc Pennington  <hp@redhat.com>
12346
12347         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
12348
12349         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
12350
12351         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
12352         Remove, move back to gdk-pixbuf
12353
12354         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
12355         to all the word functions
12356
12357         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
12358         before doing anything on NULL layout or if we don't have the focus
12359
12360         * gtk/testtext.c (fill_example_buffer): "justification"
12361
12362         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
12363         to be called "justification" not "justify"
12364
12365         * demos/gtk-demo/textview.c (create_tags): "justification"
12366         
12367         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
12368
12369 2001-01-22  Alexander Larsson  <alexl@redhat.com>
12370
12371         * gdk/gdkwindow.c (gdk_window_invalidate_region):
12372         Don't leak visible_region. Use visible_region instead of region.
12373         
12374         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12375         Don't do extra gdk_drawable_ref(). This is not X.
12376         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
12377         gdk_fb_focused_window is ref:ed.
12378         (gdk_fb_window_send_crossing_events): Watch out for destroyed
12379         windows.
12380
12381 2001-01-22  Alexander Larsson  <alexl@redhat.com>
12382
12383         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
12384         Don't leak the PangoFontDescriptor.
12385
12386 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
12387
12388         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
12389         when not realized.
12390         (gtk_tree_view_scroll_to_cell): Make work when not realized.
12391         (gtk_tree_view_realize): add scroll_to support
12392         (gtk_tree_view_finalize): add a finalize method.  Populate.
12393         (gtk_tree_view_insert_column): ref and sink the column.
12394         (gtk_tree_view_append_column): ref and sink the column.
12395         (gtk_tree_view_queue_draw_node): New function to handle redrawing
12396         individual nodes.  Should make the code much more efficient, if
12397         actually used.
12398
12399 2001-01-19  Havoc Pennington  <hp@redhat.com>
12400
12401         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12402         byte_offset variable was being used to mean both "offset into
12403         layout" and "offset into buffer line" which was no longer true
12404         with addition of preedit string; fix
12405
12406 2001-01-19  Havoc Pennington  <hp@redhat.com>
12407
12408         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
12409
12410         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
12411         function
12412
12413         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
12414         implement
12415
12416         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
12417         scroll_to_cell, matches TextView scroll functions better
12418         (gtk_tree_view_tree_to_widget_coords): new function
12419         (gtk_tree_view_widget_to_tree_coords): new function
12420         (gtk_tree_view_get_visible_rect): new function
12421         (gtk_tree_view_get_path_at_pos): accept negative coordinates
12422         (gtk_tree_view_draw_node_focus_rect): new function moved from
12423         draw_focus, also, use width of bin_window as width of the focus
12424         rect
12425         (gtk_tree_view_expand_row): fix bug where it didn't recognize
12426         already-expanded rows
12427         (gtk_tree_view_get_cell_rect): new function
12428         (gtk_tree_view_get_path_at_pos): return the click position
12429         relative to the passed-in cell
12430         (gtk_tree_view_set_expander_column): new function
12431
12432         * configure.in: remove gtk-config-2.0 chmod
12433
12434         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
12435         and properly handle drags with targets we don't understand
12436         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
12437         scrolling anyway
12438         (gtk_text_view_drag_drop): stop scrolling here though, and set the
12439         mark invisible
12440
12441         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
12442         function
12443         (gtk_drag_dest_get_target_list): new function
12444         (gtk_drag_dest_set_target_list): new function
12445         
12446         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
12447
12448         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
12449         related to drag-and-drop
12450
12451 2001-01-19  Alexander Larsson  <alexl@redhat.com>
12452
12453         * gdk/linux-fb/gdkprivate-fb.h:
12454         Define EMULATE_GDKFONT.
12455         Add extra pango_font stuff to GfkFontPrivate.
12456         
12457         * gdk/linux-fb/gdkdrawable-fb2.c:
12458         * gdk/linux-fb/gdkfont-fb.c:
12459         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
12460         emulation using PangoFont.
12461
12462 2001-01-17  Havoc Pennington  <hp@pobox.com>
12463
12464         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
12465         all the non-deprecated set_foo functions. Added missing object
12466         properties, and added g_object_notify() to setters. 
12467         Wrote docs.
12468         
12469 2001-01-18  Tor Lillqvist  <tml@iki.fi>
12470
12471         * gtk/gtkmain.c
12472         * gtk/gtkrc.c: (Win32) Use the new
12473         g_win32_get_package_installation_(sub)directory() functions.
12474
12475         * config.h.win32.in: New file.
12476         
12477         * config.h.win32: Removed.
12478
12479         * configure.in: Output config.h.win32.
12480
12481         * Makefile.am: Add it to EXTRA_DIST.
12482
12483         * gtk/gtk.def: Update.
12484
12485 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
12486
12487         * gtk/gtklabel.c (gtk_label_size_request): Set the
12488         attributes onto the PangoLayout even if they are newly
12489         created from label->pattern.
12490
12491 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
12492
12493         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
12494
12495         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
12496         structures in functions. Fixes bug where gtk_dataset_*
12497         was accidentally still being used in one place, causing
12498         every dest side event to be treated independently.
12499
12500         * gtk/gtkdnd.c: Remove last vestages of handling
12501         ::draw (fixes warning)
12502         
12503         * gtk/gtkentry.[ch]: Add drag and drop support.
12504
12505         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
12506         new function gtk_check_drag_threshhold() for checking
12507         to check if (dx,dy) has exceeded the threshhold for starting
12508         a drag and use it everywhere.
12509
12510 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
12511
12512         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
12513         add -I{includedir}/gtk-2.0.
12514
12515         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
12516         gdk/gdk-pixbuf.h: Doc fixups.
12517         
12518         * gtk/gtkobject.h: Remove trailing , from enum
12519
12520 2001-01-17 Alexander Larsson <alexl@redhat.com> 
12521
12522         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
12523         Doh! Mixed up x and y.
12524
12525         * gdk/linux-fb/gdkglobals-fb.c:
12526         Removed gdk_fb_pointer_grab_window_events,
12527         added _gdk_fb_pointer_grab_owner_events and
12528         _gdk_fb_keyboard_grab_owner_events.
12529
12530         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
12531         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
12532         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
12533         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
12534         Send crossing events after ungrab finished.
12535         (gdk_keyboard_grab): Set ..._owner_events
12536         (type_masks): Move out of function.
12537         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
12538         gdk_fb_keyboard_event_window): New functions, return the
12539         window an event should be targeted at. Handles grabs and
12540         event propagation. Can return NULL.
12541         (gdk_event_make): Remove event_mask checking. Now always
12542         returns an event.
12543                 
12544         * gdk/linux-fb/gdkkeyboard-fb.c:
12545         * gdk/linux-fb/gdkproperty-fb.c:
12546         * gdk/linux-fb/gdkselection-fb.c:
12547         Use new event_window/gdk_event_make() behaviour.
12548         
12549         * gdk/linux-fb/gdkmouse-fb.c:
12550         Use new event_window/gdk_event_make() behaviour.
12551         Only send motion events if in the same window.
12552         If grabbed, use cursor from window if sibling of grabbed
12553         window, and cursor from grabbed window otherwise.
12554
12555         * gdk/linux-fb/gdkprivate-fb.h:
12556         Update gdk_fb_window_send_crossing_events, gdk_event_make
12557         and grab varaible declarations. Add gdk_fb_*_event_window().
12558
12559         * gdk/linux-fb/gdkwindow-fb.c:
12560         Use new event_window/gdk_event_make() behaviour.
12561         Keep correct track of focus window.
12562         (gdk_window_set_events): Set all specific button motion masks
12563         if GDK_BUTTON_MOTION_MASK set.
12564
12565         * gtk/gtkdnd.c (gtk_drag_update):
12566         Free info->last_event if gdk_drag_motion returned FALSE.
12567
12568 2001-01-16  Tor Lillqvist  <tml@iki.fi>
12569
12570         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
12571         Eliminate redraws when input-only windows are shown or
12572         hidden. Thanks to jpe@archaeopteryx.com.
12573
12574 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
12575
12576         * docs/faq/gtk-faq.sgml: FAQ update:
12577           - Update to bugzilla
12578           - Add GTK+ and security/SUID/SGID
12579           - Add DnD question
12580
12581 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
12582
12583         * gdk/linux-fb/gdkdnd-fb.c:
12584         Some cleanups.
12585         
12586 2001-01-15  Havoc Pennington  <hp@pobox.com>
12587
12588         * tests/testtreeview.c: add test stuff for CellRendererToggle
12589
12590         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
12591         accessor
12592
12593         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
12594         only toggle on button press (would do release like GtkButton, but
12595         we'd need implicit grab code for treeview cells)
12596
12597 2001-01-16  Tor Lillqvist  <tml@iki.fi>
12598
12599         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
12600
12601         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
12602         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
12603
12604         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
12605         to g_{locale,filename}_{to,from}_utf8 to match current API.
12606
12607         * gtk/makefile.msc.in (gtk_OBJECTS)
12608         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
12609
12610         * gtk/gtk.def: Update.
12611
12612 2001-01-15  Tor Lillqvist  <tml@iki.fi>
12613
12614         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
12615         implementaion that more closely mimics the events that an X server
12616         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
12617         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
12618         with nested preview widgets, for instance, more responsive when
12619         you move the mouse quickly into them.
12620         (find_window_for_pointer_event): Make it actually compile.
12621         (gdk_event_translate): Set send_event to the value of
12622         InSendMessage (). This doesn't really mean the same as X11's
12623         send_event flag, but is close enough, says jpe@archaeopteryx.com
12624
12625 2001-01-15  Alexander Larsson  <alexl@redhat.com>
12626
12627         * gdk/linux-fb/gdkdnd-fb.c:
12628         Implemented drag and drop.
12629         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
12630         when it tries to free and then copy the same event (info->last_event).
12631         I am not sure about why this happens, but will continue looking.
12632
12633 2001-01-15  Alexander Larsson  <alexl@redhat.com>
12634
12635         * gdk/linux-fb/gdkwindow-fb.c:
12636         Use gdk_window_invalidate_rect instead of
12637         gdk_window_invalidate_rect_clear to minimise flashing.
12638         When hiding windows you need to clear the root window though.
12639
12640 2001-01-15  Alexander Larsson  <alexl@redhat.com>
12641
12642         * gdk/linux-fb/gdkdrawable-fb2.c:
12643         For optization, add an full_shapes argument to gdk_fb_clip_region.
12644         If this is false, only the cliprects of the shapes are used.
12645
12646         * gdk/linux-fb/gdkprivate-fb.h:
12647         Export gdk_fb_window_peek_shape.
12648         Add full_shapes to gdk_fb_clip_region.
12649
12650         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
12651         When moving a window, don't clear everything under the it, just the
12652         root window. Makes stuff faster and flash less.
12653         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
12654         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
12655         offset of the shape.
12656         
12657
12658 2001-01-12  Havoc Pennington  <hp@redhat.com>
12659
12660         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
12661         current invalid region, fixes redraw bug while scrolling the 
12662         text widget
12663
12664         * gtk/gtktextview.c, gtk/gtktextview.h:
12665         Rearrange the scrolling/validation/etc. code in a major way, 
12666         so it seems to make sense to me. Probably isn't genuinely that
12667         much better, but...
12668
12669         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
12670         notifies
12671
12672         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
12673
12674 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
12675
12676         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
12677         Hide mouse pointer while rotation. Show it afterwards.
12678
12679 2001-01-12  Alexander Larsson  <alexl@redhat.com>
12680
12681         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
12682         windows in consideration when generating clip region.
12683
12684         * gdk/linux-fb/gdkfb.h:
12685         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
12686
12687         * gdk/linux-fb/gdkprivate-fb.h:
12688         Add shape to GdkWindowFBDatat.
12689         exported gdk_fb_window_get_abs_shape().
12690         removed gdk_fb_draw_lines declaration.
12691
12692         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
12693         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
12694         send focus changes when there is a grabbed window.
12695         (gdk_window_get_pointer): Handle shaped windows.
12696         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
12697         (gdk_fb_window_peek_shape): Returns the shape for a window,
12698         handles GDK_FB_USE_CHILD_SHAPE.
12699         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
12700         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
12701         (gdk_window_shape_combine_mask): Implement.
12702
12703         * gtk/gtkwindow-decorate.c:
12704         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
12705         setting the shape of a window makes the window transparent.
12706
12707 2001-01-11  Havoc Pennington  <hp@redhat.com>
12708
12709         * gtk/gtktreemodelsimple.h: Oops, broke some macros
12710
12711 2001-01-10  Havoc Pennington  <hp@redhat.com>
12712
12713         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
12714         add this function, bug 40251
12715
12716         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
12717         of type macro   
12718
12719 2001-01-11  Alexander Larsson  <alexl@redhat.com>
12720
12721         * acconfig.h:
12722         Added ENABLE_SHADOW_FB
12723
12724         * configure.in:
12725         Added --disable-shadowfb
12726
12727         * gdk/linux-fb/gdkcursor-fb.c:
12728         Update shadowfb when updating cursor
12729
12730         * gdk/linux-fb/gdkdrawable-fb2.c:
12731         Added wrappers for shadowfb that calls  the normal drawable
12732         methods, but calls gdk_shadow_fb_update(bounding box) when
12733         GdkWindows are drawed to.
12734         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
12735         which also returns the bounding box.
12736
12737         * gdk/linux-fb/gdkfb.h:
12738         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
12739
12740         * gdk/linux-fb/gdkgeometry-fb.c:
12741         Update shadowfb when scrolling window.
12742
12743         * gdk/linux-fb/gdkglobals-fb.c:
12744         Add _gdk_fb_screen_angle.
12745         
12746         * gdk/linux-fb/gdkkeyboard-fb.c:
12747         Test code for screen rotation. Shift-F2 in the xlate driver
12748         rotates the screen.
12749
12750         * gdk/linux-fb/gdkmain-fb.c:
12751         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
12752
12753         * gdk/linux-fb/gdkmouse-fb.c:
12754         Use fb_width/height instead of modeinfo.xres/yres.
12755
12756         * gdk/linux-fb/gdkprivate-fb.h:
12757         Added fb_men, fb_width, fb_height & fb_stride. When using
12758         shadow fb these can differ from the framebuffer stuff.
12759         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
12760         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
12761         _gdk_fb_screen_angle. Removed CM, RP.
12762
12763         * gdk/linux-fb/gdkrender-fb.c:
12764         Added code for shadowfb handling and screen rotation using
12765         shadowfb.
12766
12767         * gdk/linux-fb/gdkwindow-fb.c:
12768         Use fb_mem, fb_stride, fb_width, fb_height.
12769         Added recompute_rowstride to reset the rowstride of all windows.
12770         Added gdk_fb_recompute_all() which recomputes rootwindow size,
12771         window abs positions and window rowstrides. Usefull when the
12772         rotation has changed.
12773
12774 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
12775
12776         * docs/faq/gtk-faq.sgml: update to make web site updating easier
12777
12778 2001-01-10  Havoc Pennington  <hp@redhat.com>
12779
12780         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
12781         where sibling == iter
12782         (gtk_tree_store_insert_after): handle sibling == iter
12783         (gtk_tree_store_prepend): remove stamp checks
12784         (gtk_tree_store_insert_before): ditto
12785         (gtk_tree_store_append): ditto
12786         (gtk_tree_store_get_path): ditto
12787         (gtk_tree_store_get_value): ditto
12788         (gtk_tree_store_iter_has_child): ditto
12789         (gtk_tree_store_iter_n_children): ditto
12790         (gtk_tree_store_iter_nth_child): ditto
12791         (gtk_tree_store_insert_after): ditto
12792         (gtk_tree_store_is_ancestor): ditto
12793         (gtk_tree_store_iter_depth): ditto
12794         (gtk_tree_store_insert_before): assert that sibling's parent is
12795         the same as the passed-in parent
12796         (gtk_tree_store_insert_after): assert that sibling's parent is
12797         the same as the passed-in parent
12798
12799         
12800         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
12801         function to get the first iterator in a model
12802         
12803         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
12804         conventionally the "root" in this sense is just NULL afaict.
12805
12806         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
12807         where sibling == iter
12808         (gtk_list_store_insert_after): handle case where sibling == iter
12809
12810         * tests/testtreeview.c (run_automated_tests): fairly lame basic
12811         automated tests for ListStore, TreeStore
12812
12813         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
12814         (gtk_list_store_insert): update tail pointer, and fix it to work
12815         (gtk_list_store_insert_before): update tail pointer, and fix it to work
12816         (gtk_list_store_append): use tail to be faster
12817         (gtk_list_store_prepend): fix it, update tail pointer
12818         (gtk_list_store_insert_after): fix it, update tail pointer
12819
12820         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
12821         the list
12822
12823 2001-01-09  Havoc Pennington  <hp@redhat.com>
12824
12825         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
12826         is NULL due to a pending resize
12827
12828         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
12829         column width to values less than 1
12830
12831         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
12832         width to be between min/max width, and still set the width 
12833         even if autosize is turned on, so the tree view can use this 
12834         function in order to autosize.
12835         (gtk_tree_view_column_init): set initial width to 1 not 0
12836
12837         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
12838         setter function to modify column width, so we get notification
12839         (gtk_tree_view_insert_iter_height): ditto
12840         (gtk_tree_view_calc_size): ditto
12841         (gtk_tree_view_check_dirty): ditto
12842
12843         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
12844         properties to change all the interesting attributes of the tree
12845         view column.
12846         (gtk_tree_view_column_set_header_clickable): rename set_clickable
12847         (gtk_tree_view_column_get_clickable): add
12848         (gtk_tree_view_column_set_cell_renderer): don't unset the current
12849         attributes; assume a cell renderer with equivalent object
12850         properties has been swapped in. Do g_object_notify().
12851         (gtk_tree_view_column_set_visible): g_object_notify
12852         (gtk_tree_view_column_get_sizing): rename from get_col_type
12853         (gtk_tree_view_column_set_sizing): g_object_notify
12854         (gtk_tree_view_column_set_width): add g_object_notify
12855         (gtk_tree_view_column_set_min_width): ditto
12856         (gtk_tree_view_column_set_max_width): ditto
12857         (gtk_tree_view_column_set_title): ditto
12858         (gtk_tree_view_column_set_clickable): ditto
12859         (gtk_tree_view_column_set_widget): ditto
12860         (gtk_tree_view_column_set_justification): ditto
12861
12862 2001-01-09  Havoc Pennington  <hp@redhat.com>
12863
12864         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
12865         there are no rows in the model
12866
12867         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
12868         NULL, then return the start of the list
12869
12870         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
12871         if we can't get any rows from an empty model 
12872
12873         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
12874         extraneous * after function pointer typedef usage
12875
12876         * Makefile.am: don't specify full path to cp and rm
12877
12878         * gtk/gtkcellrenderertextpixbuf.c
12879         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
12880         NULL before dereferencing, fixes a segfault that happened from
12881         time to time
12882
12883         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
12884         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
12885         and reindent the function
12886         (gtk_cell_renderer_pixbuf_get_size): indentation
12887
12888         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
12889         we quit it
12890         (gtk_dialog_add_buttons_valist): add g_return_if_fail
12891         (gtk_dialog_set_default_response): New function, to set default
12892         button
12893         (gtk_dialog_set_response_sensitive): New function, to set 
12894         sensitivity of buttons
12895
12896         * gtk/gtkcellrendererpixbuf.c
12897         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
12898         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
12899
12900         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
12901         handle any G_TYPE_OBJECT subclass, not just the base class, and 
12902         also boxed types.
12903         (_gtk_tree_data_list_value_to_node): ditto
12904
12905         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
12906         --gtk-debug=tree
12907
12908         * gtk/gtkmain.c: add GTK_DEBUG_TREE
12909
12910         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
12911
12912 2001-01-09  Tor Lillqvist  <tml@iki.fi>
12913
12914         * gdk/win32/gdkevents-win32.c: Implement better mouse
12915         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
12916         (find_window_for_pointer_event): New function.
12917         (gdk_event_translate): Use it when handling mouse events.
12918
12919 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
12920
12921         * configure.in:
12922         Added --with-included-loaders option
12923
12924         * gdk-pixbuf/Makefile.am:
12925         * gdk-pixbuf/gdk-pixbuf-io.c:
12926         Add support for including selected gdk-pixbuf loaders only.
12927
12928         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
12929         gtk_window_set_has_frame):
12930         Added inline documentation.
12931
12932         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
12933         * docs/reference/gdk/tmpl/windows.sgml:
12934         Added inline documentation.
12935
12936 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
12937
12938         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
12939         realizing buttons that have already been realized.
12940
12941 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
12942
12943         * tests/testtreeview.c (main): Show menu items before adding to
12944         option menu.
12945
12946         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
12947         around if we kill them.
12948
12949         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12950         Return if we pass in a NULL model.
12951
12952 2001-01-08  Havoc Pennington  <hp@redhat.com>
12953
12954         * tests/testtreeview.c: hack on this some
12955
12956         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
12957         gtk_tree_store_set_valist, v is for arrays, valist for varargs
12958         list
12959         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
12960
12961         * gtk/gtkliststore.h: Add varargs set() and get() convenience
12962         functions
12963
12964 2001-01-08  Alexander Larsson  <alexl@redhat.com>
12965
12966         * gtk/gtkwindow-decorate.[hc]:
12967         * gtk/Makefile.am:
12968         New files. Contains an implementation of a minimal WM for
12969         linux-fb.
12970
12971         * gtk/gtkwindow.h:
12972         Add the possibility for GtkWindows to specify a frame. This
12973         is used for the window decoration code, but could concievably
12974         be used for X programs too (xmms style windows).
12975         GtkWindow->frame is the toplevel window if the window is framed.
12976         The signal frame_event gets all events that are targeted to
12977         GtkWindow->frame.
12978         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
12979         
12980         * gtk/gtkwindow.c:
12981         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
12982         Call out to gtkwindow-decorate.c for WM support in linx-fb.
12983
12984 2001-01-08  Alexander Larsson  <alexl@redhat.com>
12985
12986         * docs/README.linux-fb:
12987         Correct filename ~/.pangoft2_aliases
12988
12989         * gdk/gdkwindow.h:
12990         Added new function gdk_window_get_decorations.
12991
12992         * gdk/linux-fb/gdkfb.h:
12993         Removed _gdk_window_get_decorations declaration.
12994         Renamed _gdk_window_set_child_handler to
12995         gdk_fb_window_set_child_handler.
12996
12997         * gdk/linux-fb/gdkwindow-fb.c:
12998         Renamed _gdk_window_set_child_handler to
12999         gdk_fb_window_set_child_handler.
13000
13001         * gdk/x11/gdkwindow-x11.c:
13002         New function gdk_window_get_mwm_hints().
13003         Implemented gdk_window_get_decorations.
13004
13005         * docs/reference/gdk/tmpl/windows.sgml:
13006         * docs/reference/gdk/gdk-sections.txt:
13007         Added gdk_window_get_decorations docs.
13008         
13009 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
13010
13011         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
13012         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
13013         gdk_fb_window_send_crossing_events):
13014         Possibly send focus events when the mouse moves from one
13015         window to another.
13016
13017 2001-01-07  Tor Lillqvist  <tml@iki.fi>
13018
13019         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
13020         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
13021         to match current API.
13022
13023         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
13024         environment variable is set, don't call g_error when on a
13025         palettized (PseudoColor) display. Some people want to use GTK+ 
13026         in 256-colour mode even though works only partially.
13027
13028         * gdk/gdk.def
13029         * gtk/gtk.def
13030         * gtk/makefile.mingw.in: Update.
13031
13032 2001-01-05  Havoc Pennington  <hp@redhat.com>
13033
13034         * tests/testtreeview.c: hack on this a bit
13035
13036         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
13037         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
13038
13039         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
13040         was spelled incorrectly
13041         (GTK_IS_TREE_MODEL_SIMPLE): ditto
13042
13043         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
13044         from gtk_tree_view_set_headers_active   
13045
13046         * gtk/gtktexttag.c:
13047         (gtk_text_tag_get_property): handle PROP_DIRECTION
13048         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
13049         properties, bug 40235
13050
13051         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
13052         forward_to_line_end
13053
13054 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
13055
13056         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
13057         modules/input/gtkimcontextxim.c: Adapt to new prototypes
13058         for unicode,locale,filename conversion functions.
13059
13060 2001-01-05  Havoc Pennington  <hp@redhat.com>
13061
13062         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
13063         broken if called on the first position in the buffer.
13064
13065         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
13066         forward_to_delimiters to be called only if we aren't already at
13067         the delimiters.
13068
13069 2001-01-05  Havoc Pennington  <hp@redhat.com>
13070
13071         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
13072
13073 2001-01-05  Alexander Larsson  <alexl@redhat.com>
13074
13075         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
13076         colormap in here. Sync from X port.
13077         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
13078         Sync from X port.
13079         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
13080         This happens now and then, and i don't think it is a bug.
13081         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
13082         != endpoint.
13083         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
13084         GDK_LINE_SOLID.
13085
13086         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
13087         some of the fields filled in at least.
13088
13089         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
13090         miLineArcD is no more, remove it from the function definition.
13091
13092 2001-01-04  Havoc Pennington  <hp@redhat.com>
13093
13094         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
13095         this
13096
13097         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
13098         user_data instead of tree_node
13099
13100         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
13101         TREE_VIEW_COLUMN_SIZE
13102
13103         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
13104         "size" field to "width" finishes bug 40061
13105
13106         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
13107         for bitfields, bug 40268
13108
13109 2001-01-04  Havoc Pennington  <hp@redhat.com>
13110
13111         Rename some stuff:
13112         
13113         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
13114
13115         s/GtkModelSimple/GtkTreeModelSimple/g;
13116         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
13117         s/gtk_model_simple/gtk_tree_model_simple/g;
13118         s/gtkmodelsimple/gtktreemodelsimple/g;
13119
13120         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
13121
13122         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
13123         s/column_set_col_type/column_set_sizing/g;
13124
13125         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
13126         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
13127
13128         s/GtkCellRendererType/GtkCellRendererState/g;
13129         
13130         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
13131         (gtk_cell_renderer_toggle_class_init): change "state" property to
13132         "active", to match GtkToggleButton
13133         (gtk_cell_renderer_toggle_get_active): new function, bug
13134         40269
13135         (gtk_cell_renderer_toggle_set_active): new function
13136         (gtk_cell_renderer_toggle_set_property): route changes to toggle
13137         state through gtk_cell_renderer_set_active
13138
13139 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
13140
13141         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
13142         temporarily until they work again.  Brought up to date with
13143         changes in the model.
13144         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
13145         model.
13146
13147 2001-01-04  Havoc Pennington  <hp@redhat.com>
13148
13149         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
13150         equal to the line length, then position iterator before paragraph 
13151         separators. Fixes crash reported by Mikael Hermansson when
13152         pressing left arrow from the start of a line.   
13153
13154         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
13155         about byte indexes off the end
13156         (iter_set_from_char_offset): add g_error about char offsets
13157         off the end
13158
13159 2001-01-03  Havoc Pennington  <hp@redhat.com>
13160
13161         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
13162
13163         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
13164         of private functions; remove inclusion of private headers.
13165
13166         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
13167         function, so we don't need private functions in gtktextdisplay.c
13168
13169         * gtk/gtktextiterprivate.h: underscore-ification
13170
13171         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
13172         to instead say "only useful to implement widgets"
13173
13174         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
13175         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
13176         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
13177
13178         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
13179         This function was completely broken
13180
13181         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
13182
13183         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
13184
13185         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
13186
13187         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
13188
13189         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
13190
13191         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
13192
13193         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
13194         gtk_paint_layout
13195
13196         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
13197         gtk_paint_layout
13198
13199         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
13200         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
13201         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
13202         which were not implemented.     
13203
13204         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
13205         insert_pixbuf signal. Rename delete_text to delete_range since it
13206         also deletes pixbufs and child anchors. This almost closes bug
13207         40245 (still need to deal with child anchors)
13208
13209         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
13210         insert_pixbuf, change signal names as appropriate, change types of
13211         signals taking marks/tags to have the specific type, not just
13212         G_TYPE_OBJECT
13213         
13214         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
13215         closes bug 40051
13216
13217         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
13218         unnecessary remove_contents() call
13219         (gtk_option_menu_class_init): add a "changed" signal, closes
13220         bug 40039
13221         (gtk_option_menu_update_contents): emit "changed" if the 
13222         active menu item changes
13223
13224         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
13225         cast to GtkObject, reported by Jonas Borgstrom
13226         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
13227         we can't do stuff with side effects in finalize. Instead, spew a
13228         warning if the loader isn't closed.
13229
13230         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
13231         colormap in here, non-X ports probably need to sync to this change
13232
13233         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
13234         assertion that colormap != NULL, you can set the colormap to NULL
13235         if you like.
13236         
13237         * Makefile.am: remove gtk-config-2.0
13238
13239         * configure.in: Use pkg-config to locate GLib. Remove
13240         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
13241         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
13242         Use pkg-config to locate Pango. Output correct Pango libs to
13243         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
13244
13245         * Makefile.am (pkgconfig_DATA): install only target-specific pc
13246         files
13247         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
13248         X11 pc files
13249
13250         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
13251         unref from here
13252
13253 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
13254
13255         * configure.in:
13256         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
13257
13258 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
13259
13260         * gtk/gtktextlayout.c
13261         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
13262         variable when moving back onto a single line.
13263
13264 2001-01-01  Havoc Pennington  <hp@redhat.com>
13265
13266         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13267
13268         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
13269
13270         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
13271         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
13272
13273 2001-01-01  Havoc Pennington  <hp@redhat.com>
13274
13275         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
13276
13277         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
13278         GtkTextAttributes
13279
13280         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
13281         #40246
13282         (gtk_text_attributes_copy_values): rename from 
13283         gtk_text_attributes_copy
13284         (gtk_text_attributes_copy): a more standard GTK copy function, 
13285         which returns a new object
13286
13287 2001-01-01  Havoc Pennington  <hp@redhat.com>
13288
13289         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
13290         
13291         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
13292         don't fill in tree_view->priv->selection, kind of an unexpected
13293         side effect
13294
13295         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
13296         gtkintl.h
13297         
13298         * gtk/gtkcellrenderer.c: Remove definition of _ and include
13299         gtkintl.h
13300         (gtk_cell_renderer_get_property): remove calls to g_value_init
13301
13302         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
13303         gtkintl.h
13304
13305         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
13306         and include gtkintl.h
13307         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
13308         property names
13309
13310         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
13311         GtkTreeSelection
13312         (_gtk_tree_selection_new_from_with_view): rename, return
13313         GtkTreeSelection
13314         (_gtk_tree_selection_set_tree_view): rename with uscore
13315         (gtk_tree_selection_get_selected): fill in the "model" out param
13316         first, so it gets filled in even if we return at the top of the 
13317         function
13318         (gtk_tree_selection_real_select_all): add a comment and an else{}
13319         to clarify this a bit
13320         (gtk_tree_selection_real_unselect_all): add the same else{}
13321
13322         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
13323         set_tree_view to have underscore prefixes, move them to the
13324         private header, fix return type of new_with_tree_view
13325         (struct _GtkTreeSelection): mark struct
13326         fields private  
13327
13328         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
13329         GtkTreeModelFlags, not a guint
13330         (gtk_tree_path_prev): return gboolean not gint
13331         (gtk_tree_path_up): return gboolean not gint
13332
13333         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
13334         return GtkTreeModelFlags, not a guint
13335
13336         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
13337         that child model is non-null before unrefing it
13338         (g_value_int_compare_func): make this a qsort compare func, not 
13339         a boolean predicate
13340
13341         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
13342         (add -umn to the end), and mark it unimplemented
13343         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
13344         I don't see what it's for - doesn't the model always sort itself?
13345         (gtk_tree_model_sort_set_compare): this had the wrong signature
13346
13347         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
13348         Fix the docs to say that it destructively replaces existing
13349         attributes (previously said that it added attributes).
13350         (gtk_tree_view_column_set_visible): canonicalize bool before
13351         equality testing. Also, check for realization before
13352         hiding/showing the tree_column->window; if this window could exist
13353         before realization, then it's busted and needs fixing, we can't 
13354         create GDK resources pre-realization. Also, remove
13355         superfluous queue_resize(), since set_size() does that for us.
13356         (gtk_tree_view_column_set_col_type): check realization before 
13357         using tree_column->window
13358
13359         * gtk/gtktreedatalist.c: fix filename in copyright notice
13360
13361 2000-12-31  Havoc Pennington  <hp@pobox.com>
13362
13363         * gtk/gtktextview.c: Rearrange all the
13364         scroll-while-dragging-or-selecting code to be different, not
13365         necessarily better. ;-)
13366         (gtk_text_view_scroll_to_mark): Change this
13367         function to take within_margin as a fraction instead of a pixel
13368         value, and to take alignment arguments (indicating where to align 
13369         the mark inside the visible area)
13370         
13371         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
13372         to GtkObject
13373
13374         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
13375         behavior so that offsets past the end of the line are not 
13376         allowed, and an offset equal to the line length moves the iterator
13377         to the next line
13378         (gtk_text_iter_set_line_index): make parallel change
13379         (gtk_text_iter_get_bytes_in_line): add this function
13380         
13381         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
13382         of byte indexes off the end of the line; byte index at the end of
13383         the line now returns FALSE and doesn't fill in the requested
13384         values, byte index past the end of the line is an error.  Also,
13385         don't allow -1 offset anymore, since its meaning is unclear.
13386
13387         This change exposes some bug in visual cursor motion, where we
13388         end up with a huge invalid byte index; needs fixing. Symptom of 
13389         bug is a crash when you hit up arrow.
13390         
13391         (_gtk_text_line_char_locate): match the change to byte_locate
13392
13393         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
13394         from start of line properly. fixes bug reported by Mikael
13395         Hermansson where backspace would delete all text before the
13396         cursor.
13397
13398 2000-12-30  Tor Lillqvist  <tml@iki.fi>
13399
13400         * gdk/win32/gdkwindow-win32.c
13401         (gdk_window_impl_win32_get_visible_region): New function, as in
13402         the X11 backend.
13403         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
13404         instead of duplicating the same code here.
13405
13406         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
13407         GDK_COLORMAP macro.
13408
13409         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
13410         destroy function.
13411         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
13412         access that.
13413
13414         * gtk/gtk.def: Update.
13415
13416         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
13417
13418 2000-12-30  Havoc Pennington  <hp@pobox.com>
13419
13420         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
13421         colormap on input only windows, to avoid special cases all over
13422         the code for these windows.
13423
13424 2000-12-26  Tor Lillqvist  <tml@iki.fi>
13425
13426         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
13427         we are on a palettized display ("PseudoColor" in X11), as the code
13428         for that doesn't work anyway, and never has.
13429
13430 2000-12-22  Alexander Larsson  <alexl@redhat.com>
13431
13432         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
13433         Don't use isprint() for chars > 255.
13434
13435 2000-12-21  Havoc Pennington  <hp@redhat.com>
13436
13437         * tests/testtreeview.c: more work
13438
13439 2000-12-21  Alexander Larsson  <alexl@redhat.com>
13440
13441         * docs/README.linux-fb:
13442         Update the docs to the new pangoft2 way.
13443
13444 2000-12-21  Alexander Larsson  <alexl@redhat.com>
13445
13446         * configure.in:
13447         For linux-fb get the pangoft2 cflags and libs. This needs a recent
13448         pango version.
13449         Remove modules/linux-fb/Makefile.
13450
13451         * gdk/linux-fb/gdkdrawable-fb2.c:
13452         Render glyphs using freetype.
13453
13454         * gdk/linux-fb/gdkfb.h:
13455         Add new fb-specific functions needed for managing windows.
13456
13457         * gdk/linux-fb/gdkmain-fb.c:
13458         Remove gdk_font_init/fini() calls.
13459
13460         * gdk/linux-fb/gdkpango-fb.c:
13461         Remove old implementation. Use pangoft2 instead.
13462
13463         * gdk/linux-fb/gdkprivate-fb.h:
13464         Remove PangoFBFont and related stuff.
13465
13466         * gdk/linux-fb/gdkwindow-fb.c:
13467         Implement drawable->get_visible_region.
13468         Implement support for _gdk_window_set_child_handler () and
13469         _gdk_window_get_decorations().
13470
13471         * modules/Makefile.am:
13472         Remove linux-fb subdir.
13473
13474         * modules/linux-fb/*:
13475         Removed all.
13476         
13477 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
13478
13479         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
13480         calls, as they are no longer needed.
13481
13482         * gtk/gtktreemodelsort.c: Fix up the comparison code.
13483         
13484         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
13485         figure out how to emit a signal on an interface.
13486
13487 2000-12-20  Havoc Pennington  <hp@redhat.com>
13488
13489         * tests: new directory to contain tests, gtk/test* should move
13490         here sometime (with appropriate on-cvs-server hackery)
13491
13492         * tests/testtreeview.c, tests/Makefile.am: a test
13493         
13494         * configure.in (AC_OUTPUT): add tests/Makefile
13495
13496         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
13497         and "invisible_set" which were missing
13498
13499         * gtk/gtkrbtree.h: some cheesy indentation fix
13500         
13501 2000-12-20  Alexander Larsson  <alexl@redhat.com>
13502
13503         * gtk/gtkinvisible.c (gtk_invisible_realize):
13504         Attach the style to the window so that the style it is not
13505         leaked when unrealizing the window.
13506
13507 2000-12-18  Havoc Pennington  <hp@redhat.com>
13508
13509         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
13510         begin/end user action where appropriate
13511         (gtk_text_view_commit_handler): add begin/end user action
13512
13513         * gtk/gtktextbuffer.c: add begin/end user action signals, and
13514         bracket interactive operations with begin/end user action pair.
13515         
13516         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
13517         "interactive" arg from insert_text and delete_text signals.
13518         Add begin_user_action, end_user_action signals
13519         (gtk_text_buffer_begin_user_action): 
13520         (gtk_text_buffer_end_user_action): New functions to delimit 
13521         a user-visible action
13522
13523         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
13524         signals.
13525         
13526 2000-12-18  Havoc Pennington  <hp@redhat.com>
13527
13528         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
13529         was pretty non-working.
13530
13531         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
13532         by passing the length to g_utf8_validate().
13533
13534 2000-12-16  Havoc Pennington  <hp@pobox.com>
13535
13536         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
13537         Port to GObject, can go back in gdk-pixbuf after setting up 
13538         a gdk-pixbuf-marshal.h header over there.
13539
13540         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
13541         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
13542         args
13543         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
13544         set
13545         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
13546         here, do it when we create the buttons later
13547         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
13548         (gtk_tree_view_map): paranoia checks that column->button is shown 
13549         and unmapped
13550         (gtk_tree_view_size_request): only request visible children.
13551         Move header size calculation in here, for cleanliness, and 
13552         to maintain invariants for child widgets if we eventually 
13553         let users set different children inside the buttons
13554         (gtk_tree_view_map_buttons): factor out code to map buttons,
13555         since it was being called several times
13556         (gtk_tree_view_size_allocate_buttons): move_resize the drag
13557         windows instead of just moving them; their height may change 
13558         if we allow random widgets in there, or the theme changes.
13559         (gtk_tree_view_size_allocate): move button size allocation 
13560         above emitting the scroll signals, to ensure a sane state when we
13561         hit user code
13562         (gtk_tree_view_button_release): remove queue_resize after
13563         tree_view_set_size(), set_size() will handle any resize queuing
13564         that's needed
13565         (gtk_tree_view_focus_in): just queue a draw, don't fool with
13566         draw_focus goo
13567         (gtk_tree_view_focus): use gtk_get_current_event() and
13568         gdk_event_get_state()
13569         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
13570         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
13571         semicolon
13572         (gtk_tree_view_create_button): show the button here
13573         (gtk_tree_view_button_clicked): actually emit the clicked signal
13574         on the column
13575         (_gtk_tree_view_set_size): return right away if the size is
13576         unchanged, as a cheesy optimization
13577         (gtk_tree_view_setup_model): rename set_model_realized to 
13578         setup_model to match the flag that indicates whether we've 
13579         called it
13580         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
13581         exist, because set_scroll_adjustment does that and it shouldn't
13582         matter what order you call these in
13583         (gtk_tree_view_get_vadjustment): ditto
13584         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
13585         for paranoia
13586         (gtk_tree_view_set_headers_visible): call
13587         gtk_tree_view_map_buttons() instead of using cut-and-paste code
13588         (gtk_tree_view_append_column): clarify whether the return value
13589         is the count of columns before or after, and do the increment 
13590         separately from the return statement so you can tell from the code.
13591         (gtk_tree_view_remove_column): ditto
13592         (gtk_tree_view_insert_column): ditto
13593         (gtk_tree_view_get_column): remove g_return_if_fail for columns
13594         outside the existing range, the docs say that outside-range
13595         columns are allowed, so we handle them as documented. (Presumably
13596         this allows a nice loop with column != NULL as test.)
13597         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
13598         mean (left/right/center etc.).
13599         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
13600         (gtk_tree_view_expand_row): add docs
13601         (gtk_tree_view_collapse_row): add docs
13602
13603         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
13604         function to emit the clicked signal on a column
13605         
13606         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
13607         state of an event
13608         (gdk_event_get_time): don't treat GDK_SCROLL 
13609         as a button event, remove default case from switch so gcc 
13610         will whine if we don't explicitly handle all event types
13611
13612         * gtk/gtktreeselection.h: added some FIXME 
13613         
13614         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
13615         "columns" to "n_columns" and "column" to "columns" for clarity
13616
13617 2000-12-16  Havoc Pennington  <hp@pobox.com>
13618         
13619         * gtk/gtktextiter.c: General cleanup of the log attr iteration
13620         stuff. This should make e.g. the delete key work again in the
13621         text widget...
13622         (gtk_text_iter_forward_cursor_positions): handle negative count
13623         (gtk_text_iter_backward_cursor_positions): handle negative count
13624         (gtk_text_iter_forward_word_ends): handle negative count
13625         (gtk_text_iter_backward_word_starts): handle negative count
13626
13627         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
13628         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
13629         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
13630         GObject. No doubt will cause breakage.
13631
13632         * demos/gtk-demo/textview.c: remove hacks around
13633         non-GObject-ification of the text objects
13634
13635         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
13636         the text tag
13637         
13638 2000-12-14  Havoc Pennington  <hp@pobox.com>
13639
13640         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
13641         that we have Xrender
13642
13643 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
13644
13645         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
13646         Add two virtualized functions gdk_drawable_get_clip_region - to
13647         get the clip region when drawing.
13648         
13649         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
13650         use invalidate_region.
13651
13652         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
13653         region.
13654
13655         * acconfig.h configure.in: Check for Xft. For now, assume
13656         that if Xft is found, Pango was compiled with Xft support
13657         as well.
13658
13659         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
13660         gdk_colormap_query_color().
13661         
13662         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
13663         with Xft if appropriate.
13664
13665         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
13666         a pangoxft context if we have XFT and the environment
13667         variable GD_USE_XFT is set.
13668         
13669         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
13670         and also possibly an XftDraw structure.
13671
13672         * gtk/gtkfontsel.c: Handle the case where the font from the
13673         style doesn't match any of the fonts a bit better.
13674         
13675         * gtk/testgtk.c: Add tabs between directional segments for
13676         hebrew/arabic test. (Not really necessary, just a little
13677         prettier.)
13678
13679 2000-12-14  Havoc Pennington  <hp@redhat.com>
13680
13681         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
13682         reading a file
13683
13684 2000-12-14  Havoc Pennington  <hp@redhat.com>
13685
13686         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
13687         unused call to get_last_line()
13688
13689         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
13690         here until boxed is working (and maybe after that - we should
13691         really not gratuitously break old code)
13692
13693         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
13694         specific types for font_desc and tabs args, move them to
13695         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
13696         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
13697
13698         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
13699         use GTK_TYPE_POINTER for signal signatures as a hack-around
13700
13701         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
13702         PangoTabArray
13703
13704         * gtk/gtktextlayout.c (line_display_iter_to_index): 
13705         make static
13706         (line_display_index_to_iter): make static
13707
13708         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
13709         to marshal a string not a boxed
13710
13711         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
13712
13713         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
13714         since the UTF-8 isn't validated yet
13715
13716         * gtk/gtktextsegment.c (char_segment_check_func): don't require
13717         lines to end in '\n'
13718         
13719         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
13720         forward_to_delimiters, and grapheme boundaries
13721         (gtk_text_view_delete_from_cursor): properly handle non-newline
13722         delimiters, and grapheme boundaries
13723
13724         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
13725         to gtk_text_iter_forward_to_delimiters, and make it work properly
13726         if empty lines end with a character other than '\n'
13727
13728         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
13729         position
13730
13731 2000-12-15  Tor Lillqvist  <tml@iki.fi>
13732
13733         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
13734
13735         * gtk/gtk.def
13736         * gdk/gdk.def: Update.
13737
13738         * gdk/win32/gdkmain-win32.c
13739         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
13740         gdkmain-win32.c here.
13741
13742         * gdk/win32/makefile.mingw.in (all): No need to make
13743         gdk-win32res.o here, the makefile one step up will call us to make
13744         it.
13745
13746         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
13747         gdkkeys-win32.
13748
13749         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
13750
13751         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
13752         call to g_source_add().
13753
13754         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
13755         leak. Thanks to Andreas Kemnade.
13756
13757 2000-12-13  Havoc Pennington  <hp@pobox.com>
13758
13759         * gtk/gtktextbtree.h: Remove double _ in front of some functions
13760
13761         * gtk/gtktext*.[hc]: update accordingly
13762         
13763 2000-12-13  Havoc Pennington  <hp@pobox.com>
13764
13765         * gtk/gtktextbtree.h: Put _ in front of every function in this 
13766         header file
13767
13768         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
13769
13770 2000-12-13  Alex Larsson  <alexl@redhat.com>
13771
13772         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
13773         Add support for ps2 intellimouse.
13774
13775         * gdkkeyboard-fb.c:
13776         Move shift-F1 repaint handling to xlate handler only.
13777         
13778         * docs/README.linux-fb:
13779         Add imps2 to docs.
13780         Document the new refresh keys.
13781         
13782 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
13783
13784         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
13785
13786         * gtk/gtkbox.c: change property types from (u)long to (u)int for
13787         ::position and ::padding.
13788
13789         * gtk/gtkcontainer.c: make ::border_width an INT property.
13790
13791         * gtk/gtkpacker.c: make ::position an INT property.
13792
13793         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
13794         guard against NULL h/v scrollbars, since this is used at construction
13795         time.
13796
13797         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
13798         internal gtk_clist_constructor().
13799
13800         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
13801         gtk_ctree_constructor().
13802
13803         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
13804         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
13805
13806         * docs/reference/Makefile.am: fun stuff, disabled docs generation
13807         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
13808
13809         * gtk/gtkwidget.[hc]:
13810         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
13811         and gtk_widget_get().
13812         (gtk_widget_new): use g_object_new_valist().
13813         (gtk_widget_set): use g_object_set_valist().
13814
13815         * gtk/gtkobject.[hc]:
13816         removed gtk_object_arg_get_info(), gtk_object_getv(),
13817         gtk_object_query_args(), gtk_object_newv(),
13818         gtk_object_class_add_signals(),
13819         gtk_object_class_user_signal_new(),
13820         gtk_object_class_user_signal_newv(),
13821         gtk_object_arg_set(), gtk_object_arg_get(),
13822         gtk_object_args_collect(),
13823         gtk_object_default_construct(),
13824         gtk_object_constructed(),
13825         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
13826         removed nsignals, signals and n_args members from GtkObjectClass.
13827         (gtk_object_new): use g_object_new_valist().
13828         (gtk_object_set): use g_object_set_valist().
13829         (gtk_object_get): use g_object_get_valist().
13830         
13831         * gtk/gtkcompat.h: define gtk_object_default_construct().
13832         
13833         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
13834         g_object_new().
13835
13836         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
13837         fucntions, cleaned up method assignments (make sure your structures
13838         are setup properly before calling out). removed all GTK_CONSTRUCTED
13839         hacks ;)
13840
13841 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
13842
13843         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
13844         off-by-one error in checks. (Dave Lambert)
13845
13846 2000-12-12  Alexander Larsson  <alexl@redhat.com>
13847
13848         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
13849         Don't free gdk_fb_keyboard twice.
13850
13851 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
13852
13853         * gtk/testgtk.c:
13854         (create_tooltips): 
13855         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
13856         use GObject swapped_signal:: properties instead.
13857
13858         * gtk/gtkcellrenderertoggle.c: 
13859         * gtk/gtkcellrenderertextpixbuf.c: 
13860         * gtk/gtkcellrenderertext.c: 
13861         * gtk/gtkcellrendererpixbuf.c: 
13862         * gtk/gtkcellrenderer.c:
13863         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
13864         missing warnings for invalid property ids, install properties
13865         with g_object_class_install_property() now.
13866         
13867         * gtk/gtksignal.c:
13868         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
13869         
13870 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
13871         
13872         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
13873         to determine if a window is the focus widget within
13874         its toplevel.
13875
13876         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
13877         to be boolean.
13878
13879         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
13880         of the case where the container CAN_FOCUS to here instead
13881         of having it in each individual move-the-focus place.
13882
13883         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
13884         focusing to be geometric in a much more obvious sense. Arrowing
13885         around is still non-intuitive because it isn't perfect and
13886         because entries, etc, grab the arrow keys, but it at least
13887         usually will do what you expect now.
13888         
13889         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
13890         file.
13891
13892         * gtk/gtknotebook.c: Change tabs to be a single item in
13893         the focus chain. Make movement of focus on tabs with arrow
13894         keys wrap around.
13895         
13896         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
13897         CHECK_FIND_CHILD macro to give informative error messages
13898         instead of silent returns.
13899
13900         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
13901         flag since we handle GdkReturn on the tabs.
13902
13903         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
13904         windows rather than sending expose events directly.
13905
13906         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
13907         definition for GtkNotebookPage into .c file, since it is private.
13908
13909         * gtk/testgtk.c (create_notebook): Add option for 
13910         testing borderless notebook.
13911
13912         * gtk/testgtk.c (page_switch): Removed egregious poking
13913         around in GTK+ internals.
13914
13915         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
13916
13917         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
13918         properly through gtk_clist_focus. Make the title headers a
13919         single item in the tab-focus chain, and make left-right wrap
13920         around.
13921
13922         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
13923         focus method so that wrapping around works properly.
13924
13925         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
13926         that is handled for the widget now. 
13927
13928 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
13929
13930         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
13931         widgets as TOPLEVEL.
13932
13933         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
13934         TOPLEVEL widgets are containers.
13935
13936         * gtk/gtkinvisible.h: Remove useless include.
13937
13938 2000-12-11  Havoc Pennington  <hp@redhat.com>
13939
13940         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
13941         Handle chopping off \r\n and 0x2029 in addition to \n before
13942         passing to PangoLayout
13943
13944         * gtk/gtkimcontextsimple.c
13945         (gtk_im_context_simple_get_preedit_string): 
13946         return an empty string if no match is pending
13947
13948         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
13949         assertion that the returned preedit string was sane
13950
13951         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
13952         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
13953         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
13954
13955 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
13956
13957         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
13958         Fix up finalizer to chain to its parent.
13959
13960 2000-12-11  Alexander Larsson  <alexl@redhat.com>
13961
13962         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
13963         Clearified the difference between the keyboard types. Wrote a note
13964         about the magic sysrq key to get out of raw mode.
13965
13966 2000-12-09  James Henstridge  <james@daa.com.au>
13967
13968         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
13969         member to hold masks for detecting the start of a protocol packet.
13970         (mouse_devs): add packet start masks for ps2 and ms device types.
13971         Left the mask for fidmour blank, as I have no idea what it should
13972         be.
13973         (handle_mouse_io): skip bytes until we get to the start of a
13974         packet.  My Logitech mouse seems to be passing an extra NULL pad
13975         byte, and GPM does a similar thing here.
13976         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
13977         this is the ms mouse driver.
13978         (gdk_fb_mouse_ms_packet): fix up button handling, which was
13979         completely broken except for button1.  It was checking the wrong
13980         bit in the packet for the status of the right mouse button, and
13981         wrongly assuming right == button2 rather than 3.  I fixed that and
13982         also added support for middle button (button2).
13983
13984 2000-12-08  Havoc Pennington  <hp@redhat.com>
13985
13986         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
13987         that cause a segfault on text insertion
13988
13989         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
13990         warning
13991
13992         * gtk/gtktextiter.c (test_log_attrs): use
13993         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
13994
13995         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
13996         Get log attrs for a line, using a cache stored on the buffer
13997         
13998         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
13999         reported by Jeff Franks
14000
14001 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14002
14003         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
14004         /dev/ttyS0 -> /dev/mouse
14005
14006 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14007
14008         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
14009         Added dummy gdk_fontset_load.
14010
14011 2000-12-08  Alexander Larsson  <alexl@redhat.com>
14012
14013         * docs/README.linux-fb:
14014         * docs/Makefile.am:
14015         Initial GtkFB docs.
14016         
14017         * gdk/linux-fb/Makefile.am:
14018         Define GDK_DATA_PREFIX.
14019
14020         * gdk/linux-fb/gdkmain-fb.c:
14021         Fix typo.
14022         Change default display to /dev/fb0.
14023
14024         * gdk/linux-fb/gdkpango-fb.c:
14025         Add $(prefix)/share/fonts/ to font path.
14026         
14027 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
14028
14029         * gdk/linux-fb/gdkkeyboard-fb.c:
14030         New file containing the abstracted keyboard driver. Most code
14031         taken from gdkinput-ps2.c
14032
14033         * gdk/linux-fb/gdkinput-ps2.c:
14034         Removed file.
14035         
14036         * gdk/linux-fb/Makefile.am:
14037         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
14038
14039         * gdk/linux-fb/gdkcolor-fb.c:
14040         display->fb was renamed to display->fb_fd.
14041
14042         * gdk/linux-fb/gdkcursor-fb.c:
14043         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14044
14045         * gdk/linux-fb/gdkinput.c:
14046         Moved gdk_input_init here from gdkinput-ps2.c
14047
14048         * gdk/linux-fb/gdkmain-fb.c:
14049         display->fb was renamed to display->fb_fd.
14050         Now the tty and the console is opened here instead
14051         of in the keyboard driver. Also check GDK_VT to see what
14052         tty to open.
14053         Move gdk_beep () here from gdkinput-ps2.c
14054         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14055
14056         * gdk/linux-fb/gdkmouse-fb.c:
14057         Add header.
14058         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14059         Return correct keyboard modifiers.
14060         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
14061
14062         * gdk/linux-fb/gdkprivate-fb.h:
14063         Add tty and vt info to display.
14064         Add orignal modeinfo storage to display
14065         Update global functions
14066
14067         * gdk/linux-fb/gdkwindow-fb.c:
14068         Added gdk_fb_window_find_focus().
14069         gdk_mouse_get_info -> gdk_fb_mouse_get_info
14070
14071 2000-12-07  Havoc Pennington  <hp@pobox.com>
14072
14073         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
14074         function, noticed by Alex
14075
14076 2000-12-06  Elliot Lee  <sopwith@redhat.com>
14077
14078         * configure.in: Detect freetype properly
14079
14080         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
14081         above.
14082
14083 2000-12-06  Alexander Larsson  <alexl@redhat.com>
14084
14085         * gdk/linux-fb/Makefile.am:
14086         Add gdkmouse-fb.c
14087         
14088         * gdk/linux-fb/gdkmouse-fb.c:
14089         New file. Abstracted the mouse drivers a bit.
14090
14091         * gdk/linux-fb/gdkcursor-fb.c:
14092         The cursor hide/show functions was moved here from gdkinput-ps2.c.
14093
14094         * gdk/linux-fb/gdkinput-ps2.c:
14095         Removed old mouse handling code. Moved cursor handling code
14096         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
14097         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
14098         gdk_mouse_get_info.
14099
14100         * gdk/linux-fb/gdkmain-fb.c:
14101         Pass NULL pointers for x,y in gdk_mouse_get_info call.
14102
14103         * gdk/linux-fb/gdkprivate-fb.h:
14104         Removed public gdk_fb_find_common_ancestor, added and renamed
14105         functions for the new mouse handling code.
14106
14107         * gdk/linux-fb/gdkwindow-fb.c:
14108         Moved gdk_fb_window_send_crossing_events here. added global
14109         variable gdk_fb_window_containing_pointer. made
14110         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
14111         renamed to gdk_mouse_get_info.
14112
14113 2000-12-06  Alexander Larsson  <alexl@redhat.com>
14114
14115         * gdk/linux-fb/gdkevents-fb.c:
14116         Update to match latest gmain/gsource changes.
14117
14118         * gdk/linux-fb/gdkinput-ps2.c:
14119         Bogus gdk_keymap_get_entries_for_keycode implementation so that
14120         it links. Will be implemented later.
14121
14122 2000-12-03  Havoc Pennington  <hp@pobox.com>
14123
14124         * gdk/Makefile.am: add gdkkeys.[hc]
14125
14126         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
14127         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
14128
14129         * acconfig.h, configure.in: add checks and command line options
14130         for XKB
14131
14132         * gdk/x11/gdkkeys-x11.c: Implement the above functions
14133         
14134         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
14135         and group in the key event
14136
14137         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
14138         field with the low-level hardware key code, and a group
14139         field with the keyboard group
14140
14141         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
14142         and declare a couple globals used for keymap handling
14143         
14144         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
14145         hold down Shift-Control and type a hex number to get a Unicode 
14146         character corresponding to the hex number
14147         (gtk_im_context_simple_get_preedit_string): Fix cursor position
14148         (return bytes not chars)
14149
14150 2000-12-05  Elliot Lee  <sopwith@redhat.com>
14151
14152         * gdk/gdkcolor.h: Make GdkColor specify element sizes
14153         to avoid waste on 64-bit platforms.
14154
14155 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
14156
14157         * INSTALL: Fix link to PNG home, remove reference
14158         to fribidi.
14159
14160         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
14161         
14162         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
14163         tested.)
14164
14165         * gtk/gtkcheckmenuitem.c: Permanently turn on
14166         always_show_toggle.
14167
14168         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
14169         be NULL. (Vladimir Klebanov, #26545)
14170
14171         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
14172         some signed/unsigned comparison problems. (#6510,
14173         David Kaelbling)
14174
14175         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
14176         return type to boolean (Oskar Liljeblad, #18648)
14177
14178 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14179
14180         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
14181         Remove bogus colormap setting.
14182
14183 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14184
14185         * gdk/linux-fb/gdkcolor-fb.c:
14186         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
14187
14188         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
14189         Must set colormap.
14190         
14191 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
14192
14193         * docs/tutorial/gtk-tut.sgml: DND updates
14194
14195 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
14196
14197         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14198         Remove old debug g_warning().
14199         (gdk_fb_draw_drawable): The src argument can be either a wrapper
14200         or an implementation, just pass the implementation to draw_drawable_2.
14201         
14202         * gdk/linux-fb/gdkprivate-fb.h:
14203         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
14204
14205         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14206         clear and invalidate area when window is destroyed.
14207         (send_map_events): Remove old commented out code.
14208
14209 2000-12-05  Alexander Larsson  <alexl@redhat.com>
14210
14211         * gdk/linux-fb/gdkpango-fb.c:
14212         Use italic instead of oblique in font aliases.
14213         
14214         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
14215         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
14216         other unsupported functions.
14217
14218 2000-12-04  Havoc Pennington  <hp@redhat.com>
14219
14220         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
14221
14222         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
14223
14224         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
14225
14226         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
14227         hack to avoid infinite loops (synthetic expose event) - 
14228         Owen has more appropriate fixes in a branch he'll check in later.
14229
14230         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
14231         separator, CR, and CRLF as line ends
14232
14233         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
14234         into lines using pango_find_paragraph_boundary(); other bits of
14235         the widget are still going to be broken if the boundary isn't '\n'
14236         though
14237
14238 2000-12-04  Alexander Larsson  <alexl@redhat.com>
14239
14240         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
14241         multiply.
14242
14243         * gdk/linux-fb/gdkpango-fb.c:
14244         Copied some 26.6 scaling macros from pango to clean up the rounding.
14245         (pango_fb_font_get_glyph_info): Correct sign on x value.
14246
14247         * gdk/linux-fb/gdkprivate-fb.h:
14248         Removed unreferenced external functions.
14249
14250         * modules/linux-fb/Makefile.am: Use ` instead of '.
14251
14252         * modules/linux-fb/basic.c:
14253         Remove dead code. In particular the dummy lang engine which broke all
14254         pango layouts in GtkFB. Don't include tables-big.i anymore.
14255
14256         * modules/linux-fb/tables-big.i:
14257         Upgrade to latest version from pango. Left for reference, basic_ranges
14258         moved to basic.c.
14259         
14260 2000-12-04  Havoc Pennington  <hp@redhat.com>
14261
14262         Fix bugs Alex found:
14263         
14264         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
14265         to "draw"
14266
14267         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
14268
14269         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
14270
14271         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
14272         implementation in here, apparently the expose() implementation was
14273         dead code.
14274
14275 2000-12-04  Alexander Larsson  <alexl@redhat.com>
14276
14277         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14278         Return positive descent.
14279
14280 2000-12-02  Havoc Pennington  <hp@pobox.com>
14281
14282         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
14283         method and signal
14284         
14285         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
14286         calls gdk_window_process_updates() to push the exposes through
14287         (gtk_widget_class_init): No more draw signal, no
14288         gtk_widget_real_draw()  
14289         
14290         * gtk/gtkbin.c (gtk_bin_draw): remove
14291
14292         * gtk/gtkbox.c (gtk_box_draw): remove
14293
14294         * gtk/gtkbutton.c (gtk_button_draw): remove
14295
14296         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
14297
14298         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
14299
14300         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
14301
14302         * gtk/gtkclist.c (gtk_clist_draw): remove
14303
14304         * gtk/gtkentry.c (gtk_entry_draw): remove
14305
14306         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
14307
14308         * gtk/gtkfixed.c (gtk_fixed_draw): remove
14309
14310         * gtk/gtkframe.c (gtk_frame_draw): remove
14311
14312         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
14313
14314         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
14315
14316         * gtk/gtklayout.c (gtk_layout_draw): remove
14317
14318         * gtk/gtklist.c (gtk_list_draw): remove
14319
14320         * gtk/gtklistitem.c (gtk_list_item_draw): remove
14321
14322         * gtk/gtkmenu.c (gtk_menu_draw): remove
14323
14324         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
14325
14326         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
14327
14328         * gtk/gtknotebook.c (gtk_notebook_draw): remove
14329
14330         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
14331
14332         * gtk/gtkpacker.c (gtk_packer_draw): remove
14333
14334         * gtk/gtkrange.c (gtk_range_draw): remove
14335
14336         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
14337
14338         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
14339
14340         * gtk/gtktable.c (gtk_table_draw): remove
14341
14342         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
14343
14344         * gtk/gtktext.c (gtk_text_draw): remove
14345
14346         * gtk/gtktextview.c (gtk_text_view_draw): remove
14347
14348         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
14349
14350         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
14351
14352         * gtk/gtktree.c (gtk_tree_draw): remove
14353
14354         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
14355
14356         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
14357
14358         * gtk/gtkviewport.c (gtk_viewport_draw): remove
14359
14360         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
14361
14362         * gtk/gtkvscale.c (gtk_vscale_draw): remove
14363
14364         * gtk/gtkwindow.c (gtk_window_draw): remove
14365
14366 2000-20-01  Anders Carlsson  <andersca@gnu.org>
14367
14368         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
14369         a GtkToggleButton is both insensitive and active, it was being
14370         drawn by the GtkButton draw handler which doesn't check the
14371         state. Now it's calling gtk_toggle_button_paint instead.
14372         
14373 2000-12-01  Havoc Pennington  <hp@redhat.com>
14374
14375         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
14376         dangling pointers to the appearance attributes from the 
14377         line display
14378
14379         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
14380         width/height to mean "full width/height of drawable"
14381
14382         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
14383         click to select word/line
14384         
14385         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
14386         when getting log attrs. Get a slice, so that pixmaps and stuff
14387         are properly handled.
14388
14389         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
14390         paste into the selection (replaces selection now, previously
14391         crashed or added to selection). Reveals longstanding btree bug -
14392         select multiple lines, middle-click on the selection, boom. This
14393         isn't related to my changes though.
14394
14395         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
14396         PangoLogAttrs changes
14397         (gtk_entry_move_backward_word): ditto
14398
14399         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
14400         functions return bool whether the iter moved onto a
14401         dereferenceable position.
14402  
14403         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
14404         functions for motion in terms of display lines.
14405
14406         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
14407         get the buffer a mark is inside
14408         
14409 2000-12-01  Alexander Larsson  <alexl@redhat.com>
14410
14411         * gdk/linux-fb/Makefile.am:
14412         * modules/linux-fb/Makefile.am:
14413         Freetype 2 final uses freetype-config
14414
14415         * gdk/linux-fb/gdkpango-fb.c:
14416         Upgrade to use Freetype 2 final.
14417         More flexible support for font aliases, this also fixes a bug with
14418         GtkFontSelector, as the aliases must be visible in the font/family list,
14419         or GtkFontSelector reads uninitialized memory.
14420
14421 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
14422
14423         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
14424         XGetIMValues to properly terminate variable argument list, and do
14425         NULL return check for ic_values and xim_styles.
14426
14427         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
14428         Restore preedit state after XmbResetIC().
14429         
14430         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
14431         XvaCreateNestedList() should take XvaNestedList, but not
14432         XvaNestedList*.
14433
14434         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
14435         preedit_draw_callback, preedit_caret_callback): Match
14436         "preedit-changed" signal name to "preedit_changed" to be
14437         consistent to the spec.
14438
14439         * gtk/gtkimcontextsimple.c (check_table):
14440         Match "preedit-changed" to "preedit_changed" to be consistent
14441         to the spec.
14442
14443 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
14444
14445         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
14446         gc->clip_region == NULL>
14447
14448 2000-11-30  Tor Lillqvist  <tml@iki.fi>
14449
14450         Changes by Hans Breuer:
14451         
14452         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
14453         Dont't use negative width and height as max_hints. This fixes
14454         Owen's recent testgtk changes for win32.
14455
14456         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
14457         gdk_win32_hdc_release): These are exported and may be called with
14458         other drawable types than our GdkDrawableImplWin32 (?).
14459
14460         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
14461         so always #define USE_BACKING_STORE.
14462
14463         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
14464         of printf for debugging output.
14465
14466         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
14467         
14468         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
14469
14470         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
14471         declaration.
14472
14473         * gtk/gtktexttypes.h: Ditto.
14474
14475         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
14476         (GDK_VoidSymbol) also if in case of arg check failure.
14477
14478         * gtk/gtkimcontextsimple.c
14479         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
14480         position to the pointer, but to the variable it points to.
14481
14482         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
14483
14484         * gtk/gtk.def: Updates.
14485
14486 2000-11-29  Elliot Lee  <sopwith@redhat.com>
14487
14488         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
14489         GTK_TYPE_TREE_MODEL.
14490
14491 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14492
14493         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
14494         Set the size of the font from the description.
14495         (gdk_text_width): Gross hack that calculates the width
14496         of text by text_length * size/2. This is necessary because
14497         GtkLabel does some ugly gtk_string_width call to calculate
14498         an good size.
14499         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
14500
14501 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
14502
14503         * docs/tutorial/gtk-tut.sgml: DND updates
14504
14505 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14506
14507         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
14508         If you pass width or height == 0 to gdk_window_clear_area they
14509         should be calculated from the window size.
14510
14511 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14512
14513         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
14514         a grab, but no grab-cursor, use the cursor from the grabbed
14515         window. (gdk_fb_window_send_crossing_events): Send normal
14516         enter/leave notifications if grab and owner_events == TRUE.
14517
14518 2000-11-29  Alexander Larsson  <alexl@redhat.com>
14519
14520         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
14521         Do implicit button grabs, even if the window doesn't
14522         want the event.
14523         (gdk_fb_window_send_crossing_events): If there is a
14524         grab, only the grabbed window gets normal enter/leave
14525         notifications. On ungrab go from grabbed window to current.
14526         Don't send any notification to b when propagating from c -> b.
14527         If setting a grab on window, don't set prev_window.
14528         (handle_mouse_input): Send enter/leave events to the window the
14529         mouse is over, not the grabbed one.
14530         
14531 2000-11-28  Elliot Lee  <sopwith@redhat.com>
14532
14533         * gdk/gdkregion-generic.c: Zap warning.
14534         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
14535         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
14536
14537 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
14538
14539         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
14540         The cursor should be hidden if it is part of either the
14541         source or destination region. Not only if it is in both.
14542         (gdk_window_set_transient_for): Silence warnings.
14543
14544 2000-11-28  Alexander Larsson  <alexl@redhat.com>
14545
14546         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
14547         The default mode in X is Pie Arcs, therefore that is
14548         what Gtk+ uses.
14549
14550 2000-11-28  Alexander Larsson  <alexl@redhat.com>
14551
14552         * gdk/linux-fb/gdkinput-ps2.c:
14553         Implement correct EnterNotify/LeaveNotify:
14554         (gdk_fb_window_send_crossing_events): New function that sends
14555         all GdkCrossingEvents from the last mouse-window to the specified
14556         destination.
14557         (gdk_fb_window_visibility_crossing): Removed function.
14558         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
14559         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
14560         instead of gdk_window_get_pointer() for better readability.
14561
14562         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
14563         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
14564
14565         * gdk/linux-fb/gdkprivate-fb.h:
14566         removed gdk_fb_window_visibility_crossing, added
14567         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
14568
14569         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
14570         New function that finds the least common ancestor of two windows.
14571         (gdk_window_show, gdk_window_hide):
14572         Use gdk_fb_window_send_crossing_events.
14573         (gdk_fb_window_move_resize): Send configure events to toplevel
14574         windows. Use gdk_fb_window_send_crossing_events.
14575
14576 2000-11-27  Havoc Pennington  <hp@redhat.com>
14577
14578         * gtk/gtkprivate.h (enum): Remove a trailing comma
14579
14580 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
14581
14582         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
14583         the "changed" callback of the adjustment.  We need to redraw the
14584         spin button's arrows when the adjustment's range changes.
14585         (adjustment_changed_cb): Draw the arrows.
14586         (gtk_spin_button_value_changed): Draw the arrows.
14587
14588 2000-11-23  Alexander Larsson  <alexl@redhat.com>
14589
14590         * gdk/linux-fb/gdkselection-fb.c:
14591         Initial selection implementation.
14592
14593         * gtk/gtkselection.c:
14594         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
14595         requestor in gtk_selection_request.
14596         
14597         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
14598         Added gdk_selection_property atom.
14599
14600         * gdk/linux-fb/gdkprivate-fb.h:
14601         Export _gdk_selection_window_destroyed.
14602         Removed mask_off_x/y from GdkCursorPrivateFB.
14603         Removed hbearing, added top, left to PangoFBGlyphInfo.
14604
14605         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
14606         Call _gdk_selection_window_destroyed
14607         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
14608         the root window has been created.
14609         (static_dx_hack, static_dy_hack, compare_draw_rects,
14610         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
14611         in region. They are already sorted. Instead just traverse them in
14612         reverse if draw_direction < 0.
14613         
14614         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
14615         Double-clicks must be sent after the normal button_press.
14616         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
14617         
14618         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
14619         Pass _gdk_fb_screen_gc instead of NULL.
14620
14621         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
14622         Initialize gdk_selection_property.
14623         (gdk_event_make): Remove unused code.
14624
14625         * gdk/linux-fb/gdkcursor-fb.c:
14626         Make the pixmap for the cursor the same size as the mask. Also remove
14627         the mask_off_x/y fields in GdkCursorPrivateFB and combine
14628         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
14629         Now the whole cursor is visible.
14630
14631         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
14632         Fix bug where xdest+height instead of ydest+height was used
14633         to calculate if the source and dest overlapped. This fixes the
14634         redraw bug when the main window in testgtk was scrolled when
14635         partially covered by a tall window.
14636         Copy rectangles in region in order depending on draw_direction.
14637         Also moved the draw_direction flipping of start_y and end_y into
14638         the gc functions, as this might not be what all of them want.
14639         (gdk_fb_draw_lines): Support dashed lines.
14640         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
14641         so that the text is positioned correctly (was 1 pixel high).
14642
14643         gdk/linux-fb/gdkgc-fb.c:
14644         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
14645         all lines were drawn a pixel to short. Also checked the default of
14646         the rest of the values, and they're the same as X now.
14647
14648         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
14649         Clean up pixel positioning of the glyphs. Just use bgy->top and
14650         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
14651         to all divisions to get correct rounding behaviour.
14652
14653         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
14654         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
14655         Moved start_y/end_y flip into draw_drawable implementations.
14656         Flip also x rendering when draw_direction < 0.
14657         Remove unneccesary multiply with draw_direction.
14658
14659 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
14660
14661         * docs/tutorial/gtk-tut.sgml:
14662           - get rid of gtk_toggle_button_toggled FUD
14663           - start DND section - needs work - based on:
14664                 http://wolfpack.twu.net/docs/gtkdnd/
14665
14666 2000-11-22  Alexander Larsson  <alexl@redhat.com>
14667
14668         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
14669         Correct calculation of font metrics. Now GtkEntrys have sane
14670         size.
14671
14672 2000-11-22  Alexander Larsson  <alexl@redhat.com>
14673
14674         * gdk/gdktypes.h:
14675         Add new type GdkSpan
14676         
14677         * docs/reference/gdk/gdk-sections.txt,
14678         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
14679         gdk/gdkregion.h:
14680         Implement and document gdk_region_spans_intersect_foreach.
14681
14682         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
14683         Add new file gdkrender-fb.c which contains all core
14684         rendering code.
14685         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
14686         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
14687         (optimized rectangle fillers).
14688
14689         * gdk/linux-fb/gdkdrawable-fb2.c:
14690         Move all rendering code to gdkrender-fb.c.
14691         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
14692         Use the new span intersection functions in gdk_fb_fill_spans.
14693         gdk_fb_draw_rectangle() clips filled rectangles and calls
14694         gc->fill_rectangle with the result.
14695         gdk_fb_fill_spans() gets extra argument "sorted".
14696
14697         * gdk/linux-fb/gdkevents-fb.c:
14698         Remove unused includes and defines.
14699         New function gdk_fb_get_time() to get correct time for events.
14700
14701         * gdk/linux-fb/gdkinput-ps2.c:
14702         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
14703         Make sure to set the time of all events.
14704
14705         * gdk/linux-fb/gdkmain-fb.c:
14706         Use gdk_fb_get_time ().
14707
14708         * gdk/linux-fb/gdkprivate-fb.h:
14709         New virtual GC calls: fill_span & fill_rectangle.
14710         Export gdk_fb_get_time().
14711         gdk_fb_fill_spans() gets extra argument "sorted".
14712
14713         * gdk/linux-fb/mi*.c:
14714         Use GdkSpan instead of GdkRectangle.
14715         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
14716         from XFree 4 source)
14717         
14718 2000-11-22    <jrb@redhat.com>
14719
14720         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
14721         reversing the order in an if statement will do.  Doing so managed
14722         to make the treemodelsort half work.  Other half will follow after
14723         I get the insert function fully fixed.
14724
14725 2000-11-21  Elliot Lee  <sopwith@redhat.com>
14726         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
14727         more than 2 bits. Besides, I need to implement an evil hack. :)
14728
14729 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
14730
14731         * docs/tutorial/gtk-tut.sgml: minor corrections
14732
14733 2000-11-20  Jonathan Blandford <jrb@redhat.com>
14734         * gtk/gtktreemodelsort.h: Add convertion functions to let you
14735           convert to and from relative path's and iters.
14736
14737         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
14738           testing sorting functions a bit better.  Currently broken -- will
14739           fix in morning.
14740
14741 2000-11-20  Havoc Pennington  <hp@redhat.com>
14742
14743         * gtk/gtkwidget.c: Documented a bunch of functions in here
14744         (gtk_widget_realize): Warn if you try to realize
14745         a widget with no parent that isn't a toplevel
14746         (gtk_widget_intersect): return a gboolean
14747
14748 2000-11-20  Havoc Pennington  <hp@redhat.com>
14749
14750         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
14751         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
14752         scrolling to be implemented in GDK to finish. Also, right now
14753         we just size_allocate all children on every layout change,
14754         which is pretty lame. Test commented out of testtext.c, 
14755         until it works better.
14756
14757 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
14758
14759         * gdk/linux-fb/gdkdrawable-fb2.c:
14760         Removed unused arguments from gdk_fb_drawable_get_pixel().
14761
14762         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
14763         Renamed fidur specific mouse packet data in MouseDevice to
14764         generic. Used it in ps2 mouse handling code to avoid blocking
14765         reads.
14766
14767 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
14768
14769         * demos/gtk-demo/main.c: Changed to have the list become
14770         non-italic when the demo window is destroyed through an external
14771         event (like a close button).  Doing so found three bugs in the
14772         widget.
14773
14774         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
14775
14776         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
14777         we actually set the cell.
14778
14779         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
14780
14781         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
14782         free a leaked path.  Thanks memprof.
14783
14784 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
14785
14786         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
14787         off-by-one error when destroying allocated segments
14788         on failure. (Elliot)
14789
14790 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
14791
14792         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
14793         memleaks found by Evan Martin.
14794
14795 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
14796
14797         * Released 1.3.2
14798         
14799         * NEWS: Updates for 1.3.2
14800
14801 2000-11-17  Tor Lillqvist  <tml@iki.fi>
14802
14803         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
14804         but in general for window system specific events.
14805
14806         * gtk/gtk.def
14807         * gtk/makefile.mingw.in
14808         * gtk/makefile.msc.in: Update.
14809         
14810         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
14811
14812 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
14813
14814         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
14815         distribute gtk.immodules.
14816
14817         * gtk/Makefile.am (install-data-local): Don't install the
14818         gtk.immodules file created for the uninstalled modules;
14819         instead run gtk-query-immodules after install
14820
14821 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
14822
14823         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
14824         -rpath to the right install location.
14825
14826         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
14827         -export-dynamic.
14828
14829         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
14830         properly.
14831
14832 2000-11-15  Havoc Pennington  <hp@pobox.com>
14833
14834         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
14835         patch from Mikael Hermansson to temporarily stop blinking while
14836         the user is using the keyboard to type or navigate. 
14837
14838         Also, when blinking, stay on for longer than we stay off. Also,
14839         return from start_cursor_blink if !cursor_visible, to save
14840         checking that flag all over the place before we call
14841         start_cursor_blink.
14842
14843 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
14844
14845         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
14846         only contain a "fontset" line, which is now ignored.
14847
14848         * gtk/gtkentry.c (gtk_entry_button_release): Make 
14849         double-click-to-select-word work.
14850         
14851 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
14852
14853         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
14854         Don't move back one char when we are actually at the end of the 
14855         paragraph.
14856
14857 2000-11-15  Robert Brady  <robert@suse.co.uk>
14858
14859         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
14860         'o' < 'p'.
14861         
14862         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
14863         bind_textdomain_codeset.
14864
14865         (gtk_init_check): Make the warning about translating default:LTR
14866         sterner.
14867         
14868 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
14869
14870         * **/Makefile.am : remove unecessary rules for win32-specific
14871         config-substituted targets. If you want these rules, use
14872         --enable-maintainer-mode (called automatically by autogen.sh).
14873         Stops a lot of unneccessary make-time warnings.
14874
14875         * gtk/gtktext{layout,display}.c: Factor in total width as
14876         well as screen when figuring alignment for word-wrap as well as
14877         no wrap; this is necessary to handle lines that cannot be wrapped
14878         at all.
14879
14880 2000-11-15  Havoc Pennington  <hp@redhat.com>
14881
14882         * gtk/testtext.c: Implement essential color cycling feature
14883
14884 2000-11-15  Havoc Pennington  <hp@redhat.com>
14885
14886         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
14887         when we invalidate the main window.
14888
14889         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
14890         GtkTextView will now invalidate the side windows for us when text
14891         changes.
14892
14893 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
14894
14895         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
14896         unconditionally, since we may need to update the horizontal
14897         scrollbars even if the height didn't change.
14898
14899         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
14900         the extra attrs, since some of them affect size.
14901
14902         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
14903         x_offset correctly.
14904
14905 2000-11-15  Havoc Pennington  <hp@redhat.com>
14906
14907         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
14908         don't move the first line out into the margin, instead move the
14909         whole paragraph in order to make space for the first line within 
14910         the margin
14911
14912 2000-11-15  Havoc Pennington  <hp@redhat.com>
14913
14914         * gtk/gtktextview.c (changed_handler): offset redraw rect by
14915         xoffset in addition to yoffset, so horizontal scrolling doesn't
14916         break redraws
14917
14918 2000-11-15  Havoc Pennington  <hp@redhat.com>
14919
14920         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
14921         from the cursor
14922         (render_layout_line): fix reversed test that caused weird
14923         underlines to get drawn
14924
14925 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
14926
14927         * gdk/linux-fb/gdkprivate-fb.h:
14928         Fix debug macros.
14929         
14930 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
14931
14932         * gdk/linux-fb/gdkprivate-fb.h:
14933         Added virtual functions set_pixel, get_color,
14934         fill_span and draw_drawable to the GC.
14935         Added global _gdk_fb_screen_gc to use instead of
14936         NULL when drawing to the screen.
14937         Added _gdk_fb_gc_calc_state() prototype.
14938
14939         * gdk/linux-fb/gdkgc-fb.c:
14940         Call _gdk_fb_gc_calc_state() on any gc state change.
14941
14942         * gdk/linux-fb/gdkglobals-fb.c:
14943         Add _gdk_fb_screen_gc
14944                 
14945         * gdk/linux-fb/gdkdrawable-fb2.c:
14946         _gdk_fb_gc_calc_state() calculates best functions
14947         for the GC state and depth.
14948         Moved bpp specialized code to separate functions.
14949         Added optimized 24 bpp AA draw_drawable.
14950
14951         * gdk/linux-fb/gdkevents-fb.c:
14952         Silence gcc warning.
14953
14954         * gdk/linux-fb/gdkimage-fb.c:
14955         Use _gdk_fb_screen_gc
14956
14957         * gdk/linux-fb/gdkwindow-fb.c:
14958         Init and use _gdk_fb_screen_gc
14959
14960         * gdk/linux-fb/mitypes.h:
14961         Remove unused types.
14962
14963 2000-11-14  Havoc Pennington  <hp@pobox.com>
14964
14965         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
14966         to pixels
14967
14968 2000-11-14  Havoc Pennington  <hp@pobox.com>
14969
14970         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
14971
14972         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
14973         unknown char, no real reason we were using a variable. 
14974         Remove gtk_text_unknown_char variable. Fix all the text widget
14975         files accordingly.
14976
14977         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
14978         since the Unicode spec seems to prefer that character for our
14979         purposes.
14980
14981 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
14982
14983         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
14984         value of g_getenv() isn't freeable, so g_strdup it.
14985
14986         * modules/input/inuktitut.c: Inuktitut input method.
14987
14988         * modules/input/Makefile.am: Build this.
14989         
14990 2000-11-14  Elliot Lee  <sopwith@redhat.com>
14991
14992         * gtk/Makefile.am: Install gtk.immodules, needed for operation
14993         of gtk programs.
14994
14995 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
14996
14997         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
14998         reversed > that was causing Home to go to end of previous line.
14999
15000         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
15001         modified-keypresses (leave for bindings.)
15002
15003         * modules/input/Makefile.am: Remove useless -export-dynamic
15004         from module LDFLAGS.
15005
15006 2000-11-14  Havoc Pennington  <hp@redhat.com>
15007
15008         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
15009         higher.
15010
15011         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
15012         account. Also, render rise, underline, background, etc. for
15013         pixbufs as well as text. Also, draw underlines one pixel higher.
15014
15015         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
15016         PangoAttribute for the rise, so it gets drawn properly. Also,
15017         add the GtkTextAppearance attribute for pixbuf/widget segments
15018         as well; we should go ahead and have rise, underline, background,
15019         stipple work for those
15020
15021         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
15022         Pango
15023
15024 2000-11-15  Tor Lillqvist  <tml@iki.fi>
15025
15026         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
15027
15028         * gtk/gtk.def: Update.
15029
15030         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
15031         included.
15032         (gtk_rc_get_im_module_file): Use run-time installation directory
15033         on Win32.
15034
15035         * gdk/win32/rc/gdk.rc: Remove.
15036         * gdk/win32/rc/gdk.rc.in: New file.
15037         * gdk/win32/rc/Makefile.am: New file
15038         * gdk/win32/Makefile.am: Corresponding changes.
15039
15040         * gtk/gtk.rc: Remove.
15041         * gtk/gtk-win32.rc.in: New file.
15042         * gtk/Makefile.am: Corresponding changes.
15043
15044         * configure.in: Corresponding changes.
15045
15046         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
15047         has a built gtkcompat.h. Developers using CVS code on Win32 can
15048         hand-edit it from gtkcompat.h.in.
15049
15050         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
15051         gtkcompat.h from gtkcompat.h.win32.
15052
15053 2000-11-14  Havoc Pennington  <hp@redhat.com>
15054
15055         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
15056         to default to GDK_ACTION_MOVE if the drag is within a single
15057         widget. Defaults to GDK_ACTION_COPY between widgets.
15058
15059 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
15060
15061         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
15062
15063         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
15064
15065         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
15066         srcdir != builddir
15067
15068         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
15069
15070         * configure.in (GTK_VERSION): Up to 1.3.2
15071
15072         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
15073         gtkimcontextxim.h
15074
15075         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
15076         missing doc comment.
15077
15078 2000-11-14  Alexander Larsson  <alexl@redhat.com>
15079
15080         * modules/linux-fb/basic.c:
15081         Use the glib iconv wrappers.
15082
15083 2000-11-13  Havoc Pennington  <hp@pobox.com>
15084
15085         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
15086         still more bugs.
15087
15088         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
15089         scroll the GdkWindows before realization.
15090
15091 2000-11-13  Havoc Pennington  <hp@redhat.com>
15092
15093         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
15094         where GC didn't always get updated properly
15095
15096         * demos/gtk-demo/textview.c (create_tags): Use subattributes
15097         of fonts instead of setting the entire font
15098
15099         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
15100         setting entire font
15101
15102         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
15103
15104         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
15105         a bunch of individually-settable font attributes. You can still 
15106         use the "font" and "font_desc" args, they just set all the font
15107         attributes at once.
15108
15109 2000-11-13 Elliot Lee <sopwith@redhat.com>
15110
15111         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
15112
15113 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
15114
15115         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
15116         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
15117
15118         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
15119         work better.
15120
15121 2000-11-13  Havoc Pennington  <hp@redhat.com>
15122
15123         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
15124         the module file.
15125
15126         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
15127         dest->language
15128
15129         * gtk/testtext.c: Test pixels above/below/inside paragraphs
15130         settings
15131
15132         * gtk/gtktextview.c: Implement object args and setters/getters for
15133         all the aspects of the GtkTextAttributes that are not set from
15134         GtkWidget attributes. This is spacing, justification, margins,
15135         etc.
15136
15137         (gtk_text_view_set_arg)
15138         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
15139         args
15140         (gtk_text_view_class_init): Add args for justify, left_margin,
15141         right_margin, indent, and tabs
15142         
15143
15144         * gtk/gtktextlayout.c (set_para_values): fix to display indent
15145         attribute properly
15146
15147         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
15148         replace with indent attribute
15149
15150         * gtk/gtktextlayout.c (set_para_values): multiply indent by
15151         PANGO_SCALE
15152
15153         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
15154         rearranging code to do that
15155         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
15156         i.e. don't subtract the top_margin first, just to keep
15157         all margin-futzing in one place.
15158
15159         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
15160
15161         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
15162         special case of last line, Pango now handles this itself.
15163         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
15164         Y coordinate
15165         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
15166         (find_display_line_above): wasn't moving the byte index as it
15167         iterated over lines, so always returned byte 0. Also, port to use
15168         PangoLayoutIter.
15169         (find_display_line_below): same problem as
15170         find_display_line_above. Also, port to use PangoLayoutIter.
15171
15172 2000-11-13  Alexander Larsson  <alexl@redhat.com>
15173
15174         * gdk/linux-fb/*.[ch]:
15175         Massive reindent to gtk+ standard. My hands hurt.
15176
15177         * gdk/linux-fb/gdkcolor-fb.c:
15178         Move GdkColorPrivateFB from inherited to windowing_data
15179
15180         * gdk/linux-fb/gdkcursor-fb.c:
15181         _gdk_cursor_new_from_pixmap made static
15182
15183         * gdk/linux-fb/gdkdnd-fb.c:
15184         GdkDragContextPrivate moved to windowing_data
15185
15186         * gdk/linux-fb/gdkdrawable-fb2.c:
15187         Removed endian.h, use glib endianness macros instead
15188         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
15189         and GDK_DRAWABLE_IMPL_FBDATA
15190
15191         * gdk/linux-fb/gdkfont-fb.c:
15192         Add empty gdk_font_load(). Needed for linking of Gtk+.
15193
15194         * gdk/linux-fb/gdkimage-fb.c:
15195         Removed endian.h, use glib endianness macros instead
15196         Moved GdkImagePrivateFB to windowing_data
15197         gdk_image_new_bitmap didn't always allocate enough
15198         memory.
15199
15200         * gdk/linux-fb/gdkinput-ps2.c:
15201         Added semi-working support for MS serial mice.
15202
15203         * gdk/linux-fb/gdkprivate-fb.h:
15204         s/GdkWindowPrivate/GdkWindowObject/
15205         Removed GdkWindowPrivate typedef
15206         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
15207         Removed GDK_DRAWABLE_P
15208         Move GdkColorPrivateFB from inherited to windowing_data
15209         Moved GdkImagePrivateFB to windowing_data
15210
15211         * gdk/linux-fb/gdkvisual-fb.c:
15212         Removed some unused debug code.
15213
15214         * gdk/linux-fb/gdkwindow-fb.c:
15215         Use stock cursors instead of including X headers.
15216         s/GdkWindowPrivate/GdkWindowObject/
15217
15218         * gdk/linux-fb/mitypes.h:
15219         Removed unused types.
15220
15221         * modules/linux-fb/basic.c:
15222         Use the pango fribidi wrappers.
15223
15224 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
15225
15226         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
15227         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
15228         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
15229         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
15230         GEqualFunc where applicable.
15231         
15232         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
15233         pango_font_description_equal as changed in pango.
15234         
15235         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
15236
15237         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
15238
15239         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
15240
15241         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
15242
15243         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
15244
15245         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
15246
15247         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
15248         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
15249
15250         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
15251         gtk_rc_styles_compare -> gtk_rc_styles_equal.
15252
15253 2000-11-12  Havoc Pennington  <hp@pobox.com>
15254
15255         * demos/gtk-demo/Makefile.am (democodedir): change demo install
15256         dir to datadir/gtk+-2.0/demo
15257
15258         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
15259         sorts of text widget and Pango font bugs. Urgh.
15260
15261         * demos/gtk-demo/Makefile.am (demos): Add textview.c
15262
15263         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
15264         tree that you should double click to see the demo. Fix 
15265         types of variables to reflect changed return values from 
15266         GtkTreeStore and GtkTreeViewColumn constructors.
15267
15268         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
15269         newly-created buffer to prepare for GObject semantics
15270
15271         * gtk/testtext.c: don't leak the buffer with GObject semantics
15272
15273         * gtk/testtextbuffer.c: ditto
15274         
15275 2000-11-12  Havoc Pennington  <hp@pobox.com>
15276
15277         Rename this testgtk to gtk-demo to avoid confusion, and 
15278         install it so people can use it as a supplement to 
15279         the documentation.
15280         
15281         * demos/gtk-demo: Moved from demos/testgtk
15282
15283         * demos/testgtk: Removed
15284
15285         * configure.in: make Makefile in gtk-demo
15286         
15287         * demos/gtk-demo/Makefile.am: Install sample source to 
15288         datadir/gtk-demo (maybe there's a better place?), and 
15289         rename the binary to gtk-demo
15290         
15291         * demos/gtk-demo/main.c (load_file): Load installed sample
15292         source if source isn't found in pwd.
15293
15294 2000-11-09  Havoc Pennington  <hp@pobox.com>
15295
15296         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
15297         argument to set the char displayed when visibility == FALSE
15298         (gtk_entry_create_layout): If !entry->visible, replace 
15299         all chars with the "invisible char"
15300
15301         * gtk/testgtk.c: Test the invisible_char deal
15302         
15303 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
15304
15305         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
15306         can't get a native font in the right encoding.
15307
15308 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
15309
15310         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
15311         respectively.
15312
15313 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
15314
15315         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
15316         Fix warning when moving between paragraphs.
15317
15318         * gtk/gtkentry.[ch]: Change move => move_cursor, 
15319         delete => delete_from_cursor, insert => insert_at_cursor
15320
15321 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
15322
15323         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
15324
15325         * modules/input/imthai-broken.c: A Thai input method for use if
15326         Thai keys are really generating Latin1 keysyms.
15327
15328         * modules/input/Makefile.am: Build these.
15329
15330 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
15331
15332         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
15333         g_filename_{to,from}_utf8 now takes an extra parameter.
15334
15335         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
15336         strftime into UTF-8.
15337
15338         (column_from_x, gtk_calendar_paint_day_names): Support RTL
15339         calendars.
15340
15341         (gtk_calendar_paint_day_names): Draw day names in the right 
15342         place.
15343         
15344 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
15345
15346         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
15347         problem with using result of g_get_charset() backwards -
15348         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
15349
15350         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
15351         negative min_width/height and max_width/height to
15352         mean "requisition"; this allows setting a window
15353         to be user-resizable in only one direction easily.
15354
15355         * gtk/testgtk.c (create_main_window): Remove hard-coded
15356         usize - set a default size in the vertical direction.
15357
15358 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
15359
15360         * gtk/gtkrange.c: Add some missing casts. Support 
15361         2 and 3 button clicks on the arrows to mean 
15362         "move by pages" and "jump to end". (Like gtkspinbutton)
15363
15364 2000-11-12 Hans Breuer <Hans@Breuer.Org>
15365
15366         * gdk/win32/makefile.msc : reflect build module changes
15367
15368         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
15369         from GdkPixmap*, cast implementation member instead.
15370
15371         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
15372         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
15373         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
15374         more Gdi functions return value checking. 
15375         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
15376         GdkImagePrivateWin32 *.
15377
15378         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
15379         menus useable again. Add #pragma message to keep reminded on this issue.
15380         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
15381         windows. This allows to enable backing store on Win32!
15382
15383         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
15384         in drawable is of impl type. Correct specific type checks appropriate.
15385  
15386         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
15387         GDK_WINDOW_DESTROYED before allocating new resources.
15388
15389         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
15390
15391         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
15392         (gdk_window_foreign_new) initialize parent handle.
15393         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
15394
15395         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
15396         Let the GDI invalidate the window on MoveWindow call to fix scrolling
15397         problems (e.g. main buttons in testgtk). 
15398
15399 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
15400
15401         * gtk/gtkentry.c (gtk_entry_key_press): Call 
15402         gtk_widget_activate for GDK_Return.
15403
15404         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
15405         of preedit cursor position.
15406
15407 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
15408
15409         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
15410         static.
15411
15412 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
15413
15414         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
15415         out support for multiple locales; that simple doesn't
15416         work reliably with current Xlib
15417
15418         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
15419         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
15420         Add support for positioning the cursor within the preedit string.
15421
15422 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
15423
15424         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
15425         at XIM input method module.
15426
15427         * gtk/gtktextview.c: Check for bindings after passing
15428         events to im context filter.
15429
15430 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
15431
15432         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
15433         empty attribute lists properly.
15434
15435 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
15436
15437         * gtk/queryimmodules.c (main): Return non-zero exit
15438         status if errors were encountered querying any
15439         modules.
15440
15441         * modules/input/Makefile.am (moduledir): remove
15442         leftover bin program target.
15443
15444         * docs/make-todo: Fix typo in error message.
15445
15446 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
15447
15448         * configure.in: Add modules/input/Makefile
15449
15450 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
15451
15452         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
15453         don't include gtkthemes.h.
15454
15455         * gtk/testgtk.c gtk/testtext.c: Set environment variables
15456         to point
15457
15458         * gtk/Makefile.am: Add new .c and .h files, build 
15459         gtk-query-immodules and use it to create a gtk.immodules
15460         file for use of test programs.
15461
15462         * gtk/gtkpreview.c: remove extra blank line.
15463
15464 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
15465
15466         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
15467         Add the ability to add extra tables beyond the default
15468         one, and also the ability to have compose sequences 
15469         that are prefixes of other compose sequences. 
15470
15471         * gtk/gtkimcontextsimple.c: Export a preedit string which
15472         consists of possible candidates for keystrokes that have
15473         been entered but not yet committed.
15474
15475         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
15476         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
15477
15478         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
15479         Add a function to add input-method switching menu items
15480         to a menu.
15481
15482         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
15483         when switching input methods.
15484
15485         * gtk/gtkimcontextsimple.[ch]: Change the format of
15486         the compose table to allow compose tables of different
15487         lengths / sequence.
15488
15489 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
15490
15491         * gtk/gtkimmodule.[ch]: Support routines for loading
15492         GtkIMContext implementations dynamically at runtime.
15493
15494         * modules/input/imcyrillic-translit.c: A sample input
15495         method (based on GtkIMContextSimple with an extra table),
15496         which demonstrates preedit strings and the module
15497         system for input modules
15498
15499         * gtk/queryimmodules.c: Program to query the available
15500         input modules and write the results into a file.
15501          
15502         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
15503         extra config options "im_module_file" (cache file for
15504         input method modules), and "im_module_path" - path
15505         to look for modules when generating cache file.
15506
15507         This doesn't scale.
15508
15509 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
15510
15511         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
15512         generic code from gtkthemes into a new abstraction
15513         GtkModule which has the logic for implementing
15514         a loadable module which implements a number of 
15515         GObject types.
15516
15517 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
15518
15519         * gtk/gtkeditable.[ch]: Convert GtkEditable from
15520         a class into an interface  
15521         
15522         * gtk/gtkoldeditable.[ch]: Move the old editable
15523         implementation into here, so legacy widgets can
15524         still rely on the implemenation. GtkOldEditable
15525         exports GtkEditable. Make selection handling
15526         code use new text conversion functions (and
15527         handle UTF-8 as a side-effect). Use GtkClipboard
15528         for CLIPBOARD.
15529
15530         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
15531         Adopt to match above changes.
15532
15533         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
15534         avoid GtkOldEditable implementation. Restructure
15535         to reduce number of places that modify state directly.
15536         Move to GtkBindingSet. Display the preedit string.
15537         Queue recomputation of PangoLayout and scroll position
15538         to improve effiency of doing complex changes naively.
15539         Add a menu with cut/copy/paste and input method selection.
15540
15541 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
15542
15543         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
15544         to set preedit string and attributes; display preedit string by
15545         inserting string and attributes at cursor when creating the
15546         GtkTextLineDisplay.
15547
15548         * gtk/gtktextlayout.c: Move all conversions between byte
15549         positions in PangoLayout and GtkTextIter into new functions
15550         line_display_iter_to_index/index_to_iter that properly
15551         handle the preedit string.
15552
15553         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
15554         it to return const char * (eventually will end up
15555         as GCONST char *, most likely.)
15556
15557         * gtk/gtktextview.[ch]: Handle the preedit string, call
15558         gtk_im_context_reset() as necessary, add a menu to switch
15559         input methods.
15560         
15561         * gtk/gtktextlayout.[ch]: Remove useless
15562         gtk_text_layout_get_log_attrs() function.
15563
15564 2000-11-11  Tor Lillqvist  <tml@iki.fi>
15565
15566         * gdk/gdk.def
15567         * gtk/gtk.def: Update.
15568
15569         * gdk/win32/*.c: Add last argument to g_type_register_static()
15570         calls.
15571
15572         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
15573
15574         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
15575         generated by older wheel mouse drivers. Get the correct y
15576         coordinate from WM_MOUSEWHEEL messages.
15577
15578         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
15579         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
15580         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
15581         Debugging functions.
15582
15583         * gdk/win32/gdkprivate-win32.h: Declare them.
15584
15585         * gdk/win32/gdkinput-win32.h: Add declaration for
15586         gdk_input_window_destroy().
15587
15588         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
15589
15590 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
15591
15592         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
15593         function to help handle keeping things in sync.
15594
15595 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
15596
15597         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
15598         BOXED marshallers.
15599
15600         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
15601         (gtk_list_store_class_init): use the new BOXED marshallers.
15602
15603         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
15604         new_with_values to new_with_types.
15605         (gtk_tree_store_get_column_type): add this.
15606         (gtk_tree_store_class_init): use the new BOXED marshallers.
15607
15608         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
15609         mirror some POINTER marshallers.
15610
15611 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
15612
15613         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
15614         allow more interesting iterators.  Also, made the lifecycle of
15615         iterators more explicit.
15616
15617         * gtk/gtktreemodelsort.[ch]: New model for sorting.
15618
15619         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
15620         types.
15621
15622 2000-11-09  Alexander Larsson  <alexl@redhat.com>
15623
15624         * demos/testgtk/menus.c:
15625         Changes to make the new testgtk compile after
15626         gtk_menu_append was removed.
15627
15628         * gdk/linux-fb/gdkdrawable-fb2.c
15629         (gdk_fb_get_depth, gdk_fb_get_visual,
15630         gdk_drawable_impl_fb_class_init): Implement
15631         these drawable functions. Now GtkImages work again.
15632
15633         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
15634
15635         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
15636         
15637         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
15638         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
15639         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
15640         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
15641
15642 2000-11-08  Havoc Pennington  <hp@pobox.com>
15643
15644         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
15645         visible_set args, don't know where these had gone, I thought they
15646         used to be there
15647
15648         * gtk/testtext.c: Add a menu item to apply invisibility tag;
15649         now we can test the feature and see that it's totally broken.
15650
15651 2000-11-08  Havoc Pennington  <hp@pobox.com>
15652
15653         Make DND copy pixbufs and tags when source and target share a 
15654         tag table.
15655         
15656         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
15657         in-process GTK_TEXT_BUFFER_CONTENTS target
15658         (gtk_text_view_drag_data_received): Paste from
15659         GTK_TEXT_BUFFER_CONTENTS if we receive it.
15660
15661 2000-11-08  Alexander Larsson  <alexl@redhat.com>
15662
15663         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
15664         API changes.
15665
15666         * gtk/gtkmenu.c: Add support for scrolling menus.
15667         Remove gtk_menu_append/prepend/insert, these have been moved to
15668         gtkcompat.h as #defines.
15669
15670         * gtk/gtkcompat.h.in:
15671         Add compatibility #defines for gtk_menu_append/prepend/insert
15672
15673         * gtk/gtkmenu.h: Add data needed for scrolling menus.
15674         GtkMenuPositionFunc gets an extra argument push_in.
15675         gtk_menu_append/prepend/insert removed.
15676         
15677         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
15678         positioning behaviour to fit to scrolling menus.
15679
15680         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
15681         into menuitem->submeny. That is wrong, and broke torn
15682         off submenus of torn off menus, since they were unrealized
15683         when the first menu was unrealized.
15684
15685         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
15686         gtk_menu_shell_select_item() since these need to be overridden in
15687         GtkMenu.
15688
15689         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
15690         positioning behaviour to fit to scrolling menus.
15691         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
15692         the current item so that it is prelighted when the menu pops up.
15693         This is a workaround to the fact that the menu doesn't get the
15694         initial enter event (due to grabs).
15695
15696         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
15697         s/gtk_menu_append/gtk_menu_shell_append/
15698
15699         * gtk/gtknotebook.c:
15700         s/gtk_menu_insert/gtk_menu_shell_insert/
15701
15702         * gtk/testgtk.c (create_menu, create_menus):
15703         Create the first menu with 50 items so that menu scrolling
15704         can be tested.
15705         
15706         
15707         Patch from Jonathan Blandford  <jrb@redhat.com>
15708
15709         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
15710         system to handle size requests.  First, we ask what the size of
15711         the toggle is.  Then, when allocating the size, we allocate the
15712         toggle_size first.  This way we can have multiple menu-item
15713         classes w/o needing a seperate class for each.
15714
15715         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
15716         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
15717
15718         * gtk/gtkcheckmenuitem.c
15719         (gtk_check_menu_item_toggle_size_request): New function to handle
15720         the toggle size-request.
15721
15722 2000-11-07  Havoc Pennington  <hp@redhat.com>
15723
15724         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
15725         Half-ass somewhat fix this function, so that scrolling to the
15726         insertion point works. Pango hacking is in the future to really
15727         fix it.
15728
15729         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
15730         length of data, no longer used.
15731
15732         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
15733         method contents in here, get rid of destroy method
15734         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
15735         that were backward. Remove debug spew.
15736         (cut_or_copy): Make the clipboard work with insert_range to
15737         preserve tags and pixbufs, not just the primary selection.
15738
15739 2000-11-07  Havoc Pennington  <hp@redhat.com>
15740
15741         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
15742         to gtk_text_mark_get_visible
15743
15744         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
15745         bug that was generating an invalid iterator
15746
15747         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
15748         ensure_char_offsets() in front of code placing the iter in an
15749         invalid state.
15750
15751         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
15752         make override_location arg const
15753         (paste): Replace the selection if we paste into the 
15754         current selection
15755
15756         * gtk/gtkselection.h: Remove "GtkSelectioData"
15757         (struct _GtkSelectionData): move the definition here.
15758
15759         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
15760         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
15761
15762         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
15763
15764         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
15765         (gtk_text_buffer_insert_range_interactive): implement
15766         (gtk_text_buffer_get_tags): Remove, replaced by
15767         gtk_text_iter_get_tags()
15768
15769         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
15770         limit parameter, to avoid infinite linear scan.
15771         (gtk_text_iter_backward_search): Add search limit
15772         (gtk_text_iter_forward_find_char): Add search limit
15773         (gtk_text_iter_backward_find_char): Add search limit
15774
15775 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
15776
15777         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
15778         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
15779         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
15780         gdk/linux-fb/gdkwindow-fb.c:
15781         use g_object_new() instead of g_type_create_instance() which
15782         is a private function for fundamental type implementations.
15783
15784         * gdk/linux-fb/gdkinput-ps2.c:
15785         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
15786         instead just store the current modifier state. Add a (somewhat broken)
15787         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
15788         Rename exported function gdk_input_ps2_get_mouseinfo to
15789         gdk_input_get_mouseinfo.
15790
15791         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
15792         gdk/linux-fb/gdkwindow-fb.c:
15793         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
15794         
15795
15796 2000-11-02  Havoc Pennington  <hp@redhat.com>
15797
15798         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
15799         use stock buttons. Should be 100% source compatible, appropriate
15800         filesel fields now point to dialog->vbox and dialog->action_area.
15801         On the bizarre side, dialog->action_area and filesel->action_area
15802         are not the same widget.
15803         (gtk_file_selection_init): Put some padding around the selection
15804         entry, so it isn't touching the GtkDialog separator.    
15805
15806         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
15807         use stock buttons, etc. Should also be source compatible.
15808         Set the dialog default title in _init not _new().
15809         
15810         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
15811         Use stock buttons; don't put a button box inside the existing
15812         dialog button box. Don't bother with push/pop colormap anymore.
15813
15814         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
15815         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
15816         for message dialog, and necessary for the font selection and color
15817         selection with help and apply buttons.
15818         
15819         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
15820         to the created button widget. Set GTK_CAN_DEFAULT on the button.
15821         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
15822         between buttons, put less padding around the action area.
15823         (gtk_dialog_run): Exit on unmap rather than on destroy. 
15824         This will also exit the loop if the widget is hidden.
15825         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
15826         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
15827         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
15828         special-case delete event.
15829
15830         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
15831         formatting
15832         
15833 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
15834
15835         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
15836         button to temporarily disable position recording in the
15837         "saved position" test.
15838
15839 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
15840
15841         * gtk/gtkthemes.c: added compat code that temporarily implements
15842         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
15843         going to be revamped by owen's upcoming GtkModule patches, but
15844         untill then people want gtk to build, right? ;)
15845
15846 2000-11-04  Havoc Pennington  <hp@pobox.com>
15847
15848         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
15849         list
15850
15851         * docs/Changes-2.0.txt: Add note about
15852         gtk_container_get_toplevels()
15853
15854         * gtk/gtktextview.h: formatting
15855         
15856         * gtk/gtktextview.c: don't start descriptions with "Returns",
15857         confuses gtk-doc
15858
15859 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
15860
15861         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
15862         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
15863
15864 2000-11-03  Havoc Pennington  <hp@redhat.com>
15865
15866         * gtk/gtktexttagtable.c: Docs
15867         (gtk_text_tag_table_size): return a signed int
15868
15869         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
15870         (gtk_text_tag_event): make the event_object a GObject
15871
15872         * gtk/gtktextview.c: Write API docs for all functions.
15873
15874         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
15875         for gtk_text_view_get_window_type() called on one of the private
15876         windows.
15877
15878         * gtk/gtktextview.c: Instead of accessing text_view->buffer
15879         directly, call get_buffer() which demand-creates a default
15880         buffer. So gtk_text_view_new() can be used to create a view with a
15881         default buffer in it, if you just want an empty text box users can
15882         put data in. Useful for GUI builders also.
15883
15884 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
15885
15886         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
15887         the charset encodign portion MUST be in lowercase.
15888         * gtk/gtkrc.az: added file for Azeri language
15889
15890 2000-11-03  Havoc Pennington  <hp@redhat.com>
15891
15892         Get widgets working on the btree/buffer side. Display of them 
15893         still doesn't work.
15894         
15895         * gtk/gtktextview.c: start implementing child widget stuff
15896
15897         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
15898
15899         * gtk/gtktextlayout.c: handle embedded widgets
15900
15901         * gtk/gtktextdisplay.c: handle embedded widgets
15902
15903         * gtk/gtktextchild.c: Implement all the child anchor goo
15904
15905         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
15906         function
15907
15908         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
15909         (insert_pixbuf_or_widget_segment): abstract out common portions of 
15910         creating a child anchor or a pixbuf segment.
15911         (gtk_text_btree_create_child_anchor): new function
15912         (gtk_text_btree_unregister_child_anchor): new function
15913
15914         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
15915         allocate_child signal on GtkTextLayout
15916
15917         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
15918         values
15919         (gtk_text_iter_get_child_anchor): new function
15920
15921         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
15922         default handler for the changed signal, which calls
15923         gtk_text_buffer_set_modified(), instead of just always emitting
15924         changed then calling set_modified() manually. I guess this is
15925         maybe more flexible. It seems logical.
15926
15927 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
15928
15929         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
15930         now.
15931
15932         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
15933
15934 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
15935
15936         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
15937         been marked static.
15938
15939 2000-11-02  Havoc Pennington  <hp@redhat.com>
15940
15941         * gtk/testgtk.c (create_labels): had a test backward
15942
15943         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
15944         fields, so the dest GC ends up with the correct clip origin, 
15945         etc. Fixes a bug where colored labels didn't redraw 
15946         properly.
15947
15948 2000-11-02  Alexander Larsson  <alexl@redhat.com>
15949
15950         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
15951         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
15952         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
15953         Add last argument to t_type_register_static call.
15954         
15955         * gdk/linux-fb/gdkdrawable-fb2.c:
15956         Add last argument to t_type_register_static call.
15957         export the get_image drawable virtual function.
15958
15959         * gdk/linux-fb/gdkimage-fb.c:
15960         Add last argument to t_type_register_static call.
15961         rename gtk_image_get to _gdk_fb_get_image and
15962         export it for use by gdkdrawable-fb2.
15963
15964         * gdk/linux-fb/gdkprivate-fb.h:
15965         export _gdk_fb_get_image.
15966
15967         * gdk/linux-fb/gdkselection-fb.c:
15968         Add new api call stubs.
15969
15970         * gtk/Makefile.am:
15971         Missing ( in linux-fb part.
15972
15973         * modules/linux-fb/Makefile.am:
15974         Must link with gdk_pixbuf or get unresolved symbol.
15975
15976 2000-11-01  Havoc Pennington  <hp@pobox.com>
15977
15978         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
15979         GTK_TYPE_TEXT_ITER and BOXED marshallers
15980
15981         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
15982
15983         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
15984         
15985         * gtk/gtk-boxed.defs: add GtkTextIter
15986
15987         * gtk/gtkmarshal.list: Add marshallers for text widget that 
15988         properly use OBJECT and BOXED
15989
15990 2000-11-01  Havoc Pennington  <hp@redhat.com>
15991
15992         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
15993
15994         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
15995         before returning it. 
15996         
15997 2000-11-01  Havoc Pennington  <hp@redhat.com>
15998
15999         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16000         Clip the rectangle to be rendered to the drawable, since
16001         get_from_drawable() requires a region within the drawable
16002
16003 2000-11-01  Havoc Pennington  <hp@redhat.com>
16004
16005         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
16006         from coordinates.
16007
16008 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
16009
16010         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
16011         it isn't NULL.
16012
16013 2000-11-01  Havoc Pennington  <hp@pobox.com>
16014
16015         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
16016         on a label
16017         (gtk_label_finalize): unref the attr list if any.
16018
16019         * gtk/testgtk.c (create_get_image): close test on second click
16020         (make_message_dialog): close dialog if it exists
16021
16022         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
16023
16024         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
16025         gdk-pixbuf
16026
16027         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
16028         from Pango markup format
16029         (gtk_label_set_markup_with_accel): ditto but with accelerator
16030         parsing
16031
16032         * gtk/gtkimage.c (gtk_image_expose): reformatting.
16033
16034         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
16035         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
16036         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
16037         call gdk_window_get_origin().
16038
16039         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
16040         implement GDK_PIXBUF_ALPHA_FULL
16041         
16042 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
16043
16044         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
16045         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
16046         g_signal_handlers_disconnect_matched to block/unblock and disconnect
16047         multiple handlers respectively, instead of only treating the
16048         first handler found (bug reported by owen).
16049
16050 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
16051
16052         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
16053
16054         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
16055
16056         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
16057         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
16058         gtk/gtktreeviewcolumn.h: Fixed inline docs.
16059
16060         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
16061         widget.  Needs writing someday.
16062
16063         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
16064         the docs.
16065
16066 2000-10-30  Havoc Pennington  <hp@redhat.com>
16067
16068         * gtk/gtktextview.h, gtk/gtktextview.c:
16069         Rename delete_at_cursor delete_from_cursor, and 
16070         move to move_cursor.
16071
16072 2000-10-30  Havoc Pennington  <hp@redhat.com>
16073
16074         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
16075         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
16076         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
16077         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
16078         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
16079         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
16080         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
16081         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
16082         gtktexttypes.h, gtktextview.c, gtktextview.h:
16083
16084         Massive reindentation and reformatting. Arg alignment and comments
16085         still need fixing in various places.
16086
16087 2000-10-30  Havoc Pennington  <hp@redhat.com>
16088
16089         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
16090         to be named insert_at_cursor and delete_at_cursor so C++ can
16091         handle them.
16092
16093 2000-10-28  Tor Lillqvist  <tml@iki.fi>
16094
16095         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
16096         to get a double directory separator in case the home directory
16097         ends with one. This would cause trouble especially on Windows,
16098         where the path will be confused with the syntax for an an UNC
16099         (network share) path \\server\share\path.
16100         (gtk_rc_add_initial_default_files): Ditto.
16101
16102 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
16103
16104         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
16105
16106         * gtk/gtktextview.c: Use correct marshallers.
16107
16108 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
16109
16110         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
16111         use new iter stuff, and added all the appropriate signals et al.
16112
16113         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
16114         code is internal to gtk only.
16115
16116 2000-10-28  Tor Lillqvist  <tml@iki.fi>
16117
16118         * gtk/gtk.def
16119         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
16120         glib-genmarshal etc.
16121
16122 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
16123
16124         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
16125         parallel builds.
16126
16127 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
16128
16129         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
16130
16131 2000-10-27  Robert Brady  <robert@suse.co.uk>
16132
16133         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
16134         en_GB (British), ia (Interlingua).
16135
16136 2000-10-26  Havoc Pennington  <hp@redhat.com>
16137
16138         * gtk/gtktextiter.c (my_strrstr): fix constness warning
16139
16140         Fixed output of:
16141         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
16142         
16143         * gtk/gtktextsegment.c (char_segment_new): rename
16144         (_char_segment_new_from_two_strings): rename
16145         (_toggle_segment_new): rename
16146         
16147         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
16148         (make_clipboard_widget): make it static
16149         (text_get_func): static
16150         (text_clear_func): static
16151
16152         * gtk/gtkcolorsel.c (adjustment_changed): make this function
16153         static
16154         (hex_changed): make it static
16155         (hsv_changed): make it static
16156         (opacity_entry_changed): make it static
16157
16158         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
16159         (toggle_segment_check_func): rename with _gtk
16160
16161         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
16162         (_widget_segment_new): rename
16163         (_widget_segment_add): rename
16164         (_widget_segment_remove): rename
16165         (_widget_segment_ref): rename
16166         (_widget_segment_unref): rename
16167
16168         * gtk/gtktextmark.c (_mark_segment_new): Rename
16169         _gtk_mark_segment_new   
16170
16171 2000-10-26  Havoc Pennington  <hp@redhat.com>
16172
16173         * gtk/gtkmarshal.list: add new marshallers used by the text widget
16174         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
16175         types
16176
16177         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
16178         marshaller types
16179
16180         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
16181         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
16182         license on these files.
16183
16184         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
16185         work.
16186
16187         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
16188         runtime random number different for each tree, instead of 
16189         a constant I made up.
16190
16191 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
16192
16193         * gtk/Makefile.am: buncha cleanups, kludged build sources
16194         dependencies with a Makefile: oldest-source-stamp dependancy
16195         for the moment. automake is really fighting us here, with
16196         intentionally not allowing user-defined rules or dependancies
16197         prior to it's -include $(DEP_FILES) statement. sucks rocks!
16198
16199         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
16200         to public headers. tehy have a comment stating that they are
16201         "semi-public" aren't included by gtk.h and if enums popup there,
16202         they can be /*< skip >*/-ed.
16203
16204         * gtk/gtktextlayout.h: 
16205         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
16206         added LGPL... <SIGH>
16207
16208 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
16209
16210         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
16211         GtkTreeIter.  Added iterators everywhere.
16212
16213         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
16214
16215         * gtk/gtktreeviewselection.c: Changed to use the iterators.
16216
16217         * gtk/gtktreestore.c: Changed to use the iterators.
16218
16219         * gtk/gtkliststore.c: Commented out the code.  Will convert to
16220         iterators tomorrow.
16221
16222         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
16223         iterators tomorrow.
16224
16225         * gtk/treestoretest.c: Changed to use iterators.
16226
16227         * demos/testgtk/main.c: Moved to use the new iterator system.
16228
16229 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
16230
16231         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
16232         localization misbehaviour.
16233
16234         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
16235         a useless type without copy/free.
16236
16237         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
16238         of GTK_TYPE_CTREE_NODE.
16239
16240 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
16241
16242         * gtk/gtksignal.c:
16243         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
16244         applicable.
16245
16246         * gtk/gtk-boxed.defs (GtkSelectionData): specify
16247         gtk_selection_data_copy and gtk_selection_data_free
16248         do GtkSelectionData work as params in signals.
16249
16250 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
16251
16252         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
16253         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
16254         couldn't they at least give it a non-standard name?
16255         
16256         * gtk/gtktextlayout.c: arg! yet another implementation of
16257         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
16258
16259         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
16260         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
16261         home. now i know this _is_ a conspiracy.
16262
16263         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
16264         ::state-changed.
16265
16266         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
16267         (gtk_accel_group_create_add): marshaller signature fixups.
16268
16269         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
16270         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
16271
16272         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
16273         anymore.
16274
16275 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
16276
16277         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
16278         due to the signal system changes, it wouldn't build currently. to
16279         be fixed soon.
16280
16281         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
16282
16283         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
16284         so it needs gtk_marshal_VOID__ENUM() instead of
16285         gtk_marshal_NONE__UINT().
16286
16287         * gdk/gdk*.c: adapted type registration functions.
16288
16289         * gtk/gtkbindings.c:
16290         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
16291         gone.
16292
16293         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
16294
16295         * gtk/gtkobject.c:
16296         (gtk_object_destroy):
16297         (gtk_object_shutdown): fixed recursion guards. basically we have to
16298         catch the case where any of GObject.shutdown() or gtk_object_destroy()
16299         is called during ::destroy, and avoid recursion there.
16300
16301         * gtk/gtktypeutils.c:
16302         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
16303         boxed_copy/boxed_free. this needs a more general solution based on a
16304         publically installed code-generator utility.
16305
16306         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
16307         glib's gobject has support for that now.
16308         define GtkSignalMarshaller in terms of GSignalCMarshaller.
16309
16310 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
16311
16312         * gtk/gtksignal.[hc]:
16313         * gtk/gtkmarshal.[hc]:
16314         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
16315         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
16316         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
16317         care of that.
16318
16319         * *.c: marshaller name fixups.
16320
16321         * gtk/gtkmarshal.list: added a comment briefing the format.
16322
16323 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
16324
16325         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
16326         compatibility macros here now. more specifically, most of
16327         the API is preserved (yes, _most_, nonwithstanding the
16328         following exceptions listed, the API is stil lHUGE ;)
16329         things that got removed completely:
16330         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
16331         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
16332         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
16333         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
16334         gtk_signal_remove_emission_hook().
16335         non-functional functions variants:
16336         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
16337         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
16338         not supported anymore.
16339         (gtk_signal_compat_matched): new internal function to aid
16340         implementation of the compatibility macros, it  provides
16341         functionality to block/unblock/disconnect handlers based
16342         on func/data.
16343
16344         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
16345
16346         * *.c: adaptions to new type registration API signatures.
16347
16348 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
16349
16350         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
16351
16352 2000-10-25  Robert Brady  <robert@suse.co.uk>
16353
16354         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
16355         gdk_property_delete): If window == NULL, assume the root window.
16356         (restoring the behaviour that was in 1.2).
16357         
16358         * gtk/testtext.c (save_buffer): Allow creation of new files when
16359         saving.
16360
16361         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
16362         calls to read().
16363
16364 2000-10-25  Tor Lillqvist  <tml@iki.fi>
16365
16366         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
16367
16368         * gdk/win32/gdkdrawable-win32.c
16369         * gdk/win32/gdkimage-win32.c
16370         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
16371         X11 backend.
16372
16373         * gdk/win32/gdkcc-win32.c
16374         * gdk/win32/gdkcolor-win32.c
16375         * gdk/win32/gdkfont-win32.c
16376         * gdk/win32/gdkinput-win32.c
16377         * gdk/win32/gdkmain-win32.c
16378         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
16379
16380 2000-10-24  Havoc Pennington  <hp@redhat.com>
16381
16382         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
16383         it a static function
16384
16385         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
16386         redraw text when a tag is applied to it.
16387
16388         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
16389         (gtk_text_tag_affects_nonsize_appearance): private functions to
16390         see if a tag requires various kinds of redraw/layout to be queued
16391         up.
16392
16393         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
16394
16395         * gtk/testtext.c (fill_example_buffer): Put the cursor 
16396         at the start of the buffer, so search works by default
16397
16398         * gtk/gtktextiter.c (lines_match): init match_start always
16399
16400         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
16401         function, get iter at a line + a byte index
16402
16403         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
16404         to set byte position within a line
16405         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
16406
16407 2000-10-23  Havoc Pennington  <hp@redhat.com>
16408
16409         * gtk/testtext.c: Re-enable the "find" dialog
16410
16411         * gtk/testgtk.c: Add test for gdk_drawable_get_image
16412         
16413         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
16414         the arguments to gdk_draw_drawable were in the wrong order
16415         (gdk_window_paint_init_bg): This function was ignoring the
16416         init_region, instead of clipping to it, so the entire backing
16417         pixmap was cleared on every begin_paint()
16418         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
16419         was in here again, the loop kept using the same GtkWindowPaint
16420         over and over.
16421         (gdk_window_begin_paint_region): Fix a bug where we had two
16422         x_offset instead of x_offset and y_offset
16423
16424         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
16425         before we get the image.
16426         (gdk_draw_drawable): get the composite before we draw the drawable.
16427         (gdk_drawable_real_get_composite_drawable): default
16428         get_composite_drawable implementation that returns the drawable 
16429         itself
16430
16431         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
16432         get_composite_drawable virtual function
16433
16434         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
16435         list-walking bug
16436
16437         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
16438         make this work if the source drawable is a GdkDrawableImplX11
16439         instead of a public drawable type. This is really broken; the
16440         problem is that GdkDrawable needs a virtual method get_xid(), but
16441         of course that doesn't work in practice. Enter RTTI.
16442
16443         Also, improve mismatched depth message.
16444
16445         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
16446         GdkPixmap
16447
16448         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
16449         install _gdk_x11_get_image as our implementation of get_image
16450         
16451         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
16452         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
16453
16454         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
16455         gdk_drawable_get_image
16456
16457         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
16458
16459         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
16460         get_image
16461
16462         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
16463         trailing semicolon after for loop
16464
16465 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
16466
16467         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
16468         where font_desc for widget's context lagged widget's font_desc by
16469         one step.
16470
16471 2000-10-22  Tor Lillqvist  <tml@iki.fi>
16472
16473         * gdk/win32/gdkgc-win32.c
16474         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
16475
16476         * gtk/makefile.mingw.in
16477         * gtk/gtk.def: Updates.
16478
16479         * gtk/testgtk.c: sleep() is called _sleep in MS's C
16480         library.
16481
16482         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
16483
16484         * gtk/makefile.msc: Remove
16485
16486         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
16487
16488         * gtk/Makefile.am: Add it.
16489
16490         * configure.in: Generate it.
16491
16492         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
16493         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
16494         something even if not implemented, to satisfy picky MSVC.
16495
16496         Patches by Hans Breuer:
16497         
16498         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
16499         SetBkMode() and SetTextAlign() before calling
16500         pango_win32_render().
16501
16502         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
16503         Set hcliprgn to NULL after destroying it.
16504         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
16505
16506         * gdk/win32/gdkgeometry-win32.c
16507         (_gdk_windowing_window_queue_antiexpose): More effective
16508         implementation.
16509
16510         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
16511         depth as default, not the visual's.
16512
16513         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
16514         against empty title.
16515
16516         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
16517         IMAGE_PRIVATE_DATA.
16518
16519         * gdk/win32/gdkimage-win32.c: Use it.
16520
16521 2000-10-22  Robert Brady  <robert@suse.co.uk>
16522
16523         * configure.in: Check for bind_textdomain_codeset
16524
16525         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
16526         present, make use of it.
16527
16528         Add a translatable string "default:LTR" which, if translated
16529         to "default:RTL", will cause the default direction to be
16530         Right-to-Left.
16531
16532         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
16533         direction if marked as flippable.
16534
16535         * gtk/gtkhscale.c: Mark widget as flippable.
16536         
16537 2000-10-04  Havoc Pennington  <hp@redhat.com>
16538
16539         * gtk/testgtk.c (create_buttons): create some stock buttons
16540         with the default accel group
16541         (create_image): test some new GtkImage features
16542         (make_message_dialog): test GtkMessageDialog
16543         (create_modal_window): fix someone's bizzarro indentation
16544
16545         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
16546         GTK_WIN_POS_CENTER_ON_PARENT. 
16547         Add "destroy with parent" setting, which means the window goes
16548         away with its transient parent.
16549         (gtk_window_get_default_accel_group): get the default accel group
16550         for the window.
16551         (gtk_window_set_destroy_with_parent): set/unset destroy with
16552         parent flag
16553         (gtk_window_read_rcfiles): invalidate icon set caches
16554         after reloading rcfiles 
16555
16556         * gtk/gtkenums.h (GtkWindowPosition): add
16557         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
16558         on its parent window when the dialog is mapped for the first time.
16559
16560         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
16561         a simple message dialog class
16562         
16563         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
16564         handler to emit response signal, and maybe later it would
16565         honor a hide_on_delete flag - though that isn't there yet.
16566         Set border width on the vbox to 2, so we get some padding.      
16567         Use a button box for the action area.
16568         (gtk_dialog_key_press): synthesize a delete event if Esc
16569         is pressed and the GtkWidget key press handler didn't 
16570         handle the escape key.
16571         (gtk_dialog_new_with_buttons): new function creates a dialog
16572         with some default buttons in it.
16573         (gtk_dialog_add_action_widget): add an activatable widget
16574         as a button in the dialog - you can also add a non-activatable
16575         widget by accessing the action area directly.
16576         (gtk_dialog_add_button): add a simple button - stock ID or 
16577         label - to the action area
16578         (gtk_dialog_response): emit response signal
16579         (gtk_dialog_run): block waiting for the dialog, return 
16580         the response. Override normal delete_event behavior, so that 
16581         delete_event does nothing inside gtk_dialog_run().
16582
16583         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
16584         emitted when an action widget is clicked or the dialog gets
16585         delete_event
16586
16587         * gtk/gtk.h: add gtkmessagedialog.h
16588
16589         * gtk/Makefile.am: add gtkmessagedialog.[hc]
16590
16591 2000-10-18  Havoc Pennington  <hp@redhat.com>
16592
16593         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
16594         where any number of empty lines would get skipped
16595
16596         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
16597         edge.
16598
16599         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
16600         warning about invalid iterators (explain more thoroughly)
16601         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
16602
16603         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
16604         big
16605
16606         * demos/*.c: Add error handling
16607
16608         * gtk/gtktextbuffer.c: don't modify const iterators
16609
16610         * gtk/gdk-pixbuf-loader.c: Add full error handling here
16611
16612         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
16613         on file load
16614
16615         * gtk/gtkiconfactory.c: Update to reflect addition of error
16616         handling to gdk-pixbuf loaders
16617
16618 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
16619
16620         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
16621         move to new modularized testgtk.
16622
16623 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
16624
16625         * gtk/gtktreeview.c: Draw the arrows correctly.
16626
16627         * gtk/gtktreemodel.c: Added user docs.
16628
16629         * gtk/gtk.h: remove gtktreedatalist.h.
16630
16631         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
16632         parent when generating my type.
16633
16634         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
16635         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
16636
16637 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
16638
16639         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
16640         GtkTreeModel from object to interface.
16641
16642 2000-10-16  Havoc Pennington  <hp@redhat.com>
16643
16644         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
16645         compilation
16646
16647 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
16648
16649         * gtk/gtktreeselection.c: Add API documentation to all public
16650         functions.
16651
16652         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
16653         functions.
16654
16655 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
16656
16657         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
16658         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
16659         docs to all public functions.
16660
16661         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
16662         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
16663         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
16664         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
16665         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
16666         issue.
16667
16668 2000-10-14  Robert Brady  <robert@suse.co.uk>
16669
16670         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
16671
16672 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
16673
16674         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
16675         values other then G_TYPE_STRING.
16676         * gtk/gtktreeselection.c: Minor commenting updates.
16677         * gtk/gtktreeview.c: Format updates.
16678
16679 2000-10-09  Tor Lillqvist  <tml@iki.fi>
16680
16681         * README.win32: Update.
16682
16683         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
16684         lines that had been deleted by mistake (?).
16685
16686         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
16687         also the case fg==white and bg==black (but still not randomly
16688         coloured cursors). Thanks to Wolfgang Sourdeau.
16689
16690         * gdk/win32/*.c: Silence gcc -Wall.
16691
16692         * gtk/gtk.def: Add missing entry points.
16693
16694         Fixes by Hans Breuer:
16695
16696         * gdk/makefile.msc
16697         * gdk/win32/makefile.msc: Update.
16698
16699         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
16700         some MSVC thing, presumably), cause breakpoint on failures. Add
16701         GDK_NOR case. Call g_log_set_always_fatal.
16702
16703         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
16704         should be pased by reference.
16705         
16706         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
16707         
16708         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
16709
16710         * gdk/win32/gdkevents-win32.c
16711         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
16712
16713         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
16714         implementation object.
16715
16716         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
16717         not just windows.
16718         
16719         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
16720         Use the wrapper object.
16721         
16722 2000-10-06  Havoc Pennington  <hp@redhat.com>
16723
16724         * Makefile.am (SRC_SUBDIRS): contrib subdir
16725
16726         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
16727         so it can be used in Xlib version
16728
16729         * demos/testpixbuf.c (update_timeout): error checking from 1.0
16730         tree
16731
16732         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
16733         change from 1.0 tree that returns first frame of animation
16734         if the loaded file is an animation.
16735
16736         * contrib: add new directory to hold stuff that comes with GTK+
16737         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
16738         
16739         * configure.in: add contrib/*
16740
16741 2000-10-05  Havoc Pennington  <hp@redhat.com>
16742
16743         * demos/testpixbuf-save.c: add pixbuf save test
16744
16745         * demos/Makefile.am: add testpixbuf-save.c
16746
16747 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
16748
16749         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
16750         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
16751         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
16752         * gtk/gtktreeselection.[ch]: Replaced
16753         "node_selected"/"node_unselected" signal with "selection_changed"
16754         signal.
16755
16756 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
16757
16758         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
16759         tree widget.
16760
16761 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
16762
16763         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
16764         drawing.
16765
16766 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
16767
16768         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
16769         Move list pointer forwards before removing item from
16770         list. (Crash reported by Salmaso Raffaele)
16771
16772         * gdk/gdkwindow.h: Remove spurious trailing ,
16773
16774         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
16775         dependencies on uninstalled libraries, sorry folks.
16776
16777 2000-10-04  Havoc Pennington  <hp@redhat.com>
16778
16779         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
16780         gtk/gtkiconfactory.c: Fix copyrights    
16781
16782         * demos/testpixbuf.c: add inline pixbuf test
16783         
16784 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
16785
16786         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
16787         Add gdk_window_iconify.
16788
16789         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
16790         (gdk_window_set_geometry_hints): Add win_gravity
16791         to geometry structure.
16792
16793         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
16794         Implement _NET_WM_PING.
16795
16796         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
16797         Set _NET_WM_PID on the client leader.
16798
16799         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
16800         Handle UTF-8 better.
16801
16802         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
16803         UTF-8 better, set _NET_WM_NAME as well. Only set
16804         icon name if it hasn't previously been explicitely 
16805         set.
16806
16807 2000-10-03  Havoc Pennington  <hp@redhat.com>
16808
16809         * gtk/testtextbuffer.c: clean up trailing whitespace,
16810         add extensive tests for tag toggle iteration.
16811         
16812         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
16813         distance
16814
16815         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
16816         optimize case where the tag root is on level 1
16817         (gtk_text_line_previous_could_contain_tag): attempt to implement
16818         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
16819         functionality
16820
16821         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
16822         Implement this, though not very efficiently.
16823
16824         * gtk/gtktextiterprivate.h: reformat
16825
16826         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
16827         iterator
16828
16829         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
16830         this to properly revalidate the iterators.
16831
16832         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
16833         properly at the end of the line (and therefore on empty lines)
16834
16835         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
16836         maybe we should return a value...
16837
16838 2000-10-03  Tor Lillqvist  <tml@iki.fi>
16839
16840         * config.h.win32: Guard definition of alloca(). glib.h now handles
16841         that.
16842
16843         * gdk/gdk.def
16844         * gtk/gtk.def: Add new entry points.
16845
16846         Changes just to make GTK+ build without errors on Win32. No hope
16847         of it working in its current state, though...:
16848         
16849         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
16850         some functions from the X11 backend, just to make GTK+ build.
16851
16852         * gdk/makefile.mingw.in
16853         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
16854         number. Add new object files.
16855
16856         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
16857         GetMessageTime to get timestamp (where on X11 uses
16858         gdk_x11_get_server_time()).
16859
16860 2000-10-02  Havoc Pennington  <hp@pobox.com>
16861
16862         * gtk/gtktextview.c: text_window_* weren't static and should have
16863         been.
16864         Start work on child widgets; not yet complete, syncing to 
16865         office computer.
16866
16867         * gtk/gtktextchild.h: change this to contain a public interface,
16868         starting work on child interfaces.
16869         * gtk/gtktextchildprivate.h: move private interfaces here
16870
16871         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
16872
16873         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
16874         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
16875         gtk/gtktextmark.c: copyright notices
16876
16877         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
16878         internal functions      
16879
16880         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
16881         internal function
16882
16883         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
16884         Reformatting    
16885
16886 2000-09-30  Havoc Pennington  <hp@pobox.com>
16887
16888         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
16889         NULL start/end pointers
16890
16891         * gtk/gtktextbuffer.c: Write some docs
16892         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
16893         NULL, so you can just check whether there's a selection.        
16894
16895         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
16896         cleanup_line or segments_changed ourselves, it gets done 
16897         in unlink_segment
16898
16899         * gtk/gtktextmark.h:
16900         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
16901         
16902         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
16903
16904         * gtk/gtktextmark.c: delete some more old Tk cruft
16905
16906         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
16907         mark before removing it, so we can emit MARK_DELETED with a valid
16908         pointer.
16909         (gtk_text_buffer_mark_set): hold ref across signal emission
16910
16911         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
16912         whining about attempts to delete special marks
16913
16914         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
16915         underscore, since it's internal.
16916
16917         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
16918         now implemented in terms of iterators in gtktextiter.h
16919
16920         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
16921         New function, destructively sets contents of buffer. Also 
16922         a convenient way to clear the buffer by setting text to ""
16923
16924         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
16925         multiline string literal
16926
16927         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
16928         text changes.
16929
16930         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
16931         is not dereferenceable
16932         (gtk_text_iter_forward_lines): fix return value
16933
16934 2000-09-29  Havoc Pennington  <hp@redhat.com>
16935
16936         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
16937
16938         * gtk/gtktextview.c: Implement drag thresholding; change functions 
16939         that set border window size to have nicer name
16940         (gtk_text_view_mark_set_handler):  Fix this to have the 
16941         right signature.
16942
16943         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
16944
16945         * gtk/testtext.c: Update with API changes, put line numbers on 
16946         both sides.
16947         
16948         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
16949         with this
16950
16951         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
16952         pixbuf; delete a big block of #if 0 Tk code
16953
16954         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
16955         insert_pixmap with insert_pixbuf
16956
16957 2000-09-29  Martin Baulig  <baulig@suse.de>
16958
16959         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
16960         confusion with the GdkPixbuf of the GNOME 1.x platform.
16961
16962 2000-09-29  Havoc Pennington  <hp@pobox.com>
16963
16964         * gtk/gtktextview.c: Implement the side windows.
16965
16966         * gtk/testtext.c: Implement simple line numbering in the 
16967         left side window; seems to make scrolling sloooow. Oops.
16968         Also, cursor blink is for some reason causing redraws
16969         of the line numbers. Should investigate...
16970
16971 2000-09-28  Havoc Pennington  <hp@redhat.com>
16972
16973         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
16974         scrolling child windows, and draw focus rectangle properly.
16975         
16976         (gtk_text_view_buffer_to_window_coords):
16977         Coordinate transformation to deal with all these freaking windows
16978         and offsets
16979         (gtk_text_view_window_to_buffer_coords): transform the other way
16980
16981         * gtk/testtext.c (create_buffer): Update to match Pango API change
16982
16983         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
16984         anonymous tags
16985         (foreach_unref): don't emit remove signal from finalize, just
16986         set tag's parent to NULL
16987
16988 2000-09-26  Havoc Pennington  <hp@redhat.com>
16989
16990         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
16991         Fix some warnings       
16992
16993 2000-09-26  Havoc Pennington  <hp@redhat.com>
16994
16995         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
16996         headers into the private header list
16997
16998         * Makefile.am (pkgconfig_DATA): install pkg-config files
16999
17000         * configure.in: add pkg-config files
17001
17002         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
17003
17004         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
17005         outstanding icon caches on theme change.
17006
17007         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
17008         important types:
17009
17010         (GtkIconSource): Specification for creating a pixbuf 
17011         appropriate for a direction/state/size triplet from 
17012         a source pixbuf or filename
17013
17014         (GtkIconSet): List of GtkIconSource objects that are used to
17015         create the "same" icon (e.g. an OK button icon), and cache for
17016         rendered icons
17017
17018         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
17019         up the icon set for a given stock ID.  GTK maintains a stack of
17020         GtkIconFactory to search, and applications or libraries can add
17021         additional icon factories on top of the stack
17022         
17023         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
17024         the set of GtkIconSource specified for a given stock ID into 
17025         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
17026         RcStyle, under the specified stock ID.
17027
17028         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
17029         render_icon used to derive a GdkPixbuf from a GtkIconSource.
17030         This allows people to theme how prelight, insensitive, etc. are
17031         done.
17032
17033         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
17034         icon factories for a style, and return the resulting 
17035         icon set if any.
17036
17037         (gtk_style_render_icon): Render an icon using the render_icon 
17038         method in the GtkStyleClass.
17039
17040         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
17041         Use the style for a given widget to look up a stock ID, get the
17042         icon set, and render an icon using the render_icon method 
17043         of the style
17044
17045         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
17046         (contains information about a stock item), the built-in stock item
17047         IDs, and functions to add/lookup stock items.
17048
17049         * gtk/stock-icons/*: Stock icons that come with GTK
17050
17051         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
17052         a button based on a GtkStockItem
17053         (gtk_button_new_accel): Takes a uline string and accel group, and
17054         installs the accelerator.
17055
17056         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
17057         image-display widget.
17058
17059 2000-09-25  Havoc Pennington  <hp@redhat.com>
17060
17061         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
17062
17063         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
17064         Fix a bug when removing node data, we didn't properly 
17065         re-splice the linked list after removing the data.
17066
17067         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
17068         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
17069
17070         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
17071
17072         * gtk/gtktextlayout.c (set_para_values): Set tab array 
17073         for the layout from the GtkTextTag.
17074
17075         * gtk/gtktexttypes.h: delete tab and search cruft, 
17076         remove g_convert() in favor of GLib version
17077
17078         * gtk/gtktexttypes.c: remove tab implementation from here,
17079         move to Pango
17080
17081         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
17082         tab stuff using new PangoTabArray from Pango
17083
17084         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
17085         unused border_width stuff
17086
17087 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
17088
17089         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
17090         glib) and now useless utf_to_latin1() latin1_to_utf()
17091
17092         * gtk/gtktextview.[ch]: Change ::move_insert and
17093         ::delete_text action signals to ::move and ::delete;
17094         create the signals with the right enumeration type,
17095         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
17096         C-v bindings, change Home, End to move to beginning/end
17097         of line, Add C-Home C-End to move to beginning/end
17098         of buffer. Change ::cut_text to ::cut_clipboard, etc;
17099         combine ::scroll_text into ::move; use new GtkSelectionData
17100         functions to simplify DND text handling.
17101         
17102         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
17103         deletion enumerations here, rename enumeration values to 
17104         be consistently plural.
17105
17106         * gtk/gtktextbuffer.c: Use new clipboard interfaces
17107         for cut/copy/paste and primary selection.
17108
17109         * gtk/gtktextbuffer.[ch]: Remove excess time and
17110         'interactive' arguments from cut/copy/paste;
17111         rename cut to cut_clipboard, etc; remove
17112         gtk_text_buffer_get_clipboard_contents().
17113
17114         * gtk/gtktextlayout.[ch]: Add 
17115         gtk_text_layout_move_iter_to_line_end() to move the iter to 
17116         line ends.
17117
17118         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
17119         Functions to set or get a UTF-8 string on the selection
17120         data.
17121
17122         * gtk/gtkclipboard.[ch]: New, simplified selection handling
17123         interfaces.
17124
17125         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
17126         created widgets - one of these is useless if we don't.
17127
17128         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
17129         a public function clear all targets registered for the
17130         widget.
17131
17132         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
17133         Never call gtk_widget_realize() - that was just asking
17134         for bizarre side-effects.
17135
17136         * gtk/gtkselection.c (gtk_selection_owner_set): Call
17137         gdk_selection_owner_set even if the widget is the
17138         same so that we reliably update the timestamp on
17139         the server.
17140
17141         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
17142         gdk_x11_get_server_time() function.
17143         
17144         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
17145         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
17146         Add some tricky filtering on serial numbers for
17147         selection clear events to fix up long-standard
17148         race condition FIXME's in gtkselection.c.
17149
17150         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
17151         routines to convert from utf8 to compound text or
17152         STRING and from a text property to UTF-8.
17153
17154         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
17155         a convenience function gdk_get_current_event_time().
17156
17157         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
17158         and free selection_data->data properly
17159
17160 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
17161
17162         * gtk/gtkthemes.c: Remove some unecessary includes.
17163
17164 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
17165
17166         * gtk/gtktextdisplay.c
17167         * gtk/gtktextlayout.c
17168         * gtk/gtktexttag.c
17169         * gtk/gtktexttag.h
17170         * gtk/testtext.c: Change the overstrike property to strikethrough,
17171         to closer match pango.
17172
17173 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
17174
17175         * gtk/gtktextview.c: Fix up visibility so that focus,
17176         cursor_visible and blink interact properly.  Reenable cursor blink
17177         which had been roughly disabled. Make blink and focus
17178         properly per-view.
17179
17180         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
17181         Add a flag for whether to display insertion cursor and
17182         a function to set the flag.
17183
17184         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
17185         get_line_y() to get_line_yrange(), to be a bit more generally
17186         useful.
17187
17188 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
17189
17190         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
17191           do stop_navigating_submenu, to clear last timeout properly.
17192           Also in gtk_menu_motion_notify move ignore_enter above
17193           the conditional to make it always happen as suggested by Owen
17194
17195 2000-09-07  Tor Lillqvist  <tml@iki.fi>
17196
17197         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
17198
17199         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
17200         w32api headers.
17201
17202         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
17203         declarations.
17204
17205         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
17206         (gdk_win32_get_colormap): A line had been deleted by mistake.
17207
17208         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
17209         (gdk_event_translate): Handle more virtual keycodes to be able to
17210         generate GDK events for Control-comma, Control-period, etc.
17211
17212         * gtk/gtk.def: Add some missing entry points.
17213
17214 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
17215
17216         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
17217         Doc comment fixing. (Mostly non-matching parameter names.)
17218
17219         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
17220         comments a little to avoid looking like a doc comment.
17221
17222         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
17223         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
17224         conversions be changed to GError?)
17225
17226         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
17227         Move private #defines into .c file.
17228
17229         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
17230         order of argument addition, remove duplicates.
17231
17232         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
17233         parent class is FrameClass, not BinClass.
17234
17235         * gtk/gtk.h: Add gtkinvisible, which was missing.
17236         (It's occasionalyl useful for client apps, if seldom.)
17237
17238         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
17239         #define.
17240
17241 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
17242
17243         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
17244         coordinates when creating window, instead of GDK-space
17245         coordinates. (Avoid BadValue on too large windows.)
17246
17247 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
17248
17249         * configure.in (use_mmx_asm): Remove conftest* after use along the
17250         lines of AC_TRY_COMPILE.        
17251         
17252         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
17253         of g_dirname, which is deprecated.
17254         (gtk_rc_parse_any): Removed calls to
17255         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
17256
17257         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
17258         Removed calls to g_hash_table_{freeze,thaw}, as they are
17259         deprecated now.
17260
17261         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
17262         instead of g_basename.
17263         
17264 2000-09-04 Elliot Lee <sopwith@redhat.com>
17265         
17266         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
17267         ANSI warning.
17268
17269 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
17270
17271         * gtk/gtkwidget.h:  Add some documenting comments about 
17272           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
17273           just as owen said on irc.
17274
17275         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
17276           set HAS_DEFAULT.  Only set it if there isn't another window
17277           holding it (a focus window which RECEIVES_DEFAULT) and only unset
17278           it if the widget is not the focused window with RECEIVES_DEFAULT.
17279           This fixes weird double default bugs in dialogs which has things
17280           call gtk_window_set_default at times.
17281
17282 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
17283
17284         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
17285         Nils Barth and David Santiago to improve submenu
17286         navigation. The patch does this by creating a triangular
17287         region from the point where the pointer leaves the
17288         menu to the submenu.  While the pointer is in
17289         that region and a timeout has not expired, events 
17290         that would cause the active submenu to change are
17291         ignored.
17292
17293 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
17294
17295         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
17296         moving a toplevel window immediately after sizing it would
17297         result in it being sized back to the old size since 
17298         impl->width, impl->height aren't updated until we hear
17299         back from the server. There is still a (longstanding) bug
17300         here that gdk_window_get_size() will give the wrong size
17301         until we do hear back.
17302
17303 2000-08-31  Havoc Pennington  <hp@redhat.com>
17304
17305         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
17306         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
17307         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
17308         Rename GtkTextStyleValues to GtkTextAttributes
17309
17310 2000-08-31  Havoc Pennington  <hp@pobox.com>
17311
17312         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
17313         for rapid testing whether an iterator is the end iterator
17314         (gtk_text_btree_new): init end line cache
17315         (gtk_text_line_is_last): use fast cached line to 
17316         see if we're the last line.
17317         (get_last_line): use cached line here too, should 
17318         speed up some random unrelated code.
17319         
17320 2000-08-30  Havoc Pennington  <hp@pobox.com>
17321
17322         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
17323         signals.
17324
17325         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
17326         delete_text signals. This allows the signals to be used for
17327         implementing undo.
17328
17329         * gtk/gtktextbuffer.c: Change signal handler signatures; 
17330         provide "interactive" argument when emitting insert_text or
17331         delete_text signal.
17332         
17333 2000-08-30  Havoc Pennington  <hp@pobox.com>
17334
17335         * gtk/gtktextbuffer.c: Docs
17336
17337 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
17338
17339         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
17340         from switch statements, since Tor removed the enumeration
17341         value.
17342         
17343         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
17344         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
17345
17346 2000-08-29 Elliot Lee <sopwith@redhat.com>
17347         * */*.h: Use G_GNUC_CONST.
17348
17349 2000-08-27  Havoc Pennington  <hp@pobox.com>
17350
17351         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
17352         minor indentation fixes, inserted some FIXME about stuff I
17353         realized was broken while documenting it.
17354         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
17355         GTK convention  
17356
17357 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
17358
17359         * gtk/testgtk.c (create_styles): Fix double free of
17360         font desc.
17361
17362 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
17363
17364         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
17365         
17366         * gtk/testgtk.c (create_styles): Add a test for modifying
17367         the style through gtk_widget_modify_*.
17368
17369         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
17370         a function to get the current modifier style.
17371
17372         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
17373         of the passed in GtkRcStyle instead of ref'ing it.
17374
17375         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
17376
17377 2000-08-20  Tor Lillqvist  <tml@iki.fi>
17378
17379         * gdk/gdkimage.h
17380         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
17381         shared memory image+pixmap GdkImage type, or
17382         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
17383         I am dropping that.
17384
17385         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
17386         actually call gtk_init_abi_check(), passing also
17387         sizeof(GtkWindow). Ditto for gtk_init_check(). 
17388
17389         * gtk/gtk.def
17390         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
17391         New functions, used to check that the GTK+-using code has been
17392         compiled using the correct compiler and switches. In particular,
17393         with gcc one has to use the -fnative-struct switch as GTK+ is
17394         compiled with that.
17395
17396 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
17397
17398         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
17399         ->prev fields when merging lists. (Found simultaneously
17400         by Pawel Salek and Jakub Jelinek)
17401
17402 2000-08-12  Tor Lillqvist  <tml@iki.fi>
17403
17404         * gdk/gdk.def
17405         * gtk/gtk.def: Add missing entries.
17406
17407         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
17408         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
17409
17410         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
17411         function. Dummy implementation at this point.
17412
17413         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
17414         rules. Undefine GTK_COMPILATION when compiling the test programs.
17415         
17416         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
17417
17418 2000-08-11  Tor Lillqvist  <tml@iki.fi>
17419
17420         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
17421         to convert back and forth from UTF-8 and the "system" (or "current
17422         locale") charset when necessary. Indentation/spacing cleanup.
17423
17424 2000-08-10  Havoc Pennington  <hp@redhat.com>
17425
17426         * Makefile.am (snapshot): Change the format of the snapshot
17427         version to match glib
17428
17429         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
17430         from EXTRA_DIST since it doesn't seem to exist
17431
17432 2000-08-10  Tor Lillqvist  <tml@iki.fi>
17433
17434         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
17435         version of the directory name (not the UTF-8 one) when building
17436         the path name to stat().
17437
17438 2000-08-03  Elliot Lee  <sopwith@redhat.com>
17439
17440         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
17441         PANGO_ATTR_SHAPE set.
17442
17443 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
17444
17445         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
17446         Peter Osterlund to simplify the code while keeping the
17447         functionality the same.
17448
17449 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
17450
17451         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
17452         is_viewable() test further inside the function, since removing the 
17453         window from the redraw list without clearing ->update_area
17454         was also very broken.
17455
17456 2000-08-02  Tor Lillqvist  <tml@iki.fi>
17457
17458         * configure.in: Check for <unistd.h>.
17459
17460 2000-08-01  Martin Baulig  <baulig@suse.de>
17461
17462         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
17463         to display the message that this is a development version of GTK+.
17464
17465 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
17466
17467         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
17468         was depending on widget->allocation instead of the width of text_area,
17469         which was incorrect for subclasses like GtkSpinButton.
17470
17471         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
17472         with width == 1 tests that should be width == -1.
17473
17474 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
17475
17476         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
17477         (broken, Elliot, every single window blank on X) custom code with call
17478         to gdk_window_is_viewable() which a) prevents code duplicate and
17479         b) works. 
17480
17481 2000-07-31  Elliot Lee  <sopwith@redhat.com>
17482
17483         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
17484         to get the GDK_PARENT_ROOT() macro to work.
17485         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
17486         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
17487         of, windows that aren't shown.
17488         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
17489         pointer grab stuff.
17490
17491 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
17492
17493         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
17494           s/gtk_main_iteration/g_main_iteration/
17495
17496           Did this already in change:
17497                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
17498           don't know how it got reverted.
17499
17500 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
17501
17502         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
17503         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
17504
17505         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
17506         not gdk_pixbuf.
17507
17508 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
17509
17510         * configure.in,po/{sp,sr}.po: Added Serbian files
17511
17512 2000-07-30  Tor Lillqvist  <tml@iki.fi>
17513
17514         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
17515
17516         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
17517         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
17518         GIOChannel implementation.
17519
17520         * gdk/win32/gdkinput.c
17521         * gdk/win32/gdkpango-win32.c: Update license name here, too.
17522
17523         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
17524         definition to match prototype.
17525
17526         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
17527
17528 2000-07-27  Elliot Lee  <sopwith@redhat.com>
17529
17530         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
17531         function, to allow handling image formats that cannot be detected
17532         by looking at content alone.
17533
17534 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
17535
17536         * docs/tutorial/*.gif *.jpg *.eps
17537           Update these to the same look-n-feel.
17538           Why does including images in DocBook suck so badly?
17539
17540 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
17541
17542         * gtk/gtktable.c: applied patch from Phil Thompson
17543         <phil@river-bank.demon.co.uk> that enables space settings for
17544         the last row/columns as well.
17545
17546 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
17547
17548         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
17549         updates the license headers to the GNU Lesser General Public License,
17550         as well as updating the copyright year to 2000.
17551
17552 2000-07-26  Robert Brady  <rwb197@zepler.org>
17553
17554         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
17555           and po/Makefile, was installing and looking for them under gtk20
17556           and gtk2 respectively.
17557
17558 2000-07-25  Havoc Pennington  <hp@redhat.com>
17559
17560         * gtk/testtext.c: Comment out some stuff that depends on the rest
17561         of my patches.
17562
17563 2000-07-25  Havoc Pennington  <hp@redhat.com>
17564
17565         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
17566         buffer
17567
17568 2000-07-25  Havoc Pennington  <hp@redhat.com>
17569
17570         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
17571         widget changes.
17572
17573         * gtk/gtktextview.h: To be consistent with usage of "line"
17574         throughout the API to mean "newline-terminated thingy", change
17575         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
17576         to MOVEMENT_LINE.
17577
17578         (GtkTextView): Add flags for default editability, and whether to
17579         show the cursor. Add functions to get/set that. Add 
17580
17581         (gtk_text_view_get_iter_location): new function
17582
17583         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
17584         gtktextlayout.h
17585         (g_convert): Add g_convert temporarily, will go in glib in a bit
17586         
17587         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
17588         GtkTextTagTableForeach instead of brokenly using GHFunc.
17589         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
17590
17591         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
17592         moved to public header.
17593
17594         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
17595         "invisible", since "elide" was a bad name.
17596         (gtk_text_tag_get_priority): Added
17597
17598         (GtkTextStyleValues): put this in public header, along with
17599         functions to use it.
17600
17601         * gtk/gtktextmarkprivate.h: Include more headers, since we no
17602         longer include gtktextbtree.h.
17603
17604         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
17605         gtk_text_mark_deleted
17606
17607         * gtk/gtktextlayout.h: Don't include the "really private" headers,
17608         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
17609         to make this possible. Now we only need to install
17610         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
17611         (However the Makefile.am isn't changed yet because of the
17612         logistics of merging gtk-hp-patches piecemeal)
17613
17614         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
17615         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
17616         gtk_text_iter_get_line is now used in the public API for a
17617         different purpose.
17618
17619         * gtk/gtktextiter.h: Clean up function names to be more
17620         consistent. Always call char offset "offset" and byte index
17621         "index". A "line" is always a line number. 
17622
17623         (gtk_text_iter_is_last): new function, more efficient than 
17624         the existing way to check
17625         (gtk_text_iter_is_first): new function, also more efficient
17626
17627         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
17628
17629         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
17630         gtk_text_iter_forward_char, etc.
17631
17632         (gtk_text_iter_forward_to_tag_toggle): Renamed from
17633         forward_find_tag_toggle, since this isn't a linear search
17634
17635         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
17636
17637         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
17638         New functions, search for a buffer substring.
17639
17640         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
17641         interactive and default editable (since we need to store that info
17642         until we receive the selection data).
17643
17644         Remove all the _at_char and at_line etc. versions of functions;
17645         only have iterator versions.
17646
17647         Add _interactive() versions of functions, that consider the
17648         editability of text. (FIXME add interactive flag to the 
17649         insert/delete signals per Darin's suggestion)
17650
17651         (gtk_text_buffer_get_tag_table): new function, demand-creates the
17652         tag table if necessary
17653
17654         Remove declaration of gtk_text_buffer_get_iter_from_string
17655
17656         (_gtk_text_buffer_get_btree): private/internal function, added.
17657         
17658
17659         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
17660         (gtk_text_line_is_last): new function
17661
17662 2000-07-25  Havoc Pennington  <hp@redhat.com>
17663
17664         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
17665         using GtkProgressBar. See Changes-2.0.txt for details.
17666
17667         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
17668         "pulse_step" which are the equivalent of
17669         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
17670         Implement new API.
17671         
17672         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
17673         (use_text_format) to mark whether text set on the progress bar is
17674         a format string. Deprecate entire GtkProgress interface.
17675
17676         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
17677         (gtk_progress_build_string): make this a no-op if use_text_format
17678         is FALSE
17679
17680         * docs/Changes-2.0.txt: Describe progress bar changes.
17681
17682 2000-07-25  Tor Lillqvist  <tml@iki.fi>
17683
17684         * Makefile.am: Include the build directory.
17685
17686         * configure.in: Generate build/Makefile, build/win32/Makefile,
17687         gdk/, gdk/win32/, and gtk/makefile.mingw.
17688
17689         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
17690         Add GETTEXT_PACKAGE.
17691         
17692         * gdk/gdk.def
17693         * gtk/gtk.def: Updates.
17694
17695         * gdk/gdkfont.h
17696         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
17697         need them any longer.
17698
17699         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
17700
17701         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
17702         PANGOWIN32_LIBS and gdk_pixbuf.
17703
17704         * gdk/win32: Compiles, but no doubt doesn't work at all.
17705
17706         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
17707
17708         * gdk/win32/gdkinput.c: New file, temporarily.
17709         
17710         * gdk/win32/gdkinput-win32.h: New file
17711
17712         * gdk/win32/gdkinputprivate.h: Remove.
17713
17714         * gdk/win32/gdkpango-win32.c: New file.
17715
17716         * gtk/makefile.mingw.in: New file
17717
17718         * gtk/makefile.cygwin: Removed
17719         
17720         * gtk/Makefile.am: Update accordingly.
17721
17722         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
17723         made externally visible.
17724
17725         * gtk/gtkmain.c: Use it.
17726         
17727         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
17728         is enough.
17729
17730         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
17731
17732 2000-07-24 Elliot Lee <sopwith@redhat.com>
17733         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
17734         individual backends already.
17735         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
17736         again. Yes, there really is a good reason for this, if you are using the gdkregion
17737         internals, and if you're not, why do you care?
17738         * gdk/gdkwindow.c: Fix inverted condition
17739         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
17740         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
17741         * gtk/gtkrange.c: Redraw trough when moving.
17742         * gtk/gtktypeutils.c: Fix warning by adding const cast.
17743         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
17744
17745 2000-07-23  Tor Lillqvist  <tml@iki.fi>
17746
17747         * configure.in: Check for mkstemp and sigsetjmp. Output
17748         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
17749
17750         More work on GDK for Win32. Still in an intermediate state.
17751
17752         * gdk/makefile.cygwin
17753         * gdk/win32/makefile.cygwin: Removed.
17754         
17755         * gdk/makefile.mingw.in
17756         * gdk/win32/makefile.mingw.in: New files.
17757
17758         * gdk/Makefile.am
17759         * gdk/win32/Makefile.am: Generate and distribute them.
17760
17761         * gdk/win32/gdkwindow-win32.h
17762         * gdk/win32/gdkdrawable-win32.h
17763         * gdk/win32/gdkpixmap-win32.h: New files.
17764
17765         * gdk/win32/gdkcolor-win32.c
17766         * gdk/win32/gdkcursor-win32.c
17767         * gdk/win32/gdkdrawable-win32.c
17768         * gdk/win32/gdkgc-win32.c
17769         * gdk/win32/gdkimage-win32.c
17770         * gdk/win32/gdkprivate-win32.h
17771         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
17772         Rename fields and variables called xcursor, xid, etc (these names
17773         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
17774
17775 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
17776
17777         * gtk/gtkentry.[ch]: Fix some problems with vertical
17778         alignment.
17779
17780         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
17781         char/byte confusion.
17782
17783 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
17784
17785         * gtk/gtktextview.c (changed_handler): Fix bug where
17786         redraw wasn't being done properly when height of
17787         dirty region changed.
17788
17789         * demos/Makefile.am: Remove various references to
17790         -lgmodule
17791
17792 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
17793
17794         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
17795         PangoAttrShape to reserve space for pixmaps, add 
17796         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
17797         in the display functions.
17798         
17799         * gtk/testgtk.c (create_layout): Set some more exotic
17800         scrolled window options
17801
17802         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
17803         Add function to set the shadow type of a window, to allow
17804         putting a shadow around widgets such as GtkLayout or GnomeCanvas
17805         which don't draw their own frame.
17806
17807 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
17808
17809         * docs/tutorial/package-db-tutorial.sh: New file for
17810           packaging DocBook format tutorial
17811
17812 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
17813
17814         * docs/tutorial/gtk-tut.sgml: Minor updates
17815
17816         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
17817
17818 2000-07-19  Tor Lillqvist  <tml@iki.fi>
17819
17820         * gtk/gtksignal.c: Fix C++ comment.
17821
17822         * gtk/gtkimmulticontext.c
17823         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
17824         don't return value from void functions.
17825
17826         * gtk/gtk.def: Add gtk_rc_style_unref.
17827
17828 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
17829
17830         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
17831         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
17832         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
17833         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
17834         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
17835         gtk/gtktypeutils.h: Include files outside of the extern "C"
17836         block. Makes some C++ compiler happy. Reported by Denis Vakatov
17837         <vakatov@peony.nlm.nih.gov>.
17838
17839 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
17840
17841         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
17842           Completes first pass. Hurrah!
17843
17844 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
17845
17846         * docs/tutorial/gtk-tut.sgml: More clean ups.
17847
17848 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
17849
17850         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
17851         paint the background of the text area which was accidentally
17852         removed at some point.
17853
17854         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
17855           
17856          - Move most of the functionality from the theme vtable
17857            into GtkRcStyleClass and GtkStyleClass. The moved
17858            vtable functions were changed a bit in the move to
17859            work better in their new home.
17860
17861          - Get rid of the engine and engine_data fields from
17862            GtkRcStyle and GtkStyle; instead the theme
17863            engine derives theme-specific subclasses of GtkRcStyle
17864            and GtkStyle
17865
17866          - Add extra dlsym() found entry point to themes,
17867            theme_create_rc_style().
17868
17869         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
17870         in gtk_style_real_copy.
17871
17872         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
17873         to register a type associated with an engine. (The engine
17874         won't be unloaded as there is an instance of the type.)
17875
17876
17877 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
17878
17879         * docs/tutorial/gtk-tut.sgml: Clean ups.
17880
17881 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
17882
17883         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
17884           of cleaning up to do.
17885
17886 2000-07-15  Tor Lillqvist  <tml@iki.fi>
17887
17888         * gdk/testgdk.c: New file, quick hack to test backends for
17889         pixel-by-pixel correctness of the most simple graphic operations.
17890
17891 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
17892
17893         * Really release 1.3.1
17894         
17895         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
17896         include structure.
17897
17898 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
17899
17900         * Released 1.3.1
17901
17902 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
17903
17904         * gtk/gtktextlayout.c: use FALSE for size_only most
17905         of the time when calling gtk_text_layout_get_line_display()
17906         to avoid causing double reshapes when a redraw follows
17907         immediately after.
17908
17909 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
17910
17911         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
17912         appropriate region and gdk_window_process_updates() so trough
17913         updating doesn't lag behind the window being scrolled.
17914
17915         * gdk/gdkgc.c: Make parent_class pointer static.
17916          
17917 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
17918
17919         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
17920         include <string.h>.
17921          
17922         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
17923         cut-and-paste error in computing memory offset for 4 channels.
17924
17925 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
17926
17927         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
17928         gtk_rc_append_default_pixmap_path(), since it wasn't
17929         adding an interesting path and we don't have a meaningful
17930         default for this value.
17931
17932 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
17933
17934         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
17935         gtk-config to gtk-config-2.0 move gtk_.m4 to
17936         gtk-2.0.m4
17937
17938         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
17939         gdk/Makefile.am demos/Makefile.am: Change 
17940         library names to libgtk-1.3.la, etc, so that we
17941         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
17942
17943         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
17944         gdk/Makefile.am gdk/x11/Makfile.am
17945         Move include files into /usr/include/gtk-2.0, 
17946         /usr/lib/gtk-2.0/include/
17947          
17948         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
17949         gtk/gtkintl.h: Change package for gettext from 
17950         gtk+ to gtk20. Put hack in autogen.sh to modify
17951         po/Makefile.in.in after gettextize to make this
17952         possible.
17953
17954         * gtk+.spec: Some updates, not tested.
17955
17956         * gdk-pixbuf/Makefile.am: Move loaders into
17957         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
17958
17959         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
17960         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
17961         to THEMENAME/gtk-2.0/. Move engine directory  to
17962         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
17963         
17964 2000-07-12  Tor Lillqvist  <tml@iki.fi>
17965
17966         Win32 changes, still doesn't build though.
17967
17968         * gdk/makefile.cygwin
17969         * gdk/win32/makefile.cygwin
17970         * gtk/makefile.cygwin: Updates.
17971
17972         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
17973         default values for fg and bg pixel as X11 does (0 and 1), not
17974         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
17975         Use 0 for pen width by default (treated as 1 anyway later, but for
17976         apps that might check the value in the GdkGC).
17977         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
17978         interface to gdk_gc_predraw and _postdraw.
17979
17980         * gdk/win32/gdkwin32.h
17981         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
17982
17983         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
17984         extraneous semicolon.
17985
17986         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
17987
17988         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
17989         not the Win32 bitspixel value.
17990
17991         * gdk/win32/gdkcc-win32.c:
17992         * gdk/win32/gdkcolor-win32.c 
17993         * gdk/win32/gdkprivate-win32.h
17994         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
17995         GDK object structure.
17996
17997 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
17998
17999         * docs/tutorial/gtk_tut_12.es.sgml (name): 
18000         * docs/tutorial/gtk_tut_it.sgml (name): 
18001         * docs/tutorial/gtk_tut_fr.sgml (name): 
18002         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
18003         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
18004
18005 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
18006
18007         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
18008           small changes.
18009
18010 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
18011
18012         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
18013         a bug here, never been here and never fixed anything ;(
18014         (don't segfault if tree->root_tree is NULL, which happens prior
18015         to widget realization, but puke instead).
18016
18017 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
18018
18019         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
18020         add the necessary tokens.
18021
18022         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
18023         (gtk_rc_style_to_style): copy thicknesses.
18024         (gtk_rc_init_style): apply thicknesses.
18025         (gtk_rc_parse_style): parse xthickness and ythickness.
18026
18027         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
18028
18029         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
18030         (gdk_window_new): 
18031         (_gdk_windowing_window_init): 
18032         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
18033         (gdk_pixmap_create_from_data): 
18034         (gdk_bitmap_create_from_data): 
18035         (gdk_pixmap_new): 
18036         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
18037         (gdk_image_new): 
18038         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
18039         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
18040         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
18041         (gdk_colormap_get_system): 
18042         (gdk_colormap_new): 
18043         * gdk/gdkwindow.c (gdk_window_init): 
18044         * gtk/gtkstyle.c (gtk_style_new):
18045         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
18046         * gdk/gdkpixmap.c (gdk_pixmap_init): 
18047         * gtk/gtkrc.c (gtk_rc_style_new):
18048         use g_object_new() instead of g_type_create_instance() which
18049         is a private function for fundamental type implementations.
18050
18051 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
18052
18053         * configure.in: Add check for db2html
18054
18055 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
18056
18057         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
18058         hack to set glib_debug_objects based on gtk_debug_flags.
18059
18060 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
18061
18062         * INSTALL.in: Update the Prerequisites section.
18063
18064         * Makefile.am demos/Makefile.am docs/Makefile.am
18065         docs/tutorial/Makefile.am gdk/x11/Makefile.am
18066         gdk/linux-fb/Makefile.am: Dist fixes
18067
18068 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
18069
18070         * NEWS: 10,000 foot view of 1.3.1 changes.
18071
18072 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
18073
18074         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
18075         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
18076         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
18077         gdk/x11/gdkmain-x11.c: 
18078
18079         Patch from George Lebl to add a GdkGrabStatus enumeration to use
18080         as a return value of gdk_*_grab(). Previously, we just
18081         returned the X11 values directly.
18082
18083 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
18084
18085         * gdk/x11/Makefile.am: Patch from George Lebl to 
18086         install all the headers in the right place.
18087
18088 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
18089
18090         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
18091           initial conversion to DocBook.
18092
18093 2000-07-04  Tor Lillqvist  <tml@iki.fi>
18094
18095         * README.win32: Improve a bit.
18096
18097         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
18098         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
18099         Alt+0nnn on the numpad (used to enter characters by numeric code
18100         from current DOS or ANSI codepage) working correctly, as in other
18101         Windows apps.
18102
18103         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
18104         same argument validity tests as in X11 version.
18105         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
18106
18107         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
18108         definitions in case missing from headers.
18109
18110         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
18111         destroy the window-specific cursor.
18112         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
18113         calling GetModuleHandle(NULL).
18114         (gdk_window_set_cursor): Reworked to always copy the passed cursor
18115         with CopyCursor before setting it as the window-specific
18116         cursor. It is OK for the caller to destroy the GdkCursor (and thus
18117         also its Windows cursor) after calling this function. Destroy any
18118         previous window-specific cursor.
18119
18120 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
18121
18122         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
18123         font charset is iso8859-1, not iso-8859-1.
18124
18125 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
18126
18127         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
18128         Use g_get_charset() instead of g_get_codeset().
18129
18130         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
18131         Comment out some strdup'ing functions to keep timj
18132         happy until we finish fighting this out.
18133
18134 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
18135
18136         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
18137         <= width or height.
18138
18139         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
18140         from 1.2 for parent/child states.
18141
18142         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
18143         of typos.
18144
18145         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
18146         event structures, replace with a generic axes field. Replace 
18147         deviceid/sourec with GdkDevice *device.
18148
18149         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
18150         to extract particular axis use value from event. (Also
18151         can be used for normal X/Y.)
18152
18153         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
18154         allow for arbitrary number of axes, namespace everything
18155         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
18156         everywhere.
18157
18158         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
18159         Get rid of the gdk_input_vtable setup if favor of simply
18160         defining the functions in gdkinput-none/gxi/xfree.c in
18161         a similar fashion to the way that the port structure is 
18162         done.
18163
18164         * gtk/gtkdnd.c: Fix fields of synthesized button press event
18165         for new event structures. 
18166
18167         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
18168         new device interfaces.
18169
18170 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
18171
18172         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
18173         set the initial text.
18174
18175         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
18176         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
18177         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
18178         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
18179
18180         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
18181         pango_layout_set_font_description to simplify.
18182
18183 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
18184
18185         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
18186         pango_layout_set_font_description to simplify.
18187
18188 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
18189
18190         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
18191         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
18192         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
18193
18194         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
18195         PANGO_PIXELS() macro.
18196
18197 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
18198
18199         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
18200         that returns a PangoContext owned by the widget and updated to
18201         match future changes in the widget. Also, make 
18202         gtk_widget_create_pango_layout() use this context. If we ever
18203         add a ::changed signal to PangoContext, this will make things
18204         much more convenient. 
18205
18206         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
18207         in the appropriate places instead of destroying the layouts and
18208         creating new ones.
18209
18210         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
18211         in a few strategic places.
18212
18213 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
18214
18215         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
18216         gtk_widget_size_request() on reparented child, if one. Otherwise,
18217         queue_resize() on the child never results in it getting size-requested
18218         at all.
18219
18220         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
18221         in option menus, so that (with luck) people won't copy it into
18222         their apps in the future.
18223
18224         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
18225         to gtk_option_menu_calc_size. This isn't perfect, but should fix
18226         a lot of problems with changing the size of the menu's menu
18227         items after adding it to the option menu.
18228
18229         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
18230
18231         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
18232         the text direction for a widget changes.
18233
18234         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
18235         ::direction_changed to get rid of various hacks.
18236
18237 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
18238
18239         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
18240         name.
18241
18242 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
18243
18244         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
18245         flag to the structure. Do not call XFreePixmap on pixmaps created
18246         by gdk_pixmap_foreign_new().
18247
18248 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
18249
18250         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
18251         value using GdkRGB functionality given GdkColormap and GdkColor.
18252         (name not final, waiting for inspiration.)
18253         
18254         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
18255         set the foreground/background of a GC using the GC's colormap
18256         and GdkRGB. (name not final, waiting for inspiration.)
18257
18258         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
18259         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
18260
18261         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
18262         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
18263         purely a function of the corresponding colormap. Make
18264         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
18265
18266         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
18267         gdk_pixbuf_*create_from_xpm_* in terms of
18268         gdk_pixbuf_new_from_xpm_data(), move into platform independent
18269         code.
18270
18271         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
18272         advantage of the new draw_rgb_32_image_dithalign.
18273
18274         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
18275
18276         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
18277         on each created GC.
18278
18279         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
18280
18281         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
18282         which we initialize from the drawable when the GC is created,
18283         if the drawable has a colormap.
18284
18285         * gdk/x11/gdkgc-x11.c: include string.h for memset.
18286
18287         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
18288
18289         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
18290
18291 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
18292
18293         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
18294         actually returning expose events, make sure to set
18295         the count field properly.
18296
18297         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
18298         accidentally reintroced bug which always cleared
18299         the graphics_exposures value. 
18300
18301 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
18302
18303         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
18304
18305 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
18306
18307         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
18308
18309 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
18310
18311         * docs/faq/gtk-faq.sgml: Start of Section 6.
18312
18313 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
18314
18315         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
18316         
18317         (Fixes problem with drawing childless frames. Pointed out
18318         by and a first patch from Anders)
18319         
18320         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
18321         compute a child_allocation, even if we don't have a child.
18322
18323         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
18324         Always chain to the parent's impl, even if we don't have a child.
18325
18326 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
18327
18328         * gdk/gdkrgb.c: If possible, create only a single shm segment and
18329         use multiple parts of it instead of creating a bunch of separate
18330         segments, since the maximum number of segments per system is not
18331         large. (This might be worth backporting to GTK+-1.2.x if we make a
18332         new release )
18333
18334         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
18335         structure in preparation for per-colormap GdkRGB.
18336
18337         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
18338         to False when we get EINVAL from shmget so that the caller of
18339         gdk_image_new can retry with a smaller segment size.
18340
18341 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
18342
18343         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
18344
18345 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
18346
18347         * configure.in: make the current version number 1.3.1 (binary age 0,
18348         interface age 0).
18349         
18350         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
18351         gtkcompat.h is all we want.
18352
18353         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
18354         GLib primitive types. fixed g_type_register_fundamental() argument
18355         ordering.
18356
18357         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
18358         compiles.
18359
18360         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
18361         object code cleanup, comment trigraph fixes, etc...
18362
18363 2000-06-23  Havoc Pennington  <hp@redhat.com>
18364
18365         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
18366         instead of making up a bogus name for first_para_mark
18367
18368         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
18369         0 as a context ID
18370
18371 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
18372
18373         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
18374
18375 2000-06-21  Havoc Pennington  <hp@pobox.com>
18376
18377         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
18378         we didn't check window->bg_pixmap != GDK_NO_BG.
18379
18380         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
18381         gdk-pixbuf
18382
18383 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
18384
18385         * docs/faq/gtk-faq.sgm: Move file to here.
18386           TODO: Update Makfile.am 
18387
18388 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
18389
18390         * docs/gtk-faq.sgm: Add Section 2
18391
18392 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
18393
18394         * docs/gtk-faq.sgm: New file. Start of DocBook
18395           version of the FAQ.
18396
18397 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
18398
18399         * configure.in (GDK_PIXBUF_MAJOR): Define version
18400         numbers for GDK_PIXBUF_*, as they get substituted
18401         into a header file. Need to consider versioning
18402         for gdk-pixbuf more carefully later.
18403
18404 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
18405
18406         Work with srcdir != builddir.   
18407         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
18408         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
18409         * demos/testpixbuf.c: Likewise.
18410         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
18411         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
18412         <gdk/x11/gdkx.h>.
18413         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
18414         "gdk-pixbuf.h".
18415         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
18416
18417 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
18418
18419         * TODO.xml: Change 1.4 version numbers to 2.0.
18420
18421 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
18422
18423         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
18424         fixups to GTK+ standard.
18425
18426 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
18427
18428         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
18429         gdk-pixbuf.
18430
18431         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
18432         fixups for GObject.
18433
18434         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
18435         gdk-pixbuf with GDK dependencies moved into GDK.
18436         
18437         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
18438         move gdk-pixbuf-loader here until GObject has signals.
18439
18440         * demos/: New directory of demos. Move demos from
18441         gdk-pixbuf here.
18442
18443         * demos/pixbuf-init.c: Small bit of code to check for
18444         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
18445         set GDK_PIXBUF_MODULEDIR appropriately.
18446
18447         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
18448         define which no longer makes sense.
18449
18450 2000-06-21  Havoc Pennington  <hp@redhat.com>
18451
18452         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
18453         gtk_get_default_language
18454
18455         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
18456         new function to get the default language
18457
18458         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
18459         s/gtk_text_view_style_values/gtk_text_style_values/
18460
18461         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
18462         Add a "language" field to tags.
18463
18464         (gtk_text_tag_set_arg): Fix bug in setting
18465         "bg_full_height_set" tag.
18466
18467 2000-06-21  Havoc Pennington  <hp@redhat.com>
18468
18469         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
18470         in the interfaces
18471
18472         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
18473         stuff instead when possible.
18474
18475         * gtk/gtktexttypes.h: Delete some unused constants
18476
18477         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
18478         testtextbuffer.c: use glib instead of custom unicode routines
18479
18480 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
18481
18482         * docs/es/: Removed mistakenly added generated sgml
18483
18484         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
18485         Remove outdated info files.
18486
18487         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
18488         Moved tutorial files into subdir
18489
18490         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
18491         subdir.
18492
18493         * docs/man/gtk_button.pod: Remove. (contents will be
18494         integrated into gtk-reference button page.)
18495
18496         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
18497         docs/faq/Makefile.am: Adjust for new organization
18498
18499 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
18500
18501         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
18502         not $(MKINSTALLDIRS)
18503
18504 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
18505
18506         * gtk/testgtk.c (create_text): Finish the job Elliot started
18507         of removing font setting test for text widget. (Since text widget
18508         and GdkFont are not deprecated, and cause portability problems.)
18509
18510 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
18511
18512         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
18513         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
18514         Remove use of libunicode in favor of new GLib functions.
18515
18516         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
18517         nano-x, framebuffer. The X11 include is just a hack until we get
18518         the necessary functions in gdkcolor.h, so there is no reason to
18519         add other includes of platforms.
18520
18521         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
18522         window bigger than the screen change.
18523
18524         * gtk/testgtk.c: Revert some random changes from Elliot
18525         that had no particular point and were causing testgtkrc
18526         not to function correctly.
18527         
18528         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
18529         because GdkSegment and GdkRegionBox have the same fields,
18530         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
18531         results in clearer code.
18532
18533         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
18534         gdk_input_translate_coordinates): Fix missed GdkObjectification
18535
18536 2000-06-18  Elliot Lee  <sopwith@redhat.com>
18537
18538         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
18539         * gtk/gtk{plug,socket}.h: Missed commits from previous.
18540
18541 2000-06-20  Havoc Pennington  <hp@redhat.com>
18542
18543         * modules/linux-fb/Makefile.am: Make this compile
18544         without framebuffer enabled
18545
18546         * gdk/linux-fb/Makefile.am: Add conditional to not build
18547         framebuffer unless specified in configure
18548
18549         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
18550         the size of the target instead of source if -1 was passed for
18551         width/height
18552
18553         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
18554         width/height confusion.
18555
18556 2000-06-19  Havoc Pennington  <hp@redhat.com>
18557
18558         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
18559         GDK_DRAWABLE_XID. In the future, we probably want to make it
18560         faster with G_DISABLE_CHECKS turned on.
18561
18562 2000-06-14  Havoc Pennington  <hp@redhat.com>
18563
18564         * gdk/Makefile.am: add gdkpixmap.c
18565
18566         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
18567         s/gdk_image_init/_gdk_windowing_image_init
18568
18569         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
18570         ref/unref
18571
18572         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
18573
18574         * gdk/gdkcompat.h: remove GdkWindowType compat, since
18575         GdkWindowType is now non-deprecated; 
18576         change gdk_window_get_type() compat to be
18577         gdk_window_get_window_type().
18578
18579         * gdk/gdkdnd.h: make GdkDragContext a GObject.
18580
18581         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
18582         virtual GObject. Make all functions call into the vtable.
18583         Move gdk_image_put() guts in here. Remove GdkDrawableType
18584         and gdk_drawable_get_type(), these are now GdkWindow-specific.
18585         draw_image, get_depth, get_size, set_colormap, get_colormap,
18586         get_visual added to the vtable.
18587         
18588         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
18589         GObject. Virtualize everything. 
18590         (gdk_gc_new_with_values): remove check for destroyed window,
18591         because now GdkWindow::create_gc will check this.
18592         (gdk_gc_set_values): New function to set GC values, this 
18593         was already implemented but wasn't in the header
18594
18595         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
18596
18597         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
18598         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
18599         remove _gdk_window_class; add _gdk_window_impl_get_type() and
18600         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
18601         _gdk_windowing_window_init, rename gdk_image_init to
18602         _gdk_windowing_image_init.
18603         
18604         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
18605         (gdk_draw_layout): Remove check for destroyed window, 
18606         because all the drawable methods already check it.
18607         
18608         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
18609         Add gdkpixmap.c which contains implementation of GdkDrawable
18610         virtual table (by chaining to a platform-specific implementation
18611         object).
18612         
18613         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
18614         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
18615         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
18616         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
18617         GdkColormapPrivate. 
18618
18619         * gdk/gdktypes.h: #include <glib-object.h>
18620
18621         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
18622         Move most functionality to platform-specific implementation
18623         object. GdkWindow itself now handles the backing store, then
18624         chains to the platform-specific implementation.
18625         (gdk_window_get_window_type): return GdkWindowType of the window.
18626         (gdk_window_peek_children): New routine, returns the children of 
18627         a GdkWindow
18628         (gdk_window_get_children): Was in X11-specific code and did 
18629         XQueryTree. Changed to simply return a copy of window->children; 
18630         so it can go in cross-platform code.
18631         
18632         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
18633
18634         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
18635         GdkColormap; just changed to use the new private data instead
18636         of casting to GdkColormapPrivate.
18637
18638         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
18639         gdk_cursor_new().
18640
18641         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
18642         (private data member in the GObject). 
18643         (xdnd_manager_source_filter): Function had broken 
18644         error handling, fix it (use gdk_error_trap_push).
18645
18646         * gdk/x11/gdkdrawable-x11.c: This file now implements
18647         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
18648         base class is purely for the convenience of the X port,
18649         and not part of the interface to cross-platform GDK.
18650
18651         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
18652         
18653         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
18654         specific to X, and returned by the create_gc virtual method
18655         of GdkDrawableImplX11. 
18656         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
18657         rather than gchar, this was also changed in the GdkGC vtable.
18658         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
18659         mask is 0, return immediately, instead of checking every flag.
18660         This is faster, and keeps us from segfaulting if values is NULL
18661         and the mask contains some nonzero flags.
18662
18663         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
18664         GdkWindow.
18665
18666         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
18667         GdkWindowPrivate is gone.
18668
18669         * gdk/x11/gdkim-x11.c: rename things that got renamed.
18670
18671         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
18672         remove the image_put stuff that got transferred to GdkDrawable.
18673         
18674         * gdk/x11/gdkinput.c: renamings
18675
18676         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
18677
18678         * gdk/x11/gdkpixmap-x11.c: GObject conversion
18679
18680         * gdk/x11/gdkprivate-x11.h: indentation fixes
18681
18682         * gdk/x11/gdkproperty-x11.c: renamings
18683
18684         * gdk/x11/gdkselection-x11.c: renamings
18685
18686         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
18687         implements the platform-specific "impl" object.
18688         Moved gdk_window_get_children to gdk/gdkwindow.c
18689
18690         * gdk/x11/gdkx.h: Remove all the private structs and private datas
18691         that no longer exist. Add declaration of GdkGCX11 object here.
18692         Fix all the macros to still work. 
18693
18694         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
18695         GdkDragContext from the boxed types since they are now GObjects.
18696
18697         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
18698         moved xthickness/ythickness into the instance. GtkStyleClass
18699         functions are now in the standard vtable for GtkStyle, so you have
18700         to create a GObject subclass to write a theme engine.
18701         (gtk_style_copy): fixed a leaked PangoFontDescription
18702         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
18703         can be the standard GObject function.
18704         
18705         * Throughout GTK:
18706         s/style->klass->[xy]thickness/style->[xy]thickness
18707         s/pango_layout_unref/g_object_unref/
18708
18709         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
18710         
18711         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
18712         accessing GDK internals.
18713
18714         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
18715         accessing GDK internals.
18716
18717 2000-06-18  Elliot Lee  <sopwith@redhat.com>
18718
18719         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
18720
18721         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
18722         problem by calculating event position relative to the trough
18723         rather than the slider.
18724         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
18725
18726         * gdk/gdkgc.h: Add GDK_NOR.
18727
18728         * configure.in, Makefile.am: Add modules top level dir
18729         * configure.in: Only use pangox library if building x11 target.
18730         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
18731
18732 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
18733
18734         * gtk/gtkcolorsel.c: Change private class member to be named
18735         private_data throughout the file.
18736
18737         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
18738         private_data to avoid clashing with keyword.
18739
18740 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
18741
18742         * gdk/gdkdnd.h: Add comment to remove warning.
18743
18744 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
18745
18746         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
18747         Byelorussian language; changed the Makefile and file names 
18748         to reflect that.
18749
18750 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
18751
18752         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
18753         rather than gdk_window_hide; this makes things work
18754         correctly if the window is programmatically hidden while
18755         iconified.
18756
18757 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
18758
18759         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
18760         cut and paste typo where wrong pixmap was being
18761         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
18762
18763 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
18764
18765         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
18766         Add helper function to compute format / bytes 
18767         relationship. Use in a couple places to fix up
18768         errors which assume 8 * format.
18769
18770         * gtk/gtkselection.c (gtk_selection_request): Use 32
18771         rather than 8 * sizeof (GdkAtom), to work correctly
18772         on Alpha.
18773
18774 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
18775
18776         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
18777         libgtk.la
18778         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
18779         versions
18780
18781         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
18782         checking macros return NULL since the function has a return value.
18783
18784 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
18785
18786         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
18787         GTK+ from building at all.
18788
18789         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
18790
18791 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
18792
18793         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
18794         gtk/Makefile.am: make it possible to configure gtk for different
18795         targets on the same platform. The library name is now 
18796         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
18797         flag. Only the x11 target compiles right now.
18798         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
18799         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
18800         * gdk/nanox/gdk*generic*: delete generic region code.
18801         * gdk/linux-fb/gdk*generic*: delete generic region code.
18802         * README.nanox: update information.
18803         
18804 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
18805
18806         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
18807         prepend not append. (Pointed out by Brett Hall.)
18808
18809 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
18810
18811         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
18812
18813 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
18814
18815         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
18816         need this later, and this makes sure that the atexit for
18817         glib gets called after that for GDK, so atexits are
18818         properly ordered for object leak checking.
18819
18820         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
18821
18822         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
18823         pango_x_shutdown_display()
18824
18825         * gtk/simple.c (main): Close window on destroy.
18826
18827 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
18828
18829         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
18830         to treat initial creation different from setting with 
18831         regards to the graphics-exposures parameter, so add a parameter
18832         indicating whether this is initial or not.
18833
18834 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
18835
18836         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
18837         to sort of work by adding an extra return_exposes arg
18838         to gdk_event_translate() - it might be better to simply
18839         deprecate the function altogether and force people to rewrite
18840         without it. gdk_window_scroll() handles most of it, and where
18841         gdk_window_scroll() doesn't work, simply redrawing more does.
18842
18843         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
18844         assertion.
18845
18846         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
18847
18848         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
18849         bunch of pretty much useless /* Print debugging info */ comments 
18850         which had drifted away from the code they were commenting.
18851
18852 2000-06-02  Havoc Pennington  <hp@pobox.com>
18853
18854         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
18855         is in working order.
18856         
18857         * gtk/testtext.c: Change to reflect anonymous mark API
18858
18859         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
18860
18861         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
18862         field, which was unused.
18863
18864         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
18865         saves some typing.
18866
18867         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
18868
18869         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
18870         flag on the insertion point and selection bound
18871
18872         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
18873         make mark-manipulation functions take a GtkTextMark* instead of a
18874         mark name.
18875         
18876         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
18877         GtkTextMarkBody; will be used to detect attempts to delete
18878         the permanent marks (insert and selection bound)
18879
18880         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
18881
18882 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
18883
18884         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
18885         flag to on.
18886
18887         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
18888         Honor DOUBLE_BUFFRED_FLAG
18889
18890         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
18891         function to set the DOUBLE_BUFFERED flag.
18892
18893         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
18894         or not exposes done on the widget should be double-buffered.
18895
18896         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
18897         to be what would be expected. (Fixes problem with a
18898         g_return_if_fail() validating a TextDirection enumeration)
18899
18900 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
18901
18902         * gtk/gtkwidget.c: Remove all references to 
18903         offscreen flag which was no longer used.
18904
18905         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
18906
18907         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
18908         for non-null label_widget->parent.
18909
18910         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
18911         which no longer was used.
18912
18913         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
18914
18915         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
18916         for null arguments.
18917
18918         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
18919         check for destroyed windows.
18920
18921 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
18922
18923         * gtk/gtkimmulticontext.c: Add a finalize method and unref
18924         the slave context there.
18925
18926         * gtk/gtkinvisible.[ch]: Make reference counting behavior
18927         identical to GtkWindow.
18928
18929 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
18930
18931         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
18932         pangox to here, so we can write them independent of rendering
18933         system, using GDK primitives.
18934
18935         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
18936         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
18937         since we have a rendering-system independent implementation in
18938         terms of draw_glyphs().
18939         
18940         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
18941         function to render a single line.
18942
18943         * gdk/x11/gdkpango.c: Move the guts of this file mostly
18944         into ../gdkpango.c, which simplifies things, since we
18945         don't have to deal with raw X gc's.
18946
18947 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
18948
18949         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
18950         get the logical attributes for a given GtkTextLine.
18951
18952 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
18953
18954         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
18955         g_locale_get_codeset() to g_get_codeset() change.
18956
18957 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
18958
18959         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
18960         descriptions.
18961
18962         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
18963         the entry.
18964
18965         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
18966         redoing (vastly simplifying) for Pango. Still needs quite
18967         a bit of work. (Size selection is currently poor. List of 
18968         predefined sizes is not a good idea, since all of these
18969         sizes won't necessarily be distinct.)
18970
18971 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
18972
18973         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
18974         CODESET results for LANG=C.
18975
18976 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
18977
18978         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
18979         which takes a stringized pango font description;
18980         ignore the older 'font' and 'fontset' declarations.
18981
18982         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
18983         field with a GdkFont derived via gdk_font_from_description(),
18984         for compatibility. (Should we just remove it entirely?
18985         Probably too much compatibility breakage, but people
18986         should be migrating to the new Pango stuff as quickly
18987         as possible.)
18988
18989 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
18990
18991         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
18992
18993 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
18994
18995         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
18996         redoing; there are some bugs in size allocation right
18997         now, the semi-existant distinction between header / day
18998         fonts was removed, but, with Pango, could actually
18999         be made functional in a nice way.
19000         
19001         * gtk/testcalender: Move calender from examples into this
19002         directory as a test program. (We really need to restrcture
19003         testgtk into a whole directory full of tests for every
19004         widget or functionality group, separated into multiple .c
19005         files.)
19006
19007 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
19008
19009         * gtk/testgtk.c (file_exists): Fix stupid typo that
19010         was keeping RC file from being loaded.
19011
19012         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
19013         RC file font code.
19014
19015 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
19016
19017         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
19018         Add function to load a GdkFont from a PangoFontDescription.
19019
19020 2000-05-29  Tor Lillqvist  <tml@iki.fi>
19021
19022         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
19023         variable should be of type GdkEventPrivate.
19024
19025 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
19026
19027         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
19028         to have any widget for the label, use a GtkLabel widget
19029         to display the text. (Based partially on a patch from
19030         Anders Carlson.)
19031
19032         (Quite a bit of code reorganization - strip 90% of the
19033         guts out of gtkaspectframe and add a single virtual
19034         func to GtkFrameClass - compute_child_allocation.)
19035
19036 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
19037
19038         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
19039         (Removed clist->row_center_offset field because caching
19040         it wasn't saving time or code, added private function
19041         _gtk_clist_create_cell_layout()).
19042
19043 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
19044
19045         * gtk/gtkaccellabel.c: Pangoized.
19046
19047         * gtk/[hv]ruler.c: Pangoized
19048
19049 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
19050
19051         * gtk/gtkfilesel.c (gtk_file_selection_init):
19052         Use gtk_clist_set_column_auto_resize() to remove need
19053         need for manual column width computations.
19054
19055 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
19056
19057         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
19058         ensuring Pango correctness, and considerably simplifying the
19059         code.
19060         
19061         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
19062
19063         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
19064         getting of numbers of lines.
19065
19066         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
19067         to the actual requested width of the lable, not to the wrap
19068         width we set.
19069
19070         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
19071
19072         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
19073           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
19074
19075         * gtk/gtktextview.c: Fix structure inheritance.
19076
19077         * gtk/gtkprogressbar.c: Pangoize.
19078
19079 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
19080
19081         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
19082         in a function.
19083
19084         * gtk/gtktextlayout.c (find_display_line_above): Fixed
19085         bug with computing line tops.
19086
19087         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
19088
19089 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
19090
19091         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
19092         and y_offset coordinates to do what we need now. (The offset between
19093         buffer and layout coordinates has been reintroduced, but is a 
19094         bit different than before.)
19095
19096         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
19097         handle the adjustments ourselves, and scroll as necessary using
19098         the new gdk_window_scroll().
19099         
19100         The advantage of this is that when we are incrementally revalidating,
19101         we are essentially rearranging things around the visible portion
19102         of the screen. With the old setup, the visible portion of the
19103         screen was moved around in the layout, so scrolling and redrawing
19104         to track that caused jumping of the display. Since we now
19105         control the scrolling ourselves, we can suppress this and
19106         only redraw when things actually change.
19107
19108 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
19109
19110         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
19111         the region not just redisplay it after-all, since we store the
19112         cursors in the LineDisplay. (Ugly interactions here between
19113         GtkLayout and GtkTextBTree here.)
19114         
19115         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
19116
19117 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
19118
19119         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
19120         Added function to scroll contents of a window while keeping the
19121         window constant. Works by XCopyArea or guffaw-scrolling depending
19122         on the details of how the window is set up. (guffaw-scrolling
19123         still needs to be filled in.)
19124
19125 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
19126
19127         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
19128         move the debugging that was tied to a global variable
19129         to that.
19130
19131         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
19132
19133         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
19134         validated flag, in line data instead of setting height/width to
19135         -1. This allows us to perform operations with partially invalid
19136         buffer (using the old size for invalid lines) and thus to do
19137         incremental vaidation. Keep height/width aggregates up to date
19138         when deleting text and rebalancing the tree.
19139
19140         * gtk/gtktextbtree.[ch]: Add functions validate a line
19141         (gtk_text_btree_validate_line), and to validate up
19142         to a number of pixels (gtk_text_btree_validate).
19143
19144         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
19145         that indicates that something is changed and a revalidation
19146         pass is needed. Change ::need_repaint to ::changed, and
19147         make it take old and new yranges instead of a rectangle.
19148
19149         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
19150         the line_data_destroy() function from 
19151         gtk_text_btree_add_view() to a virtual function in 
19152         GtkTextLayout
19153
19154         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
19155         since we are handling partial repaints in a different fashion
19156         now.
19157
19158         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
19159         of the selection instead of queueing a repaint on the
19160         entire widget.
19161
19162         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
19163         get_selection_bounds() down to btree, make the function
19164         in buffer a wrapper around the btree function.
19165
19166         * gtk/gtktextlayout.[ch]: Add functions to check if the
19167         layout is valid and to recompute either a range of pixels
19168         aroudn a line or a certain total number of pixels.
19169
19170         * gtk/gtktextlayout.[ch]: Cache a single line display;
19171         now that we only redraw the needed portions, the hit rate
19172         for this cache is quite high.
19173         
19174         * gtk/gtktextview.[ch]: Keep track of the first paragraph
19175         on the screen so that when re-laying-out the buffer, we can
19176         keep the same place. This requires connecting to ::value_changed
19177         on the adjustments
19178
19179         * gtk/gtktextview.[ch]: Add idle functions to revalidate
19180         the buffer after we receive an ::invalidated signal.
19181         
19182 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
19183
19184         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
19185         to max of allocation and layout size, not just to the
19186         layout size.
19187
19188         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
19189         Invalidate window so it gets redrawn properly.
19190
19191         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
19192         to mean the entire window.
19193
19194         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
19195         into public header.
19196
19197 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
19198
19199         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
19200         to get the name of a mark.
19201
19202         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
19203         to find the paragraph from a y position.
19204
19205 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
19206
19207         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
19208         nodes have width/height >= 0, not > 0.
19209
19210 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
19211
19212         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
19213         Add a size_only flag, so when we only need the size, we don't create
19214         useless appearance attributes.
19215
19216         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
19217         duplicate setting of font description.
19218
19219         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
19220
19221 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
19222
19223         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
19224         EXTRA_DIST. It does not work well when the file that
19225         everything depends on is not in the tarball.
19226
19227 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
19228
19229         * gtk/testgtk.c: Some hacks and fixes so that it basically
19230         works when not sitting in the GTK+ build tree.
19231
19232 2000-05-03  Havoc Pennington  <hp@redhat.com>
19233
19234         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
19235         Properly determine the ordering of the tag root and the current
19236         line within the tree. Previous algorithm only worked if the tag
19237         root's immediate parent was the common root of both the current
19238         line and the tag root.
19239
19240 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
19241
19242         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
19243         alignment.
19244
19245         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
19246         the widget text directional dynamically.
19247
19248         * gtk/gtktextview.[ch]: Added functions to get and set default
19249         wrap mode.
19250
19251 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
19252
19253         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
19254         in cursor location computation.
19255
19256 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
19257
19258         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
19259         vadjusment values properly when layout gets smaller.
19260
19261         * gtk/gtktextview.c (need_repaint_handler): Areas being
19262         passed in are far completely inaccurate, and sometimes
19263         too small, so, for now, just queue a redraw on the
19264         whole visible region.
19265
19266 2000-04-25  Havoc Pennington  <hp@redhat.com>
19267
19268         * gtk/gtktextbtree.c (summary_destroy): new function to 
19269         destroy tag summary nodes
19270         (gtk_text_line_next_could_contain_tag): this function was 
19271         totally broken if the line passed in wasn't below the tag
19272         root. Fix it.
19273         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
19274         "wildcard" case, we have to do a linear scan. Blah.
19275         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
19276         we have to do the linear scan
19277         (tag_removed_cb): When a tag is removed from the tag table, 
19278         remove the GtkTextTagInfo node from the btree.
19279         (gtk_text_btree_spew): Implement the spew function, for 
19280         our debugging pleasure.
19281
19282 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
19283
19284         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
19285         a problem with referring to the wrong buffer.
19286
19287         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
19288
19289         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
19290         font description to gtk_style_new() - otherwise things
19291         don't work without a .gtkrc file.
19292
19293         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
19294         tags table if we create it ourself, too.
19295
19296         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
19297         it was conflicting with XKB modifiers.
19298
19299         * gtk/gtktextview.[ch]: Add simple support for 
19300         GtkIMContext.
19301
19302 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
19303
19304         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
19305         with deletion from last commit.
19306
19307 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
19308
19309         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
19310         in the context from the current locale.
19311         
19312         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
19313         context, not hardcoded value.
19314
19315         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
19316         not logical.
19317
19318 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
19319
19320         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
19321         attributes - that doesn't handle partial-glyph selection
19322         properly. Instead use new pango_layout_line_get_x_ranges()
19323         functionality to draw the selection.
19324
19325         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
19326         now properly handles out-of-range coordinates.
19327
19328         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
19329
19330         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
19331         public.
19332
19333         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
19334         for paragraphs opposite to the base direction of the widget.
19335
19336         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
19337
19338         * gtk/gtktextlayout.c: Don't split segments on marks, since that
19339         causes Arabic words to reshape as you cursor through.
19340
19341         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
19342         cursor position when moving vertically with the arrow keys and
19343         scrolling with page-up/page-down. (Arrow keys save only the X,
19344         scrolling saves both X and Y.)
19345
19346         This means you can line-up / line-down or page-up / page-down
19347         without losing your place, and also that moving vertically
19348         with the cursor keys keeps the same X position, not the same
19349         character count:
19350
19351         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
19352         arrow keys move by display lines, not paragraphs.
19353
19354 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
19355
19356         * gtk/gtklayout.c: Make sure that the bin window is at least
19357         as big as the allocation. (Should we also make sure that the
19358         bin window is big enough to completely cover widget->window?)
19359
19360         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
19361         function to get the onscreen rectangle.
19362
19363         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
19364         for offsets in window coordinates.
19365
19366 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
19367
19368         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
19369         confusion.
19370
19371         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
19372         from the widget direction.
19373
19374         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
19375         Add a "direction" attribute.
19376
19377         * gtk/gtktextview.c: global s/tkxt/text_view/.
19378
19379         * gtk/testtext.c: Added long block of text in Arabic, to test out
19380         the direction attributes. (Some problems with the shaping system
19381         for arabic become obvious - like the fact the cursor splits words
19382         into unjoined pieces.)
19383
19384 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
19385
19386         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
19387
19388         * gtk/gtktextlayout.c: Fix up alignment.
19389
19390         * gtk/testtext.c: Add some tests for centering, wrapping.
19391
19392 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
19393
19394         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
19395         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
19396         If we wrote GTK+-specific layout-render function this could just replace
19397         the draw_layout() operation in the vtable.
19398
19399         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
19400         pango_layout_get_cursor_pos() and use that function.
19401
19402         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
19403         is a non-static symbol.
19404
19405         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
19406         with gtk_text_btree_find_line_by_y()
19407
19408         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
19409         renderer that handles GtkTextAppearance attributes.
19410
19411         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
19412
19413           - Move the values in the style that don't affect geometry into a
19414             GtkTextAppearance structure.
19415           - Change underline to take a PangoUnderline and "font" a string
19416             representation of a font description
19417           - Add a "font_desc" attribute which takes a FontDescription structure.
19418
19419         * gtk/gtktextlayout.[ch]:
19420
19421           - Get rid of the display-line list per each line. Instead, we
19422             generate, on demand, a GtkTextLineDisplay structure which]
19423             contains a PangoLayout * and other necesary information
19424             (offsets, cursor locations) for displaying a paragraph.
19425           - Get rid of the code to wrap lines, create display chunks,
19426             etc. Instead, we just go through a paragraph and convert
19427             it into the necessary inputs to a PangoLayout.
19428           - Implement a new attribute type, GtkTextAttrAppearance. This
19429             holds a GtkTextAppearance, and is used to pass colors, 
19430             stipple, etc, through from the layout to the display without
19431             having to use lots and lots of individual attributes.
19432           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
19433             in terms of PangoLayout functions.
19434         
19435         * gtk/gtktextview.c: 
19436          
19437           - Handle passing the necessary PangoContext to the layout
19438           - Some fixups in painting to deal with the automatic backing store
19439             and offsetting of GTK+-1.4
19440           - Add a style_set handler so that the default style reacts
19441             properly to theme changes.
19442         
19443         * gtk/gtktext?*.[ch]: Random code-style fixes.
19444
19445         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
19446
19447 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
19448
19449         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
19450         in original form preparatory to Pango-ization and gdkimcontext-ization.
19451
19452 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
19453
19454         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
19455         so that we can derive from gtkimcontext in language bindings properly.
19456
19457 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
19458
19459         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
19460         Add a compose table including (almost) all the compose combinations
19461         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
19462         data in the XIM implementation.
19463
19464         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
19465         Moved functions to convert keyvalues from and to unicode here from
19466         the win32 port and made them public.
19467
19468 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
19469
19470         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
19471
19472 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
19473
19474         * gtk/gtkimcontext.[ch]: Base class for new input context system
19475
19476         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
19477         the real input context implementation to be loaded from modules
19478         and switched on the fly.
19479
19480         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
19481         context that just does direct keysymbol => unicode translation.
19482
19483         * gtk/gtkentry.[ch]: Start switching editing over to using
19484         GtkInputContext. (No handling of preedit yet.)
19485
19486 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
19487
19488         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
19489         many substitutions. (klass should not be subsituted.)
19490
19491 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
19492
19493         * configure.in: Add checks for Pango
19494
19495         * configure.in docs/Makefile.am: Add test for sgml2html
19496         and allow 'make dist' without building html, but print out
19497         warnings in that case. (For making snapshots)
19498
19499         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
19500         Add Pango libraries and C flags
19501
19502         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
19503         Add function (gdk_draw_layout) to draw a pango layout.
19504
19505         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
19506         for getting Pango contexts for GDK.
19507
19508         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
19509
19510         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
19511         editing.
19512
19513         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
19514         keysym => unicode translations. More languages can be added
19515         here, but real input-method support is needed.
19516
19517         * docs/Changes-1.4.txt: Added note about entry behavior.
19518         
19519         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
19520         to set the reading direction for a widget and the global direction.
19521         Add test which allows toggling the global direction. Two private
19522         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
19523
19524         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
19525           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
19526
19527         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
19528
19529         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
19530         underlining now handled by Pango.
19531
19532         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
19533         to RCStyle and Style. (Having both this and the old font name and GdkFont 
19534         is temporary.)
19535
19536         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
19537         convenience functions for creating contexts and layouts for widgets.
19538
19539         * gtk/testgtk.c: Enhance label tests with multilingual labels.
19540
19541 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
19542
19543         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
19544         titles to be active, even if they aren't visible.
19545         (gtk_clist_column_titles_passive):  Ditto.
19546
19547 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
19548
19549         * gtkmenu.c:
19550         * gtkmenu.h:
19551         * gtktypeutils.h: Spelling/grammar fixes in comments.
19552
19553 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
19554
19555         * gdk/nanox/*.h: add missing header files.
19556
19557 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
19558
19559         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
19560         send_event to TRUE.
19561         (gtk_drawing_area_size): queue a resize.
19562
19563 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
19564
19565         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
19566         the handlers, also invalidate them. bug nailed down by Karl Nelson
19567         <kenelson@ece.ucdavis.edu>.
19568
19569 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
19570
19571         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
19572         "(nil)" foundries, patch from Grigorios Magklis.
19573
19574         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
19575         on non-available fonts, based on a patch by Grigorios Magklis
19576         <maglis@cs.rochester.edu>.
19577
19578 2000-05-18  Elliot Lee  <sopwith@redhat.com>
19579
19580         * gdk/x11/gdkregion-generic.c: If a region does not have any
19581         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
19582         instead of GDK_OVERLAP_RECTANGLE_IN.
19583
19584 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
19585
19586         * gtk/gtklayout.c (gtk_layout_map): Remove references to
19587         OFFSCREEN, as it is no longer necessary.
19588
19589 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
19590
19591         * gtk/gtkcolorsel.c: Patch from David Santiago
19592         <mrcooger@cyberverse.com> to change things so that the 
19593         indicator of the active palette entry is done independently,
19594         not via the focus, since it should always be visible.
19595
19596 2000-05-17  Tor Lillqvist  <tml@iki.fi>
19597
19598         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
19599         refcount leaks as in the X11 backend.
19600
19601         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
19602         cosmetics.
19603
19604         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
19605         backend. Add _gdk_windowing_window_destroy().
19606
19607         * gtk/gtkcolorsel.c: Include correct backend-specific header.
19608         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
19609         either, but these probably do exist on nanox?)
19610         
19611         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
19612         which isn't necessarily defined by <math.h>.
19613
19614         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
19615         ancestry past GtkObject.
19616
19617         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
19618         from DLL on Win32.
19619
19620         * gtk/gtk.def: Update corresponding to recent changes.
19621
19622         * gtk/makefile.{cygwin,msc}: Updates.
19623
19624 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
19625
19626         * docs/Changes-1.4.txt: A bit of editing.
19627
19628         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
19629         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
19630         to clear the update area for the window, and clear it
19631         when hiding a window.
19632
19633         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
19634         if window destroyed.
19635
19636         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
19637
19638         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
19639         gdk_window_destroy() to the generic code, since there was a lot of 
19640         window-system-independent logic it in. Add a function:
19641         
19642          _gdk_window_destroy() 
19643
19644         to the internal API to destroy a window without unreferencing it.
19645         Add a function:
19646
19647          _gdk_windowing_window_destroy()
19648
19649         That does the windowing-system-dependent part of destroying 
19650         the window.
19651
19652 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
19653
19654         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
19655
19656 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
19657
19658         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
19659         Make gtk_widget_shape_combine_mask() keep a reference count on
19660         the pixmap since it keeps it around.
19661
19662 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
19663
19664         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
19665         leak.
19666
19667         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
19668         leak with event filters.
19669
19670 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
19671
19672         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
19673         signal handlers with the right data arguments. (Fixes
19674         some warnings when a widget was repeatedly set as a drag
19675         destination.)
19676
19677         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
19678         window so we can avoid avoid setting the DND properties on the
19679         toplevel window repeatedly.
19680
19681 2000-05-13  Tor Lillqvist  <tml@iki.fi>
19682
19683         * gdk/win32/gdkwin32.h: Define more message types missing from
19684         mingw headers.
19685
19686         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
19687         call gdk_window_destroy_notify(). It was never called. This
19688         probably meant that the GdkWindow was never freed. Thanks Owen for
19689         noticing (!).
19690
19691         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
19692         window as destroyed before calling DestroyWindow(). DestroyWindow()
19693         causes a call to the window procedure (gdk_WindowProc), which
19694         calls gdk_event_translate(), which calls
19695         gdk_window_destroy_notify(), which gets confused unless the window
19696         is set as destroyed.
19697
19698         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
19699         this function to indicate it's win32 only. Put inside #ifdef
19700         G_ENABLE_DEBUG.
19701
19702         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
19703         debugging function. (gdk_event_translate:) Add a default branch
19704         that uses the above function to print debug messages with all
19705         Windows messages symbolically.
19706
19707         * gdk/win32/gdkprivate-win32.h: Declare it, and
19708         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
19709
19710 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
19711
19712         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
19713         public header file.
19714
19715 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
19716
19717         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
19718
19719         * gtk/gtktext.c: made the adjustments no-construct args, simply
19720         provide default adjustments.
19721         (gtk_text_destroy): release adjustments.
19722
19723         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
19724         adjustment argument non-construct.
19725
19726         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
19727         instead of in finalize.
19728         (gtk_progress_get_text_from_value): 
19729         (gtk_progress_get_current_text): 
19730         (gtk_progress_set_value): 
19731         (gtk_progress_get_percentage_from_value): 
19732         (gtk_progress_get_current_percentage): 
19733         (gtk_progress_set_percentage): 
19734         (gtk_progress_configure): ensure an adjustment is present.
19735
19736 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
19737
19738         * gtk/gtkcolorsel.[hc]:
19739         * gtk/gtkcolorseldialog.[hc]:
19740         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
19741         their parent implementation, use bit fields for boolean values, don't
19742         create unused widgets, usage of glib types, braces go on their own
19743         lines, function argument alignment, #include directives etc. etc. etc..
19744
19745         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
19746
19747 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
19748
19749         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
19750
19751         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
19752         of NULL.
19753
19754         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
19755         to freed data.
19756         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
19757
19758         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
19759         to NULL when the toplevel is getting destroyed.
19760         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
19761         (gtk_menu_destroy): 
19762         (gtk_menu_init): store the information of whether we have to
19763         readd the initial child ref_count during destruction in a new
19764         GtkMenu field needs_destruction_ref_count.
19765
19766         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
19767         here, those reading: learn from my mistake! ;)
19768         in order for set_?adjustment to support a default adjustemnt if
19769         invoked with an adjustment pointer of NULL, the code read (pseudo):
19770         if (v->adjustment) unref (v->adjustment);
19771         if (!adjustment) adjustment = adjustment_new ();
19772         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
19773         now imagine the first unref to actually free the old adjustment and
19774         adjustment_new() creating a new adjustment from the very same memory
19775         portion. here, the latter comparision will unintendedly fail, and
19776         all hell breaks loose.
19777         (gtk_viewport_set_hadjustment):
19778         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
19779         after unreferencing it.
19780
19781         * gtk/gtkcontainer.[hc]: removed toplevel registration
19782         functions: gtk_container_register_toplevel(),
19783         gtk_container_unregister_toplevel() and
19784         gtk_container_get_toplevels() which had wrong semantics
19785         anyways: it didn't reference and copy the list.
19786
19787         * gtk/gtkwindow.c: we take over the container toplevel registration
19788         bussiness now. windows are registered across multiple destructions,
19789         untill they are finalized. the initial implicit reference count
19790         users are holding on windows is removed with the first destruction
19791         though.
19792         (gtk_window_init): ref & sink and set has_user_ref_count, got
19793         rid of gtk_container_register_toplevel() call. add window to
19794         toplevel_list.
19795         (gtk_window_destroy): unref the window if has_user_ref_count
19796         is still set, got rid of call to
19797         gtk_container_unregister_toplevel().
19798         (gtk_window_finalize): remove window from toplevel list.
19799         (gtk_window_list_toplevels): new function to return a newly
19800         created list with referenced toplevels.
19801         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
19802
19803         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
19804         adjustment a non-construct arg.
19805         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
19806         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
19807         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
19808
19809         * gtk/gtkrange.c: added some realized checks.
19810         (gtk_range_destroy): get rid of the h/v adjustments in the
19811         destroy handler instead of finalize. remove timer.
19812         (gtk_range_get_adjustment): demand create adjustment.
19813
19814         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
19815         we simply create them on demand now and get rid of them in
19816         the destroy handler.
19817         (gtk_viewport_destroy): get rid of the h/v adjustments in the
19818         destroy handler instead of finalize.
19819         (gtk_viewport_get_hadjustment): 
19820         (gtk_viewport_get_vadjustment): 
19821         (gtk_viewport_size_allocate): demand create h/v adjustment
19822         if required.
19823
19824         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
19825         gtk_widget_real_destroy () functionality.
19826         (gtk_widget_real_destroy): reinitialize with a new style, instead
19827         of setting widget->style to NULL.
19828
19829 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
19830
19831         * gtk/gtkcalendar.c:
19832         * gtk/gtkbutton.c: ported _get_type() implementation over to
19833         GType, either to preserve memchunks allocation facilities,
19834         or because Gtk+ 1.0 GtkTypeInfo was still being used.
19835
19836         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
19837         over. prepare for ::destroy to be emitted multiple times.
19838         removed reference tracer magic. chain into GObjectClass.shutdown()
19839         to emit ::destroy signal.
19840
19841         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
19842         fundamental.
19843
19844         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
19845         cludge.
19846
19847         * gtk/gtksocket.c:
19848         * gtk/gtkplug.c:
19849         * gtk/gtklayout.c:
19850         * gtk/gtklabel.c:
19851         * gtk/gtkargcollector.c:
19852         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
19853         not being a fundamental anymore, and to work with the new
19854         type system (nuked fundamental type varargs clutter).
19855
19856         * gtk/*.c: install finalize handlers in the GObjectClass
19857         part of the class structure.
19858         changed direct GTK_OBJECT()->klass accesses to
19859         GTK_*_GET_CLASS().
19860         changed direct object_class->type accesses to GTK_CLASS_TYPE().
19861
19862         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
19863         GType. made most of the GTK_*() type macros and Gtk* typedefs
19864         simple wrappers around macros and types provided by GType.
19865         most notably, a significant portion of the old API vanished:
19866         GTK_TYPE_MAKE(),
19867         GTK_TYPE_SEQNO(),
19868         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
19869         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
19870         GTK_TYPE_ARGS,
19871         GTK_TYPE_CALLBACK,
19872         GTK_TYPE_C_CALLBACK,
19873         GTK_TYPE_FOREIGN,
19874         GtkTypeQuery,
19875         gtk_type_query(),
19876         gtk_type_set_varargs_type(),
19877         gtk_type_get_varargs_type(),
19878         gtk_type_check_object_cast(),
19879         gtk_type_check_class_cast(),
19880         gtk_type_describe_tree(),
19881         gtk_type_describe_heritage(),
19882         gtk_type_free(),
19883         gtk_type_children_types(),
19884         gtk_type_set_chunk_alloc(),
19885         gtk_type_register_enum(),
19886         gtk_type_register_flags(),
19887         gtk_type_parent_class().
19888         replacements, where available are described in ../docs/Changes-1.4.txt.
19889         implemented compatibility functions for the remaining API.
19890
19891         * configure.in: depend on glib 1.3.1, use gobject module.
19892
19893 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
19894
19895         * TODO.xml: Various updates to current status.
19896
19897 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
19898
19899         * gtk.m4: Print out version when test succeeds.
19900
19901 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
19902
19903         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
19904         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
19905         
19906         (Original triangle color selector from Simon Budig
19907         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
19908         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
19909         Santiago <mrcooger@cyberverse.com>)
19910
19911         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
19912         out into a separate widget.
19913
19914         * gtk/testgtk.c: Add some checkbuttons for toggling palette
19915         and opacity controls.
19916
19917 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
19918
19919         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
19920         snuck in prematurely.
19921
19922 2000-05-07  Tor Lillqvist  <tml@iki.fi>
19923
19924         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
19925         had deleted a ! operator by mistake, which caused
19926         GDK_SELECTION_CLEAR events never to be generated, which caused
19927         only the first copy to the clipboard from an gtkeditable to
19928         actually cause a copy to the Windows clipboard.
19929
19930 2000-05-06  Tor Lillqvist  <tml@iki.fi>
19931
19932         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
19933         compilation, too. Current mingw gcc distributions include the
19934         necessary headers. Also the necessary IIDs are now in mingw
19935         headers/libraries, and own definitions unnecessary.
19936
19937         More hacking on OLE2 DND, still doesn't work though, and thus
19938         ifdeffed out.
19939
19940         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
19941         here, too.
19942
19943 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
19944
19945         * gdk/nanox/*: nano-X port work in progress.
19946         * gdk/simple.c: simple test for Gdk.
19947         * README.nanox: notes about the port: read this first!
19948         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
19949         with nano-X.
19950
19951 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
19952
19953         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
19954         gdk_window_clear() into common code, implement in terms of
19955         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
19956         not redirected to the backing rectangle.
19957
19958 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
19959
19960         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
19961         EXTRA_DIST. It does not work well when the file that
19962         everything depends on is not in the tarball.
19963
19964 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
19965
19966         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
19967         with recursion where process_updates() is called from
19968         an expose handler. (GtkTextView is highly broken in
19969         doing this, but it should work, so it is a nice test
19970         case.)
19971
19972 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
19973
19974         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
19975         handle the case where updates are queued during processing of
19976         updates.
19977
19978 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
19979
19980         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
19981         window is on gdk_display - use that instead of segfaulting.
19982
19983 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
19984
19985         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
19986         broken and require an empty arg, give it to them.
19987
19988 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
19989
19990         * gtk/gtklabel.h: indentation fixes.
19991
19992 2000-05-02  Tor Lillqvist  <tml@iki.fi>
19993
19994         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
19995         draw too narrow or too low arcs, they seem to fail, at least with
19996         some display drivers.
19997
19998         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
19999
20000         Large changes to the Win32 backend, partially made necessary by
20001         the changes to the backend-independent internal
20002         structures. Attempts to implement similar backing store stuff as
20003         on X11. The current (CVS) version of the Win32 backend is *not* as
20004         stable as it was before the no-flicker branch was merged. A
20005         zipfile with that version is available from
20006         http://www.gimp.org/win32/. That should be use by "production"
20007         code until this CVS version is usable. (But note, the Win32
20008         backend has never been claimed to be "production quality".)
20009
20010         * README.win32: Add the above comment about versions.
20011
20012         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
20013
20014         * gdk/gdk.def: Update.
20015
20016         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
20017         presumably be replaced by some more better mechanism as 1.4 gets
20018         closer to release shape.
20019
20020         * gdk/makefile.{cygwin,msc}: Update.
20021
20022         * gdk/win32/*.c: Correct inclusions of the backend-specific and
20023         internal headers. Change code according to changes in these. Use
20024         gdk_drawable_*, not gdk_window_* where necessary.
20025
20026         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
20027         our old DND.
20028
20029         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
20030         to interpret single characters as UTF-8. Thanks to Hans Breuer.
20031         Use correct function name in warning messages.
20032
20033         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
20034         GSourceFuncs gdk_event_prepare and gdk_event_check.
20035         (gdk_event_get_graphics_expose): Do implement, use
20036         PeekMessage. Thanks to Hans Breuer.
20037         (event_mask_string): Debugging function to print an GdkEventMask.
20038         (gdk_pointer_grab): Use it.
20039
20040         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
20041         (old) book I used claimed was Hangul actually is CJK Unified
20042         Ideographs Extension A. Also, Hangul Syllables were missing.
20043         Improve logging.
20044
20045         * gdk/win32/gdkgc-win32.c: Largish changes.
20046
20047         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
20048         g_win32_getlocale() from GLib, and not setlocale() to get current
20049         locale name.
20050
20051         * gdk/win32/gdkprivate-win32.h
20052         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
20053         gdkwin32.h, similarily as in the X11 backend.
20054
20055         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
20056         assignment was used instead of equals in if test. Thanks to Hans
20057         Breuer.
20058
20059         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
20060         the X11 version.
20061
20062         * gdk/win32/makefile.{cygwin,msc}
20063         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
20064         path to the Win32 headers that works also with the mingw compiler.
20065
20066         * gtk/gtkstyle.c: Include <string.h>.
20067
20068 2000-04-26  Havoc Pennington  <hp@redhat.com>
20069
20070         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
20071         replacing the broken gtk_label_get ()
20072
20073 2000-04-15  Havoc Pennington  <hp@pobox.com>
20074
20075         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
20076         this keeps scanner scripts from getting confused.
20077
20078         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
20079         data, rather than void
20080
20081 2000-04-15  Tor Lillqvist  <tml@iki.fi>
20082
20083         * gtk/gtkclist.c (gtk_clist_motion)
20084         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
20085         with is_hint FALSE, get x and y from the event. They used to be
20086         used uninitialised. The Win32 backend never sends motion events
20087         marked as hints. This for instance fixes the annoying file and
20088         font selector behaviour in the Win32 version.
20089
20090 2000-04-14  Tor Lillqvist  <tml@iki.fi>
20091
20092         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
20093         gtk_private_n_signals variables, they are used by some software,
20094         sigh.
20095
20096         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
20097         installation directory from the Registry, where the installer
20098         should have put it.
20099
20100 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
20101
20102         * gdk/x11/Makefile.am: Fix problem with installation directory for
20103         gdkx.h
20104
20105         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
20106         <mrcooger@cyberverse.com> so that when selecting menus with the
20107         mouse, the first item will not be selected, but when selecting
20108         with an accelerator, or navigating left-right on a menubar with
20109         the menus popped up, the first item will be selected.
20110
20111 2000-04-05  Dan Damian  <dand@dnttm.ro>
20112
20113         * configure.in: Added "ro" to ALL_LINGUAS.
20114
20115 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
20116
20117         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
20118         indentation.
20119
20120         * Makefile.am (EXTRA_DIST): Fix typo.
20121
20122         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
20123         to catch gdkconfig.h
20124
20125         * gtk/gtkitemfactory.c: Added FIXME.
20126
20127 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
20128
20129         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
20130         s/return_if_fail/return_val_if_fail/g and add a return value.
20131
20132 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
20133
20134         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
20135         merge slipup.
20136
20137         * gdk/gdkinput.h: Fix missing line from merge.
20138
20139 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
20140
20141         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
20142         instead of gdkprivate.h.
20143
20144 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
20145
20146         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
20147         parent class to correctly be GtkDialogClass.
20148
20149 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
20150
20151         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
20152         toplevel windows and their immediate children by their parents,
20153         since the size of toplevel windows is out of our immediate
20154         control and we don't get any real benefit from trying to track
20155         this size for clipping.
20156
20157         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
20158         for input_only windows.
20159
20160         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
20161         to fix some hacks and make sure that we don't try to set the
20162         background of input only windows.
20163
20164 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
20165
20166         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
20167         the _really_ internal stuff, and leave gdkprivate.h for the fake private
20168         stuff that we've traditionally exposed.
20169
20170         * gdk/**.c: Use gdkinternals.h where appropriate.
20171
20172         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
20173         not include gdkprivate-x11.h, move all stuff of conceivable public
20174         interest into gdkx.h; keep all really private stuff in
20175         uninstalled header gdkprivate-x11.h.
20176
20177         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
20178         image->image_put on windows through a new function _gdk_window_draw_image()
20179         to allow us to do backing store for images. (Sort of ugly)
20180
20181         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
20182         contexts locally so that we can offset them properly when drawing 
20183         onto backing pixmaps.
20184
20185         * gdk/gdkinput.h: Reindented
20186
20187         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
20188         pixmap or color for the window, so we can properly initialize
20189         our double-buffer pixmaps, and also so that we temporarily set
20190         a background of None while scrolling.
20191
20192         * gdk/gdkregion.h: Revise region boolean operators to have an
20193         interface that is actually convenient - switch from creating new
20194         regions on every op, to "methods" that modify existing regions
20195         (A = A OP B). 3 argument forms which allow dest == src, would also
20196         be possible, but the current interfaces seem to map nicely
20197         onto what needs to be done. (There is quite a lot of region
20198         code in GDK now.)
20199
20200         * gdk/gdkregion.h: Add constructor from rectangle and a copy
20201         operator.
20202
20203         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
20204         gdkpoly-generic.h: Copy region code from Xlib, switch it over
20205         to 32 bit coordinates, modify it to be mostly GTK+ style
20206         and to have interfaces that match gdkregion.h.
20207
20208         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
20209         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
20210         create a backing pixmap and redirect all drawing to
20211         that backing pixmap until a matching gdk_window_end_paint().
20212
20213         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
20214         Create a special drawable class for GtkWindow's that 
20215         redirects the drawing to the backing pixmap as necessary
20216         and then calls the real operations in _gdk_windowing_window_class.
20217
20218         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
20219         Store invalid region for each window. Generate expose events for invalid
20220         region in an idle. This replaces both the expose compression
20221         and the redrawing queuing in GTK+. It is both more efficient and
20222         simpler than either one individually and far more so then the
20223         combination.
20224
20225         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
20226         Emulate 32 bit coordinates for windows with 16 bit coordinates
20227         by offsetting drawing, guffaw scrolling techniques and
20228         mapping/unmapping child windows as necessary.
20229
20230         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
20231         where, when invalid regions are processed, the region is stored,
20232         and if expose events come in that are detectably duplicate
20233         the processed exposes (by comparison of event serial numbers),
20234         the stored region is subtracted out of those exposes.
20235
20236         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
20237         regions newly exposed when scrolling or resizing windows.
20238         This, combined with forcing processesing of queued invalidated
20239         regions, gives nice flicker-free scrolling.
20240
20241         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
20242         invalidated regions after every scroll.
20243
20244         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
20245         emulation in GDK. Its, for all practical purposes just a
20246         GtkViewport/GtkFixed hybrid now.
20247
20248         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
20249         (16-bit) structures as necessary instead of just casting.
20250
20251         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
20252         in terms of the structures from gdkregion-generic.c, using appropriate
20253         offsets from GDK to X11 coordinates. Cache clip mask and
20254         origin and ts origin locally and only flush to the server
20255         when drawing, to avoid constantly setting and resetting these
20256         values when offsetting GC's for scrolling and backing pixmaps.
20257
20258         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
20259
20260         * gtk/gtkcontainer.c: Call process_all_updates at end
20261         of resizing to reduce flicker. (Avoids having redraw
20262         lag arbitrarily behind resize under some circumstances)
20263
20264         * gtk/gtkentry.c: Remove old backing store code, and simply take
20265         advantage of the new backing store capabilities of GDK.
20266
20267         * gtk/gtkmain.c: Simple implementation of widget backing
20268         store - simply push a paint while handling each expose.
20269         (Should really be configurable widget for widget.)
20270         
20271         * gtk/gtkwidget.c: Remove all the old complicated redraw
20272         code, and simply invalidate the GDK windows from
20273         gdk_window_queue_clear(), etc. (Sigh, so much carefully
20274         debugged complexity ... gone to the winds.)
20275
20276         Remove all the code for suppressing expose events while
20277         resizes are pending; this isn't needed since the invalid
20278         areas won't be processed until after the resizes are
20279         processed, since they are in a lower priority idle.
20280
20281 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
20282
20283         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
20284         and height of dest rectangle for non-intersecting rectangles.
20285
20286 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
20287
20288         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
20289         for GdkRectangle.
20290
20291 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
20292
20293         * gdk/gdk{events,image,private,types,window}.h
20294          gdk/x11/gdkinputprivate.h: Change all coordinates
20295          from int16 to int. Also, Change width and height from
20296          unsigned to signed to avoid all the stupid C 
20297          signedness bugs.
20298
20299 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
20300
20301         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
20302         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
20303         Add some more detailed checking.
20304
20305         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
20306         New function to retrieve the depth of a drawable.
20307
20308         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
20309         field, reorder fields to save memory. 
20310
20311 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
20312
20313         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
20314         of the background image instead of scaling the background down to
20315         a line.
20316
20317         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
20318         which temporarily set slider to wrong size.
20319
20320         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
20321         queue_clear().
20322
20323 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
20324
20325 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
20326
20327         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
20328
20329 2000-03-17  Tor Lillqvist  <tml@iki.fi>
20330
20331         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
20332         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
20333
20334         * gdk/win32/gdkfont-win32.c
20335         * gdk/win32/gdkproperty-win32.c
20336         * gdk/win32/gdkselection-win32.c
20337         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
20338         now declared such.
20339
20340 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
20341
20342         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
20343
20344 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
20345
20346         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
20347         is called without trapping X errors.
20348
20349 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
20350
20351         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
20352         way into the fontset lists.
20353
20354 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
20355
20356         * gtk/gtkthemes.h: add extern "C" scope.
20357
20358 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
20359
20360         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
20361         to make appends to the list constant. (gtk-guy-990901-0.patch)
20362
20363 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
20364
20365         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
20366         for the typename hash table.
20367
20368 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
20369
20370         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
20371         to make sure we never divide by zero. 
20372         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
20373
20374 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
20375
20376         * gtk/gtkfontsel.c: Apply patch from
20377         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
20378         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
20379
20380         Also, some cleanups in atom handling.
20381
20382 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
20383
20384         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
20385         not GtkWidget.
20386
20387 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
20388
20389         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
20390         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
20391         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
20392         more guint wrap-around bugs before going to bed.
20393
20394 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
20395
20396         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
20397         guint wrap arounds in allocation.width.
20398
20399         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
20400         process untill we fit the allocation given.
20401
20402 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
20403
20404         * gtk/gtkwidget.c:
20405         (gtk_widget_unrealize): guard widget access with ref/unref
20406         around signal emission.
20407         (gtk_widget_hide): same here, but also check its destroyed
20408         state before queueing a resize.
20409
20410 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
20411
20412         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
20413         of gtk_default_insensitive_bg as insensitive base color.
20414
20415         * gtk/gtktext.c (gtk_text_style_set): set the background color according
20416         to the widget's state.
20417         (gtk_text_realize): same here.
20418         (gtk_text_state_changed): same here.
20419         (draw_bg_rect): compare background color against base[] from
20420         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
20421
20422 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
20423
20424         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
20425         grabs are active, unless a delete event is send to the toplevel
20426         of the currently grab holding widget.
20427
20428 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
20429
20430         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
20431         debugging g_print's.
20432
20433 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
20434
20435         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
20436         ever make the scrolled-window requisition ever depend on the 
20437         visibility state of the scrollbars for the AUTOMATIC policy. 
20438         This breaks the GTK+ requisition model, and causes loops.
20439
20440 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
20441
20442         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
20443         the default font to avoid problems with XFree86-4.0 where the
20444         default charset is iso10646-1, not iso8859-1.
20445
20446 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
20447
20448         * acinclude.m4
20449         * config.guess
20450         * config.sub
20451         * ltconfig
20452         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
20453
20454         * gtk/Makefile.am: minor cosmetic consistency tweak
20455
20456 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
20457
20458         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
20459         the activate_time to 0, so that we handle a quick
20460         press/release press/release properly and don't suppress
20461         the second release. (Red Hat bug #7545)
20462
20463 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
20464
20465         * gtk/gtkctree.c (row_delete):
20466         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
20467         bugs with destruction notifier, *always* update internal
20468         structures *before* calling user code.
20469
20470 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
20471
20472         A few more fixes for bug #5487, #2051, #2677.
20473         * gtk/gtkclist.c : 
20474         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
20475         not GDK_BUTTON_PRESS.
20476         (resync_selection): resync only if selection_mode is
20477         GTK_SELECTION_EXTENDED
20478         * gtk/gtkctree.c (resync_selection): same here
20479
20480 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
20481
20482         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
20483         gdk_drag_get_selection() and gtk_menu_detach().
20484
20485         [ From Jeroen Ruigrok/Asmodai ]
20486
20487 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
20488
20489         * gtk/gtknotebook.c (gtk_notebook_size_request): 
20490         page->tab_label can be NULL.
20491
20492 2000-01-25  Havoc Pennington  <hp@pobox.com>
20493         
20494         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
20495         arg is boolean
20496
20497         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
20498
20499         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
20500
20501         * gdk/gdkproperty.c (gdk_property_get): return boolean
20502
20503         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
20504
20505         * gdk/gdkim.c (gdk_im_ready): return boolean
20506
20507         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
20508
20509         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
20510         glib clash, should fix glib)
20511
20512         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
20513         (gdk_get_show_events): return gboolean, and canonicalize 
20514         to TRUE/FALSE
20515
20516         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
20517         colormap is private
20518         (gdk_colors_alloc): gboolean whether to be contiguous
20519         (gdk_color_equal): return gboolean since we are a predicate
20520         and not a qsort() (this looks semi-wrong due to glib breakage,
20521         IMO glib should be fixed)
20522         
20523         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
20524         (gdk_get_use_xshm): return gboolean
20525         (gdk_pointer_is_grabbed): return gboolean
20526
20527         * gdk/gdk.h: Change prototypes to match all the above changes,
20528         and re-run egtk-format-protos as required.
20529
20530 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
20531
20532         * gtk/gtkctree.c (resync_selection): 
20533         * gtk/gtkclist.c (resync_selection):
20534
20535         Return immediately if clist->drag_pos < 0. This is a workaround
20536         for the corrupt state that the clist gets into when a
20537         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
20538
20539         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
20540         
20541         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
20542         variable from recent commit.
20543
20544 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
20545
20546         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
20547
20548 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
20549
20550         * gtk/Makefile.am: prefix all autogenerated source that get build in
20551         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
20552         in builddir. since we subsequently cd into srcdir for autogeneration,
20553         the paths have to be stripped from the target file names, thusly we
20554         use $(@F) as target names now.
20555         put a comment about configure.in's --disable-rebuilds option,
20556         which can be used for non-writable source directories, for development
20557         setups though, srcdir has to be *writable*.
20558
20559 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
20560
20561         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
20562           Finish the job of allowing event to be NULL.
20563           (Fixes bug #4283, reported by Chris Blizzard)
20564
20565         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
20566           things so that the cursor appears on screen, properly
20567           take into account INNER_BORDER.
20568           (Fixes bug #4754, reported by Antonio Campos)
20569
20570 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
20571
20572         * gtk/gtknotebook.c (gtk_notebook_map): Don't
20573           show the tab_label unless it itself is visible.
20574
20575           gtk/gtknotebook.c (gtk_notebook_size_request):
20576           Do a better job of making sure that the visibility
20577           of the tab label corresponds to whether it should
20578           be mapped or not.
20579
20580 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
20581
20582         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
20583           Use the requisition, not the allocation, since the
20584           allocation has not necessarily been computed yet.
20585           (Pointed out by Eugene Osintsev)
20586
20587 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
20588
20589         * gtk/gtkstyle.c (gtk_style_new): Dont' set
20590           style/base[GTK_STATE_INSENSITIVE] both to
20591           gtk_default_insensitive_bg!
20592           (Bug #2187, reported by Jonathan Blandford)
20593
20594         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
20595           Add Alt_L, Alt_R to list of invalid accelerators.
20596           (Bug #3736, reported by Vlad Harchev)
20597
20598 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
20599
20600         * gtk/gtkfilesel.c (open_ref_dir): Fix several
20601         bugs which occured after an attempt to open 
20602         invalid home directory left cmpl_state->reference_dir == NULL.
20603
20604          - completion on files in home directory didn't work
20605          - completion on an empty string caused  segfault
20606
20607          (Bug #3678, reported by Steve Ratcliffe)
20608
20609         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
20610         cut and paste error that was causing scales to
20611         be incorrectly positioned.
20612         (Bug #2956,
20613          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
20614
20615 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
20616
20617         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
20618         when checking for dcgettext, if we've found we needed
20619         it for dgettext.
20620 +
20621 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
20622
20623         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
20624         queue_clear on NO_WINDOW widgets during a reparent,
20625         since at that point the window and widget heirarchies
20626         are out of sync. This stops crashing in some cases
20627         (the scrolled window reparent test, for instance), and
20628         _probably_ won't cause drawing errors.
20629
20630         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
20631         test do what it was supposed to do and be robust against
20632         window closings, etc. (Bug #2443)
20633
20634 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
20635
20636         * gtk/gtkentry.c: Fix return values on mouse events.
20637         (Bug #2686, Sky <seb_sky@yahoo.com>)
20638
20639         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
20640         (pointed out by George Lebl)
20641
20642         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
20643         (From Ettore Perazzoli  <ettore@helixcode.com>)
20644  
20645 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
20646
20647         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
20648         clicks between rows or outside calender area correctly.
20649         (Patch from Damon Chaplin)
20650
20651         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
20652         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
20653           Call destroy function when overwriting existing data. 
20654           (Pointed out by Damon Chaplin)
20655
20656 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
20657
20658         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
20659           which was causing problems on various systems with Xmu.
20660           This hasn't been needed for a very long time.
20661           (Fixes #1185 3167)
20662
20663 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
20664
20665         * gdk/gdki18n.h: Include <ctype.h> when defining
20666           gdk_isw* in terms of is* as a fallback.
20667           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
20668
20669 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
20670
20671         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
20672           realize the widget when it is size allocated!
20673           (old, old bug)
20674
20675         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
20676           Removed unused call to gdk_window_get_size() that
20677           showed up when the above was fixed.
20678
20679 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
20680
20681         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
20682           fix up widget->window when the widget is a
20683           NO_WINDOW container widget.
20684
20685 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
20686
20687         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
20688           to account for the fact that feof() does _not_ 
20689           return TRUE on errors, and thus avoid infinite loops
20690           when trying to use gdk_pixmap_create_from_xpm()
20691           on unreadable values.
20692
20693 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
20694
20695         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
20696
20697 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
20698
20699         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
20700           gdk_gc_set_dashes to take gint8 instead of gchar to
20701           make it clearer that it is _not_ a NULL terminated string.
20702
20703         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
20704           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
20705           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
20706           arguments.
20707
20708 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
20709
20710         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
20711         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
20712         background size relative to our allocation, guard against small
20713         allocations, we may have not yet been size allocated.
20714
20715 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
20716
20717         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
20718         not just version == 3. We implement all 3 + most of 4 - 
20719         (we don't support matching text/plain;charset=iso-8859-1
20720         to a dest that expects text/plain). We'll still advertise
20721         3 to be safe, but any client implementing version >= 3
20722         must interoperate with 3.
20723         
20724 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
20725
20726         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
20727         background and gc members, add a warning in gtk_tooltips_set_color()
20728         indicating that this function is deprecated.
20729
20730 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
20731
20732         * docs/gtkfaq.sgml: FAQ Update:
20733           - Minor cleanups (Emmanuel, me)
20734           - New questions:
20735                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
20736                 How can I retrieve the text from a GtkMenuItem? (timj)
20737                 How do I validate/limit/filter the input to a GtkEntry? (me)
20738                 Memory does not seem to be released when I free the list
20739                         nodes I've allocated (timj)
20740
20741 2000-03-07  Tor Lillqvist  <tml@iki.fi>
20742
20743         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
20744         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
20745         for which it is no use to call GetLastError onWin9x.
20746         (gdk_other_api_failed) New function, for general error
20747         reporting without calling GetLastError.
20748         (gdk_win32_api_failed) OTOH, this function always calls
20749         GetLastError. (gdk_win32_last_error_string) Remove this function,
20750         GLib has the equivalent now.
20751
20752         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
20753         call them with function name, file name and line number in the
20754         arguments.
20755
20756         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
20757         functions.
20758         
20759         * gtk/gtk.def: Add some missing entry points.
20760
20761         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
20762         gtk_paned_set_gutter_size, which don't exist any longer, as void.
20763         
20764         Fixes by Hans Breuer:
20765
20766         * gdk/makefile.msc: Update for debugging.
20767
20768         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
20769         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
20770         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
20771         in the dash_list.
20772
20773         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
20774         the x11 backend.
20775
20776         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
20777
20778         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
20779
20780 2000-03-04  Tor Lillqvist  <tml@iki.fi>
20781
20782         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
20783         just pixel value of background colour.
20784
20785         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
20786         containing code snippet previously duplicated in a couple of
20787         places.
20788         
20789         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
20790         gdk_colormap_color.
20791
20792         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
20793         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
20794         events for autorepeated Shift, Control and Alt keys. Use
20795         gdk_colormap_color.
20796
20797         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
20798         pointer is inside the window the cursor of which we are setting,
20799         call SetCursor immediately.
20800
20801         * gdk/win32/makefile.cygwin
20802         * gtk/makefile.cygwin: If we don't have the build number stamp
20803         file, use zero.
20804
20805         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
20806         gtk_paned_set_gutter_size as empty.
20807
20808         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
20809         
20810 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
20811
20812         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
20813           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
20814           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
20815           docs/gtk_tut.sgml docs/gtk.texi TODO:
20816
20817           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
20818
20819 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
20820
20821         * gtk/gtkcalendar.c: Implement num_marked_dates,
20822           and don't emit mutiple day_selected signals on
20823           month_prev.
20824
20825 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
20826
20827         * docs/make-todo (lineno): let title and logo be configurable so
20828         that GNOME can use this script too.
20829
20830         * TODO.xml: added logourl and a title
20831
20832 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
20833
20834         * TODO.xml: Added some UI items, and an explanatory
20835         comment at the top of the file.
20836
20837 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
20838
20839         * TODO.xml: some updates, added abunch of new entries.
20840         a note for those fiddeling with this file, when done
20841         with it, invoke:
20842         $ ./docs/make-todo TODO.xml >/dev/null
20843         and correct output errors before comitting changes.
20844
20845 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
20846
20847         * TODO.xml: Added XML-structured TODO file.
20848         * docs/make-todo: python script to turn TODO.xml into
20849           pretty XML output. 
20850
20851 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
20852
20853         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
20854         the function to let it draw the seven dots, instead of the old,
20855         much maligned, method.
20856         (draw_dot): New function to draw a dot.
20857
20858         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
20859         to draw the handle inside the border width as opposed to outside.
20860         Use paint function instead of gdk_draw_point.
20861
20862         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
20863         to draw the handle inside the border width as opposed to outside.
20864         Use paint function instead of gdk_draw_point.
20865
20866         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
20867         Change indenting to be more GTK like.
20868
20869 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
20870
20871         * docs/gtk_tut.sgml: New section on GtkCalendar
20872         * examples/calendar: Update example code
20873
20874 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
20875
20876         * docs/gtkfaq.sgml: FAQ Update
20877
20878 2000-02-19  Anders Carlsson  <andersca@gnu.org>
20879
20880         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
20881         to prevent the scroll event to be propagated upwards.
20882
20883 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
20884
20885         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
20886         OwnerGrabButtonMask from button entries for
20887         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
20888
20889         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
20890         to the event mask (which will result in button/press release
20891         being added to the event mask on Unix) so scrolling works
20892         for layouts in scroll windows.
20893
20894         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
20895
20896         Patch from Anders Carlsson  <andersca@gnu.org> to add
20897         a scroll event.
20898
20899         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
20900         scrolling to the "Test Scrolling" part of testgtk.
20901  
20902         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
20903  
20904         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
20905         it against GDK_SCROLL.
20906  
20907         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
20908         way of mouse wheel scrolling.
20909  
20910         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
20911  
20912         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
20913  
20914         * gtk/gtkmain.c: Removed previous mouse wheel hack.
20915  
20916         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
20917         gdk_event_mask_table.
20918  
20919         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
20920         GdkEventScroll handler.
20921  
20922         * gdk/gdkevents.h: Added GdkEventScroll structure.
20923  
20924 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
20925
20926         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
20927         and Anders Carlsson to change the Paned widgets so that they
20928         can be dragged from anywhere along the length. Also change
20929         the way that this is drawn to make this apparent.
20930
20931         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
20932         from George Lebl to check that option_menu->menu is present
20933         before getting history.
20934
20935 2000-02-14  Tor Lillqvist  <tml@iki.fi>
20936
20937         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
20938         before the assertion for non-NULL segment list.
20939
20940         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
20941         Seems that pattern brushes *must* be 8x8 pixels! At least on my
20942         machine, but it might be display driver dependent. Sigh, so make
20943         sure the stipple is that size. Does Windows suck or what?
20944
20945         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
20946         places.
20947
20948 2000-02-13  Havoc Pennington  <hp@pobox.com>
20949
20950         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
20951         refcount to 1
20952         (gdk_cursor_new): init refcount to 1
20953
20954         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
20955
20956 2000-02-13  Tor Lillqvist  <tml@iki.fi>
20957
20958         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
20959         so that we don't have to do unnecessary settings to the HDC.
20960
20961         * gdk/win32/gdkdrawable-win32.c
20962         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
20963         gdk_gc_predraw.
20964
20965         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
20966         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
20967         GDI paths, call WidenPath to get the outline of the stroken path,
20968         and then fill the outline (with the brush that was built from the
20969         stipple).
20970
20971         * gdk/win32/gdkgc-win32.c: Factor out common code from
20972         _gdk_win32_gc_new and gdk_win32_gc_set_values into
20973         gdk_win32_gc_values_to_win32values. Use correct colour for
20974         SetBkColor() (Until now the code actually used a random colour in
20975         the call to SetBkColor()... but that didn't show up as not many
20976         GDI APIs use the background colour. Pattern (opaque stippled)
20977         brushes do.)
20978
20979         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
20980         gdk_win32_api_failed): New functions for error logging.
20981
20982         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
20983         WIN32_API_FAILED to call them, passing function or file name and
20984         line number.
20985
20986         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
20987
20988         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
20989         GdkColor for foreground and background in GdkGCWin32Data.
20990
20991         * gdk/makefile.cygwin: Link in the resource object separately.
20992
20993         * gdk/win32/rc/gdk.rc
20994         * gtk/gtk.rc (New file)
20995         * gdk/win32/makefile.cygwin
20996         * gtk/makefile.cygwin: Update build number in DLLs automatically,
20997         as in GLib.
20998
20999 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
21000
21001         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
21002         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
21003         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
21004         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
21005         parameters given and cursor->ref_count. coding style fixups.
21006
21007         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
21008         not GtkWidget.
21009         
21010         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
21011         fix up widget macros and add _GET_CLASS() variant.
21012         
21013         * gtk/*.c: some GtkType fixups.
21014
21015 2000-02-09  Tor Lillqvist  <tml@iki.fi>
21016
21017         * gdk/win32/gdkproperty-win32.c
21018         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
21019         were reversed.
21020
21021 2000-02-04  Tor Lillqvist  <tml@iki.fi>
21022
21023         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
21024         g_filename_to_utf8 to convert the font names Windows gives us from
21025         whatever is the default codepage to UTF-8.
21026         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
21027         in the other direction.
21028
21029         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
21030         error in debugging output.
21031
21032 2000-02-02  Tor Lillqvist  <tml@iki.fi>
21033
21034         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
21035         and height parameters to gdk_window_clear_area(). Not minus one.
21036
21037 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
21038
21039         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
21040         checks if the widget passed to gtk_drag_get_data() was not the
21041         dest widget.
21042
21043 2000-02-01  Tor Lillqvist  <tml@iki.fi>
21044
21045         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
21046         g_filename_from_utf8 functions (which were added a moment ago to
21047         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
21048         size buffers.
21049
21050         gtk_file_selection_get_filename returns the filename in the C
21051         runtime encoding. It calls g_filename_from_utf8, but copies the
21052         returned string to a static buffer, which is returned. I think
21053         this is better than returning the result from g_filename_from_utf8
21054         directly, which would mean all apps that use it would have to free
21055         the return value. Or should this function care about this issue at
21056         all? Maybe a new function with clearly defined semantics.
21057
21058         * gtk/gtkfilesel.h: Add comment about
21059         gtk_file_selection_get_filename returning the filename in the C
21060         runtime's encoding.
21061
21062         * README.win32
21063         * gdk/gdk.def
21064         * gdk/makefile.{cygwin,msc}
21065         * gtk/gtk.def: Updates.
21066
21067         * gdk/gdkcursor-win32.c: Initialise refcount.
21068
21069 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
21070
21071         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
21072
21073 2000-01-30  Havoc Pennington  <hp@pobox.com>
21074
21075         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
21076         destroy
21077
21078         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
21079
21080         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
21081         implemented in platform-specific code
21082
21083         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
21084
21085         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
21086         underscore in front
21087
21088         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
21089         put an underscore in front
21090
21091         * gdk/gdkcursor.c: new file, implements
21092         gdk_cursor_ref/gdk_cursor_unref
21093
21094         * gdk/gdkcursor.h: Refcount GdkCursor
21095
21096         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
21097
21098 2000-01-29  Tor Lillqvist  <tml@iki.fi>
21099
21100         * gdk/gdkwindow.h
21101         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
21102
21103 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
21104
21105         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
21106         structures to properly inherit from GtkWidget not GtkBin.
21107
21108 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
21109
21110         * gtk+.spec.in: Added lib/gtk+/include/* to %files
21111         (bug #5178 - Peter Wainright)
21112         
21113         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
21114         so that it will be installed.
21115         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
21116
21117 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
21118
21119         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
21120         for the GtkStyleClass vtable const.
21121
21122         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
21123         take a const string argument like GtkTranslateFunc. This will
21124         require changes in use code.
21125
21126 2000-01-19  Tor Lillqvist  <tml@iki.fi>
21127
21128         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
21129         semantics (to mimic the X11 backend, which just calls XClearArea)
21130         is to check for zero width (and height), and in that case use the
21131         window's width minus x (height minus y). This fixes for instance
21132         some redraw problems with gtkclist, which were easily noticeable
21133         in the gtk file selection widget.
21134
21135         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
21136         windows.
21137
21138 2000-01-13  Tor Lillqvist  <tml@iki.fi>
21139
21140         * configure.in
21141         * gdk/Makefile.am
21142         * gdk/x11/Makefile.am
21143         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
21144         (bug #5177).
21145         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
21146         out later.
21147
21148 2000-01-09  Tor Lillqvist  <tml@iki.fi>
21149
21150         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
21151         WM_MOVE for iconified or invisible windows. This fixes various
21152         problems when minimising windows. Thanks to Bernd Herd.
21153
21154 2000-01-05  Tor Lillqvist  <tml@iki.fi>
21155
21156         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
21157         backend's draw_lines method, not draw_points.
21158
21159 2000-01-02  Tor Lillqvist  <tml@iki.fi>
21160
21161         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
21162         before Owen's reorganisation: Don't have queued_events and
21163         queued_tail statics in this file, but use gdk_queued_events and
21164         gdk_queued_tail. This makes exposure event compression work again.
21165
21166         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
21167         seem to be needed?
21168
21169 1999-12-30  Tor Lillqvist  <tml@iki.fi>
21170
21171         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
21172         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
21173         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
21174         doesn't do anything.
21175
21176         * gdk/gdk.def: Add gdk_xid_table_insert.
21177
21178         * gdk/win32/gdkprivate-win32.h
21179         * gdk/win32/gdkevents-win32.c
21180         * gdk/win32/gdkinput-win32.c
21181         
21182         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
21183         extension_events field in the GdkWindowWin32Data struct. Use only
21184         the extension_events field in GdkWindowPrivate. Previously one was
21185         set, and the other one tested, which broke tablet
21186         functionality. Thanks to Keishi Suenaga for pointing this out.
21187
21188 1999-12-18  Tor Lillqvist  <tml@iki.fi>
21189
21190         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
21191         When handling a single character (text length == 1), don't handle
21192         it as if it was UTF-8.
21193
21194 1999-12-11  Tor Lillqvist  <tml@iki.fi>
21195
21196         * Makefile.am: Distribute README.win32.
21197         
21198         * gdk/Makefile.am
21199         * gdk/win32/Makefile.am: Distribute Win32 files.
21200
21201         * gdk/makefile.msc: New file.
21202
21203         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
21204         after label).
21205
21206         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
21207         gdk_error_code as GDKVAR, as they are referred outside GDK.
21208
21209         * gdk/win32/makefile.msc: Update.
21210
21211         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
21212         tweaks. Check only if at least one of those Unicode subrange bits
21213         we care for is set. If no code page bits are set, guess (wildly)
21214         based on the charset.
21215
21216         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
21217
21218         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
21219         non-NULL.
21220
21221         * gtk/gtkdnd.c
21222         * gtk/gtklayout.c
21223         * gtk/gtkplug.c
21224         * gtk/gtkselection.c
21225         * gtk/gtksocket.c
21226         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
21227         appropriate. There must be a cleaner way to handle this?
21228
21229         * gtk/gtkrc.c: Must include windows.h on Win32.
21230
21231         * gtk/testgtk.c: No need to include gdkx.h.
21232
21233         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
21234
21235 1999-12-07  Tor Lillqvist  <tml@iki.fi>
21236
21237         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
21238         the rbearing is set to the same as the width, but this should be
21239         fixed.
21240
21241 1999-12-06  Tor Lillqvist  <tml@iki.fi>
21242
21243         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
21244         function. If Windows doesn't tell us what Unicode subranges a font
21245         covers, guesstimate based on the codepages it covers. This will
21246         hopefully help those Windows versions or fonts that don't give us
21247         any useful Unicode subrange information with GetTextCharsetInfo.
21248         Call this function in gdk_font_load_internal.
21249
21250         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
21251         minor changes.
21252
21253 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
21254
21255         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
21256         New function, long needed.
21257
21258 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
21259
21260         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
21261         only_if_exists argument of gdk_atom_intern to
21262         bool.
21263
21264 1999-11-25  Tor Lillqvist  <tml@iki.fi>
21265
21266         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
21267         Fix two copy&paste errors.
21268
21269         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
21270         win32 has changed.
21271
21272         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
21273         GdkWin32SingleFont struct.
21274
21275         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
21276         subranges of loaded fonts. Clear font signature first, in case
21277         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
21278         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
21279
21280         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
21281         Unoffset clip region.
21282
21283 1999-11-23  Tor Lillqvist  <tml@iki.fi>
21284
21285         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
21286         event->any.window before calling filter functions.
21287
21288 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
21289
21290         * gtk/gtkgamma.h: Adapt cast macros to standard.
21291
21292 [ Merges from 1.2 ]
21293
21294 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
21295
21296         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
21297         If translation does not include a '/', use entire
21298         translation instead of crashing.
21299
21300 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
21301
21302         * docs/gtk_tut.sgml:
21303         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
21304
21305 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
21306
21307         * gtk/gtkselection.c (gtk_target_list_remove): Use
21308         g_list_remove_link, not g_list_remove.
21309
21310         [ From Geert Bevin <gbevin@thunderstorms.org> ]
21311         
21312 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
21313
21314         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
21315         statement upon unselection (how the heck did that slip in?).
21316
21317 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
21318
21319         * gtk/gtktext.c (gtk_text_freeze): 
21320         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
21321         in frozen state (and aparently crashes). patch provided by Anders
21322         Melchiorsen <and@kampsax.dtu.dk>.
21323
21324 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
21325
21326         * fix insensitive default/focus widget activation,
21327         reported by Matt Goodall <mgg@isotek.co.uk>.
21328
21329         * gtk/gtkwindow.c (gtk_window_key_press_event): 
21330         (gtk_window_activate_default):
21331         (gtk_window_activate_focus):
21332         return handled=FALSE for actiavtion of insensitive default
21333         widgets. return handled=TRUE for activation of insensitive
21334         focus widgets. don't activate in either case.
21335
21336 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
21337
21338         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
21339         and $glib_cflags to match library order and in the
21340         theory that an old version of GLib is more likely to
21341         be in the include directory for X then vice-versa.
21342         (Bug #2776)
21343
21344 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
21345
21346         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
21347         to determine the locale for fontsets, not LC_MESSAGES;
21348         the user may want English messages with a handling
21349         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
21350         will still be broken) (Bug #2891)
21351
21352 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
21353
21354         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
21355
21356 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
21357
21358         * gtk/gtkrc.ko: Changed the Korean default fontset.
21359
21360 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
21361
21362         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
21363         where when scrolling to the left or top double exposes
21364         were done, causing major slowdowns.
21365
21366 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
21367
21368         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
21369         names to lowercase and alphanumeric, before looking
21370         them up.
21371
21372         * gtk/Makefile.am: Install codeset variant gtkrc files
21373         with normalized names.
21374
21375 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
21376
21377         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
21378         popup menus when the menu is already visible, but its parent
21379         is still hidden, (happens after tornoff window got hidden).
21380
21381 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
21382
21383         * gtk/Makefile.am (install-data-local): Fix
21384         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
21385         deleted, causing error messages on install.
21386
21387 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
21388
21389         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
21390         the handle as well, since we now sometimes ignore
21391         exposes on the handle while resizing.
21392
21393 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
21394
21395         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
21396         extra g_free introduced in one of the last one or two 
21397         commits.
21398
21399 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
21400
21401         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
21402         consistent, put each style that a gtkrc.* file creates
21403         in a unique namespace, remove old files before installing.
21404
21405 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
21406
21407         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
21408         gtk_rc_init is called multiple times. (Yes, people who
21409         do that have bugs in their code.)
21410
21411 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
21412
21413         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
21414         Remove it since it's generated by the Makefile anyway
21415
21416 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
21417
21418         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
21419         device->info.axes for core pointer.
21420
21421 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
21422
21423         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
21424         idle_id, to deal with obsolete, broken C libraries.
21425
21426 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
21427
21428         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
21429         allocation->x/y twice!
21430
21431         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
21432         consistent with gtk_vscale_pos_trough().
21433
21434 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
21435
21436         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
21437         be queueing a resize on a toplevel container between
21438         the time we show it and when we map it. So, we need
21439         to test GTK_WIDGET_VISIBLE() for toplevels, and only
21440         use GTK_WIDGET_DRAWABLE() for child windows.
21441
21442 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
21443
21444         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
21445         (fixes bug #2144)
21446
21447 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
21448
21449         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
21450         container DRAWABLE (instead of VISIBLE), so we don't queue
21451         resizes on non-toplevel containers.
21452
21453 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
21454
21455         * gtk/gtkselection.[ch]: Make the data argument
21456         const guchar *.
21457
21458 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
21459
21460         * gtk/gtkwindow.c: Try to behave sensibly if 
21461         the focus widget is the window itself. (Should
21462         we allow this at all?)
21463
21464 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
21465
21466         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
21467         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
21468         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
21469         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
21470         in prototypes and implementations consistent (Tomas Ogren).
21471
21472         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
21473         before the widget is unparented (reported by damon).
21474
21475         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
21476         since we provide unsigned data anyways.
21477
21478 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
21479
21480         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
21481         the call to gtk_tooltips_layout_text() until later.
21482
21483         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
21484         Call gtk_widget_ensure_style() before using the style.
21485
21486 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
21487
21488         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
21489         for old widgets that don't propagate draws to all
21490         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
21491
21492 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
21493
21494         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
21495         for a redraw but just the widget that requested the resize.
21496
21497 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
21498
21499         * gtk/gtkcontainer.c: added new widget level method
21500         gtk_container_set_reallocate_redraws() and a GtkContainer flag
21501         reallocate_redraws : 1 to reflect the setting, exported this through
21502         the argument system as a boolean ::reallocate_redraws.
21503
21504         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
21505         on the widget because the allocation changes, do so as well for
21506         widget->parent if the parent has reallocate_redraws set to TRUE.
21507         with that containers requesting reallocation redraws get automatically
21508         redrawn if their children changed allocation (this unfortunately
21509         affects also other children that didn't change allocation, but we
21510         cannot work around that before 1.3).
21511
21512 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
21513
21514         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
21515         _and_ height are >0 (not _or_).
21516
21517         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
21518         instead of gtk_container_queue_resize(), which is a core gtk internal
21519         function (must have been on crack when i queued that).
21520
21521         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
21522         we can check more reliably if we want to discard expose events.
21523         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
21524         flag.
21525         
21526         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
21527         we simply trust these events. for deciding whether to discard exposes,
21528         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
21529         
21530 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
21531
21532         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
21533         queues of areas that are completely off screen.
21534
21535         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
21536         logic for handleboxes.
21537
21538         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
21539         check on width/height.
21540
21541 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
21542
21543         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
21544         we are fine with using $@ the way we do (if we actually encounter
21545         brokeness with $@ in VPATH builds because of additional path prefixes,
21546         we need to use $(@F) actually).
21547
21548 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
21549
21550         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
21551         short lived bugs, that would allow language bindings to do surgeries
21552         to our guts.
21553
21554 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
21555
21556         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
21557         where comparison was being done against an uninitialized
21558         value causing intermittant results depending on
21559         compiler flags. Also make it clearer that we aren't
21560         ever initializing the child as 0x0 (though this will
21561         be caught in gtk_widget_size_allocate())
21562
21563 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
21564
21565         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
21566         gtk_window_unset_transient_for() call after we do checks
21567         involving the old transient parent.
21568         [ From Lance Capser <lmc@cyberhighway.net> ]
21569
21570 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
21571
21572         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
21573         an empty file.
21574
21575 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
21576
21577         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
21578         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
21579
21580 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
21581
21582         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
21583         `$@' is valid only in the build dir, not after we've done 
21584         `cd $srcdir'.  Also use `test -f' instead of less portable
21585         `test -e'.
21586
21587 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
21588
21589         * gtk/gtktext.c (correct_cache_insert): Rewrite
21590          for simplicity, and hopefully correctness.
21591          (Fixes bug #1322, which was a segfault when
21592           on some insertions with the properties around
21593           the insertion set up just wrong.)
21594
21595         * gtk/gtktext.c (gtk_text_adjustment): When we receive
21596          a "changed" signal, clamp the new value to the adjustment
21597          bounds to avoid segfaulting if someone tries to change
21598          the adjustment to a bogus value. (Bug #1795)
21599
21600 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
21601
21602         * gtk/gtkmain.c: Ignore unexpected destroy notifies
21603         for children, for toplevel windows handle them
21604         like delete_event.
21605
21606         * gtk/gtkplug.c: Add an unrealize handler so that
21607         we unref plug->socket_window when we are done
21608         with it.
21609
21610 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
21611
21612         * gtk/gtktext.c (clear_area): Fix stupid signedness
21613          problem that was causing background to sometimes
21614          be misaligned.
21615
21616 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
21617
21618         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
21619         
21620         * gtk/gtkmenu.c (gtk_menu_position): Make
21621          sure we never position menus with negative x, y,
21622          since gtk_widget_set_uposition() can't handle that.
21623
21624         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
21625          Modify the positioning code a bit so that we always
21626          put the top-left corner onscreen. (This is for
21627          UI reasons, gtk_menu_position() now takes care of
21628          gtk_widet_set_uposition() brokeness.)
21629
21630 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
21631
21632         * gtk/Makefile.am: fixed up things for -jx, x > 1.
21633
21634 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
21635
21636         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
21637           RC style that is passed in. The lack of the ref
21638           before was a bug. If people worked around this
21639           bug, this will introduce a slight memory leak
21640           in their code. The code should typically look like:
21641
21642             rc_style = gtk_rc_style_new ();
21643             [...]
21644             gtk_widget_modify_style (widget, rc_style);
21645             gtk_rc_style_unref (rc_style);
21646
21647         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
21648           the style if it was already set.
21649
21650         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
21651           style if it was set before.
21652
21653 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
21654
21655         * gtk/testgtk.c (main): Add a check to see if we
21656           are being run from the correct directory and
21657           to quit nicely if we are not.
21658
21659         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
21660           static.
21661
21662 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
21663
21664         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
21665
21666         * gtk/gtkwindow.c:
21667         queue resizes unconditionally (gtk_widget_queue_resize will figure
21668         what to do if the window is not realized).
21669         (gtk_window_move_resize): only recenter the window
21670         for GTK_WIN_POS_CENTER_ALWAYS.
21671         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
21672         the same way as GTK_WIN_POS_CENTER.
21673
21674 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
21675
21676         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
21677         with (!(info->last_flags & GDK_HINT_POS)) instead of
21678         (!info->last_flags & GDK_HINT_POS).
21679
21680         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
21681         new_height unconditionally, because we use these values even if
21682         !default_size_changed && !hints_changed.
21683         comented the (default_size_changed || hints_changed) case with
21684         respect to resize rejects from the window manager.
21685
21686         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
21687         in the zvt condition hack, since this includes the window hints, set
21688         the hints after the handling_resize case.
21689
21690         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
21691         window is initially shown with to the geometry.
21692
21693 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
21694
21695         * gtk/gtkwindow.c (gtk_window_move_resize):
21696         s/size_changed/default_size_changed/g so i know what's
21697         really going on (frying brain on smaller flame now).
21698
21699 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
21700
21701         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
21702         we have size_changed upon handling_resize. this is a gross
21703         workaround for the broken zvt widget and should be removed in
21704         1.3 again (search for FIXME).
21705         Owen provided an accurate comment for this:
21706
21707         /* We could be here for two reasons
21708          *  1) We coincidentally got a resize while handling
21709          *     another resize.
21710          *  2) Our computation of size_changed was completely
21711          *     screwed up, probably because one of our children
21712          *     is broken. It's probably a zvt widget.
21713          *
21714          * For 1), we could just go ahead and ask for the
21715          * new size right now, but doing that for 2)
21716          * might well be fighting the user (and can even
21717          * trigger a loop). Since we really don't want to
21718          * do that, we requeue a resize in hopes that
21719          * by the time it gets handled, the child has seen
21720          * the light and is willing to go along with the
21721          * new size. (this happens for the zvt widget, since
21722          * the size_allocate() above will have stored the
21723          * requisition corresponding to the new size in the
21724          * zvt widget)
21725          *
21726          * This doesn't buy us anything for 1), but it shouldn't
21727          * hurt us too badly, since it is what would have
21728          * happened if we had gotten the configure event before
21729          * the new size had been set.
21730          */
21731
21732 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
21733
21734         * gtk/gtkrc.c: deal properly with the fact that RC
21735           style lists may include rc styles more than once.
21736
21737         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
21738           unused static function.
21739
21740         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
21741           stack of directories of RC files currently being
21742           parsed and implicitely add them to pixmap path.
21743           
21744           This fixes a bug where the directory would get
21745           appended then overwritten by pixmap_path declarations.
21746
21747           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
21748
21749         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
21750           theme's exit function. (Patch from Peter Wainwright,
21751           bug #1454)
21752
21753         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
21754           Add a destroy() handler to take care of removing
21755           group for menu item. (Fixes bug #1197)
21756
21757         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
21758           in warning message.
21759
21760 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
21761
21762         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
21763         roundtrip to figure window's width and height, since we know that
21764         anyways from widget->allocation.
21765
21766 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
21767
21768         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
21769           the hints after we request the new size.
21770
21771 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
21772
21773         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
21774           GTK_WIDGET_REALIZED() assertion - we can compute the
21775           hints before we are realized.
21776
21777         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
21778           hint changing so that we have a value of hints_changed
21779           when we decide whether to constrain the window size.
21780
21781         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
21782
21783         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
21784         change back to G_MAXINT.
21785
21786 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
21787
21788         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
21789         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
21790         contain uncluttered values.
21791         (gtk_window_compute_hints): simply assert that window is realized
21792         and that geometry_info is valid, since we rely on this anyways.
21793         (gtk_window_constrain_size): major cleanups to the code.
21794         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
21795         for the base size, instead of the minimums. use 32767 as max width
21796         and height (like in gtkwindow.c) instead of G_MAXINT.
21797
21798 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
21799
21800         * cleaned up the GtkContainer.need_resize flag handling mess, we
21801         only need to force resize requests when we were prematurely
21802         realized, or our widget tree was modified when we were temporarily
21803         hidden. handling these cases directly upon showing the window (i.e.
21804         while the GdkWindow is still unmapped) avoids the need to wait for
21805         a configure event response and therefore makes the GUI more snappier
21806         and avoids blank windows during the roundtrip.
21807
21808         * gtk/gtkwidget.c:
21809         (gtk_widget_hide): 
21810         (gtk_widget_show): don't queue resizes on toplevels, they know how
21811         to deal with matters.
21812
21813         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
21814         flag directly for not visible resize containers and spare us unecessary
21815         signal emissions.
21816
21817         * gtk/gtkwindow.c:
21818         (gtk_window_realize): if we need to enforce premature size allocation,
21819         queue a container resize so we are correctly resized later on.
21820         (gtk_window_init):
21821         (gtk_window_size_request):
21822         don't freak around with the ->need_resize flag,
21823         gtk_container_queue_resize() will care about that.
21824         (gtk_window_show):
21825         handle initial resizing issues here, we can handle matters better in
21826         this place, especially since we know that our GdkWindow is still
21827         unmapped.
21828         (gtk_window_move_resize):
21829         don't care about ->need_resize at all.
21830         handle size changes properly that occoured while we waited for a
21831         configure event.
21832
21833 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
21834
21835         * gtk/gtkwidget.c (gtk_widget_set_uposition):
21836         * gtk/gtkwindow.[hc] (gtk_window_reposition):
21837         Move the hint setting code from gtk_widget_set_uposition
21838         to here; set the hints so that we respect any previously
21839         set geometry hints.
21840
21841         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
21842         change the window hints here or move the window here,
21843         let that happen in gtk_window_move_resize().
21844
21845 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
21846
21847         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
21848         to already queued resizes (and therefore redraws) on a widget, check
21849         its anchestry as well.
21850
21851         * gtk/gtkcontainer.c:
21852         (gtk_container_queue_resize): clear resize widgets for resize
21853         containers before aborting prematurely. this is especially important
21854         for toplevels which may need imemdiate processing or their resize
21855         handler to be queued.
21856         (gtk_container_dequeue_resize_handler): added new internal function for
21857         gtkwindow.c.
21858
21859         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
21860         configure event, take possible changes in window position into account
21861         as well.
21862         if we request a new window size, queue up a resize handler that will
21863         last until the configure event response arrives.
21864         combined the ->need_resize case (initial show) with the general size
21865         (hints) changed case and added even more comments.
21866         if !auto_shrink, only revert to the old allocation if the new size
21867         is smaller than the current allocation.
21868
21869 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
21870
21871         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
21872                            gtk_window_set_geometry_hints
21873                            gtk_window_set_default_size):
21874         When hints are set, queue a resize so that the hints will
21875         be eventually reset on the toplevel.
21876
21877         * gtk/gtkwindow.c (gtk_window_show): Use
21878         gtk_window_compute_default_size(). Clear the need_resize flag
21879         on the initail map so that we don't unnecessarily trigger the
21880         resize code.
21881
21882         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
21883         into separate functions. Compare the hints we are setting
21884         with what we set last time so that we can accurately
21885         tell when we need to reset the hints.
21886
21887         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
21888         function to figure out the size from requisition
21889         and default_size.
21890
21891         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
21892         from fvwm to constrain a size to the geometry hints.
21893
21894         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
21895         to compare two sets of geometry hints.
21896
21897         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
21898         from gtk_window_set_hints(), just compute the hints,
21899         don't set them.
21900
21901         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
21902         code from gtk_window_move_resize() to separate function,
21903         rationalize a bit.
21904
21905 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
21906
21907         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
21908         structure into a new private structure.
21909
21910         * gtkrc.c: Split GtkRcStyle into public/private.
21911         In the private part, add a list of pointers to the
21912         RcStyle lists this RcStyle participates in.
21913
21914         * gtkrc.c: When a RcStyle is free, remove all
21915         lists referencing it from the 
21916         realized_style_ht hash, and free those lists.
21917         
21918         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
21919         gtk_rc_init(), since that adds the default styles
21920         to the list of parsed RC files again.
21921
21922         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
21923         
21924 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
21925
21926         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
21927         checks that ensure that a widget's allocation is at least 1 in width
21928         and height. (GNOME note: this doesn't affect old panel code anymore,
21929         because GtkSocket will request width and height of at least 1 since
21930         Fri Jul 23).
21931
21932         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
21933         allocated yet (happens if the user realizes the window prematurely),
21934         size request and allocate it.
21935         (gtk_window_size_allocate): guard against guint underflows.
21936
21937 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
21938
21939         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
21940         in gtk_built_sources, so gtk.defs gets built prior to all other
21941         sources.
21942
21943 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
21944
21945         * gtk/Makefile.am:
21946         invoke indent on gtkmarshal.*. 
21947         rewrote source generation rules, use COPYING as oldest source tag for
21948         a piggyback rule to generate all sources from (don't touch it ;).
21949         major cleanups, strip spaces on build rules for GNU Make.
21950
21951         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
21952         source and target files from commandline arguments. don't invoke indent.
21953
21954 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
21955
21956         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
21957         notebook after switch to avoid drawing problems.
21958         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
21959         
21960         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
21961         show them instead. 
21962         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
21963
21964 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
21965
21966         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
21967         notebook after switch to avoid drawing problems.
21968         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
21969         
21970         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
21971         show them instead. 
21972         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
21973
21974 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
21975
21976         * gtk/gtkwindow.c:
21977         we use window->need_resize from configure_event now, to indicate that
21978         the gtkwindow should keep its allocation (e.g. because the user resized
21979         the window through window manager handles). resize_count is now reliably
21980         used to figure whether we got the allocation we requested from the
21981         window manager.
21982         configure events get queued as resizes now, the real stuff (size
21983         computation and allocation) now only goes on in gtk_window_move_resize().
21984         GtkWindow's requisition now contains its *real* requisition (like all
21985         other widgets), *not* taking usize into account.
21986         geometry_info->last_{width|height} is now updated from set_hints() only
21987         so it always contains the last hints we set for the window manager.
21988         made some event handlers return TRUE instead of FALSE.
21989         the overall code should be much more straight forward now, and the
21990         significant code portions are accompanied by comments now.
21991         (gtk_window_set_hints):
21992         removed requisition argument and made it
21993         fetch the requisition through gtk_widget_get_child_requisition.
21994         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
21995         does that now.
21996         (gtk_window_show):
21997         ensure that the widget is realized before calling 
21998         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
21999         ensure that we got properly size requested and allocated before
22000         realization.
22001         (gtk_window_configure_event):
22002         ignore plain window moves, or reallocate the widget tree through the
22003         resize queue otherwise.
22004         (gtk_window_move_resize):
22005         mostly rewrote this function to figure window manager hints more
22006         reliably, coalesce window moves and resizes to reduce configure events
22007         and do actuall size allocations.
22008
22009 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
22010
22011         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
22012         that have a resize pending, because a redraw is already queued for them.
22013
22014         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
22015         hack to clear resize_widgets.
22016
22017         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
22018         for resize containers prior to size allocation. (this is also a bit
22019         ugly, but avoids side effects for stopped emissions and is thus more
22020         reliable).
22021         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
22022
22023         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
22024         function from gtk_tooltips_expose, as we connect to ::expose_event
22025         *and* ::draw now.
22026
22027 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
22028
22029         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
22030         checks.
22031         (gtk_target_list_unref): Likewise.
22032
22033         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
22034
22035 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
22036
22037         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
22038         guard against division by zero. (Fixes bug #1339)
22039
22040 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
22041
22042         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
22043         Prevent the trivial leak of information of allowing
22044         word motion when the entry is not visible.
22045
22046 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
22047
22048         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
22049         modality to error dialog as well as confirmation dialogs.
22050         (Bug #1803, reported by Rosanna Wing Sze Yuen)
22051
22052 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
22053
22054         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
22055         tree->view_lines.
22056         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
22057
22058         * gtk/Makefile.am (install-data-local): Solaris apparently
22059         has various troubles with ln -f; use rm first instead.
22060         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
22061
22062 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
22063
22064         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
22065         use `cp' followed by `rm' (the `rm' was already there).
22066
22067 July 30, 1999 Elliot Lee <sopwith@redhat.com>
22068         
22069         * configure.in: Fix autoconf warnings about cross compilation by
22070         trying to provide sane defaults for AC_TRY_RUN.
22071         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
22072         put them into $(srcdir) when generated. Also add a dependency of
22073         gtksignal.h on gtkmarshal.h for -j builds. 
22074         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
22075
22076 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
22077
22078         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
22079         GDK_THREADS_{LEAVE,ENTER} pair.
22080         (From Paul Fisher <pnfisher@redhat.com>)
22081
22082 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
22083
22084         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
22085         width and height are always >0 (owen).
22086
22087 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
22088
22089         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
22090         change that assured that a widget's allocated with and height are
22091         always >1, since this breaks *buggy* panel code. unfortunately this
22092         back-breaks the gimp's color selector.
22093
22094         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
22095         allocation is always >0 in width and height, before sending the
22096         configure event; this is a *gross* hack to get the gimp back to work.
22097         
22098         * marked both cases with TODO-1.3
22099
22100 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
22101
22102         * gtk/gtktext.c: Don't display wrap indicators when
22103         text is not editable and word wrap is on.
22104
22105 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
22106
22107         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
22108         option menus here as they are not derived from menu shell, assure that
22109         the option menu has a menu we can add items to.
22110
22111 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
22112
22113         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
22114         width/height to (gint) before calculations and check against < 0 to
22115         avoid guint wraparounds.
22116
22117 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
22118
22119         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
22120         width and height is never zero. sanity check both dimensions against
22121         32767 and issue a warning if the allocation is greater than that.
22122
22123 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
22124
22125         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
22126         to g_main_pending() as well.
22127
22128 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
22129
22130         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
22131         call to g_main_iteration() - since that will regrab
22132         GTK+ lock to process events.
22133
22134 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
22135
22136         * gtk/gtkwindow.c
22137         - Regularize with the rest of GTK+ by making widget->requisition
22138           not reflect the set_usize()
22139         - Always recompute geometry hints, then check if they
22140           changed before sending them to the X server. The
22141           previous checks for changes would fail in a number
22142           of circumstances. 
22143
22144 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
22145
22146         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
22147
22148 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
22149
22150         * gtk/gtkdnd.c:
22151         - Code cleanups
22152         - Instantaneously update on modifier key presses
22153         - Allow cancellation of the drag with Escape.
22154
22155 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
22156
22157         * gtk/testgtk.c (create_handle_box): Set the policy
22158         to auto_shrink - otherwise the appearance is rather
22159         strange when flipping between horizontal and vertical.
22160
22161 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
22162
22163         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
22164         (gtk_window_set_default_size): don't change a value if it's < 0.
22165         queue a resize.
22166
22167 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
22168
22169         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
22170
22171 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
22172
22173         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
22174         add an extra "/" when concating "/" + filename.
22175         (From Matt Grossman <mattg@oz.net>)
22176
22177 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
22178
22179         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
22180         for fg_gc if we set it for drawing pixmap.
22181
22182 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
22183
22184         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
22185         
22186         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
22187         already set, call old engine's destroy function and
22188         unref the old engine.
22189
22190 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
22191
22192         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
22193
22194 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
22195
22196         * gtk/gtkaccelgroup.h: mark certain functions as internal.
22197
22198 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
22199
22200         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
22201         expand behaviour changed.
22202
22203         * gtk/gtklabel.c (gtk_label_set_pattern):
22204         (gtk_label_set_justify):
22205         (gtk_label_set_line_wrap):
22206         don't bother invoking queue_clear, the reallocation does
22207         that for us, always free_words so the upcoming resize will
22208         relayout the label's contents.
22209
22210 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
22211
22212         * applied argument implementation patches from Elena Devdariani
22213         <elena@cogent.ca>.
22214
22215         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
22216         ::space_style, ::relief
22217         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
22218         * gtk/gtkpreview.c: ::expand
22219         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
22220         * gtk/gtknotebook.c: ::homogeneous
22221         * gtk/gtklabel.c: ::wrap
22222         * gtk/gtklist.c: ::selection_mode
22223         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
22224         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
22225         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
22226         * gtk/gtkclist.c: ::sort_type
22227         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
22228         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
22229
22230 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
22231
22232         * gtk/gtkstyle.c: Removed ill-thought-out part of last
22233         comment.
22234
22235 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
22236
22237         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
22238         counting right when we have to attach a new style
22239         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
22240
22241         * gtk/gtkstyle.c: Documented the refcounting
22242         peculularities of gtk_style_attach.
22243
22244 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
22245
22246         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
22247         window types.
22248
22249         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
22250         of GTK_TOPLEVEL for creating the window.
22251
22252 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
22253
22254         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
22255         the last argument (reported by Per Winkvist).
22256         
22257 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
22258
22259         Fixes for invisible XOR lines (Frank Loemker
22260         <floemker@TechFak.Uni-Bielefeld.DE>)
22261         
22262         * gtk/gtkclist.c (gtk_clist_realize): Always use
22263         a non-zero pixel for GDK_XOR.
22264
22265         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
22266         Use GDK_INVERT instead of GDK_XOR.
22267
22268 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
22269
22270         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
22271         signals if h/voffsets differ from adjustment values.
22272         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
22273
22274 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
22275
22276         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
22277         ::selection-done emissions up to the topmost menu shell.
22278
22279 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
22280
22281         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
22282         the user data on the window before destroying it.
22283
22284         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
22285         unrealize handler to take care of destroying 
22286         notebook->panel properly. 
22287         (Bug #1198 - Morten Welinder <terra@diku.dk>)
22288
22289         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
22290         of g_new and g_realloc to stop memory leak. (Actually,
22291         we could just use g_realloc(), but I'm not 100% sure
22292         that is portable).
22293         (Bug #1196 - Morten Welinder <terra@diku.dk>)
22294
22295 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
22296
22297         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
22298
22299         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
22300         for fontsets.
22301
22302         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
22303         with bin/button confusion.
22304
22305 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
22306
22307         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
22308         and show how preselection of radio items is done.
22309
22310 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
22311
22312         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
22313         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
22314         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
22315         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
22316         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
22317         * gtk/gtktable.c (gtk_table_attach): 
22318         * gtk/gtklist.c (gtk_list_insert_items): 
22319         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
22320         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
22321         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
22322         * gtk/gtkbin.c (gtk_bin_add): 
22323         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
22324         * gtk/gtkfixed.c (gtk_fixed_put): 
22325         * gtk/gtklayout.c (gtk_layout_put):
22326         general fixups to container_add logic. always realize child if
22327         child->parent is realized, only map the child and queue a resize
22328         if child and child->parent are both visible.
22329
22330 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
22331
22332         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
22333         instead of gtk_container_foreach to walk and unrealize children, so
22334         composite children get also unrealized.
22335         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
22336         (gtk_widget_map): assert that the widget is visible (basic constrain).
22337         (gtk_widget_real_map): assert that the widget is realized (basic
22338         constrain).
22339
22340 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
22341
22342         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
22343
22344 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
22345
22346         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
22347         file for iso-8859-2 locales.
22348
22349         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
22350
22351 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
22352
22353         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
22354          (Pointed out by andy@rz.uni-karlsruhe.de and others).
22355          Remove some suspicious and useless lines. 
22356
22357 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
22358
22359         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
22360         width,height = 0, 0 to mean - here to edge of window,
22361         instead of -1, -1, since the former is all we support.
22362
22363 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
22364
22365         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
22366         when removing from quit_functions list.
22367
22368 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
22369
22370         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
22371
22372 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
22373
22374         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
22375          When redrawing characters on non-visible entry, use appropriate
22376          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
22377
22378 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
22379
22380         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
22381         from drag coordinates.
22382         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
22383         use drag_dest_cell.
22384
22385         * gtk/gtktree (drag_dest_cell)
22386         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
22387         (Bug #1129)
22388
22389 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
22390
22391         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
22392         translate_* fields.
22393         (gtk_item_factory_finalize): invoke translate_notify independant from
22394         translate_data.
22395         (gtk_item_factory_set_translate_func): likewise.
22396         (gtk_item_factory_destroy): only remove ifactory pointer from those
22397         widgets that belong to us (stupid me).
22398
22399 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
22400
22401         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
22402         rc_style list when lookup succeeeds.
22403
22404 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
22405
22406         * gtk/gtkctree.c (resync_selection): 
22407         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
22408         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
22409         bug.
22410
22411 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
22412
22413         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
22414         Add some missing GDK_THREADS_ENTER()/LEAVE around
22415         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
22416
22417 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
22418
22419         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
22420         rather than emit_by_name.
22421
22422         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
22423         on the widget across multiple signal emissions.
22424         (gtk_editable_delete_text): same here.
22425         (gtk_editable_class_init): set widget_class->activate_signal after
22426         editable_signals[ACTIVATE] has been created.
22427
22428 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
22429
22430         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
22431         position here prematurely -- we might not have the
22432         right ->min_position and ->max_position yet.
22433
22434 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
22435
22436         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
22437         Add error traps so if the other end of the connection
22438         dies, we survive.
22439
22440         * gtk/gtkselection.c (gtk_selection_notify): Clean
22441         up properly when selection property retrieval fails.
22442         
22443         * gtk/gtkselection.c (gtk_selection_request): Correctly
22444         reject SelectionRequest notifies where the handler
22445         returns no data.
22446
22447 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
22448
22449         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
22450         when we've previously highlighted.
22451
22452         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
22453         emit two "drag_leave" signals for Motif drops.
22454
22455         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
22456         back the correct status messages when dropping from
22457         Motif onto a proxy window that is rejecting the
22458         drop.
22459
22460 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
22461
22462         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
22463         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
22464         to compare two argument values. added gtk_arg_to_valueloc() to set a
22465         variable from an arg through its location (pointer).
22466
22467         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
22468         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
22469         as gfloat*, uchars are collected as guchar*, ints are collected as
22470         gint*, etc...
22471
22472 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
22473
22474         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
22475         Include <string.h> instead of <strings.h>.
22476
22477         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
22478         (actually, a lot more duplicate includes occur if
22479          you trace through the sequence of #include's)
22480         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
22481         
22482 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
22483
22484         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
22485         gtk-a-higuti-990322-[0-3]
22486
22487         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
22488         that was causing -DX_LOCALE not to work.
22489
22490         * gtk/gtkrc.c (gtk_rc_init):
22491         X_LOCALE will never have LC_MESSAGES defined
22492
22493 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
22494
22495         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
22496         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
22497
22498         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
22499         left/right as well (gtk-michael-980726-0.patch.gz).
22500
22501         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
22502         for pointer values, use gchar instead of char. fixed uline allocation
22503         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
22504         chunks instead of G_ALLOC_ONLY.
22505         (gtk_label_size_request): always alter requisition as passed and leave
22506         widget->requisition alone.
22507         (gtk_label_set_text): allow NULL strings.
22508         (gtk_label_new): likewise.
22509
22510 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
22511
22512         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
22513
22514 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
22515
22516         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
22517         *and* mapped (i.e. drawable).
22518         (gtk_bin_expose): only send exposes to drawable children.
22519
22520         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
22521         (gtk_box_expose): only send exposes to drawable children.
22522
22523         * gtk/gtkhscale.c (gtk_hscale_draw): 
22524         * gtk/gtkvscale.c (gtk_vscale_draw):
22525         hm, this is an ugly one. we first compute the size of our trough area
22526         here (window relative) and then check intersection with the draw_area
22527         which is parent relative because we're a NO_WINDOW widget, so we need
22528         to offset the trough area by allocation.x and allocation.y before the
22529         check. (this must not be done for the background area though, since
22530         that's already computed parent relative).
22531
22532 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
22533
22534         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
22535         unrealize title buttons.
22536
22537 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
22538
22539         * gtk/gtkclist.c (gtk_clist_column_title_passive)
22540         (gtk_clist_column_title_active): 
22541         only connect/disconnect to GtkWidgetClass::event to block mouse events.
22542
22543         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
22544         zero initialize event, removed superfluous gdk_window_get_pointer call
22545
22546         * gtk/gtklist.c (gtk_list_vertical_timeout)
22547         (gtk_list_horizontal_timeout): removed superfluous
22548         gdk_window_get_pointer call
22549
22550 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
22551
22552         * plugging problems reported by "Bruce Mitchener, Jr."
22553         <bruce@puremagic.com> due to a purify session.
22554
22555         * gtk/gtkstyle.c:
22556         (gtk_style_ref): 
22557         (gtk_style_unref): assert ref_count to be > 0.
22558
22559         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
22560         the requisition.
22561         (gtk_clist_set_shift): likewise.
22562
22563         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
22564         adjustments.
22565
22566         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
22567         event before sending it and set send_event to TRUE (which needs to
22568         be done for *all* synthesized events).
22569         (gtk_list_vertical_timeout): likewise.
22570
22571         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
22572         leaks.
22573
22574         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
22575         to TRUE when synthesizing events.
22576
22577 [ *** end of merges from 1.2 *** ]      
22578         
22579 1999-11-21  Tor Lillqvist  <tml@iki.fi>
22580
22581         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
22582         (or copied from gdkconfig.h.win32 on Win32, sigh).
22583
22584         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
22585
22586         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
22587
22588         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
22589
22590         * gdk/gdkconfig.h.win32: New file.
22591
22592         * gdk/win32/makefile.cygwin: Build just a static archive here.
22593
22594         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
22595         for the DLL from the static archive built above.
22596
22597         * gdk/gdk.def: Moved here from the win32 subdirectory.
22598
22599         * gdk/win32/*: Adapt for the changed private struct organisation.
22600
22601         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
22602
22603 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
22604
22605         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
22606         for wheel mice (buttons 4 and 5).
22607
22608 1999-11-18  Tor Lillqvist  <tml@iki.fi>
22609
22610         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
22611         drawables use just the pixel field in the foreground and
22612         background GdkColor of the GdkGC.
22613
22614         gdk_gc_set_{fore,back}ground() are called in the GIMP with
22615         GdkColors containing uninitialized (red,green,blue) fields, and
22616         just the pixel field filled in, and furthermore in the
22617         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
22618         It thus turns out that we really don't need to have the full
22619         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
22620         it later to have just the pixel values.
22621
22622 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
22623
22624         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
22625
22626 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
22627
22628         * docs/gtkfaq.sgml: threads example from Erik Mouw.
22629         New question on GtkLabel background colors.
22630
22631         * docs/gtk_tut.sgml:
22632           - Correct the example code callback
22633             function definitions.
22634           - Update the gtkdial example code, from Frans van Schaik.
22635           - Update setselection.c to current API.
22636
22637         * examples/Makefile examples/*/*.c: Update to code
22638         listed in tutorial.
22639
22640 1999-11-10  Tor Lillqvist  <tml@iki.fi>
22641
22642         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
22643         subrange table (from the "Developing International Software for
22644         WIndows 95 and Windows NT" book) was missing the Hangul syllable
22645         block... Get the loaded font's charset correctly.
22646
22647         (Note that this, and the other *-win32.c files, still really are
22648         the old ones, the win32 subdirectory is not ready for compilation
22649         yet after the reorg.)
22650
22651 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
22652
22653         * gtk/gtkclist.c: Fix off-by-one bug in parameter
22654         check.
22655
22656 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
22657
22658         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
22659         on results of XQueryDeviceState().
22660
22661 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
22662
22663         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
22664         we need to accesss only ->children. We need an accessor
22665         for the children.
22666
22667         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
22668         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
22669         to get rid of gdkx.h include.
22670         
22671         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
22672         and random references to 'None'.
22673
22674         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
22675         Get rid of unused #include <gdk/gdkx.h>
22676
22677         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
22678         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
22679         gdkconfig.h.
22680
22681 1999-11-08  Tor Lillqvist  <tml@iki.fi>
22682
22683         * gdk/win32/gdkdraw.c
22684         * gdk/win32/gdkfont.c
22685         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
22686         following yesterday's changes. (Unrelated to Owen's reorg.)
22687
22688 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
22689
22690         * gdk/x11/gdkinput-gxi.c: Add missing include,
22691           fix GdkWindowPrivate => GdkDrawablePrivate.
22692
22693         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
22694
22695         * gdk/x11/Makefile.am (xinput_sources): Add missing
22696         backslash to fix building with --with-xinput=none
22697
22698 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
22699
22700         Move all X specific code into the x11/ directory.
22701         Aside from shuffling things around, did the following:
22702
22703        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
22704          gdk_arg_context_* - a simple argument parsing system
22705          in the style of popt.
22706
22707        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
22708          gdk/x11/gdkprivate-x11.h:
22709          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
22710          add ->klass and ->klass_data fields. The klass_data
22711          field points to an auxilliary structure that is
22712          windowing system dependent.
22713
22714        * gdk/gdkfont.c: Make most of the measurement functions
22715          simply wrappers around gdk_text_extents().
22716
22717        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
22718          _gdk_font_strlen() function that hides the weird
22719          behavior in gtk+-1.[02] where a string is interpreted
22720          differently for 8-bit and 16-bit fonts.
22721
22722        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
22723          to store common code for synthesizing double/triple
22724          press events.
22725         
22726        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
22727          Make all the function that modify an existing GC
22728          simply wrappers around gdk_gc_set_values().
22729          
22730        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
22731          for throwing out later.
22732
22733        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
22734          GdkImagePrivate and GdkColormapPrivate to have a
22735          windowing system dependent part (GdkFontPrivateX etc.)
22736          that "derives" from the system-independent part.
22737
22738        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
22739          Got rid of the included-source-files for XInput in
22740          favor of automake conditionals. (Which didn't exist
22741          when XInput support was originally added.)
22742
22743        * gdk/gdkrgb.c: Remove the visual id from the debugging
22744          statements since that is X11 specific; print out
22745          type/depth info instead.
22746          
22747
22748 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
22749
22750         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
22751         loading duplicates of hashed fonts.
22752
22753         * gdk/gdk.c (gdk_keysym_convert_case): rename
22754         gdk_XConvertCase to gdk_keysym_convert_case, allow
22755         results to be NULL in the GTK+ style.
22756
22757         * gdk/gdkcompat.h: Started compatibility header
22758         for renames.
22759
22760 1999-11-07  Tor Lillqvist  <tml@iki.fi>
22761
22762         * gdk/win32/gdkprivate.h: New font private structures, related to
22763         fontsets.
22764
22765         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
22766         gdk_font_list_free(). On X11, will just be wrappers to
22767         XListFonts() and XFreeFontNames(). On Win32, the code previously
22768         in gtkfontsel.c is now here.
22769
22770         New function gdk_font_xlfd_create(). On X11 will get the FONT
22771         property of the font (for GDK_FONT_FONTs), or call
22772         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
22773         builds a XLFD style name from the font information in the LOGFONT
22774         struct(s).
22775
22776         New function gdk_font_xlfd_free(), which correspondingly frees the
22777         string returned by gdk_font_xlfd_create().
22778
22779         Implement fontsets on Win32. Add a function that iterates over a
22780         wide char string and calls a callback function for each substring
22781         of wide chars from the same Unicode subrange (and thus probably
22782         available in the same real font).
22783
22784         Improve the XLFD emulation a bit.
22785
22786         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
22787
22788         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
22789         Beta3, WM_IME_CHAR messages don't seem to contain the composed
22790         multi-byte char as with the Active IMM on Win9x. Oh well, handle
22791         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
22792         ImmGetCompositionStringW() to get the composed Unicode chars.
22793
22794         * gdk/win32/gdkgc.c
22795         * gdk/win32/gdkdraw.c: Changes needed because of the font private
22796         struct changes.
22797
22798         * gdk/win32/gdk.def: Add the new functions.
22799
22800 1999-11-04  Tor Lillqvist  <tml@iki.fi>
22801
22802         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
22803         get the Platform SDK to get <dimm.h>.
22804
22805         * gdk/win32/gdkevents.c: More event handling fixes and
22806         simplification. Never generate motion events with is_hint true. We
22807         used to do that on bogus grounds earlier. Windows sends
22808         WM_MOUSEMOVE messages on button events even if the mouse hasn't
22809         moved, ignore these.
22810
22811         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
22812
22813         * gdk/win32/gdkglobals.c
22814         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
22815         the TrackMouseEvent function, and use it.
22816
22817         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
22818         char before calling WideCharToMultiByte in order to get a string
22819         for the window title.
22820
22821         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
22822
22823         * gdk/win32/gdk.def: Remove obsolete functions.
22824
22825         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
22826         /nodefaultlib and /defaultlib switches.
22827
22828         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
22829
22830 1999-10-31  Tor Lillqvist  <tml@iki.fi>
22831
22832         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
22833         EuroSign).
22834
22835         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
22836         same type as GdkWChar, especially on Win32.
22837
22838         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
22839
22840         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
22841         before passing to Windows GDI for drawing etc. Convert to the
22842         system default codepage before passing to Windows as window
22843         titles.
22844
22845         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
22846         support changing input locale on the fly.
22847
22848         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
22849         on-the-fly changes. Convert incoming characters from the current
22850         codepage to Unicode (and then to a UTF-8 multi-byte string) based
22851         on the current input language. Use keysym<->Unicode mapping tables
22852         and functions borrowed from xterm sources.
22853
22854         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
22855         editions of Win9x, use the ActiveX-based Active IMM (Input Method
22856         Manager) if available. IMEs and the Active IMM are available under
22857         the disguise of Chinese, Korean and Japanese support for IE and
22858         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
22859         support is present in all editions (as long as you install it).
22860
22861         Call DispatchMessage from gdk_events_queue() (and thus
22862         gdk_WindowProc()), instead of duplicating the code in
22863         gdk_WindowProc().
22864
22865         Reworked the grab handling and propagation code, factored out
22866         duplicated code snippets into separate functions. Other cleanups,
22867         too.
22868
22869         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
22870         the <dimm.h> header describing the Active IMM.
22871
22872         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
22873         just do the same as for "single" fonts.
22874
22875         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
22876         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
22877         the new keysyms from gdkkeysyms.h.
22878
22879         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
22880         fontset, so that gtkentry uses wide characters.
22881
22882         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
22883         GTk+'s system directory "gtk+", not "gtk".
22884
22885 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
22886
22887         * docs/gtkfaq.sgml: FAQ update
22888
22889 1999-10-21  Tor Lillqvist  <tml@iki.fi>
22890
22891         * gdk/win32/gdkprivate.h: Add more font private data.
22892
22893         * gdk/win32/gdkfont.c
22894         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
22895         fonts and strings. Now works much better. You still have to
22896         have a correct font selected, though. No fontset emulation yet.
22897
22898 1999-10-19  Tor Lillqvist  <tml@iki.fi>
22899
22900         * gtk/maketypes.awk: Use G_OS_WIN32.
22901
22902         * gtk/gtk.def: Add some missing entry points. Also some non-public
22903         ones, but PyGTK porter claims to need them.
22904
22905         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
22906         built-in type generation.
22907
22908 1999-10-14  Tor Lillqvist  <tml@iki.fi>
22909
22910         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
22911         GDK_FONT_FONT fonts (which is all we have for now, we don't
22912         emulate fontsets). The X11 version uses plain XDrawString in that
22913         case, too. The string passed to gdk_draw_text_wc seems to be in
22914         fact (at least, when used by gtkentry and gtktext) either in a
22915         single-byte charset, or a DBCS. Not Unicode.
22916
22917         This fixes the problem in gtkfontsel, where even if you had
22918         selected a font with a non-Latin1 charset (windows-greek, for
22919         instance), the preview still used Latin-1 glyphs.
22920
22921         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
22922         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
22923         (gdk_font_load): Recognize the demibold etc weights, even if we
22924         don't have the corresponding constants in the headers.
22925         (gdk_font_hash_insert): Use same hash mechanism as in the X11
22926         version. Should save font resources a bit, when we don't have
22927         multiple HFONTs for the same font.
22928
22929         * gdk/win32/gdkprivate.h: Add the names field as in the X11
22930         version.
22931
22932 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
22933
22934         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
22935         X values
22936
22937 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
22938
22939         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
22940         layout support (as mentioned on
22941         http://www.jcinteractive.com/gnome-ui/software/widgets/)
22942
22943 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
22944
22945         * gtk/fnmatch.c
22946         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
22947
22948 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
22949
22950         * configure.in (ALL_LINGUAS): Added Galician (gl)
22951
22952 1999-10-05  Tor Lillqvist  <tml@iki.fi>
22953
22954         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
22955
22956         * gdk/win32/gdkcompat.c: New file, actually provide an
22957         implementation for the deprecated functions. (Just temporarily.)
22958
22959         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
22960
22961         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
22962
22963         * gdk/win32/gdk.def gtk/gtk.def: Updates.
22964
22965 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
22966
22967         * configure.in: Added "uk" to ALL_LINGUAS.
22968         
22969 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
22970
22971         * configure.in: correct checking for BeOS check
22972
22973         * gdk/gdktypes.h
22974         * gtk/fnmatch.c
22975         * gtk/gtkfilesel.c
22976         * gtk/gtkitemfactory.c
22977         * gtk/gtkmain.[ch]
22978         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
22979
22980 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
22981
22982         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
22983         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
22984         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
22985         by Bulgarian). 
22986
22987 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
22988
22989         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
22990         Fix a reference to window_private->destroyed.   
22991
22992         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
22993         (ugly) setting of an internal GdkWindow member to use
22994         a _slightly_ cleaner macro.
22995
22996         * gdk/gdkprivate.h: Split GdkWindowPrivate into
22997         GdkDrawablePrivate and GdkWindowPrivate.
22998         Add extra macros for accessing GDK_DRAWABLE_ components.
22999
23000         * *.[ch]: Massive adjustments for the above, use the
23001         new macros in a lot of places.
23002
23003 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
23004
23005         * gdk/gdktypes.h: Make GdkDrawable the base type,
23006         not GdkWindow.
23007
23008 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
23009
23010         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
23011
23012 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
23013
23014         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
23015
23016 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
23017
23018         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
23019         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
23020
23021         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
23022
23023         * docs/gtk-config.1: Now autogenerated.
23024         * docs/Changes-1.4.txt: started
23025         
23026 1999-10-03  Tor Lillqvist  <tml@iki.fi>
23027
23028         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
23029         to #ifdef also here.
23030
23031         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
23032         Owen did to the X11 backend.
23033
23034         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
23035         ScrollWindowEx when blitting inside a window, it can't be correct
23036         in the general case.
23037
23038         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
23039         WM_GETMINMAXINFO is easier.
23040
23041         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
23042         depth equal to the bitspixel value, not the visual's depth.
23043
23044         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
23045         to 24 even if the bitspixel value is 32.
23046
23047         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
23048         need to check for depth==32 when bpp==32, depth will always be 24.
23049
23050 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
23051
23052         * docs/Changes-1.4.txt: Started
23053         
23054         * gtk/Makefile.am (gdk_headers): Include all the new headers.
23055
23056         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
23057         
23058         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
23059         into C file.
23060         
23061         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
23062         header to gdkinputprivate.h.
23063
23064         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
23065         unused since before 1.2.
23066
23067 1999-09-30  Tor Lillqvist  <tml@iki.fi>
23068
23069         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
23070         expand possible hex escapes in the font family (put there by
23071         logfont_to_xlfd if the font name isn't a legal XLFD font family,
23072         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
23073         On Win32, add hex escapes here, too.
23074
23075 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
23076
23077         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
23078         to #ifdef GDK_WINDOWING_X11.
23079
23080 [ Merges from gtk-1-2 ]
23081
23082 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
23083
23084         * configure.in: fixed "GNU Make" check to pass with new make version
23085         3.77.95.
23086
23087 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
23088
23089         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
23090         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
23091         AM_PATH_GTK() macros don't get confused by the -pre1.
23092
23093 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23094
23095         * configure.in (REBUILD): Change check for perl5
23096           to check explicitely for v >= 5.002. (5.001
23097           does not work with our scripts.)
23098
23099 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
23100
23101         * configure.in: evaluate $PERL for the perl version check. added
23102         --disable-rebuilds to give the user an option to completely disable
23103         any source autogeneration rules.
23104
23105 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
23106
23107         * configure.in: evaluate $ac_make when checking for GNU Make.
23108
23109 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
23110
23111         * docs/Makefile.am: added generation.txt.
23112
23113         * Makefile.am: require automake 1.4, build README from README.in and
23114         INSTALL from INSTALL.in in dist-hook.
23115         
23116         * README.in:
23117         * INSTALL.in: new files to autogenerate README and INSTALL from.
23118
23119         * configure.in: figure whether we have GNU Make
23120
23121         * docs/generation.txt: minor additions/corrections.
23122
23123 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
23124
23125         * docs/gtkfaq.sgml: FAQ Update
23126
23127 July 30, 1999 Elliot Lee <sopwith@redhat.com>
23128         
23129         * configure.in: Fix autoconf warnings about cross compilation by
23130         trying to provide sane defaults for AC_TRY_RUN.
23131
23132 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
23133
23134         * ltconfig
23135         * ltmain.sh: upgrade to libtool 1.3.3
23136
23137 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
23138
23139         * INSTALL: Indicate that the --with-glib= configure
23140         time flag is unsupported.
23141
23142 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
23143
23144         * docs/generation.txt: Added a file that gives
23145         documenation about the autogeneration process for
23146         various autogenerated files.
23147         
23148 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
23149
23150         * configure.in (LIBS): Look for libgmodule in the
23151         right location.
23152
23153 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
23154
23155         * docs/gtk_tut.sgml: Removed references to
23156         code examples in my directory on gtk.org as
23157         they should all be in the tutorial now.
23158
23159         * docs/gtk_tut.sgml: Added sources for dial-test
23160         and scribble-xinput programs that were previously
23161         missing.
23162
23163 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
23164
23165         * TODO: Added entry about menu keyboard navigation, removed
23166         some finished items.
23167
23168 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
23169
23170         * acinclude.m4: Standardize on func_dgettext
23171         not func_gettext, so that the checks for dgettext
23172         actually are paid attention to.
23173
23174 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
23175
23176         * configure.in (LIBS): Add $INTLLIBS into $LIBS
23177         directly, rather than repeating the checks for
23178         gettext.
23179
23180         * INSTALL: Added information about gettext and
23181         NLS support.
23182
23183         * acinclude.m4 (LIBM): Check for dgettext, not
23184         just gettext. This should hopefully fix things wrt
23185         systems with old versions of GNU gettext installed.
23186
23187 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
23188
23189         * configure.in (LIBS): Look for libgmodule in the
23190         right location.
23191
23192 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
23193
23194         * autogen.sh: add --enable-maintainer-mode
23195
23196         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
23197
23198 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
23199
23200         * docs/gtk-config.1.in:
23201           docs/Makefile.am:
23202           configure.in: gtk-config is now generated.
23203
23204         * docs/gtk-config.1: Removed, now generated.
23205
23206 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
23207
23208         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
23209         handle CreateNotify itself, still put out a debuging message for
23210         --gdk-debug=events. made the ReparentNotify debugging message more
23211         verbose.
23212         wrap xcoords translation for ConfigureEvents into an error trap,
23213         a destroy event may already be pending, and in that case, the
23214         actuall coordinate values are not at all critical.
23215
23216 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
23217
23218         * gdk/gdkcc.c: Stop leaking the color_hash all over
23219         the place. Simplify and improve the logic.
23220
23221 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
23222
23223         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
23224         for prototypes and function implementations consistent (reported
23225         by Tomas Ogren).
23226
23227 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
23228
23229         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
23230         send_event set in debugging output.
23231         (gdk_compress_exposures): default initialize the event so we don't
23232         operate on bogus values (namely send_event).
23233
23234 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
23235
23236         * gdk/gdkwindow.c: When we receive an unexpected
23237         destroy notify on one of our windows, don't just
23238         warn about it, also mark our windows as destroyed.
23239
23240 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
23241
23242         * gdk/gdkfont.c (gdk_font_hash_insert): Add
23243           name => font and name => fontset hashes. The 
23244           name => fontset hash is a _big_ win since we
23245           weren't previously caching fontsets at all and loading
23246           fontsets is expensive. The name => font hash
23247           is less of a win, but it does save us from doing
23248           repeated XQueryFont calls on the same font.
23249
23250         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
23251           list so we can remove font/fontset from hash.
23252
23253 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
23254
23255         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
23256           and slightly confusing test. [ XInternAtom (,,TRUE)
23257           will never return None ].
23258
23259 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
23260
23261         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
23262           gdk/gdkwindow.c (gdk_window_set_hints):
23263
23264         Don't omit setting the properties if flags == 0 -
23265         there may be an existing set of properties there
23266         already. (Very old bug. Would it be better to
23267         delete the property instead?)
23268
23269         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
23270           spelling error in comment.
23271
23272 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
23273
23274         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
23275           to avoid stomping over gdk_error_warnings.
23276
23277         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
23278           as (bits_per_pixel + 7) / 8. This gives the same
23279           result as before for multiples of 8, but actually
23280           a "reasonable" value for 1bit or 4bit displays.
23281
23282 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
23283
23284         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
23285         GNU Make.
23286
23287 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
23288
23289         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
23290         discarding configure events.
23291
23292 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
23293
23294         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
23295         refcount is greater than zero.
23296
23297         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
23298
23299         * gdk/gdkfont.c (gdk_font_unref): Likewise.
23300
23301         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
23302
23303         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
23304
23305 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
23306
23307         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
23308         that format 32 => sizeof(item) == 4. It really is
23309         sizeof(long).
23310
23311 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
23312
23313         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
23314         core dump at all on X IO errors, only core dump
23315         if --enable-debug for X errors.
23316
23317 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
23318
23319         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
23320         unknown window:" message. disabled ConfigureNotify discarding code,
23321         because it led to events being processed out of order.
23322
23323 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
23324
23325         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
23326
23327         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
23328         we export this function, supress error warnings and don't reset the
23329         error code in the first half of this function.
23330
23331         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
23332         code (instead of just -1) so gdk_error_trap_pop() reveals something
23333         actually informative about the error that happened.
23334
23335         * gdk/*.c:
23336         don't rely on gdk_error_code being -1 if an error occoured, but just
23337         gdk_error_code != 0.
23338
23339 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
23340
23341         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
23342         pointer *before* invoking the filter function, so we at least don't
23343         crash if a filter is removed that is currently executed. window filters
23344         *really* need to be made truely reentrant at some point.
23345
23346 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
23347
23348         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
23349         PropertyNotify debug messages.
23350
23351 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
23352         
23353         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
23354         
23355         * gdk/gdkim.c: Fix cut-and-paste errors for 
23356         x/y and PreeditAttributes/StatusAttributes.
23357
23358 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
23359
23360         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
23361         G_MAXINT to 2^16 to alleviate overflow problems in
23362         various window managers.
23363
23364 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
23365
23366         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
23367         for fontsets.
23368
23369 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
23370
23371         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
23372         Initialize size_hints.x and size_hints.y because kwm
23373         brokenly pays attention to them.
23374         (Bug #1181 -  Lars Heete <hel@admin.de>)
23375
23376 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
23377
23378         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
23379         return value of gdk_list_visuals(). 
23380         (Bug #1193 - Morten Welinder <terra@diku.dk>)
23381
23382 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
23383
23384         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
23385         XSetIMValues to (void *) when comparing to NULL, to workaround
23386         the problem of some compilers barfing since older X headers don't
23387         have the prototype for it.
23388
23389 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
23390
23391         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
23392         for pseudocolor where colormap->colors was double
23393         allocated.
23394
23395         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
23396         color value in the hash table with the pixel filled
23397         in so when we do later hash table lookups, the color
23398         value is correct.
23399         
23400 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
23401
23402         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
23403         making the call
23404
23405 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
23406
23407         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
23408         pointed out by Morten Welinder <terra@diku.dk>.
23409
23410 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
23411
23412         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23413           default filter from the list
23414
23415 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
23416
23417         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23418           default filter from the list
23419
23420 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
23421
23422         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
23423
23424         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
23425         g_strdup_printf instead of calcing the length separately
23426
23427 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
23428
23429         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
23430         that we don't do in many other places. (Fixing duplicate 
23431         #include of config.h)
23432
23433         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
23434         Otherwise, #ifndef XINPUT_NONE check in the latter
23435         doesn't work. (Bug #546)
23436
23437 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
23438
23439         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
23440         "None" case insensitive.
23441
23442 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
23443
23444         * gdk/gdkselection.c: 
23445         Add error traps so if the other end of the connection
23446         dies, we survive.
23447
23448 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
23449
23450         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
23451         dest_xid field into two fields - one for the window
23452         to send in messages, one to indicate the last looked
23453         up window for caching purposes. This is needed, so
23454         that Leave messages get the correct window.
23455
23456 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
23457
23458         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
23459         Fix warning created by people mucking around
23460         with the gsource API.
23461
23462         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
23463         Change mapping between GIOCondition and GdkInputCondition
23464         to match the way the Linux kernel does it. This should
23465         fix problems where closed pipes were no longer signalling
23466         GDK_INPUT_READ on systems with a native poll().
23467
23468 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
23469
23470         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
23471         explicitly for the string "None" - it is in the XPM
23472         spec and some servers treat unknown colors in odd ways
23473         (like asking the user!)
23474
23475 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
23476
23477         * gdk/gdkevents.c: made "->" into a "." of previous change so
23478         it compiles
23479
23480 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
23481
23482         * gdk/gdkevents.c (gdk_compress_exposures): Set the
23483         window field of the event structure before calling
23484         user filters.
23485
23486 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
23487
23488         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
23489         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
23490
23491 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
23492
23493         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
23494         intermediate text property - prevents major memory
23495         leak when gdk_use_mb.
23496         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
23497
23498 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
23499
23500         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
23501         gtk-a-higuti-990322-[0-3]
23502
23503         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
23504         sizeof(wchar_t) != sizeof (GdkWChar)
23505
23506         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
23507         that was causing -DX_LOCALE not to work.
23508
23509         * gtk/gtkrc.c (gtk_rc_init):
23510         X_LOCALE will never have LC_MESSAGES defined
23511
23512         * gdk/gdk.c (gdk_init_check):
23513         Remove --xim-preedit and --xim-status from argv properly.
23514
23515         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
23516         that the client window is present on the X server
23517         before we pass it to the input method.
23518
23519 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
23520
23521         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
23522         if --display is specified on the command line, than
23523         the drag window will not be created on that display.
23524         
23525 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
23526
23527         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
23528         lookups with only_if_exists == TRUE were inserting
23529         bogus values into the atom cache.
23530
23531 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
23532
23533         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
23534         then reset it to NULL.
23535
23536         * gdk/gdkcolor.c:
23537         (gdk_colors_free): 
23538         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
23539         key for g_hash_table_remove() in both functions, this prevents us
23540         from accessing possibly uninitialized portions of a GdkColor structure
23541         where we are only interested in its pixel value.
23542
23543 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
23544
23545         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
23546         font hash table, if we have a GdkFontPrivate entry for this font
23547         already, simply increment its reference count, provided by Olaf Dietsche
23548         <olaf.dietsche+list.gtk@netcologne.de>.
23549
23550 1999-09-21  Tor Lillqvist  <tml@iki.fi>
23551
23552         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
23553         just to be sure.
23554
23555         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
23556         unused variables, leftovers from the X11 version.
23557
23558         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
23559
23560         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
23561         downcase fields on X11.
23562
23563 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
23564         
23565         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
23566         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
23567
23568 1999-09-17  Tor Lillqvist  <tml@iki.fi>
23569
23570         * gdk/win32/gdk.def: Add gdk_threads_mutex.
23571
23572         * gtk/makefile.msc: Correct path to libintl.
23573
23574         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
23575         use of gint vs. int, and gint vs. gboolean in headers and
23576         definitions. Use GtkType for the *_get_type functions. Note that
23577         these changes preserve binary compatibility.
23578
23579         * gdk/gdk.c
23580         * gdk/win32/gdk.c
23581         * gdk/gdk.h: Fix inconsistencies: gint vs int.
23582
23583         * gtk/gtkmain.c
23584         * gtk/gtkclist.c
23585         * gtk/gtkmenufactory.c
23586         * gtk/gtknotebook.c
23587         * gtk/gtkwidget.c: Fix inconsistencies, also gint
23588         vs. gboolean.
23589
23590         * gtk/gtkcolorsel.[ch]
23591         * gtk/gtkcombo.[ch]
23592         * gtk/gtkdrawingarea.[ch]
23593         * gtk/gtkgamma.[ch]
23594         * gtk/gtkhandlebox.[ch]
23595         * gtk/gtkhpaned.[ch]
23596         * gtk/gtkhruler.[ch]
23597         * gtk/gtkplug.[ch]
23598         * gtk/gtkpreview.[ch]
23599         * gtk/gtkruler.[ch]
23600         * gtk/gtksocket.[ch]
23601         * gtk/gtkstatusbar.[ch]
23602         * gtk/gtktoolbar.[ch]
23603         * gtk/gtkvbbox.[ch]
23604         * gtk/gtkvpaned.[ch]
23605         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
23606         functions.
23607
23608         * gtk/gtkgamma.h: Fix bug, missing () in call of
23609         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
23610
23611 1999-09-14  Tor Lillqvist  <tml@iki.fi>
23612
23613         * gdk/gdkcolor.c (gdk_colormap_new)
23614         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
23615         colormap->colors was allocated twice.
23616
23617         * gdk/win32/gdk.c: Remove some unused stuff.
23618
23619         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
23620         colormap.
23621
23622         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
23623         * gtk/gtklabel.h (gtk_label_get_type)
23624         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
23625         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
23626         in a couple of places, not guint.
23627
23628 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23629
23630         * configure.in,po/et.po: added Estonian language file
23631
23632 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23633
23634         * configure.in,po/da.po: added Danish file
23635
23636 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
23637
23638         * docs/gtkfaq.sgml: Minor FAQ Update
23639
23640 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
23641
23642         * docs/gtkfaq.sgml: FAQ update
23643
23644 1999-08-27  Tor Lillqvist  <tml@iki.fi>
23645
23646         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
23647         way to get window contents continually refreshed while resizing. I
23648         didn't like the effects myself, so it's not on by default.
23649
23650         * gdk/win32/gdkprivate.h: New flag variable
23651         gdk_event_func_from_window_proc, FALSE by default.
23652
23653         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
23654         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
23655         are passed --gdk-event-func-from-window-proc.
23656
23657         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
23658         and we have am event_func, call it instead of enqueing the event.
23659
23660 1999-08-23  Tor Lillqvist  <tml@iki.fi>
23661
23662         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
23663         Kelley: Set expose_count in GdkEventExposes correctly.
23664
23665         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
23666         MULTIPLE_WINDOW_CLASSES).
23667
23668         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
23669         for bug in NT, apparently NT *does* draw the end pixel, too, in
23670         LineTo with a one-pixel pen, so we don't have to do it ourselves.
23671
23672 1999-08-21  Tor Lillqvist  <tml@iki.fi>
23673
23674         Improvements by Hans Breuer: 
23675
23676         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
23677
23678         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
23679         CS_?REDRAW flags as they cause lots of (late) redraws when "show
23680         window contents while dragging" is turned on. Allocate at least
23681         one unique class for every GdkWindowType. If support for single
23682         window-specific icons is ever needed (eg. Dialog specific), every
23683         such window should get its own class.
23684
23685 1999-08-19  Tor Lillqvist  <tml@iki.fi>
23686
23687         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
23688         error that caused crashes.
23689
23690 1999-08-17  Tor Lillqvist  <tml@iki.fi>
23691
23692         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
23693         window, use ScrollWindowEx, and call UpdateWindow. This prevents
23694         bugs when for instance part of the window was outside the
23695         display. Thanks to Philippe Colantoni for finding and fixing this.
23696
23697 1999-08-16  Tor Lillqvist  <tml@iki.fi>
23698
23699         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
23700         endpoint calculations which were totally wrong. (A little RTFMing
23701         helps a lot ;-)
23702
23703         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
23704         from a separate directory, not from gettext, because of licensing
23705         issues (we want to use the LGPL version).
23706
23707         * README.win32: Mention the intl from glibc vs from gettext issue.
23708
23709 1999-08-13  Tor Lillqvist  <tml@iki.fi>
23710
23711         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
23712         in the key event handling: Now AltGr chars work again. Also,
23713         now Alt-digits are passed up as well as Control-digits.
23714         Pass keypad plus and minus as normal plus and minus.
23715
23716 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
23717
23718         * docs/gtkfaq.sgml: FAQ Update
23719
23720 1999-07-25  Tor Lillqvist  <tml@iki.fi>
23721
23722         * README.win32
23723         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
23724         the Wintab SDK.
23725
23726         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
23727         OK, but getting closer. Guard against bogus tilt data from Wacom
23728         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
23729         enable easier building without Wintab.
23730
23731         * gdk/win32/gdkinput.h
23732         * gdk/win32/gdkevents.c 
23733         * gdk/win32/gdkwindow.c: Minor changes related related to above.
23734         
23735         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
23736         code. As we have just one visual on Win32, no sense to have it in a
23737         table, and no need for the hash table.
23738
23739         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
23740         better on white background.
23741
23742 1999-07-21  Tor Lillqvist  <tml@iki.fi>
23743
23744         * README.win32: Update gcc build instructions. Mention gettext is
23745         GPL.
23746
23747         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
23748         supported cursor size with GetSystemMetrics.
23749
23750         * gdk/win32/gdkfont.c
23751         * gtk/gtkfontsel.c: Guard against some font weight and charset
23752         symbols being undefined (in mingw32 headers).
23753
23754         * gdk/win32/makefile.cygwin
23755         * gtk/makefile.cygwin
23756         * gtk/gtkthemes.c: No longer need to have differently named
23757         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
23758
23759 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
23760
23761         * docs/gtkfaq.sgml: Long awaited FAQ update.
23762
23763 1999-07-15  Tor Lillqvist  <tml@iki.fi>
23764
23765         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
23766         it. Obscure bit manipulation needed.
23767
23768         * gdk/win32/gdkevents.c: Logging.
23769         
23770         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
23771         style (file name include compiler name) for theme engines.
23772
23773 1999-07-13  Tor Lillqvist  <tml@iki.fi>
23774
23775         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
23776
23777         * gdk/win32/gdkevents.c: Fix long-standing bug in key
23778         events. The key.string wasn't zero-terminated, still we strdup'ed
23779         it in gdk_event_copy(). Synthesize crossing events for button
23780         events before possible propagation.
23781
23782         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
23783
23784         * gdk/win32/makefile.cygwin
23785         * gtk/makefile.cygwin: Use new DLL naming style for the
23786         GCC-compiled ones.
23787
23788         * gdk/win32/makefile.msc
23789         * gtk/makefile.msc: Cosmetics mostly.
23790
23791         * gtk/gtk.def: Add missing entry points.
23792
23793         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
23794
23795 1999-07-09  Tor Lillqvist  <tml@iki.fi>
23796
23797         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
23798         or height is zero. Don't print a warning if Pie or Arc fails, they
23799         always fail (?) for very narrow ellipses.
23800
23801         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
23802         the part or the destination window corresponding to source area
23803         outside of the source drawable's boundary.
23804
23805         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
23806         anything if less than two points.
23807
23808         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
23809         return NULL. Gtk cut-and-paste inside a single program works
23810         better this way. (It always gets the clipboard contents from
23811         Windows, not from its own copy, which is cleared anyway. I can't
23812         say I fully understand what happens... Emulating the X selection
23813         and property stuff is a bit of a mess.)
23814
23815         * gdk/win32/gdkevents.c
23816         * gdk/win32/gdkproperty.c: A bit more verbose logging.
23817
23818         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
23819         that never got deleted). Revamp gdk_region_shrink.
23820
23821         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
23822         after use.
23823
23824         * gtk/gtk.def: Add some missing entry points.
23825
23826         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
23827         component.
23828
23829 1999-07-04  Tor Lillqvist  <tml@iki.fi>
23830
23831         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
23832         Control-digits specially.
23833
23834 1999-07-03  Tor Lillqvist  <tml@iki.fi>
23835
23836         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
23837
23838 1999-06-28  Tor Lillqvist  <tml@iki.fi>
23839
23840         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
23841         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
23842         finding this.)
23843
23844 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
23845
23846         * gtk+.spec.in: Corrected some typos in files section.
23847         
23848 1999-06-15  Tor Lillqvist  <tml@iki.fi>
23849
23850         * README.win32: Mention using GNU gettext.
23851         * config.h.win32: Enable NLS stuff.
23852         * gtk/makefile.msc: Use GNU gettext.
23853         * gdk/win32/gdkdnd.c: Minor header reorg.
23854         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
23855         cosmetics.
23856         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
23857         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
23858
23859 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
23860
23861         * acinclude.m4
23862         * config.guess
23863         * config.status
23864         * ltconfig
23865         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
23866
23867 1999-05-30  Tor Lillqvist  <tml@iki.fi>
23868
23869         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
23870         SafeAdjustWindowRectEx. Don't override all calls to
23871         AdjustWindowRectEx by it, but use it only in two places: When
23872         creating a new top-level window and when moving a top-level
23873         window.
23874
23875         Use screen coordinate rectangle, not client rectangle, in
23876         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
23877         when we try to place a window so that the decoration (mainly,
23878         title bar) isn't visible.
23879
23880         These changes fix the bug that showed up for instance as the
23881         GIMP's saved top-level windows moving right and down (by an amount
23882         equal to the window decoration) for each session. This bug showed
23883         up also in testgtk's "Saved Position".
23884
23885         gdk_window_resize also redone a bit.
23886
23887 1999-05-25  Tor Lillqvist  <tml@iki.fi>
23888
23889         * gtk/testgtkrc: Add (commented out) Windows-style theme
23890         include line.
23891
23892         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
23893
23894 1999-05-18  Tor Lillqvist  <tml@iki.fi>
23895
23896         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
23897         gdkx.h to a gdk subdirectory, so that applications can include
23898         these with <gdk/*.h> without trouble.
23899
23900         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
23901         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
23902         have their bitmap destroyed.
23903
23904         * gdk/win32/gdk.def: Add gdk_root_parent.
23905
23906 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
23907
23908         * configure.in
23909           gtk-config.in
23910           ltconfig
23911           ltmain.sh     
23912           gtk/Makefile.am: changes to compile nicely (with xlib) 
23913           on BeOS
23914
23915 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
23916
23917         * acinclude.m4
23918         * config.guess
23919         * config.sub
23920         * ltconfig
23921         * ltmain.sh: upgrade to libtool 1.3
23922
23923 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
23924
23925         * gtk/gtkclist.c:
23926         * gtk/gtkctree.c: merges from gtk-1-2
23927
23928 1999-04-25  Tor Lillqvist  <tml@iki.fi>
23929
23930         Support added for building using a GNU toolchain on Win32,
23931         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
23932
23933         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
23934         * config.h.win32: Changes for gcc.
23935         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
23936         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
23937         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
23938         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
23939         Protect shl stuff unavaiilable with mingw32 headers.
23940         * gdk/win32/gdkevents.c: Fix typo.
23941         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
23942         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
23943         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
23944         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
23945         the mingw32 headers.
23946         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
23947         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
23948         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
23949         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
23950         Test for NATIVE_WIN32, not _MSC_VER.
23951         * gtk/gtkmain.c: No use warning about developer version on Win32,
23952         there aren't any non-developer versions anyhow.
23953         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
23954         * gtk/makefile.msc: Use pthread from another directory. Minor other
23955         changes. 
23956
23957 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
23958
23959         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
23960           default filter from the list
23961
23962 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
23963
23964         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
23965          when gtk_widget_grab_default() is called for a widget that
23966          is not within a GtkWindow.
23967
23968 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
23969
23970         * docs/gtk_tut.sgml, examples/clist.c: use a
23971           scrolled window in the clist example. Minor
23972           tutorial fixes.
23973
23974 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
23975
23976         * docs/gtk_tut.sgml: Style check from David King
23977           <dking@youvegotmail.net>
23978
23979 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
23980
23981         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
23982         compile with unknown value of GDK_WINDOWING
23983
23984 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
23985
23986         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
23987         after the rule is fired.
23988         (install-exec-local): Install gdkconfig.h only if the contents are
23989         different from the currently installed gdkconfig.h.
23990
23991 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
23992
23993         * gdk/Makefile.am (configexecincludedir): Rename from 
23994         configincludedir so that gdkconfig.h will be installed 
23995         as part of `make install-exec'. 
23996
23997 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
23998
23999         * acinclude.m4
24000         * config.guess
24001         * config.sub
24002         * ltconfig
24003         * ltmain.sh: upgrade to libtool 1.2f
24004
24005         * autogen.sh: libtool is not required to autogen gtk+
24006
24007         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
24008         needed)
24009
24010 1999-03-18  Tor Lillqvist  <tml@iki.fi>
24011
24012         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
24013         declaring gdk variables exported/imported from the DLL. New image
24014         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
24015         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
24016         GDK_DRAG_PROTO_OLE2.
24017
24018         * gdk/gdk.h: Merge in Win32 version: Two new functions,
24019         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
24020         declared only for the Win32 version, but could be in the X11
24021         version as well. (Needed for a Xlib-less gdk_imlib.)
24022         gdk_color_hash should have only one parameter. Declare
24023         gdk_threads_mutex with GDKVAR.
24024         
24025         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
24026         just one parameter.
24027
24028         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
24029         per pixel, not bits.
24030
24031         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
24032         Fetch bpp (which means bits-per-pixel here) from another place on
24033         Win32. Accept also depth==32 (which we might get on Win32) with
24034         bpp==32.
24035
24036         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
24037         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
24038         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
24039         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
24040         in the backend-dependent directory, not in the common gdk
24041         directory.
24042
24043         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
24044         headers.
24045
24046 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
24047
24048         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
24049         want to use the Gtk+ devel version (which is true, and yes - even i am
24050         currently working with the 1.2.x branch). so everyone reading this, you
24051         probably want to issue
24052         cvs checkout -r glib-1-2 glib
24053         and
24054         cvs checkout -r gtk-1-2 gtk+
24055         as your next two comands.
24056
24057 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
24058
24059         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
24060         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
24061
24062         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
24063         file. strongly deprecated the GTK_HAVE_* macros, we provide
24064         GTK_CHECK_VERSION() for people that need to check for certain
24065         Gtk+ versions.
24066
24067         * gtk/gtkcompat.h: removed this from CVS.
24068         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
24069         idea right from the start, it just didn't seem like that back then.
24070
24071 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
24072
24073         * merges from gtk-1-2:
24074
24075 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
24076
24077         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
24078         item factory class has been created.
24079         (gtk_item_factory_parse_rc): likewise.
24080
24081         * gtk/gtkmenu.c:
24082         keep proper references for old_active_menu_item.
24083         (gtk_menu_reparent): unset the usize of the new parent,
24084         so the menu can sanely be size requested and we don't get nasty screen
24085         artefacts upon next reparentation.
24086         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
24087         enter notify. only synthesize enter notifies if the pointer really is
24088         inside the event window.
24089         (gtk_menu_popdown): use gtk_menu_shell_deselect().
24090         (gtk_menu_popup): move the background setting stuff into
24091         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
24092
24093         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
24094         gtk_menu_shell_select_item() to select the new item.
24095         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
24096         do the right thing for deselection as well.
24097
24098 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
24099
24100         * gtk/gtkwidget.[hc]:
24101         (gtk_widget_accelerators_locked): return whether a widget's accelerators
24102         are locked.
24103
24104         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
24105         existing accelerators if the widget's accelerators are locked.
24106
24107 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
24108
24109         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
24110
24111         * gtk/gtkmenu.c: truely forward key press and key release events to
24112         the menu widget from the toplevel or tearoff window. we can't simply
24113         connect to that, we need to stop further processing of the events as
24114         well.
24115
24116 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
24117
24118         * gtk/gtkmenu.c:
24119         (gtk_menu_key_press): pass event->keyval, event->state to
24120         gtk_accelerator_valid, instead of event->keyval twice.
24121         refuse to install single letter accelerators for menus that use
24122         single letter shortcuts.
24123
24124         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
24125         gtk_menu_ensure_uline_accel_group().
24126
24127         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
24128         which will always return an uline accel group, made
24129         gtk_menu_get_uline_accel_group() return NULL if the group isn't
24130         yet created.
24131
24132 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
24133
24134         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
24135
24136         * gtk/gtkclist.c (gtk_clist_column_title_passive):
24137         Leave button sensitive, trap  button_press, button_release,
24138         motion_notify, enter_notify and leave_notify events instead.
24139         (gtk_clist_column_title_active): disconnect event handler.
24140         (gtk_clist_drag_data_get): fixed memory leak. Reported by
24141         Guillaume Laurent <glaurent@worldnet.fr>
24142
24143 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
24144
24145         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
24146         width/height mixups.
24147
24148         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
24149         if needed.
24150
24151 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
24152
24153         * gtk/testgtk.c (create_item_factory): unref the item factory after
24154         window's destruction.
24155
24156         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
24157         count on the menu shell around the menu item's activation, since the
24158         signal emission may cause menu shell destruction.
24159
24160         * gtk/gtkitemfactory.c:
24161         the previous code leaked one accel group per menu. we use
24162         gtk_menu_get_uline_accel_group() now to fix that, and with that
24163         also create the underline accelerator group of the menus only if
24164         required (i.e. an underline accelerator has been specified).
24165         (gtk_item_factory_construct):
24166         (gtk_item_factory_create_item): removed code that would create an
24167         extra accel group for the menu (and leak references).
24168         (gtk_item_factory_create_item): adapted the underline accelerator
24169         installation code to properly feature gtk_menu_get_uline_accel_group().
24170
24171         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
24172         menu->accel_group, this may return NULL if the accelerator group
24173         hasn't been set yet.
24174         added gtk_menu_get_uline_accel_group() to retrive the underline
24175         accelerator group of the menu, this will be created on demand
24176         and proper care is taken about its reference count.
24177
24178         * gtk/gtkitemfactory.h:
24179         * gtk/gtkitemfactory.c:
24180         dumped the approach of keeping a widgets by action list on the
24181         factory since the factory<->widget destroy negotiation didn't work
24182         and would be hard to get going at all. instead we keep a list of
24183         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
24184         persistant throughout a program's life time).
24185         also, i removed the static const gchar *key_* variables, and made
24186         them inline strings (they weren't actually used anyways).
24187         (gtk_item_factory_add_item): update ifactory->items.
24188         (gtk_item_factory_destroy): destroy ifactory->items (and remove
24189         the item factory pointer from the remaining ifactory widgets).
24190         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
24191         list to find the widget.
24192         (gtk_item_factory_get_item): new function that works around
24193         gtk_item_factory_get_widget() limitations, this function will only
24194         return menu items, even for <Branch> entries.
24195
24196 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
24197
24198         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24199         font hash table, if we have a GdkFontPrivate entry for this font
24200         already, simply increment its reference count, provided by Olaf Dietsche
24201         <olaf.dietsche+list.gtk@netcologne.de>.
24202
24203         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
24204         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
24205
24206 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
24207
24208         * gtk/gtkcontainer.c:
24209         (gtk_container_add_with_args):
24210         (gtk_container_addv):
24211         (gtk_container_add): before adding a child to a conatiner, make sure
24212         it is (default) constructed, this is neccessary because under certain
24213         circumstances the child will get relized and mapped immediatedly, in
24214         which case it has to be constructed already.
24215
24216 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
24217
24218         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
24219         values > 1 as TRUE also.
24220
24221 1999-03-16  Tor Lillqvist  <tml@iki.fi>
24222
24223         * README.win32: New file.
24224                 
24225         * configure.in: Check for lstat.
24226
24227         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
24228         completeness.
24229
24230         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
24231
24232         * gtk/gtk.def: Removed CRs.
24233
24234         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
24235         ..\gdk\win32).
24236
24237         * gdk/win32/makefile.msc: Correct upwards relative paths.
24238         
24239 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
24240
24241         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
24242           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
24243           it was connecting a void function to expose_event and the int
24244           returning function to the draw signal
24245
24246 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
24247
24248         * configure.in:
24249         Use correct path to libgmodule.la when ref'ing uninstalled copy
24250         of glib.  (Already in stable branch, Bug #417)
24251
24252 1999-03-15  Tor Lillqvist  <tml@iki.fi>
24253
24254         Win32 merge and general portability stuff:
24255                 
24256         * acconfig.h,configure.in: Check for <sys/time.h>.
24257
24258         * gdk/win32: New directory (actually, been there for a while).
24259         
24260         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
24261         NATIVE_WIN32, and use these. Always case fold on Win32. No
24262         backslashed escapes on native Win32.
24263
24264         * gtk/{gtk.def,makefile.msc}: New files.
24265
24266         * gtk/Makefile.am: Add above new files.
24267         
24268         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
24269         instead of <strings.h>.
24270
24271         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
24272         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
24273         <unistd.h> appropriately.
24274
24275         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
24276         Use ABS() (from <glib.h>) instead of abs().
24277         
24278         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
24279         of gtk (and thus glib) headers, so that WIN32 will be
24280         defined. With MS C, include <direct.h> for mkdir prototype.
24281
24282         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
24283         some casts, needed by MS C.
24284
24285         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
24286         implemented).
24287
24288         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
24289         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
24290         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
24291
24292         * gtk/gtkmain.h: Mark variables for export/import on Win32.
24293                 
24294         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
24295         the event is not a hint, or its window is not the slider. Needed
24296         on Win32, at least.
24297
24298         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
24299         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
24300         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
24301         a subdirectory of the Windows directory as gtk system
24302         configuration directory.
24303
24304         * gtk/gtkselection.c: No chunks on Win32.
24305
24306         * gtk/gtksocket.c: Not implemented on Win32.
24307
24308         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
24309
24310         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
24311
24312         * gtk/maketypes.awk: Declare variables with a macro that expands to
24313         necessary export/import magic in the case of Win32.
24314                 
24315         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
24316
24317 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
24318
24319         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
24320         since those were meant only for gdki18n.h.  
24321         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
24322         for widechar tests.
24323         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
24324
24325 1999-03-13  Tor Lillqvist  <tml@iki.fi>
24326
24327         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
24328         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
24329
24330         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
24331         installed) to CFLAGS.
24332
24333         * gdk/Makefile.am: Add rules for gdkconfig.h.
24334
24335         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
24336         APIs.
24337
24338         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
24339         gdkx.h anyway when compiling for X11.
24340         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
24341         general): Merge in Win32 version.
24342         
24343         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
24344         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
24345         expansion (if we don't have HAVE_PWD_H), allow for drive
24346         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
24347         included code from Craig Setera's port to Win32 (the one that uses
24348         X11, and the cygwin dll), even if it probably will be abandoned.
24349
24350         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
24351         the user entered one herself.  This way one can complete *.h and
24352         don't get matches on any .help files, for instance.
24353         
24354 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
24355
24356         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24357         font hash table, if we have a GdkFontPrivate entry for this font
24358         already, simply increment its reference count, provided by Olaf Dietsche
24359         <olaf.dietsche+list.gtk@netcologne.de>.
24360
24361         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
24362         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
24363
24364 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
24365
24366         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
24367         the number of calls to gdk_draw_point() (and thus to X) by
24368         clipping the points by hand.
24369
24370         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
24371         the clip parameter.
24372         (gtk_handle_box_paint): Only paint the handle if the expose area
24373         intersects it.
24374
24375 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
24376
24377         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
24378
24379 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
24380
24381         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
24382         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
24383
24384 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
24385
24386         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
24387          textmode (O_TEXT) for OS/2 version.
24388
24389 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
24390
24391         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
24392         GtkSpinButton, "input" and "output", to make the output more flexible.
24393         The user has to provide a mapping between adjustment->value and the
24394         output string (and vice versa, if the spin button is editable). 
24395         See testgtk for examples.
24396
24397 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
24398
24399         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
24400         new one.
24401         
24402         * configure.in: set gtk+ version to 1.3.0.