]> Pileus Git - ~andy/gtk/blob - ChangeLog
Remove gdkcc-win32.c from here, too.
[~andy/gtk] / ChangeLog
1 2001-02-11  Tor Lillqvist  <tml@iki.fi>
2
3         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
4         function, copied from X11 version.
5
6         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
7         DestroyCursor failures. The reason for the problem (despite the
8         inconsistent messages from GetLastError()) was that
9         DestroyCursor() cannot be called while a cursor is set in a
10         window. Set the new cursor first and then destroy the old one.
11         Thanks to jpe@archaeopteryx.com.
12
13         * gdk/win32/gdkcc-win32.c: Remove.
14
15         * gdk/win32/Makefile.am: Remove from here, too.
16         
17         * gdk/gdk.def
18         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
19
20         * gtk/gtk.def
21         * gtk/makefile.mingw.in: Updates.
22
23 2001-02-08  Havoc Pennington  <hp@redhat.com>
24
25         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
26         add a widget to a bin that already has a child.
27
28         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
29
30         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
31         
32         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
33
34         * gdk/gdk.h: remove gdkcc.h
35
36         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
37
38         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
39         GdkPixbuf, since the previous implementation was GdkColorContext
40         dependent.
41
42         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
43         
44 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
45
46         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
47         a sane value!
48
49 2001-02-08  Havoc Pennington  <hp@redhat.com>
50
51         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
52         lighten them.
53
54 2001-02-08  Havoc Pennington  <hp@redhat.com>
55
56         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
57         validation idle
58
59         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
60         cell renderer
61
62         * demos/pixbuf-demo.c (timeout): remove deprecated
63         gtk_widget_draw
64
65         * demos/testpixbuf-save.c (main): remove deprecated
66         gtk_drawing_area_size
67
68         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
69         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
70         at the start of the allocation.
71         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
72         unsetup or NULL model.
73
74         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
75         even/odd/sorted cells in the tree view.
76
77         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
78         bugfixes
79
80         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
81         backgrounds with draw_flat_box using different detail for even/odd
82         rows.
83
84         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
85         row, so we can draw the alternating colors thing
86
87         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
88         property from a synonym property, notify for the synonym.
89         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
90         (gtk_text_tag_get_property): Always return the font, even if
91         all its fields aren't set
92
93         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
94         store the attr list; it leaves us with no way to change attributes
95         in _render according to the render flags, and no way to implement
96         get_property. Instead store all the specific text attributes. 
97         Separate whether an attribute is enabled from its value. Sync all
98         properties with GtkTextTag, make them all consistent, etc.
99
100         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
101         renderers can highlight the sort row/column     
102
103         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
104         accessor functions to get values; this has the side effect of
105         showing up which accessor functions were missing. Added those.
106
107         * gtk/gtktreeviewcolumn.h: Replace set_justification with
108         set_alignment, to be consistent with GtkLabel, GtkMisc
109
110         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
111         arrow.
112
113         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
114
115         * gtk/gtktreesortable.h: updates in here
116
117 2001-02-07  Sven Neumann  <sven@convergence.de>
118
119         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
120         pango dimensions after painting the background. We used to draw
121         gigantic flat boxes here.
122
123 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
124
125         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
126         error introduced with earlier commit) (pointed out by
127         Ollie Lho)
128
129 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
130
131         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
132         which are no longer necessary.
133
134 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
135
136         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
137
138 2001-02-04  Tor Lillqvist  <tml@iki.fi>
139
140         * gdk/gdk.def
141         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
142         Provide dummy implementations.
143
144 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
145
146         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
147
148         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
149         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
150         deprecated this function.
151
152         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
153         argument.
154
155 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
156
157         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
158
159 2001-02-03  Havoc Pennington  <hp@pobox.com>
160
161         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
162         Mikael Hermansson with patch from Mikael (if there was a toggle
163         start one after the first character in the range, this function
164         was broken). Bug #50380
165
166 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
167
168         * configure.in: Remove confusing comment about X11.
169
170 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
171
172         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
173         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
174         
175 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
176
177         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
178         it breaks things on BSD. If you want to compile GTK+ with
179         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
180         when configuring, since GTK+ simply can't be "pure ANSI" 
181         in the header files it uses. (#8170, Greg Hudson)
182
183 2001-02-02  Havoc Pennington  <hp@redhat.com>
184
185         * gtk/gtkwindow.c: docs
186
187         * gtk/gtkwidget.c: docs
188         (gtk_widget_set_colormap): add a reference to the colormap
189         (gtk_widget_get_default_colormap): add a reference to the colormap
190
191         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
192
193         * gtk/gtktextiter.c: docs
194
195         * gtk/gtkmain.c (gtk_propagate_event): docs
196
197         * gtk/gtkpaned.c (gtk_paned_get_position): docs
198         (gtk_paned_set_position): docs
199
200         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
201         sort interface, no implementation yet.
202
203         * demos/testpixbuf.c (new_testrgb_window): replace
204         gtk_drawing_area_size() with gtk_widget_set_usize()
205
206         * demos/testpixbuf-drawable.c (main): ditto
207         
208         * gtk/testgtk.c: remove use of GtkStatusbarMsg
209
210         * gtk/gtktextbuffer.c: docs
211
212         * gtk/gtkstock.c: docs
213
214         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
215
216         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
217
218         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
219         
220         * gtk/gtkimage.c: add some docs in here
221         (gtk_image_size_request): change name of
222         gtk_widget_render_stock_icon
223         (gtk_image_get_icon_set): don't dup returned string
224         (gtk_image_get_icon_set): don't dup returned string
225
226         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
227         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
228         and gtkiconfactory.h functions
229
230         * gtk/gtkiconfactory.c: add some docs in here
231
232         * gtk/gtkmain.c (gtk_get_default_language): document
233         (gtk_get_current_event): document
234         (gtk_get_current_event_state): document
235         (gtk_get_event_widget): document
236
237         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
238
239         * gtk/gtkcontainer.c: Add some documentation
240         (gtk_container_add): give a more explanatory warning on adding an
241         already-parented widget, this is kind of a FAQ and also a common
242         typo that's easier to debug with a nice warning 
243
244         * gtk/gtkcellrenderertoggle.c
245         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
246         adding this, it's useless
247         (gtk_cell_renderer_toggle_set_active): remove
248         (gtk_cell_renderer_toggle_get_radio): add
249
250         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
251         the NULL cell renderer, that doesn't make any sense to me. 
252
253         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
254         demo code should never use deprecated features.
255
256         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
257         code should never use deprecated features.
258
259         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
260         gtk_widget_queue_clear_area deprecated
261
262         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
263         deprecated
264
265         * gtk/gtklabel.h: mark gtk_label_get() deprecated
266
267         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
268         a GdkImage deprecated, replaced by new consistently-named
269         functions       
270
271         * gtk/gtkmain.h: Mark gtk_exit() deprecated
272
273         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
274
275         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
276         deprecated
277
278         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
279         so it won't appear in docs and confuse people.
280
281         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
282
283         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
284         macros deprecated. (can't mark the type itself deprecated, since
285         GtkProgressBar is not deprecated and we need the type decl to use
286         GtkProgressBar)
287
288         * gtk/gtkpixmap.h: Mark deprecated
289
290         * gtk/gtkoldeditable.h: Mark deprecated
291
292         * gtk/gtklist.h: Mark deprecated
293
294         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
295         for anything anymore.
296
297         * gtk/gtkctree.h: Mark deprecated
298
299         * gtk/gtkclist.h: Mark deprecated
300
301         * gtk/gtkpreview.h: Mark deprecated
302
303         * gtk/gtkpacker.h: Mark deprecated
304
305         * gtk/gtktipsquery.h: Mark deprecated
306
307         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
308
309         * gtk/gtkvruler.h: Add comment that it will move out of GTK
310
311         * gtk/gtkhruler.h: Add comment that it will move out of GTK
312
313         * gtk/gtkruler.h: Add comment that it will move out of GTK
314
315         * gtk/gtkgamma.h: Add comment that it will move out of GTK
316
317         * gtk/gtkcurve.h: Add comment that it will move out of GTK
318
319 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
320
321         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
322         gdk_colormap_sync private since it was never exported
323         in a header file.
324
325         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
326         colormap->colors[] for StaticGray, StaticColor colormaps.
327
328         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
329         was being used as if it was image->bits_per_pixel.
330
331         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
332         for the image in the GdkImage structure since it isn't
333         reconstructable, and we need it to handle packed types
334
335         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
336         the assumption that on Win32 image->bits_per_pixel == image->depth,
337         always.
338
339         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
340
341         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
342         warning message if no converter can be found. 
343
344 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
345
346         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
347         chars to isupper() / tolower(). (#567)
348
349         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
350         to clear up 64-bit warnings. (#567)
351
352 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
353
354         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
355         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
356
357         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
358         since some people set $(libdir) separately. (#1290, David Kaelbling)
359
360 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
361
362         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
363         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
364         MAXPATHLEN, but the code here depends on a fixed value.)
365         (#4524)
366
367 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
368
369         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
370         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
371
372 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
373
374         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
375         viewable there is no way that moving the node will cause the 
376         focus row to become not viewable, so omit check on the visibility
377         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
378
379 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
380
381         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
382         selection before inserting new text.
383
384 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
385
386         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
387         Make the sensitivity of the reparented child track that of
388         the original parent menu item. (#34218, David Hodson)
389
390         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
391         the case where the current item is destroyed properly.
392
393         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
394         some edge cases with child-less menuitems.
395         
396 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
397
398         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
399         key pop down window. (#12074, Jon K Hellan)
400
401 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
402
403         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
404         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
405         The solution here isn't perfect - you get an extraneous
406         emission of "toggle", which could conceivably confuse an app,
407         but better than the current situation. LXR search seems to
408         indicate that no apps in GNOME CVS connect to "toggle".
409
410 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
411
412         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
413         gtk_public_h_sources to directly here to avoid warning when
414         building srcdir != builddir. (#9656)
415
416 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
417
418         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
419         handlers in gtkrange.c return the proper values (TRUE == handled)
420         (#10316).
421
422         This is just the tip of the iceberg, but gtkrange.c is the
423         most common place where the propagation is problematical,
424         and also a place where it is almost certainly safe to change
425         this in the stable branch.
426
427         (You don't want right click popups on a range control or anything...)
428
429 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
430
431         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
432         area on focus out, even if a background pixmap isn't set.
433         (#13941)
434         
435 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
436
437         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
438         to deal with setting the shape properly when scrolling arrows are
439         turned on, but not visible because there is sufficient space.
440         (#13432)
441
442 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
443
444         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
445         items with submenus, destroy the item along with the submenu.
446         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
447         properly.
448
449         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
450         later.
451
452 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
453
454         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
455         the focus widget sometimes wasn't drawn with the default if there
456         was no default widget.
457
458         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
459         unreference pixmaps. 
460
461         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
462         for some extra safety.
463
464 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
465
466         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
467         the text of a cell to the old pointer value better, by
468         copying the new text before freeing the old text. Some code
469         cleanup. (#8079, Karl Nelson)
470
471 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
472
473         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
474         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
475
476 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
477
478         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
479         item from a menu, check to see if it matches 
480         menu->old_active_menu_item, and if so, unref and clear
481         old_active_menu_item (Patch from Pavel Cisler)
482
483         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
484         menu_shell->active_menu_item, if it is the child being
485         removed. (Patch based on that of Gene Ragan, #50337)
486
487 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
488
489         * gdk/linux-fb/gdkselection-fb.c: 
490         * gdk/linux-fb/gdkcolor-fb.c: 
491         * gdk/linux-fb/gdkdrawable-fb2.c: 
492         * gdk/linux-fb/gdkfont-fb.c: 
493         * gdk/linux-fb/gdkim-fb.c: 
494         * gdk/linux-fb/gdkinput.c: 
495         * gdk/linux-fb/gdkkeyboard-fb.c: 
496         * gdk/linux-fb/gdkmain-fb.c: 
497         * gdk/linux-fb/gdkrender-fb.c: 
498         A bunch of whitespace cleanup.
499         
500 2001-01-30  Havoc Pennington  <hp@pobox.com>
501
502         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
503         #ifdef GTK_ENABLE_BROKEN.
504
505         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
506         GTK_ENABLE_BROKEN just before including the broken headers.
507         
508         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
509         deprecated types registered.
510
511         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
512         we have to test the broken stuff.
513
514         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
515         
516 2001-01-30  Havoc Pennington  <hp@redhat.com>
517
518         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
519         here where prev pointer was set to the wrong thing
520
521         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
522         (gtk_tree_path_is_descendant): new function
523
524         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
525         cached length
526         (gtk_list_store_get_iter): don't modify iter if we can't get the
527         path.
528
529         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
530         
531         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
532         GtkTreeDragDest
533
534         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
535         was causing segfault
536
537         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
538         pointer to NULL
539
540         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
541
542         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
543         on returning FALSE
544         (gtk_list_store_iter_children): ditto
545         (gtk_list_store_iter_nth_child): ditto
546         (gtk_list_store_iter_nth_child): ditto
547         (gtk_list_store_iter_parent): ditto
548
549         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
550         on iter->user_data != NULL instead of silently accepting it.
551         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
552         we are returning TRUE.
553         (gtk_tree_store_iter_children): ditto
554         (gtk_tree_store_iter_nth_child): ditto
555         (gtk_tree_store_iter_parent): ditto
556         (gtk_tree_store_insert): remove handling of parent->user_data ==
557         NULL, replace with parent == NULL       
558
559         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
560         and a comment explaining things
561
562         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
563         interface support to GtkTreeStore.
564
565         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
566         FALSE if no prev, fix
567
568         * gtk/gtktreeview.c (set_source_row): use a row reference
569         (set_dest_row): use a row reference
570
571 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
572
573         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
574         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
575         (gtk_tree_selection_select_iter): The same as above.
576
577 2001-01-26  Havoc Pennington  <hp@redhat.com>
578
579         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
580         which holds a handle to a specific row (particular set of values
581         in the model, i.e. pointer-identity row).
582
583         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
584         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
585         Still need to use it for the src/dest row saved on the drag context.
586
587 2001-01-26  Havoc Pennington  <hp@redhat.com>
588
589         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
590
591         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
592         not offset by TREE_VIEW_HEADER_HEIGHT
593         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
594         TREE_VIEW_HEADER_HEIGHT
595
596         * configure.in (included_loaders): for me, --with-included-loaders
597         generates the error "the specified loader yes does not exist",
598         i.e. the arg defaults to "yes", so change test for value ""
599         to test for value "yes", and include all loaders in that case.
600
601         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
602
603         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
604         handle TREE_VIEW_VERTICAL_SEPARATOR
605         (gtk_tree_view_bin_expose): fix to consider the row offset as
606         pointing halfway into vertical separator.       
607         (gtk_tree_view_draw_node_focus_rect): ditto
608
609         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
610         --gtk-debug=updates, which causes gdk_window_set_debug_updates
611         (TRUE) to be called.
612
613         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
614         debug mode where the invalid region is colored in on invalidate,
615         so you can see the flicker and know whether your redraw code is 
616         doing a good job.
617
618         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
619         tree window coordinates (clip rect is in tree window coords)
620
621         * gtk/Makefile.am: add gtktreednd.[hc]
622
623         * gtk/gtkliststore.c: implement gtktreednd interfaces.
624
625         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
626         drag-and-drop data operations on a model (so we can set up tree
627         drag-and-drop automatically)
628
629         * gtk/testgtk.c: Add a window to change sensitivity in the
630         GtkLabel test; add a way to change the entry frame in GtkEntry
631         test
632
633         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
634         (gtk_entry_get_has_frame): new functions to remove the frame
635         around an entry
636         (gtk_entry_size_request): shrink requisition if no frame
637         (gtk_entry_draw_focus): don't draw frame if no frame
638
639         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
640         checks inside a cell renderer
641         (gtk_default_draw_option): ditto for options
642
643         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
644         children from the alignment, not the button
645         (gtk_tree_view_column_init): ref/sink the column, to emulate
646         GObject refcounting.
647
648         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
649         
650         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
651         Use theme functions to draw the toggles 
652
653         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
654
655         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
656         GdkPangoAttrEmbossed to use in rendering insensitive text
657
658         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
659
660         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
661         using new GDK features
662         
663 2001-01-24  Alexander Larsson  <alexl@redhat.com>
664
665         * gtk/gtkimage.c:
666         Splitted gtk_image_clear into gtk_image_clear() and
667         gtk_image_reset(). Call gtk_image_clear() in ::destroy
668         to avoid leaks.
669
670         * gtk/gtklabel.c (set_markup):
671         Don't leak text.
672
673         * gtk/gtktextlayout.c:
674         Always free display->shaped_objects.
675
676         * gtk/testgtk.c (create_clist):
677         Don't leak custom style.
678
679 2001-01-23  Alexander Larsson  <alexl@redhat.com>
680
681         * gtk/gtkcolorsel.c (grab_color_at_mouse):
682         Don't leak image. Simplify using gdk_colormap_query_color().
683         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
684
685         * linux-fb/gdkcolor-fb.c:
686         Implemented gdk_colormap_query_color.
687
688 2001-01-23  Alexander Larsson  <alexl@redhat.com>
689
690         * linux-fb/gdkcursor-fb.c:
691         Don't leak built-in cursors.
692
693         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
694         Don't leak tmp_points.
695
696         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
697         Don't modify desc. Don't leak font if the PangoFont
698         isn't found.
699         
700         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
701         Free dash_list.
702
703         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
704         Don't leak string.
705         
706 2001-01-20  Havoc Pennington  <hp@pobox.com>
707
708         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
709         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
710         me, matches Pango
711
712 2001-01-22  Havoc Pennington  <hp@redhat.com>
713
714         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
715
716         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
717
718         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
719         Remove, move back to gdk-pixbuf
720
721         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
722         to all the word functions
723
724         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
725         before doing anything on NULL layout or if we don't have the focus
726
727         * gtk/testtext.c (fill_example_buffer): "justification"
728
729         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
730         to be called "justification" not "justify"
731
732         * demos/gtk-demo/textview.c (create_tags): "justification"
733         
734         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
735
736 2001-01-22  Alexander Larsson  <alexl@redhat.com>
737
738         * gdk/gdkwindow.c (gdk_window_invalidate_region):
739         Don't leak visible_region. Use visible_region instead of region.
740         
741         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
742         Don't do extra gdk_drawable_ref(). This is not X.
743         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
744         gdk_fb_focused_window is ref:ed.
745         (gdk_fb_window_send_crossing_events): Watch out for destroyed
746         windows.
747
748 2001-01-22  Alexander Larsson  <alexl@redhat.com>
749
750         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
751         Don't leak the PangoFontDescriptor.
752
753 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
754
755         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
756         when not realized.
757         (gtk_tree_view_scroll_to_cell): Make work when not realized.
758         (gtk_tree_view_realize): add scroll_to support
759         (gtk_tree_view_finalize): add a finalize method.  Populate.
760         (gtk_tree_view_insert_column): ref and sink the column.
761         (gtk_tree_view_append_column): ref and sink the column.
762         (gtk_tree_view_queue_draw_node): New function to handle redrawing
763         individual nodes.  Should make the code much more efficient, if
764         actually used.
765
766 2001-01-19  Havoc Pennington  <hp@redhat.com>
767
768         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
769         byte_offset variable was being used to mean both "offset into
770         layout" and "offset into buffer line" which was no longer true
771         with addition of preedit string; fix
772
773 2001-01-19  Havoc Pennington  <hp@redhat.com>
774
775         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
776
777         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
778         function
779
780         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
781         implement
782
783         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
784         scroll_to_cell, matches TextView scroll functions better
785         (gtk_tree_view_tree_to_widget_coords): new function
786         (gtk_tree_view_widget_to_tree_coords): new function
787         (gtk_tree_view_get_visible_rect): new function
788         (gtk_tree_view_get_path_at_pos): accept negative coordinates
789         (gtk_tree_view_draw_node_focus_rect): new function moved from
790         draw_focus, also, use width of bin_window as width of the focus
791         rect
792         (gtk_tree_view_expand_row): fix bug where it didn't recognize
793         already-expanded rows
794         (gtk_tree_view_get_cell_rect): new function
795         (gtk_tree_view_get_path_at_pos): return the click position
796         relative to the passed-in cell
797         (gtk_tree_view_set_expander_column): new function
798
799         * configure.in: remove gtk-config-2.0 chmod
800
801         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
802         and properly handle drags with targets we don't understand
803         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
804         scrolling anyway
805         (gtk_text_view_drag_drop): stop scrolling here though, and set the
806         mark invisible
807
808         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
809         function
810         (gtk_drag_dest_get_target_list): new function
811         (gtk_drag_dest_set_target_list): new function
812         
813         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
814
815         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
816         related to drag-and-drop
817
818 2001-01-19  Alexander Larsson  <alexl@redhat.com>
819
820         * gdk/linux-fb/gdkprivate-fb.h:
821         Define EMULATE_GDKFONT.
822         Add extra pango_font stuff to GfkFontPrivate.
823         
824         * gdk/linux-fb/gdkdrawable-fb2.c:
825         * gdk/linux-fb/gdkfont-fb.c:
826         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
827         emulation using PangoFont.
828
829 2001-01-17  Havoc Pennington  <hp@pobox.com>
830
831         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
832         all the non-deprecated set_foo functions. Added missing object
833         properties, and added g_object_notify() to setters. 
834         Wrote docs.
835         
836 2001-01-18  Tor Lillqvist  <tml@iki.fi>
837
838         * gtk/gtkmain.c
839         * gtk/gtkrc.c: (Win32) Use the new
840         g_win32_get_package_installation_(sub)directory() functions.
841
842         * config.h.win32.in: New file.
843         
844         * config.h.win32: Removed.
845
846         * configure.in: Output config.h.win32.
847
848         * Makefile.am: Add it to EXTRA_DIST.
849
850         * gtk/gtk.def: Update.
851
852 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
853
854         * gtk/gtklabel.c (gtk_label_size_request): Set the
855         attributes onto the PangoLayout even if they are newly
856         created from label->pattern.
857
858 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
859
860         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
861
862         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
863         structures in functions. Fixes bug where gtk_dataset_*
864         was accidentally still being used in one place, causing
865         every dest side event to be treated independently.
866
867         * gtk/gtkdnd.c: Remove last vestages of handling
868         ::draw (fixes warning)
869         
870         * gtk/gtkentry.[ch]: Add drag and drop support.
871
872         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
873         new function gtk_check_drag_threshhold() for checking
874         to check if (dx,dy) has exceeded the threshhold for starting
875         a drag and use it everywhere.
876
877 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
878
879         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
880         add -I{includedir}/gtk-2.0.
881
882         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
883         gdk/gdk-pixbuf.h: Doc fixups.
884         
885         * gtk/gtkobject.h: Remove trailing , from enum
886
887 2001-01-17 Alexander Larsson <alexl@redhat.com> 
888
889         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
890         Doh! Mixed up x and y.
891
892         * gdk/linux-fb/gdkglobals-fb.c:
893         Removed gdk_fb_pointer_grab_window_events,
894         added _gdk_fb_pointer_grab_owner_events and
895         _gdk_fb_keyboard_grab_owner_events.
896
897         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
898         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
899         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
900         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
901         Send crossing events after ungrab finished.
902         (gdk_keyboard_grab): Set ..._owner_events
903         (type_masks): Move out of function.
904         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
905         gdk_fb_keyboard_event_window): New functions, return the
906         window an event should be targeted at. Handles grabs and
907         event propagation. Can return NULL.
908         (gdk_event_make): Remove event_mask checking. Now always
909         returns an event.
910                 
911         * gdk/linux-fb/gdkkeyboard-fb.c:
912         * gdk/linux-fb/gdkproperty-fb.c:
913         * gdk/linux-fb/gdkselection-fb.c:
914         Use new event_window/gdk_event_make() behaviour.
915         
916         * gdk/linux-fb/gdkmouse-fb.c:
917         Use new event_window/gdk_event_make() behaviour.
918         Only send motion events if in the same window.
919         If grabbed, use cursor from window if sibling of grabbed
920         window, and cursor from grabbed window otherwise.
921
922         * gdk/linux-fb/gdkprivate-fb.h:
923         Update gdk_fb_window_send_crossing_events, gdk_event_make
924         and grab varaible declarations. Add gdk_fb_*_event_window().
925
926         * gdk/linux-fb/gdkwindow-fb.c:
927         Use new event_window/gdk_event_make() behaviour.
928         Keep correct track of focus window.
929         (gdk_window_set_events): Set all specific button motion masks
930         if GDK_BUTTON_MOTION_MASK set.
931
932         * gtk/gtkdnd.c (gtk_drag_update):
933         Free info->last_event if gdk_drag_motion returned FALSE.
934
935 2001-01-16  Tor Lillqvist  <tml@iki.fi>
936
937         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
938         Eliminate redraws when input-only windows are shown or
939         hidden. Thanks to jpe@archaeopteryx.com.
940
941 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
942
943         * docs/faq/gtk-faq.sgml: FAQ update:
944           - Update to bugzilla
945           - Add GTK+ and security/SUID/SGID
946           - Add DnD question
947
948 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
949
950         * gdk/linux-fb/gdkdnd-fb.c:
951         Some cleanups.
952         
953 2001-01-15  Havoc Pennington  <hp@pobox.com>
954
955         * tests/testtreeview.c: add test stuff for CellRendererToggle
956
957         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
958         accessor
959
960         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
961         only toggle on button press (would do release like GtkButton, but
962         we'd need implicit grab code for treeview cells)
963
964 2001-01-16  Tor Lillqvist  <tml@iki.fi>
965
966         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
967
968         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
969         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
970
971         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
972         to g_{locale,filename}_{to,from}_utf8 to match current API.
973
974         * gtk/makefile.msc.in (gtk_OBJECTS)
975         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
976
977         * gtk/gtk.def: Update.
978
979 2001-01-15  Tor Lillqvist  <tml@iki.fi>
980
981         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
982         implementaion that more closely mimics the events that an X server
983         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
984         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
985         with nested preview widgets, for instance, more responsive when
986         you move the mouse quickly into them.
987         (find_window_for_pointer_event): Make it actually compile.
988         (gdk_event_translate): Set send_event to the value of
989         InSendMessage (). This doesn't really mean the same as X11's
990         send_event flag, but is close enough, says jpe@archaeopteryx.com
991
992 2001-01-15  Alexander Larsson  <alexl@redhat.com>
993
994         * gdk/linux-fb/gdkdnd-fb.c:
995         Implemented drag and drop.
996         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
997         when it tries to free and then copy the same event (info->last_event).
998         I am not sure about why this happens, but will continue looking.
999
1000 2001-01-15  Alexander Larsson  <alexl@redhat.com>
1001
1002         * gdk/linux-fb/gdkwindow-fb.c:
1003         Use gdk_window_invalidate_rect instead of
1004         gdk_window_invalidate_rect_clear to minimise flashing.
1005         When hiding windows you need to clear the root window though.
1006
1007 2001-01-15  Alexander Larsson  <alexl@redhat.com>
1008
1009         * gdk/linux-fb/gdkdrawable-fb2.c:
1010         For optization, add an full_shapes argument to gdk_fb_clip_region.
1011         If this is false, only the cliprects of the shapes are used.
1012
1013         * gdk/linux-fb/gdkprivate-fb.h:
1014         Export gdk_fb_window_peek_shape.
1015         Add full_shapes to gdk_fb_clip_region.
1016
1017         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
1018         When moving a window, don't clear everything under the it, just the
1019         root window. Makes stuff faster and flash less.
1020         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
1021         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
1022         offset of the shape.
1023         
1024
1025 2001-01-12  Havoc Pennington  <hp@redhat.com>
1026
1027         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
1028         current invalid region, fixes redraw bug while scrolling the 
1029         text widget
1030
1031         * gtk/gtktextview.c, gtk/gtktextview.h:
1032         Rearrange the scrolling/validation/etc. code in a major way, 
1033         so it seems to make sense to me. Probably isn't genuinely that
1034         much better, but...
1035
1036         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
1037         notifies
1038
1039         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
1040
1041 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
1042
1043         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
1044         Hide mouse pointer while rotation. Show it afterwards.
1045
1046 2001-01-12  Alexander Larsson  <alexl@redhat.com>
1047
1048         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
1049         windows in consideration when generating clip region.
1050
1051         * gdk/linux-fb/gdkfb.h:
1052         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
1053
1054         * gdk/linux-fb/gdkprivate-fb.h:
1055         Add shape to GdkWindowFBDatat.
1056         exported gdk_fb_window_get_abs_shape().
1057         removed gdk_fb_draw_lines declaration.
1058
1059         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
1060         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
1061         send focus changes when there is a grabbed window.
1062         (gdk_window_get_pointer): Handle shaped windows.
1063         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
1064         (gdk_fb_window_peek_shape): Returns the shape for a window,
1065         handles GDK_FB_USE_CHILD_SHAPE.
1066         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
1067         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
1068         (gdk_window_shape_combine_mask): Implement.
1069
1070         * gtk/gtkwindow-decorate.c:
1071         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
1072         setting the shape of a window makes the window transparent.
1073
1074 2001-01-11  Havoc Pennington  <hp@redhat.com>
1075
1076         * gtk/gtktreemodelsimple.h: Oops, broke some macros
1077
1078 2001-01-10  Havoc Pennington  <hp@redhat.com>
1079
1080         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
1081         add this function, bug 40251
1082
1083         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
1084         of type macro   
1085
1086 2001-01-11  Alexander Larsson  <alexl@redhat.com>
1087
1088         * acconfig.h:
1089         Added ENABLE_SHADOW_FB
1090
1091         * configure.in:
1092         Added --disable-shadowfb
1093
1094         * gdk/linux-fb/gdkcursor-fb.c:
1095         Update shadowfb when updating cursor
1096
1097         * gdk/linux-fb/gdkdrawable-fb2.c:
1098         Added wrappers for shadowfb that calls  the normal drawable
1099         methods, but calls gdk_shadow_fb_update(bounding box) when
1100         GdkWindows are drawed to.
1101         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
1102         which also returns the bounding box.
1103
1104         * gdk/linux-fb/gdkfb.h:
1105         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
1106
1107         * gdk/linux-fb/gdkgeometry-fb.c:
1108         Update shadowfb when scrolling window.
1109
1110         * gdk/linux-fb/gdkglobals-fb.c:
1111         Add _gdk_fb_screen_angle.
1112         
1113         * gdk/linux-fb/gdkkeyboard-fb.c:
1114         Test code for screen rotation. Shift-F2 in the xlate driver
1115         rotates the screen.
1116
1117         * gdk/linux-fb/gdkmain-fb.c:
1118         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
1119
1120         * gdk/linux-fb/gdkmouse-fb.c:
1121         Use fb_width/height instead of modeinfo.xres/yres.
1122
1123         * gdk/linux-fb/gdkprivate-fb.h:
1124         Added fb_men, fb_width, fb_height & fb_stride. When using
1125         shadow fb these can differ from the framebuffer stuff.
1126         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
1127         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
1128         _gdk_fb_screen_angle. Removed CM, RP.
1129
1130         * gdk/linux-fb/gdkrender-fb.c:
1131         Added code for shadowfb handling and screen rotation using
1132         shadowfb.
1133
1134         * gdk/linux-fb/gdkwindow-fb.c:
1135         Use fb_mem, fb_stride, fb_width, fb_height.
1136         Added recompute_rowstride to reset the rowstride of all windows.
1137         Added gdk_fb_recompute_all() which recomputes rootwindow size,
1138         window abs positions and window rowstrides. Usefull when the
1139         rotation has changed.
1140
1141 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
1142
1143         * docs/faq/gtk-faq.sgml: update to make web site updating easier
1144
1145 2001-01-10  Havoc Pennington  <hp@redhat.com>
1146
1147         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
1148         where sibling == iter
1149         (gtk_tree_store_insert_after): handle sibling == iter
1150         (gtk_tree_store_prepend): remove stamp checks
1151         (gtk_tree_store_insert_before): ditto
1152         (gtk_tree_store_append): ditto
1153         (gtk_tree_store_get_path): ditto
1154         (gtk_tree_store_get_value): ditto
1155         (gtk_tree_store_iter_has_child): ditto
1156         (gtk_tree_store_iter_n_children): ditto
1157         (gtk_tree_store_iter_nth_child): ditto
1158         (gtk_tree_store_insert_after): ditto
1159         (gtk_tree_store_is_ancestor): ditto
1160         (gtk_tree_store_iter_depth): ditto
1161         (gtk_tree_store_insert_before): assert that sibling's parent is
1162         the same as the passed-in parent
1163         (gtk_tree_store_insert_after): assert that sibling's parent is
1164         the same as the passed-in parent
1165
1166         
1167         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
1168         function to get the first iterator in a model
1169         
1170         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
1171         conventionally the "root" in this sense is just NULL afaict.
1172
1173         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
1174         where sibling == iter
1175         (gtk_list_store_insert_after): handle case where sibling == iter
1176
1177         * tests/testtreeview.c (run_automated_tests): fairly lame basic
1178         automated tests for ListStore, TreeStore
1179
1180         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
1181         (gtk_list_store_insert): update tail pointer, and fix it to work
1182         (gtk_list_store_insert_before): update tail pointer, and fix it to work
1183         (gtk_list_store_append): use tail to be faster
1184         (gtk_list_store_prepend): fix it, update tail pointer
1185         (gtk_list_store_insert_after): fix it, update tail pointer
1186
1187         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
1188         the list
1189
1190 2001-01-09  Havoc Pennington  <hp@redhat.com>
1191
1192         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
1193         is NULL due to a pending resize
1194
1195         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
1196         column width to values less than 1
1197
1198         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
1199         width to be between min/max width, and still set the width 
1200         even if autosize is turned on, so the tree view can use this 
1201         function in order to autosize.
1202         (gtk_tree_view_column_init): set initial width to 1 not 0
1203
1204         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
1205         setter function to modify column width, so we get notification
1206         (gtk_tree_view_insert_iter_height): ditto
1207         (gtk_tree_view_calc_size): ditto
1208         (gtk_tree_view_check_dirty): ditto
1209
1210         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
1211         properties to change all the interesting attributes of the tree
1212         view column.
1213         (gtk_tree_view_column_set_header_clickable): rename set_clickable
1214         (gtk_tree_view_column_get_clickable): add
1215         (gtk_tree_view_column_set_cell_renderer): don't unset the current
1216         attributes; assume a cell renderer with equivalent object
1217         properties has been swapped in. Do g_object_notify().
1218         (gtk_tree_view_column_set_visible): g_object_notify
1219         (gtk_tree_view_column_get_sizing): rename from get_col_type
1220         (gtk_tree_view_column_set_sizing): g_object_notify
1221         (gtk_tree_view_column_set_width): add g_object_notify
1222         (gtk_tree_view_column_set_min_width): ditto
1223         (gtk_tree_view_column_set_max_width): ditto
1224         (gtk_tree_view_column_set_title): ditto
1225         (gtk_tree_view_column_set_clickable): ditto
1226         (gtk_tree_view_column_set_widget): ditto
1227         (gtk_tree_view_column_set_justification): ditto
1228
1229 2001-01-09  Havoc Pennington  <hp@redhat.com>
1230
1231         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
1232         there are no rows in the model
1233
1234         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
1235         NULL, then return the start of the list
1236
1237         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
1238         if we can't get any rows from an empty model 
1239
1240         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
1241         extraneous * after function pointer typedef usage
1242
1243         * Makefile.am: don't specify full path to cp and rm
1244
1245         * gtk/gtkcellrenderertextpixbuf.c
1246         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
1247         NULL before dereferencing, fixes a segfault that happened from
1248         time to time
1249
1250         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
1251         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
1252         and reindent the function
1253         (gtk_cell_renderer_pixbuf_get_size): indentation
1254
1255         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
1256         we quit it
1257         (gtk_dialog_add_buttons_valist): add g_return_if_fail
1258         (gtk_dialog_set_default_response): New function, to set default
1259         button
1260         (gtk_dialog_set_response_sensitive): New function, to set 
1261         sensitivity of buttons
1262
1263         * gtk/gtkcellrendererpixbuf.c
1264         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
1265         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
1266
1267         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
1268         handle any G_TYPE_OBJECT subclass, not just the base class, and 
1269         also boxed types.
1270         (_gtk_tree_data_list_value_to_node): ditto
1271
1272         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
1273         --gtk-debug=tree
1274
1275         * gtk/gtkmain.c: add GTK_DEBUG_TREE
1276
1277         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
1278
1279 2001-01-09  Tor Lillqvist  <tml@iki.fi>
1280
1281         * gdk/win32/gdkevents-win32.c: Implement better mouse
1282         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
1283         (find_window_for_pointer_event): New function.
1284         (gdk_event_translate): Use it when handling mouse events.
1285
1286 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
1287
1288         * configure.in:
1289         Added --with-included-loaders option
1290
1291         * gdk-pixbuf/Makefile.am:
1292         * gdk-pixbuf/gdk-pixbuf-io.c:
1293         Add support for including selected gdk-pixbuf loaders only.
1294
1295         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
1296         gtk_window_set_has_frame):
1297         Added inline documentation.
1298
1299         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
1300         * docs/reference/gdk/tmpl/windows.sgml:
1301         Added inline documentation.
1302
1303 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
1304
1305         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
1306         realizing buttons that have already been realized.
1307
1308 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
1309
1310         * tests/testtreeview.c (main): Show menu items before adding to
1311         option menu.
1312
1313         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
1314         around if we kill them.
1315
1316         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
1317         Return if we pass in a NULL model.
1318
1319 2001-01-08  Havoc Pennington  <hp@redhat.com>
1320
1321         * tests/testtreeview.c: hack on this some
1322
1323         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
1324         gtk_tree_store_set_valist, v is for arrays, valist for varargs
1325         list
1326         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
1327
1328         * gtk/gtkliststore.h: Add varargs set() and get() convenience
1329         functions
1330
1331 2001-01-08  Alexander Larsson  <alexl@redhat.com>
1332
1333         * gtk/gtkwindow-decorate.[hc]:
1334         * gtk/Makefile.am:
1335         New files. Contains an implementation of a minimal WM for
1336         linux-fb.
1337
1338         * gtk/gtkwindow.h:
1339         Add the possibility for GtkWindows to specify a frame. This
1340         is used for the window decoration code, but could concievably
1341         be used for X programs too (xmms style windows).
1342         GtkWindow->frame is the toplevel window if the window is framed.
1343         The signal frame_event gets all events that are targeted to
1344         GtkWindow->frame.
1345         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
1346         
1347         * gtk/gtkwindow.c:
1348         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
1349         Call out to gtkwindow-decorate.c for WM support in linx-fb.
1350
1351 2001-01-08  Alexander Larsson  <alexl@redhat.com>
1352
1353         * docs/README.linux-fb:
1354         Correct filename ~/.pangoft2_aliases
1355
1356         * gdk/gdkwindow.h:
1357         Added new function gdk_window_get_decorations.
1358
1359         * gdk/linux-fb/gdkfb.h:
1360         Removed _gdk_window_get_decorations declaration.
1361         Renamed _gdk_window_set_child_handler to
1362         gdk_fb_window_set_child_handler.
1363
1364         * gdk/linux-fb/gdkwindow-fb.c:
1365         Renamed _gdk_window_set_child_handler to
1366         gdk_fb_window_set_child_handler.
1367
1368         * gdk/x11/gdkwindow-x11.c:
1369         New function gdk_window_get_mwm_hints().
1370         Implemented gdk_window_get_decorations.
1371
1372         * docs/reference/gdk/tmpl/windows.sgml:
1373         * docs/reference/gdk/gdk-sections.txt:
1374         Added gdk_window_get_decorations docs.
1375         
1376 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
1377
1378         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
1379         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
1380         gdk_fb_window_send_crossing_events):
1381         Possibly send focus events when the mouse moves from one
1382         window to another.
1383
1384 2001-01-07  Tor Lillqvist  <tml@iki.fi>
1385
1386         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
1387         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
1388         to match current API.
1389
1390         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
1391         environment variable is set, don't call g_error when on a
1392         palettized (PseudoColor) display. Some people want to use GTK+ 
1393         in 256-colour mode even though works only partially.
1394
1395         * gdk/gdk.def
1396         * gtk/gtk.def
1397         * gtk/makefile.mingw.in: Update.
1398
1399 2001-01-05  Havoc Pennington  <hp@redhat.com>
1400
1401         * tests/testtreeview.c: hack on this a bit
1402
1403         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
1404         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
1405
1406         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
1407         was spelled incorrectly
1408         (GTK_IS_TREE_MODEL_SIMPLE): ditto
1409
1410         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
1411         from gtk_tree_view_set_headers_active   
1412
1413         * gtk/gtktexttag.c:
1414         (gtk_text_tag_get_property): handle PROP_DIRECTION
1415         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
1416         properties, bug 40235
1417
1418         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
1419         forward_to_line_end
1420
1421 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
1422
1423         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
1424         modules/input/gtkimcontextxim.c: Adapt to new prototypes
1425         for unicode,locale,filename conversion functions.
1426
1427 2001-01-05  Havoc Pennington  <hp@redhat.com>
1428
1429         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
1430         broken if called on the first position in the buffer.
1431
1432         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
1433         forward_to_delimiters to be called only if we aren't already at
1434         the delimiters.
1435
1436 2001-01-05  Havoc Pennington  <hp@redhat.com>
1437
1438         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
1439
1440 2001-01-05  Alexander Larsson  <alexl@redhat.com>
1441
1442         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
1443         colormap in here. Sync from X port.
1444         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
1445         Sync from X port.
1446         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
1447         This happens now and then, and i don't think it is a bug.
1448         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
1449         != endpoint.
1450         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
1451         GDK_LINE_SOLID.
1452
1453         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
1454         some of the fields filled in at least.
1455
1456         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
1457         miLineArcD is no more, remove it from the function definition.
1458
1459 2001-01-04  Havoc Pennington  <hp@redhat.com>
1460
1461         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
1462         this
1463
1464         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
1465         user_data instead of tree_node
1466
1467         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
1468         TREE_VIEW_COLUMN_SIZE
1469
1470         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
1471         "size" field to "width" finishes bug 40061
1472
1473         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
1474         for bitfields, bug 40268
1475
1476 2001-01-04  Havoc Pennington  <hp@redhat.com>
1477
1478         Rename some stuff:
1479         
1480         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
1481
1482         s/GtkModelSimple/GtkTreeModelSimple/g;
1483         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
1484         s/gtk_model_simple/gtk_tree_model_simple/g;
1485         s/gtkmodelsimple/gtktreemodelsimple/g;
1486
1487         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
1488
1489         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
1490         s/column_set_col_type/column_set_sizing/g;
1491
1492         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
1493         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
1494
1495         s/GtkCellRendererType/GtkCellRendererState/g;
1496         
1497         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
1498         (gtk_cell_renderer_toggle_class_init): change "state" property to
1499         "active", to match GtkToggleButton
1500         (gtk_cell_renderer_toggle_get_active): new function, bug
1501         40269
1502         (gtk_cell_renderer_toggle_set_active): new function
1503         (gtk_cell_renderer_toggle_set_property): route changes to toggle
1504         state through gtk_cell_renderer_set_active
1505
1506 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
1507
1508         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
1509         temporarily until they work again.  Brought up to date with
1510         changes in the model.
1511         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
1512         model.
1513
1514 2001-01-04  Havoc Pennington  <hp@redhat.com>
1515
1516         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
1517         equal to the line length, then position iterator before paragraph 
1518         separators. Fixes crash reported by Mikael Hermansson when
1519         pressing left arrow from the start of a line.   
1520
1521         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
1522         about byte indexes off the end
1523         (iter_set_from_char_offset): add g_error about char offsets
1524         off the end
1525
1526 2001-01-03  Havoc Pennington  <hp@redhat.com>
1527
1528         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
1529
1530         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
1531         of private functions; remove inclusion of private headers.
1532
1533         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
1534         function, so we don't need private functions in gtktextdisplay.c
1535
1536         * gtk/gtktextiterprivate.h: underscore-ification
1537
1538         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
1539         to instead say "only useful to implement widgets"
1540
1541         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
1542         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
1543         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
1544
1545         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
1546         This function was completely broken
1547
1548         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
1549
1550         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
1551
1552         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
1553
1554         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
1555
1556         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
1557
1558         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
1559
1560         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
1561         gtk_paint_layout
1562
1563         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
1564         gtk_paint_layout
1565
1566         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
1567         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
1568         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
1569         which were not implemented.     
1570
1571         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
1572         insert_pixbuf signal. Rename delete_text to delete_range since it
1573         also deletes pixbufs and child anchors. This almost closes bug
1574         40245 (still need to deal with child anchors)
1575
1576         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
1577         insert_pixbuf, change signal names as appropriate, change types of
1578         signals taking marks/tags to have the specific type, not just
1579         G_TYPE_OBJECT
1580         
1581         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
1582         closes bug 40051
1583
1584         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
1585         unnecessary remove_contents() call
1586         (gtk_option_menu_class_init): add a "changed" signal, closes
1587         bug 40039
1588         (gtk_option_menu_update_contents): emit "changed" if the 
1589         active menu item changes
1590
1591         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
1592         cast to GtkObject, reported by Jonas Borgstrom
1593         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
1594         we can't do stuff with side effects in finalize. Instead, spew a
1595         warning if the loader isn't closed.
1596
1597         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
1598         colormap in here, non-X ports probably need to sync to this change
1599
1600         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
1601         assertion that colormap != NULL, you can set the colormap to NULL
1602         if you like.
1603         
1604         * Makefile.am: remove gtk-config-2.0
1605
1606         * configure.in: Use pkg-config to locate GLib. Remove
1607         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
1608         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
1609         Use pkg-config to locate Pango. Output correct Pango libs to
1610         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
1611
1612         * Makefile.am (pkgconfig_DATA): install only target-specific pc
1613         files
1614         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
1615         X11 pc files
1616
1617         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
1618         unref from here
1619
1620 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
1621
1622         * configure.in:
1623         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
1624
1625 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
1626
1627         * gtk/gtktextlayout.c
1628         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
1629         variable when moving back onto a single line.
1630
1631 2001-01-01  Havoc Pennington  <hp@redhat.com>
1632
1633         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
1634
1635         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
1636
1637         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
1638         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
1639
1640 2001-01-01  Havoc Pennington  <hp@redhat.com>
1641
1642         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
1643
1644         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
1645         GtkTextAttributes
1646
1647         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
1648         #40246
1649         (gtk_text_attributes_copy_values): rename from 
1650         gtk_text_attributes_copy
1651         (gtk_text_attributes_copy): a more standard GTK copy function, 
1652         which returns a new object
1653
1654 2001-01-01  Havoc Pennington  <hp@redhat.com>
1655
1656         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
1657         
1658         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
1659         don't fill in tree_view->priv->selection, kind of an unexpected
1660         side effect
1661
1662         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
1663         gtkintl.h
1664         
1665         * gtk/gtkcellrenderer.c: Remove definition of _ and include
1666         gtkintl.h
1667         (gtk_cell_renderer_get_property): remove calls to g_value_init
1668
1669         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
1670         gtkintl.h
1671
1672         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
1673         and include gtkintl.h
1674         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
1675         property names
1676
1677         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
1678         GtkTreeSelection
1679         (_gtk_tree_selection_new_from_with_view): rename, return
1680         GtkTreeSelection
1681         (_gtk_tree_selection_set_tree_view): rename with uscore
1682         (gtk_tree_selection_get_selected): fill in the "model" out param
1683         first, so it gets filled in even if we return at the top of the 
1684         function
1685         (gtk_tree_selection_real_select_all): add a comment and an else{}
1686         to clarify this a bit
1687         (gtk_tree_selection_real_unselect_all): add the same else{}
1688
1689         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
1690         set_tree_view to have underscore prefixes, move them to the
1691         private header, fix return type of new_with_tree_view
1692         (struct _GtkTreeSelection): mark struct
1693         fields private  
1694
1695         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
1696         GtkTreeModelFlags, not a guint
1697         (gtk_tree_path_prev): return gboolean not gint
1698         (gtk_tree_path_up): return gboolean not gint
1699
1700         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
1701         return GtkTreeModelFlags, not a guint
1702
1703         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
1704         that child model is non-null before unrefing it
1705         (g_value_int_compare_func): make this a qsort compare func, not 
1706         a boolean predicate
1707
1708         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
1709         (add -umn to the end), and mark it unimplemented
1710         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
1711         I don't see what it's for - doesn't the model always sort itself?
1712         (gtk_tree_model_sort_set_compare): this had the wrong signature
1713
1714         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
1715         Fix the docs to say that it destructively replaces existing
1716         attributes (previously said that it added attributes).
1717         (gtk_tree_view_column_set_visible): canonicalize bool before
1718         equality testing. Also, check for realization before
1719         hiding/showing the tree_column->window; if this window could exist
1720         before realization, then it's busted and needs fixing, we can't 
1721         create GDK resources pre-realization. Also, remove
1722         superfluous queue_resize(), since set_size() does that for us.
1723         (gtk_tree_view_column_set_col_type): check realization before 
1724         using tree_column->window
1725
1726         * gtk/gtktreedatalist.c: fix filename in copyright notice
1727
1728 2000-12-31  Havoc Pennington  <hp@pobox.com>
1729
1730         * gtk/gtktextview.c: Rearrange all the
1731         scroll-while-dragging-or-selecting code to be different, not
1732         necessarily better. ;-)
1733         (gtk_text_view_scroll_to_mark): Change this
1734         function to take within_margin as a fraction instead of a pixel
1735         value, and to take alignment arguments (indicating where to align 
1736         the mark inside the visible area)
1737         
1738         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
1739         to GtkObject
1740
1741         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
1742         behavior so that offsets past the end of the line are not 
1743         allowed, and an offset equal to the line length moves the iterator
1744         to the next line
1745         (gtk_text_iter_set_line_index): make parallel change
1746         (gtk_text_iter_get_bytes_in_line): add this function
1747         
1748         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
1749         of byte indexes off the end of the line; byte index at the end of
1750         the line now returns FALSE and doesn't fill in the requested
1751         values, byte index past the end of the line is an error.  Also,
1752         don't allow -1 offset anymore, since its meaning is unclear.
1753
1754         This change exposes some bug in visual cursor motion, where we
1755         end up with a huge invalid byte index; needs fixing. Symptom of 
1756         bug is a crash when you hit up arrow.
1757         
1758         (_gtk_text_line_char_locate): match the change to byte_locate
1759
1760         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
1761         from start of line properly. fixes bug reported by Mikael
1762         Hermansson where backspace would delete all text before the
1763         cursor.
1764
1765 2000-12-30  Tor Lillqvist  <tml@iki.fi>
1766
1767         * gdk/win32/gdkwindow-win32.c
1768         (gdk_window_impl_win32_get_visible_region): New function, as in
1769         the X11 backend.
1770         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
1771         instead of duplicating the same code here.
1772
1773         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
1774         GDK_COLORMAP macro.
1775
1776         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
1777         destroy function.
1778         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
1779         access that.
1780
1781         * gtk/gtk.def: Update.
1782
1783         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
1784
1785 2000-12-30  Havoc Pennington  <hp@pobox.com>
1786
1787         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
1788         colormap on input only windows, to avoid special cases all over
1789         the code for these windows.
1790
1791 2000-12-26  Tor Lillqvist  <tml@iki.fi>
1792
1793         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
1794         we are on a palettized display ("PseudoColor" in X11), as the code
1795         for that doesn't work anyway, and never has.
1796
1797 2000-12-22  Alexander Larsson  <alexl@redhat.com>
1798
1799         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
1800         Don't use isprint() for chars > 255.
1801
1802 2000-12-21  Havoc Pennington  <hp@redhat.com>
1803
1804         * tests/testtreeview.c: more work
1805
1806 2000-12-21  Alexander Larsson  <alexl@redhat.com>
1807
1808         * docs/README.linux-fb:
1809         Update the docs to the new pangoft2 way.
1810
1811 2000-12-21  Alexander Larsson  <alexl@redhat.com>
1812
1813         * configure.in:
1814         For linux-fb get the pangoft2 cflags and libs. This needs a recent
1815         pango version.
1816         Remove modules/linux-fb/Makefile.
1817
1818         * gdk/linux-fb/gdkdrawable-fb2.c:
1819         Render glyphs using freetype.
1820
1821         * gdk/linux-fb/gdkfb.h:
1822         Add new fb-specific functions needed for managing windows.
1823
1824         * gdk/linux-fb/gdkmain-fb.c:
1825         Remove gdk_font_init/fini() calls.
1826
1827         * gdk/linux-fb/gdkpango-fb.c:
1828         Remove old implementation. Use pangoft2 instead.
1829
1830         * gdk/linux-fb/gdkprivate-fb.h:
1831         Remove PangoFBFont and related stuff.
1832
1833         * gdk/linux-fb/gdkwindow-fb.c:
1834         Implement drawable->get_visible_region.
1835         Implement support for _gdk_window_set_child_handler () and
1836         _gdk_window_get_decorations().
1837
1838         * modules/Makefile.am:
1839         Remove linux-fb subdir.
1840
1841         * modules/linux-fb/*:
1842         Removed all.
1843         
1844 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
1845
1846         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
1847         calls, as they are no longer needed.
1848
1849         * gtk/gtktreemodelsort.c: Fix up the comparison code.
1850         
1851         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
1852         figure out how to emit a signal on an interface.
1853
1854 2000-12-20  Havoc Pennington  <hp@redhat.com>
1855
1856         * tests: new directory to contain tests, gtk/test* should move
1857         here sometime (with appropriate on-cvs-server hackery)
1858
1859         * tests/testtreeview.c, tests/Makefile.am: a test
1860         
1861         * configure.in (AC_OUTPUT): add tests/Makefile
1862
1863         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
1864         and "invisible_set" which were missing
1865
1866         * gtk/gtkrbtree.h: some cheesy indentation fix
1867         
1868 2000-12-20  Alexander Larsson  <alexl@redhat.com>
1869
1870         * gtk/gtkinvisible.c (gtk_invisible_realize):
1871         Attach the style to the window so that the style it is not
1872         leaked when unrealizing the window.
1873
1874 2000-12-18  Havoc Pennington  <hp@redhat.com>
1875
1876         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
1877         begin/end user action where appropriate
1878         (gtk_text_view_commit_handler): add begin/end user action
1879
1880         * gtk/gtktextbuffer.c: add begin/end user action signals, and
1881         bracket interactive operations with begin/end user action pair.
1882         
1883         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
1884         "interactive" arg from insert_text and delete_text signals.
1885         Add begin_user_action, end_user_action signals
1886         (gtk_text_buffer_begin_user_action): 
1887         (gtk_text_buffer_end_user_action): New functions to delimit 
1888         a user-visible action
1889
1890         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
1891         signals.
1892         
1893 2000-12-18  Havoc Pennington  <hp@redhat.com>
1894
1895         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
1896         was pretty non-working.
1897
1898         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
1899         by passing the length to g_utf8_validate().
1900
1901 2000-12-16  Havoc Pennington  <hp@pobox.com>
1902
1903         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
1904         Port to GObject, can go back in gdk-pixbuf after setting up 
1905         a gdk-pixbuf-marshal.h header over there.
1906
1907         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
1908         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
1909         args
1910         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
1911         set
1912         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
1913         here, do it when we create the buttons later
1914         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
1915         (gtk_tree_view_map): paranoia checks that column->button is shown 
1916         and unmapped
1917         (gtk_tree_view_size_request): only request visible children.
1918         Move header size calculation in here, for cleanliness, and 
1919         to maintain invariants for child widgets if we eventually 
1920         let users set different children inside the buttons
1921         (gtk_tree_view_map_buttons): factor out code to map buttons,
1922         since it was being called several times
1923         (gtk_tree_view_size_allocate_buttons): move_resize the drag
1924         windows instead of just moving them; their height may change 
1925         if we allow random widgets in there, or the theme changes.
1926         (gtk_tree_view_size_allocate): move button size allocation 
1927         above emitting the scroll signals, to ensure a sane state when we
1928         hit user code
1929         (gtk_tree_view_button_release): remove queue_resize after
1930         tree_view_set_size(), set_size() will handle any resize queuing
1931         that's needed
1932         (gtk_tree_view_focus_in): just queue a draw, don't fool with
1933         draw_focus goo
1934         (gtk_tree_view_focus): use gtk_get_current_event() and
1935         gdk_event_get_state()
1936         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
1937         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
1938         semicolon
1939         (gtk_tree_view_create_button): show the button here
1940         (gtk_tree_view_button_clicked): actually emit the clicked signal
1941         on the column
1942         (_gtk_tree_view_set_size): return right away if the size is
1943         unchanged, as a cheesy optimization
1944         (gtk_tree_view_setup_model): rename set_model_realized to 
1945         setup_model to match the flag that indicates whether we've 
1946         called it
1947         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
1948         exist, because set_scroll_adjustment does that and it shouldn't
1949         matter what order you call these in
1950         (gtk_tree_view_get_vadjustment): ditto
1951         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
1952         for paranoia
1953         (gtk_tree_view_set_headers_visible): call
1954         gtk_tree_view_map_buttons() instead of using cut-and-paste code
1955         (gtk_tree_view_append_column): clarify whether the return value
1956         is the count of columns before or after, and do the increment 
1957         separately from the return statement so you can tell from the code.
1958         (gtk_tree_view_remove_column): ditto
1959         (gtk_tree_view_insert_column): ditto
1960         (gtk_tree_view_get_column): remove g_return_if_fail for columns
1961         outside the existing range, the docs say that outside-range
1962         columns are allowed, so we handle them as documented. (Presumably
1963         this allows a nice loop with column != NULL as test.)
1964         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
1965         mean (left/right/center etc.).
1966         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
1967         (gtk_tree_view_expand_row): add docs
1968         (gtk_tree_view_collapse_row): add docs
1969
1970         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
1971         function to emit the clicked signal on a column
1972         
1973         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
1974         state of an event
1975         (gdk_event_get_time): don't treat GDK_SCROLL 
1976         as a button event, remove default case from switch so gcc 
1977         will whine if we don't explicitly handle all event types
1978
1979         * gtk/gtktreeselection.h: added some FIXME 
1980         
1981         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
1982         "columns" to "n_columns" and "column" to "columns" for clarity
1983
1984 2000-12-16  Havoc Pennington  <hp@pobox.com>
1985         
1986         * gtk/gtktextiter.c: General cleanup of the log attr iteration
1987         stuff. This should make e.g. the delete key work again in the
1988         text widget...
1989         (gtk_text_iter_forward_cursor_positions): handle negative count
1990         (gtk_text_iter_backward_cursor_positions): handle negative count
1991         (gtk_text_iter_forward_word_ends): handle negative count
1992         (gtk_text_iter_backward_word_starts): handle negative count
1993
1994         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
1995         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
1996         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
1997         GObject. No doubt will cause breakage.
1998
1999         * demos/gtk-demo/textview.c: remove hacks around
2000         non-GObject-ification of the text objects
2001
2002         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
2003         the text tag
2004         
2005 2000-12-14  Havoc Pennington  <hp@pobox.com>
2006
2007         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
2008         that we have Xrender
2009
2010 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
2011
2012         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
2013         Add two virtualized functions gdk_drawable_get_clip_region - to
2014         get the clip region when drawing.
2015         
2016         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
2017         use invalidate_region.
2018
2019         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
2020         region.
2021
2022         * acconfig.h configure.in: Check for Xft. For now, assume
2023         that if Xft is found, Pango was compiled with Xft support
2024         as well.
2025
2026         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
2027         gdk_colormap_query_color().
2028         
2029         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
2030         with Xft if appropriate.
2031
2032         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
2033         a pangoxft context if we have XFT and the environment
2034         variable GD_USE_XFT is set.
2035         
2036         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
2037         and also possibly an XftDraw structure.
2038
2039         * gtk/gtkfontsel.c: Handle the case where the font from the
2040         style doesn't match any of the fonts a bit better.
2041         
2042         * gtk/testgtk.c: Add tabs between directional segments for
2043         hebrew/arabic test. (Not really necessary, just a little
2044         prettier.)
2045
2046 2000-12-14  Havoc Pennington  <hp@redhat.com>
2047
2048         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
2049         reading a file
2050
2051 2000-12-14  Havoc Pennington  <hp@redhat.com>
2052
2053         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
2054         unused call to get_last_line()
2055
2056         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
2057         here until boxed is working (and maybe after that - we should
2058         really not gratuitously break old code)
2059
2060         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
2061         specific types for font_desc and tabs args, move them to
2062         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
2063         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
2064
2065         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
2066         use GTK_TYPE_POINTER for signal signatures as a hack-around
2067
2068         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
2069         PangoTabArray
2070
2071         * gtk/gtktextlayout.c (line_display_iter_to_index): 
2072         make static
2073         (line_display_index_to_iter): make static
2074
2075         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
2076         to marshal a string not a boxed
2077
2078         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
2079
2080         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
2081         since the UTF-8 isn't validated yet
2082
2083         * gtk/gtktextsegment.c (char_segment_check_func): don't require
2084         lines to end in '\n'
2085         
2086         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
2087         forward_to_delimiters, and grapheme boundaries
2088         (gtk_text_view_delete_from_cursor): properly handle non-newline
2089         delimiters, and grapheme boundaries
2090
2091         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
2092         to gtk_text_iter_forward_to_delimiters, and make it work properly
2093         if empty lines end with a character other than '\n'
2094
2095         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
2096         position
2097
2098 2000-12-15  Tor Lillqvist  <tml@iki.fi>
2099
2100         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
2101
2102         * gtk/gtk.def
2103         * gdk/gdk.def: Update.
2104
2105         * gdk/win32/gdkmain-win32.c
2106         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
2107         gdkmain-win32.c here.
2108
2109         * gdk/win32/makefile.mingw.in (all): No need to make
2110         gdk-win32res.o here, the makefile one step up will call us to make
2111         it.
2112
2113         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
2114         gdkkeys-win32.
2115
2116         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
2117
2118         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
2119         call to g_source_add().
2120
2121         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
2122         leak. Thanks to Andreas Kemnade.
2123
2124 2000-12-13  Havoc Pennington  <hp@pobox.com>
2125
2126         * gtk/gtktextbtree.h: Remove double _ in front of some functions
2127
2128         * gtk/gtktext*.[hc]: update accordingly
2129         
2130 2000-12-13  Havoc Pennington  <hp@pobox.com>
2131
2132         * gtk/gtktextbtree.h: Put _ in front of every function in this 
2133         header file
2134
2135         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
2136
2137 2000-12-13  Alex Larsson  <alexl@redhat.com>
2138
2139         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
2140         Add support for ps2 intellimouse.
2141
2142         * gdkkeyboard-fb.c:
2143         Move shift-F1 repaint handling to xlate handler only.
2144         
2145         * docs/README.linux-fb:
2146         Add imps2 to docs.
2147         Document the new refresh keys.
2148         
2149 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
2150
2151         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
2152
2153         * gtk/gtkbox.c: change property types from (u)long to (u)int for
2154         ::position and ::padding.
2155
2156         * gtk/gtkcontainer.c: make ::border_width an INT property.
2157
2158         * gtk/gtkpacker.c: make ::position an INT property.
2159
2160         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
2161         guard against NULL h/v scrollbars, since this is used at construction
2162         time.
2163
2164         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
2165         internal gtk_clist_constructor().
2166
2167         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
2168         gtk_ctree_constructor().
2169
2170         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
2171         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
2172
2173         * docs/reference/Makefile.am: fun stuff, disabled docs generation
2174         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
2175
2176         * gtk/gtkwidget.[hc]:
2177         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
2178         and gtk_widget_get().
2179         (gtk_widget_new): use g_object_new_valist().
2180         (gtk_widget_set): use g_object_set_valist().
2181
2182         * gtk/gtkobject.[hc]:
2183         removed gtk_object_arg_get_info(), gtk_object_getv(),
2184         gtk_object_query_args(), gtk_object_newv(),
2185         gtk_object_class_add_signals(),
2186         gtk_object_class_user_signal_new(),
2187         gtk_object_class_user_signal_newv(),
2188         gtk_object_arg_set(), gtk_object_arg_get(),
2189         gtk_object_args_collect(),
2190         gtk_object_default_construct(),
2191         gtk_object_constructed(),
2192         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
2193         removed nsignals, signals and n_args members from GtkObjectClass.
2194         (gtk_object_new): use g_object_new_valist().
2195         (gtk_object_set): use g_object_set_valist().
2196         (gtk_object_get): use g_object_get_valist().
2197         
2198         * gtk/gtkcompat.h: define gtk_object_default_construct().
2199         
2200         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
2201         g_object_new().
2202
2203         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
2204         fucntions, cleaned up method assignments (make sure your structures
2205         are setup properly before calling out). removed all GTK_CONSTRUCTED
2206         hacks ;)
2207
2208 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
2209
2210         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
2211         off-by-one error in checks. (Dave Lambert)
2212
2213 2000-12-12  Alexander Larsson  <alexl@redhat.com>
2214
2215         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
2216         Don't free gdk_fb_keyboard twice.
2217
2218 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
2219
2220         * gtk/testgtk.c:
2221         (create_tooltips): 
2222         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
2223         use GObject swapped_signal:: properties instead.
2224
2225         * gtk/gtkcellrenderertoggle.c: 
2226         * gtk/gtkcellrenderertextpixbuf.c: 
2227         * gtk/gtkcellrenderertext.c: 
2228         * gtk/gtkcellrendererpixbuf.c: 
2229         * gtk/gtkcellrenderer.c:
2230         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
2231         missing warnings for invalid property ids, install properties
2232         with g_object_class_install_property() now.
2233         
2234         * gtk/gtksignal.c:
2235         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
2236         
2237 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
2238         
2239         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
2240         to determine if a window is the focus widget within
2241         its toplevel.
2242
2243         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
2244         to be boolean.
2245
2246         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
2247         of the case where the container CAN_FOCUS to here instead
2248         of having it in each individual move-the-focus place.
2249
2250         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
2251         focusing to be geometric in a much more obvious sense. Arrowing
2252         around is still non-intuitive because it isn't perfect and
2253         because entries, etc, grab the arrow keys, but it at least
2254         usually will do what you expect now.
2255         
2256         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
2257         file.
2258
2259         * gtk/gtknotebook.c: Change tabs to be a single item in
2260         the focus chain. Make movement of focus on tabs with arrow
2261         keys wrap around.
2262         
2263         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
2264         CHECK_FIND_CHILD macro to give informative error messages
2265         instead of silent returns.
2266
2267         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
2268         flag since we handle GdkReturn on the tabs.
2269
2270         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
2271         windows rather than sending expose events directly.
2272
2273         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
2274         definition for GtkNotebookPage into .c file, since it is private.
2275
2276         * gtk/testgtk.c (create_notebook): Add option for 
2277         testing borderless notebook.
2278
2279         * gtk/testgtk.c (page_switch): Removed egregious poking
2280         around in GTK+ internals.
2281
2282         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
2283
2284         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
2285         properly through gtk_clist_focus. Make the title headers a
2286         single item in the tab-focus chain, and make left-right wrap
2287         around.
2288
2289         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
2290         focus method so that wrapping around works properly.
2291
2292         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
2293         that is handled for the widget now. 
2294
2295 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
2296
2297         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
2298         widgets as TOPLEVEL.
2299
2300         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
2301         TOPLEVEL widgets are containers.
2302
2303         * gtk/gtkinvisible.h: Remove useless include.
2304
2305 2000-12-11  Havoc Pennington  <hp@redhat.com>
2306
2307         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
2308         Handle chopping off \r\n and 0x2029 in addition to \n before
2309         passing to PangoLayout
2310
2311         * gtk/gtkimcontextsimple.c
2312         (gtk_im_context_simple_get_preedit_string): 
2313         return an empty string if no match is pending
2314
2315         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
2316         assertion that the returned preedit string was sane
2317
2318         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
2319         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
2320         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
2321
2322 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
2323
2324         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
2325         Fix up finalizer to chain to its parent.
2326
2327 2000-12-11  Alexander Larsson  <alexl@redhat.com>
2328
2329         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
2330         Clearified the difference between the keyboard types. Wrote a note
2331         about the magic sysrq key to get out of raw mode.
2332
2333 2000-12-09  James Henstridge  <james@daa.com.au>
2334
2335         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
2336         member to hold masks for detecting the start of a protocol packet.
2337         (mouse_devs): add packet start masks for ps2 and ms device types.
2338         Left the mask for fidmour blank, as I have no idea what it should
2339         be.
2340         (handle_mouse_io): skip bytes until we get to the start of a
2341         packet.  My Logitech mouse seems to be passing an extra NULL pad
2342         byte, and GPM does a similar thing here.
2343         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
2344         this is the ms mouse driver.
2345         (gdk_fb_mouse_ms_packet): fix up button handling, which was
2346         completely broken except for button1.  It was checking the wrong
2347         bit in the packet for the status of the right mouse button, and
2348         wrongly assuming right == button2 rather than 3.  I fixed that and
2349         also added support for middle button (button2).
2350
2351 2000-12-08  Havoc Pennington  <hp@redhat.com>
2352
2353         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
2354         that cause a segfault on text insertion
2355
2356         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
2357         warning
2358
2359         * gtk/gtktextiter.c (test_log_attrs): use
2360         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
2361
2362         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
2363         Get log attrs for a line, using a cache stored on the buffer
2364         
2365         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
2366         reported by Jeff Franks
2367
2368 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
2369
2370         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
2371         /dev/ttyS0 -> /dev/mouse
2372
2373 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
2374
2375         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
2376         Added dummy gdk_fontset_load.
2377
2378 2000-12-08  Alexander Larsson  <alexl@redhat.com>
2379
2380         * docs/README.linux-fb:
2381         * docs/Makefile.am:
2382         Initial GtkFB docs.
2383         
2384         * gdk/linux-fb/Makefile.am:
2385         Define GDK_DATA_PREFIX.
2386
2387         * gdk/linux-fb/gdkmain-fb.c:
2388         Fix typo.
2389         Change default display to /dev/fb0.
2390
2391         * gdk/linux-fb/gdkpango-fb.c:
2392         Add $(prefix)/share/fonts/ to font path.
2393         
2394 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
2395
2396         * gdk/linux-fb/gdkkeyboard-fb.c:
2397         New file containing the abstracted keyboard driver. Most code
2398         taken from gdkinput-ps2.c
2399
2400         * gdk/linux-fb/gdkinput-ps2.c:
2401         Removed file.
2402         
2403         * gdk/linux-fb/Makefile.am:
2404         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
2405
2406         * gdk/linux-fb/gdkcolor-fb.c:
2407         display->fb was renamed to display->fb_fd.
2408
2409         * gdk/linux-fb/gdkcursor-fb.c:
2410         gdk_mouse_get_info -> gdk_fb_mouse_get_info
2411
2412         * gdk/linux-fb/gdkinput.c:
2413         Moved gdk_input_init here from gdkinput-ps2.c
2414
2415         * gdk/linux-fb/gdkmain-fb.c:
2416         display->fb was renamed to display->fb_fd.
2417         Now the tty and the console is opened here instead
2418         of in the keyboard driver. Also check GDK_VT to see what
2419         tty to open.
2420         Move gdk_beep () here from gdkinput-ps2.c
2421         gdk_mouse_get_info -> gdk_fb_mouse_get_info
2422
2423         * gdk/linux-fb/gdkmouse-fb.c:
2424         Add header.
2425         gdk_mouse_get_info -> gdk_fb_mouse_get_info
2426         Return correct keyboard modifiers.
2427         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
2428
2429         * gdk/linux-fb/gdkprivate-fb.h:
2430         Add tty and vt info to display.
2431         Add orignal modeinfo storage to display
2432         Update global functions
2433
2434         * gdk/linux-fb/gdkwindow-fb.c:
2435         Added gdk_fb_window_find_focus().
2436         gdk_mouse_get_info -> gdk_fb_mouse_get_info
2437
2438 2000-12-07  Havoc Pennington  <hp@pobox.com>
2439
2440         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
2441         function, noticed by Alex
2442
2443 2000-12-06  Elliot Lee  <sopwith@redhat.com>
2444
2445         * configure.in: Detect freetype properly
2446
2447         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
2448         above.
2449
2450 2000-12-06  Alexander Larsson  <alexl@redhat.com>
2451
2452         * gdk/linux-fb/Makefile.am:
2453         Add gdkmouse-fb.c
2454         
2455         * gdk/linux-fb/gdkmouse-fb.c:
2456         New file. Abstracted the mouse drivers a bit.
2457
2458         * gdk/linux-fb/gdkcursor-fb.c:
2459         The cursor hide/show functions was moved here from gdkinput-ps2.c.
2460
2461         * gdk/linux-fb/gdkinput-ps2.c:
2462         Removed old mouse handling code. Moved cursor handling code
2463         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
2464         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
2465         gdk_mouse_get_info.
2466
2467         * gdk/linux-fb/gdkmain-fb.c:
2468         Pass NULL pointers for x,y in gdk_mouse_get_info call.
2469
2470         * gdk/linux-fb/gdkprivate-fb.h:
2471         Removed public gdk_fb_find_common_ancestor, added and renamed
2472         functions for the new mouse handling code.
2473
2474         * gdk/linux-fb/gdkwindow-fb.c:
2475         Moved gdk_fb_window_send_crossing_events here. added global
2476         variable gdk_fb_window_containing_pointer. made
2477         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
2478         renamed to gdk_mouse_get_info.
2479
2480 2000-12-06  Alexander Larsson  <alexl@redhat.com>
2481
2482         * gdk/linux-fb/gdkevents-fb.c:
2483         Update to match latest gmain/gsource changes.
2484
2485         * gdk/linux-fb/gdkinput-ps2.c:
2486         Bogus gdk_keymap_get_entries_for_keycode implementation so that
2487         it links. Will be implemented later.
2488
2489 2000-12-03  Havoc Pennington  <hp@pobox.com>
2490
2491         * gdk/Makefile.am: add gdkkeys.[hc]
2492
2493         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
2494         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
2495
2496         * acconfig.h, configure.in: add checks and command line options
2497         for XKB
2498
2499         * gdk/x11/gdkkeys-x11.c: Implement the above functions
2500         
2501         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
2502         and group in the key event
2503
2504         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
2505         field with the low-level hardware key code, and a group
2506         field with the keyboard group
2507
2508         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
2509         and declare a couple globals used for keymap handling
2510         
2511         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
2512         hold down Shift-Control and type a hex number to get a Unicode 
2513         character corresponding to the hex number
2514         (gtk_im_context_simple_get_preedit_string): Fix cursor position
2515         (return bytes not chars)
2516
2517 2000-12-05  Elliot Lee  <sopwith@redhat.com>
2518
2519         * gdk/gdkcolor.h: Make GdkColor specify element sizes
2520         to avoid waste on 64-bit platforms.
2521
2522 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
2523
2524         * INSTALL: Fix link to PNG home, remove reference
2525         to fribidi.
2526
2527         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
2528         
2529         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
2530         tested.)
2531
2532         * gtk/gtkcheckmenuitem.c: Permanently turn on
2533         always_show_toggle.
2534
2535         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
2536         be NULL. (Vladimir Klebanov, #26545)
2537
2538         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
2539         some signed/unsigned comparison problems. (#6510,
2540         David Kaelbling)
2541
2542         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
2543         return type to boolean (Oskar Liljeblad, #18648)
2544
2545 2000-12-05  Alexander Larsson  <alexl@redhat.com>
2546
2547         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
2548         Remove bogus colormap setting.
2549
2550 2000-12-05  Alexander Larsson  <alexl@redhat.com>
2551
2552         * gdk/linux-fb/gdkcolor-fb.c:
2553         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
2554
2555         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
2556         Must set colormap.
2557         
2558 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
2559
2560         * docs/tutorial/gtk-tut.sgml: DND updates
2561
2562 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
2563
2564         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
2565         Remove old debug g_warning().
2566         (gdk_fb_draw_drawable): The src argument can be either a wrapper
2567         or an implementation, just pass the implementation to draw_drawable_2.
2568         
2569         * gdk/linux-fb/gdkprivate-fb.h:
2570         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
2571
2572         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
2573         clear and invalidate area when window is destroyed.
2574         (send_map_events): Remove old commented out code.
2575
2576 2000-12-05  Alexander Larsson  <alexl@redhat.com>
2577
2578         * gdk/linux-fb/gdkpango-fb.c:
2579         Use italic instead of oblique in font aliases.
2580         
2581         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
2582         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
2583         other unsupported functions.
2584
2585 2000-12-04  Havoc Pennington  <hp@redhat.com>
2586
2587         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
2588
2589         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
2590
2591         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
2592
2593         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
2594         hack to avoid infinite loops (synthetic expose event) - 
2595         Owen has more appropriate fixes in a branch he'll check in later.
2596
2597         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
2598         separator, CR, and CRLF as line ends
2599
2600         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
2601         into lines using pango_find_paragraph_boundary(); other bits of
2602         the widget are still going to be broken if the boundary isn't '\n'
2603         though
2604
2605 2000-12-04  Alexander Larsson  <alexl@redhat.com>
2606
2607         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
2608         multiply.
2609
2610         * gdk/linux-fb/gdkpango-fb.c:
2611         Copied some 26.6 scaling macros from pango to clean up the rounding.
2612         (pango_fb_font_get_glyph_info): Correct sign on x value.
2613
2614         * gdk/linux-fb/gdkprivate-fb.h:
2615         Removed unreferenced external functions.
2616
2617         * modules/linux-fb/Makefile.am: Use ` instead of '.
2618
2619         * modules/linux-fb/basic.c:
2620         Remove dead code. In particular the dummy lang engine which broke all
2621         pango layouts in GtkFB. Don't include tables-big.i anymore.
2622
2623         * modules/linux-fb/tables-big.i:
2624         Upgrade to latest version from pango. Left for reference, basic_ranges
2625         moved to basic.c.
2626         
2627 2000-12-04  Havoc Pennington  <hp@redhat.com>
2628
2629         Fix bugs Alex found:
2630         
2631         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
2632         to "draw"
2633
2634         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
2635
2636         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
2637
2638         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
2639         implementation in here, apparently the expose() implementation was
2640         dead code.
2641
2642 2000-12-04  Alexander Larsson  <alexl@redhat.com>
2643
2644         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
2645         Return positive descent.
2646
2647 2000-12-02  Havoc Pennington  <hp@pobox.com>
2648
2649         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
2650         method and signal
2651         
2652         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
2653         calls gdk_window_process_updates() to push the exposes through
2654         (gtk_widget_class_init): No more draw signal, no
2655         gtk_widget_real_draw()  
2656         
2657         * gtk/gtkbin.c (gtk_bin_draw): remove
2658
2659         * gtk/gtkbox.c (gtk_box_draw): remove
2660
2661         * gtk/gtkbutton.c (gtk_button_draw): remove
2662
2663         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
2664
2665         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
2666
2667         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
2668
2669         * gtk/gtkclist.c (gtk_clist_draw): remove
2670
2671         * gtk/gtkentry.c (gtk_entry_draw): remove
2672
2673         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
2674
2675         * gtk/gtkfixed.c (gtk_fixed_draw): remove
2676
2677         * gtk/gtkframe.c (gtk_frame_draw): remove
2678
2679         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
2680
2681         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
2682
2683         * gtk/gtklayout.c (gtk_layout_draw): remove
2684
2685         * gtk/gtklist.c (gtk_list_draw): remove
2686
2687         * gtk/gtklistitem.c (gtk_list_item_draw): remove
2688
2689         * gtk/gtkmenu.c (gtk_menu_draw): remove
2690
2691         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
2692
2693         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
2694
2695         * gtk/gtknotebook.c (gtk_notebook_draw): remove
2696
2697         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
2698
2699         * gtk/gtkpacker.c (gtk_packer_draw): remove
2700
2701         * gtk/gtkrange.c (gtk_range_draw): remove
2702
2703         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
2704
2705         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
2706
2707         * gtk/gtktable.c (gtk_table_draw): remove
2708
2709         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
2710
2711         * gtk/gtktext.c (gtk_text_draw): remove
2712
2713         * gtk/gtktextview.c (gtk_text_view_draw): remove
2714
2715         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
2716
2717         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
2718
2719         * gtk/gtktree.c (gtk_tree_draw): remove
2720
2721         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
2722
2723         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
2724
2725         * gtk/gtkviewport.c (gtk_viewport_draw): remove
2726
2727         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
2728
2729         * gtk/gtkvscale.c (gtk_vscale_draw): remove
2730
2731         * gtk/gtkwindow.c (gtk_window_draw): remove
2732
2733 2000-20-01  Anders Carlsson  <andersca@gnu.org>
2734
2735         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
2736         a GtkToggleButton is both insensitive and active, it was being
2737         drawn by the GtkButton draw handler which doesn't check the
2738         state. Now it's calling gtk_toggle_button_paint instead.
2739         
2740 2000-12-01  Havoc Pennington  <hp@redhat.com>
2741
2742         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
2743         dangling pointers to the appearance attributes from the 
2744         line display
2745
2746         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
2747         width/height to mean "full width/height of drawable"
2748
2749         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
2750         click to select word/line
2751         
2752         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
2753         when getting log attrs. Get a slice, so that pixmaps and stuff
2754         are properly handled.
2755
2756         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
2757         paste into the selection (replaces selection now, previously
2758         crashed or added to selection). Reveals longstanding btree bug -
2759         select multiple lines, middle-click on the selection, boom. This
2760         isn't related to my changes though.
2761
2762         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
2763         PangoLogAttrs changes
2764         (gtk_entry_move_backward_word): ditto
2765
2766         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
2767         functions return bool whether the iter moved onto a
2768         dereferenceable position.
2769  
2770         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
2771         functions for motion in terms of display lines.
2772
2773         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
2774         get the buffer a mark is inside
2775         
2776 2000-12-01  Alexander Larsson  <alexl@redhat.com>
2777
2778         * gdk/linux-fb/Makefile.am:
2779         * modules/linux-fb/Makefile.am:
2780         Freetype 2 final uses freetype-config
2781
2782         * gdk/linux-fb/gdkpango-fb.c:
2783         Upgrade to use Freetype 2 final.
2784         More flexible support for font aliases, this also fixes a bug with
2785         GtkFontSelector, as the aliases must be visible in the font/family list,
2786         or GtkFontSelector reads uninitialized memory.
2787
2788 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
2789
2790         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
2791         XGetIMValues to properly terminate variable argument list, and do
2792         NULL return check for ic_values and xim_styles.
2793
2794         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
2795         Restore preedit state after XmbResetIC().
2796         
2797         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
2798         XvaCreateNestedList() should take XvaNestedList, but not
2799         XvaNestedList*.
2800
2801         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
2802         preedit_draw_callback, preedit_caret_callback): Match
2803         "preedit-changed" signal name to "preedit_changed" to be
2804         consistent to the spec.
2805
2806         * gtk/gtkimcontextsimple.c (check_table):
2807         Match "preedit-changed" to "preedit_changed" to be consistent
2808         to the spec.
2809
2810 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
2811
2812         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
2813         gc->clip_region == NULL>
2814
2815 2000-11-30  Tor Lillqvist  <tml@iki.fi>
2816
2817         Changes by Hans Breuer:
2818         
2819         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
2820         Dont't use negative width and height as max_hints. This fixes
2821         Owen's recent testgtk changes for win32.
2822
2823         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
2824         gdk_win32_hdc_release): These are exported and may be called with
2825         other drawable types than our GdkDrawableImplWin32 (?).
2826
2827         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
2828         so always #define USE_BACKING_STORE.
2829
2830         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
2831         of printf for debugging output.
2832
2833         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
2834         
2835         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
2836
2837         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
2838         declaration.
2839
2840         * gtk/gtktexttypes.h: Ditto.
2841
2842         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
2843         (GDK_VoidSymbol) also if in case of arg check failure.
2844
2845         * gtk/gtkimcontextsimple.c
2846         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
2847         position to the pointer, but to the variable it points to.
2848
2849         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
2850
2851         * gtk/gtk.def: Updates.
2852
2853 2000-11-29  Elliot Lee  <sopwith@redhat.com>
2854
2855         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
2856         GTK_TYPE_TREE_MODEL.
2857
2858 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2859
2860         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
2861         Set the size of the font from the description.
2862         (gdk_text_width): Gross hack that calculates the width
2863         of text by text_length * size/2. This is necessary because
2864         GtkLabel does some ugly gtk_string_width call to calculate
2865         an good size.
2866         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
2867
2868 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
2869
2870         * docs/tutorial/gtk-tut.sgml: DND updates
2871
2872 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2873
2874         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
2875         If you pass width or height == 0 to gdk_window_clear_area they
2876         should be calculated from the window size.
2877
2878 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2879
2880         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
2881         a grab, but no grab-cursor, use the cursor from the grabbed
2882         window. (gdk_fb_window_send_crossing_events): Send normal
2883         enter/leave notifications if grab and owner_events == TRUE.
2884
2885 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2886
2887         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
2888         Do implicit button grabs, even if the window doesn't
2889         want the event.
2890         (gdk_fb_window_send_crossing_events): If there is a
2891         grab, only the grabbed window gets normal enter/leave
2892         notifications. On ungrab go from grabbed window to current.
2893         Don't send any notification to b when propagating from c -> b.
2894         If setting a grab on window, don't set prev_window.
2895         (handle_mouse_input): Send enter/leave events to the window the
2896         mouse is over, not the grabbed one.
2897         
2898 2000-11-28  Elliot Lee  <sopwith@redhat.com>
2899
2900         * gdk/gdkregion-generic.c: Zap warning.
2901         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
2902         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
2903
2904 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
2905
2906         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
2907         The cursor should be hidden if it is part of either the
2908         source or destination region. Not only if it is in both.
2909         (gdk_window_set_transient_for): Silence warnings.
2910
2911 2000-11-28  Alexander Larsson  <alexl@redhat.com>
2912
2913         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
2914         The default mode in X is Pie Arcs, therefore that is
2915         what Gtk+ uses.
2916
2917 2000-11-28  Alexander Larsson  <alexl@redhat.com>
2918
2919         * gdk/linux-fb/gdkinput-ps2.c:
2920         Implement correct EnterNotify/LeaveNotify:
2921         (gdk_fb_window_send_crossing_events): New function that sends
2922         all GdkCrossingEvents from the last mouse-window to the specified
2923         destination.
2924         (gdk_fb_window_visibility_crossing): Removed function.
2925         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
2926         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
2927         instead of gdk_window_get_pointer() for better readability.
2928
2929         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
2930         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
2931
2932         * gdk/linux-fb/gdkprivate-fb.h:
2933         removed gdk_fb_window_visibility_crossing, added
2934         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
2935
2936         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
2937         New function that finds the least common ancestor of two windows.
2938         (gdk_window_show, gdk_window_hide):
2939         Use gdk_fb_window_send_crossing_events.
2940         (gdk_fb_window_move_resize): Send configure events to toplevel
2941         windows. Use gdk_fb_window_send_crossing_events.
2942
2943 2000-11-27  Havoc Pennington  <hp@redhat.com>
2944
2945         * gtk/gtkprivate.h (enum): Remove a trailing comma
2946
2947 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
2948
2949         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
2950         the "changed" callback of the adjustment.  We need to redraw the
2951         spin button's arrows when the adjustment's range changes.
2952         (adjustment_changed_cb): Draw the arrows.
2953         (gtk_spin_button_value_changed): Draw the arrows.
2954
2955 2000-11-23  Alexander Larsson  <alexl@redhat.com>
2956
2957         * gdk/linux-fb/gdkselection-fb.c:
2958         Initial selection implementation.
2959
2960         * gtk/gtkselection.c:
2961         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
2962         requestor in gtk_selection_request.
2963         
2964         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
2965         Added gdk_selection_property atom.
2966
2967         * gdk/linux-fb/gdkprivate-fb.h:
2968         Export _gdk_selection_window_destroyed.
2969         Removed mask_off_x/y from GdkCursorPrivateFB.
2970         Removed hbearing, added top, left to PangoFBGlyphInfo.
2971
2972         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
2973         Call _gdk_selection_window_destroyed
2974         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
2975         the root window has been created.
2976         (static_dx_hack, static_dy_hack, compare_draw_rects,
2977         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
2978         in region. They are already sorted. Instead just traverse them in
2979         reverse if draw_direction < 0.
2980         
2981         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
2982         Double-clicks must be sent after the normal button_press.
2983         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
2984         
2985         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
2986         Pass _gdk_fb_screen_gc instead of NULL.
2987
2988         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
2989         Initialize gdk_selection_property.
2990         (gdk_event_make): Remove unused code.
2991
2992         * gdk/linux-fb/gdkcursor-fb.c:
2993         Make the pixmap for the cursor the same size as the mask. Also remove
2994         the mask_off_x/y fields in GdkCursorPrivateFB and combine
2995         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
2996         Now the whole cursor is visible.
2997
2998         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
2999         Fix bug where xdest+height instead of ydest+height was used
3000         to calculate if the source and dest overlapped. This fixes the
3001         redraw bug when the main window in testgtk was scrolled when
3002         partially covered by a tall window.
3003         Copy rectangles in region in order depending on draw_direction.
3004         Also moved the draw_direction flipping of start_y and end_y into
3005         the gc functions, as this might not be what all of them want.
3006         (gdk_fb_draw_lines): Support dashed lines.
3007         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
3008         so that the text is positioned correctly (was 1 pixel high).
3009
3010         gdk/linux-fb/gdkgc-fb.c:
3011         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
3012         all lines were drawn a pixel to short. Also checked the default of
3013         the rest of the values, and they're the same as X now.
3014
3015         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
3016         Clean up pixel positioning of the glyphs. Just use bgy->top and
3017         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
3018         to all divisions to get correct rounding behaviour.
3019
3020         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
3021         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
3022         Moved start_y/end_y flip into draw_drawable implementations.
3023         Flip also x rendering when draw_direction < 0.
3024         Remove unneccesary multiply with draw_direction.
3025
3026 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
3027
3028         * docs/tutorial/gtk-tut.sgml:
3029           - get rid of gtk_toggle_button_toggled FUD
3030           - start DND section - needs work - based on:
3031                 http://wolfpack.twu.net/docs/gtkdnd/
3032
3033 2000-11-22  Alexander Larsson  <alexl@redhat.com>
3034
3035         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
3036         Correct calculation of font metrics. Now GtkEntrys have sane
3037         size.
3038
3039 2000-11-22  Alexander Larsson  <alexl@redhat.com>
3040
3041         * gdk/gdktypes.h:
3042         Add new type GdkSpan
3043         
3044         * docs/reference/gdk/gdk-sections.txt,
3045         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
3046         gdk/gdkregion.h:
3047         Implement and document gdk_region_spans_intersect_foreach.
3048
3049         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
3050         Add new file gdkrender-fb.c which contains all core
3051         rendering code.
3052         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
3053         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
3054         (optimized rectangle fillers).
3055
3056         * gdk/linux-fb/gdkdrawable-fb2.c:
3057         Move all rendering code to gdkrender-fb.c.
3058         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
3059         Use the new span intersection functions in gdk_fb_fill_spans.
3060         gdk_fb_draw_rectangle() clips filled rectangles and calls
3061         gc->fill_rectangle with the result.
3062         gdk_fb_fill_spans() gets extra argument "sorted".
3063
3064         * gdk/linux-fb/gdkevents-fb.c:
3065         Remove unused includes and defines.
3066         New function gdk_fb_get_time() to get correct time for events.
3067
3068         * gdk/linux-fb/gdkinput-ps2.c:
3069         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
3070         Make sure to set the time of all events.
3071
3072         * gdk/linux-fb/gdkmain-fb.c:
3073         Use gdk_fb_get_time ().
3074
3075         * gdk/linux-fb/gdkprivate-fb.h:
3076         New virtual GC calls: fill_span & fill_rectangle.
3077         Export gdk_fb_get_time().
3078         gdk_fb_fill_spans() gets extra argument "sorted".
3079
3080         * gdk/linux-fb/mi*.c:
3081         Use GdkSpan instead of GdkRectangle.
3082         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
3083         from XFree 4 source)
3084         
3085 2000-11-22    <jrb@redhat.com>
3086
3087         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
3088         reversing the order in an if statement will do.  Doing so managed
3089         to make the treemodelsort half work.  Other half will follow after
3090         I get the insert function fully fixed.
3091
3092 2000-11-21  Elliot Lee  <sopwith@redhat.com>
3093         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
3094         more than 2 bits. Besides, I need to implement an evil hack. :)
3095
3096 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
3097
3098         * docs/tutorial/gtk-tut.sgml: minor corrections
3099
3100 2000-11-20  Jonathan Blandford <jrb@redhat.com>
3101         * gtk/gtktreemodelsort.h: Add convertion functions to let you
3102           convert to and from relative path's and iters.
3103
3104         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
3105           testing sorting functions a bit better.  Currently broken -- will
3106           fix in morning.
3107
3108 2000-11-20  Havoc Pennington  <hp@redhat.com>
3109
3110         * gtk/gtkwidget.c: Documented a bunch of functions in here
3111         (gtk_widget_realize): Warn if you try to realize
3112         a widget with no parent that isn't a toplevel
3113         (gtk_widget_intersect): return a gboolean
3114
3115 2000-11-20  Havoc Pennington  <hp@redhat.com>
3116
3117         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
3118         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
3119         scrolling to be implemented in GDK to finish. Also, right now
3120         we just size_allocate all children on every layout change,
3121         which is pretty lame. Test commented out of testtext.c, 
3122         until it works better.
3123
3124 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
3125
3126         * gdk/linux-fb/gdkdrawable-fb2.c:
3127         Removed unused arguments from gdk_fb_drawable_get_pixel().
3128
3129         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
3130         Renamed fidur specific mouse packet data in MouseDevice to
3131         generic. Used it in ps2 mouse handling code to avoid blocking
3132         reads.
3133
3134 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
3135
3136         * demos/gtk-demo/main.c: Changed to have the list become
3137         non-italic when the demo window is destroyed through an external
3138         event (like a close button).  Doing so found three bugs in the
3139         widget.
3140
3141         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
3142
3143         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
3144         we actually set the cell.
3145
3146         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
3147
3148         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
3149         free a leaked path.  Thanks memprof.
3150
3151 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
3152
3153         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
3154         off-by-one error when destroying allocated segments
3155         on failure. (Elliot)
3156
3157 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
3158
3159         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
3160         memleaks found by Evan Martin.
3161
3162 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
3163
3164         * Released 1.3.2
3165         
3166         * NEWS: Updates for 1.3.2
3167
3168 2000-11-17  Tor Lillqvist  <tml@iki.fi>
3169
3170         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
3171         but in general for window system specific events.
3172
3173         * gtk/gtk.def
3174         * gtk/makefile.mingw.in
3175         * gtk/makefile.msc.in: Update.
3176         
3177         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
3178
3179 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
3180
3181         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
3182         distribute gtk.immodules.
3183
3184         * gtk/Makefile.am (install-data-local): Don't install the
3185         gtk.immodules file created for the uninstalled modules;
3186         instead run gtk-query-immodules after install
3187
3188 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
3189
3190         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
3191         -rpath to the right install location.
3192
3193         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
3194         -export-dynamic.
3195
3196         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
3197         properly.
3198
3199 2000-11-15  Havoc Pennington  <hp@pobox.com>
3200
3201         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
3202         patch from Mikael Hermansson to temporarily stop blinking while
3203         the user is using the keyboard to type or navigate. 
3204
3205         Also, when blinking, stay on for longer than we stay off. Also,
3206         return from start_cursor_blink if !cursor_visible, to save
3207         checking that flag all over the place before we call
3208         start_cursor_blink.
3209
3210 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
3211
3212         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
3213         only contain a "fontset" line, which is now ignored.
3214
3215         * gtk/gtkentry.c (gtk_entry_button_release): Make 
3216         double-click-to-select-word work.
3217         
3218 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
3219
3220         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
3221         Don't move back one char when we are actually at the end of the 
3222         paragraph.
3223
3224 2000-11-15  Robert Brady  <robert@suse.co.uk>
3225
3226         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
3227         'o' < 'p'.
3228         
3229         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
3230         bind_textdomain_codeset.
3231
3232         (gtk_init_check): Make the warning about translating default:LTR
3233         sterner.
3234         
3235 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
3236
3237         * **/Makefile.am : remove unecessary rules for win32-specific
3238         config-substituted targets. If you want these rules, use
3239         --enable-maintainer-mode (called automatically by autogen.sh).
3240         Stops a lot of unneccessary make-time warnings.
3241
3242         * gtk/gtktext{layout,display}.c: Factor in total width as
3243         well as screen when figuring alignment for word-wrap as well as
3244         no wrap; this is necessary to handle lines that cannot be wrapped
3245         at all.
3246
3247 2000-11-15  Havoc Pennington  <hp@redhat.com>
3248
3249         * gtk/testtext.c: Implement essential color cycling feature
3250
3251 2000-11-15  Havoc Pennington  <hp@redhat.com>
3252
3253         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
3254         when we invalidate the main window.
3255
3256         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
3257         GtkTextView will now invalidate the side windows for us when text
3258         changes.
3259
3260 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
3261
3262         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
3263         unconditionally, since we may need to update the horizontal
3264         scrollbars even if the height didn't change.
3265
3266         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
3267         the extra attrs, since some of them affect size.
3268
3269         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
3270         x_offset correctly.
3271
3272 2000-11-15  Havoc Pennington  <hp@redhat.com>
3273
3274         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
3275         don't move the first line out into the margin, instead move the
3276         whole paragraph in order to make space for the first line within 
3277         the margin
3278
3279 2000-11-15  Havoc Pennington  <hp@redhat.com>
3280
3281         * gtk/gtktextview.c (changed_handler): offset redraw rect by
3282         xoffset in addition to yoffset, so horizontal scrolling doesn't
3283         break redraws
3284
3285 2000-11-15  Havoc Pennington  <hp@redhat.com>
3286
3287         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
3288         from the cursor
3289         (render_layout_line): fix reversed test that caused weird
3290         underlines to get drawn
3291
3292 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
3293
3294         * gdk/linux-fb/gdkprivate-fb.h:
3295         Fix debug macros.
3296         
3297 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
3298
3299         * gdk/linux-fb/gdkprivate-fb.h:
3300         Added virtual functions set_pixel, get_color,
3301         fill_span and draw_drawable to the GC.
3302         Added global _gdk_fb_screen_gc to use instead of
3303         NULL when drawing to the screen.
3304         Added _gdk_fb_gc_calc_state() prototype.
3305
3306         * gdk/linux-fb/gdkgc-fb.c:
3307         Call _gdk_fb_gc_calc_state() on any gc state change.
3308
3309         * gdk/linux-fb/gdkglobals-fb.c:
3310         Add _gdk_fb_screen_gc
3311                 
3312         * gdk/linux-fb/gdkdrawable-fb2.c:
3313         _gdk_fb_gc_calc_state() calculates best functions
3314         for the GC state and depth.
3315         Moved bpp specialized code to separate functions.
3316         Added optimized 24 bpp AA draw_drawable.
3317
3318         * gdk/linux-fb/gdkevents-fb.c:
3319         Silence gcc warning.
3320
3321         * gdk/linux-fb/gdkimage-fb.c:
3322         Use _gdk_fb_screen_gc
3323
3324         * gdk/linux-fb/gdkwindow-fb.c:
3325         Init and use _gdk_fb_screen_gc
3326
3327         * gdk/linux-fb/mitypes.h:
3328         Remove unused types.
3329
3330 2000-11-14  Havoc Pennington  <hp@pobox.com>
3331
3332         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
3333         to pixels
3334
3335 2000-11-14  Havoc Pennington  <hp@pobox.com>
3336
3337         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
3338
3339         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
3340         unknown char, no real reason we were using a variable. 
3341         Remove gtk_text_unknown_char variable. Fix all the text widget
3342         files accordingly.
3343
3344         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
3345         since the Unicode spec seems to prefer that character for our
3346         purposes.
3347
3348 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
3349
3350         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
3351         value of g_getenv() isn't freeable, so g_strdup it.
3352
3353         * modules/input/inuktitut.c: Inuktitut input method.
3354
3355         * modules/input/Makefile.am: Build this.
3356         
3357 2000-11-14  Elliot Lee  <sopwith@redhat.com>
3358
3359         * gtk/Makefile.am: Install gtk.immodules, needed for operation
3360         of gtk programs.
3361
3362 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
3363
3364         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
3365         reversed > that was causing Home to go to end of previous line.
3366
3367         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
3368         modified-keypresses (leave for bindings.)
3369
3370         * modules/input/Makefile.am: Remove useless -export-dynamic
3371         from module LDFLAGS.
3372
3373 2000-11-14  Havoc Pennington  <hp@redhat.com>
3374
3375         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
3376         higher.
3377
3378         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
3379         account. Also, render rise, underline, background, etc. for
3380         pixbufs as well as text. Also, draw underlines one pixel higher.
3381
3382         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
3383         PangoAttribute for the rise, so it gets drawn properly. Also,
3384         add the GtkTextAppearance attribute for pixbuf/widget segments
3385         as well; we should go ahead and have rise, underline, background,
3386         stipple work for those
3387
3388         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
3389         Pango
3390
3391 2000-11-15  Tor Lillqvist  <tml@iki.fi>
3392
3393         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
3394
3395         * gtk/gtk.def: Update.
3396
3397         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
3398         included.
3399         (gtk_rc_get_im_module_file): Use run-time installation directory
3400         on Win32.
3401
3402         * gdk/win32/rc/gdk.rc: Remove.
3403         * gdk/win32/rc/gdk.rc.in: New file.
3404         * gdk/win32/rc/Makefile.am: New file
3405         * gdk/win32/Makefile.am: Corresponding changes.
3406
3407         * gtk/gtk.rc: Remove.
3408         * gtk/gtk-win32.rc.in: New file.
3409         * gtk/Makefile.am: Corresponding changes.
3410
3411         * configure.in: Corresponding changes.
3412
3413         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
3414         has a built gtkcompat.h. Developers using CVS code on Win32 can
3415         hand-edit it from gtkcompat.h.in.
3416
3417         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
3418         gtkcompat.h from gtkcompat.h.win32.
3419
3420 2000-11-14  Havoc Pennington  <hp@redhat.com>
3421
3422         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
3423         to default to GDK_ACTION_MOVE if the drag is within a single
3424         widget. Defaults to GDK_ACTION_COPY between widgets.
3425
3426 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
3427
3428         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
3429
3430         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
3431
3432         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
3433         srcdir != builddir
3434
3435         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
3436
3437         * configure.in (GTK_VERSION): Up to 1.3.2
3438
3439         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
3440         gtkimcontextxim.h
3441
3442         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
3443         missing doc comment.
3444
3445 2000-11-14  Alexander Larsson  <alexl@redhat.com>
3446
3447         * modules/linux-fb/basic.c:
3448         Use the glib iconv wrappers.
3449
3450 2000-11-13  Havoc Pennington  <hp@pobox.com>
3451
3452         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
3453         still more bugs.
3454
3455         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
3456         scroll the GdkWindows before realization.
3457
3458 2000-11-13  Havoc Pennington  <hp@redhat.com>
3459
3460         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
3461         where GC didn't always get updated properly
3462
3463         * demos/gtk-demo/textview.c (create_tags): Use subattributes
3464         of fonts instead of setting the entire font
3465
3466         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
3467         setting entire font
3468
3469         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
3470
3471         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
3472         a bunch of individually-settable font attributes. You can still 
3473         use the "font" and "font_desc" args, they just set all the font
3474         attributes at once.
3475
3476 2000-11-13 Elliot Lee <sopwith@redhat.com>
3477
3478         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
3479
3480 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
3481
3482         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
3483         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
3484
3485         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
3486         work better.
3487
3488 2000-11-13  Havoc Pennington  <hp@redhat.com>
3489
3490         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
3491         the module file.
3492
3493         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
3494         dest->language
3495
3496         * gtk/testtext.c: Test pixels above/below/inside paragraphs
3497         settings
3498
3499         * gtk/gtktextview.c: Implement object args and setters/getters for
3500         all the aspects of the GtkTextAttributes that are not set from
3501         GtkWidget attributes. This is spacing, justification, margins,
3502         etc.
3503
3504         (gtk_text_view_set_arg)
3505         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
3506         args
3507         (gtk_text_view_class_init): Add args for justify, left_margin,
3508         right_margin, indent, and tabs
3509         
3510
3511         * gtk/gtktextlayout.c (set_para_values): fix to display indent
3512         attribute properly
3513
3514         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
3515         replace with indent attribute
3516
3517         * gtk/gtktextlayout.c (set_para_values): multiply indent by
3518         PANGO_SCALE
3519
3520         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
3521         rearranging code to do that
3522         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
3523         i.e. don't subtract the top_margin first, just to keep
3524         all margin-futzing in one place.
3525
3526         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
3527
3528         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
3529         special case of last line, Pango now handles this itself.
3530         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
3531         Y coordinate
3532         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
3533         (find_display_line_above): wasn't moving the byte index as it
3534         iterated over lines, so always returned byte 0. Also, port to use
3535         PangoLayoutIter.
3536         (find_display_line_below): same problem as
3537         find_display_line_above. Also, port to use PangoLayoutIter.
3538
3539 2000-11-13  Alexander Larsson  <alexl@redhat.com>
3540
3541         * gdk/linux-fb/*.[ch]:
3542         Massive reindent to gtk+ standard. My hands hurt.
3543
3544         * gdk/linux-fb/gdkcolor-fb.c:
3545         Move GdkColorPrivateFB from inherited to windowing_data
3546
3547         * gdk/linux-fb/gdkcursor-fb.c:
3548         _gdk_cursor_new_from_pixmap made static
3549
3550         * gdk/linux-fb/gdkdnd-fb.c:
3551         GdkDragContextPrivate moved to windowing_data
3552
3553         * gdk/linux-fb/gdkdrawable-fb2.c:
3554         Removed endian.h, use glib endianness macros instead
3555         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
3556         and GDK_DRAWABLE_IMPL_FBDATA
3557
3558         * gdk/linux-fb/gdkfont-fb.c:
3559         Add empty gdk_font_load(). Needed for linking of Gtk+.
3560
3561         * gdk/linux-fb/gdkimage-fb.c:
3562         Removed endian.h, use glib endianness macros instead
3563         Moved GdkImagePrivateFB to windowing_data
3564         gdk_image_new_bitmap didn't always allocate enough
3565         memory.
3566
3567         * gdk/linux-fb/gdkinput-ps2.c:
3568         Added semi-working support for MS serial mice.
3569
3570         * gdk/linux-fb/gdkprivate-fb.h:
3571         s/GdkWindowPrivate/GdkWindowObject/
3572         Removed GdkWindowPrivate typedef
3573         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
3574         Removed GDK_DRAWABLE_P
3575         Move GdkColorPrivateFB from inherited to windowing_data
3576         Moved GdkImagePrivateFB to windowing_data
3577
3578         * gdk/linux-fb/gdkvisual-fb.c:
3579         Removed some unused debug code.
3580
3581         * gdk/linux-fb/gdkwindow-fb.c:
3582         Use stock cursors instead of including X headers.
3583         s/GdkWindowPrivate/GdkWindowObject/
3584
3585         * gdk/linux-fb/mitypes.h:
3586         Removed unused types.
3587
3588         * modules/linux-fb/basic.c:
3589         Use the pango fribidi wrappers.
3590
3591 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3592
3593         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
3594         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
3595         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
3596         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
3597         GEqualFunc where applicable.
3598         
3599         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
3600         pango_font_description_equal as changed in pango.
3601         
3602         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
3603
3604         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
3605
3606         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
3607
3608         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
3609
3610         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
3611
3612         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
3613
3614         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
3615         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
3616
3617         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
3618         gtk_rc_styles_compare -> gtk_rc_styles_equal.
3619
3620 2000-11-12  Havoc Pennington  <hp@pobox.com>
3621
3622         * demos/gtk-demo/Makefile.am (democodedir): change demo install
3623         dir to datadir/gtk+-2.0/demo
3624
3625         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
3626         sorts of text widget and Pango font bugs. Urgh.
3627
3628         * demos/gtk-demo/Makefile.am (demos): Add textview.c
3629
3630         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
3631         tree that you should double click to see the demo. Fix 
3632         types of variables to reflect changed return values from 
3633         GtkTreeStore and GtkTreeViewColumn constructors.
3634
3635         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
3636         newly-created buffer to prepare for GObject semantics
3637
3638         * gtk/testtext.c: don't leak the buffer with GObject semantics
3639
3640         * gtk/testtextbuffer.c: ditto
3641         
3642 2000-11-12  Havoc Pennington  <hp@pobox.com>
3643
3644         Rename this testgtk to gtk-demo to avoid confusion, and 
3645         install it so people can use it as a supplement to 
3646         the documentation.
3647         
3648         * demos/gtk-demo: Moved from demos/testgtk
3649
3650         * demos/testgtk: Removed
3651
3652         * configure.in: make Makefile in gtk-demo
3653         
3654         * demos/gtk-demo/Makefile.am: Install sample source to 
3655         datadir/gtk-demo (maybe there's a better place?), and 
3656         rename the binary to gtk-demo
3657         
3658         * demos/gtk-demo/main.c (load_file): Load installed sample
3659         source if source isn't found in pwd.
3660
3661 2000-11-09  Havoc Pennington  <hp@pobox.com>
3662
3663         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
3664         argument to set the char displayed when visibility == FALSE
3665         (gtk_entry_create_layout): If !entry->visible, replace 
3666         all chars with the "invisible char"
3667
3668         * gtk/testgtk.c: Test the invisible_char deal
3669         
3670 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
3671
3672         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
3673         can't get a native font in the right encoding.
3674
3675 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
3676
3677         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
3678         respectively.
3679
3680 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
3681
3682         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
3683         Fix warning when moving between paragraphs.
3684
3685         * gtk/gtkentry.[ch]: Change move => move_cursor, 
3686         delete => delete_from_cursor, insert => insert_at_cursor
3687
3688 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
3689
3690         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
3691
3692         * modules/input/imthai-broken.c: A Thai input method for use if
3693         Thai keys are really generating Latin1 keysyms.
3694
3695         * modules/input/Makefile.am: Build these.
3696
3697 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
3698
3699         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
3700         g_filename_{to,from}_utf8 now takes an extra parameter.
3701
3702         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
3703         strftime into UTF-8.
3704
3705         (column_from_x, gtk_calendar_paint_day_names): Support RTL
3706         calendars.
3707
3708         (gtk_calendar_paint_day_names): Draw day names in the right 
3709         place.
3710         
3711 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
3712
3713         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
3714         problem with using result of g_get_charset() backwards -
3715         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
3716
3717         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
3718         negative min_width/height and max_width/height to
3719         mean "requisition"; this allows setting a window
3720         to be user-resizable in only one direction easily.
3721
3722         * gtk/testgtk.c (create_main_window): Remove hard-coded
3723         usize - set a default size in the vertical direction.
3724
3725 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
3726
3727         * gtk/gtkrange.c: Add some missing casts. Support 
3728         2 and 3 button clicks on the arrows to mean 
3729         "move by pages" and "jump to end". (Like gtkspinbutton)
3730
3731 2000-11-12 Hans Breuer <Hans@Breuer.Org>
3732
3733         * gdk/win32/makefile.msc : reflect build module changes
3734
3735         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
3736         from GdkPixmap*, cast implementation member instead.
3737
3738         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
3739         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
3740         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
3741         more Gdi functions return value checking. 
3742         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
3743         GdkImagePrivateWin32 *.
3744
3745         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
3746         menus useable again. Add #pragma message to keep reminded on this issue.
3747         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
3748         windows. This allows to enable backing store on Win32!
3749
3750         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
3751         in drawable is of impl type. Correct specific type checks appropriate.
3752  
3753         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
3754         GDK_WINDOW_DESTROYED before allocating new resources.
3755
3756         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
3757
3758         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
3759         (gdk_window_foreign_new) initialize parent handle.
3760         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
3761
3762         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
3763         Let the GDI invalidate the window on MoveWindow call to fix scrolling
3764         problems (e.g. main buttons in testgtk). 
3765
3766 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
3767
3768         * gtk/gtkentry.c (gtk_entry_key_press): Call 
3769         gtk_widget_activate for GDK_Return.
3770
3771         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
3772         of preedit cursor position.
3773
3774 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
3775
3776         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
3777         static.
3778
3779 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
3780
3781         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
3782         out support for multiple locales; that simple doesn't
3783         work reliably with current Xlib
3784
3785         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
3786         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
3787         Add support for positioning the cursor within the preedit string.
3788
3789 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
3790
3791         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
3792         at XIM input method module.
3793
3794         * gtk/gtktextview.c: Check for bindings after passing
3795         events to im context filter.
3796
3797 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
3798
3799         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
3800         empty attribute lists properly.
3801
3802 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
3803
3804         * gtk/queryimmodules.c (main): Return non-zero exit
3805         status if errors were encountered querying any
3806         modules.
3807
3808         * modules/input/Makefile.am (moduledir): remove
3809         leftover bin program target.
3810
3811         * docs/make-todo: Fix typo in error message.
3812
3813 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
3814
3815         * configure.in: Add modules/input/Makefile
3816
3817 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
3818
3819         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
3820         don't include gtkthemes.h.
3821
3822         * gtk/testgtk.c gtk/testtext.c: Set environment variables
3823         to point
3824
3825         * gtk/Makefile.am: Add new .c and .h files, build 
3826         gtk-query-immodules and use it to create a gtk.immodules
3827         file for use of test programs.
3828
3829         * gtk/gtkpreview.c: remove extra blank line.
3830
3831 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
3832
3833         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
3834         Add the ability to add extra tables beyond the default
3835         one, and also the ability to have compose sequences 
3836         that are prefixes of other compose sequences. 
3837
3838         * gtk/gtkimcontextsimple.c: Export a preedit string which
3839         consists of possible candidates for keystrokes that have
3840         been entered but not yet committed.
3841
3842         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
3843         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
3844
3845         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
3846         Add a function to add input-method switching menu items
3847         to a menu.
3848
3849         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
3850         when switching input methods.
3851
3852         * gtk/gtkimcontextsimple.[ch]: Change the format of
3853         the compose table to allow compose tables of different
3854         lengths / sequence.
3855
3856 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
3857
3858         * gtk/gtkimmodule.[ch]: Support routines for loading
3859         GtkIMContext implementations dynamically at runtime.
3860
3861         * modules/input/imcyrillic-translit.c: A sample input
3862         method (based on GtkIMContextSimple with an extra table),
3863         which demonstrates preedit strings and the module
3864         system for input modules
3865
3866         * gtk/queryimmodules.c: Program to query the available
3867         input modules and write the results into a file.
3868          
3869         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
3870         extra config options "im_module_file" (cache file for
3871         input method modules), and "im_module_path" - path
3872         to look for modules when generating cache file.
3873
3874         This doesn't scale.
3875
3876 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
3877
3878         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
3879         generic code from gtkthemes into a new abstraction
3880         GtkModule which has the logic for implementing
3881         a loadable module which implements a number of 
3882         GObject types.
3883
3884 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
3885
3886         * gtk/gtkeditable.[ch]: Convert GtkEditable from
3887         a class into an interface  
3888         
3889         * gtk/gtkoldeditable.[ch]: Move the old editable
3890         implementation into here, so legacy widgets can
3891         still rely on the implemenation. GtkOldEditable
3892         exports GtkEditable. Make selection handling
3893         code use new text conversion functions (and
3894         handle UTF-8 as a side-effect). Use GtkClipboard
3895         for CLIPBOARD.
3896
3897         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
3898         Adopt to match above changes.
3899
3900         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
3901         avoid GtkOldEditable implementation. Restructure
3902         to reduce number of places that modify state directly.
3903         Move to GtkBindingSet. Display the preedit string.
3904         Queue recomputation of PangoLayout and scroll position
3905         to improve effiency of doing complex changes naively.
3906         Add a menu with cut/copy/paste and input method selection.
3907
3908 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
3909
3910         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
3911         to set preedit string and attributes; display preedit string by
3912         inserting string and attributes at cursor when creating the
3913         GtkTextLineDisplay.
3914
3915         * gtk/gtktextlayout.c: Move all conversions between byte
3916         positions in PangoLayout and GtkTextIter into new functions
3917         line_display_iter_to_index/index_to_iter that properly
3918         handle the preedit string.
3919
3920         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
3921         it to return const char * (eventually will end up
3922         as GCONST char *, most likely.)
3923
3924         * gtk/gtktextview.[ch]: Handle the preedit string, call
3925         gtk_im_context_reset() as necessary, add a menu to switch
3926         input methods.
3927         
3928         * gtk/gtktextlayout.[ch]: Remove useless
3929         gtk_text_layout_get_log_attrs() function.
3930
3931 2000-11-11  Tor Lillqvist  <tml@iki.fi>
3932
3933         * gdk/gdk.def
3934         * gtk/gtk.def: Update.
3935
3936         * gdk/win32/*.c: Add last argument to g_type_register_static()
3937         calls.
3938
3939         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
3940
3941         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
3942         generated by older wheel mouse drivers. Get the correct y
3943         coordinate from WM_MOUSEWHEEL messages.
3944
3945         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
3946         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
3947         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
3948         Debugging functions.
3949
3950         * gdk/win32/gdkprivate-win32.h: Declare them.
3951
3952         * gdk/win32/gdkinput-win32.h: Add declaration for
3953         gdk_input_window_destroy().
3954
3955         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
3956
3957 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
3958
3959         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
3960         function to help handle keeping things in sync.
3961
3962 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
3963
3964         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
3965         BOXED marshallers.
3966
3967         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
3968         (gtk_list_store_class_init): use the new BOXED marshallers.
3969
3970         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
3971         new_with_values to new_with_types.
3972         (gtk_tree_store_get_column_type): add this.
3973         (gtk_tree_store_class_init): use the new BOXED marshallers.
3974
3975         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
3976         mirror some POINTER marshallers.
3977
3978 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
3979
3980         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
3981         allow more interesting iterators.  Also, made the lifecycle of
3982         iterators more explicit.
3983
3984         * gtk/gtktreemodelsort.[ch]: New model for sorting.
3985
3986         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
3987         types.
3988
3989 2000-11-09  Alexander Larsson  <alexl@redhat.com>
3990
3991         * demos/testgtk/menus.c:
3992         Changes to make the new testgtk compile after
3993         gtk_menu_append was removed.
3994
3995         * gdk/linux-fb/gdkdrawable-fb2.c
3996         (gdk_fb_get_depth, gdk_fb_get_visual,
3997         gdk_drawable_impl_fb_class_init): Implement
3998         these drawable functions. Now GtkImages work again.
3999
4000         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
4001
4002         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
4003         
4004         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
4005         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
4006         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
4007         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
4008
4009 2000-11-08  Havoc Pennington  <hp@pobox.com>
4010
4011         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
4012         visible_set args, don't know where these had gone, I thought they
4013         used to be there
4014
4015         * gtk/testtext.c: Add a menu item to apply invisibility tag;
4016         now we can test the feature and see that it's totally broken.
4017
4018 2000-11-08  Havoc Pennington  <hp@pobox.com>
4019
4020         Make DND copy pixbufs and tags when source and target share a 
4021         tag table.
4022         
4023         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
4024         in-process GTK_TEXT_BUFFER_CONTENTS target
4025         (gtk_text_view_drag_data_received): Paste from
4026         GTK_TEXT_BUFFER_CONTENTS if we receive it.
4027
4028 2000-11-08  Alexander Larsson  <alexl@redhat.com>
4029
4030         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
4031         API changes.
4032
4033         * gtk/gtkmenu.c: Add support for scrolling menus.
4034         Remove gtk_menu_append/prepend/insert, these have been moved to
4035         gtkcompat.h as #defines.
4036
4037         * gtk/gtkcompat.h.in:
4038         Add compatibility #defines for gtk_menu_append/prepend/insert
4039
4040         * gtk/gtkmenu.h: Add data needed for scrolling menus.
4041         GtkMenuPositionFunc gets an extra argument push_in.
4042         gtk_menu_append/prepend/insert removed.
4043         
4044         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
4045         positioning behaviour to fit to scrolling menus.
4046
4047         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
4048         into menuitem->submeny. That is wrong, and broke torn
4049         off submenus of torn off menus, since they were unrealized
4050         when the first menu was unrealized.
4051
4052         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
4053         gtk_menu_shell_select_item() since these need to be overridden in
4054         GtkMenu.
4055
4056         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
4057         positioning behaviour to fit to scrolling menus.
4058         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
4059         the current item so that it is prelighted when the menu pops up.
4060         This is a workaround to the fact that the menu doesn't get the
4061         initial enter event (due to grabs).
4062
4063         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
4064         s/gtk_menu_append/gtk_menu_shell_append/
4065
4066         * gtk/gtknotebook.c:
4067         s/gtk_menu_insert/gtk_menu_shell_insert/
4068
4069         * gtk/testgtk.c (create_menu, create_menus):
4070         Create the first menu with 50 items so that menu scrolling
4071         can be tested.
4072         
4073         
4074         Patch from Jonathan Blandford  <jrb@redhat.com>
4075
4076         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
4077         system to handle size requests.  First, we ask what the size of
4078         the toggle is.  Then, when allocating the size, we allocate the
4079         toggle_size first.  This way we can have multiple menu-item
4080         classes w/o needing a seperate class for each.
4081
4082         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
4083         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
4084
4085         * gtk/gtkcheckmenuitem.c
4086         (gtk_check_menu_item_toggle_size_request): New function to handle
4087         the toggle size-request.
4088
4089 2000-11-07  Havoc Pennington  <hp@redhat.com>
4090
4091         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
4092         Half-ass somewhat fix this function, so that scrolling to the
4093         insertion point works. Pango hacking is in the future to really
4094         fix it.
4095
4096         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
4097         length of data, no longer used.
4098
4099         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
4100         method contents in here, get rid of destroy method
4101         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
4102         that were backward. Remove debug spew.
4103         (cut_or_copy): Make the clipboard work with insert_range to
4104         preserve tags and pixbufs, not just the primary selection.
4105
4106 2000-11-07  Havoc Pennington  <hp@redhat.com>
4107
4108         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
4109         to gtk_text_mark_get_visible
4110
4111         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
4112         bug that was generating an invalid iterator
4113
4114         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
4115         ensure_char_offsets() in front of code placing the iter in an
4116         invalid state.
4117
4118         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
4119         make override_location arg const
4120         (paste): Replace the selection if we paste into the 
4121         current selection
4122
4123         * gtk/gtkselection.h: Remove "GtkSelectioData"
4124         (struct _GtkSelectionData): move the definition here.
4125
4126         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
4127         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
4128
4129         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
4130
4131         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
4132         (gtk_text_buffer_insert_range_interactive): implement
4133         (gtk_text_buffer_get_tags): Remove, replaced by
4134         gtk_text_iter_get_tags()
4135
4136         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
4137         limit parameter, to avoid infinite linear scan.
4138         (gtk_text_iter_backward_search): Add search limit
4139         (gtk_text_iter_forward_find_char): Add search limit
4140         (gtk_text_iter_backward_find_char): Add search limit
4141
4142 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
4143
4144         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
4145         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
4146         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
4147         gdk/linux-fb/gdkwindow-fb.c:
4148         use g_object_new() instead of g_type_create_instance() which
4149         is a private function for fundamental type implementations.
4150
4151         * gdk/linux-fb/gdkinput-ps2.c:
4152         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
4153         instead just store the current modifier state. Add a (somewhat broken)
4154         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
4155         Rename exported function gdk_input_ps2_get_mouseinfo to
4156         gdk_input_get_mouseinfo.
4157
4158         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
4159         gdk/linux-fb/gdkwindow-fb.c:
4160         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
4161         
4162
4163 2000-11-02  Havoc Pennington  <hp@redhat.com>
4164
4165         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
4166         use stock buttons. Should be 100% source compatible, appropriate
4167         filesel fields now point to dialog->vbox and dialog->action_area.
4168         On the bizarre side, dialog->action_area and filesel->action_area
4169         are not the same widget.
4170         (gtk_file_selection_init): Put some padding around the selection
4171         entry, so it isn't touching the GtkDialog separator.    
4172
4173         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
4174         use stock buttons, etc. Should also be source compatible.
4175         Set the dialog default title in _init not _new().
4176         
4177         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
4178         Use stock buttons; don't put a button box inside the existing
4179         dialog button box. Don't bother with push/pop colormap anymore.
4180
4181         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
4182         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
4183         for message dialog, and necessary for the font selection and color
4184         selection with help and apply buttons.
4185         
4186         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
4187         to the created button widget. Set GTK_CAN_DEFAULT on the button.
4188         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
4189         between buttons, put less padding around the action area.
4190         (gtk_dialog_run): Exit on unmap rather than on destroy. 
4191         This will also exit the loop if the widget is hidden.
4192         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
4193         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
4194         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
4195         special-case delete event.
4196
4197         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
4198         formatting
4199         
4200 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
4201
4202         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
4203         button to temporarily disable position recording in the
4204         "saved position" test.
4205
4206 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
4207
4208         * gtk/gtkthemes.c: added compat code that temporarily implements
4209         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
4210         going to be revamped by owen's upcoming GtkModule patches, but
4211         untill then people want gtk to build, right? ;)
4212
4213 2000-11-04  Havoc Pennington  <hp@pobox.com>
4214
4215         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
4216         list
4217
4218         * docs/Changes-2.0.txt: Add note about
4219         gtk_container_get_toplevels()
4220
4221         * gtk/gtktextview.h: formatting
4222         
4223         * gtk/gtktextview.c: don't start descriptions with "Returns",
4224         confuses gtk-doc
4225
4226 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
4227
4228         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
4229         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
4230
4231 2000-11-03  Havoc Pennington  <hp@redhat.com>
4232
4233         * gtk/gtktexttagtable.c: Docs
4234         (gtk_text_tag_table_size): return a signed int
4235
4236         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
4237         (gtk_text_tag_event): make the event_object a GObject
4238
4239         * gtk/gtktextview.c: Write API docs for all functions.
4240
4241         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
4242         for gtk_text_view_get_window_type() called on one of the private
4243         windows.
4244
4245         * gtk/gtktextview.c: Instead of accessing text_view->buffer
4246         directly, call get_buffer() which demand-creates a default
4247         buffer. So gtk_text_view_new() can be used to create a view with a
4248         default buffer in it, if you just want an empty text box users can
4249         put data in. Useful for GUI builders also.
4250
4251 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
4252
4253         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
4254         the charset encodign portion MUST be in lowercase.
4255         * gtk/gtkrc.az: added file for Azeri language
4256
4257 2000-11-03  Havoc Pennington  <hp@redhat.com>
4258
4259         Get widgets working on the btree/buffer side. Display of them 
4260         still doesn't work.
4261         
4262         * gtk/gtktextview.c: start implementing child widget stuff
4263
4264         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
4265
4266         * gtk/gtktextlayout.c: handle embedded widgets
4267
4268         * gtk/gtktextdisplay.c: handle embedded widgets
4269
4270         * gtk/gtktextchild.c: Implement all the child anchor goo
4271
4272         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
4273         function
4274
4275         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
4276         (insert_pixbuf_or_widget_segment): abstract out common portions of 
4277         creating a child anchor or a pixbuf segment.
4278         (gtk_text_btree_create_child_anchor): new function
4279         (gtk_text_btree_unregister_child_anchor): new function
4280
4281         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
4282         allocate_child signal on GtkTextLayout
4283
4284         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
4285         values
4286         (gtk_text_iter_get_child_anchor): new function
4287
4288         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
4289         default handler for the changed signal, which calls
4290         gtk_text_buffer_set_modified(), instead of just always emitting
4291         changed then calling set_modified() manually. I guess this is
4292         maybe more flexible. It seems logical.
4293
4294 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
4295
4296         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
4297         now.
4298
4299         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
4300
4301 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
4302
4303         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
4304         been marked static.
4305
4306 2000-11-02  Havoc Pennington  <hp@redhat.com>
4307
4308         * gtk/testgtk.c (create_labels): had a test backward
4309
4310         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
4311         fields, so the dest GC ends up with the correct clip origin, 
4312         etc. Fixes a bug where colored labels didn't redraw 
4313         properly.
4314
4315 2000-11-02  Alexander Larsson  <alexl@redhat.com>
4316
4317         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
4318         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
4319         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
4320         Add last argument to t_type_register_static call.
4321         
4322         * gdk/linux-fb/gdkdrawable-fb2.c:
4323         Add last argument to t_type_register_static call.
4324         export the get_image drawable virtual function.
4325
4326         * gdk/linux-fb/gdkimage-fb.c:
4327         Add last argument to t_type_register_static call.
4328         rename gtk_image_get to _gdk_fb_get_image and
4329         export it for use by gdkdrawable-fb2.
4330
4331         * gdk/linux-fb/gdkprivate-fb.h:
4332         export _gdk_fb_get_image.
4333
4334         * gdk/linux-fb/gdkselection-fb.c:
4335         Add new api call stubs.
4336
4337         * gtk/Makefile.am:
4338         Missing ( in linux-fb part.
4339
4340         * modules/linux-fb/Makefile.am:
4341         Must link with gdk_pixbuf or get unresolved symbol.
4342
4343 2000-11-01  Havoc Pennington  <hp@pobox.com>
4344
4345         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
4346         GTK_TYPE_TEXT_ITER and BOXED marshallers
4347
4348         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
4349
4350         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
4351         
4352         * gtk/gtk-boxed.defs: add GtkTextIter
4353
4354         * gtk/gtkmarshal.list: Add marshallers for text widget that 
4355         properly use OBJECT and BOXED
4356
4357 2000-11-01  Havoc Pennington  <hp@redhat.com>
4358
4359         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
4360
4361         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
4362         before returning it. 
4363         
4364 2000-11-01  Havoc Pennington  <hp@redhat.com>
4365
4366         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
4367         Clip the rectangle to be rendered to the drawable, since
4368         get_from_drawable() requires a region within the drawable
4369
4370 2000-11-01  Havoc Pennington  <hp@redhat.com>
4371
4372         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
4373         from coordinates.
4374
4375 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
4376
4377         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
4378         it isn't NULL.
4379
4380 2000-11-01  Havoc Pennington  <hp@pobox.com>
4381
4382         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
4383         on a label
4384         (gtk_label_finalize): unref the attr list if any.
4385
4386         * gtk/testgtk.c (create_get_image): close test on second click
4387         (make_message_dialog): close dialog if it exists
4388
4389         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
4390
4391         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
4392         gdk-pixbuf
4393
4394         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
4395         from Pango markup format
4396         (gtk_label_set_markup_with_accel): ditto but with accelerator
4397         parsing
4398
4399         * gtk/gtkimage.c (gtk_image_expose): reformatting.
4400
4401         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
4402         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
4403         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
4404         call gdk_window_get_origin().
4405
4406         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
4407         implement GDK_PIXBUF_ALPHA_FULL
4408         
4409 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
4410
4411         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
4412         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
4413         g_signal_handlers_disconnect_matched to block/unblock and disconnect
4414         multiple handlers respectively, instead of only treating the
4415         first handler found (bug reported by owen).
4416
4417 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
4418
4419         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
4420
4421         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
4422
4423         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
4424         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
4425         gtk/gtktreeviewcolumn.h: Fixed inline docs.
4426
4427         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
4428         widget.  Needs writing someday.
4429
4430         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
4431         the docs.
4432
4433 2000-10-30  Havoc Pennington  <hp@redhat.com>
4434
4435         * gtk/gtktextview.h, gtk/gtktextview.c:
4436         Rename delete_at_cursor delete_from_cursor, and 
4437         move to move_cursor.
4438
4439 2000-10-30  Havoc Pennington  <hp@redhat.com>
4440
4441         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
4442         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
4443         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
4444         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
4445         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
4446         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
4447         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
4448         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
4449         gtktexttypes.h, gtktextview.c, gtktextview.h:
4450
4451         Massive reindentation and reformatting. Arg alignment and comments
4452         still need fixing in various places.
4453
4454 2000-10-30  Havoc Pennington  <hp@redhat.com>
4455
4456         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
4457         to be named insert_at_cursor and delete_at_cursor so C++ can
4458         handle them.
4459
4460 2000-10-28  Tor Lillqvist  <tml@iki.fi>
4461
4462         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
4463         to get a double directory separator in case the home directory
4464         ends with one. This would cause trouble especially on Windows,
4465         where the path will be confused with the syntax for an an UNC
4466         (network share) path \\server\share\path.
4467         (gtk_rc_add_initial_default_files): Ditto.
4468
4469 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
4470
4471         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
4472
4473         * gtk/gtktextview.c: Use correct marshallers.
4474
4475 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
4476
4477         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
4478         use new iter stuff, and added all the appropriate signals et al.
4479
4480         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
4481         code is internal to gtk only.
4482
4483 2000-10-28  Tor Lillqvist  <tml@iki.fi>
4484
4485         * gtk/gtk.def
4486         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
4487         glib-genmarshal etc.
4488
4489 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
4490
4491         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
4492         parallel builds.
4493
4494 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
4495
4496         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
4497
4498 2000-10-27  Robert Brady  <robert@suse.co.uk>
4499
4500         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
4501         en_GB (British), ia (Interlingua).
4502
4503 2000-10-26  Havoc Pennington  <hp@redhat.com>
4504
4505         * gtk/gtktextiter.c (my_strrstr): fix constness warning
4506
4507         Fixed output of:
4508         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
4509         
4510         * gtk/gtktextsegment.c (char_segment_new): rename
4511         (_char_segment_new_from_two_strings): rename
4512         (_toggle_segment_new): rename
4513         
4514         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
4515         (make_clipboard_widget): make it static
4516         (text_get_func): static
4517         (text_clear_func): static
4518
4519         * gtk/gtkcolorsel.c (adjustment_changed): make this function
4520         static
4521         (hex_changed): make it static
4522         (hsv_changed): make it static
4523         (opacity_entry_changed): make it static
4524
4525         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
4526         (toggle_segment_check_func): rename with _gtk
4527
4528         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
4529         (_widget_segment_new): rename
4530         (_widget_segment_add): rename
4531         (_widget_segment_remove): rename
4532         (_widget_segment_ref): rename
4533         (_widget_segment_unref): rename
4534
4535         * gtk/gtktextmark.c (_mark_segment_new): Rename
4536         _gtk_mark_segment_new   
4537
4538 2000-10-26  Havoc Pennington  <hp@redhat.com>
4539
4540         * gtk/gtkmarshal.list: add new marshallers used by the text widget
4541         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
4542         types
4543
4544         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
4545         marshaller types
4546
4547         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
4548         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
4549         license on these files.
4550
4551         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
4552         work.
4553
4554         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
4555         runtime random number different for each tree, instead of 
4556         a constant I made up.
4557
4558 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
4559
4560         * gtk/Makefile.am: buncha cleanups, kludged build sources
4561         dependencies with a Makefile: oldest-source-stamp dependancy
4562         for the moment. automake is really fighting us here, with
4563         intentionally not allowing user-defined rules or dependancies
4564         prior to it's -include $(DEP_FILES) statement. sucks rocks!
4565
4566         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
4567         to public headers. tehy have a comment stating that they are
4568         "semi-public" aren't included by gtk.h and if enums popup there,
4569         they can be /*< skip >*/-ed.
4570
4571         * gtk/gtktextlayout.h: 
4572         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
4573         added LGPL... <SIGH>
4574
4575 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
4576
4577         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
4578         GtkTreeIter.  Added iterators everywhere.
4579
4580         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
4581
4582         * gtk/gtktreeviewselection.c: Changed to use the iterators.
4583
4584         * gtk/gtktreestore.c: Changed to use the iterators.
4585
4586         * gtk/gtkliststore.c: Commented out the code.  Will convert to
4587         iterators tomorrow.
4588
4589         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
4590         iterators tomorrow.
4591
4592         * gtk/treestoretest.c: Changed to use iterators.
4593
4594         * demos/testgtk/main.c: Moved to use the new iterator system.
4595
4596 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
4597
4598         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
4599         localization misbehaviour.
4600
4601         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
4602         a useless type without copy/free.
4603
4604         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
4605         of GTK_TYPE_CTREE_NODE.
4606
4607 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
4608
4609         * gtk/gtksignal.c:
4610         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
4611         applicable.
4612
4613         * gtk/gtk-boxed.defs (GtkSelectionData): specify
4614         gtk_selection_data_copy and gtk_selection_data_free
4615         do GtkSelectionData work as params in signals.
4616
4617 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
4618
4619         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
4620         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
4621         couldn't they at least give it a non-standard name?
4622         
4623         * gtk/gtktextlayout.c: arg! yet another implementation of
4624         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
4625
4626         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
4627         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
4628         home. now i know this _is_ a conspiracy.
4629
4630         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
4631         ::state-changed.
4632
4633         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
4634         (gtk_accel_group_create_add): marshaller signature fixups.
4635
4636         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
4637         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
4638
4639         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
4640         anymore.
4641
4642 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
4643
4644         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
4645         due to the signal system changes, it wouldn't build currently. to
4646         be fixed soon.
4647
4648         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
4649
4650         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
4651         so it needs gtk_marshal_VOID__ENUM() instead of
4652         gtk_marshal_NONE__UINT().
4653
4654         * gdk/gdk*.c: adapted type registration functions.
4655
4656         * gtk/gtkbindings.c:
4657         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
4658         gone.
4659
4660         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
4661
4662         * gtk/gtkobject.c:
4663         (gtk_object_destroy):
4664         (gtk_object_shutdown): fixed recursion guards. basically we have to
4665         catch the case where any of GObject.shutdown() or gtk_object_destroy()
4666         is called during ::destroy, and avoid recursion there.
4667
4668         * gtk/gtktypeutils.c:
4669         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
4670         boxed_copy/boxed_free. this needs a more general solution based on a
4671         publically installed code-generator utility.
4672
4673         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
4674         glib's gobject has support for that now.
4675         define GtkSignalMarshaller in terms of GSignalCMarshaller.
4676
4677 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
4678
4679         * gtk/gtksignal.[hc]:
4680         * gtk/gtkmarshal.[hc]:
4681         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
4682         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
4683         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
4684         care of that.
4685
4686         * *.c: marshaller name fixups.
4687
4688         * gtk/gtkmarshal.list: added a comment briefing the format.
4689
4690 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
4691
4692         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
4693         compatibility macros here now. more specifically, most of
4694         the API is preserved (yes, _most_, nonwithstanding the
4695         following exceptions listed, the API is stil lHUGE ;)
4696         things that got removed completely:
4697         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
4698         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
4699         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
4700         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
4701         gtk_signal_remove_emission_hook().
4702         non-functional functions variants:
4703         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
4704         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
4705         not supported anymore.
4706         (gtk_signal_compat_matched): new internal function to aid
4707         implementation of the compatibility macros, it  provides
4708         functionality to block/unblock/disconnect handlers based
4709         on func/data.
4710
4711         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
4712
4713         * *.c: adaptions to new type registration API signatures.
4714
4715 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
4716
4717         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
4718
4719 2000-10-25  Robert Brady  <robert@suse.co.uk>
4720
4721         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
4722         gdk_property_delete): If window == NULL, assume the root window.
4723         (restoring the behaviour that was in 1.2).
4724         
4725         * gtk/testtext.c (save_buffer): Allow creation of new files when
4726         saving.
4727
4728         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
4729         calls to read().
4730
4731 2000-10-25  Tor Lillqvist  <tml@iki.fi>
4732
4733         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
4734
4735         * gdk/win32/gdkdrawable-win32.c
4736         * gdk/win32/gdkimage-win32.c
4737         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
4738         X11 backend.
4739
4740         * gdk/win32/gdkcc-win32.c
4741         * gdk/win32/gdkcolor-win32.c
4742         * gdk/win32/gdkfont-win32.c
4743         * gdk/win32/gdkinput-win32.c
4744         * gdk/win32/gdkmain-win32.c
4745         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
4746
4747 2000-10-24  Havoc Pennington  <hp@redhat.com>
4748
4749         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
4750         it a static function
4751
4752         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
4753         redraw text when a tag is applied to it.
4754
4755         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
4756         (gtk_text_tag_affects_nonsize_appearance): private functions to
4757         see if a tag requires various kinds of redraw/layout to be queued
4758         up.
4759
4760         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
4761
4762         * gtk/testtext.c (fill_example_buffer): Put the cursor 
4763         at the start of the buffer, so search works by default
4764
4765         * gtk/gtktextiter.c (lines_match): init match_start always
4766
4767         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
4768         function, get iter at a line + a byte index
4769
4770         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
4771         to set byte position within a line
4772         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
4773
4774 2000-10-23  Havoc Pennington  <hp@redhat.com>
4775
4776         * gtk/testtext.c: Re-enable the "find" dialog
4777
4778         * gtk/testgtk.c: Add test for gdk_drawable_get_image
4779         
4780         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
4781         the arguments to gdk_draw_drawable were in the wrong order
4782         (gdk_window_paint_init_bg): This function was ignoring the
4783         init_region, instead of clipping to it, so the entire backing
4784         pixmap was cleared on every begin_paint()
4785         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
4786         was in here again, the loop kept using the same GtkWindowPaint
4787         over and over.
4788         (gdk_window_begin_paint_region): Fix a bug where we had two
4789         x_offset instead of x_offset and y_offset
4790
4791         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
4792         before we get the image.
4793         (gdk_draw_drawable): get the composite before we draw the drawable.
4794         (gdk_drawable_real_get_composite_drawable): default
4795         get_composite_drawable implementation that returns the drawable 
4796         itself
4797
4798         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
4799         get_composite_drawable virtual function
4800
4801         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
4802         list-walking bug
4803
4804         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
4805         make this work if the source drawable is a GdkDrawableImplX11
4806         instead of a public drawable type. This is really broken; the
4807         problem is that GdkDrawable needs a virtual method get_xid(), but
4808         of course that doesn't work in practice. Enter RTTI.
4809
4810         Also, improve mismatched depth message.
4811
4812         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
4813         GdkPixmap
4814
4815         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
4816         install _gdk_x11_get_image as our implementation of get_image
4817         
4818         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
4819         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
4820
4821         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
4822         gdk_drawable_get_image
4823
4824         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
4825
4826         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
4827         get_image
4828
4829         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
4830         trailing semicolon after for loop
4831
4832 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
4833
4834         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
4835         where font_desc for widget's context lagged widget's font_desc by
4836         one step.
4837
4838 2000-10-22  Tor Lillqvist  <tml@iki.fi>
4839
4840         * gdk/win32/gdkgc-win32.c
4841         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
4842
4843         * gtk/makefile.mingw.in
4844         * gtk/gtk.def: Updates.
4845
4846         * gtk/testgtk.c: sleep() is called _sleep in MS's C
4847         library.
4848
4849         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
4850
4851         * gtk/makefile.msc: Remove
4852
4853         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
4854
4855         * gtk/Makefile.am: Add it.
4856
4857         * configure.in: Generate it.
4858
4859         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
4860         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
4861         something even if not implemented, to satisfy picky MSVC.
4862
4863         Patches by Hans Breuer:
4864         
4865         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
4866         SetBkMode() and SetTextAlign() before calling
4867         pango_win32_render().
4868
4869         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
4870         Set hcliprgn to NULL after destroying it.
4871         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
4872
4873         * gdk/win32/gdkgeometry-win32.c
4874         (_gdk_windowing_window_queue_antiexpose): More effective
4875         implementation.
4876
4877         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
4878         depth as default, not the visual's.
4879
4880         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
4881         against empty title.
4882
4883         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
4884         IMAGE_PRIVATE_DATA.
4885
4886         * gdk/win32/gdkimage-win32.c: Use it.
4887
4888 2000-10-22  Robert Brady  <robert@suse.co.uk>
4889
4890         * configure.in: Check for bind_textdomain_codeset
4891
4892         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
4893         present, make use of it.
4894
4895         Add a translatable string "default:LTR" which, if translated
4896         to "default:RTL", will cause the default direction to be
4897         Right-to-Left.
4898
4899         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
4900         direction if marked as flippable.
4901
4902         * gtk/gtkhscale.c: Mark widget as flippable.
4903         
4904 2000-10-04  Havoc Pennington  <hp@redhat.com>
4905
4906         * gtk/testgtk.c (create_buttons): create some stock buttons
4907         with the default accel group
4908         (create_image): test some new GtkImage features
4909         (make_message_dialog): test GtkMessageDialog
4910         (create_modal_window): fix someone's bizzarro indentation
4911
4912         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
4913         GTK_WIN_POS_CENTER_ON_PARENT. 
4914         Add "destroy with parent" setting, which means the window goes
4915         away with its transient parent.
4916         (gtk_window_get_default_accel_group): get the default accel group
4917         for the window.
4918         (gtk_window_set_destroy_with_parent): set/unset destroy with
4919         parent flag
4920         (gtk_window_read_rcfiles): invalidate icon set caches
4921         after reloading rcfiles 
4922
4923         * gtk/gtkenums.h (GtkWindowPosition): add
4924         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
4925         on its parent window when the dialog is mapped for the first time.
4926
4927         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
4928         a simple message dialog class
4929         
4930         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
4931         handler to emit response signal, and maybe later it would
4932         honor a hide_on_delete flag - though that isn't there yet.
4933         Set border width on the vbox to 2, so we get some padding.      
4934         Use a button box for the action area.
4935         (gtk_dialog_key_press): synthesize a delete event if Esc
4936         is pressed and the GtkWidget key press handler didn't 
4937         handle the escape key.
4938         (gtk_dialog_new_with_buttons): new function creates a dialog
4939         with some default buttons in it.
4940         (gtk_dialog_add_action_widget): add an activatable widget
4941         as a button in the dialog - you can also add a non-activatable
4942         widget by accessing the action area directly.
4943         (gtk_dialog_add_button): add a simple button - stock ID or 
4944         label - to the action area
4945         (gtk_dialog_response): emit response signal
4946         (gtk_dialog_run): block waiting for the dialog, return 
4947         the response. Override normal delete_event behavior, so that 
4948         delete_event does nothing inside gtk_dialog_run().
4949
4950         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
4951         emitted when an action widget is clicked or the dialog gets
4952         delete_event
4953
4954         * gtk/gtk.h: add gtkmessagedialog.h
4955
4956         * gtk/Makefile.am: add gtkmessagedialog.[hc]
4957
4958 2000-10-18  Havoc Pennington  <hp@redhat.com>
4959
4960         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
4961         where any number of empty lines would get skipped
4962
4963         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
4964         edge.
4965
4966         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
4967         warning about invalid iterators (explain more thoroughly)
4968         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
4969
4970         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
4971         big
4972
4973         * demos/*.c: Add error handling
4974
4975         * gtk/gtktextbuffer.c: don't modify const iterators
4976
4977         * gtk/gdk-pixbuf-loader.c: Add full error handling here
4978
4979         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
4980         on file load
4981
4982         * gtk/gtkiconfactory.c: Update to reflect addition of error
4983         handling to gdk-pixbuf loaders
4984
4985 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
4986
4987         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
4988         move to new modularized testgtk.
4989
4990 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
4991
4992         * gtk/gtktreeview.c: Draw the arrows correctly.
4993
4994         * gtk/gtktreemodel.c: Added user docs.
4995
4996         * gtk/gtk.h: remove gtktreedatalist.h.
4997
4998         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
4999         parent when generating my type.
5000
5001         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
5002         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
5003
5004 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
5005
5006         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
5007         GtkTreeModel from object to interface.
5008
5009 2000-10-16  Havoc Pennington  <hp@redhat.com>
5010
5011         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
5012         compilation
5013
5014 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
5015
5016         * gtk/gtktreeselection.c: Add API documentation to all public
5017         functions.
5018
5019         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
5020         functions.
5021
5022 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
5023
5024         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
5025         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
5026         docs to all public functions.
5027
5028         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
5029         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
5030         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
5031         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
5032         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
5033         issue.
5034
5035 2000-10-14  Robert Brady  <robert@suse.co.uk>
5036
5037         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
5038
5039 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
5040
5041         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
5042         values other then G_TYPE_STRING.
5043         * gtk/gtktreeselection.c: Minor commenting updates.
5044         * gtk/gtktreeview.c: Format updates.
5045
5046 2000-10-09  Tor Lillqvist  <tml@iki.fi>
5047
5048         * README.win32: Update.
5049
5050         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
5051         lines that had been deleted by mistake (?).
5052
5053         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
5054         also the case fg==white and bg==black (but still not randomly
5055         coloured cursors). Thanks to Wolfgang Sourdeau.
5056
5057         * gdk/win32/*.c: Silence gcc -Wall.
5058
5059         * gtk/gtk.def: Add missing entry points.
5060
5061         Fixes by Hans Breuer:
5062
5063         * gdk/makefile.msc
5064         * gdk/win32/makefile.msc: Update.
5065
5066         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
5067         some MSVC thing, presumably), cause breakpoint on failures. Add
5068         GDK_NOR case. Call g_log_set_always_fatal.
5069
5070         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
5071         should be pased by reference.
5072         
5073         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
5074         
5075         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
5076
5077         * gdk/win32/gdkevents-win32.c
5078         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
5079
5080         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
5081         implementation object.
5082
5083         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
5084         not just windows.
5085         
5086         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
5087         Use the wrapper object.
5088         
5089 2000-10-06  Havoc Pennington  <hp@redhat.com>
5090
5091         * Makefile.am (SRC_SUBDIRS): contrib subdir
5092
5093         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
5094         so it can be used in Xlib version
5095
5096         * demos/testpixbuf.c (update_timeout): error checking from 1.0
5097         tree
5098
5099         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
5100         change from 1.0 tree that returns first frame of animation
5101         if the loaded file is an animation.
5102
5103         * contrib: add new directory to hold stuff that comes with GTK+
5104         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
5105         
5106         * configure.in: add contrib/*
5107
5108 2000-10-05  Havoc Pennington  <hp@redhat.com>
5109
5110         * demos/testpixbuf-save.c: add pixbuf save test
5111
5112         * demos/Makefile.am: add testpixbuf-save.c
5113
5114 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
5115
5116         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
5117         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
5118         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
5119         * gtk/gtktreeselection.[ch]: Replaced
5120         "node_selected"/"node_unselected" signal with "selection_changed"
5121         signal.
5122
5123 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
5124
5125         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
5126         tree widget.
5127
5128 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
5129
5130         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
5131         drawing.
5132
5133 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
5134
5135         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
5136         Move list pointer forwards before removing item from
5137         list. (Crash reported by Salmaso Raffaele)
5138
5139         * gdk/gdkwindow.h: Remove spurious trailing ,
5140
5141         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
5142         dependencies on uninstalled libraries, sorry folks.
5143
5144 2000-10-04  Havoc Pennington  <hp@redhat.com>
5145
5146         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
5147         gtk/gtkiconfactory.c: Fix copyrights    
5148
5149         * demos/testpixbuf.c: add inline pixbuf test
5150         
5151 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
5152
5153         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
5154         Add gdk_window_iconify.
5155
5156         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
5157         (gdk_window_set_geometry_hints): Add win_gravity
5158         to geometry structure.
5159
5160         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
5161         Implement _NET_WM_PING.
5162
5163         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
5164         Set _NET_WM_PID on the client leader.
5165
5166         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
5167         Handle UTF-8 better.
5168
5169         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
5170         UTF-8 better, set _NET_WM_NAME as well. Only set
5171         icon name if it hasn't previously been explicitely 
5172         set.
5173
5174 2000-10-03  Havoc Pennington  <hp@redhat.com>
5175
5176         * gtk/testtextbuffer.c: clean up trailing whitespace,
5177         add extensive tests for tag toggle iteration.
5178         
5179         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
5180         distance
5181
5182         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
5183         optimize case where the tag root is on level 1
5184         (gtk_text_line_previous_could_contain_tag): attempt to implement
5185         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
5186         functionality
5187
5188         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
5189         Implement this, though not very efficiently.
5190
5191         * gtk/gtktextiterprivate.h: reformat
5192
5193         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
5194         iterator
5195
5196         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
5197         this to properly revalidate the iterators.
5198
5199         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
5200         properly at the end of the line (and therefore on empty lines)
5201
5202         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
5203         maybe we should return a value...
5204
5205 2000-10-03  Tor Lillqvist  <tml@iki.fi>
5206
5207         * config.h.win32: Guard definition of alloca(). glib.h now handles
5208         that.
5209
5210         * gdk/gdk.def
5211         * gtk/gtk.def: Add new entry points.
5212
5213         Changes just to make GTK+ build without errors on Win32. No hope
5214         of it working in its current state, though...:
5215         
5216         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
5217         some functions from the X11 backend, just to make GTK+ build.
5218
5219         * gdk/makefile.mingw.in
5220         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
5221         number. Add new object files.
5222
5223         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
5224         GetMessageTime to get timestamp (where on X11 uses
5225         gdk_x11_get_server_time()).
5226
5227 2000-10-02  Havoc Pennington  <hp@pobox.com>
5228
5229         * gtk/gtktextview.c: text_window_* weren't static and should have
5230         been.
5231         Start work on child widgets; not yet complete, syncing to 
5232         office computer.
5233
5234         * gtk/gtktextchild.h: change this to contain a public interface,
5235         starting work on child interfaces.
5236         * gtk/gtktextchildprivate.h: move private interfaces here
5237
5238         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
5239
5240         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
5241         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
5242         gtk/gtktextmark.c: copyright notices
5243
5244         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
5245         internal functions      
5246
5247         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
5248         internal function
5249
5250         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
5251         Reformatting    
5252
5253 2000-09-30  Havoc Pennington  <hp@pobox.com>
5254
5255         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
5256         NULL start/end pointers
5257
5258         * gtk/gtktextbuffer.c: Write some docs
5259         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
5260         NULL, so you can just check whether there's a selection.        
5261
5262         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
5263         cleanup_line or segments_changed ourselves, it gets done 
5264         in unlink_segment
5265
5266         * gtk/gtktextmark.h:
5267         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
5268         
5269         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
5270
5271         * gtk/gtktextmark.c: delete some more old Tk cruft
5272
5273         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
5274         mark before removing it, so we can emit MARK_DELETED with a valid
5275         pointer.
5276         (gtk_text_buffer_mark_set): hold ref across signal emission
5277
5278         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
5279         whining about attempts to delete special marks
5280
5281         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
5282         underscore, since it's internal.
5283
5284         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
5285         now implemented in terms of iterators in gtktextiter.h
5286
5287         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
5288         New function, destructively sets contents of buffer. Also 
5289         a convenient way to clear the buffer by setting text to ""
5290
5291         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
5292         multiline string literal
5293
5294         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
5295         text changes.
5296
5297         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
5298         is not dereferenceable
5299         (gtk_text_iter_forward_lines): fix return value
5300
5301 2000-09-29  Havoc Pennington  <hp@redhat.com>
5302
5303         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
5304
5305         * gtk/gtktextview.c: Implement drag thresholding; change functions 
5306         that set border window size to have nicer name
5307         (gtk_text_view_mark_set_handler):  Fix this to have the 
5308         right signature.
5309
5310         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
5311
5312         * gtk/testtext.c: Update with API changes, put line numbers on 
5313         both sides.
5314         
5315         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
5316         with this
5317
5318         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
5319         pixbuf; delete a big block of #if 0 Tk code
5320
5321         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
5322         insert_pixmap with insert_pixbuf
5323
5324 2000-09-29  Martin Baulig  <baulig@suse.de>
5325
5326         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
5327         confusion with the GdkPixbuf of the GNOME 1.x platform.
5328
5329 2000-09-29  Havoc Pennington  <hp@pobox.com>
5330
5331         * gtk/gtktextview.c: Implement the side windows.
5332
5333         * gtk/testtext.c: Implement simple line numbering in the 
5334         left side window; seems to make scrolling sloooow. Oops.
5335         Also, cursor blink is for some reason causing redraws
5336         of the line numbers. Should investigate...
5337
5338 2000-09-28  Havoc Pennington  <hp@redhat.com>
5339
5340         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
5341         scrolling child windows, and draw focus rectangle properly.
5342         
5343         (gtk_text_view_buffer_to_window_coords):
5344         Coordinate transformation to deal with all these freaking windows
5345         and offsets
5346         (gtk_text_view_window_to_buffer_coords): transform the other way
5347
5348         * gtk/testtext.c (create_buffer): Update to match Pango API change
5349
5350         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
5351         anonymous tags
5352         (foreach_unref): don't emit remove signal from finalize, just
5353         set tag's parent to NULL
5354
5355 2000-09-26  Havoc Pennington  <hp@redhat.com>
5356
5357         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
5358         Fix some warnings       
5359
5360 2000-09-26  Havoc Pennington  <hp@redhat.com>
5361
5362         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
5363         headers into the private header list
5364
5365         * Makefile.am (pkgconfig_DATA): install pkg-config files
5366
5367         * configure.in: add pkg-config files
5368
5369         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
5370
5371         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
5372         outstanding icon caches on theme change.
5373
5374         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
5375         important types:
5376
5377         (GtkIconSource): Specification for creating a pixbuf 
5378         appropriate for a direction/state/size triplet from 
5379         a source pixbuf or filename
5380
5381         (GtkIconSet): List of GtkIconSource objects that are used to
5382         create the "same" icon (e.g. an OK button icon), and cache for
5383         rendered icons
5384
5385         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
5386         up the icon set for a given stock ID.  GTK maintains a stack of
5387         GtkIconFactory to search, and applications or libraries can add
5388         additional icon factories on top of the stack
5389         
5390         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
5391         the set of GtkIconSource specified for a given stock ID into 
5392         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
5393         RcStyle, under the specified stock ID.
5394
5395         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
5396         render_icon used to derive a GdkPixbuf from a GtkIconSource.
5397         This allows people to theme how prelight, insensitive, etc. are
5398         done.
5399
5400         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
5401         icon factories for a style, and return the resulting 
5402         icon set if any.
5403
5404         (gtk_style_render_icon): Render an icon using the render_icon 
5405         method in the GtkStyleClass.
5406
5407         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
5408         Use the style for a given widget to look up a stock ID, get the
5409         icon set, and render an icon using the render_icon method 
5410         of the style
5411
5412         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
5413         (contains information about a stock item), the built-in stock item
5414         IDs, and functions to add/lookup stock items.
5415
5416         * gtk/stock-icons/*: Stock icons that come with GTK
5417
5418         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
5419         a button based on a GtkStockItem
5420         (gtk_button_new_accel): Takes a uline string and accel group, and
5421         installs the accelerator.
5422
5423         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
5424         image-display widget.
5425
5426 2000-09-25  Havoc Pennington  <hp@redhat.com>
5427
5428         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
5429
5430         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
5431         Fix a bug when removing node data, we didn't properly 
5432         re-splice the linked list after removing the data.
5433
5434         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
5435         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
5436
5437         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
5438
5439         * gtk/gtktextlayout.c (set_para_values): Set tab array 
5440         for the layout from the GtkTextTag.
5441
5442         * gtk/gtktexttypes.h: delete tab and search cruft, 
5443         remove g_convert() in favor of GLib version
5444
5445         * gtk/gtktexttypes.c: remove tab implementation from here,
5446         move to Pango
5447
5448         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
5449         tab stuff using new PangoTabArray from Pango
5450
5451         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
5452         unused border_width stuff
5453
5454 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
5455
5456         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
5457         glib) and now useless utf_to_latin1() latin1_to_utf()
5458
5459         * gtk/gtktextview.[ch]: Change ::move_insert and
5460         ::delete_text action signals to ::move and ::delete;
5461         create the signals with the right enumeration type,
5462         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
5463         C-v bindings, change Home, End to move to beginning/end
5464         of line, Add C-Home C-End to move to beginning/end
5465         of buffer. Change ::cut_text to ::cut_clipboard, etc;
5466         combine ::scroll_text into ::move; use new GtkSelectionData
5467         functions to simplify DND text handling.
5468         
5469         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
5470         deletion enumerations here, rename enumeration values to 
5471         be consistently plural.
5472
5473         * gtk/gtktextbuffer.c: Use new clipboard interfaces
5474         for cut/copy/paste and primary selection.
5475
5476         * gtk/gtktextbuffer.[ch]: Remove excess time and
5477         'interactive' arguments from cut/copy/paste;
5478         rename cut to cut_clipboard, etc; remove
5479         gtk_text_buffer_get_clipboard_contents().
5480
5481         * gtk/gtktextlayout.[ch]: Add 
5482         gtk_text_layout_move_iter_to_line_end() to move the iter to 
5483         line ends.
5484
5485         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
5486         Functions to set or get a UTF-8 string on the selection
5487         data.
5488
5489         * gtk/gtkclipboard.[ch]: New, simplified selection handling
5490         interfaces.
5491
5492         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
5493         created widgets - one of these is useless if we don't.
5494
5495         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
5496         a public function clear all targets registered for the
5497         widget.
5498
5499         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
5500         Never call gtk_widget_realize() - that was just asking
5501         for bizarre side-effects.
5502
5503         * gtk/gtkselection.c (gtk_selection_owner_set): Call
5504         gdk_selection_owner_set even if the widget is the
5505         same so that we reliably update the timestamp on
5506         the server.
5507
5508         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
5509         gdk_x11_get_server_time() function.
5510         
5511         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
5512         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
5513         Add some tricky filtering on serial numbers for
5514         selection clear events to fix up long-standard
5515         race condition FIXME's in gtkselection.c.
5516
5517         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
5518         routines to convert from utf8 to compound text or
5519         STRING and from a text property to UTF-8.
5520
5521         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
5522         a convenience function gdk_get_current_event_time().
5523
5524         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
5525         and free selection_data->data properly
5526
5527 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
5528
5529         * gtk/gtkthemes.c: Remove some unecessary includes.
5530
5531 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
5532
5533         * gtk/gtktextdisplay.c
5534         * gtk/gtktextlayout.c
5535         * gtk/gtktexttag.c
5536         * gtk/gtktexttag.h
5537         * gtk/testtext.c: Change the overstrike property to strikethrough,
5538         to closer match pango.
5539
5540 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
5541
5542         * gtk/gtktextview.c: Fix up visibility so that focus,
5543         cursor_visible and blink interact properly.  Reenable cursor blink
5544         which had been roughly disabled. Make blink and focus
5545         properly per-view.
5546
5547         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
5548         Add a flag for whether to display insertion cursor and
5549         a function to set the flag.
5550
5551         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
5552         get_line_y() to get_line_yrange(), to be a bit more generally
5553         useful.
5554
5555 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
5556
5557         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
5558           do stop_navigating_submenu, to clear last timeout properly.
5559           Also in gtk_menu_motion_notify move ignore_enter above
5560           the conditional to make it always happen as suggested by Owen
5561
5562 2000-09-07  Tor Lillqvist  <tml@iki.fi>
5563
5564         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
5565
5566         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
5567         w32api headers.
5568
5569         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
5570         declarations.
5571
5572         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
5573         (gdk_win32_get_colormap): A line had been deleted by mistake.
5574
5575         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
5576         (gdk_event_translate): Handle more virtual keycodes to be able to
5577         generate GDK events for Control-comma, Control-period, etc.
5578
5579         * gtk/gtk.def: Add some missing entry points.
5580
5581 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
5582
5583         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
5584         Doc comment fixing. (Mostly non-matching parameter names.)
5585
5586         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
5587         comments a little to avoid looking like a doc comment.
5588
5589         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
5590         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
5591         conversions be changed to GError?)
5592
5593         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
5594         Move private #defines into .c file.
5595
5596         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
5597         order of argument addition, remove duplicates.
5598
5599         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
5600         parent class is FrameClass, not BinClass.
5601
5602         * gtk/gtk.h: Add gtkinvisible, which was missing.
5603         (It's occasionalyl useful for client apps, if seldom.)
5604
5605         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
5606         #define.
5607
5608 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
5609
5610         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
5611         coordinates when creating window, instead of GDK-space
5612         coordinates. (Avoid BadValue on too large windows.)
5613
5614 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
5615
5616         * configure.in (use_mmx_asm): Remove conftest* after use along the
5617         lines of AC_TRY_COMPILE.        
5618         
5619         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
5620         of g_dirname, which is deprecated.
5621         (gtk_rc_parse_any): Removed calls to
5622         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
5623
5624         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
5625         Removed calls to g_hash_table_{freeze,thaw}, as they are
5626         deprecated now.
5627
5628         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
5629         instead of g_basename.
5630         
5631 2000-09-04 Elliot Lee <sopwith@redhat.com>
5632         
5633         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
5634         ANSI warning.
5635
5636 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
5637
5638         * gtk/gtkwidget.h:  Add some documenting comments about 
5639           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
5640           just as owen said on irc.
5641
5642         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
5643           set HAS_DEFAULT.  Only set it if there isn't another window
5644           holding it (a focus window which RECEIVES_DEFAULT) and only unset
5645           it if the widget is not the focused window with RECEIVES_DEFAULT.
5646           This fixes weird double default bugs in dialogs which has things
5647           call gtk_window_set_default at times.
5648
5649 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
5650
5651         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
5652         Nils Barth and David Santiago to improve submenu
5653         navigation. The patch does this by creating a triangular
5654         region from the point where the pointer leaves the
5655         menu to the submenu.  While the pointer is in
5656         that region and a timeout has not expired, events 
5657         that would cause the active submenu to change are
5658         ignored.
5659
5660 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
5661
5662         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
5663         moving a toplevel window immediately after sizing it would
5664         result in it being sized back to the old size since 
5665         impl->width, impl->height aren't updated until we hear
5666         back from the server. There is still a (longstanding) bug
5667         here that gdk_window_get_size() will give the wrong size
5668         until we do hear back.
5669
5670 2000-08-31  Havoc Pennington  <hp@redhat.com>
5671
5672         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
5673         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
5674         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
5675         Rename GtkTextStyleValues to GtkTextAttributes
5676
5677 2000-08-31  Havoc Pennington  <hp@pobox.com>
5678
5679         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
5680         for rapid testing whether an iterator is the end iterator
5681         (gtk_text_btree_new): init end line cache
5682         (gtk_text_line_is_last): use fast cached line to 
5683         see if we're the last line.
5684         (get_last_line): use cached line here too, should 
5685         speed up some random unrelated code.
5686         
5687 2000-08-30  Havoc Pennington  <hp@pobox.com>
5688
5689         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
5690         signals.
5691
5692         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
5693         delete_text signals. This allows the signals to be used for
5694         implementing undo.
5695
5696         * gtk/gtktextbuffer.c: Change signal handler signatures; 
5697         provide "interactive" argument when emitting insert_text or
5698         delete_text signal.
5699         
5700 2000-08-30  Havoc Pennington  <hp@pobox.com>
5701
5702         * gtk/gtktextbuffer.c: Docs
5703
5704 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
5705
5706         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
5707         from switch statements, since Tor removed the enumeration
5708         value.
5709         
5710         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
5711         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
5712
5713 2000-08-29 Elliot Lee <sopwith@redhat.com>
5714         * */*.h: Use G_GNUC_CONST.
5715
5716 2000-08-27  Havoc Pennington  <hp@pobox.com>
5717
5718         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
5719         minor indentation fixes, inserted some FIXME about stuff I
5720         realized was broken while documenting it.
5721         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
5722         GTK convention  
5723
5724 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
5725
5726         * gtk/testgtk.c (create_styles): Fix double free of
5727         font desc.
5728
5729 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
5730
5731         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
5732         
5733         * gtk/testgtk.c (create_styles): Add a test for modifying
5734         the style through gtk_widget_modify_*.
5735
5736         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
5737         a function to get the current modifier style.
5738
5739         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
5740         of the passed in GtkRcStyle instead of ref'ing it.
5741
5742         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
5743
5744 2000-08-20  Tor Lillqvist  <tml@iki.fi>
5745
5746         * gdk/gdkimage.h
5747         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
5748         shared memory image+pixmap GdkImage type, or
5749         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
5750         I am dropping that.
5751
5752         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
5753         actually call gtk_init_abi_check(), passing also
5754         sizeof(GtkWindow). Ditto for gtk_init_check(). 
5755
5756         * gtk/gtk.def
5757         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
5758         New functions, used to check that the GTK+-using code has been
5759         compiled using the correct compiler and switches. In particular,
5760         with gcc one has to use the -fnative-struct switch as GTK+ is
5761         compiled with that.
5762
5763 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
5764
5765         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
5766         ->prev fields when merging lists. (Found simultaneously
5767         by Pawel Salek and Jakub Jelinek)
5768
5769 2000-08-12  Tor Lillqvist  <tml@iki.fi>
5770
5771         * gdk/gdk.def
5772         * gtk/gtk.def: Add missing entries.
5773
5774         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
5775         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
5776
5777         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
5778         function. Dummy implementation at this point.
5779
5780         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
5781         rules. Undefine GTK_COMPILATION when compiling the test programs.
5782         
5783         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
5784
5785 2000-08-11  Tor Lillqvist  <tml@iki.fi>
5786
5787         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
5788         to convert back and forth from UTF-8 and the "system" (or "current
5789         locale") charset when necessary. Indentation/spacing cleanup.
5790
5791 2000-08-10  Havoc Pennington  <hp@redhat.com>
5792
5793         * Makefile.am (snapshot): Change the format of the snapshot
5794         version to match glib
5795
5796         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
5797         from EXTRA_DIST since it doesn't seem to exist
5798
5799 2000-08-10  Tor Lillqvist  <tml@iki.fi>
5800
5801         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
5802         version of the directory name (not the UTF-8 one) when building
5803         the path name to stat().
5804
5805 2000-08-03  Elliot Lee  <sopwith@redhat.com>
5806
5807         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
5808         PANGO_ATTR_SHAPE set.
5809
5810 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
5811
5812         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
5813         Peter Osterlund to simplify the code while keeping the
5814         functionality the same.
5815
5816 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
5817
5818         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
5819         is_viewable() test further inside the function, since removing the 
5820         window from the redraw list without clearing ->update_area
5821         was also very broken.
5822
5823 2000-08-02  Tor Lillqvist  <tml@iki.fi>
5824
5825         * configure.in: Check for <unistd.h>.
5826
5827 2000-08-01  Martin Baulig  <baulig@suse.de>
5828
5829         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
5830         to display the message that this is a development version of GTK+.
5831
5832 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
5833
5834         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
5835         was depending on widget->allocation instead of the width of text_area,
5836         which was incorrect for subclasses like GtkSpinButton.
5837
5838         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
5839         with width == 1 tests that should be width == -1.
5840
5841 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
5842
5843         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
5844         (broken, Elliot, every single window blank on X) custom code with call
5845         to gdk_window_is_viewable() which a) prevents code duplicate and
5846         b) works. 
5847
5848 2000-07-31  Elliot Lee  <sopwith@redhat.com>
5849
5850         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
5851         to get the GDK_PARENT_ROOT() macro to work.
5852         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
5853         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
5854         of, windows that aren't shown.
5855         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
5856         pointer grab stuff.
5857
5858 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
5859
5860         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
5861           s/gtk_main_iteration/g_main_iteration/
5862
5863           Did this already in change:
5864                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
5865           don't know how it got reverted.
5866
5867 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
5868
5869         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
5870         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
5871
5872         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
5873         not gdk_pixbuf.
5874
5875 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
5876
5877         * configure.in,po/{sp,sr}.po: Added Serbian files
5878
5879 2000-07-30  Tor Lillqvist  <tml@iki.fi>
5880
5881         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
5882
5883         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
5884         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
5885         GIOChannel implementation.
5886
5887         * gdk/win32/gdkinput.c
5888         * gdk/win32/gdkpango-win32.c: Update license name here, too.
5889
5890         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
5891         definition to match prototype.
5892
5893         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
5894
5895 2000-07-27  Elliot Lee  <sopwith@redhat.com>
5896
5897         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
5898         function, to allow handling image formats that cannot be detected
5899         by looking at content alone.
5900
5901 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
5902
5903         * docs/tutorial/*.gif *.jpg *.eps
5904           Update these to the same look-n-feel.
5905           Why does including images in DocBook suck so badly?
5906
5907 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
5908
5909         * gtk/gtktable.c: applied patch from Phil Thompson
5910         <phil@river-bank.demon.co.uk> that enables space settings for
5911         the last row/columns as well.
5912
5913 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
5914
5915         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
5916         updates the license headers to the GNU Lesser General Public License,
5917         as well as updating the copyright year to 2000.
5918
5919 2000-07-26  Robert Brady  <rwb197@zepler.org>
5920
5921         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
5922           and po/Makefile, was installing and looking for them under gtk20
5923           and gtk2 respectively.
5924
5925 2000-07-25  Havoc Pennington  <hp@redhat.com>
5926
5927         * gtk/testtext.c: Comment out some stuff that depends on the rest
5928         of my patches.
5929
5930 2000-07-25  Havoc Pennington  <hp@redhat.com>
5931
5932         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
5933         buffer
5934
5935 2000-07-25  Havoc Pennington  <hp@redhat.com>
5936
5937         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
5938         widget changes.
5939
5940         * gtk/gtktextview.h: To be consistent with usage of "line"
5941         throughout the API to mean "newline-terminated thingy", change
5942         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
5943         to MOVEMENT_LINE.
5944
5945         (GtkTextView): Add flags for default editability, and whether to
5946         show the cursor. Add functions to get/set that. Add 
5947
5948         (gtk_text_view_get_iter_location): new function
5949
5950         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
5951         gtktextlayout.h
5952         (g_convert): Add g_convert temporarily, will go in glib in a bit
5953         
5954         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
5955         GtkTextTagTableForeach instead of brokenly using GHFunc.
5956         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
5957
5958         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
5959         moved to public header.
5960
5961         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
5962         "invisible", since "elide" was a bad name.
5963         (gtk_text_tag_get_priority): Added
5964
5965         (GtkTextStyleValues): put this in public header, along with
5966         functions to use it.
5967
5968         * gtk/gtktextmarkprivate.h: Include more headers, since we no
5969         longer include gtktextbtree.h.
5970
5971         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
5972         gtk_text_mark_deleted
5973
5974         * gtk/gtktextlayout.h: Don't include the "really private" headers,
5975         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
5976         to make this possible. Now we only need to install
5977         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
5978         (However the Makefile.am isn't changed yet because of the
5979         logistics of merging gtk-hp-patches piecemeal)
5980
5981         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
5982         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
5983         gtk_text_iter_get_line is now used in the public API for a
5984         different purpose.
5985
5986         * gtk/gtktextiter.h: Clean up function names to be more
5987         consistent. Always call char offset "offset" and byte index
5988         "index". A "line" is always a line number. 
5989
5990         (gtk_text_iter_is_last): new function, more efficient than 
5991         the existing way to check
5992         (gtk_text_iter_is_first): new function, also more efficient
5993
5994         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
5995
5996         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
5997         gtk_text_iter_forward_char, etc.
5998
5999         (gtk_text_iter_forward_to_tag_toggle): Renamed from
6000         forward_find_tag_toggle, since this isn't a linear search
6001
6002         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
6003
6004         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
6005         New functions, search for a buffer substring.
6006
6007         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
6008         interactive and default editable (since we need to store that info
6009         until we receive the selection data).
6010
6011         Remove all the _at_char and at_line etc. versions of functions;
6012         only have iterator versions.
6013
6014         Add _interactive() versions of functions, that consider the
6015         editability of text. (FIXME add interactive flag to the 
6016         insert/delete signals per Darin's suggestion)
6017
6018         (gtk_text_buffer_get_tag_table): new function, demand-creates the
6019         tag table if necessary
6020
6021         Remove declaration of gtk_text_buffer_get_iter_from_string
6022
6023         (_gtk_text_buffer_get_btree): private/internal function, added.
6024         
6025
6026         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
6027         (gtk_text_line_is_last): new function
6028
6029 2000-07-25  Havoc Pennington  <hp@redhat.com>
6030
6031         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
6032         using GtkProgressBar. See Changes-2.0.txt for details.
6033
6034         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
6035         "pulse_step" which are the equivalent of
6036         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
6037         Implement new API.
6038         
6039         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
6040         (use_text_format) to mark whether text set on the progress bar is
6041         a format string. Deprecate entire GtkProgress interface.
6042
6043         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
6044         (gtk_progress_build_string): make this a no-op if use_text_format
6045         is FALSE
6046
6047         * docs/Changes-2.0.txt: Describe progress bar changes.
6048
6049 2000-07-25  Tor Lillqvist  <tml@iki.fi>
6050
6051         * Makefile.am: Include the build directory.
6052
6053         * configure.in: Generate build/Makefile, build/win32/Makefile,
6054         gdk/, gdk/win32/, and gtk/makefile.mingw.
6055
6056         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
6057         Add GETTEXT_PACKAGE.
6058         
6059         * gdk/gdk.def
6060         * gtk/gtk.def: Updates.
6061
6062         * gdk/gdkfont.h
6063         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
6064         need them any longer.
6065
6066         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
6067
6068         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
6069         PANGOWIN32_LIBS and gdk_pixbuf.
6070
6071         * gdk/win32: Compiles, but no doubt doesn't work at all.
6072
6073         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
6074
6075         * gdk/win32/gdkinput.c: New file, temporarily.
6076         
6077         * gdk/win32/gdkinput-win32.h: New file
6078
6079         * gdk/win32/gdkinputprivate.h: Remove.
6080
6081         * gdk/win32/gdkpango-win32.c: New file.
6082
6083         * gtk/makefile.mingw.in: New file
6084
6085         * gtk/makefile.cygwin: Removed
6086         
6087         * gtk/Makefile.am: Update accordingly.
6088
6089         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
6090         made externally visible.
6091
6092         * gtk/gtkmain.c: Use it.
6093         
6094         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
6095         is enough.
6096
6097         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
6098
6099 2000-07-24 Elliot Lee <sopwith@redhat.com>
6100         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
6101         individual backends already.
6102         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
6103         again. Yes, there really is a good reason for this, if you are using the gdkregion
6104         internals, and if you're not, why do you care?
6105         * gdk/gdkwindow.c: Fix inverted condition
6106         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
6107         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
6108         * gtk/gtkrange.c: Redraw trough when moving.
6109         * gtk/gtktypeutils.c: Fix warning by adding const cast.
6110         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
6111
6112 2000-07-23  Tor Lillqvist  <tml@iki.fi>
6113
6114         * configure.in: Check for mkstemp and sigsetjmp. Output
6115         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
6116
6117         More work on GDK for Win32. Still in an intermediate state.
6118
6119         * gdk/makefile.cygwin
6120         * gdk/win32/makefile.cygwin: Removed.
6121         
6122         * gdk/makefile.mingw.in
6123         * gdk/win32/makefile.mingw.in: New files.
6124
6125         * gdk/Makefile.am
6126         * gdk/win32/Makefile.am: Generate and distribute them.
6127
6128         * gdk/win32/gdkwindow-win32.h
6129         * gdk/win32/gdkdrawable-win32.h
6130         * gdk/win32/gdkpixmap-win32.h: New files.
6131
6132         * gdk/win32/gdkcolor-win32.c
6133         * gdk/win32/gdkcursor-win32.c
6134         * gdk/win32/gdkdrawable-win32.c
6135         * gdk/win32/gdkgc-win32.c
6136         * gdk/win32/gdkimage-win32.c
6137         * gdk/win32/gdkprivate-win32.h
6138         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
6139         Rename fields and variables called xcursor, xid, etc (these names
6140         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
6141
6142 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
6143
6144         * gtk/gtkentry.[ch]: Fix some problems with vertical
6145         alignment.
6146
6147         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
6148         char/byte confusion.
6149
6150 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
6151
6152         * gtk/gtktextview.c (changed_handler): Fix bug where
6153         redraw wasn't being done properly when height of
6154         dirty region changed.
6155
6156         * demos/Makefile.am: Remove various references to
6157         -lgmodule
6158
6159 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
6160
6161         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
6162         PangoAttrShape to reserve space for pixmaps, add 
6163         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
6164         in the display functions.
6165         
6166         * gtk/testgtk.c (create_layout): Set some more exotic
6167         scrolled window options
6168
6169         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
6170         Add function to set the shadow type of a window, to allow
6171         putting a shadow around widgets such as GtkLayout or GnomeCanvas
6172         which don't draw their own frame.
6173
6174 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
6175
6176         * docs/tutorial/package-db-tutorial.sh: New file for
6177           packaging DocBook format tutorial
6178
6179 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
6180
6181         * docs/tutorial/gtk-tut.sgml: Minor updates
6182
6183         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
6184
6185 2000-07-19  Tor Lillqvist  <tml@iki.fi>
6186
6187         * gtk/gtksignal.c: Fix C++ comment.
6188
6189         * gtk/gtkimmulticontext.c
6190         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
6191         don't return value from void functions.
6192
6193         * gtk/gtk.def: Add gtk_rc_style_unref.
6194
6195 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
6196
6197         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
6198         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
6199         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
6200         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
6201         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
6202         gtk/gtktypeutils.h: Include files outside of the extern "C"
6203         block. Makes some C++ compiler happy. Reported by Denis Vakatov
6204         <vakatov@peony.nlm.nih.gov>.
6205
6206 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
6207
6208         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
6209           Completes first pass. Hurrah!
6210
6211 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
6212
6213         * docs/tutorial/gtk-tut.sgml: More clean ups.
6214
6215 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
6216
6217         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
6218         paint the background of the text area which was accidentally
6219         removed at some point.
6220
6221         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
6222           
6223          - Move most of the functionality from the theme vtable
6224            into GtkRcStyleClass and GtkStyleClass. The moved
6225            vtable functions were changed a bit in the move to
6226            work better in their new home.
6227
6228          - Get rid of the engine and engine_data fields from
6229            GtkRcStyle and GtkStyle; instead the theme
6230            engine derives theme-specific subclasses of GtkRcStyle
6231            and GtkStyle
6232
6233          - Add extra dlsym() found entry point to themes,
6234            theme_create_rc_style().
6235
6236         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
6237         in gtk_style_real_copy.
6238
6239         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
6240         to register a type associated with an engine. (The engine
6241         won't be unloaded as there is an instance of the type.)
6242
6243
6244 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
6245
6246         * docs/tutorial/gtk-tut.sgml: Clean ups.
6247
6248 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
6249
6250         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
6251           of cleaning up to do.
6252
6253 2000-07-15  Tor Lillqvist  <tml@iki.fi>
6254
6255         * gdk/testgdk.c: New file, quick hack to test backends for
6256         pixel-by-pixel correctness of the most simple graphic operations.
6257
6258 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
6259
6260         * Really release 1.3.1
6261         
6262         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
6263         include structure.
6264
6265 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
6266
6267         * Released 1.3.1
6268
6269 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
6270
6271         * gtk/gtktextlayout.c: use FALSE for size_only most
6272         of the time when calling gtk_text_layout_get_line_display()
6273         to avoid causing double reshapes when a redraw follows
6274         immediately after.
6275
6276 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
6277
6278         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
6279         appropriate region and gdk_window_process_updates() so trough
6280         updating doesn't lag behind the window being scrolled.
6281
6282         * gdk/gdkgc.c: Make parent_class pointer static.
6283          
6284 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
6285
6286         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
6287         include <string.h>.
6288          
6289         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
6290         cut-and-paste error in computing memory offset for 4 channels.
6291
6292 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
6293
6294         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
6295         gtk_rc_append_default_pixmap_path(), since it wasn't
6296         adding an interesting path and we don't have a meaningful
6297         default for this value.
6298
6299 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
6300
6301         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
6302         gtk-config to gtk-config-2.0 move gtk_.m4 to
6303         gtk-2.0.m4
6304
6305         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
6306         gdk/Makefile.am demos/Makefile.am: Change 
6307         library names to libgtk-1.3.la, etc, so that we
6308         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
6309
6310         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
6311         gdk/Makefile.am gdk/x11/Makfile.am
6312         Move include files into /usr/include/gtk-2.0, 
6313         /usr/lib/gtk-2.0/include/
6314          
6315         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
6316         gtk/gtkintl.h: Change package for gettext from 
6317         gtk+ to gtk20. Put hack in autogen.sh to modify
6318         po/Makefile.in.in after gettextize to make this
6319         possible.
6320
6321         * gtk+.spec: Some updates, not tested.
6322
6323         * gdk-pixbuf/Makefile.am: Move loaders into
6324         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
6325
6326         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
6327         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
6328         to THEMENAME/gtk-2.0/. Move engine directory  to
6329         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
6330         
6331 2000-07-12  Tor Lillqvist  <tml@iki.fi>
6332
6333         Win32 changes, still doesn't build though.
6334
6335         * gdk/makefile.cygwin
6336         * gdk/win32/makefile.cygwin
6337         * gtk/makefile.cygwin: Updates.
6338
6339         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
6340         default values for fg and bg pixel as X11 does (0 and 1), not
6341         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
6342         Use 0 for pen width by default (treated as 1 anyway later, but for
6343         apps that might check the value in the GdkGC).
6344         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
6345         interface to gdk_gc_predraw and _postdraw.
6346
6347         * gdk/win32/gdkwin32.h
6348         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
6349
6350         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
6351         extraneous semicolon.
6352
6353         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
6354
6355         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
6356         not the Win32 bitspixel value.
6357
6358         * gdk/win32/gdkcc-win32.c:
6359         * gdk/win32/gdkcolor-win32.c 
6360         * gdk/win32/gdkprivate-win32.h
6361         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
6362         GDK object structure.
6363
6364 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
6365
6366         * docs/tutorial/gtk_tut_12.es.sgml (name): 
6367         * docs/tutorial/gtk_tut_it.sgml (name): 
6368         * docs/tutorial/gtk_tut_fr.sgml (name): 
6369         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
6370         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
6371
6372 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
6373
6374         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
6375           small changes.
6376
6377 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
6378
6379         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
6380         a bug here, never been here and never fixed anything ;(
6381         (don't segfault if tree->root_tree is NULL, which happens prior
6382         to widget realization, but puke instead).
6383
6384 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
6385
6386         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
6387         add the necessary tokens.
6388
6389         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
6390         (gtk_rc_style_to_style): copy thicknesses.
6391         (gtk_rc_init_style): apply thicknesses.
6392         (gtk_rc_parse_style): parse xthickness and ythickness.
6393
6394         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
6395
6396         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
6397         (gdk_window_new): 
6398         (_gdk_windowing_window_init): 
6399         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
6400         (gdk_pixmap_create_from_data): 
6401         (gdk_bitmap_create_from_data): 
6402         (gdk_pixmap_new): 
6403         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
6404         (gdk_image_new): 
6405         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
6406         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
6407         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
6408         (gdk_colormap_get_system): 
6409         (gdk_colormap_new): 
6410         * gdk/gdkwindow.c (gdk_window_init): 
6411         * gtk/gtkstyle.c (gtk_style_new):
6412         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
6413         * gdk/gdkpixmap.c (gdk_pixmap_init): 
6414         * gtk/gtkrc.c (gtk_rc_style_new):
6415         use g_object_new() instead of g_type_create_instance() which
6416         is a private function for fundamental type implementations.
6417
6418 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
6419
6420         * configure.in: Add check for db2html
6421
6422 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
6423
6424         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
6425         hack to set glib_debug_objects based on gtk_debug_flags.
6426
6427 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
6428
6429         * INSTALL.in: Update the Prerequisites section.
6430
6431         * Makefile.am demos/Makefile.am docs/Makefile.am
6432         docs/tutorial/Makefile.am gdk/x11/Makefile.am
6433         gdk/linux-fb/Makefile.am: Dist fixes
6434
6435 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
6436
6437         * NEWS: 10,000 foot view of 1.3.1 changes.
6438
6439 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
6440
6441         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
6442         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
6443         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
6444         gdk/x11/gdkmain-x11.c: 
6445
6446         Patch from George Lebl to add a GdkGrabStatus enumeration to use
6447         as a return value of gdk_*_grab(). Previously, we just
6448         returned the X11 values directly.
6449
6450 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
6451
6452         * gdk/x11/Makefile.am: Patch from George Lebl to 
6453         install all the headers in the right place.
6454
6455 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
6456
6457         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
6458           initial conversion to DocBook.
6459
6460 2000-07-04  Tor Lillqvist  <tml@iki.fi>
6461
6462         * README.win32: Improve a bit.
6463
6464         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
6465         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
6466         Alt+0nnn on the numpad (used to enter characters by numeric code
6467         from current DOS or ANSI codepage) working correctly, as in other
6468         Windows apps.
6469
6470         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
6471         same argument validity tests as in X11 version.
6472         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
6473
6474         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
6475         definitions in case missing from headers.
6476
6477         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
6478         destroy the window-specific cursor.
6479         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
6480         calling GetModuleHandle(NULL).
6481         (gdk_window_set_cursor): Reworked to always copy the passed cursor
6482         with CopyCursor before setting it as the window-specific
6483         cursor. It is OK for the caller to destroy the GdkCursor (and thus
6484         also its Windows cursor) after calling this function. Destroy any
6485         previous window-specific cursor.
6486
6487 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
6488
6489         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
6490         font charset is iso8859-1, not iso-8859-1.
6491
6492 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
6493
6494         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
6495         Use g_get_charset() instead of g_get_codeset().
6496
6497         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
6498         Comment out some strdup'ing functions to keep timj
6499         happy until we finish fighting this out.
6500
6501 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
6502
6503         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
6504         <= width or height.
6505
6506         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
6507         from 1.2 for parent/child states.
6508
6509         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
6510         of typos.
6511
6512         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
6513         event structures, replace with a generic axes field. Replace 
6514         deviceid/sourec with GdkDevice *device.
6515
6516         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
6517         to extract particular axis use value from event. (Also
6518         can be used for normal X/Y.)
6519
6520         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
6521         allow for arbitrary number of axes, namespace everything
6522         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
6523         everywhere.
6524
6525         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
6526         Get rid of the gdk_input_vtable setup if favor of simply
6527         defining the functions in gdkinput-none/gxi/xfree.c in
6528         a similar fashion to the way that the port structure is 
6529         done.
6530
6531         * gtk/gtkdnd.c: Fix fields of synthesized button press event
6532         for new event structures. 
6533
6534         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
6535         new device interfaces.
6536
6537 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
6538
6539         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
6540         set the initial text.
6541
6542         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
6543         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
6544         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
6545         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
6546
6547         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
6548         pango_layout_set_font_description to simplify.
6549
6550 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
6551
6552         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
6553         pango_layout_set_font_description to simplify.
6554
6555 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
6556
6557         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
6558         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
6559         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
6560
6561         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
6562         PANGO_PIXELS() macro.
6563
6564 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
6565
6566         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
6567         that returns a PangoContext owned by the widget and updated to
6568         match future changes in the widget. Also, make 
6569         gtk_widget_create_pango_layout() use this context. If we ever
6570         add a ::changed signal to PangoContext, this will make things
6571         much more convenient. 
6572
6573         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
6574         in the appropriate places instead of destroying the layouts and
6575         creating new ones.
6576
6577         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
6578         in a few strategic places.
6579
6580 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
6581
6582         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
6583         gtk_widget_size_request() on reparented child, if one. Otherwise,
6584         queue_resize() on the child never results in it getting size-requested
6585         at all.
6586
6587         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
6588         in option menus, so that (with luck) people won't copy it into
6589         their apps in the future.
6590
6591         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
6592         to gtk_option_menu_calc_size. This isn't perfect, but should fix
6593         a lot of problems with changing the size of the menu's menu
6594         items after adding it to the option menu.
6595
6596         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
6597
6598         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
6599         the text direction for a widget changes.
6600
6601         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
6602         ::direction_changed to get rid of various hacks.
6603
6604 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
6605
6606         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
6607         name.
6608
6609 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
6610
6611         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
6612         flag to the structure. Do not call XFreePixmap on pixmaps created
6613         by gdk_pixmap_foreign_new().
6614
6615 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
6616
6617         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
6618         value using GdkRGB functionality given GdkColormap and GdkColor.
6619         (name not final, waiting for inspiration.)
6620         
6621         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
6622         set the foreground/background of a GC using the GC's colormap
6623         and GdkRGB. (name not final, waiting for inspiration.)
6624
6625         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
6626         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
6627
6628         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
6629         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
6630         purely a function of the corresponding colormap. Make
6631         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
6632
6633         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
6634         gdk_pixbuf_*create_from_xpm_* in terms of
6635         gdk_pixbuf_new_from_xpm_data(), move into platform independent
6636         code.
6637
6638         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
6639         advantage of the new draw_rgb_32_image_dithalign.
6640
6641         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
6642
6643         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
6644         on each created GC.
6645
6646         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
6647
6648         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
6649         which we initialize from the drawable when the GC is created,
6650         if the drawable has a colormap.
6651
6652         * gdk/x11/gdkgc-x11.c: include string.h for memset.
6653
6654         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
6655
6656         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
6657
6658 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
6659
6660         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
6661         actually returning expose events, make sure to set
6662         the count field properly.
6663
6664         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
6665         accidentally reintroced bug which always cleared
6666         the graphics_exposures value. 
6667
6668 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
6669
6670         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
6671
6672 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
6673
6674         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
6675
6676 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
6677
6678         * docs/faq/gtk-faq.sgml: Start of Section 6.
6679
6680 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
6681
6682         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
6683         
6684         (Fixes problem with drawing childless frames. Pointed out
6685         by and a first patch from Anders)
6686         
6687         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
6688         compute a child_allocation, even if we don't have a child.
6689
6690         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
6691         Always chain to the parent's impl, even if we don't have a child.
6692
6693 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
6694
6695         * gdk/gdkrgb.c: If possible, create only a single shm segment and
6696         use multiple parts of it instead of creating a bunch of separate
6697         segments, since the maximum number of segments per system is not
6698         large. (This might be worth backporting to GTK+-1.2.x if we make a
6699         new release )
6700
6701         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
6702         structure in preparation for per-colormap GdkRGB.
6703
6704         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
6705         to False when we get EINVAL from shmget so that the caller of
6706         gdk_image_new can retry with a smaller segment size.
6707
6708 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
6709
6710         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
6711
6712 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
6713
6714         * configure.in: make the current version number 1.3.1 (binary age 0,
6715         interface age 0).
6716         
6717         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
6718         gtkcompat.h is all we want.
6719
6720         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
6721         GLib primitive types. fixed g_type_register_fundamental() argument
6722         ordering.
6723
6724         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
6725         compiles.
6726
6727         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
6728         object code cleanup, comment trigraph fixes, etc...
6729
6730 2000-06-23  Havoc Pennington  <hp@redhat.com>
6731
6732         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
6733         instead of making up a bogus name for first_para_mark
6734
6735         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
6736         0 as a context ID
6737
6738 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
6739
6740         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
6741
6742 2000-06-21  Havoc Pennington  <hp@pobox.com>
6743
6744         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
6745         we didn't check window->bg_pixmap != GDK_NO_BG.
6746
6747         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
6748         gdk-pixbuf
6749
6750 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
6751
6752         * docs/faq/gtk-faq.sgm: Move file to here.
6753           TODO: Update Makfile.am 
6754
6755 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
6756
6757         * docs/gtk-faq.sgm: Add Section 2
6758
6759 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
6760
6761         * docs/gtk-faq.sgm: New file. Start of DocBook
6762           version of the FAQ.
6763
6764 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
6765
6766         * configure.in (GDK_PIXBUF_MAJOR): Define version
6767         numbers for GDK_PIXBUF_*, as they get substituted
6768         into a header file. Need to consider versioning
6769         for gdk-pixbuf more carefully later.
6770
6771 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
6772
6773         Work with srcdir != builddir.   
6774         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
6775         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
6776         * demos/testpixbuf.c: Likewise.
6777         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
6778         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
6779         <gdk/x11/gdkx.h>.
6780         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
6781         "gdk-pixbuf.h".
6782         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
6783
6784 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
6785
6786         * TODO.xml: Change 1.4 version numbers to 2.0.
6787
6788 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
6789
6790         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
6791         fixups to GTK+ standard.
6792
6793 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
6794
6795         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
6796         gdk-pixbuf.
6797
6798         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
6799         fixups for GObject.
6800
6801         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
6802         gdk-pixbuf with GDK dependencies moved into GDK.
6803         
6804         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
6805         move gdk-pixbuf-loader here until GObject has signals.
6806
6807         * demos/: New directory of demos. Move demos from
6808         gdk-pixbuf here.
6809
6810         * demos/pixbuf-init.c: Small bit of code to check for
6811         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
6812         set GDK_PIXBUF_MODULEDIR appropriately.
6813
6814         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
6815         define which no longer makes sense.
6816
6817 2000-06-21  Havoc Pennington  <hp@redhat.com>
6818
6819         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
6820         gtk_get_default_language
6821
6822         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
6823         new function to get the default language
6824
6825         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
6826         s/gtk_text_view_style_values/gtk_text_style_values/
6827
6828         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
6829         Add a "language" field to tags.
6830
6831         (gtk_text_tag_set_arg): Fix bug in setting
6832         "bg_full_height_set" tag.
6833
6834 2000-06-21  Havoc Pennington  <hp@redhat.com>
6835
6836         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
6837         in the interfaces
6838
6839         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
6840         stuff instead when possible.
6841
6842         * gtk/gtktexttypes.h: Delete some unused constants
6843
6844         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
6845         testtextbuffer.c: use glib instead of custom unicode routines
6846
6847 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
6848
6849         * docs/es/: Removed mistakenly added generated sgml
6850
6851         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
6852         Remove outdated info files.
6853
6854         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
6855         Moved tutorial files into subdir
6856
6857         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
6858         subdir.
6859
6860         * docs/man/gtk_button.pod: Remove. (contents will be
6861         integrated into gtk-reference button page.)
6862
6863         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
6864         docs/faq/Makefile.am: Adjust for new organization
6865
6866 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
6867
6868         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
6869         not $(MKINSTALLDIRS)
6870
6871 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
6872
6873         * gtk/testgtk.c (create_text): Finish the job Elliot started
6874         of removing font setting test for text widget. (Since text widget
6875         and GdkFont are not deprecated, and cause portability problems.)
6876
6877 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
6878
6879         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
6880         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
6881         Remove use of libunicode in favor of new GLib functions.
6882
6883         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
6884         nano-x, framebuffer. The X11 include is just a hack until we get
6885         the necessary functions in gdkcolor.h, so there is no reason to
6886         add other includes of platforms.
6887
6888         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
6889         window bigger than the screen change.
6890
6891         * gtk/testgtk.c: Revert some random changes from Elliot
6892         that had no particular point and were causing testgtkrc
6893         not to function correctly.
6894         
6895         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
6896         because GdkSegment and GdkRegionBox have the same fields,
6897         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
6898         results in clearer code.
6899
6900         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
6901         gdk_input_translate_coordinates): Fix missed GdkObjectification
6902
6903 2000-06-18  Elliot Lee  <sopwith@redhat.com>
6904
6905         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
6906         * gtk/gtk{plug,socket}.h: Missed commits from previous.
6907
6908 2000-06-20  Havoc Pennington  <hp@redhat.com>
6909
6910         * modules/linux-fb/Makefile.am: Make this compile
6911         without framebuffer enabled
6912
6913         * gdk/linux-fb/Makefile.am: Add conditional to not build
6914         framebuffer unless specified in configure
6915
6916         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
6917         the size of the target instead of source if -1 was passed for
6918         width/height
6919
6920         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
6921         width/height confusion.
6922
6923 2000-06-19  Havoc Pennington  <hp@redhat.com>
6924
6925         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
6926         GDK_DRAWABLE_XID. In the future, we probably want to make it
6927         faster with G_DISABLE_CHECKS turned on.
6928
6929 2000-06-14  Havoc Pennington  <hp@redhat.com>
6930
6931         * gdk/Makefile.am: add gdkpixmap.c
6932
6933         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
6934         s/gdk_image_init/_gdk_windowing_image_init
6935
6936         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
6937         ref/unref
6938
6939         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
6940
6941         * gdk/gdkcompat.h: remove GdkWindowType compat, since
6942         GdkWindowType is now non-deprecated; 
6943         change gdk_window_get_type() compat to be
6944         gdk_window_get_window_type().
6945
6946         * gdk/gdkdnd.h: make GdkDragContext a GObject.
6947
6948         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
6949         virtual GObject. Make all functions call into the vtable.
6950         Move gdk_image_put() guts in here. Remove GdkDrawableType
6951         and gdk_drawable_get_type(), these are now GdkWindow-specific.
6952         draw_image, get_depth, get_size, set_colormap, get_colormap,
6953         get_visual added to the vtable.
6954         
6955         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
6956         GObject. Virtualize everything. 
6957         (gdk_gc_new_with_values): remove check for destroyed window,
6958         because now GdkWindow::create_gc will check this.
6959         (gdk_gc_set_values): New function to set GC values, this 
6960         was already implemented but wasn't in the header
6961
6962         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
6963
6964         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
6965         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
6966         remove _gdk_window_class; add _gdk_window_impl_get_type() and
6967         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
6968         _gdk_windowing_window_init, rename gdk_image_init to
6969         _gdk_windowing_image_init.
6970         
6971         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
6972         (gdk_draw_layout): Remove check for destroyed window, 
6973         because all the drawable methods already check it.
6974         
6975         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
6976         Add gdkpixmap.c which contains implementation of GdkDrawable
6977         virtual table (by chaining to a platform-specific implementation
6978         object).
6979         
6980         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
6981         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
6982         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
6983         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
6984         GdkColormapPrivate. 
6985
6986         * gdk/gdktypes.h: #include <glib-object.h>
6987
6988         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
6989         Move most functionality to platform-specific implementation
6990         object. GdkWindow itself now handles the backing store, then
6991         chains to the platform-specific implementation.
6992         (gdk_window_get_window_type): return GdkWindowType of the window.
6993         (gdk_window_peek_children): New routine, returns the children of 
6994         a GdkWindow
6995         (gdk_window_get_children): Was in X11-specific code and did 
6996         XQueryTree. Changed to simply return a copy of window->children; 
6997         so it can go in cross-platform code.
6998         
6999         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
7000
7001         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
7002         GdkColormap; just changed to use the new private data instead
7003         of casting to GdkColormapPrivate.
7004
7005         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
7006         gdk_cursor_new().
7007
7008         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
7009         (private data member in the GObject). 
7010         (xdnd_manager_source_filter): Function had broken 
7011         error handling, fix it (use gdk_error_trap_push).
7012
7013         * gdk/x11/gdkdrawable-x11.c: This file now implements
7014         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
7015         base class is purely for the convenience of the X port,
7016         and not part of the interface to cross-platform GDK.
7017
7018         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
7019         
7020         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
7021         specific to X, and returned by the create_gc virtual method
7022         of GdkDrawableImplX11. 
7023         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
7024         rather than gchar, this was also changed in the GdkGC vtable.
7025         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
7026         mask is 0, return immediately, instead of checking every flag.
7027         This is faster, and keeps us from segfaulting if values is NULL
7028         and the mask contains some nonzero flags.
7029
7030         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
7031         GdkWindow.
7032
7033         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
7034         GdkWindowPrivate is gone.
7035
7036         * gdk/x11/gdkim-x11.c: rename things that got renamed.
7037
7038         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
7039         remove the image_put stuff that got transferred to GdkDrawable.
7040         
7041         * gdk/x11/gdkinput.c: renamings
7042
7043         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
7044
7045         * gdk/x11/gdkpixmap-x11.c: GObject conversion
7046
7047         * gdk/x11/gdkprivate-x11.h: indentation fixes
7048
7049         * gdk/x11/gdkproperty-x11.c: renamings
7050
7051         * gdk/x11/gdkselection-x11.c: renamings
7052
7053         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
7054         implements the platform-specific "impl" object.
7055         Moved gdk_window_get_children to gdk/gdkwindow.c
7056
7057         * gdk/x11/gdkx.h: Remove all the private structs and private datas
7058         that no longer exist. Add declaration of GdkGCX11 object here.
7059         Fix all the macros to still work. 
7060
7061         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
7062         GdkDragContext from the boxed types since they are now GObjects.
7063
7064         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
7065         moved xthickness/ythickness into the instance. GtkStyleClass
7066         functions are now in the standard vtable for GtkStyle, so you have
7067         to create a GObject subclass to write a theme engine.
7068         (gtk_style_copy): fixed a leaked PangoFontDescription
7069         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
7070         can be the standard GObject function.
7071         
7072         * Throughout GTK:
7073         s/style->klass->[xy]thickness/style->[xy]thickness
7074         s/pango_layout_unref/g_object_unref/
7075
7076         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
7077         
7078         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
7079         accessing GDK internals.
7080
7081         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
7082         accessing GDK internals.
7083
7084 2000-06-18  Elliot Lee  <sopwith@redhat.com>
7085
7086         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
7087
7088         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
7089         problem by calculating event position relative to the trough
7090         rather than the slider.
7091         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
7092
7093         * gdk/gdkgc.h: Add GDK_NOR.
7094
7095         * configure.in, Makefile.am: Add modules top level dir
7096         * configure.in: Only use pangox library if building x11 target.
7097         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
7098
7099 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
7100
7101         * gtk/gtkcolorsel.c: Change private class member to be named
7102         private_data throughout the file.
7103
7104         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
7105         private_data to avoid clashing with keyword.
7106
7107 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
7108
7109         * gdk/gdkdnd.h: Add comment to remove warning.
7110
7111 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
7112
7113         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
7114         Byelorussian language; changed the Makefile and file names 
7115         to reflect that.
7116
7117 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
7118
7119         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
7120         rather than gdk_window_hide; this makes things work
7121         correctly if the window is programmatically hidden while
7122         iconified.
7123
7124 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
7125
7126         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
7127         cut and paste typo where wrong pixmap was being
7128         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
7129
7130 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
7131
7132         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
7133         Add helper function to compute format / bytes 
7134         relationship. Use in a couple places to fix up
7135         errors which assume 8 * format.
7136
7137         * gtk/gtkselection.c (gtk_selection_request): Use 32
7138         rather than 8 * sizeof (GdkAtom), to work correctly
7139         on Alpha.
7140
7141 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
7142
7143         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
7144         libgtk.la
7145         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
7146         versions
7147
7148         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
7149         checking macros return NULL since the function has a return value.
7150
7151 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
7152
7153         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
7154         GTK+ from building at all.
7155
7156         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
7157
7158 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
7159
7160         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
7161         gtk/Makefile.am: make it possible to configure gtk for different
7162         targets on the same platform. The library name is now 
7163         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
7164         flag. Only the x11 target compiles right now.
7165         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
7166         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
7167         * gdk/nanox/gdk*generic*: delete generic region code.
7168         * gdk/linux-fb/gdk*generic*: delete generic region code.
7169         * README.nanox: update information.
7170         
7171 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
7172
7173         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
7174         prepend not append. (Pointed out by Brett Hall.)
7175
7176 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
7177
7178         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
7179
7180 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
7181
7182         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
7183         need this later, and this makes sure that the atexit for
7184         glib gets called after that for GDK, so atexits are
7185         properly ordered for object leak checking.
7186
7187         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
7188
7189         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
7190         pango_x_shutdown_display()
7191
7192         * gtk/simple.c (main): Close window on destroy.
7193
7194 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
7195
7196         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
7197         to treat initial creation different from setting with 
7198         regards to the graphics-exposures parameter, so add a parameter
7199         indicating whether this is initial or not.
7200
7201 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
7202
7203         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
7204         to sort of work by adding an extra return_exposes arg
7205         to gdk_event_translate() - it might be better to simply
7206         deprecate the function altogether and force people to rewrite
7207         without it. gdk_window_scroll() handles most of it, and where
7208         gdk_window_scroll() doesn't work, simply redrawing more does.
7209
7210         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
7211         assertion.
7212
7213         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
7214
7215         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
7216         bunch of pretty much useless /* Print debugging info */ comments 
7217         which had drifted away from the code they were commenting.
7218
7219 2000-06-02  Havoc Pennington  <hp@pobox.com>
7220
7221         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
7222         is in working order.
7223         
7224         * gtk/testtext.c: Change to reflect anonymous mark API
7225
7226         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
7227
7228         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
7229         field, which was unused.
7230
7231         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
7232         saves some typing.
7233
7234         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
7235
7236         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
7237         flag on the insertion point and selection bound
7238
7239         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
7240         make mark-manipulation functions take a GtkTextMark* instead of a
7241         mark name.
7242         
7243         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
7244         GtkTextMarkBody; will be used to detect attempts to delete
7245         the permanent marks (insert and selection bound)
7246
7247         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
7248
7249 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
7250
7251         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
7252         flag to on.
7253
7254         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
7255         Honor DOUBLE_BUFFRED_FLAG
7256
7257         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
7258         function to set the DOUBLE_BUFFERED flag.
7259
7260         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
7261         or not exposes done on the widget should be double-buffered.
7262
7263         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
7264         to be what would be expected. (Fixes problem with a
7265         g_return_if_fail() validating a TextDirection enumeration)
7266
7267 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
7268
7269         * gtk/gtkwidget.c: Remove all references to 
7270         offscreen flag which was no longer used.
7271
7272         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
7273
7274         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
7275         for non-null label_widget->parent.
7276
7277         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
7278         which no longer was used.
7279
7280         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
7281
7282         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
7283         for null arguments.
7284
7285         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
7286         check for destroyed windows.
7287
7288 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
7289
7290         * gtk/gtkimmulticontext.c: Add a finalize method and unref
7291         the slave context there.
7292
7293         * gtk/gtkinvisible.[ch]: Make reference counting behavior
7294         identical to GtkWindow.
7295
7296 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
7297
7298         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
7299         pangox to here, so we can write them independent of rendering
7300         system, using GDK primitives.
7301
7302         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
7303         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
7304         since we have a rendering-system independent implementation in
7305         terms of draw_glyphs().
7306         
7307         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
7308         function to render a single line.
7309
7310         * gdk/x11/gdkpango.c: Move the guts of this file mostly
7311         into ../gdkpango.c, which simplifies things, since we
7312         don't have to deal with raw X gc's.
7313
7314 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
7315
7316         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
7317         get the logical attributes for a given GtkTextLine.
7318
7319 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
7320
7321         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
7322         g_locale_get_codeset() to g_get_codeset() change.
7323
7324 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
7325
7326         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
7327         descriptions.
7328
7329         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
7330         the entry.
7331
7332         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
7333         redoing (vastly simplifying) for Pango. Still needs quite
7334         a bit of work. (Size selection is currently poor. List of 
7335         predefined sizes is not a good idea, since all of these
7336         sizes won't necessarily be distinct.)
7337
7338 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
7339
7340         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
7341         CODESET results for LANG=C.
7342
7343 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
7344
7345         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
7346         which takes a stringized pango font description;
7347         ignore the older 'font' and 'fontset' declarations.
7348
7349         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
7350         field with a GdkFont derived via gdk_font_from_description(),
7351         for compatibility. (Should we just remove it entirely?
7352         Probably too much compatibility breakage, but people
7353         should be migrating to the new Pango stuff as quickly
7354         as possible.)
7355
7356 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
7357
7358         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
7359
7360 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
7361
7362         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
7363         redoing; there are some bugs in size allocation right
7364         now, the semi-existant distinction between header / day
7365         fonts was removed, but, with Pango, could actually
7366         be made functional in a nice way.
7367         
7368         * gtk/testcalender: Move calender from examples into this
7369         directory as a test program. (We really need to restrcture
7370         testgtk into a whole directory full of tests for every
7371         widget or functionality group, separated into multiple .c
7372         files.)
7373
7374 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
7375
7376         * gtk/testgtk.c (file_exists): Fix stupid typo that
7377         was keeping RC file from being loaded.
7378
7379         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
7380         RC file font code.
7381
7382 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
7383
7384         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
7385         Add function to load a GdkFont from a PangoFontDescription.
7386
7387 2000-05-29  Tor Lillqvist  <tml@iki.fi>
7388
7389         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
7390         variable should be of type GdkEventPrivate.
7391
7392 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
7393
7394         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
7395         to have any widget for the label, use a GtkLabel widget
7396         to display the text. (Based partially on a patch from
7397         Anders Carlson.)
7398
7399         (Quite a bit of code reorganization - strip 90% of the
7400         guts out of gtkaspectframe and add a single virtual
7401         func to GtkFrameClass - compute_child_allocation.)
7402
7403 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
7404
7405         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
7406         (Removed clist->row_center_offset field because caching
7407         it wasn't saving time or code, added private function
7408         _gtk_clist_create_cell_layout()).
7409
7410 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
7411
7412         * gtk/gtkaccellabel.c: Pangoized.
7413
7414         * gtk/[hv]ruler.c: Pangoized
7415
7416 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
7417
7418         * gtk/gtkfilesel.c (gtk_file_selection_init):
7419         Use gtk_clist_set_column_auto_resize() to remove need
7420         need for manual column width computations.
7421
7422 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
7423
7424         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
7425         ensuring Pango correctness, and considerably simplifying the
7426         code.
7427         
7428         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
7429
7430         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
7431         getting of numbers of lines.
7432
7433         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
7434         to the actual requested width of the lable, not to the wrap
7435         width we set.
7436
7437         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
7438
7439         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
7440           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
7441
7442         * gtk/gtktextview.c: Fix structure inheritance.
7443
7444         * gtk/gtkprogressbar.c: Pangoize.
7445
7446 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
7447
7448         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
7449         in a function.
7450
7451         * gtk/gtktextlayout.c (find_display_line_above): Fixed
7452         bug with computing line tops.
7453
7454         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
7455
7456 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
7457
7458         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
7459         and y_offset coordinates to do what we need now. (The offset between
7460         buffer and layout coordinates has been reintroduced, but is a 
7461         bit different than before.)
7462
7463         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
7464         handle the adjustments ourselves, and scroll as necessary using
7465         the new gdk_window_scroll().
7466         
7467         The advantage of this is that when we are incrementally revalidating,
7468         we are essentially rearranging things around the visible portion
7469         of the screen. With the old setup, the visible portion of the
7470         screen was moved around in the layout, so scrolling and redrawing
7471         to track that caused jumping of the display. Since we now
7472         control the scrolling ourselves, we can suppress this and
7473         only redraw when things actually change.
7474
7475 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
7476
7477         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
7478         the region not just redisplay it after-all, since we store the
7479         cursors in the LineDisplay. (Ugly interactions here between
7480         GtkLayout and GtkTextBTree here.)
7481         
7482         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
7483
7484 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
7485
7486         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
7487         Added function to scroll contents of a window while keeping the
7488         window constant. Works by XCopyArea or guffaw-scrolling depending
7489         on the details of how the window is set up. (guffaw-scrolling
7490         still needs to be filled in.)
7491
7492 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
7493
7494         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
7495         move the debugging that was tied to a global variable
7496         to that.
7497
7498         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
7499
7500         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
7501         validated flag, in line data instead of setting height/width to
7502         -1. This allows us to perform operations with partially invalid
7503         buffer (using the old size for invalid lines) and thus to do
7504         incremental vaidation. Keep height/width aggregates up to date
7505         when deleting text and rebalancing the tree.
7506
7507         * gtk/gtktextbtree.[ch]: Add functions validate a line
7508         (gtk_text_btree_validate_line), and to validate up
7509         to a number of pixels (gtk_text_btree_validate).
7510
7511         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
7512         that indicates that something is changed and a revalidation
7513         pass is needed. Change ::need_repaint to ::changed, and
7514         make it take old and new yranges instead of a rectangle.
7515
7516         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
7517         the line_data_destroy() function from 
7518         gtk_text_btree_add_view() to a virtual function in 
7519         GtkTextLayout
7520
7521         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
7522         since we are handling partial repaints in a different fashion
7523         now.
7524
7525         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
7526         of the selection instead of queueing a repaint on the
7527         entire widget.
7528
7529         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
7530         get_selection_bounds() down to btree, make the function
7531         in buffer a wrapper around the btree function.
7532
7533         * gtk/gtktextlayout.[ch]: Add functions to check if the
7534         layout is valid and to recompute either a range of pixels
7535         aroudn a line or a certain total number of pixels.
7536
7537         * gtk/gtktextlayout.[ch]: Cache a single line display;
7538         now that we only redraw the needed portions, the hit rate
7539         for this cache is quite high.
7540         
7541         * gtk/gtktextview.[ch]: Keep track of the first paragraph
7542         on the screen so that when re-laying-out the buffer, we can
7543         keep the same place. This requires connecting to ::value_changed
7544         on the adjustments
7545
7546         * gtk/gtktextview.[ch]: Add idle functions to revalidate
7547         the buffer after we receive an ::invalidated signal.
7548         
7549 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
7550
7551         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
7552         to max of allocation and layout size, not just to the
7553         layout size.
7554
7555         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
7556         Invalidate window so it gets redrawn properly.
7557
7558         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
7559         to mean the entire window.
7560
7561         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
7562         into public header.
7563
7564 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
7565
7566         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
7567         to get the name of a mark.
7568
7569         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
7570         to find the paragraph from a y position.
7571
7572 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
7573
7574         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
7575         nodes have width/height >= 0, not > 0.
7576
7577 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
7578
7579         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
7580         Add a size_only flag, so when we only need the size, we don't create
7581         useless appearance attributes.
7582
7583         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
7584         duplicate setting of font description.
7585
7586         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
7587
7588 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
7589
7590         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
7591         EXTRA_DIST. It does not work well when the file that
7592         everything depends on is not in the tarball.
7593
7594 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
7595
7596         * gtk/testgtk.c: Some hacks and fixes so that it basically
7597         works when not sitting in the GTK+ build tree.
7598
7599 2000-05-03  Havoc Pennington  <hp@redhat.com>
7600
7601         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
7602         Properly determine the ordering of the tag root and the current
7603         line within the tree. Previous algorithm only worked if the tag
7604         root's immediate parent was the common root of both the current
7605         line and the tag root.
7606
7607 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
7608
7609         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
7610         alignment.
7611
7612         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
7613         the widget text directional dynamically.
7614
7615         * gtk/gtktextview.[ch]: Added functions to get and set default
7616         wrap mode.
7617
7618 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
7619
7620         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
7621         in cursor location computation.
7622
7623 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
7624
7625         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
7626         vadjusment values properly when layout gets smaller.
7627
7628         * gtk/gtktextview.c (need_repaint_handler): Areas being
7629         passed in are far completely inaccurate, and sometimes
7630         too small, so, for now, just queue a redraw on the
7631         whole visible region.
7632
7633 2000-04-25  Havoc Pennington  <hp@redhat.com>
7634
7635         * gtk/gtktextbtree.c (summary_destroy): new function to 
7636         destroy tag summary nodes
7637         (gtk_text_line_next_could_contain_tag): this function was 
7638         totally broken if the line passed in wasn't below the tag
7639         root. Fix it.
7640         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
7641         "wildcard" case, we have to do a linear scan. Blah.
7642         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
7643         we have to do the linear scan
7644         (tag_removed_cb): When a tag is removed from the tag table, 
7645         remove the GtkTextTagInfo node from the btree.
7646         (gtk_text_btree_spew): Implement the spew function, for 
7647         our debugging pleasure.
7648
7649 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
7650
7651         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
7652         a problem with referring to the wrong buffer.
7653
7654         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
7655
7656         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
7657         font description to gtk_style_new() - otherwise things
7658         don't work without a .gtkrc file.
7659
7660         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
7661         tags table if we create it ourself, too.
7662
7663         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
7664         it was conflicting with XKB modifiers.
7665
7666         * gtk/gtktextview.[ch]: Add simple support for 
7667         GtkIMContext.
7668
7669 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
7670
7671         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
7672         with deletion from last commit.
7673
7674 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
7675
7676         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
7677         in the context from the current locale.
7678         
7679         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
7680         context, not hardcoded value.
7681
7682         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
7683         not logical.
7684
7685 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
7686
7687         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
7688         attributes - that doesn't handle partial-glyph selection
7689         properly. Instead use new pango_layout_line_get_x_ranges()
7690         functionality to draw the selection.
7691
7692         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
7693         now properly handles out-of-range coordinates.
7694
7695         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
7696
7697         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
7698         public.
7699
7700         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
7701         for paragraphs opposite to the base direction of the widget.
7702
7703         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
7704
7705         * gtk/gtktextlayout.c: Don't split segments on marks, since that
7706         causes Arabic words to reshape as you cursor through.
7707
7708         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
7709         cursor position when moving vertically with the arrow keys and
7710         scrolling with page-up/page-down. (Arrow keys save only the X,
7711         scrolling saves both X and Y.)
7712
7713         This means you can line-up / line-down or page-up / page-down
7714         without losing your place, and also that moving vertically
7715         with the cursor keys keeps the same X position, not the same
7716         character count:
7717
7718         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
7719         arrow keys move by display lines, not paragraphs.
7720
7721 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
7722
7723         * gtk/gtklayout.c: Make sure that the bin window is at least
7724         as big as the allocation. (Should we also make sure that the
7725         bin window is big enough to completely cover widget->window?)
7726
7727         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
7728         function to get the onscreen rectangle.
7729
7730         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
7731         for offsets in window coordinates.
7732
7733 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
7734
7735         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
7736         confusion.
7737
7738         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
7739         from the widget direction.
7740
7741         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
7742         Add a "direction" attribute.
7743
7744         * gtk/gtktextview.c: global s/tkxt/text_view/.
7745
7746         * gtk/testtext.c: Added long block of text in Arabic, to test out
7747         the direction attributes. (Some problems with the shaping system
7748         for arabic become obvious - like the fact the cursor splits words
7749         into unjoined pieces.)
7750
7751 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
7752
7753         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
7754
7755         * gtk/gtktextlayout.c: Fix up alignment.
7756
7757         * gtk/testtext.c: Add some tests for centering, wrapping.
7758
7759 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
7760
7761         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
7762         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
7763         If we wrote GTK+-specific layout-render function this could just replace
7764         the draw_layout() operation in the vtable.
7765
7766         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
7767         pango_layout_get_cursor_pos() and use that function.
7768
7769         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
7770         is a non-static symbol.
7771
7772         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
7773         with gtk_text_btree_find_line_by_y()
7774
7775         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
7776         renderer that handles GtkTextAppearance attributes.
7777
7778         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
7779
7780           - Move the values in the style that don't affect geometry into a
7781             GtkTextAppearance structure.
7782           - Change underline to take a PangoUnderline and "font" a string
7783             representation of a font description
7784           - Add a "font_desc" attribute which takes a FontDescription structure.
7785
7786         * gtk/gtktextlayout.[ch]:
7787
7788           - Get rid of the display-line list per each line. Instead, we
7789             generate, on demand, a GtkTextLineDisplay structure which]
7790             contains a PangoLayout * and other necesary information
7791             (offsets, cursor locations) for displaying a paragraph.
7792           - Get rid of the code to wrap lines, create display chunks,
7793             etc. Instead, we just go through a paragraph and convert
7794             it into the necessary inputs to a PangoLayout.
7795           - Implement a new attribute type, GtkTextAttrAppearance. This
7796             holds a GtkTextAppearance, and is used to pass colors, 
7797             stipple, etc, through from the layout to the display without
7798             having to use lots and lots of individual attributes.
7799           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
7800             in terms of PangoLayout functions.
7801         
7802         * gtk/gtktextview.c: 
7803          
7804           - Handle passing the necessary PangoContext to the layout
7805           - Some fixups in painting to deal with the automatic backing store
7806             and offsetting of GTK+-1.4
7807           - Add a style_set handler so that the default style reacts
7808             properly to theme changes.
7809         
7810         * gtk/gtktext?*.[ch]: Random code-style fixes.
7811
7812         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
7813
7814 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
7815
7816         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
7817         in original form preparatory to Pango-ization and gdkimcontext-ization.
7818
7819 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
7820
7821         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
7822         so that we can derive from gtkimcontext in language bindings properly.
7823
7824 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
7825
7826         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
7827         Add a compose table including (almost) all the compose combinations
7828         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
7829         data in the XIM implementation.
7830
7831         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
7832         Moved functions to convert keyvalues from and to unicode here from
7833         the win32 port and made them public.
7834
7835 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
7836
7837         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
7838
7839 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
7840
7841         * gtk/gtkimcontext.[ch]: Base class for new input context system
7842
7843         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
7844         the real input context implementation to be loaded from modules
7845         and switched on the fly.
7846
7847         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
7848         context that just does direct keysymbol => unicode translation.
7849
7850         * gtk/gtkentry.[ch]: Start switching editing over to using
7851         GtkInputContext. (No handling of preedit yet.)
7852
7853 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
7854
7855         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
7856         many substitutions. (klass should not be subsituted.)
7857
7858 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
7859
7860         * configure.in: Add checks for Pango
7861
7862         * configure.in docs/Makefile.am: Add test for sgml2html
7863         and allow 'make dist' without building html, but print out
7864         warnings in that case. (For making snapshots)
7865
7866         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
7867         Add Pango libraries and C flags
7868
7869         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
7870         Add function (gdk_draw_layout) to draw a pango layout.
7871
7872         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
7873         for getting Pango contexts for GDK.
7874
7875         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
7876
7877         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
7878         editing.
7879
7880         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
7881         keysym => unicode translations. More languages can be added
7882         here, but real input-method support is needed.
7883
7884         * docs/Changes-1.4.txt: Added note about entry behavior.
7885         
7886         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
7887         to set the reading direction for a widget and the global direction.
7888         Add test which allows toggling the global direction. Two private
7889         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
7890
7891         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
7892           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
7893
7894         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
7895
7896         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
7897         underlining now handled by Pango.
7898
7899         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
7900         to RCStyle and Style. (Having both this and the old font name and GdkFont 
7901         is temporary.)
7902
7903         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
7904         convenience functions for creating contexts and layouts for widgets.
7905
7906         * gtk/testgtk.c: Enhance label tests with multilingual labels.
7907
7908 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
7909
7910         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
7911         titles to be active, even if they aren't visible.
7912         (gtk_clist_column_titles_passive):  Ditto.
7913
7914 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
7915
7916         * gtkmenu.c:
7917         * gtkmenu.h:
7918         * gtktypeutils.h: Spelling/grammar fixes in comments.
7919
7920 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
7921
7922         * gdk/nanox/*.h: add missing header files.
7923
7924 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
7925
7926         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
7927         send_event to TRUE.
7928         (gtk_drawing_area_size): queue a resize.
7929
7930 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
7931
7932         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
7933         the handlers, also invalidate them. bug nailed down by Karl Nelson
7934         <kenelson@ece.ucdavis.edu>.
7935
7936 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
7937
7938         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
7939         "(nil)" foundries, patch from Grigorios Magklis.
7940
7941         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
7942         on non-available fonts, based on a patch by Grigorios Magklis
7943         <maglis@cs.rochester.edu>.
7944
7945 2000-05-18  Elliot Lee  <sopwith@redhat.com>
7946
7947         * gdk/x11/gdkregion-generic.c: If a region does not have any
7948         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
7949         instead of GDK_OVERLAP_RECTANGLE_IN.
7950
7951 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
7952
7953         * gtk/gtklayout.c (gtk_layout_map): Remove references to
7954         OFFSCREEN, as it is no longer necessary.
7955
7956 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
7957
7958         * gtk/gtkcolorsel.c: Patch from David Santiago
7959         <mrcooger@cyberverse.com> to change things so that the 
7960         indicator of the active palette entry is done independently,
7961         not via the focus, since it should always be visible.
7962
7963 2000-05-17  Tor Lillqvist  <tml@iki.fi>
7964
7965         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
7966         refcount leaks as in the X11 backend.
7967
7968         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
7969         cosmetics.
7970
7971         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
7972         backend. Add _gdk_windowing_window_destroy().
7973
7974         * gtk/gtkcolorsel.c: Include correct backend-specific header.
7975         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
7976         either, but these probably do exist on nanox?)
7977         
7978         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
7979         which isn't necessarily defined by <math.h>.
7980
7981         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
7982         ancestry past GtkObject.
7983
7984         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
7985         from DLL on Win32.
7986
7987         * gtk/gtk.def: Update corresponding to recent changes.
7988
7989         * gtk/makefile.{cygwin,msc}: Updates.
7990
7991 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
7992
7993         * docs/Changes-1.4.txt: A bit of editing.
7994
7995         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
7996         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
7997         to clear the update area for the window, and clear it
7998         when hiding a window.
7999
8000         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
8001         if window destroyed.
8002
8003         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
8004
8005         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
8006         gdk_window_destroy() to the generic code, since there was a lot of 
8007         window-system-independent logic it in. Add a function:
8008         
8009          _gdk_window_destroy() 
8010
8011         to the internal API to destroy a window without unreferencing it.
8012         Add a function:
8013
8014          _gdk_windowing_window_destroy()
8015
8016         That does the windowing-system-dependent part of destroying 
8017         the window.
8018
8019 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
8020
8021         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
8022
8023 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
8024
8025         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
8026         Make gtk_widget_shape_combine_mask() keep a reference count on
8027         the pixmap since it keeps it around.
8028
8029 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
8030
8031         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
8032         leak.
8033
8034         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
8035         leak with event filters.
8036
8037 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
8038
8039         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
8040         signal handlers with the right data arguments. (Fixes
8041         some warnings when a widget was repeatedly set as a drag
8042         destination.)
8043
8044         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
8045         window so we can avoid avoid setting the DND properties on the
8046         toplevel window repeatedly.
8047
8048 2000-05-13  Tor Lillqvist  <tml@iki.fi>
8049
8050         * gdk/win32/gdkwin32.h: Define more message types missing from
8051         mingw headers.
8052
8053         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
8054         call gdk_window_destroy_notify(). It was never called. This
8055         probably meant that the GdkWindow was never freed. Thanks Owen for
8056         noticing (!).
8057
8058         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
8059         window as destroyed before calling DestroyWindow(). DestroyWindow()
8060         causes a call to the window procedure (gdk_WindowProc), which
8061         calls gdk_event_translate(), which calls
8062         gdk_window_destroy_notify(), which gets confused unless the window
8063         is set as destroyed.
8064
8065         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
8066         this function to indicate it's win32 only. Put inside #ifdef
8067         G_ENABLE_DEBUG.
8068
8069         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
8070         debugging function. (gdk_event_translate:) Add a default branch
8071         that uses the above function to print debug messages with all
8072         Windows messages symbolically.
8073
8074         * gdk/win32/gdkprivate-win32.h: Declare it, and
8075         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
8076
8077 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
8078
8079         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
8080         public header file.
8081
8082 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
8083
8084         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
8085
8086         * gtk/gtktext.c: made the adjustments no-construct args, simply
8087         provide default adjustments.
8088         (gtk_text_destroy): release adjustments.
8089
8090         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
8091         adjustment argument non-construct.
8092
8093         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
8094         instead of in finalize.
8095         (gtk_progress_get_text_from_value): 
8096         (gtk_progress_get_current_text): 
8097         (gtk_progress_set_value): 
8098         (gtk_progress_get_percentage_from_value): 
8099         (gtk_progress_get_current_percentage): 
8100         (gtk_progress_set_percentage): 
8101         (gtk_progress_configure): ensure an adjustment is present.
8102
8103 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
8104
8105         * gtk/gtkcolorsel.[hc]:
8106         * gtk/gtkcolorseldialog.[hc]:
8107         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
8108         their parent implementation, use bit fields for boolean values, don't
8109         create unused widgets, usage of glib types, braces go on their own
8110         lines, function argument alignment, #include directives etc. etc. etc..
8111
8112         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
8113
8114 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
8115
8116         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
8117
8118         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
8119         of NULL.
8120
8121         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
8122         to freed data.
8123         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
8124
8125         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
8126         to NULL when the toplevel is getting destroyed.
8127         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
8128         (gtk_menu_destroy): 
8129         (gtk_menu_init): store the information of whether we have to
8130         readd the initial child ref_count during destruction in a new
8131         GtkMenu field needs_destruction_ref_count.
8132
8133         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
8134         here, those reading: learn from my mistake! ;)
8135         in order for set_?adjustment to support a default adjustemnt if
8136         invoked with an adjustment pointer of NULL, the code read (pseudo):
8137         if (v->adjustment) unref (v->adjustment);
8138         if (!adjustment) adjustment = adjustment_new ();
8139         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
8140         now imagine the first unref to actually free the old adjustment and
8141         adjustment_new() creating a new adjustment from the very same memory
8142         portion. here, the latter comparision will unintendedly fail, and
8143         all hell breaks loose.
8144         (gtk_viewport_set_hadjustment):
8145         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
8146         after unreferencing it.
8147
8148         * gtk/gtkcontainer.[hc]: removed toplevel registration
8149         functions: gtk_container_register_toplevel(),
8150         gtk_container_unregister_toplevel() and
8151         gtk_container_get_toplevels() which had wrong semantics
8152         anyways: it didn't reference and copy the list.
8153
8154         * gtk/gtkwindow.c: we take over the container toplevel registration
8155         bussiness now. windows are registered across multiple destructions,
8156         untill they are finalized. the initial implicit reference count
8157         users are holding on windows is removed with the first destruction
8158         though.
8159         (gtk_window_init): ref & sink and set has_user_ref_count, got
8160         rid of gtk_container_register_toplevel() call. add window to
8161         toplevel_list.
8162         (gtk_window_destroy): unref the window if has_user_ref_count
8163         is still set, got rid of call to
8164         gtk_container_unregister_toplevel().
8165         (gtk_window_finalize): remove window from toplevel list.
8166         (gtk_window_list_toplevels): new function to return a newly
8167         created list with referenced toplevels.
8168         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
8169
8170         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
8171         adjustment a non-construct arg.
8172         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
8173         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
8174         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
8175
8176         * gtk/gtkrange.c: added some realized checks.
8177         (gtk_range_destroy): get rid of the h/v adjustments in the
8178         destroy handler instead of finalize. remove timer.
8179         (gtk_range_get_adjustment): demand create adjustment.
8180
8181         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
8182         we simply create them on demand now and get rid of them in
8183         the destroy handler.
8184         (gtk_viewport_destroy): get rid of the h/v adjustments in the
8185         destroy handler instead of finalize.
8186         (gtk_viewport_get_hadjustment): 
8187         (gtk_viewport_get_vadjustment): 
8188         (gtk_viewport_size_allocate): demand create h/v adjustment
8189         if required.
8190
8191         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
8192         gtk_widget_real_destroy () functionality.
8193         (gtk_widget_real_destroy): reinitialize with a new style, instead
8194         of setting widget->style to NULL.
8195
8196 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
8197
8198         * gtk/gtkcalendar.c:
8199         * gtk/gtkbutton.c: ported _get_type() implementation over to
8200         GType, either to preserve memchunks allocation facilities,
8201         or because Gtk+ 1.0 GtkTypeInfo was still being used.
8202
8203         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
8204         over. prepare for ::destroy to be emitted multiple times.
8205         removed reference tracer magic. chain into GObjectClass.shutdown()
8206         to emit ::destroy signal.
8207
8208         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
8209         fundamental.
8210
8211         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
8212         cludge.
8213
8214         * gtk/gtksocket.c:
8215         * gtk/gtkplug.c:
8216         * gtk/gtklayout.c:
8217         * gtk/gtklabel.c:
8218         * gtk/gtkargcollector.c:
8219         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
8220         not being a fundamental anymore, and to work with the new
8221         type system (nuked fundamental type varargs clutter).
8222
8223         * gtk/*.c: install finalize handlers in the GObjectClass
8224         part of the class structure.
8225         changed direct GTK_OBJECT()->klass accesses to
8226         GTK_*_GET_CLASS().
8227         changed direct object_class->type accesses to GTK_CLASS_TYPE().
8228
8229         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
8230         GType. made most of the GTK_*() type macros and Gtk* typedefs
8231         simple wrappers around macros and types provided by GType.
8232         most notably, a significant portion of the old API vanished:
8233         GTK_TYPE_MAKE(),
8234         GTK_TYPE_SEQNO(),
8235         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
8236         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
8237         GTK_TYPE_ARGS,
8238         GTK_TYPE_CALLBACK,
8239         GTK_TYPE_C_CALLBACK,
8240         GTK_TYPE_FOREIGN,
8241         GtkTypeQuery,
8242         gtk_type_query(),
8243         gtk_type_set_varargs_type(),
8244         gtk_type_get_varargs_type(),
8245         gtk_type_check_object_cast(),
8246         gtk_type_check_class_cast(),
8247         gtk_type_describe_tree(),
8248         gtk_type_describe_heritage(),
8249         gtk_type_free(),
8250         gtk_type_children_types(),
8251         gtk_type_set_chunk_alloc(),
8252         gtk_type_register_enum(),
8253         gtk_type_register_flags(),
8254         gtk_type_parent_class().
8255         replacements, where available are described in ../docs/Changes-1.4.txt.
8256         implemented compatibility functions for the remaining API.
8257
8258         * configure.in: depend on glib 1.3.1, use gobject module.
8259
8260 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
8261
8262         * TODO.xml: Various updates to current status.
8263
8264 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
8265
8266         * gtk.m4: Print out version when test succeeds.
8267
8268 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
8269
8270         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
8271         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
8272         
8273         (Original triangle color selector from Simon Budig
8274         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
8275         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
8276         Santiago <mrcooger@cyberverse.com>)
8277
8278         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
8279         out into a separate widget.
8280
8281         * gtk/testgtk.c: Add some checkbuttons for toggling palette
8282         and opacity controls.
8283
8284 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
8285
8286         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
8287         snuck in prematurely.
8288
8289 2000-05-07  Tor Lillqvist  <tml@iki.fi>
8290
8291         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
8292         had deleted a ! operator by mistake, which caused
8293         GDK_SELECTION_CLEAR events never to be generated, which caused
8294         only the first copy to the clipboard from an gtkeditable to
8295         actually cause a copy to the Windows clipboard.
8296
8297 2000-05-06  Tor Lillqvist  <tml@iki.fi>
8298
8299         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
8300         compilation, too. Current mingw gcc distributions include the
8301         necessary headers. Also the necessary IIDs are now in mingw
8302         headers/libraries, and own definitions unnecessary.
8303
8304         More hacking on OLE2 DND, still doesn't work though, and thus
8305         ifdeffed out.
8306
8307         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
8308         here, too.
8309
8310 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
8311
8312         * gdk/nanox/*: nano-X port work in progress.
8313         * gdk/simple.c: simple test for Gdk.
8314         * README.nanox: notes about the port: read this first!
8315         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
8316         with nano-X.
8317
8318 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
8319
8320         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
8321         gdk_window_clear() into common code, implement in terms of
8322         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
8323         not redirected to the backing rectangle.
8324
8325 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
8326
8327         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
8328         EXTRA_DIST. It does not work well when the file that
8329         everything depends on is not in the tarball.
8330
8331 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
8332
8333         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
8334         with recursion where process_updates() is called from
8335         an expose handler. (GtkTextView is highly broken in
8336         doing this, but it should work, so it is a nice test
8337         case.)
8338
8339 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
8340
8341         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
8342         handle the case where updates are queued during processing of
8343         updates.
8344
8345 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
8346
8347         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
8348         window is on gdk_display - use that instead of segfaulting.
8349
8350 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
8351
8352         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
8353         broken and require an empty arg, give it to them.
8354
8355 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
8356
8357         * gtk/gtklabel.h: indentation fixes.
8358
8359 2000-05-02  Tor Lillqvist  <tml@iki.fi>
8360
8361         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
8362         draw too narrow or too low arcs, they seem to fail, at least with
8363         some display drivers.
8364
8365         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
8366
8367         Large changes to the Win32 backend, partially made necessary by
8368         the changes to the backend-independent internal
8369         structures. Attempts to implement similar backing store stuff as
8370         on X11. The current (CVS) version of the Win32 backend is *not* as
8371         stable as it was before the no-flicker branch was merged. A
8372         zipfile with that version is available from
8373         http://www.gimp.org/win32/. That should be use by "production"
8374         code until this CVS version is usable. (But note, the Win32
8375         backend has never been claimed to be "production quality".)
8376
8377         * README.win32: Add the above comment about versions.
8378
8379         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
8380
8381         * gdk/gdk.def: Update.
8382
8383         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
8384         presumably be replaced by some more better mechanism as 1.4 gets
8385         closer to release shape.
8386
8387         * gdk/makefile.{cygwin,msc}: Update.
8388
8389         * gdk/win32/*.c: Correct inclusions of the backend-specific and
8390         internal headers. Change code according to changes in these. Use
8391         gdk_drawable_*, not gdk_window_* where necessary.
8392
8393         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
8394         our old DND.
8395
8396         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
8397         to interpret single characters as UTF-8. Thanks to Hans Breuer.
8398         Use correct function name in warning messages.
8399
8400         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
8401         GSourceFuncs gdk_event_prepare and gdk_event_check.
8402         (gdk_event_get_graphics_expose): Do implement, use
8403         PeekMessage. Thanks to Hans Breuer.
8404         (event_mask_string): Debugging function to print an GdkEventMask.
8405         (gdk_pointer_grab): Use it.
8406
8407         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
8408         (old) book I used claimed was Hangul actually is CJK Unified
8409         Ideographs Extension A. Also, Hangul Syllables were missing.
8410         Improve logging.
8411
8412         * gdk/win32/gdkgc-win32.c: Largish changes.
8413
8414         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
8415         g_win32_getlocale() from GLib, and not setlocale() to get current
8416         locale name.
8417
8418         * gdk/win32/gdkprivate-win32.h
8419         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
8420         gdkwin32.h, similarily as in the X11 backend.
8421
8422         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
8423         assignment was used instead of equals in if test. Thanks to Hans
8424         Breuer.
8425
8426         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
8427         the X11 version.
8428
8429         * gdk/win32/makefile.{cygwin,msc}
8430         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
8431         path to the Win32 headers that works also with the mingw compiler.
8432
8433         * gtk/gtkstyle.c: Include <string.h>.
8434
8435 2000-04-26  Havoc Pennington  <hp@redhat.com>
8436
8437         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
8438         replacing the broken gtk_label_get ()
8439
8440 2000-04-15  Havoc Pennington  <hp@pobox.com>
8441
8442         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
8443         this keeps scanner scripts from getting confused.
8444
8445         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
8446         data, rather than void
8447
8448 2000-04-15  Tor Lillqvist  <tml@iki.fi>
8449
8450         * gtk/gtkclist.c (gtk_clist_motion)
8451         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
8452         with is_hint FALSE, get x and y from the event. They used to be
8453         used uninitialised. The Win32 backend never sends motion events
8454         marked as hints. This for instance fixes the annoying file and
8455         font selector behaviour in the Win32 version.
8456
8457 2000-04-14  Tor Lillqvist  <tml@iki.fi>
8458
8459         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
8460         gtk_private_n_signals variables, they are used by some software,
8461         sigh.
8462
8463         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
8464         installation directory from the Registry, where the installer
8465         should have put it.
8466
8467 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
8468
8469         * gdk/x11/Makefile.am: Fix problem with installation directory for
8470         gdkx.h
8471
8472         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
8473         <mrcooger@cyberverse.com> so that when selecting menus with the
8474         mouse, the first item will not be selected, but when selecting
8475         with an accelerator, or navigating left-right on a menubar with
8476         the menus popped up, the first item will be selected.
8477
8478 2000-04-05  Dan Damian  <dand@dnttm.ro>
8479
8480         * configure.in: Added "ro" to ALL_LINGUAS.
8481
8482 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
8483
8484         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
8485         indentation.
8486
8487         * Makefile.am (EXTRA_DIST): Fix typo.
8488
8489         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
8490         to catch gdkconfig.h
8491
8492         * gtk/gtkitemfactory.c: Added FIXME.
8493
8494 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
8495
8496         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
8497         s/return_if_fail/return_val_if_fail/g and add a return value.
8498
8499 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
8500
8501         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
8502         merge slipup.
8503
8504         * gdk/gdkinput.h: Fix missing line from merge.
8505
8506 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
8507
8508         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
8509         instead of gdkprivate.h.
8510
8511 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
8512
8513         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
8514         parent class to correctly be GtkDialogClass.
8515
8516 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
8517
8518         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
8519         toplevel windows and their immediate children by their parents,
8520         since the size of toplevel windows is out of our immediate
8521         control and we don't get any real benefit from trying to track
8522         this size for clipping.
8523
8524         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
8525         for input_only windows.
8526
8527         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
8528         to fix some hacks and make sure that we don't try to set the
8529         background of input only windows.
8530
8531 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
8532
8533         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
8534         the _really_ internal stuff, and leave gdkprivate.h for the fake private
8535         stuff that we've traditionally exposed.
8536
8537         * gdk/**.c: Use gdkinternals.h where appropriate.
8538
8539         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
8540         not include gdkprivate-x11.h, move all stuff of conceivable public
8541         interest into gdkx.h; keep all really private stuff in
8542         uninstalled header gdkprivate-x11.h.
8543
8544         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
8545         image->image_put on windows through a new function _gdk_window_draw_image()
8546         to allow us to do backing store for images. (Sort of ugly)
8547
8548         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
8549         contexts locally so that we can offset them properly when drawing 
8550         onto backing pixmaps.
8551
8552         * gdk/gdkinput.h: Reindented
8553
8554         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
8555         pixmap or color for the window, so we can properly initialize
8556         our double-buffer pixmaps, and also so that we temporarily set
8557         a background of None while scrolling.
8558
8559         * gdk/gdkregion.h: Revise region boolean operators to have an
8560         interface that is actually convenient - switch from creating new
8561         regions on every op, to "methods" that modify existing regions
8562         (A = A OP B). 3 argument forms which allow dest == src, would also
8563         be possible, but the current interfaces seem to map nicely
8564         onto what needs to be done. (There is quite a lot of region
8565         code in GDK now.)
8566
8567         * gdk/gdkregion.h: Add constructor from rectangle and a copy
8568         operator.
8569
8570         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
8571         gdkpoly-generic.h: Copy region code from Xlib, switch it over
8572         to 32 bit coordinates, modify it to be mostly GTK+ style
8573         and to have interfaces that match gdkregion.h.
8574
8575         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
8576         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
8577         create a backing pixmap and redirect all drawing to
8578         that backing pixmap until a matching gdk_window_end_paint().
8579
8580         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
8581         Create a special drawable class for GtkWindow's that 
8582         redirects the drawing to the backing pixmap as necessary
8583         and then calls the real operations in _gdk_windowing_window_class.
8584
8585         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
8586         Store invalid region for each window. Generate expose events for invalid
8587         region in an idle. This replaces both the expose compression
8588         and the redrawing queuing in GTK+. It is both more efficient and
8589         simpler than either one individually and far more so then the
8590         combination.
8591
8592         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
8593         Emulate 32 bit coordinates for windows with 16 bit coordinates
8594         by offsetting drawing, guffaw scrolling techniques and
8595         mapping/unmapping child windows as necessary.
8596
8597         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
8598         where, when invalid regions are processed, the region is stored,
8599         and if expose events come in that are detectably duplicate
8600         the processed exposes (by comparison of event serial numbers),
8601         the stored region is subtracted out of those exposes.
8602
8603         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
8604         regions newly exposed when scrolling or resizing windows.
8605         This, combined with forcing processesing of queued invalidated
8606         regions, gives nice flicker-free scrolling.
8607
8608         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
8609         invalidated regions after every scroll.
8610
8611         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
8612         emulation in GDK. Its, for all practical purposes just a
8613         GtkViewport/GtkFixed hybrid now.
8614
8615         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
8616         (16-bit) structures as necessary instead of just casting.
8617
8618         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
8619         in terms of the structures from gdkregion-generic.c, using appropriate
8620         offsets from GDK to X11 coordinates. Cache clip mask and
8621         origin and ts origin locally and only flush to the server
8622         when drawing, to avoid constantly setting and resetting these
8623         values when offsetting GC's for scrolling and backing pixmaps.
8624
8625         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
8626
8627         * gtk/gtkcontainer.c: Call process_all_updates at end
8628         of resizing to reduce flicker. (Avoids having redraw
8629         lag arbitrarily behind resize under some circumstances)
8630
8631         * gtk/gtkentry.c: Remove old backing store code, and simply take
8632         advantage of the new backing store capabilities of GDK.
8633
8634         * gtk/gtkmain.c: Simple implementation of widget backing
8635         store - simply push a paint while handling each expose.
8636         (Should really be configurable widget for widget.)
8637         
8638         * gtk/gtkwidget.c: Remove all the old complicated redraw
8639         code, and simply invalidate the GDK windows from
8640         gdk_window_queue_clear(), etc. (Sigh, so much carefully
8641         debugged complexity ... gone to the winds.)
8642
8643         Remove all the code for suppressing expose events while
8644         resizes are pending; this isn't needed since the invalid
8645         areas won't be processed until after the resizes are
8646         processed, since they are in a lower priority idle.
8647
8648 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
8649
8650         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
8651         and height of dest rectangle for non-intersecting rectangles.
8652
8653 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
8654
8655         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
8656         for GdkRectangle.
8657
8658 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
8659
8660         * gdk/gdk{events,image,private,types,window}.h
8661          gdk/x11/gdkinputprivate.h: Change all coordinates
8662          from int16 to int. Also, Change width and height from
8663          unsigned to signed to avoid all the stupid C 
8664          signedness bugs.
8665
8666 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
8667
8668         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
8669         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
8670         Add some more detailed checking.
8671
8672         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
8673         New function to retrieve the depth of a drawable.
8674
8675         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
8676         field, reorder fields to save memory. 
8677
8678 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
8679
8680         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
8681         of the background image instead of scaling the background down to
8682         a line.
8683
8684         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
8685         which temporarily set slider to wrong size.
8686
8687         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
8688         queue_clear().
8689
8690 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
8691
8692 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
8693
8694         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
8695
8696 2000-03-17  Tor Lillqvist  <tml@iki.fi>
8697
8698         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
8699         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
8700
8701         * gdk/win32/gdkfont-win32.c
8702         * gdk/win32/gdkproperty-win32.c
8703         * gdk/win32/gdkselection-win32.c
8704         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
8705         now declared such.
8706
8707 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
8708
8709         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
8710
8711 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
8712
8713         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
8714         is called without trapping X errors.
8715
8716 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
8717
8718         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
8719         way into the fontset lists.
8720
8721 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
8722
8723         * gtk/gtkthemes.h: add extern "C" scope.
8724
8725 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
8726
8727         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
8728         to make appends to the list constant. (gtk-guy-990901-0.patch)
8729
8730 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
8731
8732         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
8733         for the typename hash table.
8734
8735 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
8736
8737         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
8738         to make sure we never divide by zero. 
8739         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
8740
8741 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
8742
8743         * gtk/gtkfontsel.c: Apply patch from
8744         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
8745         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
8746
8747         Also, some cleanups in atom handling.
8748
8749 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
8750
8751         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
8752         not GtkWidget.
8753
8754 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
8755
8756         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
8757         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
8758         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
8759         more guint wrap-around bugs before going to bed.
8760
8761 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
8762
8763         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
8764         guint wrap arounds in allocation.width.
8765
8766         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
8767         process untill we fit the allocation given.
8768
8769 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
8770
8771         * gtk/gtkwidget.c:
8772         (gtk_widget_unrealize): guard widget access with ref/unref
8773         around signal emission.
8774         (gtk_widget_hide): same here, but also check its destroyed
8775         state before queueing a resize.
8776
8777 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
8778
8779         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
8780         of gtk_default_insensitive_bg as insensitive base color.
8781
8782         * gtk/gtktext.c (gtk_text_style_set): set the background color according
8783         to the widget's state.
8784         (gtk_text_realize): same here.
8785         (gtk_text_state_changed): same here.
8786         (draw_bg_rect): compare background color against base[] from
8787         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
8788
8789 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
8790
8791         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
8792         grabs are active, unless a delete event is send to the toplevel
8793         of the currently grab holding widget.
8794
8795 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
8796
8797         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
8798         debugging g_print's.
8799
8800 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
8801
8802         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
8803         ever make the scrolled-window requisition ever depend on the 
8804         visibility state of the scrollbars for the AUTOMATIC policy. 
8805         This breaks the GTK+ requisition model, and causes loops.
8806
8807 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
8808
8809         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
8810         the default font to avoid problems with XFree86-4.0 where the
8811         default charset is iso10646-1, not iso8859-1.
8812
8813 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
8814
8815         * acinclude.m4
8816         * config.guess
8817         * config.sub
8818         * ltconfig
8819         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
8820
8821         * gtk/Makefile.am: minor cosmetic consistency tweak
8822
8823 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
8824
8825         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
8826         the activate_time to 0, so that we handle a quick
8827         press/release press/release properly and don't suppress
8828         the second release. (Red Hat bug #7545)
8829
8830 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
8831
8832         * gtk/gtkctree.c (row_delete):
8833         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
8834         bugs with destruction notifier, *always* update internal
8835         structures *before* calling user code.
8836
8837 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
8838
8839         A few more fixes for bug #5487, #2051, #2677.
8840         * gtk/gtkclist.c : 
8841         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
8842         not GDK_BUTTON_PRESS.
8843         (resync_selection): resync only if selection_mode is
8844         GTK_SELECTION_EXTENDED
8845         * gtk/gtkctree.c (resync_selection): same here
8846
8847 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
8848
8849         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
8850         gdk_drag_get_selection() and gtk_menu_detach().
8851
8852         [ From Jeroen Ruigrok/Asmodai ]
8853
8854 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
8855
8856         * gtk/gtknotebook.c (gtk_notebook_size_request): 
8857         page->tab_label can be NULL.
8858
8859 2000-01-25  Havoc Pennington  <hp@pobox.com>
8860         
8861         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
8862         arg is boolean
8863
8864         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
8865
8866         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
8867
8868         * gdk/gdkproperty.c (gdk_property_get): return boolean
8869
8870         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
8871
8872         * gdk/gdkim.c (gdk_im_ready): return boolean
8873
8874         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
8875
8876         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
8877         glib clash, should fix glib)
8878
8879         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
8880         (gdk_get_show_events): return gboolean, and canonicalize 
8881         to TRUE/FALSE
8882
8883         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
8884         colormap is private
8885         (gdk_colors_alloc): gboolean whether to be contiguous
8886         (gdk_color_equal): return gboolean since we are a predicate
8887         and not a qsort() (this looks semi-wrong due to glib breakage,
8888         IMO glib should be fixed)
8889         
8890         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
8891         (gdk_get_use_xshm): return gboolean
8892         (gdk_pointer_is_grabbed): return gboolean
8893
8894         * gdk/gdk.h: Change prototypes to match all the above changes,
8895         and re-run egtk-format-protos as required.
8896
8897 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
8898
8899         * gtk/gtkctree.c (resync_selection): 
8900         * gtk/gtkclist.c (resync_selection):
8901
8902         Return immediately if clist->drag_pos < 0. This is a workaround
8903         for the corrupt state that the clist gets into when a
8904         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
8905
8906         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
8907         
8908         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
8909         variable from recent commit.
8910
8911 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
8912
8913         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
8914
8915 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
8916
8917         * gtk/Makefile.am: prefix all autogenerated source that get build in
8918         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
8919         in builddir. since we subsequently cd into srcdir for autogeneration,
8920         the paths have to be stripped from the target file names, thusly we
8921         use $(@F) as target names now.
8922         put a comment about configure.in's --disable-rebuilds option,
8923         which can be used for non-writable source directories, for development
8924         setups though, srcdir has to be *writable*.
8925
8926 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
8927
8928         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
8929           Finish the job of allowing event to be NULL.
8930           (Fixes bug #4283, reported by Chris Blizzard)
8931
8932         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
8933           things so that the cursor appears on screen, properly
8934           take into account INNER_BORDER.
8935           (Fixes bug #4754, reported by Antonio Campos)
8936
8937 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
8938
8939         * gtk/gtknotebook.c (gtk_notebook_map): Don't
8940           show the tab_label unless it itself is visible.
8941
8942           gtk/gtknotebook.c (gtk_notebook_size_request):
8943           Do a better job of making sure that the visibility
8944           of the tab label corresponds to whether it should
8945           be mapped or not.
8946
8947 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
8948
8949         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
8950           Use the requisition, not the allocation, since the
8951           allocation has not necessarily been computed yet.
8952           (Pointed out by Eugene Osintsev)
8953
8954 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
8955
8956         * gtk/gtkstyle.c (gtk_style_new): Dont' set
8957           style/base[GTK_STATE_INSENSITIVE] both to
8958           gtk_default_insensitive_bg!
8959           (Bug #2187, reported by Jonathan Blandford)
8960
8961         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
8962           Add Alt_L, Alt_R to list of invalid accelerators.
8963           (Bug #3736, reported by Vlad Harchev)
8964
8965 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
8966
8967         * gtk/gtkfilesel.c (open_ref_dir): Fix several
8968         bugs which occured after an attempt to open 
8969         invalid home directory left cmpl_state->reference_dir == NULL.
8970
8971          - completion on files in home directory didn't work
8972          - completion on an empty string caused  segfault
8973
8974          (Bug #3678, reported by Steve Ratcliffe)
8975
8976         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
8977         cut and paste error that was causing scales to
8978         be incorrectly positioned.
8979         (Bug #2956,
8980          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
8981
8982 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
8983
8984         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
8985         when checking for dcgettext, if we've found we needed
8986         it for dgettext.
8987 +
8988 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
8989
8990         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
8991         queue_clear on NO_WINDOW widgets during a reparent,
8992         since at that point the window and widget heirarchies
8993         are out of sync. This stops crashing in some cases
8994         (the scrolled window reparent test, for instance), and
8995         _probably_ won't cause drawing errors.
8996
8997         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
8998         test do what it was supposed to do and be robust against
8999         window closings, etc. (Bug #2443)
9000
9001 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
9002
9003         * gtk/gtkentry.c: Fix return values on mouse events.
9004         (Bug #2686, Sky <seb_sky@yahoo.com>)
9005
9006         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
9007         (pointed out by George Lebl)
9008
9009         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
9010         (From Ettore Perazzoli  <ettore@helixcode.com>)
9011  
9012 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
9013
9014         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
9015         clicks between rows or outside calender area correctly.
9016         (Patch from Damon Chaplin)
9017
9018         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
9019         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
9020           Call destroy function when overwriting existing data. 
9021           (Pointed out by Damon Chaplin)
9022
9023 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
9024
9025         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
9026           which was causing problems on various systems with Xmu.
9027           This hasn't been needed for a very long time.
9028           (Fixes #1185 3167)
9029
9030 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
9031
9032         * gdk/gdki18n.h: Include <ctype.h> when defining
9033           gdk_isw* in terms of is* as a fallback.
9034           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
9035
9036 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
9037
9038         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
9039           realize the widget when it is size allocated!
9040           (old, old bug)
9041
9042         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
9043           Removed unused call to gdk_window_get_size() that
9044           showed up when the above was fixed.
9045
9046 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
9047
9048         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
9049           fix up widget->window when the widget is a
9050           NO_WINDOW container widget.
9051
9052 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
9053
9054         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
9055           to account for the fact that feof() does _not_ 
9056           return TRUE on errors, and thus avoid infinite loops
9057           when trying to use gdk_pixmap_create_from_xpm()
9058           on unreadable values.
9059
9060 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
9061
9062         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
9063
9064 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
9065
9066         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
9067           gdk_gc_set_dashes to take gint8 instead of gchar to
9068           make it clearer that it is _not_ a NULL terminated string.
9069
9070         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
9071           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
9072           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
9073           arguments.
9074
9075 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
9076
9077         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
9078         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
9079         background size relative to our allocation, guard against small
9080         allocations, we may have not yet been size allocated.
9081
9082 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
9083
9084         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
9085         not just version == 3. We implement all 3 + most of 4 - 
9086         (we don't support matching text/plain;charset=iso-8859-1
9087         to a dest that expects text/plain). We'll still advertise
9088         3 to be safe, but any client implementing version >= 3
9089         must interoperate with 3.
9090         
9091 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
9092
9093         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
9094         background and gc members, add a warning in gtk_tooltips_set_color()
9095         indicating that this function is deprecated.
9096
9097 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
9098
9099         * docs/gtkfaq.sgml: FAQ Update:
9100           - Minor cleanups (Emmanuel, me)
9101           - New questions:
9102                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
9103                 How can I retrieve the text from a GtkMenuItem? (timj)
9104                 How do I validate/limit/filter the input to a GtkEntry? (me)
9105                 Memory does not seem to be released when I free the list
9106                         nodes I've allocated (timj)
9107
9108 2000-03-07  Tor Lillqvist  <tml@iki.fi>
9109
9110         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
9111         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
9112         for which it is no use to call GetLastError onWin9x.
9113         (gdk_other_api_failed) New function, for general error
9114         reporting without calling GetLastError.
9115         (gdk_win32_api_failed) OTOH, this function always calls
9116         GetLastError. (gdk_win32_last_error_string) Remove this function,
9117         GLib has the equivalent now.
9118
9119         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
9120         call them with function name, file name and line number in the
9121         arguments.
9122
9123         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
9124         functions.
9125         
9126         * gtk/gtk.def: Add some missing entry points.
9127
9128         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
9129         gtk_paned_set_gutter_size, which don't exist any longer, as void.
9130         
9131         Fixes by Hans Breuer:
9132
9133         * gdk/makefile.msc: Update for debugging.
9134
9135         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
9136         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
9137         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
9138         in the dash_list.
9139
9140         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
9141         the x11 backend.
9142
9143         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
9144
9145         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
9146
9147 2000-03-04  Tor Lillqvist  <tml@iki.fi>
9148
9149         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
9150         just pixel value of background colour.
9151
9152         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
9153         containing code snippet previously duplicated in a couple of
9154         places.
9155         
9156         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
9157         gdk_colormap_color.
9158
9159         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
9160         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
9161         events for autorepeated Shift, Control and Alt keys. Use
9162         gdk_colormap_color.
9163
9164         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
9165         pointer is inside the window the cursor of which we are setting,
9166         call SetCursor immediately.
9167
9168         * gdk/win32/makefile.cygwin
9169         * gtk/makefile.cygwin: If we don't have the build number stamp
9170         file, use zero.
9171
9172         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
9173         gtk_paned_set_gutter_size as empty.
9174
9175         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
9176         
9177 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
9178
9179         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
9180           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
9181           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
9182           docs/gtk_tut.sgml docs/gtk.texi TODO:
9183
9184           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
9185
9186 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
9187
9188         * gtk/gtkcalendar.c: Implement num_marked_dates,
9189           and don't emit mutiple day_selected signals on
9190           month_prev.
9191
9192 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
9193
9194         * docs/make-todo (lineno): let title and logo be configurable so
9195         that GNOME can use this script too.
9196
9197         * TODO.xml: added logourl and a title
9198
9199 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
9200
9201         * TODO.xml: Added some UI items, and an explanatory
9202         comment at the top of the file.
9203
9204 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
9205
9206         * TODO.xml: some updates, added abunch of new entries.
9207         a note for those fiddeling with this file, when done
9208         with it, invoke:
9209         $ ./docs/make-todo TODO.xml >/dev/null
9210         and correct output errors before comitting changes.
9211
9212 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
9213
9214         * TODO.xml: Added XML-structured TODO file.
9215         * docs/make-todo: python script to turn TODO.xml into
9216           pretty XML output. 
9217
9218 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
9219
9220         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
9221         the function to let it draw the seven dots, instead of the old,
9222         much maligned, method.
9223         (draw_dot): New function to draw a dot.
9224
9225         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
9226         to draw the handle inside the border width as opposed to outside.
9227         Use paint function instead of gdk_draw_point.
9228
9229         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
9230         to draw the handle inside the border width as opposed to outside.
9231         Use paint function instead of gdk_draw_point.
9232
9233         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
9234         Change indenting to be more GTK like.
9235
9236 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
9237
9238         * docs/gtk_tut.sgml: New section on GtkCalendar
9239         * examples/calendar: Update example code
9240
9241 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
9242
9243         * docs/gtkfaq.sgml: FAQ Update
9244
9245 2000-02-19  Anders Carlsson  <andersca@gnu.org>
9246
9247         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
9248         to prevent the scroll event to be propagated upwards.
9249
9250 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
9251
9252         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
9253         OwnerGrabButtonMask from button entries for
9254         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
9255
9256         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
9257         to the event mask (which will result in button/press release
9258         being added to the event mask on Unix) so scrolling works
9259         for layouts in scroll windows.
9260
9261         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
9262
9263         Patch from Anders Carlsson  <andersca@gnu.org> to add
9264         a scroll event.
9265
9266         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
9267         scrolling to the "Test Scrolling" part of testgtk.
9268  
9269         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
9270  
9271         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
9272         it against GDK_SCROLL.
9273  
9274         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
9275         way of mouse wheel scrolling.
9276  
9277         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
9278  
9279         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
9280  
9281         * gtk/gtkmain.c: Removed previous mouse wheel hack.
9282  
9283         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
9284         gdk_event_mask_table.
9285  
9286         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
9287         GdkEventScroll handler.
9288  
9289         * gdk/gdkevents.h: Added GdkEventScroll structure.
9290  
9291 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
9292
9293         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
9294         and Anders Carlsson to change the Paned widgets so that they
9295         can be dragged from anywhere along the length. Also change
9296         the way that this is drawn to make this apparent.
9297
9298         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
9299         from George Lebl to check that option_menu->menu is present
9300         before getting history.
9301
9302 2000-02-14  Tor Lillqvist  <tml@iki.fi>
9303
9304         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
9305         before the assertion for non-NULL segment list.
9306
9307         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
9308         Seems that pattern brushes *must* be 8x8 pixels! At least on my
9309         machine, but it might be display driver dependent. Sigh, so make
9310         sure the stipple is that size. Does Windows suck or what?
9311
9312         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
9313         places.
9314
9315 2000-02-13  Havoc Pennington  <hp@pobox.com>
9316
9317         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
9318         refcount to 1
9319         (gdk_cursor_new): init refcount to 1
9320
9321         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
9322
9323 2000-02-13  Tor Lillqvist  <tml@iki.fi>
9324
9325         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
9326         so that we don't have to do unnecessary settings to the HDC.
9327
9328         * gdk/win32/gdkdrawable-win32.c
9329         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
9330         gdk_gc_predraw.
9331
9332         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
9333         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
9334         GDI paths, call WidenPath to get the outline of the stroken path,
9335         and then fill the outline (with the brush that was built from the
9336         stipple).
9337
9338         * gdk/win32/gdkgc-win32.c: Factor out common code from
9339         _gdk_win32_gc_new and gdk_win32_gc_set_values into
9340         gdk_win32_gc_values_to_win32values. Use correct colour for
9341         SetBkColor() (Until now the code actually used a random colour in
9342         the call to SetBkColor()... but that didn't show up as not many
9343         GDI APIs use the background colour. Pattern (opaque stippled)
9344         brushes do.)
9345
9346         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
9347         gdk_win32_api_failed): New functions for error logging.
9348
9349         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
9350         WIN32_API_FAILED to call them, passing function or file name and
9351         line number.
9352
9353         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
9354
9355         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
9356         GdkColor for foreground and background in GdkGCWin32Data.
9357
9358         * gdk/makefile.cygwin: Link in the resource object separately.
9359
9360         * gdk/win32/rc/gdk.rc
9361         * gtk/gtk.rc (New file)
9362         * gdk/win32/makefile.cygwin
9363         * gtk/makefile.cygwin: Update build number in DLLs automatically,
9364         as in GLib.
9365
9366 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
9367
9368         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
9369         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
9370         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
9371         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
9372         parameters given and cursor->ref_count. coding style fixups.
9373
9374         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
9375         not GtkWidget.
9376         
9377         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
9378         fix up widget macros and add _GET_CLASS() variant.
9379         
9380         * gtk/*.c: some GtkType fixups.
9381
9382 2000-02-09  Tor Lillqvist  <tml@iki.fi>
9383
9384         * gdk/win32/gdkproperty-win32.c
9385         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
9386         were reversed.
9387
9388 2000-02-04  Tor Lillqvist  <tml@iki.fi>
9389
9390         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
9391         g_filename_to_utf8 to convert the font names Windows gives us from
9392         whatever is the default codepage to UTF-8.
9393         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
9394         in the other direction.
9395
9396         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
9397         error in debugging output.
9398
9399 2000-02-02  Tor Lillqvist  <tml@iki.fi>
9400
9401         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
9402         and height parameters to gdk_window_clear_area(). Not minus one.
9403
9404 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
9405
9406         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
9407         checks if the widget passed to gtk_drag_get_data() was not the
9408         dest widget.
9409
9410 2000-02-01  Tor Lillqvist  <tml@iki.fi>
9411
9412         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
9413         g_filename_from_utf8 functions (which were added a moment ago to
9414         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
9415         size buffers.
9416
9417         gtk_file_selection_get_filename returns the filename in the C
9418         runtime encoding. It calls g_filename_from_utf8, but copies the
9419         returned string to a static buffer, which is returned. I think
9420         this is better than returning the result from g_filename_from_utf8
9421         directly, which would mean all apps that use it would have to free
9422         the return value. Or should this function care about this issue at
9423         all? Maybe a new function with clearly defined semantics.
9424
9425         * gtk/gtkfilesel.h: Add comment about
9426         gtk_file_selection_get_filename returning the filename in the C
9427         runtime's encoding.
9428
9429         * README.win32
9430         * gdk/gdk.def
9431         * gdk/makefile.{cygwin,msc}
9432         * gtk/gtk.def: Updates.
9433
9434         * gdk/gdkcursor-win32.c: Initialise refcount.
9435
9436 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
9437
9438         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
9439
9440 2000-01-30  Havoc Pennington  <hp@pobox.com>
9441
9442         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
9443         destroy
9444
9445         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
9446
9447         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
9448         implemented in platform-specific code
9449
9450         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
9451
9452         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
9453         underscore in front
9454
9455         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
9456         put an underscore in front
9457
9458         * gdk/gdkcursor.c: new file, implements
9459         gdk_cursor_ref/gdk_cursor_unref
9460
9461         * gdk/gdkcursor.h: Refcount GdkCursor
9462
9463         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
9464
9465 2000-01-29  Tor Lillqvist  <tml@iki.fi>
9466
9467         * gdk/gdkwindow.h
9468         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
9469
9470 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
9471
9472         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
9473         structures to properly inherit from GtkWidget not GtkBin.
9474
9475 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
9476
9477         * gtk+.spec.in: Added lib/gtk+/include/* to %files
9478         (bug #5178 - Peter Wainright)
9479         
9480         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
9481         so that it will be installed.
9482         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
9483
9484 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
9485
9486         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
9487         for the GtkStyleClass vtable const.
9488
9489         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
9490         take a const string argument like GtkTranslateFunc. This will
9491         require changes in use code.
9492
9493 2000-01-19  Tor Lillqvist  <tml@iki.fi>
9494
9495         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
9496         semantics (to mimic the X11 backend, which just calls XClearArea)
9497         is to check for zero width (and height), and in that case use the
9498         window's width minus x (height minus y). This fixes for instance
9499         some redraw problems with gtkclist, which were easily noticeable
9500         in the gtk file selection widget.
9501
9502         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
9503         windows.
9504
9505 2000-01-13  Tor Lillqvist  <tml@iki.fi>
9506
9507         * configure.in
9508         * gdk/Makefile.am
9509         * gdk/x11/Makefile.am
9510         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
9511         (bug #5177).
9512         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
9513         out later.
9514
9515 2000-01-09  Tor Lillqvist  <tml@iki.fi>
9516
9517         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
9518         WM_MOVE for iconified or invisible windows. This fixes various
9519         problems when minimising windows. Thanks to Bernd Herd.
9520
9521 2000-01-05  Tor Lillqvist  <tml@iki.fi>
9522
9523         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
9524         backend's draw_lines method, not draw_points.
9525
9526 2000-01-02  Tor Lillqvist  <tml@iki.fi>
9527
9528         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
9529         before Owen's reorganisation: Don't have queued_events and
9530         queued_tail statics in this file, but use gdk_queued_events and
9531         gdk_queued_tail. This makes exposure event compression work again.
9532
9533         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
9534         seem to be needed?
9535
9536 1999-12-30  Tor Lillqvist  <tml@iki.fi>
9537
9538         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
9539         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
9540         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
9541         doesn't do anything.
9542
9543         * gdk/gdk.def: Add gdk_xid_table_insert.
9544
9545         * gdk/win32/gdkprivate-win32.h
9546         * gdk/win32/gdkevents-win32.c
9547         * gdk/win32/gdkinput-win32.c
9548         
9549         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
9550         extension_events field in the GdkWindowWin32Data struct. Use only
9551         the extension_events field in GdkWindowPrivate. Previously one was
9552         set, and the other one tested, which broke tablet
9553         functionality. Thanks to Keishi Suenaga for pointing this out.
9554
9555 1999-12-18  Tor Lillqvist  <tml@iki.fi>
9556
9557         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
9558         When handling a single character (text length == 1), don't handle
9559         it as if it was UTF-8.
9560
9561 1999-12-11  Tor Lillqvist  <tml@iki.fi>
9562
9563         * Makefile.am: Distribute README.win32.
9564         
9565         * gdk/Makefile.am
9566         * gdk/win32/Makefile.am: Distribute Win32 files.
9567
9568         * gdk/makefile.msc: New file.
9569
9570         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
9571         after label).
9572
9573         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
9574         gdk_error_code as GDKVAR, as they are referred outside GDK.
9575
9576         * gdk/win32/makefile.msc: Update.
9577
9578         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
9579         tweaks. Check only if at least one of those Unicode subrange bits
9580         we care for is set. If no code page bits are set, guess (wildly)
9581         based on the charset.
9582
9583         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
9584
9585         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
9586         non-NULL.
9587
9588         * gtk/gtkdnd.c
9589         * gtk/gtklayout.c
9590         * gtk/gtkplug.c
9591         * gtk/gtkselection.c
9592         * gtk/gtksocket.c
9593         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
9594         appropriate. There must be a cleaner way to handle this?
9595
9596         * gtk/gtkrc.c: Must include windows.h on Win32.
9597
9598         * gtk/testgtk.c: No need to include gdkx.h.
9599
9600         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
9601
9602 1999-12-07  Tor Lillqvist  <tml@iki.fi>
9603
9604         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
9605         the rbearing is set to the same as the width, but this should be
9606         fixed.
9607
9608 1999-12-06  Tor Lillqvist  <tml@iki.fi>
9609
9610         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
9611         function. If Windows doesn't tell us what Unicode subranges a font
9612         covers, guesstimate based on the codepages it covers. This will
9613         hopefully help those Windows versions or fonts that don't give us
9614         any useful Unicode subrange information with GetTextCharsetInfo.
9615         Call this function in gdk_font_load_internal.
9616
9617         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
9618         minor changes.
9619
9620 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
9621
9622         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
9623         New function, long needed.
9624
9625 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
9626
9627         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
9628         only_if_exists argument of gdk_atom_intern to
9629         bool.
9630
9631 1999-11-25  Tor Lillqvist  <tml@iki.fi>
9632
9633         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
9634         Fix two copy&paste errors.
9635
9636         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
9637         win32 has changed.
9638
9639         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
9640         GdkWin32SingleFont struct.
9641
9642         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
9643         subranges of loaded fonts. Clear font signature first, in case
9644         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
9645         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
9646
9647         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
9648         Unoffset clip region.
9649
9650 1999-11-23  Tor Lillqvist  <tml@iki.fi>
9651
9652         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
9653         event->any.window before calling filter functions.
9654
9655 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
9656
9657         * gtk/gtkgamma.h: Adapt cast macros to standard.
9658
9659 [ Merges from 1.2 ]
9660
9661 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
9662
9663         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
9664         If translation does not include a '/', use entire
9665         translation instead of crashing.
9666
9667 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
9668
9669         * docs/gtk_tut.sgml:
9670         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
9671
9672 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
9673
9674         * gtk/gtkselection.c (gtk_target_list_remove): Use
9675         g_list_remove_link, not g_list_remove.
9676
9677         [ From Geert Bevin <gbevin@thunderstorms.org> ]
9678         
9679 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
9680
9681         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
9682         statement upon unselection (how the heck did that slip in?).
9683
9684 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
9685
9686         * gtk/gtktext.c (gtk_text_freeze): 
9687         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
9688         in frozen state (and aparently crashes). patch provided by Anders
9689         Melchiorsen <and@kampsax.dtu.dk>.
9690
9691 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
9692
9693         * fix insensitive default/focus widget activation,
9694         reported by Matt Goodall <mgg@isotek.co.uk>.
9695
9696         * gtk/gtkwindow.c (gtk_window_key_press_event): 
9697         (gtk_window_activate_default):
9698         (gtk_window_activate_focus):
9699         return handled=FALSE for actiavtion of insensitive default
9700         widgets. return handled=TRUE for activation of insensitive
9701         focus widgets. don't activate in either case.
9702
9703 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
9704
9705         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
9706         and $glib_cflags to match library order and in the
9707         theory that an old version of GLib is more likely to
9708         be in the include directory for X then vice-versa.
9709         (Bug #2776)
9710
9711 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
9712
9713         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
9714         to determine the locale for fontsets, not LC_MESSAGES;
9715         the user may want English messages with a handling
9716         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
9717         will still be broken) (Bug #2891)
9718
9719 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
9720
9721         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
9722
9723 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
9724
9725         * gtk/gtkrc.ko: Changed the Korean default fontset.
9726
9727 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
9728
9729         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
9730         where when scrolling to the left or top double exposes
9731         were done, causing major slowdowns.
9732
9733 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
9734
9735         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
9736         names to lowercase and alphanumeric, before looking
9737         them up.
9738
9739         * gtk/Makefile.am: Install codeset variant gtkrc files
9740         with normalized names.
9741
9742 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
9743
9744         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
9745         popup menus when the menu is already visible, but its parent
9746         is still hidden, (happens after tornoff window got hidden).
9747
9748 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
9749
9750         * gtk/Makefile.am (install-data-local): Fix
9751         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
9752         deleted, causing error messages on install.
9753
9754 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
9755
9756         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
9757         the handle as well, since we now sometimes ignore
9758         exposes on the handle while resizing.
9759
9760 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
9761
9762         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
9763         extra g_free introduced in one of the last one or two 
9764         commits.
9765
9766 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
9767
9768         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
9769         consistent, put each style that a gtkrc.* file creates
9770         in a unique namespace, remove old files before installing.
9771
9772 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
9773
9774         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
9775         gtk_rc_init is called multiple times. (Yes, people who
9776         do that have bugs in their code.)
9777
9778 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
9779
9780         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
9781         Remove it since it's generated by the Makefile anyway
9782
9783 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
9784
9785         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
9786         device->info.axes for core pointer.
9787
9788 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
9789
9790         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
9791         idle_id, to deal with obsolete, broken C libraries.
9792
9793 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
9794
9795         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
9796         allocation->x/y twice!
9797
9798         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
9799         consistent with gtk_vscale_pos_trough().
9800
9801 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
9802
9803         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
9804         be queueing a resize on a toplevel container between
9805         the time we show it and when we map it. So, we need
9806         to test GTK_WIDGET_VISIBLE() for toplevels, and only
9807         use GTK_WIDGET_DRAWABLE() for child windows.
9808
9809 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
9810
9811         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
9812         (fixes bug #2144)
9813
9814 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
9815
9816         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
9817         container DRAWABLE (instead of VISIBLE), so we don't queue
9818         resizes on non-toplevel containers.
9819
9820 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
9821
9822         * gtk/gtkselection.[ch]: Make the data argument
9823         const guchar *.
9824
9825 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
9826
9827         * gtk/gtkwindow.c: Try to behave sensibly if 
9828         the focus widget is the window itself. (Should
9829         we allow this at all?)
9830
9831 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
9832
9833         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
9834         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
9835         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
9836         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
9837         in prototypes and implementations consistent (Tomas Ogren).
9838
9839         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
9840         before the widget is unparented (reported by damon).
9841
9842         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
9843         since we provide unsigned data anyways.
9844
9845 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
9846
9847         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
9848         the call to gtk_tooltips_layout_text() until later.
9849
9850         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
9851         Call gtk_widget_ensure_style() before using the style.
9852
9853 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
9854
9855         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
9856         for old widgets that don't propagate draws to all
9857         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
9858
9859 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
9860
9861         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
9862         for a redraw but just the widget that requested the resize.
9863
9864 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
9865
9866         * gtk/gtkcontainer.c: added new widget level method
9867         gtk_container_set_reallocate_redraws() and a GtkContainer flag
9868         reallocate_redraws : 1 to reflect the setting, exported this through
9869         the argument system as a boolean ::reallocate_redraws.
9870
9871         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
9872         on the widget because the allocation changes, do so as well for
9873         widget->parent if the parent has reallocate_redraws set to TRUE.
9874         with that containers requesting reallocation redraws get automatically
9875         redrawn if their children changed allocation (this unfortunately
9876         affects also other children that didn't change allocation, but we
9877         cannot work around that before 1.3).
9878
9879 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
9880
9881         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
9882         _and_ height are >0 (not _or_).
9883
9884         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
9885         instead of gtk_container_queue_resize(), which is a core gtk internal
9886         function (must have been on crack when i queued that).
9887
9888         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
9889         we can check more reliably if we want to discard expose events.
9890         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
9891         flag.
9892         
9893         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
9894         we simply trust these events. for deciding whether to discard exposes,
9895         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
9896         
9897 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
9898
9899         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
9900         queues of areas that are completely off screen.
9901
9902         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
9903         logic for handleboxes.
9904
9905         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
9906         check on width/height.
9907
9908 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
9909
9910         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
9911         we are fine with using $@ the way we do (if we actually encounter
9912         brokeness with $@ in VPATH builds because of additional path prefixes,
9913         we need to use $(@F) actually).
9914
9915 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
9916
9917         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
9918         short lived bugs, that would allow language bindings to do surgeries
9919         to our guts.
9920
9921 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
9922
9923         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
9924         where comparison was being done against an uninitialized
9925         value causing intermittant results depending on
9926         compiler flags. Also make it clearer that we aren't
9927         ever initializing the child as 0x0 (though this will
9928         be caught in gtk_widget_size_allocate())
9929
9930 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
9931
9932         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
9933         gtk_window_unset_transient_for() call after we do checks
9934         involving the old transient parent.
9935         [ From Lance Capser <lmc@cyberhighway.net> ]
9936
9937 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
9938
9939         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
9940         an empty file.
9941
9942 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
9943
9944         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
9945         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
9946
9947 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
9948
9949         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
9950         `$@' is valid only in the build dir, not after we've done 
9951         `cd $srcdir'.  Also use `test -f' instead of less portable
9952         `test -e'.
9953
9954 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
9955
9956         * gtk/gtktext.c (correct_cache_insert): Rewrite
9957          for simplicity, and hopefully correctness.
9958          (Fixes bug #1322, which was a segfault when
9959           on some insertions with the properties around
9960           the insertion set up just wrong.)
9961
9962         * gtk/gtktext.c (gtk_text_adjustment): When we receive
9963          a "changed" signal, clamp the new value to the adjustment
9964          bounds to avoid segfaulting if someone tries to change
9965          the adjustment to a bogus value. (Bug #1795)
9966
9967 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
9968
9969         * gtk/gtkmain.c: Ignore unexpected destroy notifies
9970         for children, for toplevel windows handle them
9971         like delete_event.
9972
9973         * gtk/gtkplug.c: Add an unrealize handler so that
9974         we unref plug->socket_window when we are done
9975         with it.
9976
9977 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
9978
9979         * gtk/gtktext.c (clear_area): Fix stupid signedness
9980          problem that was causing background to sometimes
9981          be misaligned.
9982
9983 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
9984
9985         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
9986         
9987         * gtk/gtkmenu.c (gtk_menu_position): Make
9988          sure we never position menus with negative x, y,
9989          since gtk_widget_set_uposition() can't handle that.
9990
9991         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
9992          Modify the positioning code a bit so that we always
9993          put the top-left corner onscreen. (This is for
9994          UI reasons, gtk_menu_position() now takes care of
9995          gtk_widet_set_uposition() brokeness.)
9996
9997 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
9998
9999         * gtk/Makefile.am: fixed up things for -jx, x > 1.
10000
10001 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
10002
10003         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
10004           RC style that is passed in. The lack of the ref
10005           before was a bug. If people worked around this
10006           bug, this will introduce a slight memory leak
10007           in their code. The code should typically look like:
10008
10009             rc_style = gtk_rc_style_new ();
10010             [...]
10011             gtk_widget_modify_style (widget, rc_style);
10012             gtk_rc_style_unref (rc_style);
10013
10014         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
10015           the style if it was already set.
10016
10017         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
10018           style if it was set before.
10019
10020 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
10021
10022         * gtk/testgtk.c (main): Add a check to see if we
10023           are being run from the correct directory and
10024           to quit nicely if we are not.
10025
10026         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
10027           static.
10028
10029 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
10030
10031         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
10032
10033         * gtk/gtkwindow.c:
10034         queue resizes unconditionally (gtk_widget_queue_resize will figure
10035         what to do if the window is not realized).
10036         (gtk_window_move_resize): only recenter the window
10037         for GTK_WIN_POS_CENTER_ALWAYS.
10038         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
10039         the same way as GTK_WIN_POS_CENTER.
10040
10041 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
10042
10043         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
10044         with (!(info->last_flags & GDK_HINT_POS)) instead of
10045         (!info->last_flags & GDK_HINT_POS).
10046
10047         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
10048         new_height unconditionally, because we use these values even if
10049         !default_size_changed && !hints_changed.
10050         comented the (default_size_changed || hints_changed) case with
10051         respect to resize rejects from the window manager.
10052
10053         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
10054         in the zvt condition hack, since this includes the window hints, set
10055         the hints after the handling_resize case.
10056
10057         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
10058         window is initially shown with to the geometry.
10059
10060 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
10061
10062         * gtk/gtkwindow.c (gtk_window_move_resize):
10063         s/size_changed/default_size_changed/g so i know what's
10064         really going on (frying brain on smaller flame now).
10065
10066 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
10067
10068         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
10069         we have size_changed upon handling_resize. this is a gross
10070         workaround for the broken zvt widget and should be removed in
10071         1.3 again (search for FIXME).
10072         Owen provided an accurate comment for this:
10073
10074         /* We could be here for two reasons
10075          *  1) We coincidentally got a resize while handling
10076          *     another resize.
10077          *  2) Our computation of size_changed was completely
10078          *     screwed up, probably because one of our children
10079          *     is broken. It's probably a zvt widget.
10080          *
10081          * For 1), we could just go ahead and ask for the
10082          * new size right now, but doing that for 2)
10083          * might well be fighting the user (and can even
10084          * trigger a loop). Since we really don't want to
10085          * do that, we requeue a resize in hopes that
10086          * by the time it gets handled, the child has seen
10087          * the light and is willing to go along with the
10088          * new size. (this happens for the zvt widget, since
10089          * the size_allocate() above will have stored the
10090          * requisition corresponding to the new size in the
10091          * zvt widget)
10092          *
10093          * This doesn't buy us anything for 1), but it shouldn't
10094          * hurt us too badly, since it is what would have
10095          * happened if we had gotten the configure event before
10096          * the new size had been set.
10097          */
10098
10099 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
10100
10101         * gtk/gtkrc.c: deal properly with the fact that RC
10102           style lists may include rc styles more than once.
10103
10104         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
10105           unused static function.
10106
10107         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
10108           stack of directories of RC files currently being
10109           parsed and implicitely add them to pixmap path.
10110           
10111           This fixes a bug where the directory would get
10112           appended then overwritten by pixmap_path declarations.
10113
10114           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
10115
10116         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
10117           theme's exit function. (Patch from Peter Wainwright,
10118           bug #1454)
10119
10120         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
10121           Add a destroy() handler to take care of removing
10122           group for menu item. (Fixes bug #1197)
10123
10124         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
10125           in warning message.
10126
10127 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
10128
10129         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
10130         roundtrip to figure window's width and height, since we know that
10131         anyways from widget->allocation.
10132
10133 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
10134
10135         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
10136           the hints after we request the new size.
10137
10138 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
10139
10140         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
10141           GTK_WIDGET_REALIZED() assertion - we can compute the
10142           hints before we are realized.
10143
10144         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
10145           hint changing so that we have a value of hints_changed
10146           when we decide whether to constrain the window size.
10147
10148         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
10149
10150         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
10151         change back to G_MAXINT.
10152
10153 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
10154
10155         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
10156         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
10157         contain uncluttered values.
10158         (gtk_window_compute_hints): simply assert that window is realized
10159         and that geometry_info is valid, since we rely on this anyways.
10160         (gtk_window_constrain_size): major cleanups to the code.
10161         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
10162         for the base size, instead of the minimums. use 32767 as max width
10163         and height (like in gtkwindow.c) instead of G_MAXINT.
10164
10165 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
10166
10167         * cleaned up the GtkContainer.need_resize flag handling mess, we
10168         only need to force resize requests when we were prematurely
10169         realized, or our widget tree was modified when we were temporarily
10170         hidden. handling these cases directly upon showing the window (i.e.
10171         while the GdkWindow is still unmapped) avoids the need to wait for
10172         a configure event response and therefore makes the GUI more snappier
10173         and avoids blank windows during the roundtrip.
10174
10175         * gtk/gtkwidget.c:
10176         (gtk_widget_hide): 
10177         (gtk_widget_show): don't queue resizes on toplevels, they know how
10178         to deal with matters.
10179
10180         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
10181         flag directly for not visible resize containers and spare us unecessary
10182         signal emissions.
10183
10184         * gtk/gtkwindow.c:
10185         (gtk_window_realize): if we need to enforce premature size allocation,
10186         queue a container resize so we are correctly resized later on.
10187         (gtk_window_init):
10188         (gtk_window_size_request):
10189         don't freak around with the ->need_resize flag,
10190         gtk_container_queue_resize() will care about that.
10191         (gtk_window_show):
10192         handle initial resizing issues here, we can handle matters better in
10193         this place, especially since we know that our GdkWindow is still
10194         unmapped.
10195         (gtk_window_move_resize):
10196         don't care about ->need_resize at all.
10197         handle size changes properly that occoured while we waited for a
10198         configure event.
10199
10200 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
10201
10202         * gtk/gtkwidget.c (gtk_widget_set_uposition):
10203         * gtk/gtkwindow.[hc] (gtk_window_reposition):
10204         Move the hint setting code from gtk_widget_set_uposition
10205         to here; set the hints so that we respect any previously
10206         set geometry hints.
10207
10208         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
10209         change the window hints here or move the window here,
10210         let that happen in gtk_window_move_resize().
10211
10212 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
10213
10214         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
10215         to already queued resizes (and therefore redraws) on a widget, check
10216         its anchestry as well.
10217
10218         * gtk/gtkcontainer.c:
10219         (gtk_container_queue_resize): clear resize widgets for resize
10220         containers before aborting prematurely. this is especially important
10221         for toplevels which may need imemdiate processing or their resize
10222         handler to be queued.
10223         (gtk_container_dequeue_resize_handler): added new internal function for
10224         gtkwindow.c.
10225
10226         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
10227         configure event, take possible changes in window position into account
10228         as well.
10229         if we request a new window size, queue up a resize handler that will
10230         last until the configure event response arrives.
10231         combined the ->need_resize case (initial show) with the general size
10232         (hints) changed case and added even more comments.
10233         if !auto_shrink, only revert to the old allocation if the new size
10234         is smaller than the current allocation.
10235
10236 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
10237
10238         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
10239                            gtk_window_set_geometry_hints
10240                            gtk_window_set_default_size):
10241         When hints are set, queue a resize so that the hints will
10242         be eventually reset on the toplevel.
10243
10244         * gtk/gtkwindow.c (gtk_window_show): Use
10245         gtk_window_compute_default_size(). Clear the need_resize flag
10246         on the initail map so that we don't unnecessarily trigger the
10247         resize code.
10248
10249         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
10250         into separate functions. Compare the hints we are setting
10251         with what we set last time so that we can accurately
10252         tell when we need to reset the hints.
10253
10254         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
10255         function to figure out the size from requisition
10256         and default_size.
10257
10258         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
10259         from fvwm to constrain a size to the geometry hints.
10260
10261         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
10262         to compare two sets of geometry hints.
10263
10264         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
10265         from gtk_window_set_hints(), just compute the hints,
10266         don't set them.
10267
10268         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
10269         code from gtk_window_move_resize() to separate function,
10270         rationalize a bit.
10271
10272 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
10273
10274         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
10275         structure into a new private structure.
10276
10277         * gtkrc.c: Split GtkRcStyle into public/private.
10278         In the private part, add a list of pointers to the
10279         RcStyle lists this RcStyle participates in.
10280
10281         * gtkrc.c: When a RcStyle is free, remove all
10282         lists referencing it from the 
10283         realized_style_ht hash, and free those lists.
10284         
10285         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
10286         gtk_rc_init(), since that adds the default styles
10287         to the list of parsed RC files again.
10288
10289         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
10290         
10291 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
10292
10293         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
10294         checks that ensure that a widget's allocation is at least 1 in width
10295         and height. (GNOME note: this doesn't affect old panel code anymore,
10296         because GtkSocket will request width and height of at least 1 since
10297         Fri Jul 23).
10298
10299         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
10300         allocated yet (happens if the user realizes the window prematurely),
10301         size request and allocate it.
10302         (gtk_window_size_allocate): guard against guint underflows.
10303
10304 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
10305
10306         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
10307         in gtk_built_sources, so gtk.defs gets built prior to all other
10308         sources.
10309
10310 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
10311
10312         * gtk/Makefile.am:
10313         invoke indent on gtkmarshal.*. 
10314         rewrote source generation rules, use COPYING as oldest source tag for
10315         a piggyback rule to generate all sources from (don't touch it ;).
10316         major cleanups, strip spaces on build rules for GNU Make.
10317
10318         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
10319         source and target files from commandline arguments. don't invoke indent.
10320
10321 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
10322
10323         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
10324         notebook after switch to avoid drawing problems.
10325         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
10326         
10327         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
10328         show them instead. 
10329         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
10330
10331 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
10332
10333         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
10334         notebook after switch to avoid drawing problems.
10335         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
10336         
10337         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
10338         show them instead. 
10339         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
10340
10341 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
10342
10343         * gtk/gtkwindow.c:
10344         we use window->need_resize from configure_event now, to indicate that
10345         the gtkwindow should keep its allocation (e.g. because the user resized
10346         the window through window manager handles). resize_count is now reliably
10347         used to figure whether we got the allocation we requested from the
10348         window manager.
10349         configure events get queued as resizes now, the real stuff (size
10350         computation and allocation) now only goes on in gtk_window_move_resize().
10351         GtkWindow's requisition now contains its *real* requisition (like all
10352         other widgets), *not* taking usize into account.
10353         geometry_info->last_{width|height} is now updated from set_hints() only
10354         so it always contains the last hints we set for the window manager.
10355         made some event handlers return TRUE instead of FALSE.
10356         the overall code should be much more straight forward now, and the
10357         significant code portions are accompanied by comments now.
10358         (gtk_window_set_hints):
10359         removed requisition argument and made it
10360         fetch the requisition through gtk_widget_get_child_requisition.
10361         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
10362         does that now.
10363         (gtk_window_show):
10364         ensure that the widget is realized before calling 
10365         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
10366         ensure that we got properly size requested and allocated before
10367         realization.
10368         (gtk_window_configure_event):
10369         ignore plain window moves, or reallocate the widget tree through the
10370         resize queue otherwise.
10371         (gtk_window_move_resize):
10372         mostly rewrote this function to figure window manager hints more
10373         reliably, coalesce window moves and resizes to reduce configure events
10374         and do actuall size allocations.
10375
10376 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
10377
10378         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
10379         that have a resize pending, because a redraw is already queued for them.
10380
10381         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
10382         hack to clear resize_widgets.
10383
10384         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
10385         for resize containers prior to size allocation. (this is also a bit
10386         ugly, but avoids side effects for stopped emissions and is thus more
10387         reliable).
10388         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
10389
10390         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
10391         function from gtk_tooltips_expose, as we connect to ::expose_event
10392         *and* ::draw now.
10393
10394 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
10395
10396         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
10397         checks.
10398         (gtk_target_list_unref): Likewise.
10399
10400         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
10401
10402 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
10403
10404         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
10405         guard against division by zero. (Fixes bug #1339)
10406
10407 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
10408
10409         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
10410         Prevent the trivial leak of information of allowing
10411         word motion when the entry is not visible.
10412
10413 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
10414
10415         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
10416         modality to error dialog as well as confirmation dialogs.
10417         (Bug #1803, reported by Rosanna Wing Sze Yuen)
10418
10419 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
10420
10421         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
10422         tree->view_lines.
10423         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
10424
10425         * gtk/Makefile.am (install-data-local): Solaris apparently
10426         has various troubles with ln -f; use rm first instead.
10427         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
10428
10429 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
10430
10431         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
10432         use `cp' followed by `rm' (the `rm' was already there).
10433
10434 July 30, 1999 Elliot Lee <sopwith@redhat.com>
10435         
10436         * configure.in: Fix autoconf warnings about cross compilation by
10437         trying to provide sane defaults for AC_TRY_RUN.
10438         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
10439         put them into $(srcdir) when generated. Also add a dependency of
10440         gtksignal.h on gtkmarshal.h for -j builds. 
10441         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
10442
10443 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
10444
10445         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
10446         GDK_THREADS_{LEAVE,ENTER} pair.
10447         (From Paul Fisher <pnfisher@redhat.com>)
10448
10449 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
10450
10451         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
10452         width and height are always >0 (owen).
10453
10454 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
10455
10456         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
10457         change that assured that a widget's allocated with and height are
10458         always >1, since this breaks *buggy* panel code. unfortunately this
10459         back-breaks the gimp's color selector.
10460
10461         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
10462         allocation is always >0 in width and height, before sending the
10463         configure event; this is a *gross* hack to get the gimp back to work.
10464         
10465         * marked both cases with TODO-1.3
10466
10467 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
10468
10469         * gtk/gtktext.c: Don't display wrap indicators when
10470         text is not editable and word wrap is on.
10471
10472 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
10473
10474         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
10475         option menus here as they are not derived from menu shell, assure that
10476         the option menu has a menu we can add items to.
10477
10478 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
10479
10480         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
10481         width/height to (gint) before calculations and check against < 0 to
10482         avoid guint wraparounds.
10483
10484 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
10485
10486         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
10487         width and height is never zero. sanity check both dimensions against
10488         32767 and issue a warning if the allocation is greater than that.
10489
10490 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
10491
10492         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
10493         to g_main_pending() as well.
10494
10495 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
10496
10497         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
10498         call to g_main_iteration() - since that will regrab
10499         GTK+ lock to process events.
10500
10501 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
10502
10503         * gtk/gtkwindow.c
10504         - Regularize with the rest of GTK+ by making widget->requisition
10505           not reflect the set_usize()
10506         - Always recompute geometry hints, then check if they
10507           changed before sending them to the X server. The
10508           previous checks for changes would fail in a number
10509           of circumstances. 
10510
10511 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
10512
10513         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
10514
10515 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
10516
10517         * gtk/gtkdnd.c:
10518         - Code cleanups
10519         - Instantaneously update on modifier key presses
10520         - Allow cancellation of the drag with Escape.
10521
10522 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
10523
10524         * gtk/testgtk.c (create_handle_box): Set the policy
10525         to auto_shrink - otherwise the appearance is rather
10526         strange when flipping between horizontal and vertical.
10527
10528 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
10529
10530         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
10531         (gtk_window_set_default_size): don't change a value if it's < 0.
10532         queue a resize.
10533
10534 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
10535
10536         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
10537
10538 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
10539
10540         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
10541         add an extra "/" when concating "/" + filename.
10542         (From Matt Grossman <mattg@oz.net>)
10543
10544 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
10545
10546         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
10547         for fg_gc if we set it for drawing pixmap.
10548
10549 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
10550
10551         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
10552         
10553         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
10554         already set, call old engine's destroy function and
10555         unref the old engine.
10556
10557 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
10558
10559         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
10560
10561 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
10562
10563         * gtk/gtkaccelgroup.h: mark certain functions as internal.
10564
10565 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
10566
10567         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
10568         expand behaviour changed.
10569
10570         * gtk/gtklabel.c (gtk_label_set_pattern):
10571         (gtk_label_set_justify):
10572         (gtk_label_set_line_wrap):
10573         don't bother invoking queue_clear, the reallocation does
10574         that for us, always free_words so the upcoming resize will
10575         relayout the label's contents.
10576
10577 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
10578
10579         * applied argument implementation patches from Elena Devdariani
10580         <elena@cogent.ca>.
10581
10582         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
10583         ::space_style, ::relief
10584         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
10585         * gtk/gtkpreview.c: ::expand
10586         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
10587         * gtk/gtknotebook.c: ::homogeneous
10588         * gtk/gtklabel.c: ::wrap
10589         * gtk/gtklist.c: ::selection_mode
10590         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
10591         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
10592         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
10593         * gtk/gtkclist.c: ::sort_type
10594         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
10595         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
10596
10597 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
10598
10599         * gtk/gtkstyle.c: Removed ill-thought-out part of last
10600         comment.
10601
10602 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
10603
10604         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
10605         counting right when we have to attach a new style
10606         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
10607
10608         * gtk/gtkstyle.c: Documented the refcounting
10609         peculularities of gtk_style_attach.
10610
10611 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
10612
10613         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
10614         window types.
10615
10616         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
10617         of GTK_TOPLEVEL for creating the window.
10618
10619 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
10620
10621         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
10622         the last argument (reported by Per Winkvist).
10623         
10624 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
10625
10626         Fixes for invisible XOR lines (Frank Loemker
10627         <floemker@TechFak.Uni-Bielefeld.DE>)
10628         
10629         * gtk/gtkclist.c (gtk_clist_realize): Always use
10630         a non-zero pixel for GDK_XOR.
10631
10632         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
10633         Use GDK_INVERT instead of GDK_XOR.
10634
10635 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
10636
10637         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
10638         signals if h/voffsets differ from adjustment values.
10639         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
10640
10641 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
10642
10643         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
10644         ::selection-done emissions up to the topmost menu shell.
10645
10646 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
10647
10648         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
10649         the user data on the window before destroying it.
10650
10651         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
10652         unrealize handler to take care of destroying 
10653         notebook->panel properly. 
10654         (Bug #1198 - Morten Welinder <terra@diku.dk>)
10655
10656         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
10657         of g_new and g_realloc to stop memory leak. (Actually,
10658         we could just use g_realloc(), but I'm not 100% sure
10659         that is portable).
10660         (Bug #1196 - Morten Welinder <terra@diku.dk>)
10661
10662 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
10663
10664         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
10665
10666         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
10667         for fontsets.
10668
10669         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
10670         with bin/button confusion.
10671
10672 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
10673
10674         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
10675         and show how preselection of radio items is done.
10676
10677 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
10678
10679         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
10680         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
10681         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
10682         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
10683         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
10684         * gtk/gtktable.c (gtk_table_attach): 
10685         * gtk/gtklist.c (gtk_list_insert_items): 
10686         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
10687         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
10688         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
10689         * gtk/gtkbin.c (gtk_bin_add): 
10690         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
10691         * gtk/gtkfixed.c (gtk_fixed_put): 
10692         * gtk/gtklayout.c (gtk_layout_put):
10693         general fixups to container_add logic. always realize child if
10694         child->parent is realized, only map the child and queue a resize
10695         if child and child->parent are both visible.
10696
10697 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
10698
10699         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
10700         instead of gtk_container_foreach to walk and unrealize children, so
10701         composite children get also unrealized.
10702         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
10703         (gtk_widget_map): assert that the widget is visible (basic constrain).
10704         (gtk_widget_real_map): assert that the widget is realized (basic
10705         constrain).
10706
10707 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
10708
10709         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
10710
10711 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
10712
10713         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
10714         file for iso-8859-2 locales.
10715
10716         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
10717
10718 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
10719
10720         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
10721          (Pointed out by andy@rz.uni-karlsruhe.de and others).
10722          Remove some suspicious and useless lines. 
10723
10724 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
10725
10726         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
10727         width,height = 0, 0 to mean - here to edge of window,
10728         instead of -1, -1, since the former is all we support.
10729
10730 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
10731
10732         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
10733         when removing from quit_functions list.
10734
10735 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
10736
10737         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
10738
10739 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
10740
10741         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
10742          When redrawing characters on non-visible entry, use appropriate
10743          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
10744
10745 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
10746
10747         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
10748         from drag coordinates.
10749         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
10750         use drag_dest_cell.
10751
10752         * gtk/gtktree (drag_dest_cell)
10753         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
10754         (Bug #1129)
10755
10756 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
10757
10758         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
10759         translate_* fields.
10760         (gtk_item_factory_finalize): invoke translate_notify independant from
10761         translate_data.
10762         (gtk_item_factory_set_translate_func): likewise.
10763         (gtk_item_factory_destroy): only remove ifactory pointer from those
10764         widgets that belong to us (stupid me).
10765
10766 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
10767
10768         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
10769         rc_style list when lookup succeeeds.
10770
10771 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
10772
10773         * gtk/gtkctree.c (resync_selection): 
10774         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
10775         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
10776         bug.
10777
10778 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
10779
10780         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
10781         Add some missing GDK_THREADS_ENTER()/LEAVE around
10782         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
10783
10784 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
10785
10786         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
10787         rather than emit_by_name.
10788
10789         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
10790         on the widget across multiple signal emissions.
10791         (gtk_editable_delete_text): same here.
10792         (gtk_editable_class_init): set widget_class->activate_signal after
10793         editable_signals[ACTIVATE] has been created.
10794
10795 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
10796
10797         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
10798         position here prematurely -- we might not have the
10799         right ->min_position and ->max_position yet.
10800
10801 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
10802
10803         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
10804         Add error traps so if the other end of the connection
10805         dies, we survive.
10806
10807         * gtk/gtkselection.c (gtk_selection_notify): Clean
10808         up properly when selection property retrieval fails.
10809         
10810         * gtk/gtkselection.c (gtk_selection_request): Correctly
10811         reject SelectionRequest notifies where the handler
10812         returns no data.
10813
10814 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
10815
10816         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
10817         when we've previously highlighted.
10818
10819         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
10820         emit two "drag_leave" signals for Motif drops.
10821
10822         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
10823         back the correct status messages when dropping from
10824         Motif onto a proxy window that is rejecting the
10825         drop.
10826
10827 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
10828
10829         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
10830         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
10831         to compare two argument values. added gtk_arg_to_valueloc() to set a
10832         variable from an arg through its location (pointer).
10833
10834         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
10835         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
10836         as gfloat*, uchars are collected as guchar*, ints are collected as
10837         gint*, etc...
10838
10839 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
10840
10841         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
10842         Include <string.h> instead of <strings.h>.
10843
10844         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
10845         (actually, a lot more duplicate includes occur if
10846          you trace through the sequence of #include's)
10847         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
10848         
10849 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
10850
10851         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
10852         gtk-a-higuti-990322-[0-3]
10853
10854         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
10855         that was causing -DX_LOCALE not to work.
10856
10857         * gtk/gtkrc.c (gtk_rc_init):
10858         X_LOCALE will never have LC_MESSAGES defined
10859
10860 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
10861
10862         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
10863         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
10864
10865         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
10866         left/right as well (gtk-michael-980726-0.patch.gz).
10867
10868         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
10869         for pointer values, use gchar instead of char. fixed uline allocation
10870         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
10871         chunks instead of G_ALLOC_ONLY.
10872         (gtk_label_size_request): always alter requisition as passed and leave
10873         widget->requisition alone.
10874         (gtk_label_set_text): allow NULL strings.
10875         (gtk_label_new): likewise.
10876
10877 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
10878
10879         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
10880
10881 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
10882
10883         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
10884         *and* mapped (i.e. drawable).
10885         (gtk_bin_expose): only send exposes to drawable children.
10886
10887         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
10888         (gtk_box_expose): only send exposes to drawable children.
10889
10890         * gtk/gtkhscale.c (gtk_hscale_draw): 
10891         * gtk/gtkvscale.c (gtk_vscale_draw):
10892         hm, this is an ugly one. we first compute the size of our trough area
10893         here (window relative) and then check intersection with the draw_area
10894         which is parent relative because we're a NO_WINDOW widget, so we need
10895         to offset the trough area by allocation.x and allocation.y before the
10896         check. (this must not be done for the background area though, since
10897         that's already computed parent relative).
10898
10899 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
10900
10901         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
10902         unrealize title buttons.
10903
10904 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
10905
10906         * gtk/gtkclist.c (gtk_clist_column_title_passive)
10907         (gtk_clist_column_title_active): 
10908         only connect/disconnect to GtkWidgetClass::event to block mouse events.
10909
10910         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
10911         zero initialize event, removed superfluous gdk_window_get_pointer call
10912
10913         * gtk/gtklist.c (gtk_list_vertical_timeout)
10914         (gtk_list_horizontal_timeout): removed superfluous
10915         gdk_window_get_pointer call
10916
10917 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
10918
10919         * plugging problems reported by "Bruce Mitchener, Jr."
10920         <bruce@puremagic.com> due to a purify session.
10921
10922         * gtk/gtkstyle.c:
10923         (gtk_style_ref): 
10924         (gtk_style_unref): assert ref_count to be > 0.
10925
10926         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
10927         the requisition.
10928         (gtk_clist_set_shift): likewise.
10929
10930         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
10931         adjustments.
10932
10933         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
10934         event before sending it and set send_event to TRUE (which needs to
10935         be done for *all* synthesized events).
10936         (gtk_list_vertical_timeout): likewise.
10937
10938         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
10939         leaks.
10940
10941         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
10942         to TRUE when synthesizing events.
10943
10944 [ *** end of merges from 1.2 *** ]      
10945         
10946 1999-11-21  Tor Lillqvist  <tml@iki.fi>
10947
10948         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
10949         (or copied from gdkconfig.h.win32 on Win32, sigh).
10950
10951         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
10952
10953         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
10954
10955         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
10956
10957         * gdk/gdkconfig.h.win32: New file.
10958
10959         * gdk/win32/makefile.cygwin: Build just a static archive here.
10960
10961         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
10962         for the DLL from the static archive built above.
10963
10964         * gdk/gdk.def: Moved here from the win32 subdirectory.
10965
10966         * gdk/win32/*: Adapt for the changed private struct organisation.
10967
10968         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
10969
10970 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
10971
10972         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
10973         for wheel mice (buttons 4 and 5).
10974
10975 1999-11-18  Tor Lillqvist  <tml@iki.fi>
10976
10977         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
10978         drawables use just the pixel field in the foreground and
10979         background GdkColor of the GdkGC.
10980
10981         gdk_gc_set_{fore,back}ground() are called in the GIMP with
10982         GdkColors containing uninitialized (red,green,blue) fields, and
10983         just the pixel field filled in, and furthermore in the
10984         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
10985         It thus turns out that we really don't need to have the full
10986         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
10987         it later to have just the pixel values.
10988
10989 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
10990
10991         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
10992
10993 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
10994
10995         * docs/gtkfaq.sgml: threads example from Erik Mouw.
10996         New question on GtkLabel background colors.
10997
10998         * docs/gtk_tut.sgml:
10999           - Correct the example code callback
11000             function definitions.
11001           - Update the gtkdial example code, from Frans van Schaik.
11002           - Update setselection.c to current API.
11003
11004         * examples/Makefile examples/*/*.c: Update to code
11005         listed in tutorial.
11006
11007 1999-11-10  Tor Lillqvist  <tml@iki.fi>
11008
11009         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
11010         subrange table (from the "Developing International Software for
11011         WIndows 95 and Windows NT" book) was missing the Hangul syllable
11012         block... Get the loaded font's charset correctly.
11013
11014         (Note that this, and the other *-win32.c files, still really are
11015         the old ones, the win32 subdirectory is not ready for compilation
11016         yet after the reorg.)
11017
11018 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
11019
11020         * gtk/gtkclist.c: Fix off-by-one bug in parameter
11021         check.
11022
11023 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
11024
11025         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
11026         on results of XQueryDeviceState().
11027
11028 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
11029
11030         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
11031         we need to accesss only ->children. We need an accessor
11032         for the children.
11033
11034         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
11035         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
11036         to get rid of gdkx.h include.
11037         
11038         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
11039         and random references to 'None'.
11040
11041         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
11042         Get rid of unused #include <gdk/gdkx.h>
11043
11044         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
11045         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
11046         gdkconfig.h.
11047
11048 1999-11-08  Tor Lillqvist  <tml@iki.fi>
11049
11050         * gdk/win32/gdkdraw.c
11051         * gdk/win32/gdkfont.c
11052         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
11053         following yesterday's changes. (Unrelated to Owen's reorg.)
11054
11055 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
11056
11057         * gdk/x11/gdkinput-gxi.c: Add missing include,
11058           fix GdkWindowPrivate => GdkDrawablePrivate.
11059
11060         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
11061
11062         * gdk/x11/Makefile.am (xinput_sources): Add missing
11063         backslash to fix building with --with-xinput=none
11064
11065 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
11066
11067         Move all X specific code into the x11/ directory.
11068         Aside from shuffling things around, did the following:
11069
11070        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
11071          gdk_arg_context_* - a simple argument parsing system
11072          in the style of popt.
11073
11074        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
11075          gdk/x11/gdkprivate-x11.h:
11076          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
11077          add ->klass and ->klass_data fields. The klass_data
11078          field points to an auxilliary structure that is
11079          windowing system dependent.
11080
11081        * gdk/gdkfont.c: Make most of the measurement functions
11082          simply wrappers around gdk_text_extents().
11083
11084        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
11085          _gdk_font_strlen() function that hides the weird
11086          behavior in gtk+-1.[02] where a string is interpreted
11087          differently for 8-bit and 16-bit fonts.
11088
11089        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
11090          to store common code for synthesizing double/triple
11091          press events.
11092         
11093        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
11094          Make all the function that modify an existing GC
11095          simply wrappers around gdk_gc_set_values().
11096          
11097        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
11098          for throwing out later.
11099
11100        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
11101          GdkImagePrivate and GdkColormapPrivate to have a
11102          windowing system dependent part (GdkFontPrivateX etc.)
11103          that "derives" from the system-independent part.
11104
11105        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
11106          Got rid of the included-source-files for XInput in
11107          favor of automake conditionals. (Which didn't exist
11108          when XInput support was originally added.)
11109
11110        * gdk/gdkrgb.c: Remove the visual id from the debugging
11111          statements since that is X11 specific; print out
11112          type/depth info instead.
11113          
11114
11115 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
11116
11117         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
11118         loading duplicates of hashed fonts.
11119
11120         * gdk/gdk.c (gdk_keysym_convert_case): rename
11121         gdk_XConvertCase to gdk_keysym_convert_case, allow
11122         results to be NULL in the GTK+ style.
11123
11124         * gdk/gdkcompat.h: Started compatibility header
11125         for renames.
11126
11127 1999-11-07  Tor Lillqvist  <tml@iki.fi>
11128
11129         * gdk/win32/gdkprivate.h: New font private structures, related to
11130         fontsets.
11131
11132         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
11133         gdk_font_list_free(). On X11, will just be wrappers to
11134         XListFonts() and XFreeFontNames(). On Win32, the code previously
11135         in gtkfontsel.c is now here.
11136
11137         New function gdk_font_xlfd_create(). On X11 will get the FONT
11138         property of the font (for GDK_FONT_FONTs), or call
11139         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
11140         builds a XLFD style name from the font information in the LOGFONT
11141         struct(s).
11142
11143         New function gdk_font_xlfd_free(), which correspondingly frees the
11144         string returned by gdk_font_xlfd_create().
11145
11146         Implement fontsets on Win32. Add a function that iterates over a
11147         wide char string and calls a callback function for each substring
11148         of wide chars from the same Unicode subrange (and thus probably
11149         available in the same real font).
11150
11151         Improve the XLFD emulation a bit.
11152
11153         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
11154
11155         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
11156         Beta3, WM_IME_CHAR messages don't seem to contain the composed
11157         multi-byte char as with the Active IMM on Win9x. Oh well, handle
11158         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
11159         ImmGetCompositionStringW() to get the composed Unicode chars.
11160
11161         * gdk/win32/gdkgc.c
11162         * gdk/win32/gdkdraw.c: Changes needed because of the font private
11163         struct changes.
11164
11165         * gdk/win32/gdk.def: Add the new functions.
11166
11167 1999-11-04  Tor Lillqvist  <tml@iki.fi>
11168
11169         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
11170         get the Platform SDK to get <dimm.h>.
11171
11172         * gdk/win32/gdkevents.c: More event handling fixes and
11173         simplification. Never generate motion events with is_hint true. We
11174         used to do that on bogus grounds earlier. Windows sends
11175         WM_MOUSEMOVE messages on button events even if the mouse hasn't
11176         moved, ignore these.
11177
11178         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
11179
11180         * gdk/win32/gdkglobals.c
11181         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
11182         the TrackMouseEvent function, and use it.
11183
11184         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
11185         char before calling WideCharToMultiByte in order to get a string
11186         for the window title.
11187
11188         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
11189
11190         * gdk/win32/gdk.def: Remove obsolete functions.
11191
11192         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
11193         /nodefaultlib and /defaultlib switches.
11194
11195         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
11196
11197 1999-10-31  Tor Lillqvist  <tml@iki.fi>
11198
11199         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
11200         EuroSign).
11201
11202         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
11203         same type as GdkWChar, especially on Win32.
11204
11205         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
11206
11207         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
11208         before passing to Windows GDI for drawing etc. Convert to the
11209         system default codepage before passing to Windows as window
11210         titles.
11211
11212         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
11213         support changing input locale on the fly.
11214
11215         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
11216         on-the-fly changes. Convert incoming characters from the current
11217         codepage to Unicode (and then to a UTF-8 multi-byte string) based
11218         on the current input language. Use keysym<->Unicode mapping tables
11219         and functions borrowed from xterm sources.
11220
11221         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
11222         editions of Win9x, use the ActiveX-based Active IMM (Input Method
11223         Manager) if available. IMEs and the Active IMM are available under
11224         the disguise of Chinese, Korean and Japanese support for IE and
11225         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
11226         support is present in all editions (as long as you install it).
11227
11228         Call DispatchMessage from gdk_events_queue() (and thus
11229         gdk_WindowProc()), instead of duplicating the code in
11230         gdk_WindowProc().
11231
11232         Reworked the grab handling and propagation code, factored out
11233         duplicated code snippets into separate functions. Other cleanups,
11234         too.
11235
11236         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
11237         the <dimm.h> header describing the Active IMM.
11238
11239         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
11240         just do the same as for "single" fonts.
11241
11242         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
11243         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
11244         the new keysyms from gdkkeysyms.h.
11245
11246         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
11247         fontset, so that gtkentry uses wide characters.
11248
11249         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
11250         GTk+'s system directory "gtk+", not "gtk".
11251
11252 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
11253
11254         * docs/gtkfaq.sgml: FAQ update
11255
11256 1999-10-21  Tor Lillqvist  <tml@iki.fi>
11257
11258         * gdk/win32/gdkprivate.h: Add more font private data.
11259
11260         * gdk/win32/gdkfont.c
11261         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
11262         fonts and strings. Now works much better. You still have to
11263         have a correct font selected, though. No fontset emulation yet.
11264
11265 1999-10-19  Tor Lillqvist  <tml@iki.fi>
11266
11267         * gtk/maketypes.awk: Use G_OS_WIN32.
11268
11269         * gtk/gtk.def: Add some missing entry points. Also some non-public
11270         ones, but PyGTK porter claims to need them.
11271
11272         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
11273         built-in type generation.
11274
11275 1999-10-14  Tor Lillqvist  <tml@iki.fi>
11276
11277         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
11278         GDK_FONT_FONT fonts (which is all we have for now, we don't
11279         emulate fontsets). The X11 version uses plain XDrawString in that
11280         case, too. The string passed to gdk_draw_text_wc seems to be in
11281         fact (at least, when used by gtkentry and gtktext) either in a
11282         single-byte charset, or a DBCS. Not Unicode.
11283
11284         This fixes the problem in gtkfontsel, where even if you had
11285         selected a font with a non-Latin1 charset (windows-greek, for
11286         instance), the preview still used Latin-1 glyphs.
11287
11288         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
11289         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
11290         (gdk_font_load): Recognize the demibold etc weights, even if we
11291         don't have the corresponding constants in the headers.
11292         (gdk_font_hash_insert): Use same hash mechanism as in the X11
11293         version. Should save font resources a bit, when we don't have
11294         multiple HFONTs for the same font.
11295
11296         * gdk/win32/gdkprivate.h: Add the names field as in the X11
11297         version.
11298
11299 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
11300
11301         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
11302         X values
11303
11304 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
11305
11306         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
11307         layout support (as mentioned on
11308         http://www.jcinteractive.com/gnome-ui/software/widgets/)
11309
11310 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
11311
11312         * gtk/fnmatch.c
11313         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
11314
11315 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
11316
11317         * configure.in (ALL_LINGUAS): Added Galician (gl)
11318
11319 1999-10-05  Tor Lillqvist  <tml@iki.fi>
11320
11321         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
11322
11323         * gdk/win32/gdkcompat.c: New file, actually provide an
11324         implementation for the deprecated functions. (Just temporarily.)
11325
11326         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
11327
11328         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
11329
11330         * gdk/win32/gdk.def gtk/gtk.def: Updates.
11331
11332 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
11333
11334         * configure.in: Added "uk" to ALL_LINGUAS.
11335         
11336 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
11337
11338         * configure.in: correct checking for BeOS check
11339
11340         * gdk/gdktypes.h
11341         * gtk/fnmatch.c
11342         * gtk/gtkfilesel.c
11343         * gtk/gtkitemfactory.c
11344         * gtk/gtkmain.[ch]
11345         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
11346
11347 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
11348
11349         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
11350         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
11351         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
11352         by Bulgarian). 
11353
11354 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
11355
11356         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
11357         Fix a reference to window_private->destroyed.   
11358
11359         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
11360         (ugly) setting of an internal GdkWindow member to use
11361         a _slightly_ cleaner macro.
11362
11363         * gdk/gdkprivate.h: Split GdkWindowPrivate into
11364         GdkDrawablePrivate and GdkWindowPrivate.
11365         Add extra macros for accessing GDK_DRAWABLE_ components.
11366
11367         * *.[ch]: Massive adjustments for the above, use the
11368         new macros in a lot of places.
11369
11370 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
11371
11372         * gdk/gdktypes.h: Make GdkDrawable the base type,
11373         not GdkWindow.
11374
11375 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
11376
11377         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
11378
11379 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
11380
11381         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
11382
11383 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
11384
11385         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
11386         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
11387
11388         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
11389
11390         * docs/gtk-config.1: Now autogenerated.
11391         * docs/Changes-1.4.txt: started
11392         
11393 1999-10-03  Tor Lillqvist  <tml@iki.fi>
11394
11395         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
11396         to #ifdef also here.
11397
11398         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
11399         Owen did to the X11 backend.
11400
11401         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
11402         ScrollWindowEx when blitting inside a window, it can't be correct
11403         in the general case.
11404
11405         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
11406         WM_GETMINMAXINFO is easier.
11407
11408         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
11409         depth equal to the bitspixel value, not the visual's depth.
11410
11411         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
11412         to 24 even if the bitspixel value is 32.
11413
11414         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
11415         need to check for depth==32 when bpp==32, depth will always be 24.
11416
11417 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
11418
11419         * docs/Changes-1.4.txt: Started
11420         
11421         * gtk/Makefile.am (gdk_headers): Include all the new headers.
11422
11423         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
11424         
11425         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
11426         into C file.
11427         
11428         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
11429         header to gdkinputprivate.h.
11430
11431         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
11432         unused since before 1.2.
11433
11434 1999-09-30  Tor Lillqvist  <tml@iki.fi>
11435
11436         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
11437         expand possible hex escapes in the font family (put there by
11438         logfont_to_xlfd if the font name isn't a legal XLFD font family,
11439         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
11440         On Win32, add hex escapes here, too.
11441
11442 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
11443
11444         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
11445         to #ifdef GDK_WINDOWING_X11.
11446
11447 [ Merges from gtk-1-2 ]
11448
11449 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
11450
11451         * configure.in: fixed "GNU Make" check to pass with new make version
11452         3.77.95.
11453
11454 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
11455
11456         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
11457         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
11458         AM_PATH_GTK() macros don't get confused by the -pre1.
11459
11460 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
11461
11462         * configure.in (REBUILD): Change check for perl5
11463           to check explicitely for v >= 5.002. (5.001
11464           does not work with our scripts.)
11465
11466 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
11467
11468         * configure.in: evaluate $PERL for the perl version check. added
11469         --disable-rebuilds to give the user an option to completely disable
11470         any source autogeneration rules.
11471
11472 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
11473
11474         * configure.in: evaluate $ac_make when checking for GNU Make.
11475
11476 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
11477
11478         * docs/Makefile.am: added generation.txt.
11479
11480         * Makefile.am: require automake 1.4, build README from README.in and
11481         INSTALL from INSTALL.in in dist-hook.
11482         
11483         * README.in:
11484         * INSTALL.in: new files to autogenerate README and INSTALL from.
11485
11486         * configure.in: figure whether we have GNU Make
11487
11488         * docs/generation.txt: minor additions/corrections.
11489
11490 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
11491
11492         * docs/gtkfaq.sgml: FAQ Update
11493
11494 July 30, 1999 Elliot Lee <sopwith@redhat.com>
11495         
11496         * configure.in: Fix autoconf warnings about cross compilation by
11497         trying to provide sane defaults for AC_TRY_RUN.
11498
11499 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
11500
11501         * ltconfig
11502         * ltmain.sh: upgrade to libtool 1.3.3
11503
11504 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
11505
11506         * INSTALL: Indicate that the --with-glib= configure
11507         time flag is unsupported.
11508
11509 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
11510
11511         * docs/generation.txt: Added a file that gives
11512         documenation about the autogeneration process for
11513         various autogenerated files.
11514         
11515 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
11516
11517         * configure.in (LIBS): Look for libgmodule in the
11518         right location.
11519
11520 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
11521
11522         * docs/gtk_tut.sgml: Removed references to
11523         code examples in my directory on gtk.org as
11524         they should all be in the tutorial now.
11525
11526         * docs/gtk_tut.sgml: Added sources for dial-test
11527         and scribble-xinput programs that were previously
11528         missing.
11529
11530 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
11531
11532         * TODO: Added entry about menu keyboard navigation, removed
11533         some finished items.
11534
11535 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
11536
11537         * acinclude.m4: Standardize on func_dgettext
11538         not func_gettext, so that the checks for dgettext
11539         actually are paid attention to.
11540
11541 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
11542
11543         * configure.in (LIBS): Add $INTLLIBS into $LIBS
11544         directly, rather than repeating the checks for
11545         gettext.
11546
11547         * INSTALL: Added information about gettext and
11548         NLS support.
11549
11550         * acinclude.m4 (LIBM): Check for dgettext, not
11551         just gettext. This should hopefully fix things wrt
11552         systems with old versions of GNU gettext installed.
11553
11554 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
11555
11556         * configure.in (LIBS): Look for libgmodule in the
11557         right location.
11558
11559 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
11560
11561         * autogen.sh: add --enable-maintainer-mode
11562
11563         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
11564
11565 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
11566
11567         * docs/gtk-config.1.in:
11568           docs/Makefile.am:
11569           configure.in: gtk-config is now generated.
11570
11571         * docs/gtk-config.1: Removed, now generated.
11572
11573 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
11574
11575         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
11576         handle CreateNotify itself, still put out a debuging message for
11577         --gdk-debug=events. made the ReparentNotify debugging message more
11578         verbose.
11579         wrap xcoords translation for ConfigureEvents into an error trap,
11580         a destroy event may already be pending, and in that case, the
11581         actuall coordinate values are not at all critical.
11582
11583 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
11584
11585         * gdk/gdkcc.c: Stop leaking the color_hash all over
11586         the place. Simplify and improve the logic.
11587
11588 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
11589
11590         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
11591         for prototypes and function implementations consistent (reported
11592         by Tomas Ogren).
11593
11594 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
11595
11596         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
11597         send_event set in debugging output.
11598         (gdk_compress_exposures): default initialize the event so we don't
11599         operate on bogus values (namely send_event).
11600
11601 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
11602
11603         * gdk/gdkwindow.c: When we receive an unexpected
11604         destroy notify on one of our windows, don't just
11605         warn about it, also mark our windows as destroyed.
11606
11607 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
11608
11609         * gdk/gdkfont.c (gdk_font_hash_insert): Add
11610           name => font and name => fontset hashes. The 
11611           name => fontset hash is a _big_ win since we
11612           weren't previously caching fontsets at all and loading
11613           fontsets is expensive. The name => font hash
11614           is less of a win, but it does save us from doing
11615           repeated XQueryFont calls on the same font.
11616
11617         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
11618           list so we can remove font/fontset from hash.
11619
11620 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
11621
11622         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
11623           and slightly confusing test. [ XInternAtom (,,TRUE)
11624           will never return None ].
11625
11626 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
11627
11628         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
11629           gdk/gdkwindow.c (gdk_window_set_hints):
11630
11631         Don't omit setting the properties if flags == 0 -
11632         there may be an existing set of properties there
11633         already. (Very old bug. Would it be better to
11634         delete the property instead?)
11635
11636         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
11637           spelling error in comment.
11638
11639 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
11640
11641         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
11642           to avoid stomping over gdk_error_warnings.
11643
11644         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
11645           as (bits_per_pixel + 7) / 8. This gives the same
11646           result as before for multiples of 8, but actually
11647           a "reasonable" value for 1bit or 4bit displays.
11648
11649 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
11650
11651         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
11652         GNU Make.
11653
11654 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
11655
11656         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
11657         discarding configure events.
11658
11659 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
11660
11661         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
11662         refcount is greater than zero.
11663
11664         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
11665
11666         * gdk/gdkfont.c (gdk_font_unref): Likewise.
11667
11668         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
11669
11670         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
11671
11672 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
11673
11674         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
11675         that format 32 => sizeof(item) == 4. It really is
11676         sizeof(long).
11677
11678 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
11679
11680         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
11681         core dump at all on X IO errors, only core dump
11682         if --enable-debug for X errors.
11683
11684 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
11685
11686         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
11687         unknown window:" message. disabled ConfigureNotify discarding code,
11688         because it led to events being processed out of order.
11689
11690 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
11691
11692         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
11693
11694         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
11695         we export this function, supress error warnings and don't reset the
11696         error code in the first half of this function.
11697
11698         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
11699         code (instead of just -1) so gdk_error_trap_pop() reveals something
11700         actually informative about the error that happened.
11701
11702         * gdk/*.c:
11703         don't rely on gdk_error_code being -1 if an error occoured, but just
11704         gdk_error_code != 0.
11705
11706 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
11707
11708         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
11709         pointer *before* invoking the filter function, so we at least don't
11710         crash if a filter is removed that is currently executed. window filters
11711         *really* need to be made truely reentrant at some point.
11712
11713 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
11714
11715         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
11716         PropertyNotify debug messages.
11717
11718 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
11719         
11720         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
11721         
11722         * gdk/gdkim.c: Fix cut-and-paste errors for 
11723         x/y and PreeditAttributes/StatusAttributes.
11724
11725 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
11726
11727         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
11728         G_MAXINT to 2^16 to alleviate overflow problems in
11729         various window managers.
11730
11731 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
11732
11733         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
11734         for fontsets.
11735
11736 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
11737
11738         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
11739         Initialize size_hints.x and size_hints.y because kwm
11740         brokenly pays attention to them.
11741         (Bug #1181 -  Lars Heete <hel@admin.de>)
11742
11743 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
11744
11745         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
11746         return value of gdk_list_visuals(). 
11747         (Bug #1193 - Morten Welinder <terra@diku.dk>)
11748
11749 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
11750
11751         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
11752         XSetIMValues to (void *) when comparing to NULL, to workaround
11753         the problem of some compilers barfing since older X headers don't
11754         have the prototype for it.
11755
11756 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
11757
11758         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
11759         for pseudocolor where colormap->colors was double
11760         allocated.
11761
11762         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
11763         color value in the hash table with the pixel filled
11764         in so when we do later hash table lookups, the color
11765         value is correct.
11766         
11767 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
11768
11769         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
11770         making the call
11771
11772 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
11773
11774         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
11775         pointed out by Morten Welinder <terra@diku.dk>.
11776
11777 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
11778
11779         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
11780           default filter from the list
11781
11782 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
11783
11784         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
11785           default filter from the list
11786
11787 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
11788
11789         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
11790
11791         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
11792         g_strdup_printf instead of calcing the length separately
11793
11794 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
11795
11796         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
11797         that we don't do in many other places. (Fixing duplicate 
11798         #include of config.h)
11799
11800         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
11801         Otherwise, #ifndef XINPUT_NONE check in the latter
11802         doesn't work. (Bug #546)
11803
11804 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
11805
11806         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
11807         "None" case insensitive.
11808
11809 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
11810
11811         * gdk/gdkselection.c: 
11812         Add error traps so if the other end of the connection
11813         dies, we survive.
11814
11815 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
11816
11817         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
11818         dest_xid field into two fields - one for the window
11819         to send in messages, one to indicate the last looked
11820         up window for caching purposes. This is needed, so
11821         that Leave messages get the correct window.
11822
11823 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
11824
11825         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
11826         Fix warning created by people mucking around
11827         with the gsource API.
11828
11829         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
11830         Change mapping between GIOCondition and GdkInputCondition
11831         to match the way the Linux kernel does it. This should
11832         fix problems where closed pipes were no longer signalling
11833         GDK_INPUT_READ on systems with a native poll().
11834
11835 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
11836
11837         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
11838         explicitly for the string "None" - it is in the XPM
11839         spec and some servers treat unknown colors in odd ways
11840         (like asking the user!)
11841
11842 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
11843
11844         * gdk/gdkevents.c: made "->" into a "." of previous change so
11845         it compiles
11846
11847 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
11848
11849         * gdk/gdkevents.c (gdk_compress_exposures): Set the
11850         window field of the event structure before calling
11851         user filters.
11852
11853 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
11854
11855         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
11856         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
11857
11858 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
11859
11860         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
11861         intermediate text property - prevents major memory
11862         leak when gdk_use_mb.
11863         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
11864
11865 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
11866
11867         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
11868         gtk-a-higuti-990322-[0-3]
11869
11870         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
11871         sizeof(wchar_t) != sizeof (GdkWChar)
11872
11873         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
11874         that was causing -DX_LOCALE not to work.
11875
11876         * gtk/gtkrc.c (gtk_rc_init):
11877         X_LOCALE will never have LC_MESSAGES defined
11878
11879         * gdk/gdk.c (gdk_init_check):
11880         Remove --xim-preedit and --xim-status from argv properly.
11881
11882         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
11883         that the client window is present on the X server
11884         before we pass it to the input method.
11885
11886 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
11887
11888         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
11889         if --display is specified on the command line, than
11890         the drag window will not be created on that display.
11891         
11892 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
11893
11894         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
11895         lookups with only_if_exists == TRUE were inserting
11896         bogus values into the atom cache.
11897
11898 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
11899
11900         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
11901         then reset it to NULL.
11902
11903         * gdk/gdkcolor.c:
11904         (gdk_colors_free): 
11905         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
11906         key for g_hash_table_remove() in both functions, this prevents us
11907         from accessing possibly uninitialized portions of a GdkColor structure
11908         where we are only interested in its pixel value.
11909
11910 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
11911
11912         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
11913         font hash table, if we have a GdkFontPrivate entry for this font
11914         already, simply increment its reference count, provided by Olaf Dietsche
11915         <olaf.dietsche+list.gtk@netcologne.de>.
11916
11917 1999-09-21  Tor Lillqvist  <tml@iki.fi>
11918
11919         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
11920         just to be sure.
11921
11922         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
11923         unused variables, leftovers from the X11 version.
11924
11925         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
11926
11927         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
11928         downcase fields on X11.
11929
11930 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
11931         
11932         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
11933         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
11934
11935 1999-09-17  Tor Lillqvist  <tml@iki.fi>
11936
11937         * gdk/win32/gdk.def: Add gdk_threads_mutex.
11938
11939         * gtk/makefile.msc: Correct path to libintl.
11940
11941         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
11942         use of gint vs. int, and gint vs. gboolean in headers and
11943         definitions. Use GtkType for the *_get_type functions. Note that
11944         these changes preserve binary compatibility.
11945
11946         * gdk/gdk.c
11947         * gdk/win32/gdk.c
11948         * gdk/gdk.h: Fix inconsistencies: gint vs int.
11949
11950         * gtk/gtkmain.c
11951         * gtk/gtkclist.c
11952         * gtk/gtkmenufactory.c
11953         * gtk/gtknotebook.c
11954         * gtk/gtkwidget.c: Fix inconsistencies, also gint
11955         vs. gboolean.
11956
11957         * gtk/gtkcolorsel.[ch]
11958         * gtk/gtkcombo.[ch]
11959         * gtk/gtkdrawingarea.[ch]
11960         * gtk/gtkgamma.[ch]
11961         * gtk/gtkhandlebox.[ch]
11962         * gtk/gtkhpaned.[ch]
11963         * gtk/gtkhruler.[ch]
11964         * gtk/gtkplug.[ch]
11965         * gtk/gtkpreview.[ch]
11966         * gtk/gtkruler.[ch]
11967         * gtk/gtksocket.[ch]
11968         * gtk/gtkstatusbar.[ch]
11969         * gtk/gtktoolbar.[ch]
11970         * gtk/gtkvbbox.[ch]
11971         * gtk/gtkvpaned.[ch]
11972         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
11973         functions.
11974
11975         * gtk/gtkgamma.h: Fix bug, missing () in call of
11976         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
11977
11978 1999-09-14  Tor Lillqvist  <tml@iki.fi>
11979
11980         * gdk/gdkcolor.c (gdk_colormap_new)
11981         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
11982         colormap->colors was allocated twice.
11983
11984         * gdk/win32/gdk.c: Remove some unused stuff.
11985
11986         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
11987         colormap.
11988
11989         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
11990         * gtk/gtklabel.h (gtk_label_get_type)
11991         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
11992         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
11993         in a couple of places, not guint.
11994
11995 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
11996
11997         * configure.in,po/et.po: added Estonian language file
11998
11999 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
12000
12001         * configure.in,po/da.po: added Danish file
12002
12003 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
12004
12005         * docs/gtkfaq.sgml: Minor FAQ Update
12006
12007 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
12008
12009         * docs/gtkfaq.sgml: FAQ update
12010
12011 1999-08-27  Tor Lillqvist  <tml@iki.fi>
12012
12013         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
12014         way to get window contents continually refreshed while resizing. I
12015         didn't like the effects myself, so it's not on by default.
12016
12017         * gdk/win32/gdkprivate.h: New flag variable
12018         gdk_event_func_from_window_proc, FALSE by default.
12019
12020         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
12021         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
12022         are passed --gdk-event-func-from-window-proc.
12023
12024         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
12025         and we have am event_func, call it instead of enqueing the event.
12026
12027 1999-08-23  Tor Lillqvist  <tml@iki.fi>
12028
12029         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
12030         Kelley: Set expose_count in GdkEventExposes correctly.
12031
12032         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
12033         MULTIPLE_WINDOW_CLASSES).
12034
12035         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
12036         for bug in NT, apparently NT *does* draw the end pixel, too, in
12037         LineTo with a one-pixel pen, so we don't have to do it ourselves.
12038
12039 1999-08-21  Tor Lillqvist  <tml@iki.fi>
12040
12041         Improvements by Hans Breuer: 
12042
12043         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
12044
12045         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
12046         CS_?REDRAW flags as they cause lots of (late) redraws when "show
12047         window contents while dragging" is turned on. Allocate at least
12048         one unique class for every GdkWindowType. If support for single
12049         window-specific icons is ever needed (eg. Dialog specific), every
12050         such window should get its own class.
12051
12052 1999-08-19  Tor Lillqvist  <tml@iki.fi>
12053
12054         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
12055         error that caused crashes.
12056
12057 1999-08-17  Tor Lillqvist  <tml@iki.fi>
12058
12059         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
12060         window, use ScrollWindowEx, and call UpdateWindow. This prevents
12061         bugs when for instance part of the window was outside the
12062         display. Thanks to Philippe Colantoni for finding and fixing this.
12063
12064 1999-08-16  Tor Lillqvist  <tml@iki.fi>
12065
12066         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
12067         endpoint calculations which were totally wrong. (A little RTFMing
12068         helps a lot ;-)
12069
12070         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
12071         from a separate directory, not from gettext, because of licensing
12072         issues (we want to use the LGPL version).
12073
12074         * README.win32: Mention the intl from glibc vs from gettext issue.
12075
12076 1999-08-13  Tor Lillqvist  <tml@iki.fi>
12077
12078         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
12079         in the key event handling: Now AltGr chars work again. Also,
12080         now Alt-digits are passed up as well as Control-digits.
12081         Pass keypad plus and minus as normal plus and minus.
12082
12083 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
12084
12085         * docs/gtkfaq.sgml: FAQ Update
12086
12087 1999-07-25  Tor Lillqvist  <tml@iki.fi>
12088
12089         * README.win32
12090         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
12091         the Wintab SDK.
12092
12093         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
12094         OK, but getting closer. Guard against bogus tilt data from Wacom
12095         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
12096         enable easier building without Wintab.
12097
12098         * gdk/win32/gdkinput.h
12099         * gdk/win32/gdkevents.c 
12100         * gdk/win32/gdkwindow.c: Minor changes related related to above.
12101         
12102         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
12103         code. As we have just one visual on Win32, no sense to have it in a
12104         table, and no need for the hash table.
12105
12106         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
12107         better on white background.
12108
12109 1999-07-21  Tor Lillqvist  <tml@iki.fi>
12110
12111         * README.win32: Update gcc build instructions. Mention gettext is
12112         GPL.
12113
12114         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
12115         supported cursor size with GetSystemMetrics.
12116
12117         * gdk/win32/gdkfont.c
12118         * gtk/gtkfontsel.c: Guard against some font weight and charset
12119         symbols being undefined (in mingw32 headers).
12120
12121         * gdk/win32/makefile.cygwin
12122         * gtk/makefile.cygwin
12123         * gtk/gtkthemes.c: No longer need to have differently named
12124         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
12125
12126 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
12127
12128         * docs/gtkfaq.sgml: Long awaited FAQ update.
12129
12130 1999-07-15  Tor Lillqvist  <tml@iki.fi>
12131
12132         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
12133         it. Obscure bit manipulation needed.
12134
12135         * gdk/win32/gdkevents.c: Logging.
12136         
12137         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
12138         style (file name include compiler name) for theme engines.
12139
12140 1999-07-13  Tor Lillqvist  <tml@iki.fi>
12141
12142         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
12143
12144         * gdk/win32/gdkevents.c: Fix long-standing bug in key
12145         events. The key.string wasn't zero-terminated, still we strdup'ed
12146         it in gdk_event_copy(). Synthesize crossing events for button
12147         events before possible propagation.
12148
12149         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
12150
12151         * gdk/win32/makefile.cygwin
12152         * gtk/makefile.cygwin: Use new DLL naming style for the
12153         GCC-compiled ones.
12154
12155         * gdk/win32/makefile.msc
12156         * gtk/makefile.msc: Cosmetics mostly.
12157
12158         * gtk/gtk.def: Add missing entry points.
12159
12160         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
12161
12162 1999-07-09  Tor Lillqvist  <tml@iki.fi>
12163
12164         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
12165         or height is zero. Don't print a warning if Pie or Arc fails, they
12166         always fail (?) for very narrow ellipses.
12167
12168         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
12169         the part or the destination window corresponding to source area
12170         outside of the source drawable's boundary.
12171
12172         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
12173         anything if less than two points.
12174
12175         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
12176         return NULL. Gtk cut-and-paste inside a single program works
12177         better this way. (It always gets the clipboard contents from
12178         Windows, not from its own copy, which is cleared anyway. I can't
12179         say I fully understand what happens... Emulating the X selection
12180         and property stuff is a bit of a mess.)
12181
12182         * gdk/win32/gdkevents.c
12183         * gdk/win32/gdkproperty.c: A bit more verbose logging.
12184
12185         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
12186         that never got deleted). Revamp gdk_region_shrink.
12187
12188         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
12189         after use.
12190
12191         * gtk/gtk.def: Add some missing entry points.
12192
12193         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
12194         component.
12195
12196 1999-07-04  Tor Lillqvist  <tml@iki.fi>
12197
12198         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
12199         Control-digits specially.
12200
12201 1999-07-03  Tor Lillqvist  <tml@iki.fi>
12202
12203         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
12204
12205 1999-06-28  Tor Lillqvist  <tml@iki.fi>
12206
12207         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
12208         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
12209         finding this.)
12210
12211 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
12212
12213         * gtk+.spec.in: Corrected some typos in files section.
12214         
12215 1999-06-15  Tor Lillqvist  <tml@iki.fi>
12216
12217         * README.win32: Mention using GNU gettext.
12218         * config.h.win32: Enable NLS stuff.
12219         * gtk/makefile.msc: Use GNU gettext.
12220         * gdk/win32/gdkdnd.c: Minor header reorg.
12221         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
12222         cosmetics.
12223         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
12224         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
12225
12226 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
12227
12228         * acinclude.m4
12229         * config.guess
12230         * config.status
12231         * ltconfig
12232         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
12233
12234 1999-05-30  Tor Lillqvist  <tml@iki.fi>
12235
12236         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
12237         SafeAdjustWindowRectEx. Don't override all calls to
12238         AdjustWindowRectEx by it, but use it only in two places: When
12239         creating a new top-level window and when moving a top-level
12240         window.
12241
12242         Use screen coordinate rectangle, not client rectangle, in
12243         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
12244         when we try to place a window so that the decoration (mainly,
12245         title bar) isn't visible.
12246
12247         These changes fix the bug that showed up for instance as the
12248         GIMP's saved top-level windows moving right and down (by an amount
12249         equal to the window decoration) for each session. This bug showed
12250         up also in testgtk's "Saved Position".
12251
12252         gdk_window_resize also redone a bit.
12253
12254 1999-05-25  Tor Lillqvist  <tml@iki.fi>
12255
12256         * gtk/testgtkrc: Add (commented out) Windows-style theme
12257         include line.
12258
12259         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
12260
12261 1999-05-18  Tor Lillqvist  <tml@iki.fi>
12262
12263         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
12264         gdkx.h to a gdk subdirectory, so that applications can include
12265         these with <gdk/*.h> without trouble.
12266
12267         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
12268         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
12269         have their bitmap destroyed.
12270
12271         * gdk/win32/gdk.def: Add gdk_root_parent.
12272
12273 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
12274
12275         * configure.in
12276           gtk-config.in
12277           ltconfig
12278           ltmain.sh     
12279           gtk/Makefile.am: changes to compile nicely (with xlib) 
12280           on BeOS
12281
12282 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
12283
12284         * acinclude.m4
12285         * config.guess
12286         * config.sub
12287         * ltconfig
12288         * ltmain.sh: upgrade to libtool 1.3
12289
12290 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
12291
12292         * gtk/gtkclist.c:
12293         * gtk/gtkctree.c: merges from gtk-1-2
12294
12295 1999-04-25  Tor Lillqvist  <tml@iki.fi>
12296
12297         Support added for building using a GNU toolchain on Win32,
12298         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
12299
12300         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
12301         * config.h.win32: Changes for gcc.
12302         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
12303         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
12304         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
12305         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
12306         Protect shl stuff unavaiilable with mingw32 headers.
12307         * gdk/win32/gdkevents.c: Fix typo.
12308         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
12309         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
12310         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
12311         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
12312         the mingw32 headers.
12313         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
12314         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
12315         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
12316         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
12317         Test for NATIVE_WIN32, not _MSC_VER.
12318         * gtk/gtkmain.c: No use warning about developer version on Win32,
12319         there aren't any non-developer versions anyhow.
12320         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
12321         * gtk/makefile.msc: Use pthread from another directory. Minor other
12322         changes. 
12323
12324 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
12325
12326         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
12327           default filter from the list
12328
12329 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
12330
12331         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
12332          when gtk_widget_grab_default() is called for a widget that
12333          is not within a GtkWindow.
12334
12335 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
12336
12337         * docs/gtk_tut.sgml, examples/clist.c: use a
12338           scrolled window in the clist example. Minor
12339           tutorial fixes.
12340
12341 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
12342
12343         * docs/gtk_tut.sgml: Style check from David King
12344           <dking@youvegotmail.net>
12345
12346 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
12347
12348         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
12349         compile with unknown value of GDK_WINDOWING
12350
12351 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
12352
12353         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
12354         after the rule is fired.
12355         (install-exec-local): Install gdkconfig.h only if the contents are
12356         different from the currently installed gdkconfig.h.
12357
12358 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
12359
12360         * gdk/Makefile.am (configexecincludedir): Rename from 
12361         configincludedir so that gdkconfig.h will be installed 
12362         as part of `make install-exec'. 
12363
12364 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
12365
12366         * acinclude.m4
12367         * config.guess
12368         * config.sub
12369         * ltconfig
12370         * ltmain.sh: upgrade to libtool 1.2f
12371
12372         * autogen.sh: libtool is not required to autogen gtk+
12373
12374         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
12375         needed)
12376
12377 1999-03-18  Tor Lillqvist  <tml@iki.fi>
12378
12379         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
12380         declaring gdk variables exported/imported from the DLL. New image
12381         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
12382         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
12383         GDK_DRAG_PROTO_OLE2.
12384
12385         * gdk/gdk.h: Merge in Win32 version: Two new functions,
12386         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
12387         declared only for the Win32 version, but could be in the X11
12388         version as well. (Needed for a Xlib-less gdk_imlib.)
12389         gdk_color_hash should have only one parameter. Declare
12390         gdk_threads_mutex with GDKVAR.
12391         
12392         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
12393         just one parameter.
12394
12395         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
12396         per pixel, not bits.
12397
12398         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
12399         Fetch bpp (which means bits-per-pixel here) from another place on
12400         Win32. Accept also depth==32 (which we might get on Win32) with
12401         bpp==32.
12402
12403         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
12404         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
12405         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
12406         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
12407         in the backend-dependent directory, not in the common gdk
12408         directory.
12409
12410         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
12411         headers.
12412
12413 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
12414
12415         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
12416         want to use the Gtk+ devel version (which is true, and yes - even i am
12417         currently working with the 1.2.x branch). so everyone reading this, you
12418         probably want to issue
12419         cvs checkout -r glib-1-2 glib
12420         and
12421         cvs checkout -r gtk-1-2 gtk+
12422         as your next two comands.
12423
12424 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
12425
12426         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
12427         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
12428
12429         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
12430         file. strongly deprecated the GTK_HAVE_* macros, we provide
12431         GTK_CHECK_VERSION() for people that need to check for certain
12432         Gtk+ versions.
12433
12434         * gtk/gtkcompat.h: removed this from CVS.
12435         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
12436         idea right from the start, it just didn't seem like that back then.
12437
12438 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
12439
12440         * merges from gtk-1-2:
12441
12442 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
12443
12444         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
12445         item factory class has been created.
12446         (gtk_item_factory_parse_rc): likewise.
12447
12448         * gtk/gtkmenu.c:
12449         keep proper references for old_active_menu_item.
12450         (gtk_menu_reparent): unset the usize of the new parent,
12451         so the menu can sanely be size requested and we don't get nasty screen
12452         artefacts upon next reparentation.
12453         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
12454         enter notify. only synthesize enter notifies if the pointer really is
12455         inside the event window.
12456         (gtk_menu_popdown): use gtk_menu_shell_deselect().
12457         (gtk_menu_popup): move the background setting stuff into
12458         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
12459
12460         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
12461         gtk_menu_shell_select_item() to select the new item.
12462         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
12463         do the right thing for deselection as well.
12464
12465 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
12466
12467         * gtk/gtkwidget.[hc]:
12468         (gtk_widget_accelerators_locked): return whether a widget's accelerators
12469         are locked.
12470
12471         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
12472         existing accelerators if the widget's accelerators are locked.
12473
12474 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
12475
12476         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
12477
12478         * gtk/gtkmenu.c: truely forward key press and key release events to
12479         the menu widget from the toplevel or tearoff window. we can't simply
12480         connect to that, we need to stop further processing of the events as
12481         well.
12482
12483 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
12484
12485         * gtk/gtkmenu.c:
12486         (gtk_menu_key_press): pass event->keyval, event->state to
12487         gtk_accelerator_valid, instead of event->keyval twice.
12488         refuse to install single letter accelerators for menus that use
12489         single letter shortcuts.
12490
12491         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
12492         gtk_menu_ensure_uline_accel_group().
12493
12494         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
12495         which will always return an uline accel group, made
12496         gtk_menu_get_uline_accel_group() return NULL if the group isn't
12497         yet created.
12498
12499 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
12500
12501         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
12502
12503         * gtk/gtkclist.c (gtk_clist_column_title_passive):
12504         Leave button sensitive, trap  button_press, button_release,
12505         motion_notify, enter_notify and leave_notify events instead.
12506         (gtk_clist_column_title_active): disconnect event handler.
12507         (gtk_clist_drag_data_get): fixed memory leak. Reported by
12508         Guillaume Laurent <glaurent@worldnet.fr>
12509
12510 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
12511
12512         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
12513         width/height mixups.
12514
12515         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
12516         if needed.
12517
12518 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
12519
12520         * gtk/testgtk.c (create_item_factory): unref the item factory after
12521         window's destruction.
12522
12523         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
12524         count on the menu shell around the menu item's activation, since the
12525         signal emission may cause menu shell destruction.
12526
12527         * gtk/gtkitemfactory.c:
12528         the previous code leaked one accel group per menu. we use
12529         gtk_menu_get_uline_accel_group() now to fix that, and with that
12530         also create the underline accelerator group of the menus only if
12531         required (i.e. an underline accelerator has been specified).
12532         (gtk_item_factory_construct):
12533         (gtk_item_factory_create_item): removed code that would create an
12534         extra accel group for the menu (and leak references).
12535         (gtk_item_factory_create_item): adapted the underline accelerator
12536         installation code to properly feature gtk_menu_get_uline_accel_group().
12537
12538         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
12539         menu->accel_group, this may return NULL if the accelerator group
12540         hasn't been set yet.
12541         added gtk_menu_get_uline_accel_group() to retrive the underline
12542         accelerator group of the menu, this will be created on demand
12543         and proper care is taken about its reference count.
12544
12545         * gtk/gtkitemfactory.h:
12546         * gtk/gtkitemfactory.c:
12547         dumped the approach of keeping a widgets by action list on the
12548         factory since the factory<->widget destroy negotiation didn't work
12549         and would be hard to get going at all. instead we keep a list of
12550         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
12551         persistant throughout a program's life time).
12552         also, i removed the static const gchar *key_* variables, and made
12553         them inline strings (they weren't actually used anyways).
12554         (gtk_item_factory_add_item): update ifactory->items.
12555         (gtk_item_factory_destroy): destroy ifactory->items (and remove
12556         the item factory pointer from the remaining ifactory widgets).
12557         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
12558         list to find the widget.
12559         (gtk_item_factory_get_item): new function that works around
12560         gtk_item_factory_get_widget() limitations, this function will only
12561         return menu items, even for <Branch> entries.
12562
12563 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
12564
12565         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
12566         font hash table, if we have a GdkFontPrivate entry for this font
12567         already, simply increment its reference count, provided by Olaf Dietsche
12568         <olaf.dietsche+list.gtk@netcologne.de>.
12569
12570         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
12571         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
12572
12573 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
12574
12575         * gtk/gtkcontainer.c:
12576         (gtk_container_add_with_args):
12577         (gtk_container_addv):
12578         (gtk_container_add): before adding a child to a conatiner, make sure
12579         it is (default) constructed, this is neccessary because under certain
12580         circumstances the child will get relized and mapped immediatedly, in
12581         which case it has to be constructed already.
12582
12583 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
12584
12585         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
12586         values > 1 as TRUE also.
12587
12588 1999-03-16  Tor Lillqvist  <tml@iki.fi>
12589
12590         * README.win32: New file.
12591                 
12592         * configure.in: Check for lstat.
12593
12594         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
12595         completeness.
12596
12597         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
12598
12599         * gtk/gtk.def: Removed CRs.
12600
12601         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
12602         ..\gdk\win32).
12603
12604         * gdk/win32/makefile.msc: Correct upwards relative paths.
12605         
12606 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
12607
12608         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
12609           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
12610           it was connecting a void function to expose_event and the int
12611           returning function to the draw signal
12612
12613 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
12614
12615         * configure.in:
12616         Use correct path to libgmodule.la when ref'ing uninstalled copy
12617         of glib.  (Already in stable branch, Bug #417)
12618
12619 1999-03-15  Tor Lillqvist  <tml@iki.fi>
12620
12621         Win32 merge and general portability stuff:
12622                 
12623         * acconfig.h,configure.in: Check for <sys/time.h>.
12624
12625         * gdk/win32: New directory (actually, been there for a while).
12626         
12627         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
12628         NATIVE_WIN32, and use these. Always case fold on Win32. No
12629         backslashed escapes on native Win32.
12630
12631         * gtk/{gtk.def,makefile.msc}: New files.
12632
12633         * gtk/Makefile.am: Add above new files.
12634         
12635         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
12636         instead of <strings.h>.
12637
12638         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
12639         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
12640         <unistd.h> appropriately.
12641
12642         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
12643         Use ABS() (from <glib.h>) instead of abs().
12644         
12645         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
12646         of gtk (and thus glib) headers, so that WIN32 will be
12647         defined. With MS C, include <direct.h> for mkdir prototype.
12648
12649         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
12650         some casts, needed by MS C.
12651
12652         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
12653         implemented).
12654
12655         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
12656         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
12657         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
12658
12659         * gtk/gtkmain.h: Mark variables for export/import on Win32.
12660                 
12661         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
12662         the event is not a hint, or its window is not the slider. Needed
12663         on Win32, at least.
12664
12665         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
12666         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
12667         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
12668         a subdirectory of the Windows directory as gtk system
12669         configuration directory.
12670
12671         * gtk/gtkselection.c: No chunks on Win32.
12672
12673         * gtk/gtksocket.c: Not implemented on Win32.
12674
12675         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
12676
12677         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
12678
12679         * gtk/maketypes.awk: Declare variables with a macro that expands to
12680         necessary export/import magic in the case of Win32.
12681                 
12682         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
12683
12684 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
12685
12686         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
12687         since those were meant only for gdki18n.h.  
12688         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
12689         for widechar tests.
12690         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
12691
12692 1999-03-13  Tor Lillqvist  <tml@iki.fi>
12693
12694         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
12695         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
12696
12697         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
12698         installed) to CFLAGS.
12699
12700         * gdk/Makefile.am: Add rules for gdkconfig.h.
12701
12702         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
12703         APIs.
12704
12705         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
12706         gdkx.h anyway when compiling for X11.
12707         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
12708         general): Merge in Win32 version.
12709         
12710         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
12711         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
12712         expansion (if we don't have HAVE_PWD_H), allow for drive
12713         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
12714         included code from Craig Setera's port to Win32 (the one that uses
12715         X11, and the cygwin dll), even if it probably will be abandoned.
12716
12717         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
12718         the user entered one herself.  This way one can complete *.h and
12719         don't get matches on any .help files, for instance.
12720         
12721 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
12722
12723         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
12724         font hash table, if we have a GdkFontPrivate entry for this font
12725         already, simply increment its reference count, provided by Olaf Dietsche
12726         <olaf.dietsche+list.gtk@netcologne.de>.
12727
12728         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
12729         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
12730
12731 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
12732
12733         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
12734         the number of calls to gdk_draw_point() (and thus to X) by
12735         clipping the points by hand.
12736
12737         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
12738         the clip parameter.
12739         (gtk_handle_box_paint): Only paint the handle if the expose area
12740         intersects it.
12741
12742 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
12743
12744         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
12745
12746 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
12747
12748         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
12749         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
12750
12751 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
12752
12753         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
12754          textmode (O_TEXT) for OS/2 version.
12755
12756 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
12757
12758         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
12759         GtkSpinButton, "input" and "output", to make the output more flexible.
12760         The user has to provide a mapping between adjustment->value and the
12761         output string (and vice versa, if the spin button is editable). 
12762         See testgtk for examples.
12763
12764 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
12765
12766         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
12767         new one.
12768         
12769         * configure.in: set gtk+ version to 1.3.0.