]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
If we're going to have a demo, we might as well pass in real values.
[~andy/gtk] / ChangeLog.pre-2-10
1 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
2
3         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
4         have a demo, we might as well pass in real values.  Thanks to
5         clahey for pointing this out.
6
7 2001-02-14  Havoc Pennington  <hp@pobox.com>
8
9         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
10         "static" to a private function
11         (gtk_image_menu_item_class_init): remove destroy handler,
12         add "image" object property
13
14 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
15
16         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
17         Add a shortcut if the window and the current clip_region doesn't
18         overlap. This is needed when there are a lot of windows in a
19         window. The layout test in testgtk is a good test.
20
21         * gdk/linux-fb/gdkwindow-fb.c:
22         Whitespace fix.
23
24 2001-02-13  Sven Neumann  <sven@convergence.de>
25
26         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
27
28 2001-02-13  Alexander Larsson  <alexl@redhat.com>
29
30         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
31         Don't reference last_cursor if it is null. Fixes crash when rotating
32         the screen before having moved the mouse.
33
34         * gdk/linux-fb/gdkcc-fb.c: Zapp!
35
36         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
37
38         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
39         when using 90 or 270 degrees rotation.
40
41 2001-02-12  Havoc Pennington  <hp@pobox.com>
42
43         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
44         it always set the foreground, even if we were only using
45         a stipple.
46         (gdk_draw_layout_line_with_colors): new function, allow
47         override colors
48         (gdk_draw_layout_with_colors): new function, allow override
49         colors
50         (gdk_pango_layout_line_get_clip_region): function to get the clip
51         region for a logical text range
52         (gdk_pango_layout_get_clip_region): get the clip region for a
53         logical text range
54
55         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
56         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
57         the right number of arguments.
58
59         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
60         enhance the function to check that node data corresponds to a 
61         view still belonging to the tree.
62
63         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
64         GtkTreePath
65         (gtk_tree_view_inserted): ditto
66         (gtk_tree_view_child_toggled): ditto
67
68         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
69         simplify this code.
70
71         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
72         a PangoAttrList
73
74         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
75
76         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
77
78         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
79         size in the size request 
80         (gtk_menu_bar_size_allocate): consider toggle size here
81
82         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
83         that displays a widget in the toggle slot
84
85         * gtk/testgtk.c: test GtkImageMenuItem
86
87         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
88         
89         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
90         request and allocation
91
92         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
93
94         * gtk/gtkcheckmenuitem.c
95         (gtk_check_menu_item_toggle_size_request): ditto
96         
97 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
98
99         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
100         reference.
101
102         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
103         and refuse to initialize GTK+ if they fail.
104
105 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
106
107         * configure.in: Add check for gtk-doc version.
108
109 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
110
111         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
112         where the xpad/ypad was only being used on one side!
113
114 2001-02-11  Tor Lillqvist  <tml@iki.fi>
115
116         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
117         function, copied from X11 version.
118
119         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
120         DestroyCursor failures. The reason for the problem (despite the
121         inconsistent messages from GetLastError()) was that
122         DestroyCursor() cannot be called while a cursor is set in a
123         window. Set the new cursor first and then destroy the old one.
124         Thanks to jpe@archaeopteryx.com.
125
126         * gdk/win32/gdkcc-win32.c: Remove.
127
128         * gdk/win32/Makefile.am: Remove from here, too.
129         
130         * gdk/gdk.def
131         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
132
133         * gtk/gtk.def
134         * gtk/makefile.mingw.in: Updates.
135
136 2001-02-08  Havoc Pennington  <hp@redhat.com>
137
138         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
139         add a widget to a bin that already has a child.
140
141         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
142
143         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
144         
145         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
146
147         * gdk/gdk.h: remove gdkcc.h
148
149         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
150
151         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
152         GdkPixbuf, since the previous implementation was GdkColorContext
153         dependent.
154
155         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
156         
157 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
158
159         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
160         a sane value!
161
162 2001-02-08  Havoc Pennington  <hp@redhat.com>
163
164         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
165         lighten them.
166
167 2001-02-08  Havoc Pennington  <hp@redhat.com>
168
169         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
170         validation idle
171
172         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
173         cell renderer
174
175         * demos/pixbuf-demo.c (timeout): remove deprecated
176         gtk_widget_draw
177
178         * demos/testpixbuf-save.c (main): remove deprecated
179         gtk_drawing_area_size
180
181         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
182         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
183         at the start of the allocation.
184         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
185         unsetup or NULL model.
186
187         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
188         even/odd/sorted cells in the tree view.
189
190         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
191         bugfixes
192
193         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
194         backgrounds with draw_flat_box using different detail for even/odd
195         rows.
196
197         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
198         row, so we can draw the alternating colors thing
199
200         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
201         property from a synonym property, notify for the synonym.
202         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
203         (gtk_text_tag_get_property): Always return the font, even if
204         all its fields aren't set
205
206         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
207         store the attr list; it leaves us with no way to change attributes
208         in _render according to the render flags, and no way to implement
209         get_property. Instead store all the specific text attributes. 
210         Separate whether an attribute is enabled from its value. Sync all
211         properties with GtkTextTag, make them all consistent, etc.
212
213         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
214         renderers can highlight the sort row/column     
215
216         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
217         accessor functions to get values; this has the side effect of
218         showing up which accessor functions were missing. Added those.
219
220         * gtk/gtktreeviewcolumn.h: Replace set_justification with
221         set_alignment, to be consistent with GtkLabel, GtkMisc
222
223         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
224         arrow.
225
226         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
227
228         * gtk/gtktreesortable.h: updates in here
229
230 2001-02-07  Sven Neumann  <sven@convergence.de>
231
232         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
233         pango dimensions after painting the background. We used to draw
234         gigantic flat boxes here.
235
236 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
237
238         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
239         error introduced with earlier commit) (pointed out by
240         Ollie Lho)
241
242 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
243
244         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
245         which are no longer necessary.
246
247 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
248
249         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
250
251 2001-02-04  Tor Lillqvist  <tml@iki.fi>
252
253         * gdk/gdk.def
254         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
255         Provide dummy implementations.
256
257 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
258
259         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
260
261         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
262         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
263         deprecated this function.
264
265         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
266         argument.
267
268 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
269
270         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
271
272 2001-02-03  Havoc Pennington  <hp@pobox.com>
273
274         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
275         Mikael Hermansson with patch from Mikael (if there was a toggle
276         start one after the first character in the range, this function
277         was broken). Bug #50380
278
279 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
280
281         * configure.in: Remove confusing comment about X11.
282
283 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
284
285         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
286         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
287         
288 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
289
290         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
291         it breaks things on BSD. If you want to compile GTK+ with
292         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
293         when configuring, since GTK+ simply can't be "pure ANSI" 
294         in the header files it uses. (#8170, Greg Hudson)
295
296 2001-02-02  Havoc Pennington  <hp@redhat.com>
297
298         * gtk/gtkwindow.c: docs
299
300         * gtk/gtkwidget.c: docs
301         (gtk_widget_set_colormap): add a reference to the colormap
302         (gtk_widget_get_default_colormap): add a reference to the colormap
303
304         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
305
306         * gtk/gtktextiter.c: docs
307
308         * gtk/gtkmain.c (gtk_propagate_event): docs
309
310         * gtk/gtkpaned.c (gtk_paned_get_position): docs
311         (gtk_paned_set_position): docs
312
313         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
314         sort interface, no implementation yet.
315
316         * demos/testpixbuf.c (new_testrgb_window): replace
317         gtk_drawing_area_size() with gtk_widget_set_usize()
318
319         * demos/testpixbuf-drawable.c (main): ditto
320         
321         * gtk/testgtk.c: remove use of GtkStatusbarMsg
322
323         * gtk/gtktextbuffer.c: docs
324
325         * gtk/gtkstock.c: docs
326
327         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
328
329         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
330
331         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
332         
333         * gtk/gtkimage.c: add some docs in here
334         (gtk_image_size_request): change name of
335         gtk_widget_render_stock_icon
336         (gtk_image_get_icon_set): don't dup returned string
337         (gtk_image_get_icon_set): don't dup returned string
338
339         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
340         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
341         and gtkiconfactory.h functions
342
343         * gtk/gtkiconfactory.c: add some docs in here
344
345         * gtk/gtkmain.c (gtk_get_default_language): document
346         (gtk_get_current_event): document
347         (gtk_get_current_event_state): document
348         (gtk_get_event_widget): document
349
350         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
351
352         * gtk/gtkcontainer.c: Add some documentation
353         (gtk_container_add): give a more explanatory warning on adding an
354         already-parented widget, this is kind of a FAQ and also a common
355         typo that's easier to debug with a nice warning 
356
357         * gtk/gtkcellrenderertoggle.c
358         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
359         adding this, it's useless
360         (gtk_cell_renderer_toggle_set_active): remove
361         (gtk_cell_renderer_toggle_get_radio): add
362
363         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
364         the NULL cell renderer, that doesn't make any sense to me. 
365
366         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
367         demo code should never use deprecated features.
368
369         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
370         code should never use deprecated features.
371
372         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
373         gtk_widget_queue_clear_area deprecated
374
375         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
376         deprecated
377
378         * gtk/gtklabel.h: mark gtk_label_get() deprecated
379
380         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
381         a GdkImage deprecated, replaced by new consistently-named
382         functions       
383
384         * gtk/gtkmain.h: Mark gtk_exit() deprecated
385
386         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
387
388         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
389         deprecated
390
391         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
392         so it won't appear in docs and confuse people.
393
394         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
395
396         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
397         macros deprecated. (can't mark the type itself deprecated, since
398         GtkProgressBar is not deprecated and we need the type decl to use
399         GtkProgressBar)
400
401         * gtk/gtkpixmap.h: Mark deprecated
402
403         * gtk/gtkoldeditable.h: Mark deprecated
404
405         * gtk/gtklist.h: Mark deprecated
406
407         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
408         for anything anymore.
409
410         * gtk/gtkctree.h: Mark deprecated
411
412         * gtk/gtkclist.h: Mark deprecated
413
414         * gtk/gtkpreview.h: Mark deprecated
415
416         * gtk/gtkpacker.h: Mark deprecated
417
418         * gtk/gtktipsquery.h: Mark deprecated
419
420         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
421
422         * gtk/gtkvruler.h: Add comment that it will move out of GTK
423
424         * gtk/gtkhruler.h: Add comment that it will move out of GTK
425
426         * gtk/gtkruler.h: Add comment that it will move out of GTK
427
428         * gtk/gtkgamma.h: Add comment that it will move out of GTK
429
430         * gtk/gtkcurve.h: Add comment that it will move out of GTK
431
432 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
433
434         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
435         gdk_colormap_sync private since it was never exported
436         in a header file.
437
438         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
439         colormap->colors[] for StaticGray, StaticColor colormaps.
440
441         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
442         was being used as if it was image->bits_per_pixel.
443
444         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
445         for the image in the GdkImage structure since it isn't
446         reconstructable, and we need it to handle packed types
447
448         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
449         the assumption that on Win32 image->bits_per_pixel == image->depth,
450         always.
451
452         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
453
454         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
455         warning message if no converter can be found. 
456
457 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
458
459         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
460         chars to isupper() / tolower(). (#567)
461
462         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
463         to clear up 64-bit warnings. (#567)
464
465 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
466
467         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
468         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
469
470         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
471         since some people set $(libdir) separately. (#1290, David Kaelbling)
472
473 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
474
475         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
476         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
477         MAXPATHLEN, but the code here depends on a fixed value.)
478         (#4524)
479
480 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
481
482         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
483         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
484
485 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
486
487         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
488         viewable there is no way that moving the node will cause the 
489         focus row to become not viewable, so omit check on the visibility
490         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
491
492 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
493
494         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
495         selection before inserting new text.
496
497 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
498
499         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
500         Make the sensitivity of the reparented child track that of
501         the original parent menu item. (#34218, David Hodson)
502
503         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
504         the case where the current item is destroyed properly.
505
506         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
507         some edge cases with child-less menuitems.
508         
509 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
510
511         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
512         key pop down window. (#12074, Jon K Hellan)
513
514 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
515
516         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
517         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
518         The solution here isn't perfect - you get an extraneous
519         emission of "toggle", which could conceivably confuse an app,
520         but better than the current situation. LXR search seems to
521         indicate that no apps in GNOME CVS connect to "toggle".
522
523 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
524
525         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
526         gtk_public_h_sources to directly here to avoid warning when
527         building srcdir != builddir. (#9656)
528
529 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
530
531         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
532         handlers in gtkrange.c return the proper values (TRUE == handled)
533         (#10316).
534
535         This is just the tip of the iceberg, but gtkrange.c is the
536         most common place where the propagation is problematical,
537         and also a place where it is almost certainly safe to change
538         this in the stable branch.
539
540         (You don't want right click popups on a range control or anything...)
541
542 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
543
544         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
545         area on focus out, even if a background pixmap isn't set.
546         (#13941)
547         
548 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
549
550         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
551         to deal with setting the shape properly when scrolling arrows are
552         turned on, but not visible because there is sufficient space.
553         (#13432)
554
555 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
556
557         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
558         items with submenus, destroy the item along with the submenu.
559         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
560         properly.
561
562         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
563         later.
564
565 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
566
567         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
568         the focus widget sometimes wasn't drawn with the default if there
569         was no default widget.
570
571         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
572         unreference pixmaps. 
573
574         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
575         for some extra safety.
576
577 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
578
579         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
580         the text of a cell to the old pointer value better, by
581         copying the new text before freeing the old text. Some code
582         cleanup. (#8079, Karl Nelson)
583
584 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
585
586         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
587         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
588
589 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
590
591         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
592         item from a menu, check to see if it matches 
593         menu->old_active_menu_item, and if so, unref and clear
594         old_active_menu_item (Patch from Pavel Cisler)
595
596         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
597         menu_shell->active_menu_item, if it is the child being
598         removed. (Patch based on that of Gene Ragan, #50337)
599
600 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
601
602         * gdk/linux-fb/gdkselection-fb.c: 
603         * gdk/linux-fb/gdkcolor-fb.c: 
604         * gdk/linux-fb/gdkdrawable-fb2.c: 
605         * gdk/linux-fb/gdkfont-fb.c: 
606         * gdk/linux-fb/gdkim-fb.c: 
607         * gdk/linux-fb/gdkinput.c: 
608         * gdk/linux-fb/gdkkeyboard-fb.c: 
609         * gdk/linux-fb/gdkmain-fb.c: 
610         * gdk/linux-fb/gdkrender-fb.c: 
611         A bunch of whitespace cleanup.
612         
613 2001-01-30  Havoc Pennington  <hp@pobox.com>
614
615         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
616         #ifdef GTK_ENABLE_BROKEN.
617
618         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
619         GTK_ENABLE_BROKEN just before including the broken headers.
620         
621         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
622         deprecated types registered.
623
624         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
625         we have to test the broken stuff.
626
627         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
628         
629 2001-01-30  Havoc Pennington  <hp@redhat.com>
630
631         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
632         here where prev pointer was set to the wrong thing
633
634         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
635         (gtk_tree_path_is_descendant): new function
636
637         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
638         cached length
639         (gtk_list_store_get_iter): don't modify iter if we can't get the
640         path.
641
642         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
643         
644         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
645         GtkTreeDragDest
646
647         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
648         was causing segfault
649
650         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
651         pointer to NULL
652
653         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
654
655         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
656         on returning FALSE
657         (gtk_list_store_iter_children): ditto
658         (gtk_list_store_iter_nth_child): ditto
659         (gtk_list_store_iter_nth_child): ditto
660         (gtk_list_store_iter_parent): ditto
661
662         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
663         on iter->user_data != NULL instead of silently accepting it.
664         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
665         we are returning TRUE.
666         (gtk_tree_store_iter_children): ditto
667         (gtk_tree_store_iter_nth_child): ditto
668         (gtk_tree_store_iter_parent): ditto
669         (gtk_tree_store_insert): remove handling of parent->user_data ==
670         NULL, replace with parent == NULL       
671
672         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
673         and a comment explaining things
674
675         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
676         interface support to GtkTreeStore.
677
678         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
679         FALSE if no prev, fix
680
681         * gtk/gtktreeview.c (set_source_row): use a row reference
682         (set_dest_row): use a row reference
683
684 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
685
686         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
687         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
688         (gtk_tree_selection_select_iter): The same as above.
689
690 2001-01-26  Havoc Pennington  <hp@redhat.com>
691
692         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
693         which holds a handle to a specific row (particular set of values
694         in the model, i.e. pointer-identity row).
695
696         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
697         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
698         Still need to use it for the src/dest row saved on the drag context.
699
700 2001-01-26  Havoc Pennington  <hp@redhat.com>
701
702         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
703
704         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
705         not offset by TREE_VIEW_HEADER_HEIGHT
706         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
707         TREE_VIEW_HEADER_HEIGHT
708
709         * configure.in (included_loaders): for me, --with-included-loaders
710         generates the error "the specified loader yes does not exist",
711         i.e. the arg defaults to "yes", so change test for value ""
712         to test for value "yes", and include all loaders in that case.
713
714         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
715
716         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
717         handle TREE_VIEW_VERTICAL_SEPARATOR
718         (gtk_tree_view_bin_expose): fix to consider the row offset as
719         pointing halfway into vertical separator.       
720         (gtk_tree_view_draw_node_focus_rect): ditto
721
722         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
723         --gtk-debug=updates, which causes gdk_window_set_debug_updates
724         (TRUE) to be called.
725
726         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
727         debug mode where the invalid region is colored in on invalidate,
728         so you can see the flicker and know whether your redraw code is 
729         doing a good job.
730
731         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
732         tree window coordinates (clip rect is in tree window coords)
733
734         * gtk/Makefile.am: add gtktreednd.[hc]
735
736         * gtk/gtkliststore.c: implement gtktreednd interfaces.
737
738         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
739         drag-and-drop data operations on a model (so we can set up tree
740         drag-and-drop automatically)
741
742         * gtk/testgtk.c: Add a window to change sensitivity in the
743         GtkLabel test; add a way to change the entry frame in GtkEntry
744         test
745
746         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
747         (gtk_entry_get_has_frame): new functions to remove the frame
748         around an entry
749         (gtk_entry_size_request): shrink requisition if no frame
750         (gtk_entry_draw_focus): don't draw frame if no frame
751
752         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
753         checks inside a cell renderer
754         (gtk_default_draw_option): ditto for options
755
756         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
757         children from the alignment, not the button
758         (gtk_tree_view_column_init): ref/sink the column, to emulate
759         GObject refcounting.
760
761         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
762         
763         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
764         Use theme functions to draw the toggles 
765
766         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
767
768         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
769         GdkPangoAttrEmbossed to use in rendering insensitive text
770
771         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
772
773         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
774         using new GDK features
775         
776 2001-01-24  Alexander Larsson  <alexl@redhat.com>
777
778         * gtk/gtkimage.c:
779         Splitted gtk_image_clear into gtk_image_clear() and
780         gtk_image_reset(). Call gtk_image_clear() in ::destroy
781         to avoid leaks.
782
783         * gtk/gtklabel.c (set_markup):
784         Don't leak text.
785
786         * gtk/gtktextlayout.c:
787         Always free display->shaped_objects.
788
789         * gtk/testgtk.c (create_clist):
790         Don't leak custom style.
791
792 2001-01-23  Alexander Larsson  <alexl@redhat.com>
793
794         * gtk/gtkcolorsel.c (grab_color_at_mouse):
795         Don't leak image. Simplify using gdk_colormap_query_color().
796         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
797
798         * linux-fb/gdkcolor-fb.c:
799         Implemented gdk_colormap_query_color.
800
801 2001-01-23  Alexander Larsson  <alexl@redhat.com>
802
803         * linux-fb/gdkcursor-fb.c:
804         Don't leak built-in cursors.
805
806         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
807         Don't leak tmp_points.
808
809         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
810         Don't modify desc. Don't leak font if the PangoFont
811         isn't found.
812         
813         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
814         Free dash_list.
815
816         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
817         Don't leak string.
818         
819 2001-01-20  Havoc Pennington  <hp@pobox.com>
820
821         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
822         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
823         me, matches Pango
824
825 2001-01-22  Havoc Pennington  <hp@redhat.com>
826
827         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
828
829         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
830
831         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
832         Remove, move back to gdk-pixbuf
833
834         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
835         to all the word functions
836
837         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
838         before doing anything on NULL layout or if we don't have the focus
839
840         * gtk/testtext.c (fill_example_buffer): "justification"
841
842         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
843         to be called "justification" not "justify"
844
845         * demos/gtk-demo/textview.c (create_tags): "justification"
846         
847         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
848
849 2001-01-22  Alexander Larsson  <alexl@redhat.com>
850
851         * gdk/gdkwindow.c (gdk_window_invalidate_region):
852         Don't leak visible_region. Use visible_region instead of region.
853         
854         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
855         Don't do extra gdk_drawable_ref(). This is not X.
856         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
857         gdk_fb_focused_window is ref:ed.
858         (gdk_fb_window_send_crossing_events): Watch out for destroyed
859         windows.
860
861 2001-01-22  Alexander Larsson  <alexl@redhat.com>
862
863         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
864         Don't leak the PangoFontDescriptor.
865
866 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
867
868         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
869         when not realized.
870         (gtk_tree_view_scroll_to_cell): Make work when not realized.
871         (gtk_tree_view_realize): add scroll_to support
872         (gtk_tree_view_finalize): add a finalize method.  Populate.
873         (gtk_tree_view_insert_column): ref and sink the column.
874         (gtk_tree_view_append_column): ref and sink the column.
875         (gtk_tree_view_queue_draw_node): New function to handle redrawing
876         individual nodes.  Should make the code much more efficient, if
877         actually used.
878
879 2001-01-19  Havoc Pennington  <hp@redhat.com>
880
881         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
882         byte_offset variable was being used to mean both "offset into
883         layout" and "offset into buffer line" which was no longer true
884         with addition of preedit string; fix
885
886 2001-01-19  Havoc Pennington  <hp@redhat.com>
887
888         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
889
890         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
891         function
892
893         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
894         implement
895
896         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
897         scroll_to_cell, matches TextView scroll functions better
898         (gtk_tree_view_tree_to_widget_coords): new function
899         (gtk_tree_view_widget_to_tree_coords): new function
900         (gtk_tree_view_get_visible_rect): new function
901         (gtk_tree_view_get_path_at_pos): accept negative coordinates
902         (gtk_tree_view_draw_node_focus_rect): new function moved from
903         draw_focus, also, use width of bin_window as width of the focus
904         rect
905         (gtk_tree_view_expand_row): fix bug where it didn't recognize
906         already-expanded rows
907         (gtk_tree_view_get_cell_rect): new function
908         (gtk_tree_view_get_path_at_pos): return the click position
909         relative to the passed-in cell
910         (gtk_tree_view_set_expander_column): new function
911
912         * configure.in: remove gtk-config-2.0 chmod
913
914         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
915         and properly handle drags with targets we don't understand
916         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
917         scrolling anyway
918         (gtk_text_view_drag_drop): stop scrolling here though, and set the
919         mark invisible
920
921         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
922         function
923         (gtk_drag_dest_get_target_list): new function
924         (gtk_drag_dest_set_target_list): new function
925         
926         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
927
928         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
929         related to drag-and-drop
930
931 2001-01-19  Alexander Larsson  <alexl@redhat.com>
932
933         * gdk/linux-fb/gdkprivate-fb.h:
934         Define EMULATE_GDKFONT.
935         Add extra pango_font stuff to GfkFontPrivate.
936         
937         * gdk/linux-fb/gdkdrawable-fb2.c:
938         * gdk/linux-fb/gdkfont-fb.c:
939         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
940         emulation using PangoFont.
941
942 2001-01-17  Havoc Pennington  <hp@pobox.com>
943
944         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
945         all the non-deprecated set_foo functions. Added missing object
946         properties, and added g_object_notify() to setters. 
947         Wrote docs.
948         
949 2001-01-18  Tor Lillqvist  <tml@iki.fi>
950
951         * gtk/gtkmain.c
952         * gtk/gtkrc.c: (Win32) Use the new
953         g_win32_get_package_installation_(sub)directory() functions.
954
955         * config.h.win32.in: New file.
956         
957         * config.h.win32: Removed.
958
959         * configure.in: Output config.h.win32.
960
961         * Makefile.am: Add it to EXTRA_DIST.
962
963         * gtk/gtk.def: Update.
964
965 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
966
967         * gtk/gtklabel.c (gtk_label_size_request): Set the
968         attributes onto the PangoLayout even if they are newly
969         created from label->pattern.
970
971 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
972
973         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
974
975         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
976         structures in functions. Fixes bug where gtk_dataset_*
977         was accidentally still being used in one place, causing
978         every dest side event to be treated independently.
979
980         * gtk/gtkdnd.c: Remove last vestages of handling
981         ::draw (fixes warning)
982         
983         * gtk/gtkentry.[ch]: Add drag and drop support.
984
985         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
986         new function gtk_check_drag_threshhold() for checking
987         to check if (dx,dy) has exceeded the threshhold for starting
988         a drag and use it everywhere.
989
990 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
991
992         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
993         add -I{includedir}/gtk-2.0.
994
995         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
996         gdk/gdk-pixbuf.h: Doc fixups.
997         
998         * gtk/gtkobject.h: Remove trailing , from enum
999
1000 2001-01-17 Alexander Larsson <alexl@redhat.com> 
1001
1002         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
1003         Doh! Mixed up x and y.
1004
1005         * gdk/linux-fb/gdkglobals-fb.c:
1006         Removed gdk_fb_pointer_grab_window_events,
1007         added _gdk_fb_pointer_grab_owner_events and
1008         _gdk_fb_keyboard_grab_owner_events.
1009
1010         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
1011         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
1012         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
1013         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
1014         Send crossing events after ungrab finished.
1015         (gdk_keyboard_grab): Set ..._owner_events
1016         (type_masks): Move out of function.
1017         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
1018         gdk_fb_keyboard_event_window): New functions, return the
1019         window an event should be targeted at. Handles grabs and
1020         event propagation. Can return NULL.
1021         (gdk_event_make): Remove event_mask checking. Now always
1022         returns an event.
1023                 
1024         * gdk/linux-fb/gdkkeyboard-fb.c:
1025         * gdk/linux-fb/gdkproperty-fb.c:
1026         * gdk/linux-fb/gdkselection-fb.c:
1027         Use new event_window/gdk_event_make() behaviour.
1028         
1029         * gdk/linux-fb/gdkmouse-fb.c:
1030         Use new event_window/gdk_event_make() behaviour.
1031         Only send motion events if in the same window.
1032         If grabbed, use cursor from window if sibling of grabbed
1033         window, and cursor from grabbed window otherwise.
1034
1035         * gdk/linux-fb/gdkprivate-fb.h:
1036         Update gdk_fb_window_send_crossing_events, gdk_event_make
1037         and grab varaible declarations. Add gdk_fb_*_event_window().
1038
1039         * gdk/linux-fb/gdkwindow-fb.c:
1040         Use new event_window/gdk_event_make() behaviour.
1041         Keep correct track of focus window.
1042         (gdk_window_set_events): Set all specific button motion masks
1043         if GDK_BUTTON_MOTION_MASK set.
1044
1045         * gtk/gtkdnd.c (gtk_drag_update):
1046         Free info->last_event if gdk_drag_motion returned FALSE.
1047
1048 2001-01-16  Tor Lillqvist  <tml@iki.fi>
1049
1050         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
1051         Eliminate redraws when input-only windows are shown or
1052         hidden. Thanks to jpe@archaeopteryx.com.
1053
1054 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
1055
1056         * docs/faq/gtk-faq.sgml: FAQ update:
1057           - Update to bugzilla
1058           - Add GTK+ and security/SUID/SGID
1059           - Add DnD question
1060
1061 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
1062
1063         * gdk/linux-fb/gdkdnd-fb.c:
1064         Some cleanups.
1065         
1066 2001-01-15  Havoc Pennington  <hp@pobox.com>
1067
1068         * tests/testtreeview.c: add test stuff for CellRendererToggle
1069
1070         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
1071         accessor
1072
1073         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
1074         only toggle on button press (would do release like GtkButton, but
1075         we'd need implicit grab code for treeview cells)
1076
1077 2001-01-16  Tor Lillqvist  <tml@iki.fi>
1078
1079         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
1080
1081         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
1082         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
1083
1084         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
1085         to g_{locale,filename}_{to,from}_utf8 to match current API.
1086
1087         * gtk/makefile.msc.in (gtk_OBJECTS)
1088         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
1089
1090         * gtk/gtk.def: Update.
1091
1092 2001-01-15  Tor Lillqvist  <tml@iki.fi>
1093
1094         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
1095         implementaion that more closely mimics the events that an X server
1096         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
1097         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
1098         with nested preview widgets, for instance, more responsive when
1099         you move the mouse quickly into them.
1100         (find_window_for_pointer_event): Make it actually compile.
1101         (gdk_event_translate): Set send_event to the value of
1102         InSendMessage (). This doesn't really mean the same as X11's
1103         send_event flag, but is close enough, says jpe@archaeopteryx.com
1104
1105 2001-01-15  Alexander Larsson  <alexl@redhat.com>
1106
1107         * gdk/linux-fb/gdkdnd-fb.c:
1108         Implemented drag and drop.
1109         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
1110         when it tries to free and then copy the same event (info->last_event).
1111         I am not sure about why this happens, but will continue looking.
1112
1113 2001-01-15  Alexander Larsson  <alexl@redhat.com>
1114
1115         * gdk/linux-fb/gdkwindow-fb.c:
1116         Use gdk_window_invalidate_rect instead of
1117         gdk_window_invalidate_rect_clear to minimise flashing.
1118         When hiding windows you need to clear the root window though.
1119
1120 2001-01-15  Alexander Larsson  <alexl@redhat.com>
1121
1122         * gdk/linux-fb/gdkdrawable-fb2.c:
1123         For optization, add an full_shapes argument to gdk_fb_clip_region.
1124         If this is false, only the cliprects of the shapes are used.
1125
1126         * gdk/linux-fb/gdkprivate-fb.h:
1127         Export gdk_fb_window_peek_shape.
1128         Add full_shapes to gdk_fb_clip_region.
1129
1130         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
1131         When moving a window, don't clear everything under the it, just the
1132         root window. Makes stuff faster and flash less.
1133         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
1134         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
1135         offset of the shape.
1136         
1137
1138 2001-01-12  Havoc Pennington  <hp@redhat.com>
1139
1140         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
1141         current invalid region, fixes redraw bug while scrolling the 
1142         text widget
1143
1144         * gtk/gtktextview.c, gtk/gtktextview.h:
1145         Rearrange the scrolling/validation/etc. code in a major way, 
1146         so it seems to make sense to me. Probably isn't genuinely that
1147         much better, but...
1148
1149         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
1150         notifies
1151
1152         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
1153
1154 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
1155
1156         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
1157         Hide mouse pointer while rotation. Show it afterwards.
1158
1159 2001-01-12  Alexander Larsson  <alexl@redhat.com>
1160
1161         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
1162         windows in consideration when generating clip region.
1163
1164         * gdk/linux-fb/gdkfb.h:
1165         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
1166
1167         * gdk/linux-fb/gdkprivate-fb.h:
1168         Add shape to GdkWindowFBDatat.
1169         exported gdk_fb_window_get_abs_shape().
1170         removed gdk_fb_draw_lines declaration.
1171
1172         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
1173         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
1174         send focus changes when there is a grabbed window.
1175         (gdk_window_get_pointer): Handle shaped windows.
1176         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
1177         (gdk_fb_window_peek_shape): Returns the shape for a window,
1178         handles GDK_FB_USE_CHILD_SHAPE.
1179         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
1180         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
1181         (gdk_window_shape_combine_mask): Implement.
1182
1183         * gtk/gtkwindow-decorate.c:
1184         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
1185         setting the shape of a window makes the window transparent.
1186
1187 2001-01-11  Havoc Pennington  <hp@redhat.com>
1188
1189         * gtk/gtktreemodelsimple.h: Oops, broke some macros
1190
1191 2001-01-10  Havoc Pennington  <hp@redhat.com>
1192
1193         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
1194         add this function, bug 40251
1195
1196         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
1197         of type macro   
1198
1199 2001-01-11  Alexander Larsson  <alexl@redhat.com>
1200
1201         * acconfig.h:
1202         Added ENABLE_SHADOW_FB
1203
1204         * configure.in:
1205         Added --disable-shadowfb
1206
1207         * gdk/linux-fb/gdkcursor-fb.c:
1208         Update shadowfb when updating cursor
1209
1210         * gdk/linux-fb/gdkdrawable-fb2.c:
1211         Added wrappers for shadowfb that calls  the normal drawable
1212         methods, but calls gdk_shadow_fb_update(bounding box) when
1213         GdkWindows are drawed to.
1214         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
1215         which also returns the bounding box.
1216
1217         * gdk/linux-fb/gdkfb.h:
1218         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
1219
1220         * gdk/linux-fb/gdkgeometry-fb.c:
1221         Update shadowfb when scrolling window.
1222
1223         * gdk/linux-fb/gdkglobals-fb.c:
1224         Add _gdk_fb_screen_angle.
1225         
1226         * gdk/linux-fb/gdkkeyboard-fb.c:
1227         Test code for screen rotation. Shift-F2 in the xlate driver
1228         rotates the screen.
1229
1230         * gdk/linux-fb/gdkmain-fb.c:
1231         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
1232
1233         * gdk/linux-fb/gdkmouse-fb.c:
1234         Use fb_width/height instead of modeinfo.xres/yres.
1235
1236         * gdk/linux-fb/gdkprivate-fb.h:
1237         Added fb_men, fb_width, fb_height & fb_stride. When using
1238         shadow fb these can differ from the framebuffer stuff.
1239         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
1240         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
1241         _gdk_fb_screen_angle. Removed CM, RP.
1242
1243         * gdk/linux-fb/gdkrender-fb.c:
1244         Added code for shadowfb handling and screen rotation using
1245         shadowfb.
1246
1247         * gdk/linux-fb/gdkwindow-fb.c:
1248         Use fb_mem, fb_stride, fb_width, fb_height.
1249         Added recompute_rowstride to reset the rowstride of all windows.
1250         Added gdk_fb_recompute_all() which recomputes rootwindow size,
1251         window abs positions and window rowstrides. Usefull when the
1252         rotation has changed.
1253
1254 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
1255
1256         * docs/faq/gtk-faq.sgml: update to make web site updating easier
1257
1258 2001-01-10  Havoc Pennington  <hp@redhat.com>
1259
1260         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
1261         where sibling == iter
1262         (gtk_tree_store_insert_after): handle sibling == iter
1263         (gtk_tree_store_prepend): remove stamp checks
1264         (gtk_tree_store_insert_before): ditto
1265         (gtk_tree_store_append): ditto
1266         (gtk_tree_store_get_path): ditto
1267         (gtk_tree_store_get_value): ditto
1268         (gtk_tree_store_iter_has_child): ditto
1269         (gtk_tree_store_iter_n_children): ditto
1270         (gtk_tree_store_iter_nth_child): ditto
1271         (gtk_tree_store_insert_after): ditto
1272         (gtk_tree_store_is_ancestor): ditto
1273         (gtk_tree_store_iter_depth): ditto
1274         (gtk_tree_store_insert_before): assert that sibling's parent is
1275         the same as the passed-in parent
1276         (gtk_tree_store_insert_after): assert that sibling's parent is
1277         the same as the passed-in parent
1278
1279         
1280         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
1281         function to get the first iterator in a model
1282         
1283         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
1284         conventionally the "root" in this sense is just NULL afaict.
1285
1286         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
1287         where sibling == iter
1288         (gtk_list_store_insert_after): handle case where sibling == iter
1289
1290         * tests/testtreeview.c (run_automated_tests): fairly lame basic
1291         automated tests for ListStore, TreeStore
1292
1293         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
1294         (gtk_list_store_insert): update tail pointer, and fix it to work
1295         (gtk_list_store_insert_before): update tail pointer, and fix it to work
1296         (gtk_list_store_append): use tail to be faster
1297         (gtk_list_store_prepend): fix it, update tail pointer
1298         (gtk_list_store_insert_after): fix it, update tail pointer
1299
1300         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
1301         the list
1302
1303 2001-01-09  Havoc Pennington  <hp@redhat.com>
1304
1305         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
1306         is NULL due to a pending resize
1307
1308         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
1309         column width to values less than 1
1310
1311         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
1312         width to be between min/max width, and still set the width 
1313         even if autosize is turned on, so the tree view can use this 
1314         function in order to autosize.
1315         (gtk_tree_view_column_init): set initial width to 1 not 0
1316
1317         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
1318         setter function to modify column width, so we get notification
1319         (gtk_tree_view_insert_iter_height): ditto
1320         (gtk_tree_view_calc_size): ditto
1321         (gtk_tree_view_check_dirty): ditto
1322
1323         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
1324         properties to change all the interesting attributes of the tree
1325         view column.
1326         (gtk_tree_view_column_set_header_clickable): rename set_clickable
1327         (gtk_tree_view_column_get_clickable): add
1328         (gtk_tree_view_column_set_cell_renderer): don't unset the current
1329         attributes; assume a cell renderer with equivalent object
1330         properties has been swapped in. Do g_object_notify().
1331         (gtk_tree_view_column_set_visible): g_object_notify
1332         (gtk_tree_view_column_get_sizing): rename from get_col_type
1333         (gtk_tree_view_column_set_sizing): g_object_notify
1334         (gtk_tree_view_column_set_width): add g_object_notify
1335         (gtk_tree_view_column_set_min_width): ditto
1336         (gtk_tree_view_column_set_max_width): ditto
1337         (gtk_tree_view_column_set_title): ditto
1338         (gtk_tree_view_column_set_clickable): ditto
1339         (gtk_tree_view_column_set_widget): ditto
1340         (gtk_tree_view_column_set_justification): ditto
1341
1342 2001-01-09  Havoc Pennington  <hp@redhat.com>
1343
1344         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
1345         there are no rows in the model
1346
1347         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
1348         NULL, then return the start of the list
1349
1350         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
1351         if we can't get any rows from an empty model 
1352
1353         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
1354         extraneous * after function pointer typedef usage
1355
1356         * Makefile.am: don't specify full path to cp and rm
1357
1358         * gtk/gtkcellrenderertextpixbuf.c
1359         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
1360         NULL before dereferencing, fixes a segfault that happened from
1361         time to time
1362
1363         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
1364         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
1365         and reindent the function
1366         (gtk_cell_renderer_pixbuf_get_size): indentation
1367
1368         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
1369         we quit it
1370         (gtk_dialog_add_buttons_valist): add g_return_if_fail
1371         (gtk_dialog_set_default_response): New function, to set default
1372         button
1373         (gtk_dialog_set_response_sensitive): New function, to set 
1374         sensitivity of buttons
1375
1376         * gtk/gtkcellrendererpixbuf.c
1377         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
1378         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
1379
1380         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
1381         handle any G_TYPE_OBJECT subclass, not just the base class, and 
1382         also boxed types.
1383         (_gtk_tree_data_list_value_to_node): ditto
1384
1385         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
1386         --gtk-debug=tree
1387
1388         * gtk/gtkmain.c: add GTK_DEBUG_TREE
1389
1390         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
1391
1392 2001-01-09  Tor Lillqvist  <tml@iki.fi>
1393
1394         * gdk/win32/gdkevents-win32.c: Implement better mouse
1395         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
1396         (find_window_for_pointer_event): New function.
1397         (gdk_event_translate): Use it when handling mouse events.
1398
1399 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
1400
1401         * configure.in:
1402         Added --with-included-loaders option
1403
1404         * gdk-pixbuf/Makefile.am:
1405         * gdk-pixbuf/gdk-pixbuf-io.c:
1406         Add support for including selected gdk-pixbuf loaders only.
1407
1408         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
1409         gtk_window_set_has_frame):
1410         Added inline documentation.
1411
1412         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
1413         * docs/reference/gdk/tmpl/windows.sgml:
1414         Added inline documentation.
1415
1416 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
1417
1418         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
1419         realizing buttons that have already been realized.
1420
1421 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
1422
1423         * tests/testtreeview.c (main): Show menu items before adding to
1424         option menu.
1425
1426         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
1427         around if we kill them.
1428
1429         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
1430         Return if we pass in a NULL model.
1431
1432 2001-01-08  Havoc Pennington  <hp@redhat.com>
1433
1434         * tests/testtreeview.c: hack on this some
1435
1436         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
1437         gtk_tree_store_set_valist, v is for arrays, valist for varargs
1438         list
1439         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
1440
1441         * gtk/gtkliststore.h: Add varargs set() and get() convenience
1442         functions
1443
1444 2001-01-08  Alexander Larsson  <alexl@redhat.com>
1445
1446         * gtk/gtkwindow-decorate.[hc]:
1447         * gtk/Makefile.am:
1448         New files. Contains an implementation of a minimal WM for
1449         linux-fb.
1450
1451         * gtk/gtkwindow.h:
1452         Add the possibility for GtkWindows to specify a frame. This
1453         is used for the window decoration code, but could concievably
1454         be used for X programs too (xmms style windows).
1455         GtkWindow->frame is the toplevel window if the window is framed.
1456         The signal frame_event gets all events that are targeted to
1457         GtkWindow->frame.
1458         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
1459         
1460         * gtk/gtkwindow.c:
1461         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
1462         Call out to gtkwindow-decorate.c for WM support in linx-fb.
1463
1464 2001-01-08  Alexander Larsson  <alexl@redhat.com>
1465
1466         * docs/README.linux-fb:
1467         Correct filename ~/.pangoft2_aliases
1468
1469         * gdk/gdkwindow.h:
1470         Added new function gdk_window_get_decorations.
1471
1472         * gdk/linux-fb/gdkfb.h:
1473         Removed _gdk_window_get_decorations declaration.
1474         Renamed _gdk_window_set_child_handler to
1475         gdk_fb_window_set_child_handler.
1476
1477         * gdk/linux-fb/gdkwindow-fb.c:
1478         Renamed _gdk_window_set_child_handler to
1479         gdk_fb_window_set_child_handler.
1480
1481         * gdk/x11/gdkwindow-x11.c:
1482         New function gdk_window_get_mwm_hints().
1483         Implemented gdk_window_get_decorations.
1484
1485         * docs/reference/gdk/tmpl/windows.sgml:
1486         * docs/reference/gdk/gdk-sections.txt:
1487         Added gdk_window_get_decorations docs.
1488         
1489 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
1490
1491         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
1492         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
1493         gdk_fb_window_send_crossing_events):
1494         Possibly send focus events when the mouse moves from one
1495         window to another.
1496
1497 2001-01-07  Tor Lillqvist  <tml@iki.fi>
1498
1499         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
1500         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
1501         to match current API.
1502
1503         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
1504         environment variable is set, don't call g_error when on a
1505         palettized (PseudoColor) display. Some people want to use GTK+ 
1506         in 256-colour mode even though works only partially.
1507
1508         * gdk/gdk.def
1509         * gtk/gtk.def
1510         * gtk/makefile.mingw.in: Update.
1511
1512 2001-01-05  Havoc Pennington  <hp@redhat.com>
1513
1514         * tests/testtreeview.c: hack on this a bit
1515
1516         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
1517         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
1518
1519         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
1520         was spelled incorrectly
1521         (GTK_IS_TREE_MODEL_SIMPLE): ditto
1522
1523         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
1524         from gtk_tree_view_set_headers_active   
1525
1526         * gtk/gtktexttag.c:
1527         (gtk_text_tag_get_property): handle PROP_DIRECTION
1528         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
1529         properties, bug 40235
1530
1531         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
1532         forward_to_line_end
1533
1534 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
1535
1536         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
1537         modules/input/gtkimcontextxim.c: Adapt to new prototypes
1538         for unicode,locale,filename conversion functions.
1539
1540 2001-01-05  Havoc Pennington  <hp@redhat.com>
1541
1542         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
1543         broken if called on the first position in the buffer.
1544
1545         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
1546         forward_to_delimiters to be called only if we aren't already at
1547         the delimiters.
1548
1549 2001-01-05  Havoc Pennington  <hp@redhat.com>
1550
1551         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
1552
1553 2001-01-05  Alexander Larsson  <alexl@redhat.com>
1554
1555         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
1556         colormap in here. Sync from X port.
1557         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
1558         Sync from X port.
1559         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
1560         This happens now and then, and i don't think it is a bug.
1561         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
1562         != endpoint.
1563         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
1564         GDK_LINE_SOLID.
1565
1566         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
1567         some of the fields filled in at least.
1568
1569         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
1570         miLineArcD is no more, remove it from the function definition.
1571
1572 2001-01-04  Havoc Pennington  <hp@redhat.com>
1573
1574         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
1575         this
1576
1577         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
1578         user_data instead of tree_node
1579
1580         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
1581         TREE_VIEW_COLUMN_SIZE
1582
1583         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
1584         "size" field to "width" finishes bug 40061
1585
1586         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
1587         for bitfields, bug 40268
1588
1589 2001-01-04  Havoc Pennington  <hp@redhat.com>
1590
1591         Rename some stuff:
1592         
1593         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
1594
1595         s/GtkModelSimple/GtkTreeModelSimple/g;
1596         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
1597         s/gtk_model_simple/gtk_tree_model_simple/g;
1598         s/gtkmodelsimple/gtktreemodelsimple/g;
1599
1600         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
1601
1602         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
1603         s/column_set_col_type/column_set_sizing/g;
1604
1605         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
1606         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
1607
1608         s/GtkCellRendererType/GtkCellRendererState/g;
1609         
1610         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
1611         (gtk_cell_renderer_toggle_class_init): change "state" property to
1612         "active", to match GtkToggleButton
1613         (gtk_cell_renderer_toggle_get_active): new function, bug
1614         40269
1615         (gtk_cell_renderer_toggle_set_active): new function
1616         (gtk_cell_renderer_toggle_set_property): route changes to toggle
1617         state through gtk_cell_renderer_set_active
1618
1619 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
1620
1621         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
1622         temporarily until they work again.  Brought up to date with
1623         changes in the model.
1624         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
1625         model.
1626
1627 2001-01-04  Havoc Pennington  <hp@redhat.com>
1628
1629         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
1630         equal to the line length, then position iterator before paragraph 
1631         separators. Fixes crash reported by Mikael Hermansson when
1632         pressing left arrow from the start of a line.   
1633
1634         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
1635         about byte indexes off the end
1636         (iter_set_from_char_offset): add g_error about char offsets
1637         off the end
1638
1639 2001-01-03  Havoc Pennington  <hp@redhat.com>
1640
1641         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
1642
1643         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
1644         of private functions; remove inclusion of private headers.
1645
1646         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
1647         function, so we don't need private functions in gtktextdisplay.c
1648
1649         * gtk/gtktextiterprivate.h: underscore-ification
1650
1651         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
1652         to instead say "only useful to implement widgets"
1653
1654         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
1655         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
1656         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
1657
1658         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
1659         This function was completely broken
1660
1661         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
1662
1663         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
1664
1665         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
1666
1667         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
1668
1669         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
1670
1671         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
1672
1673         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
1674         gtk_paint_layout
1675
1676         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
1677         gtk_paint_layout
1678
1679         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
1680         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
1681         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
1682         which were not implemented.     
1683
1684         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
1685         insert_pixbuf signal. Rename delete_text to delete_range since it
1686         also deletes pixbufs and child anchors. This almost closes bug
1687         40245 (still need to deal with child anchors)
1688
1689         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
1690         insert_pixbuf, change signal names as appropriate, change types of
1691         signals taking marks/tags to have the specific type, not just
1692         G_TYPE_OBJECT
1693         
1694         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
1695         closes bug 40051
1696
1697         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
1698         unnecessary remove_contents() call
1699         (gtk_option_menu_class_init): add a "changed" signal, closes
1700         bug 40039
1701         (gtk_option_menu_update_contents): emit "changed" if the 
1702         active menu item changes
1703
1704         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
1705         cast to GtkObject, reported by Jonas Borgstrom
1706         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
1707         we can't do stuff with side effects in finalize. Instead, spew a
1708         warning if the loader isn't closed.
1709
1710         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
1711         colormap in here, non-X ports probably need to sync to this change
1712
1713         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
1714         assertion that colormap != NULL, you can set the colormap to NULL
1715         if you like.
1716         
1717         * Makefile.am: remove gtk-config-2.0
1718
1719         * configure.in: Use pkg-config to locate GLib. Remove
1720         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
1721         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
1722         Use pkg-config to locate Pango. Output correct Pango libs to
1723         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
1724
1725         * Makefile.am (pkgconfig_DATA): install only target-specific pc
1726         files
1727         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
1728         X11 pc files
1729
1730         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
1731         unref from here
1732
1733 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
1734
1735         * configure.in:
1736         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
1737
1738 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
1739
1740         * gtk/gtktextlayout.c
1741         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
1742         variable when moving back onto a single line.
1743
1744 2001-01-01  Havoc Pennington  <hp@redhat.com>
1745
1746         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
1747
1748         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
1749
1750         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
1751         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
1752
1753 2001-01-01  Havoc Pennington  <hp@redhat.com>
1754
1755         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
1756
1757         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
1758         GtkTextAttributes
1759
1760         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
1761         #40246
1762         (gtk_text_attributes_copy_values): rename from 
1763         gtk_text_attributes_copy
1764         (gtk_text_attributes_copy): a more standard GTK copy function, 
1765         which returns a new object
1766
1767 2001-01-01  Havoc Pennington  <hp@redhat.com>
1768
1769         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
1770         
1771         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
1772         don't fill in tree_view->priv->selection, kind of an unexpected
1773         side effect
1774
1775         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
1776         gtkintl.h
1777         
1778         * gtk/gtkcellrenderer.c: Remove definition of _ and include
1779         gtkintl.h
1780         (gtk_cell_renderer_get_property): remove calls to g_value_init
1781
1782         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
1783         gtkintl.h
1784
1785         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
1786         and include gtkintl.h
1787         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
1788         property names
1789
1790         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
1791         GtkTreeSelection
1792         (_gtk_tree_selection_new_from_with_view): rename, return
1793         GtkTreeSelection
1794         (_gtk_tree_selection_set_tree_view): rename with uscore
1795         (gtk_tree_selection_get_selected): fill in the "model" out param
1796         first, so it gets filled in even if we return at the top of the 
1797         function
1798         (gtk_tree_selection_real_select_all): add a comment and an else{}
1799         to clarify this a bit
1800         (gtk_tree_selection_real_unselect_all): add the same else{}
1801
1802         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
1803         set_tree_view to have underscore prefixes, move them to the
1804         private header, fix return type of new_with_tree_view
1805         (struct _GtkTreeSelection): mark struct
1806         fields private  
1807
1808         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
1809         GtkTreeModelFlags, not a guint
1810         (gtk_tree_path_prev): return gboolean not gint
1811         (gtk_tree_path_up): return gboolean not gint
1812
1813         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
1814         return GtkTreeModelFlags, not a guint
1815
1816         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
1817         that child model is non-null before unrefing it
1818         (g_value_int_compare_func): make this a qsort compare func, not 
1819         a boolean predicate
1820
1821         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
1822         (add -umn to the end), and mark it unimplemented
1823         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
1824         I don't see what it's for - doesn't the model always sort itself?
1825         (gtk_tree_model_sort_set_compare): this had the wrong signature
1826
1827         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
1828         Fix the docs to say that it destructively replaces existing
1829         attributes (previously said that it added attributes).
1830         (gtk_tree_view_column_set_visible): canonicalize bool before
1831         equality testing. Also, check for realization before
1832         hiding/showing the tree_column->window; if this window could exist
1833         before realization, then it's busted and needs fixing, we can't 
1834         create GDK resources pre-realization. Also, remove
1835         superfluous queue_resize(), since set_size() does that for us.
1836         (gtk_tree_view_column_set_col_type): check realization before 
1837         using tree_column->window
1838
1839         * gtk/gtktreedatalist.c: fix filename in copyright notice
1840
1841 2000-12-31  Havoc Pennington  <hp@pobox.com>
1842
1843         * gtk/gtktextview.c: Rearrange all the
1844         scroll-while-dragging-or-selecting code to be different, not
1845         necessarily better. ;-)
1846         (gtk_text_view_scroll_to_mark): Change this
1847         function to take within_margin as a fraction instead of a pixel
1848         value, and to take alignment arguments (indicating where to align 
1849         the mark inside the visible area)
1850         
1851         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
1852         to GtkObject
1853
1854         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
1855         behavior so that offsets past the end of the line are not 
1856         allowed, and an offset equal to the line length moves the iterator
1857         to the next line
1858         (gtk_text_iter_set_line_index): make parallel change
1859         (gtk_text_iter_get_bytes_in_line): add this function
1860         
1861         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
1862         of byte indexes off the end of the line; byte index at the end of
1863         the line now returns FALSE and doesn't fill in the requested
1864         values, byte index past the end of the line is an error.  Also,
1865         don't allow -1 offset anymore, since its meaning is unclear.
1866
1867         This change exposes some bug in visual cursor motion, where we
1868         end up with a huge invalid byte index; needs fixing. Symptom of 
1869         bug is a crash when you hit up arrow.
1870         
1871         (_gtk_text_line_char_locate): match the change to byte_locate
1872
1873         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
1874         from start of line properly. fixes bug reported by Mikael
1875         Hermansson where backspace would delete all text before the
1876         cursor.
1877
1878 2000-12-30  Tor Lillqvist  <tml@iki.fi>
1879
1880         * gdk/win32/gdkwindow-win32.c
1881         (gdk_window_impl_win32_get_visible_region): New function, as in
1882         the X11 backend.
1883         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
1884         instead of duplicating the same code here.
1885
1886         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
1887         GDK_COLORMAP macro.
1888
1889         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
1890         destroy function.
1891         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
1892         access that.
1893
1894         * gtk/gtk.def: Update.
1895
1896         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
1897
1898 2000-12-30  Havoc Pennington  <hp@pobox.com>
1899
1900         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
1901         colormap on input only windows, to avoid special cases all over
1902         the code for these windows.
1903
1904 2000-12-26  Tor Lillqvist  <tml@iki.fi>
1905
1906         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
1907         we are on a palettized display ("PseudoColor" in X11), as the code
1908         for that doesn't work anyway, and never has.
1909
1910 2000-12-22  Alexander Larsson  <alexl@redhat.com>
1911
1912         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
1913         Don't use isprint() for chars > 255.
1914
1915 2000-12-21  Havoc Pennington  <hp@redhat.com>
1916
1917         * tests/testtreeview.c: more work
1918
1919 2000-12-21  Alexander Larsson  <alexl@redhat.com>
1920
1921         * docs/README.linux-fb:
1922         Update the docs to the new pangoft2 way.
1923
1924 2000-12-21  Alexander Larsson  <alexl@redhat.com>
1925
1926         * configure.in:
1927         For linux-fb get the pangoft2 cflags and libs. This needs a recent
1928         pango version.
1929         Remove modules/linux-fb/Makefile.
1930
1931         * gdk/linux-fb/gdkdrawable-fb2.c:
1932         Render glyphs using freetype.
1933
1934         * gdk/linux-fb/gdkfb.h:
1935         Add new fb-specific functions needed for managing windows.
1936
1937         * gdk/linux-fb/gdkmain-fb.c:
1938         Remove gdk_font_init/fini() calls.
1939
1940         * gdk/linux-fb/gdkpango-fb.c:
1941         Remove old implementation. Use pangoft2 instead.
1942
1943         * gdk/linux-fb/gdkprivate-fb.h:
1944         Remove PangoFBFont and related stuff.
1945
1946         * gdk/linux-fb/gdkwindow-fb.c:
1947         Implement drawable->get_visible_region.
1948         Implement support for _gdk_window_set_child_handler () and
1949         _gdk_window_get_decorations().
1950
1951         * modules/Makefile.am:
1952         Remove linux-fb subdir.
1953
1954         * modules/linux-fb/*:
1955         Removed all.
1956         
1957 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
1958
1959         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
1960         calls, as they are no longer needed.
1961
1962         * gtk/gtktreemodelsort.c: Fix up the comparison code.
1963         
1964         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
1965         figure out how to emit a signal on an interface.
1966
1967 2000-12-20  Havoc Pennington  <hp@redhat.com>
1968
1969         * tests: new directory to contain tests, gtk/test* should move
1970         here sometime (with appropriate on-cvs-server hackery)
1971
1972         * tests/testtreeview.c, tests/Makefile.am: a test
1973         
1974         * configure.in (AC_OUTPUT): add tests/Makefile
1975
1976         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
1977         and "invisible_set" which were missing
1978
1979         * gtk/gtkrbtree.h: some cheesy indentation fix
1980         
1981 2000-12-20  Alexander Larsson  <alexl@redhat.com>
1982
1983         * gtk/gtkinvisible.c (gtk_invisible_realize):
1984         Attach the style to the window so that the style it is not
1985         leaked when unrealizing the window.
1986
1987 2000-12-18  Havoc Pennington  <hp@redhat.com>
1988
1989         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
1990         begin/end user action where appropriate
1991         (gtk_text_view_commit_handler): add begin/end user action
1992
1993         * gtk/gtktextbuffer.c: add begin/end user action signals, and
1994         bracket interactive operations with begin/end user action pair.
1995         
1996         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
1997         "interactive" arg from insert_text and delete_text signals.
1998         Add begin_user_action, end_user_action signals
1999         (gtk_text_buffer_begin_user_action): 
2000         (gtk_text_buffer_end_user_action): New functions to delimit 
2001         a user-visible action
2002
2003         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
2004         signals.
2005         
2006 2000-12-18  Havoc Pennington  <hp@redhat.com>
2007
2008         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
2009         was pretty non-working.
2010
2011         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
2012         by passing the length to g_utf8_validate().
2013
2014 2000-12-16  Havoc Pennington  <hp@pobox.com>
2015
2016         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
2017         Port to GObject, can go back in gdk-pixbuf after setting up 
2018         a gdk-pixbuf-marshal.h header over there.
2019
2020         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
2021         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
2022         args
2023         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
2024         set
2025         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
2026         here, do it when we create the buttons later
2027         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
2028         (gtk_tree_view_map): paranoia checks that column->button is shown 
2029         and unmapped
2030         (gtk_tree_view_size_request): only request visible children.
2031         Move header size calculation in here, for cleanliness, and 
2032         to maintain invariants for child widgets if we eventually 
2033         let users set different children inside the buttons
2034         (gtk_tree_view_map_buttons): factor out code to map buttons,
2035         since it was being called several times
2036         (gtk_tree_view_size_allocate_buttons): move_resize the drag
2037         windows instead of just moving them; their height may change 
2038         if we allow random widgets in there, or the theme changes.
2039         (gtk_tree_view_size_allocate): move button size allocation 
2040         above emitting the scroll signals, to ensure a sane state when we
2041         hit user code
2042         (gtk_tree_view_button_release): remove queue_resize after
2043         tree_view_set_size(), set_size() will handle any resize queuing
2044         that's needed
2045         (gtk_tree_view_focus_in): just queue a draw, don't fool with
2046         draw_focus goo
2047         (gtk_tree_view_focus): use gtk_get_current_event() and
2048         gdk_event_get_state()
2049         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
2050         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
2051         semicolon
2052         (gtk_tree_view_create_button): show the button here
2053         (gtk_tree_view_button_clicked): actually emit the clicked signal
2054         on the column
2055         (_gtk_tree_view_set_size): return right away if the size is
2056         unchanged, as a cheesy optimization
2057         (gtk_tree_view_setup_model): rename set_model_realized to 
2058         setup_model to match the flag that indicates whether we've 
2059         called it
2060         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
2061         exist, because set_scroll_adjustment does that and it shouldn't
2062         matter what order you call these in
2063         (gtk_tree_view_get_vadjustment): ditto
2064         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
2065         for paranoia
2066         (gtk_tree_view_set_headers_visible): call
2067         gtk_tree_view_map_buttons() instead of using cut-and-paste code
2068         (gtk_tree_view_append_column): clarify whether the return value
2069         is the count of columns before or after, and do the increment 
2070         separately from the return statement so you can tell from the code.
2071         (gtk_tree_view_remove_column): ditto
2072         (gtk_tree_view_insert_column): ditto
2073         (gtk_tree_view_get_column): remove g_return_if_fail for columns
2074         outside the existing range, the docs say that outside-range
2075         columns are allowed, so we handle them as documented. (Presumably
2076         this allows a nice loop with column != NULL as test.)
2077         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
2078         mean (left/right/center etc.).
2079         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
2080         (gtk_tree_view_expand_row): add docs
2081         (gtk_tree_view_collapse_row): add docs
2082
2083         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
2084         function to emit the clicked signal on a column
2085         
2086         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
2087         state of an event
2088         (gdk_event_get_time): don't treat GDK_SCROLL 
2089         as a button event, remove default case from switch so gcc 
2090         will whine if we don't explicitly handle all event types
2091
2092         * gtk/gtktreeselection.h: added some FIXME 
2093         
2094         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
2095         "columns" to "n_columns" and "column" to "columns" for clarity
2096
2097 2000-12-16  Havoc Pennington  <hp@pobox.com>
2098         
2099         * gtk/gtktextiter.c: General cleanup of the log attr iteration
2100         stuff. This should make e.g. the delete key work again in the
2101         text widget...
2102         (gtk_text_iter_forward_cursor_positions): handle negative count
2103         (gtk_text_iter_backward_cursor_positions): handle negative count
2104         (gtk_text_iter_forward_word_ends): handle negative count
2105         (gtk_text_iter_backward_word_starts): handle negative count
2106
2107         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
2108         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
2109         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
2110         GObject. No doubt will cause breakage.
2111
2112         * demos/gtk-demo/textview.c: remove hacks around
2113         non-GObject-ification of the text objects
2114
2115         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
2116         the text tag
2117         
2118 2000-12-14  Havoc Pennington  <hp@pobox.com>
2119
2120         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
2121         that we have Xrender
2122
2123 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
2124
2125         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
2126         Add two virtualized functions gdk_drawable_get_clip_region - to
2127         get the clip region when drawing.
2128         
2129         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
2130         use invalidate_region.
2131
2132         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
2133         region.
2134
2135         * acconfig.h configure.in: Check for Xft. For now, assume
2136         that if Xft is found, Pango was compiled with Xft support
2137         as well.
2138
2139         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
2140         gdk_colormap_query_color().
2141         
2142         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
2143         with Xft if appropriate.
2144
2145         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
2146         a pangoxft context if we have XFT and the environment
2147         variable GD_USE_XFT is set.
2148         
2149         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
2150         and also possibly an XftDraw structure.
2151
2152         * gtk/gtkfontsel.c: Handle the case where the font from the
2153         style doesn't match any of the fonts a bit better.
2154         
2155         * gtk/testgtk.c: Add tabs between directional segments for
2156         hebrew/arabic test. (Not really necessary, just a little
2157         prettier.)
2158
2159 2000-12-14  Havoc Pennington  <hp@redhat.com>
2160
2161         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
2162         reading a file
2163
2164 2000-12-14  Havoc Pennington  <hp@redhat.com>
2165
2166         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
2167         unused call to get_last_line()
2168
2169         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
2170         here until boxed is working (and maybe after that - we should
2171         really not gratuitously break old code)
2172
2173         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
2174         specific types for font_desc and tabs args, move them to
2175         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
2176         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
2177
2178         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
2179         use GTK_TYPE_POINTER for signal signatures as a hack-around
2180
2181         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
2182         PangoTabArray
2183
2184         * gtk/gtktextlayout.c (line_display_iter_to_index): 
2185         make static
2186         (line_display_index_to_iter): make static
2187
2188         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
2189         to marshal a string not a boxed
2190
2191         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
2192
2193         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
2194         since the UTF-8 isn't validated yet
2195
2196         * gtk/gtktextsegment.c (char_segment_check_func): don't require
2197         lines to end in '\n'
2198         
2199         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
2200         forward_to_delimiters, and grapheme boundaries
2201         (gtk_text_view_delete_from_cursor): properly handle non-newline
2202         delimiters, and grapheme boundaries
2203
2204         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
2205         to gtk_text_iter_forward_to_delimiters, and make it work properly
2206         if empty lines end with a character other than '\n'
2207
2208         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
2209         position
2210
2211 2000-12-15  Tor Lillqvist  <tml@iki.fi>
2212
2213         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
2214
2215         * gtk/gtk.def
2216         * gdk/gdk.def: Update.
2217
2218         * gdk/win32/gdkmain-win32.c
2219         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
2220         gdkmain-win32.c here.
2221
2222         * gdk/win32/makefile.mingw.in (all): No need to make
2223         gdk-win32res.o here, the makefile one step up will call us to make
2224         it.
2225
2226         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
2227         gdkkeys-win32.
2228
2229         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
2230
2231         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
2232         call to g_source_add().
2233
2234         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
2235         leak. Thanks to Andreas Kemnade.
2236
2237 2000-12-13  Havoc Pennington  <hp@pobox.com>
2238
2239         * gtk/gtktextbtree.h: Remove double _ in front of some functions
2240
2241         * gtk/gtktext*.[hc]: update accordingly
2242         
2243 2000-12-13  Havoc Pennington  <hp@pobox.com>
2244
2245         * gtk/gtktextbtree.h: Put _ in front of every function in this 
2246         header file
2247
2248         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
2249
2250 2000-12-13  Alex Larsson  <alexl@redhat.com>
2251
2252         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
2253         Add support for ps2 intellimouse.
2254
2255         * gdkkeyboard-fb.c:
2256         Move shift-F1 repaint handling to xlate handler only.
2257         
2258         * docs/README.linux-fb:
2259         Add imps2 to docs.
2260         Document the new refresh keys.
2261         
2262 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
2263
2264         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
2265
2266         * gtk/gtkbox.c: change property types from (u)long to (u)int for
2267         ::position and ::padding.
2268
2269         * gtk/gtkcontainer.c: make ::border_width an INT property.
2270
2271         * gtk/gtkpacker.c: make ::position an INT property.
2272
2273         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
2274         guard against NULL h/v scrollbars, since this is used at construction
2275         time.
2276
2277         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
2278         internal gtk_clist_constructor().
2279
2280         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
2281         gtk_ctree_constructor().
2282
2283         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
2284         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
2285
2286         * docs/reference/Makefile.am: fun stuff, disabled docs generation
2287         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
2288
2289         * gtk/gtkwidget.[hc]:
2290         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
2291         and gtk_widget_get().
2292         (gtk_widget_new): use g_object_new_valist().
2293         (gtk_widget_set): use g_object_set_valist().
2294
2295         * gtk/gtkobject.[hc]:
2296         removed gtk_object_arg_get_info(), gtk_object_getv(),
2297         gtk_object_query_args(), gtk_object_newv(),
2298         gtk_object_class_add_signals(),
2299         gtk_object_class_user_signal_new(),
2300         gtk_object_class_user_signal_newv(),
2301         gtk_object_arg_set(), gtk_object_arg_get(),
2302         gtk_object_args_collect(),
2303         gtk_object_default_construct(),
2304         gtk_object_constructed(),
2305         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
2306         removed nsignals, signals and n_args members from GtkObjectClass.
2307         (gtk_object_new): use g_object_new_valist().
2308         (gtk_object_set): use g_object_set_valist().
2309         (gtk_object_get): use g_object_get_valist().
2310         
2311         * gtk/gtkcompat.h: define gtk_object_default_construct().
2312         
2313         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
2314         g_object_new().
2315
2316         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
2317         fucntions, cleaned up method assignments (make sure your structures
2318         are setup properly before calling out). removed all GTK_CONSTRUCTED
2319         hacks ;)
2320
2321 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
2322
2323         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
2324         off-by-one error in checks. (Dave Lambert)
2325
2326 2000-12-12  Alexander Larsson  <alexl@redhat.com>
2327
2328         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
2329         Don't free gdk_fb_keyboard twice.
2330
2331 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
2332
2333         * gtk/testgtk.c:
2334         (create_tooltips): 
2335         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
2336         use GObject swapped_signal:: properties instead.
2337
2338         * gtk/gtkcellrenderertoggle.c: 
2339         * gtk/gtkcellrenderertextpixbuf.c: 
2340         * gtk/gtkcellrenderertext.c: 
2341         * gtk/gtkcellrendererpixbuf.c: 
2342         * gtk/gtkcellrenderer.c:
2343         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
2344         missing warnings for invalid property ids, install properties
2345         with g_object_class_install_property() now.
2346         
2347         * gtk/gtksignal.c:
2348         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
2349         
2350 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
2351         
2352         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
2353         to determine if a window is the focus widget within
2354         its toplevel.
2355
2356         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
2357         to be boolean.
2358
2359         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
2360         of the case where the container CAN_FOCUS to here instead
2361         of having it in each individual move-the-focus place.
2362
2363         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
2364         focusing to be geometric in a much more obvious sense. Arrowing
2365         around is still non-intuitive because it isn't perfect and
2366         because entries, etc, grab the arrow keys, but it at least
2367         usually will do what you expect now.
2368         
2369         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
2370         file.
2371
2372         * gtk/gtknotebook.c: Change tabs to be a single item in
2373         the focus chain. Make movement of focus on tabs with arrow
2374         keys wrap around.
2375         
2376         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
2377         CHECK_FIND_CHILD macro to give informative error messages
2378         instead of silent returns.
2379
2380         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
2381         flag since we handle GdkReturn on the tabs.
2382
2383         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
2384         windows rather than sending expose events directly.
2385
2386         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
2387         definition for GtkNotebookPage into .c file, since it is private.
2388
2389         * gtk/testgtk.c (create_notebook): Add option for 
2390         testing borderless notebook.
2391
2392         * gtk/testgtk.c (page_switch): Removed egregious poking
2393         around in GTK+ internals.
2394
2395         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
2396
2397         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
2398         properly through gtk_clist_focus. Make the title headers a
2399         single item in the tab-focus chain, and make left-right wrap
2400         around.
2401
2402         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
2403         focus method so that wrapping around works properly.
2404
2405         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
2406         that is handled for the widget now. 
2407
2408 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
2409
2410         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
2411         widgets as TOPLEVEL.
2412
2413         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
2414         TOPLEVEL widgets are containers.
2415
2416         * gtk/gtkinvisible.h: Remove useless include.
2417
2418 2000-12-11  Havoc Pennington  <hp@redhat.com>
2419
2420         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
2421         Handle chopping off \r\n and 0x2029 in addition to \n before
2422         passing to PangoLayout
2423
2424         * gtk/gtkimcontextsimple.c
2425         (gtk_im_context_simple_get_preedit_string): 
2426         return an empty string if no match is pending
2427
2428         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
2429         assertion that the returned preedit string was sane
2430
2431         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
2432         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
2433         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
2434
2435 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
2436
2437         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
2438         Fix up finalizer to chain to its parent.
2439
2440 2000-12-11  Alexander Larsson  <alexl@redhat.com>
2441
2442         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
2443         Clearified the difference between the keyboard types. Wrote a note
2444         about the magic sysrq key to get out of raw mode.
2445
2446 2000-12-09  James Henstridge  <james@daa.com.au>
2447
2448         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
2449         member to hold masks for detecting the start of a protocol packet.
2450         (mouse_devs): add packet start masks for ps2 and ms device types.
2451         Left the mask for fidmour blank, as I have no idea what it should
2452         be.
2453         (handle_mouse_io): skip bytes until we get to the start of a
2454         packet.  My Logitech mouse seems to be passing an extra NULL pad
2455         byte, and GPM does a similar thing here.
2456         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
2457         this is the ms mouse driver.
2458         (gdk_fb_mouse_ms_packet): fix up button handling, which was
2459         completely broken except for button1.  It was checking the wrong
2460         bit in the packet for the status of the right mouse button, and
2461         wrongly assuming right == button2 rather than 3.  I fixed that and
2462         also added support for middle button (button2).
2463
2464 2000-12-08  Havoc Pennington  <hp@redhat.com>
2465
2466         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
2467         that cause a segfault on text insertion
2468
2469         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
2470         warning
2471
2472         * gtk/gtktextiter.c (test_log_attrs): use
2473         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
2474
2475         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
2476         Get log attrs for a line, using a cache stored on the buffer
2477         
2478         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
2479         reported by Jeff Franks
2480
2481 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
2482
2483         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
2484         /dev/ttyS0 -> /dev/mouse
2485
2486 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
2487
2488         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
2489         Added dummy gdk_fontset_load.
2490
2491 2000-12-08  Alexander Larsson  <alexl@redhat.com>
2492
2493         * docs/README.linux-fb:
2494         * docs/Makefile.am:
2495         Initial GtkFB docs.
2496         
2497         * gdk/linux-fb/Makefile.am:
2498         Define GDK_DATA_PREFIX.
2499
2500         * gdk/linux-fb/gdkmain-fb.c:
2501         Fix typo.
2502         Change default display to /dev/fb0.
2503
2504         * gdk/linux-fb/gdkpango-fb.c:
2505         Add $(prefix)/share/fonts/ to font path.
2506         
2507 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
2508
2509         * gdk/linux-fb/gdkkeyboard-fb.c:
2510         New file containing the abstracted keyboard driver. Most code
2511         taken from gdkinput-ps2.c
2512
2513         * gdk/linux-fb/gdkinput-ps2.c:
2514         Removed file.
2515         
2516         * gdk/linux-fb/Makefile.am:
2517         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
2518
2519         * gdk/linux-fb/gdkcolor-fb.c:
2520         display->fb was renamed to display->fb_fd.
2521
2522         * gdk/linux-fb/gdkcursor-fb.c:
2523         gdk_mouse_get_info -> gdk_fb_mouse_get_info
2524
2525         * gdk/linux-fb/gdkinput.c:
2526         Moved gdk_input_init here from gdkinput-ps2.c
2527
2528         * gdk/linux-fb/gdkmain-fb.c:
2529         display->fb was renamed to display->fb_fd.
2530         Now the tty and the console is opened here instead
2531         of in the keyboard driver. Also check GDK_VT to see what
2532         tty to open.
2533         Move gdk_beep () here from gdkinput-ps2.c
2534         gdk_mouse_get_info -> gdk_fb_mouse_get_info
2535
2536         * gdk/linux-fb/gdkmouse-fb.c:
2537         Add header.
2538         gdk_mouse_get_info -> gdk_fb_mouse_get_info
2539         Return correct keyboard modifiers.
2540         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
2541
2542         * gdk/linux-fb/gdkprivate-fb.h:
2543         Add tty and vt info to display.
2544         Add orignal modeinfo storage to display
2545         Update global functions
2546
2547         * gdk/linux-fb/gdkwindow-fb.c:
2548         Added gdk_fb_window_find_focus().
2549         gdk_mouse_get_info -> gdk_fb_mouse_get_info
2550
2551 2000-12-07  Havoc Pennington  <hp@pobox.com>
2552
2553         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
2554         function, noticed by Alex
2555
2556 2000-12-06  Elliot Lee  <sopwith@redhat.com>
2557
2558         * configure.in: Detect freetype properly
2559
2560         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
2561         above.
2562
2563 2000-12-06  Alexander Larsson  <alexl@redhat.com>
2564
2565         * gdk/linux-fb/Makefile.am:
2566         Add gdkmouse-fb.c
2567         
2568         * gdk/linux-fb/gdkmouse-fb.c:
2569         New file. Abstracted the mouse drivers a bit.
2570
2571         * gdk/linux-fb/gdkcursor-fb.c:
2572         The cursor hide/show functions was moved here from gdkinput-ps2.c.
2573
2574         * gdk/linux-fb/gdkinput-ps2.c:
2575         Removed old mouse handling code. Moved cursor handling code
2576         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
2577         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
2578         gdk_mouse_get_info.
2579
2580         * gdk/linux-fb/gdkmain-fb.c:
2581         Pass NULL pointers for x,y in gdk_mouse_get_info call.
2582
2583         * gdk/linux-fb/gdkprivate-fb.h:
2584         Removed public gdk_fb_find_common_ancestor, added and renamed
2585         functions for the new mouse handling code.
2586
2587         * gdk/linux-fb/gdkwindow-fb.c:
2588         Moved gdk_fb_window_send_crossing_events here. added global
2589         variable gdk_fb_window_containing_pointer. made
2590         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
2591         renamed to gdk_mouse_get_info.
2592
2593 2000-12-06  Alexander Larsson  <alexl@redhat.com>
2594
2595         * gdk/linux-fb/gdkevents-fb.c:
2596         Update to match latest gmain/gsource changes.
2597
2598         * gdk/linux-fb/gdkinput-ps2.c:
2599         Bogus gdk_keymap_get_entries_for_keycode implementation so that
2600         it links. Will be implemented later.
2601
2602 2000-12-03  Havoc Pennington  <hp@pobox.com>
2603
2604         * gdk/Makefile.am: add gdkkeys.[hc]
2605
2606         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
2607         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
2608
2609         * acconfig.h, configure.in: add checks and command line options
2610         for XKB
2611
2612         * gdk/x11/gdkkeys-x11.c: Implement the above functions
2613         
2614         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
2615         and group in the key event
2616
2617         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
2618         field with the low-level hardware key code, and a group
2619         field with the keyboard group
2620
2621         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
2622         and declare a couple globals used for keymap handling
2623         
2624         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
2625         hold down Shift-Control and type a hex number to get a Unicode 
2626         character corresponding to the hex number
2627         (gtk_im_context_simple_get_preedit_string): Fix cursor position
2628         (return bytes not chars)
2629
2630 2000-12-05  Elliot Lee  <sopwith@redhat.com>
2631
2632         * gdk/gdkcolor.h: Make GdkColor specify element sizes
2633         to avoid waste on 64-bit platforms.
2634
2635 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
2636
2637         * INSTALL: Fix link to PNG home, remove reference
2638         to fribidi.
2639
2640         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
2641         
2642         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
2643         tested.)
2644
2645         * gtk/gtkcheckmenuitem.c: Permanently turn on
2646         always_show_toggle.
2647
2648         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
2649         be NULL. (Vladimir Klebanov, #26545)
2650
2651         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
2652         some signed/unsigned comparison problems. (#6510,
2653         David Kaelbling)
2654
2655         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
2656         return type to boolean (Oskar Liljeblad, #18648)
2657
2658 2000-12-05  Alexander Larsson  <alexl@redhat.com>
2659
2660         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
2661         Remove bogus colormap setting.
2662
2663 2000-12-05  Alexander Larsson  <alexl@redhat.com>
2664
2665         * gdk/linux-fb/gdkcolor-fb.c:
2666         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
2667
2668         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
2669         Must set colormap.
2670         
2671 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
2672
2673         * docs/tutorial/gtk-tut.sgml: DND updates
2674
2675 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
2676
2677         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
2678         Remove old debug g_warning().
2679         (gdk_fb_draw_drawable): The src argument can be either a wrapper
2680         or an implementation, just pass the implementation to draw_drawable_2.
2681         
2682         * gdk/linux-fb/gdkprivate-fb.h:
2683         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
2684
2685         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
2686         clear and invalidate area when window is destroyed.
2687         (send_map_events): Remove old commented out code.
2688
2689 2000-12-05  Alexander Larsson  <alexl@redhat.com>
2690
2691         * gdk/linux-fb/gdkpango-fb.c:
2692         Use italic instead of oblique in font aliases.
2693         
2694         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
2695         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
2696         other unsupported functions.
2697
2698 2000-12-04  Havoc Pennington  <hp@redhat.com>
2699
2700         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
2701
2702         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
2703
2704         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
2705
2706         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
2707         hack to avoid infinite loops (synthetic expose event) - 
2708         Owen has more appropriate fixes in a branch he'll check in later.
2709
2710         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
2711         separator, CR, and CRLF as line ends
2712
2713         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
2714         into lines using pango_find_paragraph_boundary(); other bits of
2715         the widget are still going to be broken if the boundary isn't '\n'
2716         though
2717
2718 2000-12-04  Alexander Larsson  <alexl@redhat.com>
2719
2720         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
2721         multiply.
2722
2723         * gdk/linux-fb/gdkpango-fb.c:
2724         Copied some 26.6 scaling macros from pango to clean up the rounding.
2725         (pango_fb_font_get_glyph_info): Correct sign on x value.
2726
2727         * gdk/linux-fb/gdkprivate-fb.h:
2728         Removed unreferenced external functions.
2729
2730         * modules/linux-fb/Makefile.am: Use ` instead of '.
2731
2732         * modules/linux-fb/basic.c:
2733         Remove dead code. In particular the dummy lang engine which broke all
2734         pango layouts in GtkFB. Don't include tables-big.i anymore.
2735
2736         * modules/linux-fb/tables-big.i:
2737         Upgrade to latest version from pango. Left for reference, basic_ranges
2738         moved to basic.c.
2739         
2740 2000-12-04  Havoc Pennington  <hp@redhat.com>
2741
2742         Fix bugs Alex found:
2743         
2744         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
2745         to "draw"
2746
2747         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
2748
2749         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
2750
2751         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
2752         implementation in here, apparently the expose() implementation was
2753         dead code.
2754
2755 2000-12-04  Alexander Larsson  <alexl@redhat.com>
2756
2757         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
2758         Return positive descent.
2759
2760 2000-12-02  Havoc Pennington  <hp@pobox.com>
2761
2762         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
2763         method and signal
2764         
2765         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
2766         calls gdk_window_process_updates() to push the exposes through
2767         (gtk_widget_class_init): No more draw signal, no
2768         gtk_widget_real_draw()  
2769         
2770         * gtk/gtkbin.c (gtk_bin_draw): remove
2771
2772         * gtk/gtkbox.c (gtk_box_draw): remove
2773
2774         * gtk/gtkbutton.c (gtk_button_draw): remove
2775
2776         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
2777
2778         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
2779
2780         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
2781
2782         * gtk/gtkclist.c (gtk_clist_draw): remove
2783
2784         * gtk/gtkentry.c (gtk_entry_draw): remove
2785
2786         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
2787
2788         * gtk/gtkfixed.c (gtk_fixed_draw): remove
2789
2790         * gtk/gtkframe.c (gtk_frame_draw): remove
2791
2792         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
2793
2794         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
2795
2796         * gtk/gtklayout.c (gtk_layout_draw): remove
2797
2798         * gtk/gtklist.c (gtk_list_draw): remove
2799
2800         * gtk/gtklistitem.c (gtk_list_item_draw): remove
2801
2802         * gtk/gtkmenu.c (gtk_menu_draw): remove
2803
2804         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
2805
2806         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
2807
2808         * gtk/gtknotebook.c (gtk_notebook_draw): remove
2809
2810         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
2811
2812         * gtk/gtkpacker.c (gtk_packer_draw): remove
2813
2814         * gtk/gtkrange.c (gtk_range_draw): remove
2815
2816         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
2817
2818         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
2819
2820         * gtk/gtktable.c (gtk_table_draw): remove
2821
2822         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
2823
2824         * gtk/gtktext.c (gtk_text_draw): remove
2825
2826         * gtk/gtktextview.c (gtk_text_view_draw): remove
2827
2828         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
2829
2830         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
2831
2832         * gtk/gtktree.c (gtk_tree_draw): remove
2833
2834         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
2835
2836         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
2837
2838         * gtk/gtkviewport.c (gtk_viewport_draw): remove
2839
2840         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
2841
2842         * gtk/gtkvscale.c (gtk_vscale_draw): remove
2843
2844         * gtk/gtkwindow.c (gtk_window_draw): remove
2845
2846 2000-20-01  Anders Carlsson  <andersca@gnu.org>
2847
2848         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
2849         a GtkToggleButton is both insensitive and active, it was being
2850         drawn by the GtkButton draw handler which doesn't check the
2851         state. Now it's calling gtk_toggle_button_paint instead.
2852         
2853 2000-12-01  Havoc Pennington  <hp@redhat.com>
2854
2855         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
2856         dangling pointers to the appearance attributes from the 
2857         line display
2858
2859         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
2860         width/height to mean "full width/height of drawable"
2861
2862         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
2863         click to select word/line
2864         
2865         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
2866         when getting log attrs. Get a slice, so that pixmaps and stuff
2867         are properly handled.
2868
2869         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
2870         paste into the selection (replaces selection now, previously
2871         crashed or added to selection). Reveals longstanding btree bug -
2872         select multiple lines, middle-click on the selection, boom. This
2873         isn't related to my changes though.
2874
2875         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
2876         PangoLogAttrs changes
2877         (gtk_entry_move_backward_word): ditto
2878
2879         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
2880         functions return bool whether the iter moved onto a
2881         dereferenceable position.
2882  
2883         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
2884         functions for motion in terms of display lines.
2885
2886         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
2887         get the buffer a mark is inside
2888         
2889 2000-12-01  Alexander Larsson  <alexl@redhat.com>
2890
2891         * gdk/linux-fb/Makefile.am:
2892         * modules/linux-fb/Makefile.am:
2893         Freetype 2 final uses freetype-config
2894
2895         * gdk/linux-fb/gdkpango-fb.c:
2896         Upgrade to use Freetype 2 final.
2897         More flexible support for font aliases, this also fixes a bug with
2898         GtkFontSelector, as the aliases must be visible in the font/family list,
2899         or GtkFontSelector reads uninitialized memory.
2900
2901 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
2902
2903         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
2904         XGetIMValues to properly terminate variable argument list, and do
2905         NULL return check for ic_values and xim_styles.
2906
2907         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
2908         Restore preedit state after XmbResetIC().
2909         
2910         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
2911         XvaCreateNestedList() should take XvaNestedList, but not
2912         XvaNestedList*.
2913
2914         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
2915         preedit_draw_callback, preedit_caret_callback): Match
2916         "preedit-changed" signal name to "preedit_changed" to be
2917         consistent to the spec.
2918
2919         * gtk/gtkimcontextsimple.c (check_table):
2920         Match "preedit-changed" to "preedit_changed" to be consistent
2921         to the spec.
2922
2923 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
2924
2925         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
2926         gc->clip_region == NULL>
2927
2928 2000-11-30  Tor Lillqvist  <tml@iki.fi>
2929
2930         Changes by Hans Breuer:
2931         
2932         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
2933         Dont't use negative width and height as max_hints. This fixes
2934         Owen's recent testgtk changes for win32.
2935
2936         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
2937         gdk_win32_hdc_release): These are exported and may be called with
2938         other drawable types than our GdkDrawableImplWin32 (?).
2939
2940         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
2941         so always #define USE_BACKING_STORE.
2942
2943         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
2944         of printf for debugging output.
2945
2946         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
2947         
2948         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
2949
2950         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
2951         declaration.
2952
2953         * gtk/gtktexttypes.h: Ditto.
2954
2955         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
2956         (GDK_VoidSymbol) also if in case of arg check failure.
2957
2958         * gtk/gtkimcontextsimple.c
2959         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
2960         position to the pointer, but to the variable it points to.
2961
2962         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
2963
2964         * gtk/gtk.def: Updates.
2965
2966 2000-11-29  Elliot Lee  <sopwith@redhat.com>
2967
2968         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
2969         GTK_TYPE_TREE_MODEL.
2970
2971 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2972
2973         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
2974         Set the size of the font from the description.
2975         (gdk_text_width): Gross hack that calculates the width
2976         of text by text_length * size/2. This is necessary because
2977         GtkLabel does some ugly gtk_string_width call to calculate
2978         an good size.
2979         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
2980
2981 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
2982
2983         * docs/tutorial/gtk-tut.sgml: DND updates
2984
2985 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2986
2987         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
2988         If you pass width or height == 0 to gdk_window_clear_area they
2989         should be calculated from the window size.
2990
2991 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2992
2993         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
2994         a grab, but no grab-cursor, use the cursor from the grabbed
2995         window. (gdk_fb_window_send_crossing_events): Send normal
2996         enter/leave notifications if grab and owner_events == TRUE.
2997
2998 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2999
3000         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
3001         Do implicit button grabs, even if the window doesn't
3002         want the event.
3003         (gdk_fb_window_send_crossing_events): If there is a
3004         grab, only the grabbed window gets normal enter/leave
3005         notifications. On ungrab go from grabbed window to current.
3006         Don't send any notification to b when propagating from c -> b.
3007         If setting a grab on window, don't set prev_window.
3008         (handle_mouse_input): Send enter/leave events to the window the
3009         mouse is over, not the grabbed one.
3010         
3011 2000-11-28  Elliot Lee  <sopwith@redhat.com>
3012
3013         * gdk/gdkregion-generic.c: Zap warning.
3014         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
3015         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
3016
3017 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
3018
3019         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
3020         The cursor should be hidden if it is part of either the
3021         source or destination region. Not only if it is in both.
3022         (gdk_window_set_transient_for): Silence warnings.
3023
3024 2000-11-28  Alexander Larsson  <alexl@redhat.com>
3025
3026         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
3027         The default mode in X is Pie Arcs, therefore that is
3028         what Gtk+ uses.
3029
3030 2000-11-28  Alexander Larsson  <alexl@redhat.com>
3031
3032         * gdk/linux-fb/gdkinput-ps2.c:
3033         Implement correct EnterNotify/LeaveNotify:
3034         (gdk_fb_window_send_crossing_events): New function that sends
3035         all GdkCrossingEvents from the last mouse-window to the specified
3036         destination.
3037         (gdk_fb_window_visibility_crossing): Removed function.
3038         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
3039         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
3040         instead of gdk_window_get_pointer() for better readability.
3041
3042         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
3043         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
3044
3045         * gdk/linux-fb/gdkprivate-fb.h:
3046         removed gdk_fb_window_visibility_crossing, added
3047         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
3048
3049         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
3050         New function that finds the least common ancestor of two windows.
3051         (gdk_window_show, gdk_window_hide):
3052         Use gdk_fb_window_send_crossing_events.
3053         (gdk_fb_window_move_resize): Send configure events to toplevel
3054         windows. Use gdk_fb_window_send_crossing_events.
3055
3056 2000-11-27  Havoc Pennington  <hp@redhat.com>
3057
3058         * gtk/gtkprivate.h (enum): Remove a trailing comma
3059
3060 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
3061
3062         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
3063         the "changed" callback of the adjustment.  We need to redraw the
3064         spin button's arrows when the adjustment's range changes.
3065         (adjustment_changed_cb): Draw the arrows.
3066         (gtk_spin_button_value_changed): Draw the arrows.
3067
3068 2000-11-23  Alexander Larsson  <alexl@redhat.com>
3069
3070         * gdk/linux-fb/gdkselection-fb.c:
3071         Initial selection implementation.
3072
3073         * gtk/gtkselection.c:
3074         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
3075         requestor in gtk_selection_request.
3076         
3077         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
3078         Added gdk_selection_property atom.
3079
3080         * gdk/linux-fb/gdkprivate-fb.h:
3081         Export _gdk_selection_window_destroyed.
3082         Removed mask_off_x/y from GdkCursorPrivateFB.
3083         Removed hbearing, added top, left to PangoFBGlyphInfo.
3084
3085         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
3086         Call _gdk_selection_window_destroyed
3087         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
3088         the root window has been created.
3089         (static_dx_hack, static_dy_hack, compare_draw_rects,
3090         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
3091         in region. They are already sorted. Instead just traverse them in
3092         reverse if draw_direction < 0.
3093         
3094         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
3095         Double-clicks must be sent after the normal button_press.
3096         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
3097         
3098         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
3099         Pass _gdk_fb_screen_gc instead of NULL.
3100
3101         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
3102         Initialize gdk_selection_property.
3103         (gdk_event_make): Remove unused code.
3104
3105         * gdk/linux-fb/gdkcursor-fb.c:
3106         Make the pixmap for the cursor the same size as the mask. Also remove
3107         the mask_off_x/y fields in GdkCursorPrivateFB and combine
3108         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
3109         Now the whole cursor is visible.
3110
3111         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
3112         Fix bug where xdest+height instead of ydest+height was used
3113         to calculate if the source and dest overlapped. This fixes the
3114         redraw bug when the main window in testgtk was scrolled when
3115         partially covered by a tall window.
3116         Copy rectangles in region in order depending on draw_direction.
3117         Also moved the draw_direction flipping of start_y and end_y into
3118         the gc functions, as this might not be what all of them want.
3119         (gdk_fb_draw_lines): Support dashed lines.
3120         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
3121         so that the text is positioned correctly (was 1 pixel high).
3122
3123         gdk/linux-fb/gdkgc-fb.c:
3124         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
3125         all lines were drawn a pixel to short. Also checked the default of
3126         the rest of the values, and they're the same as X now.
3127
3128         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
3129         Clean up pixel positioning of the glyphs. Just use bgy->top and
3130         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
3131         to all divisions to get correct rounding behaviour.
3132
3133         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
3134         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
3135         Moved start_y/end_y flip into draw_drawable implementations.
3136         Flip also x rendering when draw_direction < 0.
3137         Remove unneccesary multiply with draw_direction.
3138
3139 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
3140
3141         * docs/tutorial/gtk-tut.sgml:
3142           - get rid of gtk_toggle_button_toggled FUD
3143           - start DND section - needs work - based on:
3144                 http://wolfpack.twu.net/docs/gtkdnd/
3145
3146 2000-11-22  Alexander Larsson  <alexl@redhat.com>
3147
3148         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
3149         Correct calculation of font metrics. Now GtkEntrys have sane
3150         size.
3151
3152 2000-11-22  Alexander Larsson  <alexl@redhat.com>
3153
3154         * gdk/gdktypes.h:
3155         Add new type GdkSpan
3156         
3157         * docs/reference/gdk/gdk-sections.txt,
3158         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
3159         gdk/gdkregion.h:
3160         Implement and document gdk_region_spans_intersect_foreach.
3161
3162         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
3163         Add new file gdkrender-fb.c which contains all core
3164         rendering code.
3165         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
3166         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
3167         (optimized rectangle fillers).
3168
3169         * gdk/linux-fb/gdkdrawable-fb2.c:
3170         Move all rendering code to gdkrender-fb.c.
3171         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
3172         Use the new span intersection functions in gdk_fb_fill_spans.
3173         gdk_fb_draw_rectangle() clips filled rectangles and calls
3174         gc->fill_rectangle with the result.
3175         gdk_fb_fill_spans() gets extra argument "sorted".
3176
3177         * gdk/linux-fb/gdkevents-fb.c:
3178         Remove unused includes and defines.
3179         New function gdk_fb_get_time() to get correct time for events.
3180
3181         * gdk/linux-fb/gdkinput-ps2.c:
3182         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
3183         Make sure to set the time of all events.
3184
3185         * gdk/linux-fb/gdkmain-fb.c:
3186         Use gdk_fb_get_time ().
3187
3188         * gdk/linux-fb/gdkprivate-fb.h:
3189         New virtual GC calls: fill_span & fill_rectangle.
3190         Export gdk_fb_get_time().
3191         gdk_fb_fill_spans() gets extra argument "sorted".
3192
3193         * gdk/linux-fb/mi*.c:
3194         Use GdkSpan instead of GdkRectangle.
3195         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
3196         from XFree 4 source)
3197         
3198 2000-11-22    <jrb@redhat.com>
3199
3200         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
3201         reversing the order in an if statement will do.  Doing so managed
3202         to make the treemodelsort half work.  Other half will follow after
3203         I get the insert function fully fixed.
3204
3205 2000-11-21  Elliot Lee  <sopwith@redhat.com>
3206         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
3207         more than 2 bits. Besides, I need to implement an evil hack. :)
3208
3209 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
3210
3211         * docs/tutorial/gtk-tut.sgml: minor corrections
3212
3213 2000-11-20  Jonathan Blandford <jrb@redhat.com>
3214         * gtk/gtktreemodelsort.h: Add convertion functions to let you
3215           convert to and from relative path's and iters.
3216
3217         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
3218           testing sorting functions a bit better.  Currently broken -- will
3219           fix in morning.
3220
3221 2000-11-20  Havoc Pennington  <hp@redhat.com>
3222
3223         * gtk/gtkwidget.c: Documented a bunch of functions in here
3224         (gtk_widget_realize): Warn if you try to realize
3225         a widget with no parent that isn't a toplevel
3226         (gtk_widget_intersect): return a gboolean
3227
3228 2000-11-20  Havoc Pennington  <hp@redhat.com>
3229
3230         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
3231         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
3232         scrolling to be implemented in GDK to finish. Also, right now
3233         we just size_allocate all children on every layout change,
3234         which is pretty lame. Test commented out of testtext.c, 
3235         until it works better.
3236
3237 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
3238
3239         * gdk/linux-fb/gdkdrawable-fb2.c:
3240         Removed unused arguments from gdk_fb_drawable_get_pixel().
3241
3242         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
3243         Renamed fidur specific mouse packet data in MouseDevice to
3244         generic. Used it in ps2 mouse handling code to avoid blocking
3245         reads.
3246
3247 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
3248
3249         * demos/gtk-demo/main.c: Changed to have the list become
3250         non-italic when the demo window is destroyed through an external
3251         event (like a close button).  Doing so found three bugs in the
3252         widget.
3253
3254         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
3255
3256         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
3257         we actually set the cell.
3258
3259         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
3260
3261         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
3262         free a leaked path.  Thanks memprof.
3263
3264 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
3265
3266         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
3267         off-by-one error when destroying allocated segments
3268         on failure. (Elliot)
3269
3270 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
3271
3272         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
3273         memleaks found by Evan Martin.
3274
3275 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
3276
3277         * Released 1.3.2
3278         
3279         * NEWS: Updates for 1.3.2
3280
3281 2000-11-17  Tor Lillqvist  <tml@iki.fi>
3282
3283         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
3284         but in general for window system specific events.
3285
3286         * gtk/gtk.def
3287         * gtk/makefile.mingw.in
3288         * gtk/makefile.msc.in: Update.
3289         
3290         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
3291
3292 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
3293
3294         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
3295         distribute gtk.immodules.
3296
3297         * gtk/Makefile.am (install-data-local): Don't install the
3298         gtk.immodules file created for the uninstalled modules;
3299         instead run gtk-query-immodules after install
3300
3301 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
3302
3303         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
3304         -rpath to the right install location.
3305
3306         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
3307         -export-dynamic.
3308
3309         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
3310         properly.
3311
3312 2000-11-15  Havoc Pennington  <hp@pobox.com>
3313
3314         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
3315         patch from Mikael Hermansson to temporarily stop blinking while
3316         the user is using the keyboard to type or navigate. 
3317
3318         Also, when blinking, stay on for longer than we stay off. Also,
3319         return from start_cursor_blink if !cursor_visible, to save
3320         checking that flag all over the place before we call
3321         start_cursor_blink.
3322
3323 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
3324
3325         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
3326         only contain a "fontset" line, which is now ignored.
3327
3328         * gtk/gtkentry.c (gtk_entry_button_release): Make 
3329         double-click-to-select-word work.
3330         
3331 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
3332
3333         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
3334         Don't move back one char when we are actually at the end of the 
3335         paragraph.
3336
3337 2000-11-15  Robert Brady  <robert@suse.co.uk>
3338
3339         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
3340         'o' < 'p'.
3341         
3342         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
3343         bind_textdomain_codeset.
3344
3345         (gtk_init_check): Make the warning about translating default:LTR
3346         sterner.
3347         
3348 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
3349
3350         * **/Makefile.am : remove unecessary rules for win32-specific
3351         config-substituted targets. If you want these rules, use
3352         --enable-maintainer-mode (called automatically by autogen.sh).
3353         Stops a lot of unneccessary make-time warnings.
3354
3355         * gtk/gtktext{layout,display}.c: Factor in total width as
3356         well as screen when figuring alignment for word-wrap as well as
3357         no wrap; this is necessary to handle lines that cannot be wrapped
3358         at all.
3359
3360 2000-11-15  Havoc Pennington  <hp@redhat.com>
3361
3362         * gtk/testtext.c: Implement essential color cycling feature
3363
3364 2000-11-15  Havoc Pennington  <hp@redhat.com>
3365
3366         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
3367         when we invalidate the main window.
3368
3369         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
3370         GtkTextView will now invalidate the side windows for us when text
3371         changes.
3372
3373 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
3374
3375         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
3376         unconditionally, since we may need to update the horizontal
3377         scrollbars even if the height didn't change.
3378
3379         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
3380         the extra attrs, since some of them affect size.
3381
3382         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
3383         x_offset correctly.
3384
3385 2000-11-15  Havoc Pennington  <hp@redhat.com>
3386
3387         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
3388         don't move the first line out into the margin, instead move the
3389         whole paragraph in order to make space for the first line within 
3390         the margin
3391
3392 2000-11-15  Havoc Pennington  <hp@redhat.com>
3393
3394         * gtk/gtktextview.c (changed_handler): offset redraw rect by
3395         xoffset in addition to yoffset, so horizontal scrolling doesn't
3396         break redraws
3397
3398 2000-11-15  Havoc Pennington  <hp@redhat.com>
3399
3400         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
3401         from the cursor
3402         (render_layout_line): fix reversed test that caused weird
3403         underlines to get drawn
3404
3405 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
3406
3407         * gdk/linux-fb/gdkprivate-fb.h:
3408         Fix debug macros.
3409         
3410 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
3411
3412         * gdk/linux-fb/gdkprivate-fb.h:
3413         Added virtual functions set_pixel, get_color,
3414         fill_span and draw_drawable to the GC.
3415         Added global _gdk_fb_screen_gc to use instead of
3416         NULL when drawing to the screen.
3417         Added _gdk_fb_gc_calc_state() prototype.
3418
3419         * gdk/linux-fb/gdkgc-fb.c:
3420         Call _gdk_fb_gc_calc_state() on any gc state change.
3421
3422         * gdk/linux-fb/gdkglobals-fb.c:
3423         Add _gdk_fb_screen_gc
3424                 
3425         * gdk/linux-fb/gdkdrawable-fb2.c:
3426         _gdk_fb_gc_calc_state() calculates best functions
3427         for the GC state and depth.
3428         Moved bpp specialized code to separate functions.
3429         Added optimized 24 bpp AA draw_drawable.
3430
3431         * gdk/linux-fb/gdkevents-fb.c:
3432         Silence gcc warning.
3433
3434         * gdk/linux-fb/gdkimage-fb.c:
3435         Use _gdk_fb_screen_gc
3436
3437         * gdk/linux-fb/gdkwindow-fb.c:
3438         Init and use _gdk_fb_screen_gc
3439
3440         * gdk/linux-fb/mitypes.h:
3441         Remove unused types.
3442
3443 2000-11-14  Havoc Pennington  <hp@pobox.com>
3444
3445         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
3446         to pixels
3447
3448 2000-11-14  Havoc Pennington  <hp@pobox.com>
3449
3450         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
3451
3452         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
3453         unknown char, no real reason we were using a variable. 
3454         Remove gtk_text_unknown_char variable. Fix all the text widget
3455         files accordingly.
3456
3457         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
3458         since the Unicode spec seems to prefer that character for our
3459         purposes.
3460
3461 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
3462
3463         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
3464         value of g_getenv() isn't freeable, so g_strdup it.
3465
3466         * modules/input/inuktitut.c: Inuktitut input method.
3467
3468         * modules/input/Makefile.am: Build this.
3469         
3470 2000-11-14  Elliot Lee  <sopwith@redhat.com>
3471
3472         * gtk/Makefile.am: Install gtk.immodules, needed for operation
3473         of gtk programs.
3474
3475 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
3476
3477         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
3478         reversed > that was causing Home to go to end of previous line.
3479
3480         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
3481         modified-keypresses (leave for bindings.)
3482
3483         * modules/input/Makefile.am: Remove useless -export-dynamic
3484         from module LDFLAGS.
3485
3486 2000-11-14  Havoc Pennington  <hp@redhat.com>
3487
3488         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
3489         higher.
3490
3491         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
3492         account. Also, render rise, underline, background, etc. for
3493         pixbufs as well as text. Also, draw underlines one pixel higher.
3494
3495         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
3496         PangoAttribute for the rise, so it gets drawn properly. Also,
3497         add the GtkTextAppearance attribute for pixbuf/widget segments
3498         as well; we should go ahead and have rise, underline, background,
3499         stipple work for those
3500
3501         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
3502         Pango
3503
3504 2000-11-15  Tor Lillqvist  <tml@iki.fi>
3505
3506         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
3507
3508         * gtk/gtk.def: Update.
3509
3510         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
3511         included.
3512         (gtk_rc_get_im_module_file): Use run-time installation directory
3513         on Win32.
3514
3515         * gdk/win32/rc/gdk.rc: Remove.
3516         * gdk/win32/rc/gdk.rc.in: New file.
3517         * gdk/win32/rc/Makefile.am: New file
3518         * gdk/win32/Makefile.am: Corresponding changes.
3519
3520         * gtk/gtk.rc: Remove.
3521         * gtk/gtk-win32.rc.in: New file.
3522         * gtk/Makefile.am: Corresponding changes.
3523
3524         * configure.in: Corresponding changes.
3525
3526         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
3527         has a built gtkcompat.h. Developers using CVS code on Win32 can
3528         hand-edit it from gtkcompat.h.in.
3529
3530         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
3531         gtkcompat.h from gtkcompat.h.win32.
3532
3533 2000-11-14  Havoc Pennington  <hp@redhat.com>
3534
3535         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
3536         to default to GDK_ACTION_MOVE if the drag is within a single
3537         widget. Defaults to GDK_ACTION_COPY between widgets.
3538
3539 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
3540
3541         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
3542
3543         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
3544
3545         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
3546         srcdir != builddir
3547
3548         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
3549
3550         * configure.in (GTK_VERSION): Up to 1.3.2
3551
3552         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
3553         gtkimcontextxim.h
3554
3555         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
3556         missing doc comment.
3557
3558 2000-11-14  Alexander Larsson  <alexl@redhat.com>
3559
3560         * modules/linux-fb/basic.c:
3561         Use the glib iconv wrappers.
3562
3563 2000-11-13  Havoc Pennington  <hp@pobox.com>
3564
3565         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
3566         still more bugs.
3567
3568         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
3569         scroll the GdkWindows before realization.
3570
3571 2000-11-13  Havoc Pennington  <hp@redhat.com>
3572
3573         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
3574         where GC didn't always get updated properly
3575
3576         * demos/gtk-demo/textview.c (create_tags): Use subattributes
3577         of fonts instead of setting the entire font
3578
3579         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
3580         setting entire font
3581
3582         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
3583
3584         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
3585         a bunch of individually-settable font attributes. You can still 
3586         use the "font" and "font_desc" args, they just set all the font
3587         attributes at once.
3588
3589 2000-11-13 Elliot Lee <sopwith@redhat.com>
3590
3591         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
3592
3593 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
3594
3595         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
3596         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
3597
3598         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
3599         work better.
3600
3601 2000-11-13  Havoc Pennington  <hp@redhat.com>
3602
3603         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
3604         the module file.
3605
3606         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
3607         dest->language
3608
3609         * gtk/testtext.c: Test pixels above/below/inside paragraphs
3610         settings
3611
3612         * gtk/gtktextview.c: Implement object args and setters/getters for
3613         all the aspects of the GtkTextAttributes that are not set from
3614         GtkWidget attributes. This is spacing, justification, margins,
3615         etc.
3616
3617         (gtk_text_view_set_arg)
3618         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
3619         args
3620         (gtk_text_view_class_init): Add args for justify, left_margin,
3621         right_margin, indent, and tabs
3622         
3623
3624         * gtk/gtktextlayout.c (set_para_values): fix to display indent
3625         attribute properly
3626
3627         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
3628         replace with indent attribute
3629
3630         * gtk/gtktextlayout.c (set_para_values): multiply indent by
3631         PANGO_SCALE
3632
3633         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
3634         rearranging code to do that
3635         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
3636         i.e. don't subtract the top_margin first, just to keep
3637         all margin-futzing in one place.
3638
3639         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
3640
3641         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
3642         special case of last line, Pango now handles this itself.
3643         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
3644         Y coordinate
3645         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
3646         (find_display_line_above): wasn't moving the byte index as it
3647         iterated over lines, so always returned byte 0. Also, port to use
3648         PangoLayoutIter.
3649         (find_display_line_below): same problem as
3650         find_display_line_above. Also, port to use PangoLayoutIter.
3651
3652 2000-11-13  Alexander Larsson  <alexl@redhat.com>
3653
3654         * gdk/linux-fb/*.[ch]:
3655         Massive reindent to gtk+ standard. My hands hurt.
3656
3657         * gdk/linux-fb/gdkcolor-fb.c:
3658         Move GdkColorPrivateFB from inherited to windowing_data
3659
3660         * gdk/linux-fb/gdkcursor-fb.c:
3661         _gdk_cursor_new_from_pixmap made static
3662
3663         * gdk/linux-fb/gdkdnd-fb.c:
3664         GdkDragContextPrivate moved to windowing_data
3665
3666         * gdk/linux-fb/gdkdrawable-fb2.c:
3667         Removed endian.h, use glib endianness macros instead
3668         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
3669         and GDK_DRAWABLE_IMPL_FBDATA
3670
3671         * gdk/linux-fb/gdkfont-fb.c:
3672         Add empty gdk_font_load(). Needed for linking of Gtk+.
3673
3674         * gdk/linux-fb/gdkimage-fb.c:
3675         Removed endian.h, use glib endianness macros instead
3676         Moved GdkImagePrivateFB to windowing_data
3677         gdk_image_new_bitmap didn't always allocate enough
3678         memory.
3679
3680         * gdk/linux-fb/gdkinput-ps2.c:
3681         Added semi-working support for MS serial mice.
3682
3683         * gdk/linux-fb/gdkprivate-fb.h:
3684         s/GdkWindowPrivate/GdkWindowObject/
3685         Removed GdkWindowPrivate typedef
3686         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
3687         Removed GDK_DRAWABLE_P
3688         Move GdkColorPrivateFB from inherited to windowing_data
3689         Moved GdkImagePrivateFB to windowing_data
3690
3691         * gdk/linux-fb/gdkvisual-fb.c:
3692         Removed some unused debug code.
3693
3694         * gdk/linux-fb/gdkwindow-fb.c:
3695         Use stock cursors instead of including X headers.
3696         s/GdkWindowPrivate/GdkWindowObject/
3697
3698         * gdk/linux-fb/mitypes.h:
3699         Removed unused types.
3700
3701         * modules/linux-fb/basic.c:
3702         Use the pango fribidi wrappers.
3703
3704 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3705
3706         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
3707         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
3708         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
3709         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
3710         GEqualFunc where applicable.
3711         
3712         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
3713         pango_font_description_equal as changed in pango.
3714         
3715         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
3716
3717         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
3718
3719         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
3720
3721         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
3722
3723         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
3724
3725         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
3726
3727         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
3728         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
3729
3730         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
3731         gtk_rc_styles_compare -> gtk_rc_styles_equal.
3732
3733 2000-11-12  Havoc Pennington  <hp@pobox.com>
3734
3735         * demos/gtk-demo/Makefile.am (democodedir): change demo install
3736         dir to datadir/gtk+-2.0/demo
3737
3738         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
3739         sorts of text widget and Pango font bugs. Urgh.
3740
3741         * demos/gtk-demo/Makefile.am (demos): Add textview.c
3742
3743         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
3744         tree that you should double click to see the demo. Fix 
3745         types of variables to reflect changed return values from 
3746         GtkTreeStore and GtkTreeViewColumn constructors.
3747
3748         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
3749         newly-created buffer to prepare for GObject semantics
3750
3751         * gtk/testtext.c: don't leak the buffer with GObject semantics
3752
3753         * gtk/testtextbuffer.c: ditto
3754         
3755 2000-11-12  Havoc Pennington  <hp@pobox.com>
3756
3757         Rename this testgtk to gtk-demo to avoid confusion, and 
3758         install it so people can use it as a supplement to 
3759         the documentation.
3760         
3761         * demos/gtk-demo: Moved from demos/testgtk
3762
3763         * demos/testgtk: Removed
3764
3765         * configure.in: make Makefile in gtk-demo
3766         
3767         * demos/gtk-demo/Makefile.am: Install sample source to 
3768         datadir/gtk-demo (maybe there's a better place?), and 
3769         rename the binary to gtk-demo
3770         
3771         * demos/gtk-demo/main.c (load_file): Load installed sample
3772         source if source isn't found in pwd.
3773
3774 2000-11-09  Havoc Pennington  <hp@pobox.com>
3775
3776         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
3777         argument to set the char displayed when visibility == FALSE
3778         (gtk_entry_create_layout): If !entry->visible, replace 
3779         all chars with the "invisible char"
3780
3781         * gtk/testgtk.c: Test the invisible_char deal
3782         
3783 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
3784
3785         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
3786         can't get a native font in the right encoding.
3787
3788 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
3789
3790         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
3791         respectively.
3792
3793 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
3794
3795         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
3796         Fix warning when moving between paragraphs.
3797
3798         * gtk/gtkentry.[ch]: Change move => move_cursor, 
3799         delete => delete_from_cursor, insert => insert_at_cursor
3800
3801 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
3802
3803         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
3804
3805         * modules/input/imthai-broken.c: A Thai input method for use if
3806         Thai keys are really generating Latin1 keysyms.
3807
3808         * modules/input/Makefile.am: Build these.
3809
3810 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
3811
3812         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
3813         g_filename_{to,from}_utf8 now takes an extra parameter.
3814
3815         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
3816         strftime into UTF-8.
3817
3818         (column_from_x, gtk_calendar_paint_day_names): Support RTL
3819         calendars.
3820
3821         (gtk_calendar_paint_day_names): Draw day names in the right 
3822         place.
3823         
3824 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
3825
3826         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
3827         problem with using result of g_get_charset() backwards -
3828         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
3829
3830         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
3831         negative min_width/height and max_width/height to
3832         mean "requisition"; this allows setting a window
3833         to be user-resizable in only one direction easily.
3834
3835         * gtk/testgtk.c (create_main_window): Remove hard-coded
3836         usize - set a default size in the vertical direction.
3837
3838 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
3839
3840         * gtk/gtkrange.c: Add some missing casts. Support 
3841         2 and 3 button clicks on the arrows to mean 
3842         "move by pages" and "jump to end". (Like gtkspinbutton)
3843
3844 2000-11-12 Hans Breuer <Hans@Breuer.Org>
3845
3846         * gdk/win32/makefile.msc : reflect build module changes
3847
3848         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
3849         from GdkPixmap*, cast implementation member instead.
3850
3851         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
3852         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
3853         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
3854         more Gdi functions return value checking. 
3855         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
3856         GdkImagePrivateWin32 *.
3857
3858         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
3859         menus useable again. Add #pragma message to keep reminded on this issue.
3860         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
3861         windows. This allows to enable backing store on Win32!
3862
3863         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
3864         in drawable is of impl type. Correct specific type checks appropriate.
3865  
3866         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
3867         GDK_WINDOW_DESTROYED before allocating new resources.
3868
3869         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
3870
3871         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
3872         (gdk_window_foreign_new) initialize parent handle.
3873         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
3874
3875         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
3876         Let the GDI invalidate the window on MoveWindow call to fix scrolling
3877         problems (e.g. main buttons in testgtk). 
3878
3879 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
3880
3881         * gtk/gtkentry.c (gtk_entry_key_press): Call 
3882         gtk_widget_activate for GDK_Return.
3883
3884         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
3885         of preedit cursor position.
3886
3887 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
3888
3889         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
3890         static.
3891
3892 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
3893
3894         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
3895         out support for multiple locales; that simple doesn't
3896         work reliably with current Xlib
3897
3898         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
3899         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
3900         Add support for positioning the cursor within the preedit string.
3901
3902 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
3903
3904         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
3905         at XIM input method module.
3906
3907         * gtk/gtktextview.c: Check for bindings after passing
3908         events to im context filter.
3909
3910 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
3911
3912         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
3913         empty attribute lists properly.
3914
3915 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
3916
3917         * gtk/queryimmodules.c (main): Return non-zero exit
3918         status if errors were encountered querying any
3919         modules.
3920
3921         * modules/input/Makefile.am (moduledir): remove
3922         leftover bin program target.
3923
3924         * docs/make-todo: Fix typo in error message.
3925
3926 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
3927
3928         * configure.in: Add modules/input/Makefile
3929
3930 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
3931
3932         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
3933         don't include gtkthemes.h.
3934
3935         * gtk/testgtk.c gtk/testtext.c: Set environment variables
3936         to point
3937
3938         * gtk/Makefile.am: Add new .c and .h files, build 
3939         gtk-query-immodules and use it to create a gtk.immodules
3940         file for use of test programs.
3941
3942         * gtk/gtkpreview.c: remove extra blank line.
3943
3944 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
3945
3946         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
3947         Add the ability to add extra tables beyond the default
3948         one, and also the ability to have compose sequences 
3949         that are prefixes of other compose sequences. 
3950
3951         * gtk/gtkimcontextsimple.c: Export a preedit string which
3952         consists of possible candidates for keystrokes that have
3953         been entered but not yet committed.
3954
3955         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
3956         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
3957
3958         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
3959         Add a function to add input-method switching menu items
3960         to a menu.
3961
3962         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
3963         when switching input methods.
3964
3965         * gtk/gtkimcontextsimple.[ch]: Change the format of
3966         the compose table to allow compose tables of different
3967         lengths / sequence.
3968
3969 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
3970
3971         * gtk/gtkimmodule.[ch]: Support routines for loading
3972         GtkIMContext implementations dynamically at runtime.
3973
3974         * modules/input/imcyrillic-translit.c: A sample input
3975         method (based on GtkIMContextSimple with an extra table),
3976         which demonstrates preedit strings and the module
3977         system for input modules
3978
3979         * gtk/queryimmodules.c: Program to query the available
3980         input modules and write the results into a file.
3981          
3982         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
3983         extra config options "im_module_file" (cache file for
3984         input method modules), and "im_module_path" - path
3985         to look for modules when generating cache file.
3986
3987         This doesn't scale.
3988
3989 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
3990
3991         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
3992         generic code from gtkthemes into a new abstraction
3993         GtkModule which has the logic for implementing
3994         a loadable module which implements a number of 
3995         GObject types.
3996
3997 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
3998
3999         * gtk/gtkeditable.[ch]: Convert GtkEditable from
4000         a class into an interface  
4001         
4002         * gtk/gtkoldeditable.[ch]: Move the old editable
4003         implementation into here, so legacy widgets can
4004         still rely on the implemenation. GtkOldEditable
4005         exports GtkEditable. Make selection handling
4006         code use new text conversion functions (and
4007         handle UTF-8 as a side-effect). Use GtkClipboard
4008         for CLIPBOARD.
4009
4010         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
4011         Adopt to match above changes.
4012
4013         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
4014         avoid GtkOldEditable implementation. Restructure
4015         to reduce number of places that modify state directly.
4016         Move to GtkBindingSet. Display the preedit string.
4017         Queue recomputation of PangoLayout and scroll position
4018         to improve effiency of doing complex changes naively.
4019         Add a menu with cut/copy/paste and input method selection.
4020
4021 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
4022
4023         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
4024         to set preedit string and attributes; display preedit string by
4025         inserting string and attributes at cursor when creating the
4026         GtkTextLineDisplay.
4027
4028         * gtk/gtktextlayout.c: Move all conversions between byte
4029         positions in PangoLayout and GtkTextIter into new functions
4030         line_display_iter_to_index/index_to_iter that properly
4031         handle the preedit string.
4032
4033         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
4034         it to return const char * (eventually will end up
4035         as GCONST char *, most likely.)
4036
4037         * gtk/gtktextview.[ch]: Handle the preedit string, call
4038         gtk_im_context_reset() as necessary, add a menu to switch
4039         input methods.
4040         
4041         * gtk/gtktextlayout.[ch]: Remove useless
4042         gtk_text_layout_get_log_attrs() function.
4043
4044 2000-11-11  Tor Lillqvist  <tml@iki.fi>
4045
4046         * gdk/gdk.def
4047         * gtk/gtk.def: Update.
4048
4049         * gdk/win32/*.c: Add last argument to g_type_register_static()
4050         calls.
4051
4052         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
4053
4054         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
4055         generated by older wheel mouse drivers. Get the correct y
4056         coordinate from WM_MOUSEWHEEL messages.
4057
4058         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
4059         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
4060         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
4061         Debugging functions.
4062
4063         * gdk/win32/gdkprivate-win32.h: Declare them.
4064
4065         * gdk/win32/gdkinput-win32.h: Add declaration for
4066         gdk_input_window_destroy().
4067
4068         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
4069
4070 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
4071
4072         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
4073         function to help handle keeping things in sync.
4074
4075 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
4076
4077         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
4078         BOXED marshallers.
4079
4080         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
4081         (gtk_list_store_class_init): use the new BOXED marshallers.
4082
4083         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
4084         new_with_values to new_with_types.
4085         (gtk_tree_store_get_column_type): add this.
4086         (gtk_tree_store_class_init): use the new BOXED marshallers.
4087
4088         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
4089         mirror some POINTER marshallers.
4090
4091 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
4092
4093         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
4094         allow more interesting iterators.  Also, made the lifecycle of
4095         iterators more explicit.
4096
4097         * gtk/gtktreemodelsort.[ch]: New model for sorting.
4098
4099         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
4100         types.
4101
4102 2000-11-09  Alexander Larsson  <alexl@redhat.com>
4103
4104         * demos/testgtk/menus.c:
4105         Changes to make the new testgtk compile after
4106         gtk_menu_append was removed.
4107
4108         * gdk/linux-fb/gdkdrawable-fb2.c
4109         (gdk_fb_get_depth, gdk_fb_get_visual,
4110         gdk_drawable_impl_fb_class_init): Implement
4111         these drawable functions. Now GtkImages work again.
4112
4113         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
4114
4115         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
4116         
4117         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
4118         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
4119         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
4120         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
4121
4122 2000-11-08  Havoc Pennington  <hp@pobox.com>
4123
4124         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
4125         visible_set args, don't know where these had gone, I thought they
4126         used to be there
4127
4128         * gtk/testtext.c: Add a menu item to apply invisibility tag;
4129         now we can test the feature and see that it's totally broken.
4130
4131 2000-11-08  Havoc Pennington  <hp@pobox.com>
4132
4133         Make DND copy pixbufs and tags when source and target share a 
4134         tag table.
4135         
4136         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
4137         in-process GTK_TEXT_BUFFER_CONTENTS target
4138         (gtk_text_view_drag_data_received): Paste from
4139         GTK_TEXT_BUFFER_CONTENTS if we receive it.
4140
4141 2000-11-08  Alexander Larsson  <alexl@redhat.com>
4142
4143         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
4144         API changes.
4145
4146         * gtk/gtkmenu.c: Add support for scrolling menus.
4147         Remove gtk_menu_append/prepend/insert, these have been moved to
4148         gtkcompat.h as #defines.
4149
4150         * gtk/gtkcompat.h.in:
4151         Add compatibility #defines for gtk_menu_append/prepend/insert
4152
4153         * gtk/gtkmenu.h: Add data needed for scrolling menus.
4154         GtkMenuPositionFunc gets an extra argument push_in.
4155         gtk_menu_append/prepend/insert removed.
4156         
4157         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
4158         positioning behaviour to fit to scrolling menus.
4159
4160         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
4161         into menuitem->submeny. That is wrong, and broke torn
4162         off submenus of torn off menus, since they were unrealized
4163         when the first menu was unrealized.
4164
4165         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
4166         gtk_menu_shell_select_item() since these need to be overridden in
4167         GtkMenu.
4168
4169         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
4170         positioning behaviour to fit to scrolling menus.
4171         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
4172         the current item so that it is prelighted when the menu pops up.
4173         This is a workaround to the fact that the menu doesn't get the
4174         initial enter event (due to grabs).
4175
4176         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
4177         s/gtk_menu_append/gtk_menu_shell_append/
4178
4179         * gtk/gtknotebook.c:
4180         s/gtk_menu_insert/gtk_menu_shell_insert/
4181
4182         * gtk/testgtk.c (create_menu, create_menus):
4183         Create the first menu with 50 items so that menu scrolling
4184         can be tested.
4185         
4186         
4187         Patch from Jonathan Blandford  <jrb@redhat.com>
4188
4189         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
4190         system to handle size requests.  First, we ask what the size of
4191         the toggle is.  Then, when allocating the size, we allocate the
4192         toggle_size first.  This way we can have multiple menu-item
4193         classes w/o needing a seperate class for each.
4194
4195         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
4196         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
4197
4198         * gtk/gtkcheckmenuitem.c
4199         (gtk_check_menu_item_toggle_size_request): New function to handle
4200         the toggle size-request.
4201
4202 2000-11-07  Havoc Pennington  <hp@redhat.com>
4203
4204         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
4205         Half-ass somewhat fix this function, so that scrolling to the
4206         insertion point works. Pango hacking is in the future to really
4207         fix it.
4208
4209         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
4210         length of data, no longer used.
4211
4212         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
4213         method contents in here, get rid of destroy method
4214         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
4215         that were backward. Remove debug spew.
4216         (cut_or_copy): Make the clipboard work with insert_range to
4217         preserve tags and pixbufs, not just the primary selection.
4218
4219 2000-11-07  Havoc Pennington  <hp@redhat.com>
4220
4221         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
4222         to gtk_text_mark_get_visible
4223
4224         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
4225         bug that was generating an invalid iterator
4226
4227         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
4228         ensure_char_offsets() in front of code placing the iter in an
4229         invalid state.
4230
4231         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
4232         make override_location arg const
4233         (paste): Replace the selection if we paste into the 
4234         current selection
4235
4236         * gtk/gtkselection.h: Remove "GtkSelectioData"
4237         (struct _GtkSelectionData): move the definition here.
4238
4239         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
4240         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
4241
4242         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
4243
4244         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
4245         (gtk_text_buffer_insert_range_interactive): implement
4246         (gtk_text_buffer_get_tags): Remove, replaced by
4247         gtk_text_iter_get_tags()
4248
4249         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
4250         limit parameter, to avoid infinite linear scan.
4251         (gtk_text_iter_backward_search): Add search limit
4252         (gtk_text_iter_forward_find_char): Add search limit
4253         (gtk_text_iter_backward_find_char): Add search limit
4254
4255 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
4256
4257         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
4258         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
4259         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
4260         gdk/linux-fb/gdkwindow-fb.c:
4261         use g_object_new() instead of g_type_create_instance() which
4262         is a private function for fundamental type implementations.
4263
4264         * gdk/linux-fb/gdkinput-ps2.c:
4265         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
4266         instead just store the current modifier state. Add a (somewhat broken)
4267         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
4268         Rename exported function gdk_input_ps2_get_mouseinfo to
4269         gdk_input_get_mouseinfo.
4270
4271         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
4272         gdk/linux-fb/gdkwindow-fb.c:
4273         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
4274         
4275
4276 2000-11-02  Havoc Pennington  <hp@redhat.com>
4277
4278         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
4279         use stock buttons. Should be 100% source compatible, appropriate
4280         filesel fields now point to dialog->vbox and dialog->action_area.
4281         On the bizarre side, dialog->action_area and filesel->action_area
4282         are not the same widget.
4283         (gtk_file_selection_init): Put some padding around the selection
4284         entry, so it isn't touching the GtkDialog separator.    
4285
4286         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
4287         use stock buttons, etc. Should also be source compatible.
4288         Set the dialog default title in _init not _new().
4289         
4290         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
4291         Use stock buttons; don't put a button box inside the existing
4292         dialog button box. Don't bother with push/pop colormap anymore.
4293
4294         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
4295         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
4296         for message dialog, and necessary for the font selection and color
4297         selection with help and apply buttons.
4298         
4299         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
4300         to the created button widget. Set GTK_CAN_DEFAULT on the button.
4301         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
4302         between buttons, put less padding around the action area.
4303         (gtk_dialog_run): Exit on unmap rather than on destroy. 
4304         This will also exit the loop if the widget is hidden.
4305         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
4306         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
4307         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
4308         special-case delete event.
4309
4310         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
4311         formatting
4312         
4313 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
4314
4315         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
4316         button to temporarily disable position recording in the
4317         "saved position" test.
4318
4319 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
4320
4321         * gtk/gtkthemes.c: added compat code that temporarily implements
4322         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
4323         going to be revamped by owen's upcoming GtkModule patches, but
4324         untill then people want gtk to build, right? ;)
4325
4326 2000-11-04  Havoc Pennington  <hp@pobox.com>
4327
4328         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
4329         list
4330
4331         * docs/Changes-2.0.txt: Add note about
4332         gtk_container_get_toplevels()
4333
4334         * gtk/gtktextview.h: formatting
4335         
4336         * gtk/gtktextview.c: don't start descriptions with "Returns",
4337         confuses gtk-doc
4338
4339 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
4340
4341         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
4342         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
4343
4344 2000-11-03  Havoc Pennington  <hp@redhat.com>
4345
4346         * gtk/gtktexttagtable.c: Docs
4347         (gtk_text_tag_table_size): return a signed int
4348
4349         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
4350         (gtk_text_tag_event): make the event_object a GObject
4351
4352         * gtk/gtktextview.c: Write API docs for all functions.
4353
4354         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
4355         for gtk_text_view_get_window_type() called on one of the private
4356         windows.
4357
4358         * gtk/gtktextview.c: Instead of accessing text_view->buffer
4359         directly, call get_buffer() which demand-creates a default
4360         buffer. So gtk_text_view_new() can be used to create a view with a
4361         default buffer in it, if you just want an empty text box users can
4362         put data in. Useful for GUI builders also.
4363
4364 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
4365
4366         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
4367         the charset encodign portion MUST be in lowercase.
4368         * gtk/gtkrc.az: added file for Azeri language
4369
4370 2000-11-03  Havoc Pennington  <hp@redhat.com>
4371
4372         Get widgets working on the btree/buffer side. Display of them 
4373         still doesn't work.
4374         
4375         * gtk/gtktextview.c: start implementing child widget stuff
4376
4377         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
4378
4379         * gtk/gtktextlayout.c: handle embedded widgets
4380
4381         * gtk/gtktextdisplay.c: handle embedded widgets
4382
4383         * gtk/gtktextchild.c: Implement all the child anchor goo
4384
4385         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
4386         function
4387
4388         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
4389         (insert_pixbuf_or_widget_segment): abstract out common portions of 
4390         creating a child anchor or a pixbuf segment.
4391         (gtk_text_btree_create_child_anchor): new function
4392         (gtk_text_btree_unregister_child_anchor): new function
4393
4394         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
4395         allocate_child signal on GtkTextLayout
4396
4397         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
4398         values
4399         (gtk_text_iter_get_child_anchor): new function
4400
4401         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
4402         default handler for the changed signal, which calls
4403         gtk_text_buffer_set_modified(), instead of just always emitting
4404         changed then calling set_modified() manually. I guess this is
4405         maybe more flexible. It seems logical.
4406
4407 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
4408
4409         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
4410         now.
4411
4412         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
4413
4414 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
4415
4416         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
4417         been marked static.
4418
4419 2000-11-02  Havoc Pennington  <hp@redhat.com>
4420
4421         * gtk/testgtk.c (create_labels): had a test backward
4422
4423         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
4424         fields, so the dest GC ends up with the correct clip origin, 
4425         etc. Fixes a bug where colored labels didn't redraw 
4426         properly.
4427
4428 2000-11-02  Alexander Larsson  <alexl@redhat.com>
4429
4430         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
4431         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
4432         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
4433         Add last argument to t_type_register_static call.
4434         
4435         * gdk/linux-fb/gdkdrawable-fb2.c:
4436         Add last argument to t_type_register_static call.
4437         export the get_image drawable virtual function.
4438
4439         * gdk/linux-fb/gdkimage-fb.c:
4440         Add last argument to t_type_register_static call.
4441         rename gtk_image_get to _gdk_fb_get_image and
4442         export it for use by gdkdrawable-fb2.
4443
4444         * gdk/linux-fb/gdkprivate-fb.h:
4445         export _gdk_fb_get_image.
4446
4447         * gdk/linux-fb/gdkselection-fb.c:
4448         Add new api call stubs.
4449
4450         * gtk/Makefile.am:
4451         Missing ( in linux-fb part.
4452
4453         * modules/linux-fb/Makefile.am:
4454         Must link with gdk_pixbuf or get unresolved symbol.
4455
4456 2000-11-01  Havoc Pennington  <hp@pobox.com>
4457
4458         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
4459         GTK_TYPE_TEXT_ITER and BOXED marshallers
4460
4461         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
4462
4463         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
4464         
4465         * gtk/gtk-boxed.defs: add GtkTextIter
4466
4467         * gtk/gtkmarshal.list: Add marshallers for text widget that 
4468         properly use OBJECT and BOXED
4469
4470 2000-11-01  Havoc Pennington  <hp@redhat.com>
4471
4472         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
4473
4474         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
4475         before returning it. 
4476         
4477 2000-11-01  Havoc Pennington  <hp@redhat.com>
4478
4479         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
4480         Clip the rectangle to be rendered to the drawable, since
4481         get_from_drawable() requires a region within the drawable
4482
4483 2000-11-01  Havoc Pennington  <hp@redhat.com>
4484
4485         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
4486         from coordinates.
4487
4488 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
4489
4490         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
4491         it isn't NULL.
4492
4493 2000-11-01  Havoc Pennington  <hp@pobox.com>
4494
4495         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
4496         on a label
4497         (gtk_label_finalize): unref the attr list if any.
4498
4499         * gtk/testgtk.c (create_get_image): close test on second click
4500         (make_message_dialog): close dialog if it exists
4501
4502         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
4503
4504         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
4505         gdk-pixbuf
4506
4507         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
4508         from Pango markup format
4509         (gtk_label_set_markup_with_accel): ditto but with accelerator
4510         parsing
4511
4512         * gtk/gtkimage.c (gtk_image_expose): reformatting.
4513
4514         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
4515         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
4516         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
4517         call gdk_window_get_origin().
4518
4519         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
4520         implement GDK_PIXBUF_ALPHA_FULL
4521         
4522 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
4523
4524         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
4525         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
4526         g_signal_handlers_disconnect_matched to block/unblock and disconnect
4527         multiple handlers respectively, instead of only treating the
4528         first handler found (bug reported by owen).
4529
4530 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
4531
4532         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
4533
4534         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
4535
4536         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
4537         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
4538         gtk/gtktreeviewcolumn.h: Fixed inline docs.
4539
4540         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
4541         widget.  Needs writing someday.
4542
4543         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
4544         the docs.
4545
4546 2000-10-30  Havoc Pennington  <hp@redhat.com>
4547
4548         * gtk/gtktextview.h, gtk/gtktextview.c:
4549         Rename delete_at_cursor delete_from_cursor, and 
4550         move to move_cursor.
4551
4552 2000-10-30  Havoc Pennington  <hp@redhat.com>
4553
4554         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
4555         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
4556         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
4557         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
4558         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
4559         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
4560         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
4561         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
4562         gtktexttypes.h, gtktextview.c, gtktextview.h:
4563
4564         Massive reindentation and reformatting. Arg alignment and comments
4565         still need fixing in various places.
4566
4567 2000-10-30  Havoc Pennington  <hp@redhat.com>
4568
4569         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
4570         to be named insert_at_cursor and delete_at_cursor so C++ can
4571         handle them.
4572
4573 2000-10-28  Tor Lillqvist  <tml@iki.fi>
4574
4575         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
4576         to get a double directory separator in case the home directory
4577         ends with one. This would cause trouble especially on Windows,
4578         where the path will be confused with the syntax for an an UNC
4579         (network share) path \\server\share\path.
4580         (gtk_rc_add_initial_default_files): Ditto.
4581
4582 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
4583
4584         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
4585
4586         * gtk/gtktextview.c: Use correct marshallers.
4587
4588 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
4589
4590         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
4591         use new iter stuff, and added all the appropriate signals et al.
4592
4593         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
4594         code is internal to gtk only.
4595
4596 2000-10-28  Tor Lillqvist  <tml@iki.fi>
4597
4598         * gtk/gtk.def
4599         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
4600         glib-genmarshal etc.
4601
4602 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
4603
4604         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
4605         parallel builds.
4606
4607 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
4608
4609         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
4610
4611 2000-10-27  Robert Brady  <robert@suse.co.uk>
4612
4613         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
4614         en_GB (British), ia (Interlingua).
4615
4616 2000-10-26  Havoc Pennington  <hp@redhat.com>
4617
4618         * gtk/gtktextiter.c (my_strrstr): fix constness warning
4619
4620         Fixed output of:
4621         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
4622         
4623         * gtk/gtktextsegment.c (char_segment_new): rename
4624         (_char_segment_new_from_two_strings): rename
4625         (_toggle_segment_new): rename
4626         
4627         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
4628         (make_clipboard_widget): make it static
4629         (text_get_func): static
4630         (text_clear_func): static
4631
4632         * gtk/gtkcolorsel.c (adjustment_changed): make this function
4633         static
4634         (hex_changed): make it static
4635         (hsv_changed): make it static
4636         (opacity_entry_changed): make it static
4637
4638         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
4639         (toggle_segment_check_func): rename with _gtk
4640
4641         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
4642         (_widget_segment_new): rename
4643         (_widget_segment_add): rename
4644         (_widget_segment_remove): rename
4645         (_widget_segment_ref): rename
4646         (_widget_segment_unref): rename
4647
4648         * gtk/gtktextmark.c (_mark_segment_new): Rename
4649         _gtk_mark_segment_new   
4650
4651 2000-10-26  Havoc Pennington  <hp@redhat.com>
4652
4653         * gtk/gtkmarshal.list: add new marshallers used by the text widget
4654         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
4655         types
4656
4657         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
4658         marshaller types
4659
4660         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
4661         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
4662         license on these files.
4663
4664         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
4665         work.
4666
4667         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
4668         runtime random number different for each tree, instead of 
4669         a constant I made up.
4670
4671 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
4672
4673         * gtk/Makefile.am: buncha cleanups, kludged build sources
4674         dependencies with a Makefile: oldest-source-stamp dependancy
4675         for the moment. automake is really fighting us here, with
4676         intentionally not allowing user-defined rules or dependancies
4677         prior to it's -include $(DEP_FILES) statement. sucks rocks!
4678
4679         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
4680         to public headers. tehy have a comment stating that they are
4681         "semi-public" aren't included by gtk.h and if enums popup there,
4682         they can be /*< skip >*/-ed.
4683
4684         * gtk/gtktextlayout.h: 
4685         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
4686         added LGPL... <SIGH>
4687
4688 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
4689
4690         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
4691         GtkTreeIter.  Added iterators everywhere.
4692
4693         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
4694
4695         * gtk/gtktreeviewselection.c: Changed to use the iterators.
4696
4697         * gtk/gtktreestore.c: Changed to use the iterators.
4698
4699         * gtk/gtkliststore.c: Commented out the code.  Will convert to
4700         iterators tomorrow.
4701
4702         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
4703         iterators tomorrow.
4704
4705         * gtk/treestoretest.c: Changed to use iterators.
4706
4707         * demos/testgtk/main.c: Moved to use the new iterator system.
4708
4709 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
4710
4711         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
4712         localization misbehaviour.
4713
4714         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
4715         a useless type without copy/free.
4716
4717         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
4718         of GTK_TYPE_CTREE_NODE.
4719
4720 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
4721
4722         * gtk/gtksignal.c:
4723         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
4724         applicable.
4725
4726         * gtk/gtk-boxed.defs (GtkSelectionData): specify
4727         gtk_selection_data_copy and gtk_selection_data_free
4728         do GtkSelectionData work as params in signals.
4729
4730 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
4731
4732         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
4733         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
4734         couldn't they at least give it a non-standard name?
4735         
4736         * gtk/gtktextlayout.c: arg! yet another implementation of
4737         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
4738
4739         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
4740         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
4741         home. now i know this _is_ a conspiracy.
4742
4743         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
4744         ::state-changed.
4745
4746         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
4747         (gtk_accel_group_create_add): marshaller signature fixups.
4748
4749         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
4750         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
4751
4752         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
4753         anymore.
4754
4755 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
4756
4757         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
4758         due to the signal system changes, it wouldn't build currently. to
4759         be fixed soon.
4760
4761         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
4762
4763         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
4764         so it needs gtk_marshal_VOID__ENUM() instead of
4765         gtk_marshal_NONE__UINT().
4766
4767         * gdk/gdk*.c: adapted type registration functions.
4768
4769         * gtk/gtkbindings.c:
4770         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
4771         gone.
4772
4773         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
4774
4775         * gtk/gtkobject.c:
4776         (gtk_object_destroy):
4777         (gtk_object_shutdown): fixed recursion guards. basically we have to
4778         catch the case where any of GObject.shutdown() or gtk_object_destroy()
4779         is called during ::destroy, and avoid recursion there.
4780
4781         * gtk/gtktypeutils.c:
4782         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
4783         boxed_copy/boxed_free. this needs a more general solution based on a
4784         publically installed code-generator utility.
4785
4786         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
4787         glib's gobject has support for that now.
4788         define GtkSignalMarshaller in terms of GSignalCMarshaller.
4789
4790 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
4791
4792         * gtk/gtksignal.[hc]:
4793         * gtk/gtkmarshal.[hc]:
4794         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
4795         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
4796         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
4797         care of that.
4798
4799         * *.c: marshaller name fixups.
4800
4801         * gtk/gtkmarshal.list: added a comment briefing the format.
4802
4803 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
4804
4805         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
4806         compatibility macros here now. more specifically, most of
4807         the API is preserved (yes, _most_, nonwithstanding the
4808         following exceptions listed, the API is stil lHUGE ;)
4809         things that got removed completely:
4810         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
4811         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
4812         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
4813         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
4814         gtk_signal_remove_emission_hook().
4815         non-functional functions variants:
4816         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
4817         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
4818         not supported anymore.
4819         (gtk_signal_compat_matched): new internal function to aid
4820         implementation of the compatibility macros, it  provides
4821         functionality to block/unblock/disconnect handlers based
4822         on func/data.
4823
4824         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
4825
4826         * *.c: adaptions to new type registration API signatures.
4827
4828 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
4829
4830         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
4831
4832 2000-10-25  Robert Brady  <robert@suse.co.uk>
4833
4834         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
4835         gdk_property_delete): If window == NULL, assume the root window.
4836         (restoring the behaviour that was in 1.2).
4837         
4838         * gtk/testtext.c (save_buffer): Allow creation of new files when
4839         saving.
4840
4841         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
4842         calls to read().
4843
4844 2000-10-25  Tor Lillqvist  <tml@iki.fi>
4845
4846         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
4847
4848         * gdk/win32/gdkdrawable-win32.c
4849         * gdk/win32/gdkimage-win32.c
4850         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
4851         X11 backend.
4852
4853         * gdk/win32/gdkcc-win32.c
4854         * gdk/win32/gdkcolor-win32.c
4855         * gdk/win32/gdkfont-win32.c
4856         * gdk/win32/gdkinput-win32.c
4857         * gdk/win32/gdkmain-win32.c
4858         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
4859
4860 2000-10-24  Havoc Pennington  <hp@redhat.com>
4861
4862         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
4863         it a static function
4864
4865         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
4866         redraw text when a tag is applied to it.
4867
4868         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
4869         (gtk_text_tag_affects_nonsize_appearance): private functions to
4870         see if a tag requires various kinds of redraw/layout to be queued
4871         up.
4872
4873         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
4874
4875         * gtk/testtext.c (fill_example_buffer): Put the cursor 
4876         at the start of the buffer, so search works by default
4877
4878         * gtk/gtktextiter.c (lines_match): init match_start always
4879
4880         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
4881         function, get iter at a line + a byte index
4882
4883         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
4884         to set byte position within a line
4885         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
4886
4887 2000-10-23  Havoc Pennington  <hp@redhat.com>
4888
4889         * gtk/testtext.c: Re-enable the "find" dialog
4890
4891         * gtk/testgtk.c: Add test for gdk_drawable_get_image
4892         
4893         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
4894         the arguments to gdk_draw_drawable were in the wrong order
4895         (gdk_window_paint_init_bg): This function was ignoring the
4896         init_region, instead of clipping to it, so the entire backing
4897         pixmap was cleared on every begin_paint()
4898         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
4899         was in here again, the loop kept using the same GtkWindowPaint
4900         over and over.
4901         (gdk_window_begin_paint_region): Fix a bug where we had two
4902         x_offset instead of x_offset and y_offset
4903
4904         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
4905         before we get the image.
4906         (gdk_draw_drawable): get the composite before we draw the drawable.
4907         (gdk_drawable_real_get_composite_drawable): default
4908         get_composite_drawable implementation that returns the drawable 
4909         itself
4910
4911         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
4912         get_composite_drawable virtual function
4913
4914         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
4915         list-walking bug
4916
4917         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
4918         make this work if the source drawable is a GdkDrawableImplX11
4919         instead of a public drawable type. This is really broken; the
4920         problem is that GdkDrawable needs a virtual method get_xid(), but
4921         of course that doesn't work in practice. Enter RTTI.
4922
4923         Also, improve mismatched depth message.
4924
4925         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
4926         GdkPixmap
4927
4928         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
4929         install _gdk_x11_get_image as our implementation of get_image
4930         
4931         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
4932         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
4933
4934         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
4935         gdk_drawable_get_image
4936
4937         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
4938
4939         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
4940         get_image
4941
4942         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
4943         trailing semicolon after for loop
4944
4945 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
4946
4947         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
4948         where font_desc for widget's context lagged widget's font_desc by
4949         one step.
4950
4951 2000-10-22  Tor Lillqvist  <tml@iki.fi>
4952
4953         * gdk/win32/gdkgc-win32.c
4954         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
4955
4956         * gtk/makefile.mingw.in
4957         * gtk/gtk.def: Updates.
4958
4959         * gtk/testgtk.c: sleep() is called _sleep in MS's C
4960         library.
4961
4962         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
4963
4964         * gtk/makefile.msc: Remove
4965
4966         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
4967
4968         * gtk/Makefile.am: Add it.
4969
4970         * configure.in: Generate it.
4971
4972         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
4973         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
4974         something even if not implemented, to satisfy picky MSVC.
4975
4976         Patches by Hans Breuer:
4977         
4978         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
4979         SetBkMode() and SetTextAlign() before calling
4980         pango_win32_render().
4981
4982         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
4983         Set hcliprgn to NULL after destroying it.
4984         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
4985
4986         * gdk/win32/gdkgeometry-win32.c
4987         (_gdk_windowing_window_queue_antiexpose): More effective
4988         implementation.
4989
4990         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
4991         depth as default, not the visual's.
4992
4993         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
4994         against empty title.
4995
4996         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
4997         IMAGE_PRIVATE_DATA.
4998
4999         * gdk/win32/gdkimage-win32.c: Use it.
5000
5001 2000-10-22  Robert Brady  <robert@suse.co.uk>
5002
5003         * configure.in: Check for bind_textdomain_codeset
5004
5005         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
5006         present, make use of it.
5007
5008         Add a translatable string "default:LTR" which, if translated
5009         to "default:RTL", will cause the default direction to be
5010         Right-to-Left.
5011
5012         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
5013         direction if marked as flippable.
5014
5015         * gtk/gtkhscale.c: Mark widget as flippable.
5016         
5017 2000-10-04  Havoc Pennington  <hp@redhat.com>
5018
5019         * gtk/testgtk.c (create_buttons): create some stock buttons
5020         with the default accel group
5021         (create_image): test some new GtkImage features
5022         (make_message_dialog): test GtkMessageDialog
5023         (create_modal_window): fix someone's bizzarro indentation
5024
5025         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
5026         GTK_WIN_POS_CENTER_ON_PARENT. 
5027         Add "destroy with parent" setting, which means the window goes
5028         away with its transient parent.
5029         (gtk_window_get_default_accel_group): get the default accel group
5030         for the window.
5031         (gtk_window_set_destroy_with_parent): set/unset destroy with
5032         parent flag
5033         (gtk_window_read_rcfiles): invalidate icon set caches
5034         after reloading rcfiles 
5035
5036         * gtk/gtkenums.h (GtkWindowPosition): add
5037         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
5038         on its parent window when the dialog is mapped for the first time.
5039
5040         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
5041         a simple message dialog class
5042         
5043         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
5044         handler to emit response signal, and maybe later it would
5045         honor a hide_on_delete flag - though that isn't there yet.
5046         Set border width on the vbox to 2, so we get some padding.      
5047         Use a button box for the action area.
5048         (gtk_dialog_key_press): synthesize a delete event if Esc
5049         is pressed and the GtkWidget key press handler didn't 
5050         handle the escape key.
5051         (gtk_dialog_new_with_buttons): new function creates a dialog
5052         with some default buttons in it.
5053         (gtk_dialog_add_action_widget): add an activatable widget
5054         as a button in the dialog - you can also add a non-activatable
5055         widget by accessing the action area directly.
5056         (gtk_dialog_add_button): add a simple button - stock ID or 
5057         label - to the action area
5058         (gtk_dialog_response): emit response signal
5059         (gtk_dialog_run): block waiting for the dialog, return 
5060         the response. Override normal delete_event behavior, so that 
5061         delete_event does nothing inside gtk_dialog_run().
5062
5063         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
5064         emitted when an action widget is clicked or the dialog gets
5065         delete_event
5066
5067         * gtk/gtk.h: add gtkmessagedialog.h
5068
5069         * gtk/Makefile.am: add gtkmessagedialog.[hc]
5070
5071 2000-10-18  Havoc Pennington  <hp@redhat.com>
5072
5073         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
5074         where any number of empty lines would get skipped
5075
5076         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
5077         edge.
5078
5079         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
5080         warning about invalid iterators (explain more thoroughly)
5081         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
5082
5083         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
5084         big
5085
5086         * demos/*.c: Add error handling
5087
5088         * gtk/gtktextbuffer.c: don't modify const iterators
5089
5090         * gtk/gdk-pixbuf-loader.c: Add full error handling here
5091
5092         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
5093         on file load
5094
5095         * gtk/gtkiconfactory.c: Update to reflect addition of error
5096         handling to gdk-pixbuf loaders
5097
5098 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
5099
5100         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
5101         move to new modularized testgtk.
5102
5103 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
5104
5105         * gtk/gtktreeview.c: Draw the arrows correctly.
5106
5107         * gtk/gtktreemodel.c: Added user docs.
5108
5109         * gtk/gtk.h: remove gtktreedatalist.h.
5110
5111         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
5112         parent when generating my type.
5113
5114         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
5115         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
5116
5117 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
5118
5119         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
5120         GtkTreeModel from object to interface.
5121
5122 2000-10-16  Havoc Pennington  <hp@redhat.com>
5123
5124         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
5125         compilation
5126
5127 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
5128
5129         * gtk/gtktreeselection.c: Add API documentation to all public
5130         functions.
5131
5132         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
5133         functions.
5134
5135 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
5136
5137         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
5138         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
5139         docs to all public functions.
5140
5141         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
5142         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
5143         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
5144         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
5145         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
5146         issue.
5147
5148 2000-10-14  Robert Brady  <robert@suse.co.uk>
5149
5150         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
5151
5152 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
5153
5154         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
5155         values other then G_TYPE_STRING.
5156         * gtk/gtktreeselection.c: Minor commenting updates.
5157         * gtk/gtktreeview.c: Format updates.
5158
5159 2000-10-09  Tor Lillqvist  <tml@iki.fi>
5160
5161         * README.win32: Update.
5162
5163         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
5164         lines that had been deleted by mistake (?).
5165
5166         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
5167         also the case fg==white and bg==black (but still not randomly
5168         coloured cursors). Thanks to Wolfgang Sourdeau.
5169
5170         * gdk/win32/*.c: Silence gcc -Wall.
5171
5172         * gtk/gtk.def: Add missing entry points.
5173
5174         Fixes by Hans Breuer:
5175
5176         * gdk/makefile.msc
5177         * gdk/win32/makefile.msc: Update.
5178
5179         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
5180         some MSVC thing, presumably), cause breakpoint on failures. Add
5181         GDK_NOR case. Call g_log_set_always_fatal.
5182
5183         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
5184         should be pased by reference.
5185         
5186         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
5187         
5188         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
5189
5190         * gdk/win32/gdkevents-win32.c
5191         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
5192
5193         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
5194         implementation object.
5195
5196         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
5197         not just windows.
5198         
5199         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
5200         Use the wrapper object.
5201         
5202 2000-10-06  Havoc Pennington  <hp@redhat.com>
5203
5204         * Makefile.am (SRC_SUBDIRS): contrib subdir
5205
5206         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
5207         so it can be used in Xlib version
5208
5209         * demos/testpixbuf.c (update_timeout): error checking from 1.0
5210         tree
5211
5212         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
5213         change from 1.0 tree that returns first frame of animation
5214         if the loaded file is an animation.
5215
5216         * contrib: add new directory to hold stuff that comes with GTK+
5217         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
5218         
5219         * configure.in: add contrib/*
5220
5221 2000-10-05  Havoc Pennington  <hp@redhat.com>
5222
5223         * demos/testpixbuf-save.c: add pixbuf save test
5224
5225         * demos/Makefile.am: add testpixbuf-save.c
5226
5227 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
5228
5229         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
5230         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
5231         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
5232         * gtk/gtktreeselection.[ch]: Replaced
5233         "node_selected"/"node_unselected" signal with "selection_changed"
5234         signal.
5235
5236 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
5237
5238         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
5239         tree widget.
5240
5241 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
5242
5243         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
5244         drawing.
5245
5246 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
5247
5248         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
5249         Move list pointer forwards before removing item from
5250         list. (Crash reported by Salmaso Raffaele)
5251
5252         * gdk/gdkwindow.h: Remove spurious trailing ,
5253
5254         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
5255         dependencies on uninstalled libraries, sorry folks.
5256
5257 2000-10-04  Havoc Pennington  <hp@redhat.com>
5258
5259         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
5260         gtk/gtkiconfactory.c: Fix copyrights    
5261
5262         * demos/testpixbuf.c: add inline pixbuf test
5263         
5264 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
5265
5266         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
5267         Add gdk_window_iconify.
5268
5269         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
5270         (gdk_window_set_geometry_hints): Add win_gravity
5271         to geometry structure.
5272
5273         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
5274         Implement _NET_WM_PING.
5275
5276         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
5277         Set _NET_WM_PID on the client leader.
5278
5279         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
5280         Handle UTF-8 better.
5281
5282         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
5283         UTF-8 better, set _NET_WM_NAME as well. Only set
5284         icon name if it hasn't previously been explicitely 
5285         set.
5286
5287 2000-10-03  Havoc Pennington  <hp@redhat.com>
5288
5289         * gtk/testtextbuffer.c: clean up trailing whitespace,
5290         add extensive tests for tag toggle iteration.
5291         
5292         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
5293         distance
5294
5295         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
5296         optimize case where the tag root is on level 1
5297         (gtk_text_line_previous_could_contain_tag): attempt to implement
5298         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
5299         functionality
5300
5301         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
5302         Implement this, though not very efficiently.
5303
5304         * gtk/gtktextiterprivate.h: reformat
5305
5306         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
5307         iterator
5308
5309         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
5310         this to properly revalidate the iterators.
5311
5312         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
5313         properly at the end of the line (and therefore on empty lines)
5314
5315         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
5316         maybe we should return a value...
5317
5318 2000-10-03  Tor Lillqvist  <tml@iki.fi>
5319
5320         * config.h.win32: Guard definition of alloca(). glib.h now handles
5321         that.
5322
5323         * gdk/gdk.def
5324         * gtk/gtk.def: Add new entry points.
5325
5326         Changes just to make GTK+ build without errors on Win32. No hope
5327         of it working in its current state, though...:
5328         
5329         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
5330         some functions from the X11 backend, just to make GTK+ build.
5331
5332         * gdk/makefile.mingw.in
5333         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
5334         number. Add new object files.
5335
5336         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
5337         GetMessageTime to get timestamp (where on X11 uses
5338         gdk_x11_get_server_time()).
5339
5340 2000-10-02  Havoc Pennington  <hp@pobox.com>
5341
5342         * gtk/gtktextview.c: text_window_* weren't static and should have
5343         been.
5344         Start work on child widgets; not yet complete, syncing to 
5345         office computer.
5346
5347         * gtk/gtktextchild.h: change this to contain a public interface,
5348         starting work on child interfaces.
5349         * gtk/gtktextchildprivate.h: move private interfaces here
5350
5351         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
5352
5353         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
5354         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
5355         gtk/gtktextmark.c: copyright notices
5356
5357         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
5358         internal functions      
5359
5360         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
5361         internal function
5362
5363         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
5364         Reformatting    
5365
5366 2000-09-30  Havoc Pennington  <hp@pobox.com>
5367
5368         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
5369         NULL start/end pointers
5370
5371         * gtk/gtktextbuffer.c: Write some docs
5372         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
5373         NULL, so you can just check whether there's a selection.        
5374
5375         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
5376         cleanup_line or segments_changed ourselves, it gets done 
5377         in unlink_segment
5378
5379         * gtk/gtktextmark.h:
5380         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
5381         
5382         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
5383
5384         * gtk/gtktextmark.c: delete some more old Tk cruft
5385
5386         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
5387         mark before removing it, so we can emit MARK_DELETED with a valid
5388         pointer.
5389         (gtk_text_buffer_mark_set): hold ref across signal emission
5390
5391         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
5392         whining about attempts to delete special marks
5393
5394         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
5395         underscore, since it's internal.
5396
5397         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
5398         now implemented in terms of iterators in gtktextiter.h
5399
5400         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
5401         New function, destructively sets contents of buffer. Also 
5402         a convenient way to clear the buffer by setting text to ""
5403
5404         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
5405         multiline string literal
5406
5407         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
5408         text changes.
5409
5410         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
5411         is not dereferenceable
5412         (gtk_text_iter_forward_lines): fix return value
5413
5414 2000-09-29  Havoc Pennington  <hp@redhat.com>
5415
5416         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
5417
5418         * gtk/gtktextview.c: Implement drag thresholding; change functions 
5419         that set border window size to have nicer name
5420         (gtk_text_view_mark_set_handler):  Fix this to have the 
5421         right signature.
5422
5423         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
5424
5425         * gtk/testtext.c: Update with API changes, put line numbers on 
5426         both sides.
5427         
5428         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
5429         with this
5430
5431         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
5432         pixbuf; delete a big block of #if 0 Tk code
5433
5434         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
5435         insert_pixmap with insert_pixbuf
5436
5437 2000-09-29  Martin Baulig  <baulig@suse.de>
5438
5439         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
5440         confusion with the GdkPixbuf of the GNOME 1.x platform.
5441
5442 2000-09-29  Havoc Pennington  <hp@pobox.com>
5443
5444         * gtk/gtktextview.c: Implement the side windows.
5445
5446         * gtk/testtext.c: Implement simple line numbering in the 
5447         left side window; seems to make scrolling sloooow. Oops.
5448         Also, cursor blink is for some reason causing redraws
5449         of the line numbers. Should investigate...
5450
5451 2000-09-28  Havoc Pennington  <hp@redhat.com>
5452
5453         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
5454         scrolling child windows, and draw focus rectangle properly.
5455         
5456         (gtk_text_view_buffer_to_window_coords):
5457         Coordinate transformation to deal with all these freaking windows
5458         and offsets
5459         (gtk_text_view_window_to_buffer_coords): transform the other way
5460
5461         * gtk/testtext.c (create_buffer): Update to match Pango API change
5462
5463         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
5464         anonymous tags
5465         (foreach_unref): don't emit remove signal from finalize, just
5466         set tag's parent to NULL
5467
5468 2000-09-26  Havoc Pennington  <hp@redhat.com>
5469
5470         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
5471         Fix some warnings       
5472
5473 2000-09-26  Havoc Pennington  <hp@redhat.com>
5474
5475         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
5476         headers into the private header list
5477
5478         * Makefile.am (pkgconfig_DATA): install pkg-config files
5479
5480         * configure.in: add pkg-config files
5481
5482         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
5483
5484         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
5485         outstanding icon caches on theme change.
5486
5487         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
5488         important types:
5489
5490         (GtkIconSource): Specification for creating a pixbuf 
5491         appropriate for a direction/state/size triplet from 
5492         a source pixbuf or filename
5493
5494         (GtkIconSet): List of GtkIconSource objects that are used to
5495         create the "same" icon (e.g. an OK button icon), and cache for
5496         rendered icons
5497
5498         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
5499         up the icon set for a given stock ID.  GTK maintains a stack of
5500         GtkIconFactory to search, and applications or libraries can add
5501         additional icon factories on top of the stack
5502         
5503         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
5504         the set of GtkIconSource specified for a given stock ID into 
5505         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
5506         RcStyle, under the specified stock ID.
5507
5508         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
5509         render_icon used to derive a GdkPixbuf from a GtkIconSource.
5510         This allows people to theme how prelight, insensitive, etc. are
5511         done.
5512
5513         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
5514         icon factories for a style, and return the resulting 
5515         icon set if any.
5516
5517         (gtk_style_render_icon): Render an icon using the render_icon 
5518         method in the GtkStyleClass.
5519
5520         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
5521         Use the style for a given widget to look up a stock ID, get the
5522         icon set, and render an icon using the render_icon method 
5523         of the style
5524
5525         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
5526         (contains information about a stock item), the built-in stock item
5527         IDs, and functions to add/lookup stock items.
5528
5529         * gtk/stock-icons/*: Stock icons that come with GTK
5530
5531         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
5532         a button based on a GtkStockItem
5533         (gtk_button_new_accel): Takes a uline string and accel group, and
5534         installs the accelerator.
5535
5536         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
5537         image-display widget.
5538
5539 2000-09-25  Havoc Pennington  <hp@redhat.com>
5540
5541         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
5542
5543         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
5544         Fix a bug when removing node data, we didn't properly 
5545         re-splice the linked list after removing the data.
5546
5547         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
5548         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
5549
5550         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
5551
5552         * gtk/gtktextlayout.c (set_para_values): Set tab array 
5553         for the layout from the GtkTextTag.
5554
5555         * gtk/gtktexttypes.h: delete tab and search cruft, 
5556         remove g_convert() in favor of GLib version
5557
5558         * gtk/gtktexttypes.c: remove tab implementation from here,
5559         move to Pango
5560
5561         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
5562         tab stuff using new PangoTabArray from Pango
5563
5564         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
5565         unused border_width stuff
5566
5567 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
5568
5569         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
5570         glib) and now useless utf_to_latin1() latin1_to_utf()
5571
5572         * gtk/gtktextview.[ch]: Change ::move_insert and
5573         ::delete_text action signals to ::move and ::delete;
5574         create the signals with the right enumeration type,
5575         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
5576         C-v bindings, change Home, End to move to beginning/end
5577         of line, Add C-Home C-End to move to beginning/end
5578         of buffer. Change ::cut_text to ::cut_clipboard, etc;
5579         combine ::scroll_text into ::move; use new GtkSelectionData
5580         functions to simplify DND text handling.
5581         
5582         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
5583         deletion enumerations here, rename enumeration values to 
5584         be consistently plural.
5585
5586         * gtk/gtktextbuffer.c: Use new clipboard interfaces
5587         for cut/copy/paste and primary selection.
5588
5589         * gtk/gtktextbuffer.[ch]: Remove excess time and
5590         'interactive' arguments from cut/copy/paste;
5591         rename cut to cut_clipboard, etc; remove
5592         gtk_text_buffer_get_clipboard_contents().
5593
5594         * gtk/gtktextlayout.[ch]: Add 
5595         gtk_text_layout_move_iter_to_line_end() to move the iter to 
5596         line ends.
5597
5598         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
5599         Functions to set or get a UTF-8 string on the selection
5600         data.
5601
5602         * gtk/gtkclipboard.[ch]: New, simplified selection handling
5603         interfaces.
5604
5605         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
5606         created widgets - one of these is useless if we don't.
5607
5608         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
5609         a public function clear all targets registered for the
5610         widget.
5611
5612         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
5613         Never call gtk_widget_realize() - that was just asking
5614         for bizarre side-effects.
5615
5616         * gtk/gtkselection.c (gtk_selection_owner_set): Call
5617         gdk_selection_owner_set even if the widget is the
5618         same so that we reliably update the timestamp on
5619         the server.
5620
5621         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
5622         gdk_x11_get_server_time() function.
5623         
5624         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
5625         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
5626         Add some tricky filtering on serial numbers for
5627         selection clear events to fix up long-standard
5628         race condition FIXME's in gtkselection.c.
5629
5630         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
5631         routines to convert from utf8 to compound text or
5632         STRING and from a text property to UTF-8.
5633
5634         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
5635         a convenience function gdk_get_current_event_time().
5636
5637         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
5638         and free selection_data->data properly
5639
5640 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
5641
5642         * gtk/gtkthemes.c: Remove some unecessary includes.
5643
5644 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
5645
5646         * gtk/gtktextdisplay.c
5647         * gtk/gtktextlayout.c
5648         * gtk/gtktexttag.c
5649         * gtk/gtktexttag.h
5650         * gtk/testtext.c: Change the overstrike property to strikethrough,
5651         to closer match pango.
5652
5653 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
5654
5655         * gtk/gtktextview.c: Fix up visibility so that focus,
5656         cursor_visible and blink interact properly.  Reenable cursor blink
5657         which had been roughly disabled. Make blink and focus
5658         properly per-view.
5659
5660         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
5661         Add a flag for whether to display insertion cursor and
5662         a function to set the flag.
5663
5664         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
5665         get_line_y() to get_line_yrange(), to be a bit more generally
5666         useful.
5667
5668 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
5669
5670         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
5671           do stop_navigating_submenu, to clear last timeout properly.
5672           Also in gtk_menu_motion_notify move ignore_enter above
5673           the conditional to make it always happen as suggested by Owen
5674
5675 2000-09-07  Tor Lillqvist  <tml@iki.fi>
5676
5677         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
5678
5679         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
5680         w32api headers.
5681
5682         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
5683         declarations.
5684
5685         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
5686         (gdk_win32_get_colormap): A line had been deleted by mistake.
5687
5688         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
5689         (gdk_event_translate): Handle more virtual keycodes to be able to
5690         generate GDK events for Control-comma, Control-period, etc.
5691
5692         * gtk/gtk.def: Add some missing entry points.
5693
5694 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
5695
5696         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
5697         Doc comment fixing. (Mostly non-matching parameter names.)
5698
5699         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
5700         comments a little to avoid looking like a doc comment.
5701
5702         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
5703         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
5704         conversions be changed to GError?)
5705
5706         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
5707         Move private #defines into .c file.
5708
5709         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
5710         order of argument addition, remove duplicates.
5711
5712         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
5713         parent class is FrameClass, not BinClass.
5714
5715         * gtk/gtk.h: Add gtkinvisible, which was missing.
5716         (It's occasionalyl useful for client apps, if seldom.)
5717
5718         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
5719         #define.
5720
5721 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
5722
5723         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
5724         coordinates when creating window, instead of GDK-space
5725         coordinates. (Avoid BadValue on too large windows.)
5726
5727 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
5728
5729         * configure.in (use_mmx_asm): Remove conftest* after use along the
5730         lines of AC_TRY_COMPILE.        
5731         
5732         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
5733         of g_dirname, which is deprecated.
5734         (gtk_rc_parse_any): Removed calls to
5735         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
5736
5737         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
5738         Removed calls to g_hash_table_{freeze,thaw}, as they are
5739         deprecated now.
5740
5741         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
5742         instead of g_basename.
5743         
5744 2000-09-04 Elliot Lee <sopwith@redhat.com>
5745         
5746         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
5747         ANSI warning.
5748
5749 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
5750
5751         * gtk/gtkwidget.h:  Add some documenting comments about 
5752           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
5753           just as owen said on irc.
5754
5755         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
5756           set HAS_DEFAULT.  Only set it if there isn't another window
5757           holding it (a focus window which RECEIVES_DEFAULT) and only unset
5758           it if the widget is not the focused window with RECEIVES_DEFAULT.
5759           This fixes weird double default bugs in dialogs which has things
5760           call gtk_window_set_default at times.
5761
5762 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
5763
5764         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
5765         Nils Barth and David Santiago to improve submenu
5766         navigation. The patch does this by creating a triangular
5767         region from the point where the pointer leaves the
5768         menu to the submenu.  While the pointer is in
5769         that region and a timeout has not expired, events 
5770         that would cause the active submenu to change are
5771         ignored.
5772
5773 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
5774
5775         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
5776         moving a toplevel window immediately after sizing it would
5777         result in it being sized back to the old size since 
5778         impl->width, impl->height aren't updated until we hear
5779         back from the server. There is still a (longstanding) bug
5780         here that gdk_window_get_size() will give the wrong size
5781         until we do hear back.
5782
5783 2000-08-31  Havoc Pennington  <hp@redhat.com>
5784
5785         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
5786         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
5787         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
5788         Rename GtkTextStyleValues to GtkTextAttributes
5789
5790 2000-08-31  Havoc Pennington  <hp@pobox.com>
5791
5792         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
5793         for rapid testing whether an iterator is the end iterator
5794         (gtk_text_btree_new): init end line cache
5795         (gtk_text_line_is_last): use fast cached line to 
5796         see if we're the last line.
5797         (get_last_line): use cached line here too, should 
5798         speed up some random unrelated code.
5799         
5800 2000-08-30  Havoc Pennington  <hp@pobox.com>
5801
5802         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
5803         signals.
5804
5805         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
5806         delete_text signals. This allows the signals to be used for
5807         implementing undo.
5808
5809         * gtk/gtktextbuffer.c: Change signal handler signatures; 
5810         provide "interactive" argument when emitting insert_text or
5811         delete_text signal.
5812         
5813 2000-08-30  Havoc Pennington  <hp@pobox.com>
5814
5815         * gtk/gtktextbuffer.c: Docs
5816
5817 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
5818
5819         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
5820         from switch statements, since Tor removed the enumeration
5821         value.
5822         
5823         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
5824         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
5825
5826 2000-08-29 Elliot Lee <sopwith@redhat.com>
5827         * */*.h: Use G_GNUC_CONST.
5828
5829 2000-08-27  Havoc Pennington  <hp@pobox.com>
5830
5831         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
5832         minor indentation fixes, inserted some FIXME about stuff I
5833         realized was broken while documenting it.
5834         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
5835         GTK convention  
5836
5837 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
5838
5839         * gtk/testgtk.c (create_styles): Fix double free of
5840         font desc.
5841
5842 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
5843
5844         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
5845         
5846         * gtk/testgtk.c (create_styles): Add a test for modifying
5847         the style through gtk_widget_modify_*.
5848
5849         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
5850         a function to get the current modifier style.
5851
5852         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
5853         of the passed in GtkRcStyle instead of ref'ing it.
5854
5855         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
5856
5857 2000-08-20  Tor Lillqvist  <tml@iki.fi>
5858
5859         * gdk/gdkimage.h
5860         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
5861         shared memory image+pixmap GdkImage type, or
5862         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
5863         I am dropping that.
5864
5865         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
5866         actually call gtk_init_abi_check(), passing also
5867         sizeof(GtkWindow). Ditto for gtk_init_check(). 
5868
5869         * gtk/gtk.def
5870         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
5871         New functions, used to check that the GTK+-using code has been
5872         compiled using the correct compiler and switches. In particular,
5873         with gcc one has to use the -fnative-struct switch as GTK+ is
5874         compiled with that.
5875
5876 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
5877
5878         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
5879         ->prev fields when merging lists. (Found simultaneously
5880         by Pawel Salek and Jakub Jelinek)
5881
5882 2000-08-12  Tor Lillqvist  <tml@iki.fi>
5883
5884         * gdk/gdk.def
5885         * gtk/gtk.def: Add missing entries.
5886
5887         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
5888         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
5889
5890         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
5891         function. Dummy implementation at this point.
5892
5893         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
5894         rules. Undefine GTK_COMPILATION when compiling the test programs.
5895         
5896         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
5897
5898 2000-08-11  Tor Lillqvist  <tml@iki.fi>
5899
5900         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
5901         to convert back and forth from UTF-8 and the "system" (or "current
5902         locale") charset when necessary. Indentation/spacing cleanup.
5903
5904 2000-08-10  Havoc Pennington  <hp@redhat.com>
5905
5906         * Makefile.am (snapshot): Change the format of the snapshot
5907         version to match glib
5908
5909         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
5910         from EXTRA_DIST since it doesn't seem to exist
5911
5912 2000-08-10  Tor Lillqvist  <tml@iki.fi>
5913
5914         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
5915         version of the directory name (not the UTF-8 one) when building
5916         the path name to stat().
5917
5918 2000-08-03  Elliot Lee  <sopwith@redhat.com>
5919
5920         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
5921         PANGO_ATTR_SHAPE set.
5922
5923 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
5924
5925         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
5926         Peter Osterlund to simplify the code while keeping the
5927         functionality the same.
5928
5929 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
5930
5931         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
5932         is_viewable() test further inside the function, since removing the 
5933         window from the redraw list without clearing ->update_area
5934         was also very broken.
5935
5936 2000-08-02  Tor Lillqvist  <tml@iki.fi>
5937
5938         * configure.in: Check for <unistd.h>.
5939
5940 2000-08-01  Martin Baulig  <baulig@suse.de>
5941
5942         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
5943         to display the message that this is a development version of GTK+.
5944
5945 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
5946
5947         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
5948         was depending on widget->allocation instead of the width of text_area,
5949         which was incorrect for subclasses like GtkSpinButton.
5950
5951         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
5952         with width == 1 tests that should be width == -1.
5953
5954 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
5955
5956         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
5957         (broken, Elliot, every single window blank on X) custom code with call
5958         to gdk_window_is_viewable() which a) prevents code duplicate and
5959         b) works. 
5960
5961 2000-07-31  Elliot Lee  <sopwith@redhat.com>
5962
5963         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
5964         to get the GDK_PARENT_ROOT() macro to work.
5965         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
5966         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
5967         of, windows that aren't shown.
5968         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
5969         pointer grab stuff.
5970
5971 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
5972
5973         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
5974           s/gtk_main_iteration/g_main_iteration/
5975
5976           Did this already in change:
5977                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
5978           don't know how it got reverted.
5979
5980 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
5981
5982         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
5983         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
5984
5985         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
5986         not gdk_pixbuf.
5987
5988 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
5989
5990         * configure.in,po/{sp,sr}.po: Added Serbian files
5991
5992 2000-07-30  Tor Lillqvist  <tml@iki.fi>
5993
5994         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
5995
5996         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
5997         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
5998         GIOChannel implementation.
5999
6000         * gdk/win32/gdkinput.c
6001         * gdk/win32/gdkpango-win32.c: Update license name here, too.
6002
6003         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
6004         definition to match prototype.
6005
6006         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
6007
6008 2000-07-27  Elliot Lee  <sopwith@redhat.com>
6009
6010         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
6011         function, to allow handling image formats that cannot be detected
6012         by looking at content alone.
6013
6014 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
6015
6016         * docs/tutorial/*.gif *.jpg *.eps
6017           Update these to the same look-n-feel.
6018           Why does including images in DocBook suck so badly?
6019
6020 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
6021
6022         * gtk/gtktable.c: applied patch from Phil Thompson
6023         <phil@river-bank.demon.co.uk> that enables space settings for
6024         the last row/columns as well.
6025
6026 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
6027
6028         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
6029         updates the license headers to the GNU Lesser General Public License,
6030         as well as updating the copyright year to 2000.
6031
6032 2000-07-26  Robert Brady  <rwb197@zepler.org>
6033
6034         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
6035           and po/Makefile, was installing and looking for them under gtk20
6036           and gtk2 respectively.
6037
6038 2000-07-25  Havoc Pennington  <hp@redhat.com>
6039
6040         * gtk/testtext.c: Comment out some stuff that depends on the rest
6041         of my patches.
6042
6043 2000-07-25  Havoc Pennington  <hp@redhat.com>
6044
6045         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
6046         buffer
6047
6048 2000-07-25  Havoc Pennington  <hp@redhat.com>
6049
6050         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
6051         widget changes.
6052
6053         * gtk/gtktextview.h: To be consistent with usage of "line"
6054         throughout the API to mean "newline-terminated thingy", change
6055         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
6056         to MOVEMENT_LINE.
6057
6058         (GtkTextView): Add flags for default editability, and whether to
6059         show the cursor. Add functions to get/set that. Add 
6060
6061         (gtk_text_view_get_iter_location): new function
6062
6063         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
6064         gtktextlayout.h
6065         (g_convert): Add g_convert temporarily, will go in glib in a bit
6066         
6067         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
6068         GtkTextTagTableForeach instead of brokenly using GHFunc.
6069         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
6070
6071         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
6072         moved to public header.
6073
6074         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
6075         "invisible", since "elide" was a bad name.
6076         (gtk_text_tag_get_priority): Added
6077
6078         (GtkTextStyleValues): put this in public header, along with
6079         functions to use it.
6080
6081         * gtk/gtktextmarkprivate.h: Include more headers, since we no
6082         longer include gtktextbtree.h.
6083
6084         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
6085         gtk_text_mark_deleted
6086
6087         * gtk/gtktextlayout.h: Don't include the "really private" headers,
6088         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
6089         to make this possible. Now we only need to install
6090         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
6091         (However the Makefile.am isn't changed yet because of the
6092         logistics of merging gtk-hp-patches piecemeal)
6093
6094         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
6095         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
6096         gtk_text_iter_get_line is now used in the public API for a
6097         different purpose.
6098
6099         * gtk/gtktextiter.h: Clean up function names to be more
6100         consistent. Always call char offset "offset" and byte index
6101         "index". A "line" is always a line number. 
6102
6103         (gtk_text_iter_is_last): new function, more efficient than 
6104         the existing way to check
6105         (gtk_text_iter_is_first): new function, also more efficient
6106
6107         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
6108
6109         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
6110         gtk_text_iter_forward_char, etc.
6111
6112         (gtk_text_iter_forward_to_tag_toggle): Renamed from
6113         forward_find_tag_toggle, since this isn't a linear search
6114
6115         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
6116
6117         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
6118         New functions, search for a buffer substring.
6119
6120         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
6121         interactive and default editable (since we need to store that info
6122         until we receive the selection data).
6123
6124         Remove all the _at_char and at_line etc. versions of functions;
6125         only have iterator versions.
6126
6127         Add _interactive() versions of functions, that consider the
6128         editability of text. (FIXME add interactive flag to the 
6129         insert/delete signals per Darin's suggestion)
6130
6131         (gtk_text_buffer_get_tag_table): new function, demand-creates the
6132         tag table if necessary
6133
6134         Remove declaration of gtk_text_buffer_get_iter_from_string
6135
6136         (_gtk_text_buffer_get_btree): private/internal function, added.
6137         
6138
6139         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
6140         (gtk_text_line_is_last): new function
6141
6142 2000-07-25  Havoc Pennington  <hp@redhat.com>
6143
6144         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
6145         using GtkProgressBar. See Changes-2.0.txt for details.
6146
6147         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
6148         "pulse_step" which are the equivalent of
6149         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
6150         Implement new API.
6151         
6152         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
6153         (use_text_format) to mark whether text set on the progress bar is
6154         a format string. Deprecate entire GtkProgress interface.
6155
6156         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
6157         (gtk_progress_build_string): make this a no-op if use_text_format
6158         is FALSE
6159
6160         * docs/Changes-2.0.txt: Describe progress bar changes.
6161
6162 2000-07-25  Tor Lillqvist  <tml@iki.fi>
6163
6164         * Makefile.am: Include the build directory.
6165
6166         * configure.in: Generate build/Makefile, build/win32/Makefile,
6167         gdk/, gdk/win32/, and gtk/makefile.mingw.
6168
6169         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
6170         Add GETTEXT_PACKAGE.
6171         
6172         * gdk/gdk.def
6173         * gtk/gtk.def: Updates.
6174
6175         * gdk/gdkfont.h
6176         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
6177         need them any longer.
6178
6179         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
6180
6181         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
6182         PANGOWIN32_LIBS and gdk_pixbuf.
6183
6184         * gdk/win32: Compiles, but no doubt doesn't work at all.
6185
6186         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
6187
6188         * gdk/win32/gdkinput.c: New file, temporarily.
6189         
6190         * gdk/win32/gdkinput-win32.h: New file
6191
6192         * gdk/win32/gdkinputprivate.h: Remove.
6193
6194         * gdk/win32/gdkpango-win32.c: New file.
6195
6196         * gtk/makefile.mingw.in: New file
6197
6198         * gtk/makefile.cygwin: Removed
6199         
6200         * gtk/Makefile.am: Update accordingly.
6201
6202         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
6203         made externally visible.
6204
6205         * gtk/gtkmain.c: Use it.
6206         
6207         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
6208         is enough.
6209
6210         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
6211
6212 2000-07-24 Elliot Lee <sopwith@redhat.com>
6213         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
6214         individual backends already.
6215         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
6216         again. Yes, there really is a good reason for this, if you are using the gdkregion
6217         internals, and if you're not, why do you care?
6218         * gdk/gdkwindow.c: Fix inverted condition
6219         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
6220         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
6221         * gtk/gtkrange.c: Redraw trough when moving.
6222         * gtk/gtktypeutils.c: Fix warning by adding const cast.
6223         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
6224
6225 2000-07-23  Tor Lillqvist  <tml@iki.fi>
6226
6227         * configure.in: Check for mkstemp and sigsetjmp. Output
6228         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
6229
6230         More work on GDK for Win32. Still in an intermediate state.
6231
6232         * gdk/makefile.cygwin
6233         * gdk/win32/makefile.cygwin: Removed.
6234         
6235         * gdk/makefile.mingw.in
6236         * gdk/win32/makefile.mingw.in: New files.
6237
6238         * gdk/Makefile.am
6239         * gdk/win32/Makefile.am: Generate and distribute them.
6240
6241         * gdk/win32/gdkwindow-win32.h
6242         * gdk/win32/gdkdrawable-win32.h
6243         * gdk/win32/gdkpixmap-win32.h: New files.
6244
6245         * gdk/win32/gdkcolor-win32.c
6246         * gdk/win32/gdkcursor-win32.c
6247         * gdk/win32/gdkdrawable-win32.c
6248         * gdk/win32/gdkgc-win32.c
6249         * gdk/win32/gdkimage-win32.c
6250         * gdk/win32/gdkprivate-win32.h
6251         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
6252         Rename fields and variables called xcursor, xid, etc (these names
6253         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
6254
6255 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
6256
6257         * gtk/gtkentry.[ch]: Fix some problems with vertical
6258         alignment.
6259
6260         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
6261         char/byte confusion.
6262
6263 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
6264
6265         * gtk/gtktextview.c (changed_handler): Fix bug where
6266         redraw wasn't being done properly when height of
6267         dirty region changed.
6268
6269         * demos/Makefile.am: Remove various references to
6270         -lgmodule
6271
6272 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
6273
6274         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
6275         PangoAttrShape to reserve space for pixmaps, add 
6276         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
6277         in the display functions.
6278         
6279         * gtk/testgtk.c (create_layout): Set some more exotic
6280         scrolled window options
6281
6282         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
6283         Add function to set the shadow type of a window, to allow
6284         putting a shadow around widgets such as GtkLayout or GnomeCanvas
6285         which don't draw their own frame.
6286
6287 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
6288
6289         * docs/tutorial/package-db-tutorial.sh: New file for
6290           packaging DocBook format tutorial
6291
6292 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
6293
6294         * docs/tutorial/gtk-tut.sgml: Minor updates
6295
6296         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
6297
6298 2000-07-19  Tor Lillqvist  <tml@iki.fi>
6299
6300         * gtk/gtksignal.c: Fix C++ comment.
6301
6302         * gtk/gtkimmulticontext.c
6303         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
6304         don't return value from void functions.
6305
6306         * gtk/gtk.def: Add gtk_rc_style_unref.
6307
6308 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
6309
6310         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
6311         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
6312         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
6313         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
6314         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
6315         gtk/gtktypeutils.h: Include files outside of the extern "C"
6316         block. Makes some C++ compiler happy. Reported by Denis Vakatov
6317         <vakatov@peony.nlm.nih.gov>.
6318
6319 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
6320
6321         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
6322           Completes first pass. Hurrah!
6323
6324 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
6325
6326         * docs/tutorial/gtk-tut.sgml: More clean ups.
6327
6328 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
6329
6330         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
6331         paint the background of the text area which was accidentally
6332         removed at some point.
6333
6334         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
6335           
6336          - Move most of the functionality from the theme vtable
6337            into GtkRcStyleClass and GtkStyleClass. The moved
6338            vtable functions were changed a bit in the move to
6339            work better in their new home.
6340
6341          - Get rid of the engine and engine_data fields from
6342            GtkRcStyle and GtkStyle; instead the theme
6343            engine derives theme-specific subclasses of GtkRcStyle
6344            and GtkStyle
6345
6346          - Add extra dlsym() found entry point to themes,
6347            theme_create_rc_style().
6348
6349         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
6350         in gtk_style_real_copy.
6351
6352         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
6353         to register a type associated with an engine. (The engine
6354         won't be unloaded as there is an instance of the type.)
6355
6356
6357 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
6358
6359         * docs/tutorial/gtk-tut.sgml: Clean ups.
6360
6361 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
6362
6363         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
6364           of cleaning up to do.
6365
6366 2000-07-15  Tor Lillqvist  <tml@iki.fi>
6367
6368         * gdk/testgdk.c: New file, quick hack to test backends for
6369         pixel-by-pixel correctness of the most simple graphic operations.
6370
6371 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
6372
6373         * Really release 1.3.1
6374         
6375         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
6376         include structure.
6377
6378 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
6379
6380         * Released 1.3.1
6381
6382 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
6383
6384         * gtk/gtktextlayout.c: use FALSE for size_only most
6385         of the time when calling gtk_text_layout_get_line_display()
6386         to avoid causing double reshapes when a redraw follows
6387         immediately after.
6388
6389 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
6390
6391         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
6392         appropriate region and gdk_window_process_updates() so trough
6393         updating doesn't lag behind the window being scrolled.
6394
6395         * gdk/gdkgc.c: Make parent_class pointer static.
6396          
6397 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
6398
6399         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
6400         include <string.h>.
6401          
6402         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
6403         cut-and-paste error in computing memory offset for 4 channels.
6404
6405 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
6406
6407         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
6408         gtk_rc_append_default_pixmap_path(), since it wasn't
6409         adding an interesting path and we don't have a meaningful
6410         default for this value.
6411
6412 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
6413
6414         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
6415         gtk-config to gtk-config-2.0 move gtk_.m4 to
6416         gtk-2.0.m4
6417
6418         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
6419         gdk/Makefile.am demos/Makefile.am: Change 
6420         library names to libgtk-1.3.la, etc, so that we
6421         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
6422
6423         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
6424         gdk/Makefile.am gdk/x11/Makfile.am
6425         Move include files into /usr/include/gtk-2.0, 
6426         /usr/lib/gtk-2.0/include/
6427          
6428         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
6429         gtk/gtkintl.h: Change package for gettext from 
6430         gtk+ to gtk20. Put hack in autogen.sh to modify
6431         po/Makefile.in.in after gettextize to make this
6432         possible.
6433
6434         * gtk+.spec: Some updates, not tested.
6435
6436         * gdk-pixbuf/Makefile.am: Move loaders into
6437         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
6438
6439         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
6440         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
6441         to THEMENAME/gtk-2.0/. Move engine directory  to
6442         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
6443         
6444 2000-07-12  Tor Lillqvist  <tml@iki.fi>
6445
6446         Win32 changes, still doesn't build though.
6447
6448         * gdk/makefile.cygwin
6449         * gdk/win32/makefile.cygwin
6450         * gtk/makefile.cygwin: Updates.
6451
6452         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
6453         default values for fg and bg pixel as X11 does (0 and 1), not
6454         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
6455         Use 0 for pen width by default (treated as 1 anyway later, but for
6456         apps that might check the value in the GdkGC).
6457         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
6458         interface to gdk_gc_predraw and _postdraw.
6459
6460         * gdk/win32/gdkwin32.h
6461         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
6462
6463         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
6464         extraneous semicolon.
6465
6466         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
6467
6468         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
6469         not the Win32 bitspixel value.
6470
6471         * gdk/win32/gdkcc-win32.c:
6472         * gdk/win32/gdkcolor-win32.c 
6473         * gdk/win32/gdkprivate-win32.h
6474         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
6475         GDK object structure.
6476
6477 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
6478
6479         * docs/tutorial/gtk_tut_12.es.sgml (name): 
6480         * docs/tutorial/gtk_tut_it.sgml (name): 
6481         * docs/tutorial/gtk_tut_fr.sgml (name): 
6482         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
6483         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
6484
6485 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
6486
6487         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
6488           small changes.
6489
6490 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
6491
6492         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
6493         a bug here, never been here and never fixed anything ;(
6494         (don't segfault if tree->root_tree is NULL, which happens prior
6495         to widget realization, but puke instead).
6496
6497 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
6498
6499         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
6500         add the necessary tokens.
6501
6502         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
6503         (gtk_rc_style_to_style): copy thicknesses.
6504         (gtk_rc_init_style): apply thicknesses.
6505         (gtk_rc_parse_style): parse xthickness and ythickness.
6506
6507         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
6508
6509         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
6510         (gdk_window_new): 
6511         (_gdk_windowing_window_init): 
6512         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
6513         (gdk_pixmap_create_from_data): 
6514         (gdk_bitmap_create_from_data): 
6515         (gdk_pixmap_new): 
6516         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
6517         (gdk_image_new): 
6518         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
6519         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
6520         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
6521         (gdk_colormap_get_system): 
6522         (gdk_colormap_new): 
6523         * gdk/gdkwindow.c (gdk_window_init): 
6524         * gtk/gtkstyle.c (gtk_style_new):
6525         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
6526         * gdk/gdkpixmap.c (gdk_pixmap_init): 
6527         * gtk/gtkrc.c (gtk_rc_style_new):
6528         use g_object_new() instead of g_type_create_instance() which
6529         is a private function for fundamental type implementations.
6530
6531 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
6532
6533         * configure.in: Add check for db2html
6534
6535 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
6536
6537         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
6538         hack to set glib_debug_objects based on gtk_debug_flags.
6539
6540 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
6541
6542         * INSTALL.in: Update the Prerequisites section.
6543
6544         * Makefile.am demos/Makefile.am docs/Makefile.am
6545         docs/tutorial/Makefile.am gdk/x11/Makefile.am
6546         gdk/linux-fb/Makefile.am: Dist fixes
6547
6548 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
6549
6550         * NEWS: 10,000 foot view of 1.3.1 changes.
6551
6552 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
6553
6554         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
6555         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
6556         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
6557         gdk/x11/gdkmain-x11.c: 
6558
6559         Patch from George Lebl to add a GdkGrabStatus enumeration to use
6560         as a return value of gdk_*_grab(). Previously, we just
6561         returned the X11 values directly.
6562
6563 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
6564
6565         * gdk/x11/Makefile.am: Patch from George Lebl to 
6566         install all the headers in the right place.
6567
6568 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
6569
6570         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
6571           initial conversion to DocBook.
6572
6573 2000-07-04  Tor Lillqvist  <tml@iki.fi>
6574
6575         * README.win32: Improve a bit.
6576
6577         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
6578         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
6579         Alt+0nnn on the numpad (used to enter characters by numeric code
6580         from current DOS or ANSI codepage) working correctly, as in other
6581         Windows apps.
6582
6583         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
6584         same argument validity tests as in X11 version.
6585         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
6586
6587         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
6588         definitions in case missing from headers.
6589
6590         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
6591         destroy the window-specific cursor.
6592         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
6593         calling GetModuleHandle(NULL).
6594         (gdk_window_set_cursor): Reworked to always copy the passed cursor
6595         with CopyCursor before setting it as the window-specific
6596         cursor. It is OK for the caller to destroy the GdkCursor (and thus
6597         also its Windows cursor) after calling this function. Destroy any
6598         previous window-specific cursor.
6599
6600 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
6601
6602         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
6603         font charset is iso8859-1, not iso-8859-1.
6604
6605 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
6606
6607         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
6608         Use g_get_charset() instead of g_get_codeset().
6609
6610         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
6611         Comment out some strdup'ing functions to keep timj
6612         happy until we finish fighting this out.
6613
6614 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
6615
6616         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
6617         <= width or height.
6618
6619         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
6620         from 1.2 for parent/child states.
6621
6622         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
6623         of typos.
6624
6625         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
6626         event structures, replace with a generic axes field. Replace 
6627         deviceid/sourec with GdkDevice *device.
6628
6629         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
6630         to extract particular axis use value from event. (Also
6631         can be used for normal X/Y.)
6632
6633         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
6634         allow for arbitrary number of axes, namespace everything
6635         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
6636         everywhere.
6637
6638         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
6639         Get rid of the gdk_input_vtable setup if favor of simply
6640         defining the functions in gdkinput-none/gxi/xfree.c in
6641         a similar fashion to the way that the port structure is 
6642         done.
6643
6644         * gtk/gtkdnd.c: Fix fields of synthesized button press event
6645         for new event structures. 
6646
6647         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
6648         new device interfaces.
6649
6650 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
6651
6652         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
6653         set the initial text.
6654
6655         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
6656         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
6657         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
6658         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
6659
6660         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
6661         pango_layout_set_font_description to simplify.
6662
6663 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
6664
6665         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
6666         pango_layout_set_font_description to simplify.
6667
6668 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
6669
6670         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
6671         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
6672         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
6673
6674         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
6675         PANGO_PIXELS() macro.
6676
6677 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
6678
6679         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
6680         that returns a PangoContext owned by the widget and updated to
6681         match future changes in the widget. Also, make 
6682         gtk_widget_create_pango_layout() use this context. If we ever
6683         add a ::changed signal to PangoContext, this will make things
6684         much more convenient. 
6685
6686         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
6687         in the appropriate places instead of destroying the layouts and
6688         creating new ones.
6689
6690         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
6691         in a few strategic places.
6692
6693 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
6694
6695         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
6696         gtk_widget_size_request() on reparented child, if one. Otherwise,
6697         queue_resize() on the child never results in it getting size-requested
6698         at all.
6699
6700         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
6701         in option menus, so that (with luck) people won't copy it into
6702         their apps in the future.
6703
6704         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
6705         to gtk_option_menu_calc_size. This isn't perfect, but should fix
6706         a lot of problems with changing the size of the menu's menu
6707         items after adding it to the option menu.
6708
6709         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
6710
6711         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
6712         the text direction for a widget changes.
6713
6714         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
6715         ::direction_changed to get rid of various hacks.
6716
6717 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
6718
6719         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
6720         name.
6721
6722 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
6723
6724         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
6725         flag to the structure. Do not call XFreePixmap on pixmaps created
6726         by gdk_pixmap_foreign_new().
6727
6728 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
6729
6730         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
6731         value using GdkRGB functionality given GdkColormap and GdkColor.
6732         (name not final, waiting for inspiration.)
6733         
6734         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
6735         set the foreground/background of a GC using the GC's colormap
6736         and GdkRGB. (name not final, waiting for inspiration.)
6737
6738         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
6739         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
6740
6741         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
6742         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
6743         purely a function of the corresponding colormap. Make
6744         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
6745
6746         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
6747         gdk_pixbuf_*create_from_xpm_* in terms of
6748         gdk_pixbuf_new_from_xpm_data(), move into platform independent
6749         code.
6750
6751         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
6752         advantage of the new draw_rgb_32_image_dithalign.
6753
6754         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
6755
6756         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
6757         on each created GC.
6758
6759         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
6760
6761         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
6762         which we initialize from the drawable when the GC is created,
6763         if the drawable has a colormap.
6764
6765         * gdk/x11/gdkgc-x11.c: include string.h for memset.
6766
6767         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
6768
6769         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
6770
6771 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
6772
6773         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
6774         actually returning expose events, make sure to set
6775         the count field properly.
6776
6777         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
6778         accidentally reintroced bug which always cleared
6779         the graphics_exposures value. 
6780
6781 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
6782
6783         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
6784
6785 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
6786
6787         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
6788
6789 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
6790
6791         * docs/faq/gtk-faq.sgml: Start of Section 6.
6792
6793 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
6794
6795         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
6796         
6797         (Fixes problem with drawing childless frames. Pointed out
6798         by and a first patch from Anders)
6799         
6800         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
6801         compute a child_allocation, even if we don't have a child.
6802
6803         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
6804         Always chain to the parent's impl, even if we don't have a child.
6805
6806 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
6807
6808         * gdk/gdkrgb.c: If possible, create only a single shm segment and
6809         use multiple parts of it instead of creating a bunch of separate
6810         segments, since the maximum number of segments per system is not
6811         large. (This might be worth backporting to GTK+-1.2.x if we make a
6812         new release )
6813
6814         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
6815         structure in preparation for per-colormap GdkRGB.
6816
6817         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
6818         to False when we get EINVAL from shmget so that the caller of
6819         gdk_image_new can retry with a smaller segment size.
6820
6821 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
6822
6823         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
6824
6825 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
6826
6827         * configure.in: make the current version number 1.3.1 (binary age 0,
6828         interface age 0).
6829         
6830         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
6831         gtkcompat.h is all we want.
6832
6833         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
6834         GLib primitive types. fixed g_type_register_fundamental() argument
6835         ordering.
6836
6837         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
6838         compiles.
6839
6840         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
6841         object code cleanup, comment trigraph fixes, etc...
6842
6843 2000-06-23  Havoc Pennington  <hp@redhat.com>
6844
6845         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
6846         instead of making up a bogus name for first_para_mark
6847
6848         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
6849         0 as a context ID
6850
6851 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
6852
6853         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
6854
6855 2000-06-21  Havoc Pennington  <hp@pobox.com>
6856
6857         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
6858         we didn't check window->bg_pixmap != GDK_NO_BG.
6859
6860         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
6861         gdk-pixbuf
6862
6863 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
6864
6865         * docs/faq/gtk-faq.sgm: Move file to here.
6866           TODO: Update Makfile.am 
6867
6868 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
6869
6870         * docs/gtk-faq.sgm: Add Section 2
6871
6872 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
6873
6874         * docs/gtk-faq.sgm: New file. Start of DocBook
6875           version of the FAQ.
6876
6877 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
6878
6879         * configure.in (GDK_PIXBUF_MAJOR): Define version
6880         numbers for GDK_PIXBUF_*, as they get substituted
6881         into a header file. Need to consider versioning
6882         for gdk-pixbuf more carefully later.
6883
6884 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
6885
6886         Work with srcdir != builddir.   
6887         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
6888         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
6889         * demos/testpixbuf.c: Likewise.
6890         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
6891         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
6892         <gdk/x11/gdkx.h>.
6893         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
6894         "gdk-pixbuf.h".
6895         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
6896
6897 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
6898
6899         * TODO.xml: Change 1.4 version numbers to 2.0.
6900
6901 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
6902
6903         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
6904         fixups to GTK+ standard.
6905
6906 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
6907
6908         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
6909         gdk-pixbuf.
6910
6911         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
6912         fixups for GObject.
6913
6914         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
6915         gdk-pixbuf with GDK dependencies moved into GDK.
6916         
6917         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
6918         move gdk-pixbuf-loader here until GObject has signals.
6919
6920         * demos/: New directory of demos. Move demos from
6921         gdk-pixbuf here.
6922
6923         * demos/pixbuf-init.c: Small bit of code to check for
6924         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
6925         set GDK_PIXBUF_MODULEDIR appropriately.
6926
6927         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
6928         define which no longer makes sense.
6929
6930 2000-06-21  Havoc Pennington  <hp@redhat.com>
6931
6932         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
6933         gtk_get_default_language
6934
6935         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
6936         new function to get the default language
6937
6938         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
6939         s/gtk_text_view_style_values/gtk_text_style_values/
6940
6941         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
6942         Add a "language" field to tags.
6943
6944         (gtk_text_tag_set_arg): Fix bug in setting
6945         "bg_full_height_set" tag.
6946
6947 2000-06-21  Havoc Pennington  <hp@redhat.com>
6948
6949         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
6950         in the interfaces
6951
6952         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
6953         stuff instead when possible.
6954
6955         * gtk/gtktexttypes.h: Delete some unused constants
6956
6957         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
6958         testtextbuffer.c: use glib instead of custom unicode routines
6959
6960 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
6961
6962         * docs/es/: Removed mistakenly added generated sgml
6963
6964         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
6965         Remove outdated info files.
6966
6967         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
6968         Moved tutorial files into subdir
6969
6970         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
6971         subdir.
6972
6973         * docs/man/gtk_button.pod: Remove. (contents will be
6974         integrated into gtk-reference button page.)
6975
6976         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
6977         docs/faq/Makefile.am: Adjust for new organization
6978
6979 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
6980
6981         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
6982         not $(MKINSTALLDIRS)
6983
6984 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
6985
6986         * gtk/testgtk.c (create_text): Finish the job Elliot started
6987         of removing font setting test for text widget. (Since text widget
6988         and GdkFont are not deprecated, and cause portability problems.)
6989
6990 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
6991
6992         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
6993         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
6994         Remove use of libunicode in favor of new GLib functions.
6995
6996         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
6997         nano-x, framebuffer. The X11 include is just a hack until we get
6998         the necessary functions in gdkcolor.h, so there is no reason to
6999         add other includes of platforms.
7000
7001         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
7002         window bigger than the screen change.
7003
7004         * gtk/testgtk.c: Revert some random changes from Elliot
7005         that had no particular point and were causing testgtkrc
7006         not to function correctly.
7007         
7008         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
7009         because GdkSegment and GdkRegionBox have the same fields,
7010         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
7011         results in clearer code.
7012
7013         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
7014         gdk_input_translate_coordinates): Fix missed GdkObjectification
7015
7016 2000-06-18  Elliot Lee  <sopwith@redhat.com>
7017
7018         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
7019         * gtk/gtk{plug,socket}.h: Missed commits from previous.
7020
7021 2000-06-20  Havoc Pennington  <hp@redhat.com>
7022
7023         * modules/linux-fb/Makefile.am: Make this compile
7024         without framebuffer enabled
7025
7026         * gdk/linux-fb/Makefile.am: Add conditional to not build
7027         framebuffer unless specified in configure
7028
7029         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
7030         the size of the target instead of source if -1 was passed for
7031         width/height
7032
7033         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
7034         width/height confusion.
7035
7036 2000-06-19  Havoc Pennington  <hp@redhat.com>
7037
7038         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
7039         GDK_DRAWABLE_XID. In the future, we probably want to make it
7040         faster with G_DISABLE_CHECKS turned on.
7041
7042 2000-06-14  Havoc Pennington  <hp@redhat.com>
7043
7044         * gdk/Makefile.am: add gdkpixmap.c
7045
7046         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
7047         s/gdk_image_init/_gdk_windowing_image_init
7048
7049         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
7050         ref/unref
7051
7052         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
7053
7054         * gdk/gdkcompat.h: remove GdkWindowType compat, since
7055         GdkWindowType is now non-deprecated; 
7056         change gdk_window_get_type() compat to be
7057         gdk_window_get_window_type().
7058
7059         * gdk/gdkdnd.h: make GdkDragContext a GObject.
7060
7061         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
7062         virtual GObject. Make all functions call into the vtable.
7063         Move gdk_image_put() guts in here. Remove GdkDrawableType
7064         and gdk_drawable_get_type(), these are now GdkWindow-specific.
7065         draw_image, get_depth, get_size, set_colormap, get_colormap,
7066         get_visual added to the vtable.
7067         
7068         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
7069         GObject. Virtualize everything. 
7070         (gdk_gc_new_with_values): remove check for destroyed window,
7071         because now GdkWindow::create_gc will check this.
7072         (gdk_gc_set_values): New function to set GC values, this 
7073         was already implemented but wasn't in the header
7074
7075         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
7076
7077         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
7078         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
7079         remove _gdk_window_class; add _gdk_window_impl_get_type() and
7080         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
7081         _gdk_windowing_window_init, rename gdk_image_init to
7082         _gdk_windowing_image_init.
7083         
7084         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
7085         (gdk_draw_layout): Remove check for destroyed window, 
7086         because all the drawable methods already check it.
7087         
7088         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
7089         Add gdkpixmap.c which contains implementation of GdkDrawable
7090         virtual table (by chaining to a platform-specific implementation
7091         object).
7092         
7093         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
7094         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
7095         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
7096         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
7097         GdkColormapPrivate. 
7098
7099         * gdk/gdktypes.h: #include <glib-object.h>
7100
7101         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
7102         Move most functionality to platform-specific implementation
7103         object. GdkWindow itself now handles the backing store, then
7104         chains to the platform-specific implementation.
7105         (gdk_window_get_window_type): return GdkWindowType of the window.
7106         (gdk_window_peek_children): New routine, returns the children of 
7107         a GdkWindow
7108         (gdk_window_get_children): Was in X11-specific code and did 
7109         XQueryTree. Changed to simply return a copy of window->children; 
7110         so it can go in cross-platform code.
7111         
7112         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
7113
7114         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
7115         GdkColormap; just changed to use the new private data instead
7116         of casting to GdkColormapPrivate.
7117
7118         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
7119         gdk_cursor_new().
7120
7121         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
7122         (private data member in the GObject). 
7123         (xdnd_manager_source_filter): Function had broken 
7124         error handling, fix it (use gdk_error_trap_push).
7125
7126         * gdk/x11/gdkdrawable-x11.c: This file now implements
7127         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
7128         base class is purely for the convenience of the X port,
7129         and not part of the interface to cross-platform GDK.
7130
7131         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
7132         
7133         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
7134         specific to X, and returned by the create_gc virtual method
7135         of GdkDrawableImplX11. 
7136         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
7137         rather than gchar, this was also changed in the GdkGC vtable.
7138         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
7139         mask is 0, return immediately, instead of checking every flag.
7140         This is faster, and keeps us from segfaulting if values is NULL
7141         and the mask contains some nonzero flags.
7142
7143         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
7144         GdkWindow.
7145
7146         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
7147         GdkWindowPrivate is gone.
7148
7149         * gdk/x11/gdkim-x11.c: rename things that got renamed.
7150
7151         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
7152         remove the image_put stuff that got transferred to GdkDrawable.
7153         
7154         * gdk/x11/gdkinput.c: renamings
7155
7156         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
7157
7158         * gdk/x11/gdkpixmap-x11.c: GObject conversion
7159
7160         * gdk/x11/gdkprivate-x11.h: indentation fixes
7161
7162         * gdk/x11/gdkproperty-x11.c: renamings
7163
7164         * gdk/x11/gdkselection-x11.c: renamings
7165
7166         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
7167         implements the platform-specific "impl" object.
7168         Moved gdk_window_get_children to gdk/gdkwindow.c
7169
7170         * gdk/x11/gdkx.h: Remove all the private structs and private datas
7171         that no longer exist. Add declaration of GdkGCX11 object here.
7172         Fix all the macros to still work. 
7173
7174         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
7175         GdkDragContext from the boxed types since they are now GObjects.
7176
7177         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
7178         moved xthickness/ythickness into the instance. GtkStyleClass
7179         functions are now in the standard vtable for GtkStyle, so you have
7180         to create a GObject subclass to write a theme engine.
7181         (gtk_style_copy): fixed a leaked PangoFontDescription
7182         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
7183         can be the standard GObject function.
7184         
7185         * Throughout GTK:
7186         s/style->klass->[xy]thickness/style->[xy]thickness
7187         s/pango_layout_unref/g_object_unref/
7188
7189         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
7190         
7191         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
7192         accessing GDK internals.
7193
7194         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
7195         accessing GDK internals.
7196
7197 2000-06-18  Elliot Lee  <sopwith@redhat.com>
7198
7199         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
7200
7201         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
7202         problem by calculating event position relative to the trough
7203         rather than the slider.
7204         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
7205
7206         * gdk/gdkgc.h: Add GDK_NOR.
7207
7208         * configure.in, Makefile.am: Add modules top level dir
7209         * configure.in: Only use pangox library if building x11 target.
7210         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
7211
7212 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
7213
7214         * gtk/gtkcolorsel.c: Change private class member to be named
7215         private_data throughout the file.
7216
7217         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
7218         private_data to avoid clashing with keyword.
7219
7220 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
7221
7222         * gdk/gdkdnd.h: Add comment to remove warning.
7223
7224 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
7225
7226         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
7227         Byelorussian language; changed the Makefile and file names 
7228         to reflect that.
7229
7230 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
7231
7232         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
7233         rather than gdk_window_hide; this makes things work
7234         correctly if the window is programmatically hidden while
7235         iconified.
7236
7237 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
7238
7239         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
7240         cut and paste typo where wrong pixmap was being
7241         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
7242
7243 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
7244
7245         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
7246         Add helper function to compute format / bytes 
7247         relationship. Use in a couple places to fix up
7248         errors which assume 8 * format.
7249
7250         * gtk/gtkselection.c (gtk_selection_request): Use 32
7251         rather than 8 * sizeof (GdkAtom), to work correctly
7252         on Alpha.
7253
7254 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
7255
7256         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
7257         libgtk.la
7258         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
7259         versions
7260
7261         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
7262         checking macros return NULL since the function has a return value.
7263
7264 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
7265
7266         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
7267         GTK+ from building at all.
7268
7269         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
7270
7271 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
7272
7273         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
7274         gtk/Makefile.am: make it possible to configure gtk for different
7275         targets on the same platform. The library name is now 
7276         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
7277         flag. Only the x11 target compiles right now.
7278         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
7279         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
7280         * gdk/nanox/gdk*generic*: delete generic region code.
7281         * gdk/linux-fb/gdk*generic*: delete generic region code.
7282         * README.nanox: update information.
7283         
7284 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
7285
7286         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
7287         prepend not append. (Pointed out by Brett Hall.)
7288
7289 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
7290
7291         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
7292
7293 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
7294
7295         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
7296         need this later, and this makes sure that the atexit for
7297         glib gets called after that for GDK, so atexits are
7298         properly ordered for object leak checking.
7299
7300         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
7301
7302         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
7303         pango_x_shutdown_display()
7304
7305         * gtk/simple.c (main): Close window on destroy.
7306
7307 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
7308
7309         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
7310         to treat initial creation different from setting with 
7311         regards to the graphics-exposures parameter, so add a parameter
7312         indicating whether this is initial or not.
7313
7314 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
7315
7316         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
7317         to sort of work by adding an extra return_exposes arg
7318         to gdk_event_translate() - it might be better to simply
7319         deprecate the function altogether and force people to rewrite
7320         without it. gdk_window_scroll() handles most of it, and where
7321         gdk_window_scroll() doesn't work, simply redrawing more does.
7322
7323         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
7324         assertion.
7325
7326         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
7327
7328         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
7329         bunch of pretty much useless /* Print debugging info */ comments 
7330         which had drifted away from the code they were commenting.
7331
7332 2000-06-02  Havoc Pennington  <hp@pobox.com>
7333
7334         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
7335         is in working order.
7336         
7337         * gtk/testtext.c: Change to reflect anonymous mark API
7338
7339         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
7340
7341         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
7342         field, which was unused.
7343
7344         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
7345         saves some typing.
7346
7347         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
7348
7349         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
7350         flag on the insertion point and selection bound
7351
7352         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
7353         make mark-manipulation functions take a GtkTextMark* instead of a
7354         mark name.
7355         
7356         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
7357         GtkTextMarkBody; will be used to detect attempts to delete
7358         the permanent marks (insert and selection bound)
7359
7360         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
7361
7362 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
7363
7364         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
7365         flag to on.
7366
7367         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
7368         Honor DOUBLE_BUFFRED_FLAG
7369
7370         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
7371         function to set the DOUBLE_BUFFERED flag.
7372
7373         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
7374         or not exposes done on the widget should be double-buffered.
7375
7376         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
7377         to be what would be expected. (Fixes problem with a
7378         g_return_if_fail() validating a TextDirection enumeration)
7379
7380 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
7381
7382         * gtk/gtkwidget.c: Remove all references to 
7383         offscreen flag which was no longer used.
7384
7385         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
7386
7387         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
7388         for non-null label_widget->parent.
7389
7390         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
7391         which no longer was used.
7392
7393         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
7394
7395         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
7396         for null arguments.
7397
7398         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
7399         check for destroyed windows.
7400
7401 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
7402
7403         * gtk/gtkimmulticontext.c: Add a finalize method and unref
7404         the slave context there.
7405
7406         * gtk/gtkinvisible.[ch]: Make reference counting behavior
7407         identical to GtkWindow.
7408
7409 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
7410
7411         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
7412         pangox to here, so we can write them independent of rendering
7413         system, using GDK primitives.
7414
7415         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
7416         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
7417         since we have a rendering-system independent implementation in
7418         terms of draw_glyphs().
7419         
7420         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
7421         function to render a single line.
7422
7423         * gdk/x11/gdkpango.c: Move the guts of this file mostly
7424         into ../gdkpango.c, which simplifies things, since we
7425         don't have to deal with raw X gc's.
7426
7427 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
7428
7429         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
7430         get the logical attributes for a given GtkTextLine.
7431
7432 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
7433
7434         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
7435         g_locale_get_codeset() to g_get_codeset() change.
7436
7437 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
7438
7439         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
7440         descriptions.
7441
7442         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
7443         the entry.
7444
7445         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
7446         redoing (vastly simplifying) for Pango. Still needs quite
7447         a bit of work. (Size selection is currently poor. List of 
7448         predefined sizes is not a good idea, since all of these
7449         sizes won't necessarily be distinct.)
7450
7451 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
7452
7453         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
7454         CODESET results for LANG=C.
7455
7456 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
7457
7458         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
7459         which takes a stringized pango font description;
7460         ignore the older 'font' and 'fontset' declarations.
7461
7462         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
7463         field with a GdkFont derived via gdk_font_from_description(),
7464         for compatibility. (Should we just remove it entirely?
7465         Probably too much compatibility breakage, but people
7466         should be migrating to the new Pango stuff as quickly
7467         as possible.)
7468
7469 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
7470
7471         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
7472
7473 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
7474
7475         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
7476         redoing; there are some bugs in size allocation right
7477         now, the semi-existant distinction between header / day
7478         fonts was removed, but, with Pango, could actually
7479         be made functional in a nice way.
7480         
7481         * gtk/testcalender: Move calender from examples into this
7482         directory as a test program. (We really need to restrcture
7483         testgtk into a whole directory full of tests for every
7484         widget or functionality group, separated into multiple .c
7485         files.)
7486
7487 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
7488
7489         * gtk/testgtk.c (file_exists): Fix stupid typo that
7490         was keeping RC file from being loaded.
7491
7492         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
7493         RC file font code.
7494
7495 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
7496
7497         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
7498         Add function to load a GdkFont from a PangoFontDescription.
7499
7500 2000-05-29  Tor Lillqvist  <tml@iki.fi>
7501
7502         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
7503         variable should be of type GdkEventPrivate.
7504
7505 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
7506
7507         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
7508         to have any widget for the label, use a GtkLabel widget
7509         to display the text. (Based partially on a patch from
7510         Anders Carlson.)
7511
7512         (Quite a bit of code reorganization - strip 90% of the
7513         guts out of gtkaspectframe and add a single virtual
7514         func to GtkFrameClass - compute_child_allocation.)
7515
7516 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
7517
7518         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
7519         (Removed clist->row_center_offset field because caching
7520         it wasn't saving time or code, added private function
7521         _gtk_clist_create_cell_layout()).
7522
7523 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
7524
7525         * gtk/gtkaccellabel.c: Pangoized.
7526
7527         * gtk/[hv]ruler.c: Pangoized
7528
7529 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
7530
7531         * gtk/gtkfilesel.c (gtk_file_selection_init):
7532         Use gtk_clist_set_column_auto_resize() to remove need
7533         need for manual column width computations.
7534
7535 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
7536
7537         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
7538         ensuring Pango correctness, and considerably simplifying the
7539         code.
7540         
7541         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
7542
7543         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
7544         getting of numbers of lines.
7545
7546         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
7547         to the actual requested width of the lable, not to the wrap
7548         width we set.
7549
7550         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
7551
7552         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
7553           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
7554
7555         * gtk/gtktextview.c: Fix structure inheritance.
7556
7557         * gtk/gtkprogressbar.c: Pangoize.
7558
7559 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
7560
7561         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
7562         in a function.
7563
7564         * gtk/gtktextlayout.c (find_display_line_above): Fixed
7565         bug with computing line tops.
7566
7567         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
7568
7569 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
7570
7571         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
7572         and y_offset coordinates to do what we need now. (The offset between
7573         buffer and layout coordinates has been reintroduced, but is a 
7574         bit different than before.)
7575
7576         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
7577         handle the adjustments ourselves, and scroll as necessary using
7578         the new gdk_window_scroll().
7579         
7580         The advantage of this is that when we are incrementally revalidating,
7581         we are essentially rearranging things around the visible portion
7582         of the screen. With the old setup, the visible portion of the
7583         screen was moved around in the layout, so scrolling and redrawing
7584         to track that caused jumping of the display. Since we now
7585         control the scrolling ourselves, we can suppress this and
7586         only redraw when things actually change.
7587
7588 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
7589
7590         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
7591         the region not just redisplay it after-all, since we store the
7592         cursors in the LineDisplay. (Ugly interactions here between
7593         GtkLayout and GtkTextBTree here.)
7594         
7595         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
7596
7597 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
7598
7599         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
7600         Added function to scroll contents of a window while keeping the
7601         window constant. Works by XCopyArea or guffaw-scrolling depending
7602         on the details of how the window is set up. (guffaw-scrolling
7603         still needs to be filled in.)
7604
7605 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
7606
7607         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
7608         move the debugging that was tied to a global variable
7609         to that.
7610
7611         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
7612
7613         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
7614         validated flag, in line data instead of setting height/width to
7615         -1. This allows us to perform operations with partially invalid
7616         buffer (using the old size for invalid lines) and thus to do
7617         incremental vaidation. Keep height/width aggregates up to date
7618         when deleting text and rebalancing the tree.
7619
7620         * gtk/gtktextbtree.[ch]: Add functions validate a line
7621         (gtk_text_btree_validate_line), and to validate up
7622         to a number of pixels (gtk_text_btree_validate).
7623
7624         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
7625         that indicates that something is changed and a revalidation
7626         pass is needed. Change ::need_repaint to ::changed, and
7627         make it take old and new yranges instead of a rectangle.
7628
7629         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
7630         the line_data_destroy() function from 
7631         gtk_text_btree_add_view() to a virtual function in 
7632         GtkTextLayout
7633
7634         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
7635         since we are handling partial repaints in a different fashion
7636         now.
7637
7638         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
7639         of the selection instead of queueing a repaint on the
7640         entire widget.
7641
7642         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
7643         get_selection_bounds() down to btree, make the function
7644         in buffer a wrapper around the btree function.
7645
7646         * gtk/gtktextlayout.[ch]: Add functions to check if the
7647         layout is valid and to recompute either a range of pixels
7648         aroudn a line or a certain total number of pixels.
7649
7650         * gtk/gtktextlayout.[ch]: Cache a single line display;
7651         now that we only redraw the needed portions, the hit rate
7652         for this cache is quite high.
7653         
7654         * gtk/gtktextview.[ch]: Keep track of the first paragraph
7655         on the screen so that when re-laying-out the buffer, we can
7656         keep the same place. This requires connecting to ::value_changed
7657         on the adjustments
7658
7659         * gtk/gtktextview.[ch]: Add idle functions to revalidate
7660         the buffer after we receive an ::invalidated signal.
7661         
7662 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
7663
7664         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
7665         to max of allocation and layout size, not just to the
7666         layout size.
7667
7668         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
7669         Invalidate window so it gets redrawn properly.
7670
7671         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
7672         to mean the entire window.
7673
7674         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
7675         into public header.
7676
7677 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
7678
7679         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
7680         to get the name of a mark.
7681
7682         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
7683         to find the paragraph from a y position.
7684
7685 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
7686
7687         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
7688         nodes have width/height >= 0, not > 0.
7689
7690 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
7691
7692         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
7693         Add a size_only flag, so when we only need the size, we don't create
7694         useless appearance attributes.
7695
7696         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
7697         duplicate setting of font description.
7698
7699         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
7700
7701 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
7702
7703         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
7704         EXTRA_DIST. It does not work well when the file that
7705         everything depends on is not in the tarball.
7706
7707 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
7708
7709         * gtk/testgtk.c: Some hacks and fixes so that it basically
7710         works when not sitting in the GTK+ build tree.
7711
7712 2000-05-03  Havoc Pennington  <hp@redhat.com>
7713
7714         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
7715         Properly determine the ordering of the tag root and the current
7716         line within the tree. Previous algorithm only worked if the tag
7717         root's immediate parent was the common root of both the current
7718         line and the tag root.
7719
7720 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
7721
7722         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
7723         alignment.
7724
7725         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
7726         the widget text directional dynamically.
7727
7728         * gtk/gtktextview.[ch]: Added functions to get and set default
7729         wrap mode.
7730
7731 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
7732
7733         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
7734         in cursor location computation.
7735
7736 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
7737
7738         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
7739         vadjusment values properly when layout gets smaller.
7740
7741         * gtk/gtktextview.c (need_repaint_handler): Areas being
7742         passed in are far completely inaccurate, and sometimes
7743         too small, so, for now, just queue a redraw on the
7744         whole visible region.
7745
7746 2000-04-25  Havoc Pennington  <hp@redhat.com>
7747
7748         * gtk/gtktextbtree.c (summary_destroy): new function to 
7749         destroy tag summary nodes
7750         (gtk_text_line_next_could_contain_tag): this function was 
7751         totally broken if the line passed in wasn't below the tag
7752         root. Fix it.
7753         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
7754         "wildcard" case, we have to do a linear scan. Blah.
7755         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
7756         we have to do the linear scan
7757         (tag_removed_cb): When a tag is removed from the tag table, 
7758         remove the GtkTextTagInfo node from the btree.
7759         (gtk_text_btree_spew): Implement the spew function, for 
7760         our debugging pleasure.
7761
7762 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
7763
7764         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
7765         a problem with referring to the wrong buffer.
7766
7767         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
7768
7769         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
7770         font description to gtk_style_new() - otherwise things
7771         don't work without a .gtkrc file.
7772
7773         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
7774         tags table if we create it ourself, too.
7775
7776         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
7777         it was conflicting with XKB modifiers.
7778
7779         * gtk/gtktextview.[ch]: Add simple support for 
7780         GtkIMContext.
7781
7782 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
7783
7784         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
7785         with deletion from last commit.
7786
7787 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
7788
7789         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
7790         in the context from the current locale.
7791         
7792         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
7793         context, not hardcoded value.
7794
7795         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
7796         not logical.
7797
7798 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
7799
7800         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
7801         attributes - that doesn't handle partial-glyph selection
7802         properly. Instead use new pango_layout_line_get_x_ranges()
7803         functionality to draw the selection.
7804
7805         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
7806         now properly handles out-of-range coordinates.
7807
7808         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
7809
7810         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
7811         public.
7812
7813         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
7814         for paragraphs opposite to the base direction of the widget.
7815
7816         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
7817
7818         * gtk/gtktextlayout.c: Don't split segments on marks, since that
7819         causes Arabic words to reshape as you cursor through.
7820
7821         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
7822         cursor position when moving vertically with the arrow keys and
7823         scrolling with page-up/page-down. (Arrow keys save only the X,
7824         scrolling saves both X and Y.)
7825
7826         This means you can line-up / line-down or page-up / page-down
7827         without losing your place, and also that moving vertically
7828         with the cursor keys keeps the same X position, not the same
7829         character count:
7830
7831         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
7832         arrow keys move by display lines, not paragraphs.
7833
7834 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
7835
7836         * gtk/gtklayout.c: Make sure that the bin window is at least
7837         as big as the allocation. (Should we also make sure that the
7838         bin window is big enough to completely cover widget->window?)
7839
7840         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
7841         function to get the onscreen rectangle.
7842
7843         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
7844         for offsets in window coordinates.
7845
7846 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
7847
7848         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
7849         confusion.
7850
7851         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
7852         from the widget direction.
7853
7854         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
7855         Add a "direction" attribute.
7856
7857         * gtk/gtktextview.c: global s/tkxt/text_view/.
7858
7859         * gtk/testtext.c: Added long block of text in Arabic, to test out
7860         the direction attributes. (Some problems with the shaping system
7861         for arabic become obvious - like the fact the cursor splits words
7862         into unjoined pieces.)
7863
7864 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
7865
7866         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
7867
7868         * gtk/gtktextlayout.c: Fix up alignment.
7869
7870         * gtk/testtext.c: Add some tests for centering, wrapping.
7871
7872 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
7873
7874         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
7875         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
7876         If we wrote GTK+-specific layout-render function this could just replace
7877         the draw_layout() operation in the vtable.
7878
7879         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
7880         pango_layout_get_cursor_pos() and use that function.
7881
7882         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
7883         is a non-static symbol.
7884
7885         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
7886         with gtk_text_btree_find_line_by_y()
7887
7888         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
7889         renderer that handles GtkTextAppearance attributes.
7890
7891         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
7892
7893           - Move the values in the style that don't affect geometry into a
7894             GtkTextAppearance structure.
7895           - Change underline to take a PangoUnderline and "font" a string
7896             representation of a font description
7897           - Add a "font_desc" attribute which takes a FontDescription structure.
7898
7899         * gtk/gtktextlayout.[ch]:
7900
7901           - Get rid of the display-line list per each line. Instead, we
7902             generate, on demand, a GtkTextLineDisplay structure which]
7903             contains a PangoLayout * and other necesary information
7904             (offsets, cursor locations) for displaying a paragraph.
7905           - Get rid of the code to wrap lines, create display chunks,
7906             etc. Instead, we just go through a paragraph and convert
7907             it into the necessary inputs to a PangoLayout.
7908           - Implement a new attribute type, GtkTextAttrAppearance. This
7909             holds a GtkTextAppearance, and is used to pass colors, 
7910             stipple, etc, through from the layout to the display without
7911             having to use lots and lots of individual attributes.
7912           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
7913             in terms of PangoLayout functions.
7914         
7915         * gtk/gtktextview.c: 
7916          
7917           - Handle passing the necessary PangoContext to the layout
7918           - Some fixups in painting to deal with the automatic backing store
7919             and offsetting of GTK+-1.4
7920           - Add a style_set handler so that the default style reacts
7921             properly to theme changes.
7922         
7923         * gtk/gtktext?*.[ch]: Random code-style fixes.
7924
7925         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
7926
7927 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
7928
7929         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
7930         in original form preparatory to Pango-ization and gdkimcontext-ization.
7931
7932 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
7933
7934         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
7935         so that we can derive from gtkimcontext in language bindings properly.
7936
7937 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
7938
7939         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
7940         Add a compose table including (almost) all the compose combinations
7941         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
7942         data in the XIM implementation.
7943
7944         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
7945         Moved functions to convert keyvalues from and to unicode here from
7946         the win32 port and made them public.
7947
7948 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
7949
7950         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
7951
7952 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
7953
7954         * gtk/gtkimcontext.[ch]: Base class for new input context system
7955
7956         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
7957         the real input context implementation to be loaded from modules
7958         and switched on the fly.
7959
7960         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
7961         context that just does direct keysymbol => unicode translation.
7962
7963         * gtk/gtkentry.[ch]: Start switching editing over to using
7964         GtkInputContext. (No handling of preedit yet.)
7965
7966 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
7967
7968         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
7969         many substitutions. (klass should not be subsituted.)
7970
7971 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
7972
7973         * configure.in: Add checks for Pango
7974
7975         * configure.in docs/Makefile.am: Add test for sgml2html
7976         and allow 'make dist' without building html, but print out
7977         warnings in that case. (For making snapshots)
7978
7979         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
7980         Add Pango libraries and C flags
7981
7982         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
7983         Add function (gdk_draw_layout) to draw a pango layout.
7984
7985         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
7986         for getting Pango contexts for GDK.
7987
7988         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
7989
7990         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
7991         editing.
7992
7993         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
7994         keysym => unicode translations. More languages can be added
7995         here, but real input-method support is needed.
7996
7997         * docs/Changes-1.4.txt: Added note about entry behavior.
7998         
7999         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
8000         to set the reading direction for a widget and the global direction.
8001         Add test which allows toggling the global direction. Two private
8002         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
8003
8004         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
8005           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
8006
8007         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
8008
8009         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
8010         underlining now handled by Pango.
8011
8012         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
8013         to RCStyle and Style. (Having both this and the old font name and GdkFont 
8014         is temporary.)
8015
8016         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
8017         convenience functions for creating contexts and layouts for widgets.
8018
8019         * gtk/testgtk.c: Enhance label tests with multilingual labels.
8020
8021 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
8022
8023         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
8024         titles to be active, even if they aren't visible.
8025         (gtk_clist_column_titles_passive):  Ditto.
8026
8027 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
8028
8029         * gtkmenu.c:
8030         * gtkmenu.h:
8031         * gtktypeutils.h: Spelling/grammar fixes in comments.
8032
8033 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
8034
8035         * gdk/nanox/*.h: add missing header files.
8036
8037 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
8038
8039         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
8040         send_event to TRUE.
8041         (gtk_drawing_area_size): queue a resize.
8042
8043 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
8044
8045         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
8046         the handlers, also invalidate them. bug nailed down by Karl Nelson
8047         <kenelson@ece.ucdavis.edu>.
8048
8049 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
8050
8051         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
8052         "(nil)" foundries, patch from Grigorios Magklis.
8053
8054         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
8055         on non-available fonts, based on a patch by Grigorios Magklis
8056         <maglis@cs.rochester.edu>.
8057
8058 2000-05-18  Elliot Lee  <sopwith@redhat.com>
8059
8060         * gdk/x11/gdkregion-generic.c: If a region does not have any
8061         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
8062         instead of GDK_OVERLAP_RECTANGLE_IN.
8063
8064 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
8065
8066         * gtk/gtklayout.c (gtk_layout_map): Remove references to
8067         OFFSCREEN, as it is no longer necessary.
8068
8069 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
8070
8071         * gtk/gtkcolorsel.c: Patch from David Santiago
8072         <mrcooger@cyberverse.com> to change things so that the 
8073         indicator of the active palette entry is done independently,
8074         not via the focus, since it should always be visible.
8075
8076 2000-05-17  Tor Lillqvist  <tml@iki.fi>
8077
8078         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
8079         refcount leaks as in the X11 backend.
8080
8081         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
8082         cosmetics.
8083
8084         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
8085         backend. Add _gdk_windowing_window_destroy().
8086
8087         * gtk/gtkcolorsel.c: Include correct backend-specific header.
8088         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
8089         either, but these probably do exist on nanox?)
8090         
8091         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
8092         which isn't necessarily defined by <math.h>.
8093
8094         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
8095         ancestry past GtkObject.
8096
8097         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
8098         from DLL on Win32.
8099
8100         * gtk/gtk.def: Update corresponding to recent changes.
8101
8102         * gtk/makefile.{cygwin,msc}: Updates.
8103
8104 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
8105
8106         * docs/Changes-1.4.txt: A bit of editing.
8107
8108         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
8109         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
8110         to clear the update area for the window, and clear it
8111         when hiding a window.
8112
8113         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
8114         if window destroyed.
8115
8116         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
8117
8118         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
8119         gdk_window_destroy() to the generic code, since there was a lot of 
8120         window-system-independent logic it in. Add a function:
8121         
8122          _gdk_window_destroy() 
8123
8124         to the internal API to destroy a window without unreferencing it.
8125         Add a function:
8126
8127          _gdk_windowing_window_destroy()
8128
8129         That does the windowing-system-dependent part of destroying 
8130         the window.
8131
8132 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
8133
8134         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
8135
8136 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
8137
8138         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
8139         Make gtk_widget_shape_combine_mask() keep a reference count on
8140         the pixmap since it keeps it around.
8141
8142 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
8143
8144         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
8145         leak.
8146
8147         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
8148         leak with event filters.
8149
8150 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
8151
8152         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
8153         signal handlers with the right data arguments. (Fixes
8154         some warnings when a widget was repeatedly set as a drag
8155         destination.)
8156
8157         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
8158         window so we can avoid avoid setting the DND properties on the
8159         toplevel window repeatedly.
8160
8161 2000-05-13  Tor Lillqvist  <tml@iki.fi>
8162
8163         * gdk/win32/gdkwin32.h: Define more message types missing from
8164         mingw headers.
8165
8166         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
8167         call gdk_window_destroy_notify(). It was never called. This
8168         probably meant that the GdkWindow was never freed. Thanks Owen for
8169         noticing (!).
8170
8171         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
8172         window as destroyed before calling DestroyWindow(). DestroyWindow()
8173         causes a call to the window procedure (gdk_WindowProc), which
8174         calls gdk_event_translate(), which calls
8175         gdk_window_destroy_notify(), which gets confused unless the window
8176         is set as destroyed.
8177
8178         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
8179         this function to indicate it's win32 only. Put inside #ifdef
8180         G_ENABLE_DEBUG.
8181
8182         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
8183         debugging function. (gdk_event_translate:) Add a default branch
8184         that uses the above function to print debug messages with all
8185         Windows messages symbolically.
8186
8187         * gdk/win32/gdkprivate-win32.h: Declare it, and
8188         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
8189
8190 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
8191
8192         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
8193         public header file.
8194
8195 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
8196
8197         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
8198
8199         * gtk/gtktext.c: made the adjustments no-construct args, simply
8200         provide default adjustments.
8201         (gtk_text_destroy): release adjustments.
8202
8203         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
8204         adjustment argument non-construct.
8205
8206         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
8207         instead of in finalize.
8208         (gtk_progress_get_text_from_value): 
8209         (gtk_progress_get_current_text): 
8210         (gtk_progress_set_value): 
8211         (gtk_progress_get_percentage_from_value): 
8212         (gtk_progress_get_current_percentage): 
8213         (gtk_progress_set_percentage): 
8214         (gtk_progress_configure): ensure an adjustment is present.
8215
8216 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
8217
8218         * gtk/gtkcolorsel.[hc]:
8219         * gtk/gtkcolorseldialog.[hc]:
8220         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
8221         their parent implementation, use bit fields for boolean values, don't
8222         create unused widgets, usage of glib types, braces go on their own
8223         lines, function argument alignment, #include directives etc. etc. etc..
8224
8225         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
8226
8227 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
8228
8229         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
8230
8231         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
8232         of NULL.
8233
8234         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
8235         to freed data.
8236         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
8237
8238         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
8239         to NULL when the toplevel is getting destroyed.
8240         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
8241         (gtk_menu_destroy): 
8242         (gtk_menu_init): store the information of whether we have to
8243         readd the initial child ref_count during destruction in a new
8244         GtkMenu field needs_destruction_ref_count.
8245
8246         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
8247         here, those reading: learn from my mistake! ;)
8248         in order for set_?adjustment to support a default adjustemnt if
8249         invoked with an adjustment pointer of NULL, the code read (pseudo):
8250         if (v->adjustment) unref (v->adjustment);
8251         if (!adjustment) adjustment = adjustment_new ();
8252         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
8253         now imagine the first unref to actually free the old adjustment and
8254         adjustment_new() creating a new adjustment from the very same memory
8255         portion. here, the latter comparision will unintendedly fail, and
8256         all hell breaks loose.
8257         (gtk_viewport_set_hadjustment):
8258         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
8259         after unreferencing it.
8260
8261         * gtk/gtkcontainer.[hc]: removed toplevel registration
8262         functions: gtk_container_register_toplevel(),
8263         gtk_container_unregister_toplevel() and
8264         gtk_container_get_toplevels() which had wrong semantics
8265         anyways: it didn't reference and copy the list.
8266
8267         * gtk/gtkwindow.c: we take over the container toplevel registration
8268         bussiness now. windows are registered across multiple destructions,
8269         untill they are finalized. the initial implicit reference count
8270         users are holding on windows is removed with the first destruction
8271         though.
8272         (gtk_window_init): ref & sink and set has_user_ref_count, got
8273         rid of gtk_container_register_toplevel() call. add window to
8274         toplevel_list.
8275         (gtk_window_destroy): unref the window if has_user_ref_count
8276         is still set, got rid of call to
8277         gtk_container_unregister_toplevel().
8278         (gtk_window_finalize): remove window from toplevel list.
8279         (gtk_window_list_toplevels): new function to return a newly
8280         created list with referenced toplevels.
8281         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
8282
8283         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
8284         adjustment a non-construct arg.
8285         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
8286         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
8287         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
8288
8289         * gtk/gtkrange.c: added some realized checks.
8290         (gtk_range_destroy): get rid of the h/v adjustments in the
8291         destroy handler instead of finalize. remove timer.
8292         (gtk_range_get_adjustment): demand create adjustment.
8293
8294         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
8295         we simply create them on demand now and get rid of them in
8296         the destroy handler.
8297         (gtk_viewport_destroy): get rid of the h/v adjustments in the
8298         destroy handler instead of finalize.
8299         (gtk_viewport_get_hadjustment): 
8300         (gtk_viewport_get_vadjustment): 
8301         (gtk_viewport_size_allocate): demand create h/v adjustment
8302         if required.
8303
8304         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
8305         gtk_widget_real_destroy () functionality.
8306         (gtk_widget_real_destroy): reinitialize with a new style, instead
8307         of setting widget->style to NULL.
8308
8309 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
8310
8311         * gtk/gtkcalendar.c:
8312         * gtk/gtkbutton.c: ported _get_type() implementation over to
8313         GType, either to preserve memchunks allocation facilities,
8314         or because Gtk+ 1.0 GtkTypeInfo was still being used.
8315
8316         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
8317         over. prepare for ::destroy to be emitted multiple times.
8318         removed reference tracer magic. chain into GObjectClass.shutdown()
8319         to emit ::destroy signal.
8320
8321         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
8322         fundamental.
8323
8324         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
8325         cludge.
8326
8327         * gtk/gtksocket.c:
8328         * gtk/gtkplug.c:
8329         * gtk/gtklayout.c:
8330         * gtk/gtklabel.c:
8331         * gtk/gtkargcollector.c:
8332         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
8333         not being a fundamental anymore, and to work with the new
8334         type system (nuked fundamental type varargs clutter).
8335
8336         * gtk/*.c: install finalize handlers in the GObjectClass
8337         part of the class structure.
8338         changed direct GTK_OBJECT()->klass accesses to
8339         GTK_*_GET_CLASS().
8340         changed direct object_class->type accesses to GTK_CLASS_TYPE().
8341
8342         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
8343         GType. made most of the GTK_*() type macros and Gtk* typedefs
8344         simple wrappers around macros and types provided by GType.
8345         most notably, a significant portion of the old API vanished:
8346         GTK_TYPE_MAKE(),
8347         GTK_TYPE_SEQNO(),
8348         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
8349         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
8350         GTK_TYPE_ARGS,
8351         GTK_TYPE_CALLBACK,
8352         GTK_TYPE_C_CALLBACK,
8353         GTK_TYPE_FOREIGN,
8354         GtkTypeQuery,
8355         gtk_type_query(),
8356         gtk_type_set_varargs_type(),
8357         gtk_type_get_varargs_type(),
8358         gtk_type_check_object_cast(),
8359         gtk_type_check_class_cast(),
8360         gtk_type_describe_tree(),
8361         gtk_type_describe_heritage(),
8362         gtk_type_free(),
8363         gtk_type_children_types(),
8364         gtk_type_set_chunk_alloc(),
8365         gtk_type_register_enum(),
8366         gtk_type_register_flags(),
8367         gtk_type_parent_class().
8368         replacements, where available are described in ../docs/Changes-1.4.txt.
8369         implemented compatibility functions for the remaining API.
8370
8371         * configure.in: depend on glib 1.3.1, use gobject module.
8372
8373 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
8374
8375         * TODO.xml: Various updates to current status.
8376
8377 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
8378
8379         * gtk.m4: Print out version when test succeeds.
8380
8381 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
8382
8383         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
8384         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
8385         
8386         (Original triangle color selector from Simon Budig
8387         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
8388         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
8389         Santiago <mrcooger@cyberverse.com>)
8390
8391         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
8392         out into a separate widget.
8393
8394         * gtk/testgtk.c: Add some checkbuttons for toggling palette
8395         and opacity controls.
8396
8397 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
8398
8399         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
8400         snuck in prematurely.
8401
8402 2000-05-07  Tor Lillqvist  <tml@iki.fi>
8403
8404         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
8405         had deleted a ! operator by mistake, which caused
8406         GDK_SELECTION_CLEAR events never to be generated, which caused
8407         only the first copy to the clipboard from an gtkeditable to
8408         actually cause a copy to the Windows clipboard.
8409
8410 2000-05-06  Tor Lillqvist  <tml@iki.fi>
8411
8412         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
8413         compilation, too. Current mingw gcc distributions include the
8414         necessary headers. Also the necessary IIDs are now in mingw
8415         headers/libraries, and own definitions unnecessary.
8416
8417         More hacking on OLE2 DND, still doesn't work though, and thus
8418         ifdeffed out.
8419
8420         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
8421         here, too.
8422
8423 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
8424
8425         * gdk/nanox/*: nano-X port work in progress.
8426         * gdk/simple.c: simple test for Gdk.
8427         * README.nanox: notes about the port: read this first!
8428         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
8429         with nano-X.
8430
8431 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
8432
8433         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
8434         gdk_window_clear() into common code, implement in terms of
8435         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
8436         not redirected to the backing rectangle.
8437
8438 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
8439
8440         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
8441         EXTRA_DIST. It does not work well when the file that
8442         everything depends on is not in the tarball.
8443
8444 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
8445
8446         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
8447         with recursion where process_updates() is called from
8448         an expose handler. (GtkTextView is highly broken in
8449         doing this, but it should work, so it is a nice test
8450         case.)
8451
8452 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
8453
8454         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
8455         handle the case where updates are queued during processing of
8456         updates.
8457
8458 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
8459
8460         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
8461         window is on gdk_display - use that instead of segfaulting.
8462
8463 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
8464
8465         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
8466         broken and require an empty arg, give it to them.
8467
8468 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
8469
8470         * gtk/gtklabel.h: indentation fixes.
8471
8472 2000-05-02  Tor Lillqvist  <tml@iki.fi>
8473
8474         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
8475         draw too narrow or too low arcs, they seem to fail, at least with
8476         some display drivers.
8477
8478         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
8479
8480         Large changes to the Win32 backend, partially made necessary by
8481         the changes to the backend-independent internal
8482         structures. Attempts to implement similar backing store stuff as
8483         on X11. The current (CVS) version of the Win32 backend is *not* as
8484         stable as it was before the no-flicker branch was merged. A
8485         zipfile with that version is available from
8486         http://www.gimp.org/win32/. That should be use by "production"
8487         code until this CVS version is usable. (But note, the Win32
8488         backend has never been claimed to be "production quality".)
8489
8490         * README.win32: Add the above comment about versions.
8491
8492         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
8493
8494         * gdk/gdk.def: Update.
8495
8496         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
8497         presumably be replaced by some more better mechanism as 1.4 gets
8498         closer to release shape.
8499
8500         * gdk/makefile.{cygwin,msc}: Update.
8501
8502         * gdk/win32/*.c: Correct inclusions of the backend-specific and
8503         internal headers. Change code according to changes in these. Use
8504         gdk_drawable_*, not gdk_window_* where necessary.
8505
8506         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
8507         our old DND.
8508
8509         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
8510         to interpret single characters as UTF-8. Thanks to Hans Breuer.
8511         Use correct function name in warning messages.
8512
8513         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
8514         GSourceFuncs gdk_event_prepare and gdk_event_check.
8515         (gdk_event_get_graphics_expose): Do implement, use
8516         PeekMessage. Thanks to Hans Breuer.
8517         (event_mask_string): Debugging function to print an GdkEventMask.
8518         (gdk_pointer_grab): Use it.
8519
8520         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
8521         (old) book I used claimed was Hangul actually is CJK Unified
8522         Ideographs Extension A. Also, Hangul Syllables were missing.
8523         Improve logging.
8524
8525         * gdk/win32/gdkgc-win32.c: Largish changes.
8526
8527         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
8528         g_win32_getlocale() from GLib, and not setlocale() to get current
8529         locale name.
8530
8531         * gdk/win32/gdkprivate-win32.h
8532         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
8533         gdkwin32.h, similarily as in the X11 backend.
8534
8535         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
8536         assignment was used instead of equals in if test. Thanks to Hans
8537         Breuer.
8538
8539         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
8540         the X11 version.
8541
8542         * gdk/win32/makefile.{cygwin,msc}
8543         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
8544         path to the Win32 headers that works also with the mingw compiler.
8545
8546         * gtk/gtkstyle.c: Include <string.h>.
8547
8548 2000-04-26  Havoc Pennington  <hp@redhat.com>
8549
8550         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
8551         replacing the broken gtk_label_get ()
8552
8553 2000-04-15  Havoc Pennington  <hp@pobox.com>
8554
8555         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
8556         this keeps scanner scripts from getting confused.
8557
8558         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
8559         data, rather than void
8560
8561 2000-04-15  Tor Lillqvist  <tml@iki.fi>
8562
8563         * gtk/gtkclist.c (gtk_clist_motion)
8564         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
8565         with is_hint FALSE, get x and y from the event. They used to be
8566         used uninitialised. The Win32 backend never sends motion events
8567         marked as hints. This for instance fixes the annoying file and
8568         font selector behaviour in the Win32 version.
8569
8570 2000-04-14  Tor Lillqvist  <tml@iki.fi>
8571
8572         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
8573         gtk_private_n_signals variables, they are used by some software,
8574         sigh.
8575
8576         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
8577         installation directory from the Registry, where the installer
8578         should have put it.
8579
8580 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
8581
8582         * gdk/x11/Makefile.am: Fix problem with installation directory for
8583         gdkx.h
8584
8585         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
8586         <mrcooger@cyberverse.com> so that when selecting menus with the
8587         mouse, the first item will not be selected, but when selecting
8588         with an accelerator, or navigating left-right on a menubar with
8589         the menus popped up, the first item will be selected.
8590
8591 2000-04-05  Dan Damian  <dand@dnttm.ro>
8592
8593         * configure.in: Added "ro" to ALL_LINGUAS.
8594
8595 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
8596
8597         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
8598         indentation.
8599
8600         * Makefile.am (EXTRA_DIST): Fix typo.
8601
8602         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
8603         to catch gdkconfig.h
8604
8605         * gtk/gtkitemfactory.c: Added FIXME.
8606
8607 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
8608
8609         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
8610         s/return_if_fail/return_val_if_fail/g and add a return value.
8611
8612 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
8613
8614         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
8615         merge slipup.
8616
8617         * gdk/gdkinput.h: Fix missing line from merge.
8618
8619 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
8620
8621         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
8622         instead of gdkprivate.h.
8623
8624 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
8625
8626         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
8627         parent class to correctly be GtkDialogClass.
8628
8629 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
8630
8631         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
8632         toplevel windows and their immediate children by their parents,
8633         since the size of toplevel windows is out of our immediate
8634         control and we don't get any real benefit from trying to track
8635         this size for clipping.
8636
8637         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
8638         for input_only windows.
8639
8640         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
8641         to fix some hacks and make sure that we don't try to set the
8642         background of input only windows.
8643
8644 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
8645
8646         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
8647         the _really_ internal stuff, and leave gdkprivate.h for the fake private
8648         stuff that we've traditionally exposed.
8649
8650         * gdk/**.c: Use gdkinternals.h where appropriate.
8651
8652         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
8653         not include gdkprivate-x11.h, move all stuff of conceivable public
8654         interest into gdkx.h; keep all really private stuff in
8655         uninstalled header gdkprivate-x11.h.
8656
8657         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
8658         image->image_put on windows through a new function _gdk_window_draw_image()
8659         to allow us to do backing store for images. (Sort of ugly)
8660
8661         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
8662         contexts locally so that we can offset them properly when drawing 
8663         onto backing pixmaps.
8664
8665         * gdk/gdkinput.h: Reindented
8666
8667         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
8668         pixmap or color for the window, so we can properly initialize
8669         our double-buffer pixmaps, and also so that we temporarily set
8670         a background of None while scrolling.
8671
8672         * gdk/gdkregion.h: Revise region boolean operators to have an
8673         interface that is actually convenient - switch from creating new
8674         regions on every op, to "methods" that modify existing regions
8675         (A = A OP B). 3 argument forms which allow dest == src, would also
8676         be possible, but the current interfaces seem to map nicely
8677         onto what needs to be done. (There is quite a lot of region
8678         code in GDK now.)
8679
8680         * gdk/gdkregion.h: Add constructor from rectangle and a copy
8681         operator.
8682
8683         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
8684         gdkpoly-generic.h: Copy region code from Xlib, switch it over
8685         to 32 bit coordinates, modify it to be mostly GTK+ style
8686         and to have interfaces that match gdkregion.h.
8687
8688         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
8689         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
8690         create a backing pixmap and redirect all drawing to
8691         that backing pixmap until a matching gdk_window_end_paint().
8692
8693         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
8694         Create a special drawable class for GtkWindow's that 
8695         redirects the drawing to the backing pixmap as necessary
8696         and then calls the real operations in _gdk_windowing_window_class.
8697
8698         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
8699         Store invalid region for each window. Generate expose events for invalid
8700         region in an idle. This replaces both the expose compression
8701         and the redrawing queuing in GTK+. It is both more efficient and
8702         simpler than either one individually and far more so then the
8703         combination.
8704
8705         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
8706         Emulate 32 bit coordinates for windows with 16 bit coordinates
8707         by offsetting drawing, guffaw scrolling techniques and
8708         mapping/unmapping child windows as necessary.
8709
8710         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
8711         where, when invalid regions are processed, the region is stored,
8712         and if expose events come in that are detectably duplicate
8713         the processed exposes (by comparison of event serial numbers),
8714         the stored region is subtracted out of those exposes.
8715
8716         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
8717         regions newly exposed when scrolling or resizing windows.
8718         This, combined with forcing processesing of queued invalidated
8719         regions, gives nice flicker-free scrolling.
8720
8721         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
8722         invalidated regions after every scroll.
8723
8724         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
8725         emulation in GDK. Its, for all practical purposes just a
8726         GtkViewport/GtkFixed hybrid now.
8727
8728         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
8729         (16-bit) structures as necessary instead of just casting.
8730
8731         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
8732         in terms of the structures from gdkregion-generic.c, using appropriate
8733         offsets from GDK to X11 coordinates. Cache clip mask and
8734         origin and ts origin locally and only flush to the server
8735         when drawing, to avoid constantly setting and resetting these
8736         values when offsetting GC's for scrolling and backing pixmaps.
8737
8738         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
8739
8740         * gtk/gtkcontainer.c: Call process_all_updates at end
8741         of resizing to reduce flicker. (Avoids having redraw
8742         lag arbitrarily behind resize under some circumstances)
8743
8744         * gtk/gtkentry.c: Remove old backing store code, and simply take
8745         advantage of the new backing store capabilities of GDK.
8746
8747         * gtk/gtkmain.c: Simple implementation of widget backing
8748         store - simply push a paint while handling each expose.
8749         (Should really be configurable widget for widget.)
8750         
8751         * gtk/gtkwidget.c: Remove all the old complicated redraw
8752         code, and simply invalidate the GDK windows from
8753         gdk_window_queue_clear(), etc. (Sigh, so much carefully
8754         debugged complexity ... gone to the winds.)
8755
8756         Remove all the code for suppressing expose events while
8757         resizes are pending; this isn't needed since the invalid
8758         areas won't be processed until after the resizes are
8759         processed, since they are in a lower priority idle.
8760
8761 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
8762
8763         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
8764         and height of dest rectangle for non-intersecting rectangles.
8765
8766 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
8767
8768         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
8769         for GdkRectangle.
8770
8771 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
8772
8773         * gdk/gdk{events,image,private,types,window}.h
8774          gdk/x11/gdkinputprivate.h: Change all coordinates
8775          from int16 to int. Also, Change width and height from
8776          unsigned to signed to avoid all the stupid C 
8777          signedness bugs.
8778
8779 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
8780
8781         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
8782         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
8783         Add some more detailed checking.
8784
8785         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
8786         New function to retrieve the depth of a drawable.
8787
8788         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
8789         field, reorder fields to save memory. 
8790
8791 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
8792
8793         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
8794         of the background image instead of scaling the background down to
8795         a line.
8796
8797         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
8798         which temporarily set slider to wrong size.
8799
8800         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
8801         queue_clear().
8802
8803 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
8804
8805 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
8806
8807         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
8808
8809 2000-03-17  Tor Lillqvist  <tml@iki.fi>
8810
8811         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
8812         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
8813
8814         * gdk/win32/gdkfont-win32.c
8815         * gdk/win32/gdkproperty-win32.c
8816         * gdk/win32/gdkselection-win32.c
8817         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
8818         now declared such.
8819
8820 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
8821
8822         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
8823
8824 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
8825
8826         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
8827         is called without trapping X errors.
8828
8829 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
8830
8831         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
8832         way into the fontset lists.
8833
8834 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
8835
8836         * gtk/gtkthemes.h: add extern "C" scope.
8837
8838 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
8839
8840         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
8841         to make appends to the list constant. (gtk-guy-990901-0.patch)
8842
8843 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
8844
8845         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
8846         for the typename hash table.
8847
8848 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
8849
8850         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
8851         to make sure we never divide by zero. 
8852         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
8853
8854 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
8855
8856         * gtk/gtkfontsel.c: Apply patch from
8857         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
8858         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
8859
8860         Also, some cleanups in atom handling.
8861
8862 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
8863
8864         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
8865         not GtkWidget.
8866
8867 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
8868
8869         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
8870         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
8871         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
8872         more guint wrap-around bugs before going to bed.
8873
8874 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
8875
8876         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
8877         guint wrap arounds in allocation.width.
8878
8879         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
8880         process untill we fit the allocation given.
8881
8882 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
8883
8884         * gtk/gtkwidget.c:
8885         (gtk_widget_unrealize): guard widget access with ref/unref
8886         around signal emission.
8887         (gtk_widget_hide): same here, but also check its destroyed
8888         state before queueing a resize.
8889
8890 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
8891
8892         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
8893         of gtk_default_insensitive_bg as insensitive base color.
8894
8895         * gtk/gtktext.c (gtk_text_style_set): set the background color according
8896         to the widget's state.
8897         (gtk_text_realize): same here.
8898         (gtk_text_state_changed): same here.
8899         (draw_bg_rect): compare background color against base[] from
8900         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
8901
8902 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
8903
8904         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
8905         grabs are active, unless a delete event is send to the toplevel
8906         of the currently grab holding widget.
8907
8908 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
8909
8910         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
8911         debugging g_print's.
8912
8913 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
8914
8915         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
8916         ever make the scrolled-window requisition ever depend on the 
8917         visibility state of the scrollbars for the AUTOMATIC policy. 
8918         This breaks the GTK+ requisition model, and causes loops.
8919
8920 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
8921
8922         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
8923         the default font to avoid problems with XFree86-4.0 where the
8924         default charset is iso10646-1, not iso8859-1.
8925
8926 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
8927
8928         * acinclude.m4
8929         * config.guess
8930         * config.sub
8931         * ltconfig
8932         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
8933
8934         * gtk/Makefile.am: minor cosmetic consistency tweak
8935
8936 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
8937
8938         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
8939         the activate_time to 0, so that we handle a quick
8940         press/release press/release properly and don't suppress
8941         the second release. (Red Hat bug #7545)
8942
8943 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
8944
8945         * gtk/gtkctree.c (row_delete):
8946         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
8947         bugs with destruction notifier, *always* update internal
8948         structures *before* calling user code.
8949
8950 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
8951
8952         A few more fixes for bug #5487, #2051, #2677.
8953         * gtk/gtkclist.c : 
8954         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
8955         not GDK_BUTTON_PRESS.
8956         (resync_selection): resync only if selection_mode is
8957         GTK_SELECTION_EXTENDED
8958         * gtk/gtkctree.c (resync_selection): same here
8959
8960 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
8961
8962         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
8963         gdk_drag_get_selection() and gtk_menu_detach().
8964
8965         [ From Jeroen Ruigrok/Asmodai ]
8966
8967 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
8968
8969         * gtk/gtknotebook.c (gtk_notebook_size_request): 
8970         page->tab_label can be NULL.
8971
8972 2000-01-25  Havoc Pennington  <hp@pobox.com>
8973         
8974         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
8975         arg is boolean
8976
8977         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
8978
8979         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
8980
8981         * gdk/gdkproperty.c (gdk_property_get): return boolean
8982
8983         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
8984
8985         * gdk/gdkim.c (gdk_im_ready): return boolean
8986
8987         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
8988
8989         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
8990         glib clash, should fix glib)
8991
8992         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
8993         (gdk_get_show_events): return gboolean, and canonicalize 
8994         to TRUE/FALSE
8995
8996         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
8997         colormap is private
8998         (gdk_colors_alloc): gboolean whether to be contiguous
8999         (gdk_color_equal): return gboolean since we are a predicate
9000         and not a qsort() (this looks semi-wrong due to glib breakage,
9001         IMO glib should be fixed)
9002         
9003         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
9004         (gdk_get_use_xshm): return gboolean
9005         (gdk_pointer_is_grabbed): return gboolean
9006
9007         * gdk/gdk.h: Change prototypes to match all the above changes,
9008         and re-run egtk-format-protos as required.
9009
9010 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
9011
9012         * gtk/gtkctree.c (resync_selection): 
9013         * gtk/gtkclist.c (resync_selection):
9014
9015         Return immediately if clist->drag_pos < 0. This is a workaround
9016         for the corrupt state that the clist gets into when a
9017         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
9018
9019         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
9020         
9021         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
9022         variable from recent commit.
9023
9024 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
9025
9026         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
9027
9028 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
9029
9030         * gtk/Makefile.am: prefix all autogenerated source that get build in
9031         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
9032         in builddir. since we subsequently cd into srcdir for autogeneration,
9033         the paths have to be stripped from the target file names, thusly we
9034         use $(@F) as target names now.
9035         put a comment about configure.in's --disable-rebuilds option,
9036         which can be used for non-writable source directories, for development
9037         setups though, srcdir has to be *writable*.
9038
9039 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
9040
9041         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
9042           Finish the job of allowing event to be NULL.
9043           (Fixes bug #4283, reported by Chris Blizzard)
9044
9045         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
9046           things so that the cursor appears on screen, properly
9047           take into account INNER_BORDER.
9048           (Fixes bug #4754, reported by Antonio Campos)
9049
9050 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
9051
9052         * gtk/gtknotebook.c (gtk_notebook_map): Don't
9053           show the tab_label unless it itself is visible.
9054
9055           gtk/gtknotebook.c (gtk_notebook_size_request):
9056           Do a better job of making sure that the visibility
9057           of the tab label corresponds to whether it should
9058           be mapped or not.
9059
9060 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
9061
9062         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
9063           Use the requisition, not the allocation, since the
9064           allocation has not necessarily been computed yet.
9065           (Pointed out by Eugene Osintsev)
9066
9067 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
9068
9069         * gtk/gtkstyle.c (gtk_style_new): Dont' set
9070           style/base[GTK_STATE_INSENSITIVE] both to
9071           gtk_default_insensitive_bg!
9072           (Bug #2187, reported by Jonathan Blandford)
9073
9074         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
9075           Add Alt_L, Alt_R to list of invalid accelerators.
9076           (Bug #3736, reported by Vlad Harchev)
9077
9078 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
9079
9080         * gtk/gtkfilesel.c (open_ref_dir): Fix several
9081         bugs which occured after an attempt to open 
9082         invalid home directory left cmpl_state->reference_dir == NULL.
9083
9084          - completion on files in home directory didn't work
9085          - completion on an empty string caused  segfault
9086
9087          (Bug #3678, reported by Steve Ratcliffe)
9088
9089         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
9090         cut and paste error that was causing scales to
9091         be incorrectly positioned.
9092         (Bug #2956,
9093          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
9094
9095 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
9096
9097         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
9098         when checking for dcgettext, if we've found we needed
9099         it for dgettext.
9100 +
9101 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
9102
9103         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
9104         queue_clear on NO_WINDOW widgets during a reparent,
9105         since at that point the window and widget heirarchies
9106         are out of sync. This stops crashing in some cases
9107         (the scrolled window reparent test, for instance), and
9108         _probably_ won't cause drawing errors.
9109
9110         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
9111         test do what it was supposed to do and be robust against
9112         window closings, etc. (Bug #2443)
9113
9114 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
9115
9116         * gtk/gtkentry.c: Fix return values on mouse events.
9117         (Bug #2686, Sky <seb_sky@yahoo.com>)
9118
9119         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
9120         (pointed out by George Lebl)
9121
9122         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
9123         (From Ettore Perazzoli  <ettore@helixcode.com>)
9124  
9125 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
9126
9127         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
9128         clicks between rows or outside calender area correctly.
9129         (Patch from Damon Chaplin)
9130
9131         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
9132         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
9133           Call destroy function when overwriting existing data. 
9134           (Pointed out by Damon Chaplin)
9135
9136 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
9137
9138         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
9139           which was causing problems on various systems with Xmu.
9140           This hasn't been needed for a very long time.
9141           (Fixes #1185 3167)
9142
9143 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
9144
9145         * gdk/gdki18n.h: Include <ctype.h> when defining
9146           gdk_isw* in terms of is* as a fallback.
9147           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
9148
9149 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
9150
9151         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
9152           realize the widget when it is size allocated!
9153           (old, old bug)
9154
9155         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
9156           Removed unused call to gdk_window_get_size() that
9157           showed up when the above was fixed.
9158
9159 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
9160
9161         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
9162           fix up widget->window when the widget is a
9163           NO_WINDOW container widget.
9164
9165 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
9166
9167         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
9168           to account for the fact that feof() does _not_ 
9169           return TRUE on errors, and thus avoid infinite loops
9170           when trying to use gdk_pixmap_create_from_xpm()
9171           on unreadable values.
9172
9173 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
9174
9175         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
9176
9177 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
9178
9179         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
9180           gdk_gc_set_dashes to take gint8 instead of gchar to
9181           make it clearer that it is _not_ a NULL terminated string.
9182
9183         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
9184           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
9185           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
9186           arguments.
9187
9188 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
9189
9190         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
9191         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
9192         background size relative to our allocation, guard against small
9193         allocations, we may have not yet been size allocated.
9194
9195 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
9196
9197         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
9198         not just version == 3. We implement all 3 + most of 4 - 
9199         (we don't support matching text/plain;charset=iso-8859-1
9200         to a dest that expects text/plain). We'll still advertise
9201         3 to be safe, but any client implementing version >= 3
9202         must interoperate with 3.
9203         
9204 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
9205
9206         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
9207         background and gc members, add a warning in gtk_tooltips_set_color()
9208         indicating that this function is deprecated.
9209
9210 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
9211
9212         * docs/gtkfaq.sgml: FAQ Update:
9213           - Minor cleanups (Emmanuel, me)
9214           - New questions:
9215                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
9216                 How can I retrieve the text from a GtkMenuItem? (timj)
9217                 How do I validate/limit/filter the input to a GtkEntry? (me)
9218                 Memory does not seem to be released when I free the list
9219                         nodes I've allocated (timj)
9220
9221 2000-03-07  Tor Lillqvist  <tml@iki.fi>
9222
9223         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
9224         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
9225         for which it is no use to call GetLastError onWin9x.
9226         (gdk_other_api_failed) New function, for general error
9227         reporting without calling GetLastError.
9228         (gdk_win32_api_failed) OTOH, this function always calls
9229         GetLastError. (gdk_win32_last_error_string) Remove this function,
9230         GLib has the equivalent now.
9231
9232         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
9233         call them with function name, file name and line number in the
9234         arguments.
9235
9236         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
9237         functions.
9238         
9239         * gtk/gtk.def: Add some missing entry points.
9240
9241         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
9242         gtk_paned_set_gutter_size, which don't exist any longer, as void.
9243         
9244         Fixes by Hans Breuer:
9245
9246         * gdk/makefile.msc: Update for debugging.
9247
9248         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
9249         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
9250         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
9251         in the dash_list.
9252
9253         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
9254         the x11 backend.
9255
9256         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
9257
9258         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
9259
9260 2000-03-04  Tor Lillqvist  <tml@iki.fi>
9261
9262         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
9263         just pixel value of background colour.
9264
9265         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
9266         containing code snippet previously duplicated in a couple of
9267         places.
9268         
9269         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
9270         gdk_colormap_color.
9271
9272         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
9273         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
9274         events for autorepeated Shift, Control and Alt keys. Use
9275         gdk_colormap_color.
9276
9277         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
9278         pointer is inside the window the cursor of which we are setting,
9279         call SetCursor immediately.
9280
9281         * gdk/win32/makefile.cygwin
9282         * gtk/makefile.cygwin: If we don't have the build number stamp
9283         file, use zero.
9284
9285         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
9286         gtk_paned_set_gutter_size as empty.
9287
9288         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
9289         
9290 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
9291
9292         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
9293           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
9294           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
9295           docs/gtk_tut.sgml docs/gtk.texi TODO:
9296
9297           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
9298
9299 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
9300
9301         * gtk/gtkcalendar.c: Implement num_marked_dates,
9302           and don't emit mutiple day_selected signals on
9303           month_prev.
9304
9305 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
9306
9307         * docs/make-todo (lineno): let title and logo be configurable so
9308         that GNOME can use this script too.
9309
9310         * TODO.xml: added logourl and a title
9311
9312 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
9313
9314         * TODO.xml: Added some UI items, and an explanatory
9315         comment at the top of the file.
9316
9317 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
9318
9319         * TODO.xml: some updates, added abunch of new entries.
9320         a note for those fiddeling with this file, when done
9321         with it, invoke:
9322         $ ./docs/make-todo TODO.xml >/dev/null
9323         and correct output errors before comitting changes.
9324
9325 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
9326
9327         * TODO.xml: Added XML-structured TODO file.
9328         * docs/make-todo: python script to turn TODO.xml into
9329           pretty XML output. 
9330
9331 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
9332
9333         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
9334         the function to let it draw the seven dots, instead of the old,
9335         much maligned, method.
9336         (draw_dot): New function to draw a dot.
9337
9338         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
9339         to draw the handle inside the border width as opposed to outside.
9340         Use paint function instead of gdk_draw_point.
9341
9342         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
9343         to draw the handle inside the border width as opposed to outside.
9344         Use paint function instead of gdk_draw_point.
9345
9346         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
9347         Change indenting to be more GTK like.
9348
9349 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
9350
9351         * docs/gtk_tut.sgml: New section on GtkCalendar
9352         * examples/calendar: Update example code
9353
9354 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
9355
9356         * docs/gtkfaq.sgml: FAQ Update
9357
9358 2000-02-19  Anders Carlsson  <andersca@gnu.org>
9359
9360         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
9361         to prevent the scroll event to be propagated upwards.
9362
9363 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
9364
9365         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
9366         OwnerGrabButtonMask from button entries for
9367         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
9368
9369         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
9370         to the event mask (which will result in button/press release
9371         being added to the event mask on Unix) so scrolling works
9372         for layouts in scroll windows.
9373
9374         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
9375
9376         Patch from Anders Carlsson  <andersca@gnu.org> to add
9377         a scroll event.
9378
9379         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
9380         scrolling to the "Test Scrolling" part of testgtk.
9381  
9382         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
9383  
9384         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
9385         it against GDK_SCROLL.
9386  
9387         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
9388         way of mouse wheel scrolling.
9389  
9390         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
9391  
9392         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
9393  
9394         * gtk/gtkmain.c: Removed previous mouse wheel hack.
9395  
9396         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
9397         gdk_event_mask_table.
9398  
9399         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
9400         GdkEventScroll handler.
9401  
9402         * gdk/gdkevents.h: Added GdkEventScroll structure.
9403  
9404 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
9405
9406         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
9407         and Anders Carlsson to change the Paned widgets so that they
9408         can be dragged from anywhere along the length. Also change
9409         the way that this is drawn to make this apparent.
9410
9411         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
9412         from George Lebl to check that option_menu->menu is present
9413         before getting history.
9414
9415 2000-02-14  Tor Lillqvist  <tml@iki.fi>
9416
9417         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
9418         before the assertion for non-NULL segment list.
9419
9420         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
9421         Seems that pattern brushes *must* be 8x8 pixels! At least on my
9422         machine, but it might be display driver dependent. Sigh, so make
9423         sure the stipple is that size. Does Windows suck or what?
9424
9425         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
9426         places.
9427
9428 2000-02-13  Havoc Pennington  <hp@pobox.com>
9429
9430         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
9431         refcount to 1
9432         (gdk_cursor_new): init refcount to 1
9433
9434         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
9435
9436 2000-02-13  Tor Lillqvist  <tml@iki.fi>
9437
9438         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
9439         so that we don't have to do unnecessary settings to the HDC.
9440
9441         * gdk/win32/gdkdrawable-win32.c
9442         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
9443         gdk_gc_predraw.
9444
9445         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
9446         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
9447         GDI paths, call WidenPath to get the outline of the stroken path,
9448         and then fill the outline (with the brush that was built from the
9449         stipple).
9450
9451         * gdk/win32/gdkgc-win32.c: Factor out common code from
9452         _gdk_win32_gc_new and gdk_win32_gc_set_values into
9453         gdk_win32_gc_values_to_win32values. Use correct colour for
9454         SetBkColor() (Until now the code actually used a random colour in
9455         the call to SetBkColor()... but that didn't show up as not many
9456         GDI APIs use the background colour. Pattern (opaque stippled)
9457         brushes do.)
9458
9459         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
9460         gdk_win32_api_failed): New functions for error logging.
9461
9462         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
9463         WIN32_API_FAILED to call them, passing function or file name and
9464         line number.
9465
9466         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
9467
9468         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
9469         GdkColor for foreground and background in GdkGCWin32Data.
9470
9471         * gdk/makefile.cygwin: Link in the resource object separately.
9472
9473         * gdk/win32/rc/gdk.rc
9474         * gtk/gtk.rc (New file)
9475         * gdk/win32/makefile.cygwin
9476         * gtk/makefile.cygwin: Update build number in DLLs automatically,
9477         as in GLib.
9478
9479 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
9480
9481         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
9482         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
9483         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
9484         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
9485         parameters given and cursor->ref_count. coding style fixups.
9486
9487         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
9488         not GtkWidget.
9489         
9490         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
9491         fix up widget macros and add _GET_CLASS() variant.
9492         
9493         * gtk/*.c: some GtkType fixups.
9494
9495 2000-02-09  Tor Lillqvist  <tml@iki.fi>
9496
9497         * gdk/win32/gdkproperty-win32.c
9498         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
9499         were reversed.
9500
9501 2000-02-04  Tor Lillqvist  <tml@iki.fi>
9502
9503         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
9504         g_filename_to_utf8 to convert the font names Windows gives us from
9505         whatever is the default codepage to UTF-8.
9506         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
9507         in the other direction.
9508
9509         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
9510         error in debugging output.
9511
9512 2000-02-02  Tor Lillqvist  <tml@iki.fi>
9513
9514         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
9515         and height parameters to gdk_window_clear_area(). Not minus one.
9516
9517 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
9518
9519         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
9520         checks if the widget passed to gtk_drag_get_data() was not the
9521         dest widget.
9522
9523 2000-02-01  Tor Lillqvist  <tml@iki.fi>
9524
9525         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
9526         g_filename_from_utf8 functions (which were added a moment ago to
9527         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
9528         size buffers.
9529
9530         gtk_file_selection_get_filename returns the filename in the C
9531         runtime encoding. It calls g_filename_from_utf8, but copies the
9532         returned string to a static buffer, which is returned. I think
9533         this is better than returning the result from g_filename_from_utf8
9534         directly, which would mean all apps that use it would have to free
9535         the return value. Or should this function care about this issue at
9536         all? Maybe a new function with clearly defined semantics.
9537
9538         * gtk/gtkfilesel.h: Add comment about
9539         gtk_file_selection_get_filename returning the filename in the C
9540         runtime's encoding.
9541
9542         * README.win32
9543         * gdk/gdk.def
9544         * gdk/makefile.{cygwin,msc}
9545         * gtk/gtk.def: Updates.
9546
9547         * gdk/gdkcursor-win32.c: Initialise refcount.
9548
9549 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
9550
9551         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
9552
9553 2000-01-30  Havoc Pennington  <hp@pobox.com>
9554
9555         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
9556         destroy
9557
9558         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
9559
9560         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
9561         implemented in platform-specific code
9562
9563         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
9564
9565         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
9566         underscore in front
9567
9568         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
9569         put an underscore in front
9570
9571         * gdk/gdkcursor.c: new file, implements
9572         gdk_cursor_ref/gdk_cursor_unref
9573
9574         * gdk/gdkcursor.h: Refcount GdkCursor
9575
9576         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
9577
9578 2000-01-29  Tor Lillqvist  <tml@iki.fi>
9579
9580         * gdk/gdkwindow.h
9581         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
9582
9583 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
9584
9585         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
9586         structures to properly inherit from GtkWidget not GtkBin.
9587
9588 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
9589
9590         * gtk+.spec.in: Added lib/gtk+/include/* to %files
9591         (bug #5178 - Peter Wainright)
9592         
9593         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
9594         so that it will be installed.
9595         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
9596
9597 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
9598
9599         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
9600         for the GtkStyleClass vtable const.
9601
9602         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
9603         take a const string argument like GtkTranslateFunc. This will
9604         require changes in use code.
9605
9606 2000-01-19  Tor Lillqvist  <tml@iki.fi>
9607
9608         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
9609         semantics (to mimic the X11 backend, which just calls XClearArea)
9610         is to check for zero width (and height), and in that case use the
9611         window's width minus x (height minus y). This fixes for instance
9612         some redraw problems with gtkclist, which were easily noticeable
9613         in the gtk file selection widget.
9614
9615         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
9616         windows.
9617
9618 2000-01-13  Tor Lillqvist  <tml@iki.fi>
9619
9620         * configure.in
9621         * gdk/Makefile.am
9622         * gdk/x11/Makefile.am
9623         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
9624         (bug #5177).
9625         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
9626         out later.
9627
9628 2000-01-09  Tor Lillqvist  <tml@iki.fi>
9629
9630         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
9631         WM_MOVE for iconified or invisible windows. This fixes various
9632         problems when minimising windows. Thanks to Bernd Herd.
9633
9634 2000-01-05  Tor Lillqvist  <tml@iki.fi>
9635
9636         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
9637         backend's draw_lines method, not draw_points.
9638
9639 2000-01-02  Tor Lillqvist  <tml@iki.fi>
9640
9641         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
9642         before Owen's reorganisation: Don't have queued_events and
9643         queued_tail statics in this file, but use gdk_queued_events and
9644         gdk_queued_tail. This makes exposure event compression work again.
9645
9646         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
9647         seem to be needed?
9648
9649 1999-12-30  Tor Lillqvist  <tml@iki.fi>
9650
9651         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
9652         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
9653         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
9654         doesn't do anything.
9655
9656         * gdk/gdk.def: Add gdk_xid_table_insert.
9657
9658         * gdk/win32/gdkprivate-win32.h
9659         * gdk/win32/gdkevents-win32.c
9660         * gdk/win32/gdkinput-win32.c
9661         
9662         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
9663         extension_events field in the GdkWindowWin32Data struct. Use only
9664         the extension_events field in GdkWindowPrivate. Previously one was
9665         set, and the other one tested, which broke tablet
9666         functionality. Thanks to Keishi Suenaga for pointing this out.
9667
9668 1999-12-18  Tor Lillqvist  <tml@iki.fi>
9669
9670         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
9671         When handling a single character (text length == 1), don't handle
9672         it as if it was UTF-8.
9673
9674 1999-12-11  Tor Lillqvist  <tml@iki.fi>
9675
9676         * Makefile.am: Distribute README.win32.
9677         
9678         * gdk/Makefile.am
9679         * gdk/win32/Makefile.am: Distribute Win32 files.
9680
9681         * gdk/makefile.msc: New file.
9682
9683         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
9684         after label).
9685
9686         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
9687         gdk_error_code as GDKVAR, as they are referred outside GDK.
9688
9689         * gdk/win32/makefile.msc: Update.
9690
9691         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
9692         tweaks. Check only if at least one of those Unicode subrange bits
9693         we care for is set. If no code page bits are set, guess (wildly)
9694         based on the charset.
9695
9696         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
9697
9698         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
9699         non-NULL.
9700
9701         * gtk/gtkdnd.c
9702         * gtk/gtklayout.c
9703         * gtk/gtkplug.c
9704         * gtk/gtkselection.c
9705         * gtk/gtksocket.c
9706         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
9707         appropriate. There must be a cleaner way to handle this?
9708
9709         * gtk/gtkrc.c: Must include windows.h on Win32.
9710
9711         * gtk/testgtk.c: No need to include gdkx.h.
9712
9713         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
9714
9715 1999-12-07  Tor Lillqvist  <tml@iki.fi>
9716
9717         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
9718         the rbearing is set to the same as the width, but this should be
9719         fixed.
9720
9721 1999-12-06  Tor Lillqvist  <tml@iki.fi>
9722
9723         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
9724         function. If Windows doesn't tell us what Unicode subranges a font
9725         covers, guesstimate based on the codepages it covers. This will
9726         hopefully help those Windows versions or fonts that don't give us
9727         any useful Unicode subrange information with GetTextCharsetInfo.
9728         Call this function in gdk_font_load_internal.
9729
9730         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
9731         minor changes.
9732
9733 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
9734
9735         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
9736         New function, long needed.
9737
9738 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
9739
9740         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
9741         only_if_exists argument of gdk_atom_intern to
9742         bool.
9743
9744 1999-11-25  Tor Lillqvist  <tml@iki.fi>
9745
9746         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
9747         Fix two copy&paste errors.
9748
9749         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
9750         win32 has changed.
9751
9752         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
9753         GdkWin32SingleFont struct.
9754
9755         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
9756         subranges of loaded fonts. Clear font signature first, in case
9757         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
9758         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
9759
9760         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
9761         Unoffset clip region.
9762
9763 1999-11-23  Tor Lillqvist  <tml@iki.fi>
9764
9765         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
9766         event->any.window before calling filter functions.
9767
9768 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
9769
9770         * gtk/gtkgamma.h: Adapt cast macros to standard.
9771
9772 [ Merges from 1.2 ]
9773
9774 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
9775
9776         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
9777         If translation does not include a '/', use entire
9778         translation instead of crashing.
9779
9780 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
9781
9782         * docs/gtk_tut.sgml:
9783         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
9784
9785 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
9786
9787         * gtk/gtkselection.c (gtk_target_list_remove): Use
9788         g_list_remove_link, not g_list_remove.
9789
9790         [ From Geert Bevin <gbevin@thunderstorms.org> ]
9791         
9792 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
9793
9794         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
9795         statement upon unselection (how the heck did that slip in?).
9796
9797 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
9798
9799         * gtk/gtktext.c (gtk_text_freeze): 
9800         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
9801         in frozen state (and aparently crashes). patch provided by Anders
9802         Melchiorsen <and@kampsax.dtu.dk>.
9803
9804 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
9805
9806         * fix insensitive default/focus widget activation,
9807         reported by Matt Goodall <mgg@isotek.co.uk>.
9808
9809         * gtk/gtkwindow.c (gtk_window_key_press_event): 
9810         (gtk_window_activate_default):
9811         (gtk_window_activate_focus):
9812         return handled=FALSE for actiavtion of insensitive default
9813         widgets. return handled=TRUE for activation of insensitive
9814         focus widgets. don't activate in either case.
9815
9816 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
9817
9818         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
9819         and $glib_cflags to match library order and in the
9820         theory that an old version of GLib is more likely to
9821         be in the include directory for X then vice-versa.
9822         (Bug #2776)
9823
9824 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
9825
9826         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
9827         to determine the locale for fontsets, not LC_MESSAGES;
9828         the user may want English messages with a handling
9829         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
9830         will still be broken) (Bug #2891)
9831
9832 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
9833
9834         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
9835
9836 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
9837
9838         * gtk/gtkrc.ko: Changed the Korean default fontset.
9839
9840 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
9841
9842         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
9843         where when scrolling to the left or top double exposes
9844         were done, causing major slowdowns.
9845
9846 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
9847
9848         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
9849         names to lowercase and alphanumeric, before looking
9850         them up.
9851
9852         * gtk/Makefile.am: Install codeset variant gtkrc files
9853         with normalized names.
9854
9855 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
9856
9857         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
9858         popup menus when the menu is already visible, but its parent
9859         is still hidden, (happens after tornoff window got hidden).
9860
9861 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
9862
9863         * gtk/Makefile.am (install-data-local): Fix
9864         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
9865         deleted, causing error messages on install.
9866
9867 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
9868
9869         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
9870         the handle as well, since we now sometimes ignore
9871         exposes on the handle while resizing.
9872
9873 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
9874
9875         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
9876         extra g_free introduced in one of the last one or two 
9877         commits.
9878
9879 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
9880
9881         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
9882         consistent, put each style that a gtkrc.* file creates
9883         in a unique namespace, remove old files before installing.
9884
9885 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
9886
9887         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
9888         gtk_rc_init is called multiple times. (Yes, people who
9889         do that have bugs in their code.)
9890
9891 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
9892
9893         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
9894         Remove it since it's generated by the Makefile anyway
9895
9896 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
9897
9898         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
9899         device->info.axes for core pointer.
9900
9901 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
9902
9903         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
9904         idle_id, to deal with obsolete, broken C libraries.
9905
9906 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
9907
9908         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
9909         allocation->x/y twice!
9910
9911         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
9912         consistent with gtk_vscale_pos_trough().
9913
9914 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
9915
9916         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
9917         be queueing a resize on a toplevel container between
9918         the time we show it and when we map it. So, we need
9919         to test GTK_WIDGET_VISIBLE() for toplevels, and only
9920         use GTK_WIDGET_DRAWABLE() for child windows.
9921
9922 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
9923
9924         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
9925         (fixes bug #2144)
9926
9927 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
9928
9929         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
9930         container DRAWABLE (instead of VISIBLE), so we don't queue
9931         resizes on non-toplevel containers.
9932
9933 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
9934
9935         * gtk/gtkselection.[ch]: Make the data argument
9936         const guchar *.
9937
9938 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
9939
9940         * gtk/gtkwindow.c: Try to behave sensibly if 
9941         the focus widget is the window itself. (Should
9942         we allow this at all?)
9943
9944 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
9945
9946         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
9947         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
9948         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
9949         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
9950         in prototypes and implementations consistent (Tomas Ogren).
9951
9952         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
9953         before the widget is unparented (reported by damon).
9954
9955         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
9956         since we provide unsigned data anyways.
9957
9958 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
9959
9960         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
9961         the call to gtk_tooltips_layout_text() until later.
9962
9963         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
9964         Call gtk_widget_ensure_style() before using the style.
9965
9966 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
9967
9968         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
9969         for old widgets that don't propagate draws to all
9970         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
9971
9972 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
9973
9974         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
9975         for a redraw but just the widget that requested the resize.
9976
9977 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
9978
9979         * gtk/gtkcontainer.c: added new widget level method
9980         gtk_container_set_reallocate_redraws() and a GtkContainer flag
9981         reallocate_redraws : 1 to reflect the setting, exported this through
9982         the argument system as a boolean ::reallocate_redraws.
9983
9984         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
9985         on the widget because the allocation changes, do so as well for
9986         widget->parent if the parent has reallocate_redraws set to TRUE.
9987         with that containers requesting reallocation redraws get automatically
9988         redrawn if their children changed allocation (this unfortunately
9989         affects also other children that didn't change allocation, but we
9990         cannot work around that before 1.3).
9991
9992 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
9993
9994         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
9995         _and_ height are >0 (not _or_).
9996
9997         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
9998         instead of gtk_container_queue_resize(), which is a core gtk internal
9999         function (must have been on crack when i queued that).
10000
10001         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
10002         we can check more reliably if we want to discard expose events.
10003         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
10004         flag.
10005         
10006         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
10007         we simply trust these events. for deciding whether to discard exposes,
10008         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
10009         
10010 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
10011
10012         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
10013         queues of areas that are completely off screen.
10014
10015         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
10016         logic for handleboxes.
10017
10018         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
10019         check on width/height.
10020
10021 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
10022
10023         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
10024         we are fine with using $@ the way we do (if we actually encounter
10025         brokeness with $@ in VPATH builds because of additional path prefixes,
10026         we need to use $(@F) actually).
10027
10028 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
10029
10030         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
10031         short lived bugs, that would allow language bindings to do surgeries
10032         to our guts.
10033
10034 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
10035
10036         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
10037         where comparison was being done against an uninitialized
10038         value causing intermittant results depending on
10039         compiler flags. Also make it clearer that we aren't
10040         ever initializing the child as 0x0 (though this will
10041         be caught in gtk_widget_size_allocate())
10042
10043 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
10044
10045         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
10046         gtk_window_unset_transient_for() call after we do checks
10047         involving the old transient parent.
10048         [ From Lance Capser <lmc@cyberhighway.net> ]
10049
10050 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
10051
10052         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
10053         an empty file.
10054
10055 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
10056
10057         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
10058         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
10059
10060 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
10061
10062         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
10063         `$@' is valid only in the build dir, not after we've done 
10064         `cd $srcdir'.  Also use `test -f' instead of less portable
10065         `test -e'.
10066
10067 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
10068
10069         * gtk/gtktext.c (correct_cache_insert): Rewrite
10070          for simplicity, and hopefully correctness.
10071          (Fixes bug #1322, which was a segfault when
10072           on some insertions with the properties around
10073           the insertion set up just wrong.)
10074
10075         * gtk/gtktext.c (gtk_text_adjustment): When we receive
10076          a "changed" signal, clamp the new value to the adjustment
10077          bounds to avoid segfaulting if someone tries to change
10078          the adjustment to a bogus value. (Bug #1795)
10079
10080 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
10081
10082         * gtk/gtkmain.c: Ignore unexpected destroy notifies
10083         for children, for toplevel windows handle them
10084         like delete_event.
10085
10086         * gtk/gtkplug.c: Add an unrealize handler so that
10087         we unref plug->socket_window when we are done
10088         with it.
10089
10090 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
10091
10092         * gtk/gtktext.c (clear_area): Fix stupid signedness
10093          problem that was causing background to sometimes
10094          be misaligned.
10095
10096 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
10097
10098         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
10099         
10100         * gtk/gtkmenu.c (gtk_menu_position): Make
10101          sure we never position menus with negative x, y,
10102          since gtk_widget_set_uposition() can't handle that.
10103
10104         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
10105          Modify the positioning code a bit so that we always
10106          put the top-left corner onscreen. (This is for
10107          UI reasons, gtk_menu_position() now takes care of
10108          gtk_widet_set_uposition() brokeness.)
10109
10110 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
10111
10112         * gtk/Makefile.am: fixed up things for -jx, x > 1.
10113
10114 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
10115
10116         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
10117           RC style that is passed in. The lack of the ref
10118           before was a bug. If people worked around this
10119           bug, this will introduce a slight memory leak
10120           in their code. The code should typically look like:
10121
10122             rc_style = gtk_rc_style_new ();
10123             [...]
10124             gtk_widget_modify_style (widget, rc_style);
10125             gtk_rc_style_unref (rc_style);
10126
10127         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
10128           the style if it was already set.
10129
10130         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
10131           style if it was set before.
10132
10133 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
10134
10135         * gtk/testgtk.c (main): Add a check to see if we
10136           are being run from the correct directory and
10137           to quit nicely if we are not.
10138
10139         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
10140           static.
10141
10142 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
10143
10144         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
10145
10146         * gtk/gtkwindow.c:
10147         queue resizes unconditionally (gtk_widget_queue_resize will figure
10148         what to do if the window is not realized).
10149         (gtk_window_move_resize): only recenter the window
10150         for GTK_WIN_POS_CENTER_ALWAYS.
10151         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
10152         the same way as GTK_WIN_POS_CENTER.
10153
10154 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
10155
10156         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
10157         with (!(info->last_flags & GDK_HINT_POS)) instead of
10158         (!info->last_flags & GDK_HINT_POS).
10159
10160         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
10161         new_height unconditionally, because we use these values even if
10162         !default_size_changed && !hints_changed.
10163         comented the (default_size_changed || hints_changed) case with
10164         respect to resize rejects from the window manager.
10165
10166         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
10167         in the zvt condition hack, since this includes the window hints, set
10168         the hints after the handling_resize case.
10169
10170         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
10171         window is initially shown with to the geometry.
10172
10173 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
10174
10175         * gtk/gtkwindow.c (gtk_window_move_resize):
10176         s/size_changed/default_size_changed/g so i know what's
10177         really going on (frying brain on smaller flame now).
10178
10179 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
10180
10181         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
10182         we have size_changed upon handling_resize. this is a gross
10183         workaround for the broken zvt widget and should be removed in
10184         1.3 again (search for FIXME).
10185         Owen provided an accurate comment for this:
10186
10187         /* We could be here for two reasons
10188          *  1) We coincidentally got a resize while handling
10189          *     another resize.
10190          *  2) Our computation of size_changed was completely
10191          *     screwed up, probably because one of our children
10192          *     is broken. It's probably a zvt widget.
10193          *
10194          * For 1), we could just go ahead and ask for the
10195          * new size right now, but doing that for 2)
10196          * might well be fighting the user (and can even
10197          * trigger a loop). Since we really don't want to
10198          * do that, we requeue a resize in hopes that
10199          * by the time it gets handled, the child has seen
10200          * the light and is willing to go along with the
10201          * new size. (this happens for the zvt widget, since
10202          * the size_allocate() above will have stored the
10203          * requisition corresponding to the new size in the
10204          * zvt widget)
10205          *
10206          * This doesn't buy us anything for 1), but it shouldn't
10207          * hurt us too badly, since it is what would have
10208          * happened if we had gotten the configure event before
10209          * the new size had been set.
10210          */
10211
10212 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
10213
10214         * gtk/gtkrc.c: deal properly with the fact that RC
10215           style lists may include rc styles more than once.
10216
10217         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
10218           unused static function.
10219
10220         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
10221           stack of directories of RC files currently being
10222           parsed and implicitely add them to pixmap path.
10223           
10224           This fixes a bug where the directory would get
10225           appended then overwritten by pixmap_path declarations.
10226
10227           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
10228
10229         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
10230           theme's exit function. (Patch from Peter Wainwright,
10231           bug #1454)
10232
10233         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
10234           Add a destroy() handler to take care of removing
10235           group for menu item. (Fixes bug #1197)
10236
10237         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
10238           in warning message.
10239
10240 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
10241
10242         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
10243         roundtrip to figure window's width and height, since we know that
10244         anyways from widget->allocation.
10245
10246 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
10247
10248         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
10249           the hints after we request the new size.
10250
10251 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
10252
10253         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
10254           GTK_WIDGET_REALIZED() assertion - we can compute the
10255           hints before we are realized.
10256
10257         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
10258           hint changing so that we have a value of hints_changed
10259           when we decide whether to constrain the window size.
10260
10261         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
10262
10263         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
10264         change back to G_MAXINT.
10265
10266 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
10267
10268         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
10269         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
10270         contain uncluttered values.
10271         (gtk_window_compute_hints): simply assert that window is realized
10272         and that geometry_info is valid, since we rely on this anyways.
10273         (gtk_window_constrain_size): major cleanups to the code.
10274         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
10275         for the base size, instead of the minimums. use 32767 as max width
10276         and height (like in gtkwindow.c) instead of G_MAXINT.
10277
10278 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
10279
10280         * cleaned up the GtkContainer.need_resize flag handling mess, we
10281         only need to force resize requests when we were prematurely
10282         realized, or our widget tree was modified when we were temporarily
10283         hidden. handling these cases directly upon showing the window (i.e.
10284         while the GdkWindow is still unmapped) avoids the need to wait for
10285         a configure event response and therefore makes the GUI more snappier
10286         and avoids blank windows during the roundtrip.
10287
10288         * gtk/gtkwidget.c:
10289         (gtk_widget_hide): 
10290         (gtk_widget_show): don't queue resizes on toplevels, they know how
10291         to deal with matters.
10292
10293         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
10294         flag directly for not visible resize containers and spare us unecessary
10295         signal emissions.
10296
10297         * gtk/gtkwindow.c:
10298         (gtk_window_realize): if we need to enforce premature size allocation,
10299         queue a container resize so we are correctly resized later on.
10300         (gtk_window_init):
10301         (gtk_window_size_request):
10302         don't freak around with the ->need_resize flag,
10303         gtk_container_queue_resize() will care about that.
10304         (gtk_window_show):
10305         handle initial resizing issues here, we can handle matters better in
10306         this place, especially since we know that our GdkWindow is still
10307         unmapped.
10308         (gtk_window_move_resize):
10309         don't care about ->need_resize at all.
10310         handle size changes properly that occoured while we waited for a
10311         configure event.
10312
10313 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
10314
10315         * gtk/gtkwidget.c (gtk_widget_set_uposition):
10316         * gtk/gtkwindow.[hc] (gtk_window_reposition):
10317         Move the hint setting code from gtk_widget_set_uposition
10318         to here; set the hints so that we respect any previously
10319         set geometry hints.
10320
10321         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
10322         change the window hints here or move the window here,
10323         let that happen in gtk_window_move_resize().
10324
10325 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
10326
10327         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
10328         to already queued resizes (and therefore redraws) on a widget, check
10329         its anchestry as well.
10330
10331         * gtk/gtkcontainer.c:
10332         (gtk_container_queue_resize): clear resize widgets for resize
10333         containers before aborting prematurely. this is especially important
10334         for toplevels which may need imemdiate processing or their resize
10335         handler to be queued.
10336         (gtk_container_dequeue_resize_handler): added new internal function for
10337         gtkwindow.c.
10338
10339         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
10340         configure event, take possible changes in window position into account
10341         as well.
10342         if we request a new window size, queue up a resize handler that will
10343         last until the configure event response arrives.
10344         combined the ->need_resize case (initial show) with the general size
10345         (hints) changed case and added even more comments.
10346         if !auto_shrink, only revert to the old allocation if the new size
10347         is smaller than the current allocation.
10348
10349 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
10350
10351         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
10352                            gtk_window_set_geometry_hints
10353                            gtk_window_set_default_size):
10354         When hints are set, queue a resize so that the hints will
10355         be eventually reset on the toplevel.
10356
10357         * gtk/gtkwindow.c (gtk_window_show): Use
10358         gtk_window_compute_default_size(). Clear the need_resize flag
10359         on the initail map so that we don't unnecessarily trigger the
10360         resize code.
10361
10362         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
10363         into separate functions. Compare the hints we are setting
10364         with what we set last time so that we can accurately
10365         tell when we need to reset the hints.
10366
10367         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
10368         function to figure out the size from requisition
10369         and default_size.
10370
10371         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
10372         from fvwm to constrain a size to the geometry hints.
10373
10374         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
10375         to compare two sets of geometry hints.
10376
10377         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
10378         from gtk_window_set_hints(), just compute the hints,
10379         don't set them.
10380
10381         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
10382         code from gtk_window_move_resize() to separate function,
10383         rationalize a bit.
10384
10385 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
10386
10387         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
10388         structure into a new private structure.
10389
10390         * gtkrc.c: Split GtkRcStyle into public/private.
10391         In the private part, add a list of pointers to the
10392         RcStyle lists this RcStyle participates in.
10393
10394         * gtkrc.c: When a RcStyle is free, remove all
10395         lists referencing it from the 
10396         realized_style_ht hash, and free those lists.
10397         
10398         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
10399         gtk_rc_init(), since that adds the default styles
10400         to the list of parsed RC files again.
10401
10402         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
10403         
10404 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
10405
10406         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
10407         checks that ensure that a widget's allocation is at least 1 in width
10408         and height. (GNOME note: this doesn't affect old panel code anymore,
10409         because GtkSocket will request width and height of at least 1 since
10410         Fri Jul 23).
10411
10412         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
10413         allocated yet (happens if the user realizes the window prematurely),
10414         size request and allocate it.
10415         (gtk_window_size_allocate): guard against guint underflows.
10416
10417 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
10418
10419         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
10420         in gtk_built_sources, so gtk.defs gets built prior to all other
10421         sources.
10422
10423 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
10424
10425         * gtk/Makefile.am:
10426         invoke indent on gtkmarshal.*. 
10427         rewrote source generation rules, use COPYING as oldest source tag for
10428         a piggyback rule to generate all sources from (don't touch it ;).
10429         major cleanups, strip spaces on build rules for GNU Make.
10430
10431         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
10432         source and target files from commandline arguments. don't invoke indent.
10433
10434 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
10435
10436         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
10437         notebook after switch to avoid drawing problems.
10438         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
10439         
10440         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
10441         show them instead. 
10442         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
10443
10444 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
10445
10446         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
10447         notebook after switch to avoid drawing problems.
10448         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
10449         
10450         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
10451         show them instead. 
10452         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
10453
10454 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
10455
10456         * gtk/gtkwindow.c:
10457         we use window->need_resize from configure_event now, to indicate that
10458         the gtkwindow should keep its allocation (e.g. because the user resized
10459         the window through window manager handles). resize_count is now reliably
10460         used to figure whether we got the allocation we requested from the
10461         window manager.
10462         configure events get queued as resizes now, the real stuff (size
10463         computation and allocation) now only goes on in gtk_window_move_resize().
10464         GtkWindow's requisition now contains its *real* requisition (like all
10465         other widgets), *not* taking usize into account.
10466         geometry_info->last_{width|height} is now updated from set_hints() only
10467         so it always contains the last hints we set for the window manager.
10468         made some event handlers return TRUE instead of FALSE.
10469         the overall code should be much more straight forward now, and the
10470         significant code portions are accompanied by comments now.
10471         (gtk_window_set_hints):
10472         removed requisition argument and made it
10473         fetch the requisition through gtk_widget_get_child_requisition.
10474         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
10475         does that now.
10476         (gtk_window_show):
10477         ensure that the widget is realized before calling 
10478         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
10479         ensure that we got properly size requested and allocated before
10480         realization.
10481         (gtk_window_configure_event):
10482         ignore plain window moves, or reallocate the widget tree through the
10483         resize queue otherwise.
10484         (gtk_window_move_resize):
10485         mostly rewrote this function to figure window manager hints more
10486         reliably, coalesce window moves and resizes to reduce configure events
10487         and do actuall size allocations.
10488
10489 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
10490
10491         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
10492         that have a resize pending, because a redraw is already queued for them.
10493
10494         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
10495         hack to clear resize_widgets.
10496
10497         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
10498         for resize containers prior to size allocation. (this is also a bit
10499         ugly, but avoids side effects for stopped emissions and is thus more
10500         reliable).
10501         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
10502
10503         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
10504         function from gtk_tooltips_expose, as we connect to ::expose_event
10505         *and* ::draw now.
10506
10507 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
10508
10509         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
10510         checks.
10511         (gtk_target_list_unref): Likewise.
10512
10513         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
10514
10515 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
10516
10517         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
10518         guard against division by zero. (Fixes bug #1339)
10519
10520 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
10521
10522         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
10523         Prevent the trivial leak of information of allowing
10524         word motion when the entry is not visible.
10525
10526 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
10527
10528         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
10529         modality to error dialog as well as confirmation dialogs.
10530         (Bug #1803, reported by Rosanna Wing Sze Yuen)
10531
10532 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
10533
10534         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
10535         tree->view_lines.
10536         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
10537
10538         * gtk/Makefile.am (install-data-local): Solaris apparently
10539         has various troubles with ln -f; use rm first instead.
10540         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
10541
10542 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
10543
10544         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
10545         use `cp' followed by `rm' (the `rm' was already there).
10546
10547 July 30, 1999 Elliot Lee <sopwith@redhat.com>
10548         
10549         * configure.in: Fix autoconf warnings about cross compilation by
10550         trying to provide sane defaults for AC_TRY_RUN.
10551         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
10552         put them into $(srcdir) when generated. Also add a dependency of
10553         gtksignal.h on gtkmarshal.h for -j builds. 
10554         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
10555
10556 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
10557
10558         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
10559         GDK_THREADS_{LEAVE,ENTER} pair.
10560         (From Paul Fisher <pnfisher@redhat.com>)
10561
10562 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
10563
10564         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
10565         width and height are always >0 (owen).
10566
10567 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
10568
10569         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
10570         change that assured that a widget's allocated with and height are
10571         always >1, since this breaks *buggy* panel code. unfortunately this
10572         back-breaks the gimp's color selector.
10573
10574         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
10575         allocation is always >0 in width and height, before sending the
10576         configure event; this is a *gross* hack to get the gimp back to work.
10577         
10578         * marked both cases with TODO-1.3
10579
10580 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
10581
10582         * gtk/gtktext.c: Don't display wrap indicators when
10583         text is not editable and word wrap is on.
10584
10585 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
10586
10587         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
10588         option menus here as they are not derived from menu shell, assure that
10589         the option menu has a menu we can add items to.
10590
10591 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
10592
10593         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
10594         width/height to (gint) before calculations and check against < 0 to
10595         avoid guint wraparounds.
10596
10597 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
10598
10599         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
10600         width and height is never zero. sanity check both dimensions against
10601         32767 and issue a warning if the allocation is greater than that.
10602
10603 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
10604
10605         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
10606         to g_main_pending() as well.
10607
10608 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
10609
10610         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
10611         call to g_main_iteration() - since that will regrab
10612         GTK+ lock to process events.
10613
10614 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
10615
10616         * gtk/gtkwindow.c
10617         - Regularize with the rest of GTK+ by making widget->requisition
10618           not reflect the set_usize()
10619         - Always recompute geometry hints, then check if they
10620           changed before sending them to the X server. The
10621           previous checks for changes would fail in a number
10622           of circumstances. 
10623
10624 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
10625
10626         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
10627
10628 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
10629
10630         * gtk/gtkdnd.c:
10631         - Code cleanups
10632         - Instantaneously update on modifier key presses
10633         - Allow cancellation of the drag with Escape.
10634
10635 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
10636
10637         * gtk/testgtk.c (create_handle_box): Set the policy
10638         to auto_shrink - otherwise the appearance is rather
10639         strange when flipping between horizontal and vertical.
10640
10641 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
10642
10643         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
10644         (gtk_window_set_default_size): don't change a value if it's < 0.
10645         queue a resize.
10646
10647 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
10648
10649         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
10650
10651 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
10652
10653         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
10654         add an extra "/" when concating "/" + filename.
10655         (From Matt Grossman <mattg@oz.net>)
10656
10657 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
10658
10659         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
10660         for fg_gc if we set it for drawing pixmap.
10661
10662 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
10663
10664         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
10665         
10666         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
10667         already set, call old engine's destroy function and
10668         unref the old engine.
10669
10670 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
10671
10672         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
10673
10674 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
10675
10676         * gtk/gtkaccelgroup.h: mark certain functions as internal.
10677
10678 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
10679
10680         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
10681         expand behaviour changed.
10682
10683         * gtk/gtklabel.c (gtk_label_set_pattern):
10684         (gtk_label_set_justify):
10685         (gtk_label_set_line_wrap):
10686         don't bother invoking queue_clear, the reallocation does
10687         that for us, always free_words so the upcoming resize will
10688         relayout the label's contents.
10689
10690 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
10691
10692         * applied argument implementation patches from Elena Devdariani
10693         <elena@cogent.ca>.
10694
10695         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
10696         ::space_style, ::relief
10697         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
10698         * gtk/gtkpreview.c: ::expand
10699         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
10700         * gtk/gtknotebook.c: ::homogeneous
10701         * gtk/gtklabel.c: ::wrap
10702         * gtk/gtklist.c: ::selection_mode
10703         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
10704         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
10705         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
10706         * gtk/gtkclist.c: ::sort_type
10707         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
10708         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
10709
10710 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
10711
10712         * gtk/gtkstyle.c: Removed ill-thought-out part of last
10713         comment.
10714
10715 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
10716
10717         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
10718         counting right when we have to attach a new style
10719         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
10720
10721         * gtk/gtkstyle.c: Documented the refcounting
10722         peculularities of gtk_style_attach.
10723
10724 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
10725
10726         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
10727         window types.
10728
10729         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
10730         of GTK_TOPLEVEL for creating the window.
10731
10732 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
10733
10734         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
10735         the last argument (reported by Per Winkvist).
10736         
10737 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
10738
10739         Fixes for invisible XOR lines (Frank Loemker
10740         <floemker@TechFak.Uni-Bielefeld.DE>)
10741         
10742         * gtk/gtkclist.c (gtk_clist_realize): Always use
10743         a non-zero pixel for GDK_XOR.
10744
10745         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
10746         Use GDK_INVERT instead of GDK_XOR.
10747
10748 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
10749
10750         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
10751         signals if h/voffsets differ from adjustment values.
10752         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
10753
10754 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
10755
10756         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
10757         ::selection-done emissions up to the topmost menu shell.
10758
10759 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
10760
10761         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
10762         the user data on the window before destroying it.
10763
10764         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
10765         unrealize handler to take care of destroying 
10766         notebook->panel properly. 
10767         (Bug #1198 - Morten Welinder <terra@diku.dk>)
10768
10769         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
10770         of g_new and g_realloc to stop memory leak. (Actually,
10771         we could just use g_realloc(), but I'm not 100% sure
10772         that is portable).
10773         (Bug #1196 - Morten Welinder <terra@diku.dk>)
10774
10775 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
10776
10777         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
10778
10779         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
10780         for fontsets.
10781
10782         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
10783         with bin/button confusion.
10784
10785 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
10786
10787         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
10788         and show how preselection of radio items is done.
10789
10790 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
10791
10792         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
10793         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
10794         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
10795         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
10796         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
10797         * gtk/gtktable.c (gtk_table_attach): 
10798         * gtk/gtklist.c (gtk_list_insert_items): 
10799         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
10800         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
10801         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
10802         * gtk/gtkbin.c (gtk_bin_add): 
10803         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
10804         * gtk/gtkfixed.c (gtk_fixed_put): 
10805         * gtk/gtklayout.c (gtk_layout_put):
10806         general fixups to container_add logic. always realize child if
10807         child->parent is realized, only map the child and queue a resize
10808         if child and child->parent are both visible.
10809
10810 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
10811
10812         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
10813         instead of gtk_container_foreach to walk and unrealize children, so
10814         composite children get also unrealized.
10815         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
10816         (gtk_widget_map): assert that the widget is visible (basic constrain).
10817         (gtk_widget_real_map): assert that the widget is realized (basic
10818         constrain).
10819
10820 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
10821
10822         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
10823
10824 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
10825
10826         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
10827         file for iso-8859-2 locales.
10828
10829         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
10830
10831 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
10832
10833         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
10834          (Pointed out by andy@rz.uni-karlsruhe.de and others).
10835          Remove some suspicious and useless lines. 
10836
10837 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
10838
10839         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
10840         width,height = 0, 0 to mean - here to edge of window,
10841         instead of -1, -1, since the former is all we support.
10842
10843 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
10844
10845         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
10846         when removing from quit_functions list.
10847
10848 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
10849
10850         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
10851
10852 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
10853
10854         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
10855          When redrawing characters on non-visible entry, use appropriate
10856          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
10857
10858 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
10859
10860         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
10861         from drag coordinates.
10862         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
10863         use drag_dest_cell.
10864
10865         * gtk/gtktree (drag_dest_cell)
10866         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
10867         (Bug #1129)
10868
10869 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
10870
10871         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
10872         translate_* fields.
10873         (gtk_item_factory_finalize): invoke translate_notify independant from
10874         translate_data.
10875         (gtk_item_factory_set_translate_func): likewise.
10876         (gtk_item_factory_destroy): only remove ifactory pointer from those
10877         widgets that belong to us (stupid me).
10878
10879 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
10880
10881         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
10882         rc_style list when lookup succeeeds.
10883
10884 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
10885
10886         * gtk/gtkctree.c (resync_selection): 
10887         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
10888         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
10889         bug.
10890
10891 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
10892
10893         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
10894         Add some missing GDK_THREADS_ENTER()/LEAVE around
10895         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
10896
10897 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
10898
10899         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
10900         rather than emit_by_name.
10901
10902         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
10903         on the widget across multiple signal emissions.
10904         (gtk_editable_delete_text): same here.
10905         (gtk_editable_class_init): set widget_class->activate_signal after
10906         editable_signals[ACTIVATE] has been created.
10907
10908 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
10909
10910         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
10911         position here prematurely -- we might not have the
10912         right ->min_position and ->max_position yet.
10913
10914 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
10915
10916         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
10917         Add error traps so if the other end of the connection
10918         dies, we survive.
10919
10920         * gtk/gtkselection.c (gtk_selection_notify): Clean
10921         up properly when selection property retrieval fails.
10922         
10923         * gtk/gtkselection.c (gtk_selection_request): Correctly
10924         reject SelectionRequest notifies where the handler
10925         returns no data.
10926
10927 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
10928
10929         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
10930         when we've previously highlighted.
10931
10932         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
10933         emit two "drag_leave" signals for Motif drops.
10934
10935         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
10936         back the correct status messages when dropping from
10937         Motif onto a proxy window that is rejecting the
10938         drop.
10939
10940 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
10941
10942         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
10943         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
10944         to compare two argument values. added gtk_arg_to_valueloc() to set a
10945         variable from an arg through its location (pointer).
10946
10947         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
10948         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
10949         as gfloat*, uchars are collected as guchar*, ints are collected as
10950         gint*, etc...
10951
10952 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
10953
10954         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
10955         Include <string.h> instead of <strings.h>.
10956
10957         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
10958         (actually, a lot more duplicate includes occur if
10959          you trace through the sequence of #include's)
10960         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
10961         
10962 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
10963
10964         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
10965         gtk-a-higuti-990322-[0-3]
10966
10967         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
10968         that was causing -DX_LOCALE not to work.
10969
10970         * gtk/gtkrc.c (gtk_rc_init):
10971         X_LOCALE will never have LC_MESSAGES defined
10972
10973 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
10974
10975         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
10976         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
10977
10978         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
10979         left/right as well (gtk-michael-980726-0.patch.gz).
10980
10981         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
10982         for pointer values, use gchar instead of char. fixed uline allocation
10983         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
10984         chunks instead of G_ALLOC_ONLY.
10985         (gtk_label_size_request): always alter requisition as passed and leave
10986         widget->requisition alone.
10987         (gtk_label_set_text): allow NULL strings.
10988         (gtk_label_new): likewise.
10989
10990 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
10991
10992         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
10993
10994 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
10995
10996         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
10997         *and* mapped (i.e. drawable).
10998         (gtk_bin_expose): only send exposes to drawable children.
10999
11000         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
11001         (gtk_box_expose): only send exposes to drawable children.
11002
11003         * gtk/gtkhscale.c (gtk_hscale_draw): 
11004         * gtk/gtkvscale.c (gtk_vscale_draw):
11005         hm, this is an ugly one. we first compute the size of our trough area
11006         here (window relative) and then check intersection with the draw_area
11007         which is parent relative because we're a NO_WINDOW widget, so we need
11008         to offset the trough area by allocation.x and allocation.y before the
11009         check. (this must not be done for the background area though, since
11010         that's already computed parent relative).
11011
11012 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
11013
11014         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
11015         unrealize title buttons.
11016
11017 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
11018
11019         * gtk/gtkclist.c (gtk_clist_column_title_passive)
11020         (gtk_clist_column_title_active): 
11021         only connect/disconnect to GtkWidgetClass::event to block mouse events.
11022
11023         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
11024         zero initialize event, removed superfluous gdk_window_get_pointer call
11025
11026         * gtk/gtklist.c (gtk_list_vertical_timeout)
11027         (gtk_list_horizontal_timeout): removed superfluous
11028         gdk_window_get_pointer call
11029
11030 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
11031
11032         * plugging problems reported by "Bruce Mitchener, Jr."
11033         <bruce@puremagic.com> due to a purify session.
11034
11035         * gtk/gtkstyle.c:
11036         (gtk_style_ref): 
11037         (gtk_style_unref): assert ref_count to be > 0.
11038
11039         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
11040         the requisition.
11041         (gtk_clist_set_shift): likewise.
11042
11043         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
11044         adjustments.
11045
11046         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
11047         event before sending it and set send_event to TRUE (which needs to
11048         be done for *all* synthesized events).
11049         (gtk_list_vertical_timeout): likewise.
11050
11051         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
11052         leaks.
11053
11054         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
11055         to TRUE when synthesizing events.
11056
11057 [ *** end of merges from 1.2 *** ]      
11058         
11059 1999-11-21  Tor Lillqvist  <tml@iki.fi>
11060
11061         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
11062         (or copied from gdkconfig.h.win32 on Win32, sigh).
11063
11064         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
11065
11066         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
11067
11068         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
11069
11070         * gdk/gdkconfig.h.win32: New file.
11071
11072         * gdk/win32/makefile.cygwin: Build just a static archive here.
11073
11074         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
11075         for the DLL from the static archive built above.
11076
11077         * gdk/gdk.def: Moved here from the win32 subdirectory.
11078
11079         * gdk/win32/*: Adapt for the changed private struct organisation.
11080
11081         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
11082
11083 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
11084
11085         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
11086         for wheel mice (buttons 4 and 5).
11087
11088 1999-11-18  Tor Lillqvist  <tml@iki.fi>
11089
11090         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
11091         drawables use just the pixel field in the foreground and
11092         background GdkColor of the GdkGC.
11093
11094         gdk_gc_set_{fore,back}ground() are called in the GIMP with
11095         GdkColors containing uninitialized (red,green,blue) fields, and
11096         just the pixel field filled in, and furthermore in the
11097         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
11098         It thus turns out that we really don't need to have the full
11099         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
11100         it later to have just the pixel values.
11101
11102 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
11103
11104         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
11105
11106 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
11107
11108         * docs/gtkfaq.sgml: threads example from Erik Mouw.
11109         New question on GtkLabel background colors.
11110
11111         * docs/gtk_tut.sgml:
11112           - Correct the example code callback
11113             function definitions.
11114           - Update the gtkdial example code, from Frans van Schaik.
11115           - Update setselection.c to current API.
11116
11117         * examples/Makefile examples/*/*.c: Update to code
11118         listed in tutorial.
11119
11120 1999-11-10  Tor Lillqvist  <tml@iki.fi>
11121
11122         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
11123         subrange table (from the "Developing International Software for
11124         WIndows 95 and Windows NT" book) was missing the Hangul syllable
11125         block... Get the loaded font's charset correctly.
11126
11127         (Note that this, and the other *-win32.c files, still really are
11128         the old ones, the win32 subdirectory is not ready for compilation
11129         yet after the reorg.)
11130
11131 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
11132
11133         * gtk/gtkclist.c: Fix off-by-one bug in parameter
11134         check.
11135
11136 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
11137
11138         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
11139         on results of XQueryDeviceState().
11140
11141 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
11142
11143         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
11144         we need to accesss only ->children. We need an accessor
11145         for the children.
11146
11147         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
11148         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
11149         to get rid of gdkx.h include.
11150         
11151         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
11152         and random references to 'None'.
11153
11154         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
11155         Get rid of unused #include <gdk/gdkx.h>
11156
11157         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
11158         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
11159         gdkconfig.h.
11160
11161 1999-11-08  Tor Lillqvist  <tml@iki.fi>
11162
11163         * gdk/win32/gdkdraw.c
11164         * gdk/win32/gdkfont.c
11165         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
11166         following yesterday's changes. (Unrelated to Owen's reorg.)
11167
11168 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
11169
11170         * gdk/x11/gdkinput-gxi.c: Add missing include,
11171           fix GdkWindowPrivate => GdkDrawablePrivate.
11172
11173         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
11174
11175         * gdk/x11/Makefile.am (xinput_sources): Add missing
11176         backslash to fix building with --with-xinput=none
11177
11178 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
11179
11180         Move all X specific code into the x11/ directory.
11181         Aside from shuffling things around, did the following:
11182
11183        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
11184          gdk_arg_context_* - a simple argument parsing system
11185          in the style of popt.
11186
11187        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
11188          gdk/x11/gdkprivate-x11.h:
11189          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
11190          add ->klass and ->klass_data fields. The klass_data
11191          field points to an auxilliary structure that is
11192          windowing system dependent.
11193
11194        * gdk/gdkfont.c: Make most of the measurement functions
11195          simply wrappers around gdk_text_extents().
11196
11197        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
11198          _gdk_font_strlen() function that hides the weird
11199          behavior in gtk+-1.[02] where a string is interpreted
11200          differently for 8-bit and 16-bit fonts.
11201
11202        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
11203          to store common code for synthesizing double/triple
11204          press events.
11205         
11206        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
11207          Make all the function that modify an existing GC
11208          simply wrappers around gdk_gc_set_values().
11209          
11210        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
11211          for throwing out later.
11212
11213        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
11214          GdkImagePrivate and GdkColormapPrivate to have a
11215          windowing system dependent part (GdkFontPrivateX etc.)
11216          that "derives" from the system-independent part.
11217
11218        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
11219          Got rid of the included-source-files for XInput in
11220          favor of automake conditionals. (Which didn't exist
11221          when XInput support was originally added.)
11222
11223        * gdk/gdkrgb.c: Remove the visual id from the debugging
11224          statements since that is X11 specific; print out
11225          type/depth info instead.
11226          
11227
11228 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
11229
11230         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
11231         loading duplicates of hashed fonts.
11232
11233         * gdk/gdk.c (gdk_keysym_convert_case): rename
11234         gdk_XConvertCase to gdk_keysym_convert_case, allow
11235         results to be NULL in the GTK+ style.
11236
11237         * gdk/gdkcompat.h: Started compatibility header
11238         for renames.
11239
11240 1999-11-07  Tor Lillqvist  <tml@iki.fi>
11241
11242         * gdk/win32/gdkprivate.h: New font private structures, related to
11243         fontsets.
11244
11245         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
11246         gdk_font_list_free(). On X11, will just be wrappers to
11247         XListFonts() and XFreeFontNames(). On Win32, the code previously
11248         in gtkfontsel.c is now here.
11249
11250         New function gdk_font_xlfd_create(). On X11 will get the FONT
11251         property of the font (for GDK_FONT_FONTs), or call
11252         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
11253         builds a XLFD style name from the font information in the LOGFONT
11254         struct(s).
11255
11256         New function gdk_font_xlfd_free(), which correspondingly frees the
11257         string returned by gdk_font_xlfd_create().
11258
11259         Implement fontsets on Win32. Add a function that iterates over a
11260         wide char string and calls a callback function for each substring
11261         of wide chars from the same Unicode subrange (and thus probably
11262         available in the same real font).
11263
11264         Improve the XLFD emulation a bit.
11265
11266         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
11267
11268         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
11269         Beta3, WM_IME_CHAR messages don't seem to contain the composed
11270         multi-byte char as with the Active IMM on Win9x. Oh well, handle
11271         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
11272         ImmGetCompositionStringW() to get the composed Unicode chars.
11273
11274         * gdk/win32/gdkgc.c
11275         * gdk/win32/gdkdraw.c: Changes needed because of the font private
11276         struct changes.
11277
11278         * gdk/win32/gdk.def: Add the new functions.
11279
11280 1999-11-04  Tor Lillqvist  <tml@iki.fi>
11281
11282         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
11283         get the Platform SDK to get <dimm.h>.
11284
11285         * gdk/win32/gdkevents.c: More event handling fixes and
11286         simplification. Never generate motion events with is_hint true. We
11287         used to do that on bogus grounds earlier. Windows sends
11288         WM_MOUSEMOVE messages on button events even if the mouse hasn't
11289         moved, ignore these.
11290
11291         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
11292
11293         * gdk/win32/gdkglobals.c
11294         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
11295         the TrackMouseEvent function, and use it.
11296
11297         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
11298         char before calling WideCharToMultiByte in order to get a string
11299         for the window title.
11300
11301         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
11302
11303         * gdk/win32/gdk.def: Remove obsolete functions.
11304
11305         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
11306         /nodefaultlib and /defaultlib switches.
11307
11308         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
11309
11310 1999-10-31  Tor Lillqvist  <tml@iki.fi>
11311
11312         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
11313         EuroSign).
11314
11315         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
11316         same type as GdkWChar, especially on Win32.
11317
11318         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
11319
11320         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
11321         before passing to Windows GDI for drawing etc. Convert to the
11322         system default codepage before passing to Windows as window
11323         titles.
11324
11325         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
11326         support changing input locale on the fly.
11327
11328         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
11329         on-the-fly changes. Convert incoming characters from the current
11330         codepage to Unicode (and then to a UTF-8 multi-byte string) based
11331         on the current input language. Use keysym<->Unicode mapping tables
11332         and functions borrowed from xterm sources.
11333
11334         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
11335         editions of Win9x, use the ActiveX-based Active IMM (Input Method
11336         Manager) if available. IMEs and the Active IMM are available under
11337         the disguise of Chinese, Korean and Japanese support for IE and
11338         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
11339         support is present in all editions (as long as you install it).
11340
11341         Call DispatchMessage from gdk_events_queue() (and thus
11342         gdk_WindowProc()), instead of duplicating the code in
11343         gdk_WindowProc().
11344
11345         Reworked the grab handling and propagation code, factored out
11346         duplicated code snippets into separate functions. Other cleanups,
11347         too.
11348
11349         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
11350         the <dimm.h> header describing the Active IMM.
11351
11352         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
11353         just do the same as for "single" fonts.
11354
11355         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
11356         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
11357         the new keysyms from gdkkeysyms.h.
11358
11359         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
11360         fontset, so that gtkentry uses wide characters.
11361
11362         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
11363         GTk+'s system directory "gtk+", not "gtk".
11364
11365 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
11366
11367         * docs/gtkfaq.sgml: FAQ update
11368
11369 1999-10-21  Tor Lillqvist  <tml@iki.fi>
11370
11371         * gdk/win32/gdkprivate.h: Add more font private data.
11372
11373         * gdk/win32/gdkfont.c
11374         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
11375         fonts and strings. Now works much better. You still have to
11376         have a correct font selected, though. No fontset emulation yet.
11377
11378 1999-10-19  Tor Lillqvist  <tml@iki.fi>
11379
11380         * gtk/maketypes.awk: Use G_OS_WIN32.
11381
11382         * gtk/gtk.def: Add some missing entry points. Also some non-public
11383         ones, but PyGTK porter claims to need them.
11384
11385         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
11386         built-in type generation.
11387
11388 1999-10-14  Tor Lillqvist  <tml@iki.fi>
11389
11390         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
11391         GDK_FONT_FONT fonts (which is all we have for now, we don't
11392         emulate fontsets). The X11 version uses plain XDrawString in that
11393         case, too. The string passed to gdk_draw_text_wc seems to be in
11394         fact (at least, when used by gtkentry and gtktext) either in a
11395         single-byte charset, or a DBCS. Not Unicode.
11396
11397         This fixes the problem in gtkfontsel, where even if you had
11398         selected a font with a non-Latin1 charset (windows-greek, for
11399         instance), the preview still used Latin-1 glyphs.
11400
11401         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
11402         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
11403         (gdk_font_load): Recognize the demibold etc weights, even if we
11404         don't have the corresponding constants in the headers.
11405         (gdk_font_hash_insert): Use same hash mechanism as in the X11
11406         version. Should save font resources a bit, when we don't have
11407         multiple HFONTs for the same font.
11408
11409         * gdk/win32/gdkprivate.h: Add the names field as in the X11
11410         version.
11411
11412 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
11413
11414         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
11415         X values
11416
11417 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
11418
11419         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
11420         layout support (as mentioned on
11421         http://www.jcinteractive.com/gnome-ui/software/widgets/)
11422
11423 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
11424
11425         * gtk/fnmatch.c
11426         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
11427
11428 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
11429
11430         * configure.in (ALL_LINGUAS): Added Galician (gl)
11431
11432 1999-10-05  Tor Lillqvist  <tml@iki.fi>
11433
11434         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
11435
11436         * gdk/win32/gdkcompat.c: New file, actually provide an
11437         implementation for the deprecated functions. (Just temporarily.)
11438
11439         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
11440
11441         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
11442
11443         * gdk/win32/gdk.def gtk/gtk.def: Updates.
11444
11445 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
11446
11447         * configure.in: Added "uk" to ALL_LINGUAS.
11448         
11449 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
11450
11451         * configure.in: correct checking for BeOS check
11452
11453         * gdk/gdktypes.h
11454         * gtk/fnmatch.c
11455         * gtk/gtkfilesel.c
11456         * gtk/gtkitemfactory.c
11457         * gtk/gtkmain.[ch]
11458         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
11459
11460 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
11461
11462         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
11463         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
11464         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
11465         by Bulgarian). 
11466
11467 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
11468
11469         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
11470         Fix a reference to window_private->destroyed.   
11471
11472         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
11473         (ugly) setting of an internal GdkWindow member to use
11474         a _slightly_ cleaner macro.
11475
11476         * gdk/gdkprivate.h: Split GdkWindowPrivate into
11477         GdkDrawablePrivate and GdkWindowPrivate.
11478         Add extra macros for accessing GDK_DRAWABLE_ components.
11479
11480         * *.[ch]: Massive adjustments for the above, use the
11481         new macros in a lot of places.
11482
11483 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
11484
11485         * gdk/gdktypes.h: Make GdkDrawable the base type,
11486         not GdkWindow.
11487
11488 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
11489
11490         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
11491
11492 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
11493
11494         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
11495
11496 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
11497
11498         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
11499         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
11500
11501         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
11502
11503         * docs/gtk-config.1: Now autogenerated.
11504         * docs/Changes-1.4.txt: started
11505         
11506 1999-10-03  Tor Lillqvist  <tml@iki.fi>
11507
11508         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
11509         to #ifdef also here.
11510
11511         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
11512         Owen did to the X11 backend.
11513
11514         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
11515         ScrollWindowEx when blitting inside a window, it can't be correct
11516         in the general case.
11517
11518         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
11519         WM_GETMINMAXINFO is easier.
11520
11521         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
11522         depth equal to the bitspixel value, not the visual's depth.
11523
11524         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
11525         to 24 even if the bitspixel value is 32.
11526
11527         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
11528         need to check for depth==32 when bpp==32, depth will always be 24.
11529
11530 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
11531
11532         * docs/Changes-1.4.txt: Started
11533         
11534         * gtk/Makefile.am (gdk_headers): Include all the new headers.
11535
11536         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
11537         
11538         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
11539         into C file.
11540         
11541         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
11542         header to gdkinputprivate.h.
11543
11544         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
11545         unused since before 1.2.
11546
11547 1999-09-30  Tor Lillqvist  <tml@iki.fi>
11548
11549         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
11550         expand possible hex escapes in the font family (put there by
11551         logfont_to_xlfd if the font name isn't a legal XLFD font family,
11552         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
11553         On Win32, add hex escapes here, too.
11554
11555 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
11556
11557         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
11558         to #ifdef GDK_WINDOWING_X11.
11559
11560 [ Merges from gtk-1-2 ]
11561
11562 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
11563
11564         * configure.in: fixed "GNU Make" check to pass with new make version
11565         3.77.95.
11566
11567 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
11568
11569         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
11570         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
11571         AM_PATH_GTK() macros don't get confused by the -pre1.
11572
11573 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
11574
11575         * configure.in (REBUILD): Change check for perl5
11576           to check explicitely for v >= 5.002. (5.001
11577           does not work with our scripts.)
11578
11579 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
11580
11581         * configure.in: evaluate $PERL for the perl version check. added
11582         --disable-rebuilds to give the user an option to completely disable
11583         any source autogeneration rules.
11584
11585 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
11586
11587         * configure.in: evaluate $ac_make when checking for GNU Make.
11588
11589 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
11590
11591         * docs/Makefile.am: added generation.txt.
11592
11593         * Makefile.am: require automake 1.4, build README from README.in and
11594         INSTALL from INSTALL.in in dist-hook.
11595         
11596         * README.in:
11597         * INSTALL.in: new files to autogenerate README and INSTALL from.
11598
11599         * configure.in: figure whether we have GNU Make
11600
11601         * docs/generation.txt: minor additions/corrections.
11602
11603 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
11604
11605         * docs/gtkfaq.sgml: FAQ Update
11606
11607 July 30, 1999 Elliot Lee <sopwith@redhat.com>
11608         
11609         * configure.in: Fix autoconf warnings about cross compilation by
11610         trying to provide sane defaults for AC_TRY_RUN.
11611
11612 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
11613
11614         * ltconfig
11615         * ltmain.sh: upgrade to libtool 1.3.3
11616
11617 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
11618
11619         * INSTALL: Indicate that the --with-glib= configure
11620         time flag is unsupported.
11621
11622 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
11623
11624         * docs/generation.txt: Added a file that gives
11625         documenation about the autogeneration process for
11626         various autogenerated files.
11627         
11628 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
11629
11630         * configure.in (LIBS): Look for libgmodule in the
11631         right location.
11632
11633 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
11634
11635         * docs/gtk_tut.sgml: Removed references to
11636         code examples in my directory on gtk.org as
11637         they should all be in the tutorial now.
11638
11639         * docs/gtk_tut.sgml: Added sources for dial-test
11640         and scribble-xinput programs that were previously
11641         missing.
11642
11643 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
11644
11645         * TODO: Added entry about menu keyboard navigation, removed
11646         some finished items.
11647
11648 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
11649
11650         * acinclude.m4: Standardize on func_dgettext
11651         not func_gettext, so that the checks for dgettext
11652         actually are paid attention to.
11653
11654 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
11655
11656         * configure.in (LIBS): Add $INTLLIBS into $LIBS
11657         directly, rather than repeating the checks for
11658         gettext.
11659
11660         * INSTALL: Added information about gettext and
11661         NLS support.
11662
11663         * acinclude.m4 (LIBM): Check for dgettext, not
11664         just gettext. This should hopefully fix things wrt
11665         systems with old versions of GNU gettext installed.
11666
11667 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
11668
11669         * configure.in (LIBS): Look for libgmodule in the
11670         right location.
11671
11672 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
11673
11674         * autogen.sh: add --enable-maintainer-mode
11675
11676         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
11677
11678 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
11679
11680         * docs/gtk-config.1.in:
11681           docs/Makefile.am:
11682           configure.in: gtk-config is now generated.
11683
11684         * docs/gtk-config.1: Removed, now generated.
11685
11686 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
11687
11688         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
11689         handle CreateNotify itself, still put out a debuging message for
11690         --gdk-debug=events. made the ReparentNotify debugging message more
11691         verbose.
11692         wrap xcoords translation for ConfigureEvents into an error trap,
11693         a destroy event may already be pending, and in that case, the
11694         actuall coordinate values are not at all critical.
11695
11696 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
11697
11698         * gdk/gdkcc.c: Stop leaking the color_hash all over
11699         the place. Simplify and improve the logic.
11700
11701 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
11702
11703         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
11704         for prototypes and function implementations consistent (reported
11705         by Tomas Ogren).
11706
11707 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
11708
11709         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
11710         send_event set in debugging output.
11711         (gdk_compress_exposures): default initialize the event so we don't
11712         operate on bogus values (namely send_event).
11713
11714 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
11715
11716         * gdk/gdkwindow.c: When we receive an unexpected
11717         destroy notify on one of our windows, don't just
11718         warn about it, also mark our windows as destroyed.
11719
11720 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
11721
11722         * gdk/gdkfont.c (gdk_font_hash_insert): Add
11723           name => font and name => fontset hashes. The 
11724           name => fontset hash is a _big_ win since we
11725           weren't previously caching fontsets at all and loading
11726           fontsets is expensive. The name => font hash
11727           is less of a win, but it does save us from doing
11728           repeated XQueryFont calls on the same font.
11729
11730         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
11731           list so we can remove font/fontset from hash.
11732
11733 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
11734
11735         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
11736           and slightly confusing test. [ XInternAtom (,,TRUE)
11737           will never return None ].
11738
11739 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
11740
11741         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
11742           gdk/gdkwindow.c (gdk_window_set_hints):
11743
11744         Don't omit setting the properties if flags == 0 -
11745         there may be an existing set of properties there
11746         already. (Very old bug. Would it be better to
11747         delete the property instead?)
11748
11749         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
11750           spelling error in comment.
11751
11752 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
11753
11754         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
11755           to avoid stomping over gdk_error_warnings.
11756
11757         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
11758           as (bits_per_pixel + 7) / 8. This gives the same
11759           result as before for multiples of 8, but actually
11760           a "reasonable" value for 1bit or 4bit displays.
11761
11762 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
11763
11764         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
11765         GNU Make.
11766
11767 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
11768
11769         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
11770         discarding configure events.
11771
11772 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
11773
11774         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
11775         refcount is greater than zero.
11776
11777         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
11778
11779         * gdk/gdkfont.c (gdk_font_unref): Likewise.
11780
11781         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
11782
11783         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
11784
11785 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
11786
11787         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
11788         that format 32 => sizeof(item) == 4. It really is
11789         sizeof(long).
11790
11791 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
11792
11793         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
11794         core dump at all on X IO errors, only core dump
11795         if --enable-debug for X errors.
11796
11797 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
11798
11799         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
11800         unknown window:" message. disabled ConfigureNotify discarding code,
11801         because it led to events being processed out of order.
11802
11803 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
11804
11805         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
11806
11807         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
11808         we export this function, supress error warnings and don't reset the
11809         error code in the first half of this function.
11810
11811         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
11812         code (instead of just -1) so gdk_error_trap_pop() reveals something
11813         actually informative about the error that happened.
11814
11815         * gdk/*.c:
11816         don't rely on gdk_error_code being -1 if an error occoured, but just
11817         gdk_error_code != 0.
11818
11819 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
11820
11821         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
11822         pointer *before* invoking the filter function, so we at least don't
11823         crash if a filter is removed that is currently executed. window filters
11824         *really* need to be made truely reentrant at some point.
11825
11826 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
11827
11828         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
11829         PropertyNotify debug messages.
11830
11831 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
11832         
11833         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
11834         
11835         * gdk/gdkim.c: Fix cut-and-paste errors for 
11836         x/y and PreeditAttributes/StatusAttributes.
11837
11838 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
11839
11840         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
11841         G_MAXINT to 2^16 to alleviate overflow problems in
11842         various window managers.
11843
11844 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
11845
11846         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
11847         for fontsets.
11848
11849 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
11850
11851         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
11852         Initialize size_hints.x and size_hints.y because kwm
11853         brokenly pays attention to them.
11854         (Bug #1181 -  Lars Heete <hel@admin.de>)
11855
11856 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
11857
11858         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
11859         return value of gdk_list_visuals(). 
11860         (Bug #1193 - Morten Welinder <terra@diku.dk>)
11861
11862 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
11863
11864         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
11865         XSetIMValues to (void *) when comparing to NULL, to workaround
11866         the problem of some compilers barfing since older X headers don't
11867         have the prototype for it.
11868
11869 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
11870
11871         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
11872         for pseudocolor where colormap->colors was double
11873         allocated.
11874
11875         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
11876         color value in the hash table with the pixel filled
11877         in so when we do later hash table lookups, the color
11878         value is correct.
11879         
11880 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
11881
11882         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
11883         making the call
11884
11885 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
11886
11887         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
11888         pointed out by Morten Welinder <terra@diku.dk>.
11889
11890 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
11891
11892         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
11893           default filter from the list
11894
11895 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
11896
11897         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
11898           default filter from the list
11899
11900 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
11901
11902         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
11903
11904         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
11905         g_strdup_printf instead of calcing the length separately
11906
11907 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
11908
11909         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
11910         that we don't do in many other places. (Fixing duplicate 
11911         #include of config.h)
11912
11913         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
11914         Otherwise, #ifndef XINPUT_NONE check in the latter
11915         doesn't work. (Bug #546)
11916
11917 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
11918
11919         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
11920         "None" case insensitive.
11921
11922 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
11923
11924         * gdk/gdkselection.c: 
11925         Add error traps so if the other end of the connection
11926         dies, we survive.
11927
11928 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
11929
11930         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
11931         dest_xid field into two fields - one for the window
11932         to send in messages, one to indicate the last looked
11933         up window for caching purposes. This is needed, so
11934         that Leave messages get the correct window.
11935
11936 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
11937
11938         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
11939         Fix warning created by people mucking around
11940         with the gsource API.
11941
11942         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
11943         Change mapping between GIOCondition and GdkInputCondition
11944         to match the way the Linux kernel does it. This should
11945         fix problems where closed pipes were no longer signalling
11946         GDK_INPUT_READ on systems with a native poll().
11947
11948 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
11949
11950         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
11951         explicitly for the string "None" - it is in the XPM
11952         spec and some servers treat unknown colors in odd ways
11953         (like asking the user!)
11954
11955 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
11956
11957         * gdk/gdkevents.c: made "->" into a "." of previous change so
11958         it compiles
11959
11960 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
11961
11962         * gdk/gdkevents.c (gdk_compress_exposures): Set the
11963         window field of the event structure before calling
11964         user filters.
11965
11966 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
11967
11968         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
11969         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
11970
11971 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
11972
11973         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
11974         intermediate text property - prevents major memory
11975         leak when gdk_use_mb.
11976         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
11977
11978 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
11979
11980         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
11981         gtk-a-higuti-990322-[0-3]
11982
11983         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
11984         sizeof(wchar_t) != sizeof (GdkWChar)
11985
11986         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
11987         that was causing -DX_LOCALE not to work.
11988
11989         * gtk/gtkrc.c (gtk_rc_init):
11990         X_LOCALE will never have LC_MESSAGES defined
11991
11992         * gdk/gdk.c (gdk_init_check):
11993         Remove --xim-preedit and --xim-status from argv properly.
11994
11995         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
11996         that the client window is present on the X server
11997         before we pass it to the input method.
11998
11999 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
12000
12001         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
12002         if --display is specified on the command line, than
12003         the drag window will not be created on that display.
12004         
12005 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
12006
12007         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
12008         lookups with only_if_exists == TRUE were inserting
12009         bogus values into the atom cache.
12010
12011 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
12012
12013         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
12014         then reset it to NULL.
12015
12016         * gdk/gdkcolor.c:
12017         (gdk_colors_free): 
12018         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
12019         key for g_hash_table_remove() in both functions, this prevents us
12020         from accessing possibly uninitialized portions of a GdkColor structure
12021         where we are only interested in its pixel value.
12022
12023 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
12024
12025         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
12026         font hash table, if we have a GdkFontPrivate entry for this font
12027         already, simply increment its reference count, provided by Olaf Dietsche
12028         <olaf.dietsche+list.gtk@netcologne.de>.
12029
12030 1999-09-21  Tor Lillqvist  <tml@iki.fi>
12031
12032         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
12033         just to be sure.
12034
12035         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
12036         unused variables, leftovers from the X11 version.
12037
12038         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
12039
12040         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
12041         downcase fields on X11.
12042
12043 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
12044         
12045         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
12046         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
12047
12048 1999-09-17  Tor Lillqvist  <tml@iki.fi>
12049
12050         * gdk/win32/gdk.def: Add gdk_threads_mutex.
12051
12052         * gtk/makefile.msc: Correct path to libintl.
12053
12054         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
12055         use of gint vs. int, and gint vs. gboolean in headers and
12056         definitions. Use GtkType for the *_get_type functions. Note that
12057         these changes preserve binary compatibility.
12058
12059         * gdk/gdk.c
12060         * gdk/win32/gdk.c
12061         * gdk/gdk.h: Fix inconsistencies: gint vs int.
12062
12063         * gtk/gtkmain.c
12064         * gtk/gtkclist.c
12065         * gtk/gtkmenufactory.c
12066         * gtk/gtknotebook.c
12067         * gtk/gtkwidget.c: Fix inconsistencies, also gint
12068         vs. gboolean.
12069
12070         * gtk/gtkcolorsel.[ch]
12071         * gtk/gtkcombo.[ch]
12072         * gtk/gtkdrawingarea.[ch]
12073         * gtk/gtkgamma.[ch]
12074         * gtk/gtkhandlebox.[ch]
12075         * gtk/gtkhpaned.[ch]
12076         * gtk/gtkhruler.[ch]
12077         * gtk/gtkplug.[ch]
12078         * gtk/gtkpreview.[ch]
12079         * gtk/gtkruler.[ch]
12080         * gtk/gtksocket.[ch]
12081         * gtk/gtkstatusbar.[ch]
12082         * gtk/gtktoolbar.[ch]
12083         * gtk/gtkvbbox.[ch]
12084         * gtk/gtkvpaned.[ch]
12085         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
12086         functions.
12087
12088         * gtk/gtkgamma.h: Fix bug, missing () in call of
12089         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
12090
12091 1999-09-14  Tor Lillqvist  <tml@iki.fi>
12092
12093         * gdk/gdkcolor.c (gdk_colormap_new)
12094         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
12095         colormap->colors was allocated twice.
12096
12097         * gdk/win32/gdk.c: Remove some unused stuff.
12098
12099         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
12100         colormap.
12101
12102         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
12103         * gtk/gtklabel.h (gtk_label_get_type)
12104         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
12105         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
12106         in a couple of places, not guint.
12107
12108 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
12109
12110         * configure.in,po/et.po: added Estonian language file
12111
12112 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
12113
12114         * configure.in,po/da.po: added Danish file
12115
12116 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
12117
12118         * docs/gtkfaq.sgml: Minor FAQ Update
12119
12120 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
12121
12122         * docs/gtkfaq.sgml: FAQ update
12123
12124 1999-08-27  Tor Lillqvist  <tml@iki.fi>
12125
12126         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
12127         way to get window contents continually refreshed while resizing. I
12128         didn't like the effects myself, so it's not on by default.
12129
12130         * gdk/win32/gdkprivate.h: New flag variable
12131         gdk_event_func_from_window_proc, FALSE by default.
12132
12133         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
12134         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
12135         are passed --gdk-event-func-from-window-proc.
12136
12137         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
12138         and we have am event_func, call it instead of enqueing the event.
12139
12140 1999-08-23  Tor Lillqvist  <tml@iki.fi>
12141
12142         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
12143         Kelley: Set expose_count in GdkEventExposes correctly.
12144
12145         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
12146         MULTIPLE_WINDOW_CLASSES).
12147
12148         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
12149         for bug in NT, apparently NT *does* draw the end pixel, too, in
12150         LineTo with a one-pixel pen, so we don't have to do it ourselves.
12151
12152 1999-08-21  Tor Lillqvist  <tml@iki.fi>
12153
12154         Improvements by Hans Breuer: 
12155
12156         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
12157
12158         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
12159         CS_?REDRAW flags as they cause lots of (late) redraws when "show
12160         window contents while dragging" is turned on. Allocate at least
12161         one unique class for every GdkWindowType. If support for single
12162         window-specific icons is ever needed (eg. Dialog specific), every
12163         such window should get its own class.
12164
12165 1999-08-19  Tor Lillqvist  <tml@iki.fi>
12166
12167         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
12168         error that caused crashes.
12169
12170 1999-08-17  Tor Lillqvist  <tml@iki.fi>
12171
12172         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
12173         window, use ScrollWindowEx, and call UpdateWindow. This prevents
12174         bugs when for instance part of the window was outside the
12175         display. Thanks to Philippe Colantoni for finding and fixing this.
12176
12177 1999-08-16  Tor Lillqvist  <tml@iki.fi>
12178
12179         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
12180         endpoint calculations which were totally wrong. (A little RTFMing
12181         helps a lot ;-)
12182
12183         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
12184         from a separate directory, not from gettext, because of licensing
12185         issues (we want to use the LGPL version).
12186
12187         * README.win32: Mention the intl from glibc vs from gettext issue.
12188
12189 1999-08-13  Tor Lillqvist  <tml@iki.fi>
12190
12191         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
12192         in the key event handling: Now AltGr chars work again. Also,
12193         now Alt-digits are passed up as well as Control-digits.
12194         Pass keypad plus and minus as normal plus and minus.
12195
12196 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
12197
12198         * docs/gtkfaq.sgml: FAQ Update
12199
12200 1999-07-25  Tor Lillqvist  <tml@iki.fi>
12201
12202         * README.win32
12203         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
12204         the Wintab SDK.
12205
12206         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
12207         OK, but getting closer. Guard against bogus tilt data from Wacom
12208         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
12209         enable easier building without Wintab.
12210
12211         * gdk/win32/gdkinput.h
12212         * gdk/win32/gdkevents.c 
12213         * gdk/win32/gdkwindow.c: Minor changes related related to above.
12214         
12215         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
12216         code. As we have just one visual on Win32, no sense to have it in a
12217         table, and no need for the hash table.
12218
12219         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
12220         better on white background.
12221
12222 1999-07-21  Tor Lillqvist  <tml@iki.fi>
12223
12224         * README.win32: Update gcc build instructions. Mention gettext is
12225         GPL.
12226
12227         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
12228         supported cursor size with GetSystemMetrics.
12229
12230         * gdk/win32/gdkfont.c
12231         * gtk/gtkfontsel.c: Guard against some font weight and charset
12232         symbols being undefined (in mingw32 headers).
12233
12234         * gdk/win32/makefile.cygwin
12235         * gtk/makefile.cygwin
12236         * gtk/gtkthemes.c: No longer need to have differently named
12237         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
12238
12239 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
12240
12241         * docs/gtkfaq.sgml: Long awaited FAQ update.
12242
12243 1999-07-15  Tor Lillqvist  <tml@iki.fi>
12244
12245         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
12246         it. Obscure bit manipulation needed.
12247
12248         * gdk/win32/gdkevents.c: Logging.
12249         
12250         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
12251         style (file name include compiler name) for theme engines.
12252
12253 1999-07-13  Tor Lillqvist  <tml@iki.fi>
12254
12255         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
12256
12257         * gdk/win32/gdkevents.c: Fix long-standing bug in key
12258         events. The key.string wasn't zero-terminated, still we strdup'ed
12259         it in gdk_event_copy(). Synthesize crossing events for button
12260         events before possible propagation.
12261
12262         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
12263
12264         * gdk/win32/makefile.cygwin
12265         * gtk/makefile.cygwin: Use new DLL naming style for the
12266         GCC-compiled ones.
12267
12268         * gdk/win32/makefile.msc
12269         * gtk/makefile.msc: Cosmetics mostly.
12270
12271         * gtk/gtk.def: Add missing entry points.
12272
12273         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
12274
12275 1999-07-09  Tor Lillqvist  <tml@iki.fi>
12276
12277         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
12278         or height is zero. Don't print a warning if Pie or Arc fails, they
12279         always fail (?) for very narrow ellipses.
12280
12281         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
12282         the part or the destination window corresponding to source area
12283         outside of the source drawable's boundary.
12284
12285         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
12286         anything if less than two points.
12287
12288         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
12289         return NULL. Gtk cut-and-paste inside a single program works
12290         better this way. (It always gets the clipboard contents from
12291         Windows, not from its own copy, which is cleared anyway. I can't
12292         say I fully understand what happens... Emulating the X selection
12293         and property stuff is a bit of a mess.)
12294
12295         * gdk/win32/gdkevents.c
12296         * gdk/win32/gdkproperty.c: A bit more verbose logging.
12297
12298         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
12299         that never got deleted). Revamp gdk_region_shrink.
12300
12301         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
12302         after use.
12303
12304         * gtk/gtk.def: Add some missing entry points.
12305
12306         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
12307         component.
12308
12309 1999-07-04  Tor Lillqvist  <tml@iki.fi>
12310
12311         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
12312         Control-digits specially.
12313
12314 1999-07-03  Tor Lillqvist  <tml@iki.fi>
12315
12316         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
12317
12318 1999-06-28  Tor Lillqvist  <tml@iki.fi>
12319
12320         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
12321         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
12322         finding this.)
12323
12324 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
12325
12326         * gtk+.spec.in: Corrected some typos in files section.
12327         
12328 1999-06-15  Tor Lillqvist  <tml@iki.fi>
12329
12330         * README.win32: Mention using GNU gettext.
12331         * config.h.win32: Enable NLS stuff.
12332         * gtk/makefile.msc: Use GNU gettext.
12333         * gdk/win32/gdkdnd.c: Minor header reorg.
12334         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
12335         cosmetics.
12336         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
12337         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
12338
12339 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
12340
12341         * acinclude.m4
12342         * config.guess
12343         * config.status
12344         * ltconfig
12345         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
12346
12347 1999-05-30  Tor Lillqvist  <tml@iki.fi>
12348
12349         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
12350         SafeAdjustWindowRectEx. Don't override all calls to
12351         AdjustWindowRectEx by it, but use it only in two places: When
12352         creating a new top-level window and when moving a top-level
12353         window.
12354
12355         Use screen coordinate rectangle, not client rectangle, in
12356         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
12357         when we try to place a window so that the decoration (mainly,
12358         title bar) isn't visible.
12359
12360         These changes fix the bug that showed up for instance as the
12361         GIMP's saved top-level windows moving right and down (by an amount
12362         equal to the window decoration) for each session. This bug showed
12363         up also in testgtk's "Saved Position".
12364
12365         gdk_window_resize also redone a bit.
12366
12367 1999-05-25  Tor Lillqvist  <tml@iki.fi>
12368
12369         * gtk/testgtkrc: Add (commented out) Windows-style theme
12370         include line.
12371
12372         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
12373
12374 1999-05-18  Tor Lillqvist  <tml@iki.fi>
12375
12376         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
12377         gdkx.h to a gdk subdirectory, so that applications can include
12378         these with <gdk/*.h> without trouble.
12379
12380         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
12381         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
12382         have their bitmap destroyed.
12383
12384         * gdk/win32/gdk.def: Add gdk_root_parent.
12385
12386 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
12387
12388         * configure.in
12389           gtk-config.in
12390           ltconfig
12391           ltmain.sh     
12392           gtk/Makefile.am: changes to compile nicely (with xlib) 
12393           on BeOS
12394
12395 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
12396
12397         * acinclude.m4
12398         * config.guess
12399         * config.sub
12400         * ltconfig
12401         * ltmain.sh: upgrade to libtool 1.3
12402
12403 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
12404
12405         * gtk/gtkclist.c:
12406         * gtk/gtkctree.c: merges from gtk-1-2
12407
12408 1999-04-25  Tor Lillqvist  <tml@iki.fi>
12409
12410         Support added for building using a GNU toolchain on Win32,
12411         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
12412
12413         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
12414         * config.h.win32: Changes for gcc.
12415         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
12416         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
12417         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
12418         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
12419         Protect shl stuff unavaiilable with mingw32 headers.
12420         * gdk/win32/gdkevents.c: Fix typo.
12421         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
12422         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
12423         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
12424         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
12425         the mingw32 headers.
12426         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
12427         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
12428         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
12429         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
12430         Test for NATIVE_WIN32, not _MSC_VER.
12431         * gtk/gtkmain.c: No use warning about developer version on Win32,
12432         there aren't any non-developer versions anyhow.
12433         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
12434         * gtk/makefile.msc: Use pthread from another directory. Minor other
12435         changes. 
12436
12437 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
12438
12439         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
12440           default filter from the list
12441
12442 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
12443
12444         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
12445          when gtk_widget_grab_default() is called for a widget that
12446          is not within a GtkWindow.
12447
12448 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
12449
12450         * docs/gtk_tut.sgml, examples/clist.c: use a
12451           scrolled window in the clist example. Minor
12452           tutorial fixes.
12453
12454 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
12455
12456         * docs/gtk_tut.sgml: Style check from David King
12457           <dking@youvegotmail.net>
12458
12459 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
12460
12461         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
12462         compile with unknown value of GDK_WINDOWING
12463
12464 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
12465
12466         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
12467         after the rule is fired.
12468         (install-exec-local): Install gdkconfig.h only if the contents are
12469         different from the currently installed gdkconfig.h.
12470
12471 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
12472
12473         * gdk/Makefile.am (configexecincludedir): Rename from 
12474         configincludedir so that gdkconfig.h will be installed 
12475         as part of `make install-exec'. 
12476
12477 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
12478
12479         * acinclude.m4
12480         * config.guess
12481         * config.sub
12482         * ltconfig
12483         * ltmain.sh: upgrade to libtool 1.2f
12484
12485         * autogen.sh: libtool is not required to autogen gtk+
12486
12487         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
12488         needed)
12489
12490 1999-03-18  Tor Lillqvist  <tml@iki.fi>
12491
12492         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
12493         declaring gdk variables exported/imported from the DLL. New image
12494         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
12495         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
12496         GDK_DRAG_PROTO_OLE2.
12497
12498         * gdk/gdk.h: Merge in Win32 version: Two new functions,
12499         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
12500         declared only for the Win32 version, but could be in the X11
12501         version as well. (Needed for a Xlib-less gdk_imlib.)
12502         gdk_color_hash should have only one parameter. Declare
12503         gdk_threads_mutex with GDKVAR.
12504         
12505         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
12506         just one parameter.
12507
12508         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
12509         per pixel, not bits.
12510
12511         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
12512         Fetch bpp (which means bits-per-pixel here) from another place on
12513         Win32. Accept also depth==32 (which we might get on Win32) with
12514         bpp==32.
12515
12516         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
12517         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
12518         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
12519         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
12520         in the backend-dependent directory, not in the common gdk
12521         directory.
12522
12523         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
12524         headers.
12525
12526 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
12527
12528         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
12529         want to use the Gtk+ devel version (which is true, and yes - even i am
12530         currently working with the 1.2.x branch). so everyone reading this, you
12531         probably want to issue
12532         cvs checkout -r glib-1-2 glib
12533         and
12534         cvs checkout -r gtk-1-2 gtk+
12535         as your next two comands.
12536
12537 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
12538
12539         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
12540         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
12541
12542         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
12543         file. strongly deprecated the GTK_HAVE_* macros, we provide
12544         GTK_CHECK_VERSION() for people that need to check for certain
12545         Gtk+ versions.
12546
12547         * gtk/gtkcompat.h: removed this from CVS.
12548         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
12549         idea right from the start, it just didn't seem like that back then.
12550
12551 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
12552
12553         * merges from gtk-1-2:
12554
12555 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
12556
12557         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
12558         item factory class has been created.
12559         (gtk_item_factory_parse_rc): likewise.
12560
12561         * gtk/gtkmenu.c:
12562         keep proper references for old_active_menu_item.
12563         (gtk_menu_reparent): unset the usize of the new parent,
12564         so the menu can sanely be size requested and we don't get nasty screen
12565         artefacts upon next reparentation.
12566         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
12567         enter notify. only synthesize enter notifies if the pointer really is
12568         inside the event window.
12569         (gtk_menu_popdown): use gtk_menu_shell_deselect().
12570         (gtk_menu_popup): move the background setting stuff into
12571         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
12572
12573         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
12574         gtk_menu_shell_select_item() to select the new item.
12575         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
12576         do the right thing for deselection as well.
12577
12578 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
12579
12580         * gtk/gtkwidget.[hc]:
12581         (gtk_widget_accelerators_locked): return whether a widget's accelerators
12582         are locked.
12583
12584         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
12585         existing accelerators if the widget's accelerators are locked.
12586
12587 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
12588
12589         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
12590
12591         * gtk/gtkmenu.c: truely forward key press and key release events to
12592         the menu widget from the toplevel or tearoff window. we can't simply
12593         connect to that, we need to stop further processing of the events as
12594         well.
12595
12596 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
12597
12598         * gtk/gtkmenu.c:
12599         (gtk_menu_key_press): pass event->keyval, event->state to
12600         gtk_accelerator_valid, instead of event->keyval twice.
12601         refuse to install single letter accelerators for menus that use
12602         single letter shortcuts.
12603
12604         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
12605         gtk_menu_ensure_uline_accel_group().
12606
12607         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
12608         which will always return an uline accel group, made
12609         gtk_menu_get_uline_accel_group() return NULL if the group isn't
12610         yet created.
12611
12612 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
12613
12614         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
12615
12616         * gtk/gtkclist.c (gtk_clist_column_title_passive):
12617         Leave button sensitive, trap  button_press, button_release,
12618         motion_notify, enter_notify and leave_notify events instead.
12619         (gtk_clist_column_title_active): disconnect event handler.
12620         (gtk_clist_drag_data_get): fixed memory leak. Reported by
12621         Guillaume Laurent <glaurent@worldnet.fr>
12622
12623 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
12624
12625         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
12626         width/height mixups.
12627
12628         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
12629         if needed.
12630
12631 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
12632
12633         * gtk/testgtk.c (create_item_factory): unref the item factory after
12634         window's destruction.
12635
12636         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
12637         count on the menu shell around the menu item's activation, since the
12638         signal emission may cause menu shell destruction.
12639
12640         * gtk/gtkitemfactory.c:
12641         the previous code leaked one accel group per menu. we use
12642         gtk_menu_get_uline_accel_group() now to fix that, and with that
12643         also create the underline accelerator group of the menus only if
12644         required (i.e. an underline accelerator has been specified).
12645         (gtk_item_factory_construct):
12646         (gtk_item_factory_create_item): removed code that would create an
12647         extra accel group for the menu (and leak references).
12648         (gtk_item_factory_create_item): adapted the underline accelerator
12649         installation code to properly feature gtk_menu_get_uline_accel_group().
12650
12651         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
12652         menu->accel_group, this may return NULL if the accelerator group
12653         hasn't been set yet.
12654         added gtk_menu_get_uline_accel_group() to retrive the underline
12655         accelerator group of the menu, this will be created on demand
12656         and proper care is taken about its reference count.
12657
12658         * gtk/gtkitemfactory.h:
12659         * gtk/gtkitemfactory.c:
12660         dumped the approach of keeping a widgets by action list on the
12661         factory since the factory<->widget destroy negotiation didn't work
12662         and would be hard to get going at all. instead we keep a list of
12663         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
12664         persistant throughout a program's life time).
12665         also, i removed the static const gchar *key_* variables, and made
12666         them inline strings (they weren't actually used anyways).
12667         (gtk_item_factory_add_item): update ifactory->items.
12668         (gtk_item_factory_destroy): destroy ifactory->items (and remove
12669         the item factory pointer from the remaining ifactory widgets).
12670         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
12671         list to find the widget.
12672         (gtk_item_factory_get_item): new function that works around
12673         gtk_item_factory_get_widget() limitations, this function will only
12674         return menu items, even for <Branch> entries.
12675
12676 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
12677
12678         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
12679         font hash table, if we have a GdkFontPrivate entry for this font
12680         already, simply increment its reference count, provided by Olaf Dietsche
12681         <olaf.dietsche+list.gtk@netcologne.de>.
12682
12683         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
12684         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
12685
12686 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
12687
12688         * gtk/gtkcontainer.c:
12689         (gtk_container_add_with_args):
12690         (gtk_container_addv):
12691         (gtk_container_add): before adding a child to a conatiner, make sure
12692         it is (default) constructed, this is neccessary because under certain
12693         circumstances the child will get relized and mapped immediatedly, in
12694         which case it has to be constructed already.
12695
12696 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
12697
12698         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
12699         values > 1 as TRUE also.
12700
12701 1999-03-16  Tor Lillqvist  <tml@iki.fi>
12702
12703         * README.win32: New file.
12704                 
12705         * configure.in: Check for lstat.
12706
12707         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
12708         completeness.
12709
12710         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
12711
12712         * gtk/gtk.def: Removed CRs.
12713
12714         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
12715         ..\gdk\win32).
12716
12717         * gdk/win32/makefile.msc: Correct upwards relative paths.
12718         
12719 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
12720
12721         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
12722           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
12723           it was connecting a void function to expose_event and the int
12724           returning function to the draw signal
12725
12726 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
12727
12728         * configure.in:
12729         Use correct path to libgmodule.la when ref'ing uninstalled copy
12730         of glib.  (Already in stable branch, Bug #417)
12731
12732 1999-03-15  Tor Lillqvist  <tml@iki.fi>
12733
12734         Win32 merge and general portability stuff:
12735                 
12736         * acconfig.h,configure.in: Check for <sys/time.h>.
12737
12738         * gdk/win32: New directory (actually, been there for a while).
12739         
12740         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
12741         NATIVE_WIN32, and use these. Always case fold on Win32. No
12742         backslashed escapes on native Win32.
12743
12744         * gtk/{gtk.def,makefile.msc}: New files.
12745
12746         * gtk/Makefile.am: Add above new files.
12747         
12748         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
12749         instead of <strings.h>.
12750
12751         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
12752         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
12753         <unistd.h> appropriately.
12754
12755         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
12756         Use ABS() (from <glib.h>) instead of abs().
12757         
12758         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
12759         of gtk (and thus glib) headers, so that WIN32 will be
12760         defined. With MS C, include <direct.h> for mkdir prototype.
12761
12762         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
12763         some casts, needed by MS C.
12764
12765         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
12766         implemented).
12767
12768         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
12769         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
12770         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
12771
12772         * gtk/gtkmain.h: Mark variables for export/import on Win32.
12773                 
12774         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
12775         the event is not a hint, or its window is not the slider. Needed
12776         on Win32, at least.
12777
12778         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
12779         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
12780         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
12781         a subdirectory of the Windows directory as gtk system
12782         configuration directory.
12783
12784         * gtk/gtkselection.c: No chunks on Win32.
12785
12786         * gtk/gtksocket.c: Not implemented on Win32.
12787
12788         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
12789
12790         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
12791
12792         * gtk/maketypes.awk: Declare variables with a macro that expands to
12793         necessary export/import magic in the case of Win32.
12794                 
12795         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
12796
12797 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
12798
12799         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
12800         since those were meant only for gdki18n.h.  
12801         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
12802         for widechar tests.
12803         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
12804
12805 1999-03-13  Tor Lillqvist  <tml@iki.fi>
12806
12807         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
12808         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
12809
12810         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
12811         installed) to CFLAGS.
12812
12813         * gdk/Makefile.am: Add rules for gdkconfig.h.
12814
12815         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
12816         APIs.
12817
12818         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
12819         gdkx.h anyway when compiling for X11.
12820         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
12821         general): Merge in Win32 version.
12822         
12823         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
12824         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
12825         expansion (if we don't have HAVE_PWD_H), allow for drive
12826         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
12827         included code from Craig Setera's port to Win32 (the one that uses
12828         X11, and the cygwin dll), even if it probably will be abandoned.
12829
12830         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
12831         the user entered one herself.  This way one can complete *.h and
12832         don't get matches on any .help files, for instance.
12833         
12834 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
12835
12836         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
12837         font hash table, if we have a GdkFontPrivate entry for this font
12838         already, simply increment its reference count, provided by Olaf Dietsche
12839         <olaf.dietsche+list.gtk@netcologne.de>.
12840
12841         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
12842         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
12843
12844 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
12845
12846         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
12847         the number of calls to gdk_draw_point() (and thus to X) by
12848         clipping the points by hand.
12849
12850         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
12851         the clip parameter.
12852         (gtk_handle_box_paint): Only paint the handle if the expose area
12853         intersects it.
12854
12855 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
12856
12857         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
12858
12859 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
12860
12861         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
12862         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
12863
12864 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
12865
12866         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
12867          textmode (O_TEXT) for OS/2 version.
12868
12869 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
12870
12871         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
12872         GtkSpinButton, "input" and "output", to make the output more flexible.
12873         The user has to provide a mapping between adjustment->value and the
12874         output string (and vice versa, if the spin button is editable). 
12875         See testgtk for examples.
12876
12877 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
12878
12879         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
12880         new one.
12881         
12882         * configure.in: set gtk+ version to 1.3.0.