]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-2
centralize all the editing code
[~andy/gtk] / ChangeLog.pre-2-2
1 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
2
3         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
4         the editing code
5
6         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
7         reason to call it beyond emiting the two signals.
8
9         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
10         to GtkEntry.
11
12 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
13
14         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
15           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
16         PangoFontDescription.
17
18         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
19         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
20         structure.
21   
22         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
23
24         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
25         direct access to style->font. Deprecate gtk_style_ref/unref.
26   
27         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
28         Remove gtk_style_ref/unref with g_object_ref/unref.
29   
30         * gtk/gtkcalendar.c: Remove leftover macros accessing
31         style->font.
32   
33         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
34         variable.
35   
36         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
37         style->font.
38   
39 >>>>>>> 1.2293
40 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
41
42         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
43         "can_activate" properties in favor of
44         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
45         and GTK_CELL_RENDERER_MODE_EDITABLE
46
47 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
48
49         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
50         editable widgets.  This function is private, and should only be
51         used by GtkTreeView.
52
53 2001-09-18  Matt Wilson  <msw@redhat.com>
54
55         * docs/Makefile.am (EXTRA_DIST): don't use += before =
56
57         * docs/faq/Makefile.am (EXTRA_DIST): likewise
58
59         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
60         
61         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
62         (EXTRA_HEADERS): likewise
63
64         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
65         (EXTRA_HEADERS): likewise
66         (EXTRA_DIST): likewise
67         (CLEANFILES): likewise
68
69         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
70
71         * tests/Makefile.am (EXTRA_DIST): likewise
72         
73         * Makefile.am (install-data-local): changed to use
74         install-data-hook, which runs after install-pkgconfigDATA, so that
75         the pkgconfigdir will have been created and populated first.
76
77 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
78
79         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
80         be the last big GtkTreeView API change.
81
82         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
83         replace with "activate" and "start_editing".  Also, added a
84         "can_activate" and "can_edit" property.
85
86         * gtk/gtktreeviewcolumn.c: modify to use above.
87
88 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
89
90         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
91
92 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
93
94         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
95         icon instead of one with ugly white background.
96
97 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
98
99         * demos/gtk-demo/stock_browser.c (id_to_macro): make
100         the uppercasing work. (#59550)
101
102 2001-09-14  Jakub Steiner <jimmac@ximian.com>
103
104         * gtk/stock-icons/dialog_error.png:
105         * gtk/stock-icons/dialog_question.png: more road signs
106
107 2001-09-13  Jakub Steiner <jimmac@ximian.com>
108
109         * gtk/stock-icons/dialog_question.png:
110         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
111           like a road sign.
112
113 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
114
115         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
116         signals to make them more clear.  Also, change ::range_changed to
117         ::row_changed.
118         * gtk/gtktreemodel.c: Adjust to interface change
119         * gtk/gtktreemodel.h: ditto
120         * gtk/gtktreemodelsort.c: ditto
121         * gtk/gtktreestore.c: ditto
122         * gtk/gtkliststore.c: ditto
123         * gtk/gtktreeview.c: ditto
124         * tests/testtreecolumns.c: ditto
125         * gtk/gtkmarshal.list: Actually remove a marshaller!
126
127 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
128
129         * gtk/gtktextview.c
130         Add support for Ctrl+Up/Down arrow to move cursor to beginning
131         of previous/next paragraph. If within a paragraph cursor moves to
132         beginning of that paragraph.
133
134 2001-09-12  Jakub Steiner <jimmac@ximian.com>
135
136         * gtk/stock-icons/dialog_question.png: replacing the shaky
137           question mark with a sans-serif one.
138         * gtk/stock-icons/stock_top.png, stock_bottom.png,
139      stock_first.png, stock_last.png: using the new style arrows
140         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
141      colors.
142         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
143      color.
144         * gtk/stock-icons/stock_zoom*: anti-aliased
145         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
146      '-' with a '_', removed the wrong files
147
148 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
149  
150         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
151  
152         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
153         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
154         than in gtk-2.0/major.minor.micro/<type>/. This
155         works better for a search path for modules.
156  
157         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
158         gtk_binary_version variable holding major.minor.(micro-binary_age).
159  
160         * modules/input/Makefile.am (moduledir): Fix installation
161         directory to match change in lookup location.
162  
163         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
164         suffixes. Needs to be handled in g_module_build_path().
165
166         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
167         appropriate.
168  
169 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
170
171         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
172         causing RC properties not to work.
173
174 2001-09-11  Jakub Steiner <jimmac@ximian.com>
175
176         * gtk/stock-icons/dialog-error.png: less drastic
177         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
178           "STOP" is international enough.
179         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
180         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
181
182 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
183
184         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
185         (add|remove)_selection_clipboard symmetric. (bug #59836)
186
187         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
188         Avoid SEGV for empty tree. (bug #60243)
189
190 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
191
192         * tests/testgtk.c (create_idle_test): slight fix for
193         g_object_set() not usable for nesting anymore.
194
195         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
196         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
197         properties, supply ::shadow_type properties instead as most
198         other widgets do.
199
200 2001-09-10  Alex Larsson  <alexl@redhat.com>
201
202         * demos/gtk-demo/stock_browser.c:
203         * gdk/gdkcolor.c:
204         * gdk/gdkfont.c:
205         * gdk/gdkcursor.c:
206         * gdk/gdkevents.c:
207         * gdk/gdkrectangle.c:
208         * gtk/gtktypeutils.c:
209         Update to use the new g_boxed_type_register_static API.
210
211 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
212
213         * gtk/gtktreestore.c:
214         Fix looping in gtk_tree_store_init() waiting for zero random int.
215
216 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
217
218         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
219         behaviour which havoc broke. they have to default to 1.0 for
220         expand behaviour.
221
222         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
223
224 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
225
226         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
227         Amend previous change to avoid runtime error in g_param_spec_ref()
228
229 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
230
231         * gtk/gtkrc.c (insert_rc_property): Fix blank line
232         in the wrong place.
233
234 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
235
236         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
237         do a lookup immediately after creating style->property_cache,
238         since bsearch crashes on zero length for Solaris.
239         (Found by Padraig O'Briain.)
240
241 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
242
243         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
244         Really return NULL if not set.
245         (gtk_widget_init): Remove unused varaible.
246         
247 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
248
249         * configure.in:
250         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
251         in cvs.
252
253 2001-09-08  Havoc Pennington  <hp@pobox.com>
254
255         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
256         people might want to use
257
258 2001-09-08  Havoc Pennington  <hp@pobox.com>
259
260         * gtk/gtkalignment.c (gtk_alignment_class_init): default
261         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
262
263         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
264
265         * gtk/gtktextiter.c: fix docs
266         (gtk_text_iter_spew): get rid of this
267
268         * gtk/gtklayout.c: docs
269
270         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
271         to center image and label together, instead of having image on
272         left and label centered, patch/suggestion from Jacob
273
274         * gtk/gtkdialog.c: docs
275
276 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
277
278         * gtk/gtkliststore.c: Write documentation
279         * gtk/gtktreestore.c: Write documentation
280
281 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
282
283         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
284         with GArray and bsearch(), to remove dependency on a still
285         evolving interface that we want to keep private to glib/gobject. 
286
287 2001-09-08  Havoc Pennington  <hp@pobox.com>
288
289         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
290         docs fixes
291
292         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
293
294         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
295
296         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
297
298         * gtk/gtkscrolledwindow.h: docs fixes
299
300         * gtk/gtkimage.c (gtk_image_new): docs fixes
301
302 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
303
304         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
305         false alarm  constness warning with a cast.
306
307         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
308         for the inside-gdk case.
309
310 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
311
312         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
313         remove g_print.
314
315         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
316         change models, #59899
317
318 2001-09-07  Havoc Pennington  <hp@pobox.com>
319
320         * gtk/gtkmain.c: move some docs inline
321
322 2001-09-07  Havoc Pennington  <hp@pobox.com>
323
324         * gtk/gtk.h: tsk tsk, jrb broke the build
325
326 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
327
328         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
329         Removed 'fill' attribute.  It was silly b/c that was a property of
330         the cell renderer, anyway.
331         (gtk_tree_view_column_render): Actually render the packed
332         renderers.
333         * doc/tree-column-sizing.txt: initial devel documentation.
334         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
335         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
336
337         * tests/testtreefocus.c: fix up to reflect above changes.
338         * tests/testtreeview.c: ditto
339         * demos/gtk-demo/stock_browser.c: ditto
340
341 2001-09-07  Alex Larsson  <alexl@redhat.com>
342
343         * gdk/linux-fb/gdkcolor-fb.c:
344         Removed unused function.
345         
346         * gdk/linux-fb/gdkdrawable-fb2.c
347         * gdk/linux-fb/gdkfont-fb.c:
348         Use PangoLanguage functions.
349
350         * gdk/linux-fb/gdkinput.c:
351         * gdk/linux-fb/gdkselection-fb.c:
352         Fix const warnings.
353         
354         * gdk/linux-fb/gdkwindow-fb.c:
355         Fix warning. Implement gdk_window_set_icon_list() and
356         gdk_window_get_frame_extents(). (No icon support yet though.)
357
358         * gtk/gtkwindow.c (gtk_window_get_position):
359         If window->frame is set get the extents of it instead.
360         
361 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
362
363         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
364         Make the default default colormap the GdkRGB colormap,
365         not the system colormap.
366
367         * gtk/gtkinvisible.c (gtk_invisible_init) 
368           gtk/gtkwindow.c (gtk_window_init): Set the current
369         colormap, as returned by _gtk_widget_peek_colormap()
370         on the widget.
371
372         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
373         to GTK+. Make it return %NULL instead of the default
374         colormap if no colormap has explicitely been pushed.
375
376         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
377         colormaps on ancestral widgets before defaulting the
378         the system default colormap.
379
380         * docs/Changes-2.0.txt: explain colormap changes.
381
382 2001-09-07  Havoc Pennington  <hp@redhat.com>
383
384         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
385         #57424
386
387 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
388
389         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
390         make gdk_set_use_xshm a noop. Remove --no-xshm command line
391         option. If we aren't autodetecting properly, we need
392         to fix the problem, or at least make it an environment
393         variable setting, to avoid problems with propagating
394         to embedded children, plugins, etc.
395
396         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
397
398         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
399         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
400         New function to render a pixmap and mask for a particular colormap.
401
402         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
403         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
404         of internal implementation of the same.
405
406 2001-09-07  Havoc Pennington  <hp@redhat.com>
407
408         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
409         debug code that seems to have caused a breakpoint in valid cases
410         
411         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
412         pointer on the first view when adding the second view, fixes
413         crash when closing gtk-demo text test with active selection
414
415         * gtk/gtktextbuffer.c
416         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
417         clipboards in the list of clipboards - probably fixes #59836
418
419 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
420
421       Make gdkx.h the only installed header from gdk/x11.
422       All structures in gdk/x11 are opaque.
423
424         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
425         Don't install gdk{drawable,pixmap,window}-x11.h.
426
427         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
428         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
429         GdkVisualClass into C files.
430
431         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
432
433         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
434         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
435         Add public functions to replace previously exported direct
436         structure access.
437         gdk_x11_colormap_get_{xdisplay,xcolormap} 
438         gdk_x11_cursor_get_{xdisplay,xcursor},
439         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
440         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
441         gdk_x11_gc_get_{xdisplay,ximage}
442         
443         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
444         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
445
446       Fix a number of variables and functions that were exported
447       "accidentally" from GDK.
448
449         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
450         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
451         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
452         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
453         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
454         gdk_event_queue_find_first, gdk_event_queue_remove_link,
455         gdk_event_queue_append, gdk_event_button_generate,
456         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
457
458         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
459            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
460         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
461         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
462         gdk_use_xshm, gdk_input_ignore_core.
463
464         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
465         #defines to namespace functions into the private _gdk_ 
466         namespace.
467
468         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
469         to replace gdk_parent_root exported variable. Adjust and
470         deprecate GDK_ROOT_PARENT().
471
472         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
473         GDK_ROOT_PARENT usage, remove includes of port-specific
474         headers.
475
476         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
477         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
478         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
479
480         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
481         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
482         gdk_wm_delete_window functions, gdk_wm_take_focus, 
483         use gdk_atom_intern() instead.
484
485         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
486           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
487           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
488           gtk/gtkselection.c 
489         Unexport gdk_selection_property, just use 
490         gdk_atom_intern ("GDK_SELECTION").
491
492         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
493         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
494         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
495         GdkVisualprivate, gdk_x11_gc_flush.
496
497       Make a number of public exports of variables into functions
498       to increase encapsulation.
499
500         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
501         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
502         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
503
504         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
505         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
506         gdk_error_warnings.
507
508         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
509           docs/Changes-2.0.txt: 
510         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
511         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
512         Add gdk_x11_get_default_xdisplay().
513
514         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
515         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
516         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
517         Don't export gdk_progclass, move --class command line
518         option and handling to common portion of GDK.
519
520       Miscellaneous fixes:
521
522         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
523         g_return_val_if_fail that should have been g_return_if_fail.
524
525         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
526         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
527
528         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
529         X11 dependency.
530
531         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
532         Remove unused gdk_key_repeat_disable/restore.
533
534         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
535         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
536         Remove unused gdk_null_window_warnings variable.
537
538         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
539         it can be retrieved from the repository; it is too far
540         from functional to be worth having people check out;
541         it would be easier to start from scratch, I suspect.
542
543         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
544
545         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
546         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
547         Fix some accidentally global variables and unused global variables.
548
549         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
550         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
551         Fix some accidentally global variables and unused global variables.
552
553       Add some space for future expansion to multihead.
554
555         * gdk/gdkdrawable.h: Add four reserved function pointers
556         for future expansion of GdkDrawableClass.
557
558         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
559         where we can put a GdkScreen * later.
560
561 2001-09-07  Havoc Pennington  <hp@redhat.com>
562
563         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
564         adjustments after validating destination yrange; fixes #53918
565         (This may cause other issues, but I hope it won't)
566         
567 2001-09-05  Havoc Pennington  <hp@redhat.com>
568
569         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
570         line into start line, update the character counts in parent nodes; 
571         caused a bug when end and start line had different parent nodes.
572
573 2001-08-30  Havoc Pennington  <hp@redhat.com>
574         
575         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
576         assertion that tag is in a table
577
578 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
579
580         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
581         g_strcasecmp on NULL strings. (#59058)
582
583 2001-09-06  Alex Larsson  <alexl@redhat.com>
584
585         * gtk/gtkbin.c:
586         * gtk/gtkfontsel.c:
587         * gtk/gtkspinbutton.c:
588         * gtk/gtktipsquery.c:
589         Use GtkType/GType instead of uint.
590
591 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
592
593         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
594         sort column.
595
596         * gtk/gtktreestore.c (gtk_list_store_init): ditto
597
598         * gtk/gtktreesortable.c: add docs.
599
600 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
601
602         * Version 1.3.7
603
604         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
605         docs for gtk-config
606
607         * modules/input/Makefile.am (install-data-local): Don't
608         run gtk-query-immodules if DESTDIR is set.
609
610         * NEWS: Various additions.
611
612 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
613
614         * NEWS: updates for 1.3.7 release.
615
616 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
617
618         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
619         handle default sort feature
620
621         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
622         new function to handle default sort.
623         (gtk_tree_sortable_has_default_sort_func): check if default sort
624         is set.
625
626         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
627         handle default sort feature
628
629 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
630
631         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
632         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
633         #59731
634
635 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
636
637         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
638         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
639         time, #59727
640
641         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
642         correctly.
643
644 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
645
646         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
647         so that we don't eternally update the keymap after we
648         get a change notification.
649
650         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
651         incorrect cast.
652
653 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
654
655         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
656         it working. It mostly works now, although there're still a few issues
657         to be worked out.
658
659         * tests/testtreesort.c (main): changes to have a better test
660         application for the GtkTreeModelSort.
661
662 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
663
664         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
665         fix for bug #59222.
666
667         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
668         gpointer search_data argument to function definition and
669         prototype, to match GtkTreeViewSearchEqualFunc typedef.
670
671 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
672
673         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
674         per jrb's request.
675
676 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
677
678         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
679
680         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
681
682 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
683
684         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
685         Instead of always mirroring the selection to a single PRIMARY
686         selection, allow it to be mirrored to any number of clipboards.
687
688         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
689         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
690
691         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
692         GtkClipboard argument, and for paste_clipboard, the
693         @override_location argument from @paste_primary.
694
695         * gtk/gtktextview.c: Adapt to above change.
696         
697 2001-08-30  Havoc Pennington  <hp@redhat.com>
698
699         * gtk/gtktextview.c (invalidated_handler): put validate idle at
700         resize - 2 just for flexibility
701
702 2001-08-30  Havoc Pennington  <hp@redhat.com>
703
704         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
705         object from the empty-child-anchor case by drawing a little box.
706         
707         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
708         if the child anchor has no anchored widgets - fixes #59328.
709
710         Also, remove bizarre deletion of preedit string that seems to have
711         gotten in here somehow.
712
713 2001-08-30  Havoc Pennington  <hp@redhat.com>
714
715         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
716         to #58420 from Hidetoshi Tajima and Matthias Clasen
717
718 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
719
720         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
721         change color when the GtkTreeView loses focus.
722
723         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
724         ditto.
725         
726         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
727
728 2001-08-28  Havoc Pennington  <hp@pobox.com>
729
730         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
731
732 2001-08-28  Havoc Pennington  <hp@pobox.com>
733
734         * demos/gtk-demo/main.c (setup_default_icon): add default icon
735
736         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
737         warning fix
738         (gtk_radio_button_new_with_label): warning fix
739
740         * gtk/gtkdnd.c: used some random GtkImage private structs, 
741         update to reflect GtkImage changes
742
743         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
744         whether the hint is supported, just always set the icon. A task
745         list might want to use it even if the WM doesn't, and the WM may
746         change over time. Also, XDeleteProperty() if list == NULL.
747
748         * gtk/gtkwindow.c (gtk_window_set_icon_list)
749         (gtk_window_get_icon_list)
750         (gtk_window_set_icon)
751         (gtk_window_get_icon)
752         (gtk_window_set_default_icon_list)
753         (gtk_window_get_default_icon_list):
754         new functions
755
756         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
757
758         * gtk/gtkimage.c: Implement property support, bug #59408
759
760         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
761         on reparent-without-removing-first a bit more helpful.
762         Let's just destroy this FAQ.
763
764 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
765
766         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
767         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
768
769 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
770
771         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
772         of use_text_format to the end of the function. (#56447)
773
774 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
775
776         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
777         only in response to an area_prepared signal.
778
779 2001-08-28  Alex Larsson  <alexl@redhat.com>
780
781         * gtk/gtkwidget.c (gtk_widget_class_init):
782         Make unrealize GTK_RUN_LAST.
783
784 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
785
786         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
787         with_label and with_mnemonic should create radio buttons, not
788         check buttons
789
790 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
791
792         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
793         * tests/treestoretest.c (make_window): ditto
794         * demos/gtk-demo/main.c (create_tree): ditto
795         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
796
797 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
798
799         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
800         GTK selection types rather than GtkTreeSelectionMode.
801
802         * docs/Changes-2.0: Add comment about selection change.
803
804 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
805
806         * gtk/gtkenums.h (GtkSelectionMode): deprecate
807         GTK_SELECTION_EXTENDED.
808
809         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
810         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
811
812         * gtk/gtkctree.c: ditto
813
814         * gtk/gtklist.c: ditto
815
816         * gtk/gtktree.c: ditto
817
818 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
819
820         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
821         of typos in compat macros. (#59624, Skip Montaro)
822
823 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
824
825         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
826         macro.
827
828          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
829  
830         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
831         interface to be a standard setter from gtk_menu_item_right_justify.
832         (gtk_menu_item_get_right_justified): a getter to go with the setter
833
834         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
835         gtk_menu_item_right_justify.
836
837         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
838         gtk_menu_item_set_right_justified.
839  
840 2001-08-27  Jens Finke <jens@gnome.org>
841
842         * gtk+.spec.in: Updated to match gpp requirements, reworked the
843         files section to make it work with 1.3.x releases.
844
845 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
846
847         * gtk/gtkbutton.[ch]:
848         Add properties for labels, mnemonics and stock items.
849         Added C accessor functions for the properties.
850         Removed deprecated button->child.
851
852         * gtk/gtkradiobutton.c:
853         * gtk/gtktogglebutton.c:
854         Update to use the functions in GtkButton.
855
856         * gtk/gtkcheckbutton.c:
857         Update to use the functions in GtkButton.
858         Changed size allocation of child. Now only gets as much
859         space as it requests.
860
861         * gtk/gtkclist.c:
862         Don't use GtkButton->child
863
864         * gtk/gtklabel.c:
865         Fixed typo in docs
866         
867 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
868
869         * tests/testgtk.c:
870         * tests/Makefile.am:
871         Ressurect the properties test.
872         I don't care if it is inferior, I just want to test my property code.
873
874 2001-08-25  Chema Celorio  <chema@celorio.com>
875
876         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
877         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
878         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
879
880 2001-08-24  Havoc Pennington  <hp@pobox.com>
881
882         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
883         these are already in gtkmenu.h, and the copies
884         here were broken.
885
886         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
887
888         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
889         special-case bitmaps to allow no colormap
890         (bitmap1): implement no-colormap bitmap-getting
891         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
892         alpha
893         (rgb8): indentation
894         (rgb1a, rgb1): change the way we read the data out of the image, 
895         old way didn't seem to work quite right.
896
897         I'm pretty sure a lot of the rgbconvert code is still broken.
898         
899         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
900         above position constraint (I really intended to do this before,
901         don't know what's up with that)
902         (gtk_XParseGeometry): shut up gcc
903
904         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
905         and "0" should have been. remove the attempted 4-bytes-at-once
906         optimization, it was totally broken.
907
908 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
909
910         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
911         on push to buttons (based on patch from Soeren Sandmann, #54720)
912
913           - Add child_displacement_x/y style properties to control how far the
914             child moves when the button is depressed.
915
916           - Add non-exported function _gtk_button_set_depressed to clean
917             up the handling of the in/out shadow and separate it frmo
918             widget->state.
919
920           - Lots of code cleanup and simplification of state handling
921             for GtkButton/GtkToggleButton.
922  
923         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
924         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
925
926 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
927
928         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
929         and make gtk_image_new() take no arguments. The compiler will
930         catch it, and it is vastly more useful than having
931         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
932
933         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
934         to add tearoff-title property (#51319, Lee Mallabone)
935
936 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
937
938         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
939         gtk_menu_item_configure(). (#58925)
940
941 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
942
943         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
944         "use_align" to give people the option to just make a cell visible.
945
946         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
947         we were scrolling past the end of the tree.
948
949         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
950         rename gtk_tree_view_column_pack_start_cell_renderer to
951         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
952
953 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
954
955         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
956         a stray g_object_ref() left over from gtk_object_ref/sink.
957         (Pointed out by Josh Pritikin.)
958
959 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
960
961         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
962         to gtk_container_get_children. Added deprecated compatibility
963         macro. (Suggested by Vitaly Tishkov, #59051)
964
965         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
966         calls.
967
968 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
969
970         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
971         gtk_menu_bar_append/prepend/insert, forgot to do this
972         when we deprecated gtk_menu_append/prepend/insert.
973
974         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
975         compat macros.
976
977         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
978         renamed by compat macro.
979
980         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
981         gtk_font_selection_dialog_get_font(). (Suggested by
982         Vitaly Tishkov, #59383)
983
984 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
985
986         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
987         Rename from gtk_text_tag_table_size(). (#59366)
988
989 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
990
991         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
992         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
993         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
994         (#59173).
995
996 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
997
998         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
999         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
1000         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
1001
1002 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
1003
1004         [ Patch from Sebastian Wilhelmi, 52790 ]
1005
1006         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
1007
1008         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
1009         Move compatibility macros from g[dt]kcompat.h to within 
1010         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
1011
1012         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
1013
1014         * demos/Makefile.am demos/gtk-demo/Makefile.am 
1015           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
1016           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
1017
1018         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
1019                  testpixbuf.c}: Fix usages of deprecated functions.
1020
1021 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
1022
1023         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
1024         when changing models.
1025
1026 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
1027
1028         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
1029         We check the current event for modifiers rather than try to trap
1030         all presses.
1031
1032 2001-08-22  Anders Carlsson  <andersca@gnu.org>
1033
1034         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
1035         It's LIST_STORE, not LISTSTORE.
1036
1037 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
1038
1039         * gtk/gtk.h: Remove commented out gtkpacker reference.
1040
1041 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1042
1043         * configure.in (all_loaders): Add tga loader, 
1044         patch by Nicola Girardi. (#56067)
1045
1046 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
1047
1048         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
1049         a little.  More needs to be done tomorrow.
1050
1051 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
1052
1053         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
1054
1055 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
1056
1057         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
1058         reported by Kristian Rietveld <kristian@planet.nl> to handle row
1059         == NULL.
1060         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
1061         <kristian@planet.nl> to change destroy order.
1062
1063 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
1064
1065         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
1066         correct marshaller.
1067
1068 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
1069
1070         * gtk/gtkliststore.c: Fix up warnings, #58928.
1071
1072         * gtk/gtktreeselection.h: Change signal prototype, #58647
1073
1074         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
1075         #59221.
1076
1077         * gtk/gtkstyle.c: Actually prelight arrow, #50981
1078         
1079 2001-08-18  Hans Breuer  <hans@breuer.org>
1080
1081         * gdk/gdk.def : updated externals
1082
1083         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
1084         is required to get (at least) visible in entry fields. Some selections
1085         are really handled now - even on win32 - but copying via middle
1086         mouse button into a different app needs to wait ... 
1087
1088         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
1089         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
1090
1091         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
1092         handling. I'm not sure if it is better now, but at least not worse
1093
1094         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
1095         with SetWindowPos () which allows more fine-tuning backing-store wise
1096
1097         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
1098         Also changed move/resize to be more like the X version.
1099
1100         * gtk/gtk.def : updated externals
1101
1102 2001-08-19  Sven Neumann  <sven@gimp.org>
1103
1104         * gtk/gtktooltips.c
1105         * tests/testtreesort.c
1106         * tests/treestoretest.c: inserted some casts to get rid of compiler
1107         warnings.
1108
1109 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>>
1110
1111         * gtk/gtktreeviewcolumn.c
1112         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
1113
1114         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
1115         (_gtk_tree_view_find_node): If *node is NULL,
1116         *tree should be NULL too.
1117
1118         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
1119         column/renderers.
1120         * tests/testtreecolumns.c: ditto
1121         * tests/testtreefocus.c: ditto
1122         * tests/testtreesort.c: ditto
1123         * tests/testtreeview.c: ditto
1124         * tests/treestoretest.c: ditto
1125
1126 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
1127
1128         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
1129         signals; is_expander/is_expanded.
1130
1131         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
1132         pixbufs.
1133
1134         * gtk/gtktreeview.c: set above properties.
1135
1136 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
1137
1138         * gtk/gtkwidget.h: Really remove set_default_style().
1139
1140         * docs/Changes-2.0.txt: added a note about
1141         gtk_widget_push/pop/set_default_style.
1142
1143 2001-08-18  Havoc Pennington  <hp@pobox.com>
1144
1145         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
1146         hints_changed in addition to the other cases.
1147         (gtk_window_move_resize): include last position from configure
1148         notify in debug spew
1149
1150 2001-08-18  James Henstridge  <james@daa.com.au>
1151
1152         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
1153         second argument to the weak ref notify, cleaning up some uglyness.
1154         (gtk_accel_group_attach): remove and add the weak notifier when
1155         changing the accel groups slist.
1156         (gtk_accel_group_detach): same here.
1157
1158 2001-08-17  Darin Adler  <darin@bentspoon.com>
1159
1160         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
1161         missing parameters to utf8 functions to make it compile.
1162
1163 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
1164
1165         * gtk/gtktreeprivate.h:
1166         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
1167         (gtk_tree_view_init), (gtk_tree_view_set_property),
1168         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
1169         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
1170         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
1171         (gtk_tree_view_set_destroy_count_func),
1172         (gtk_tree_view_set_enable_search),
1173         (gtk_tree_view_get_enable_search),
1174         (gtk_tree_view_get_search_column),
1175         (gtk_tree_view_set_search_column),
1176         (gtk_tree_view_get_search_equal_func),
1177         (gtk_tree_view_set_search_equal_func),
1178         (gtk_tree_view_search_dialog_destroy),
1179         (gtk_tree_view_search_position_func),
1180         (gtk_tree_view_interactive_search),
1181         (gtk_tree_view_search_delete_event),
1182         (gtk_tree_view_search_button_press_event),
1183         (gtk_tree_view_search_key_press_event),
1184         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
1185         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
1186         * gtk/gtktreeview.h:
1187         Add heavily modified patch from Kristian Rietveld to handle
1188         interactive searching.
1189
1190 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
1191
1192         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
1193         string parameter.
1194
1195         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
1196         GtkMenuShell::selection_done, now that we have it, instead of 
1197         ::deactivate so we're not tearing the menu apart and notify
1198         the user prematurely.
1199
1200 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
1201
1202         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
1203         window, clear window->need_default_position to avoid infinite loops.
1204         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
1205
1206 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
1207
1208         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
1209         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
1210         (gtk_tree_view_set_property): don't cast possible NULL objects.
1211         (gtk_tree_view_destroy): reset the model to NULL.
1212
1213         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
1214         parent_class handler.
1215
1216 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1217
1218         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
1219
1220 >>>>>>> 1.2276
1221 2001-08-17  Anders Carlsson  <andersca@gnu.org>
1222
1223         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
1224         point numbers so that the result will be floating point.
1225
1226 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1227
1228         * tests/testgtk.c (create_handle_box): 
1229         (create_toolbar): Replace gtk_window_set_policy calls by
1230         gtk_window_set_resizable.
1231
1232 2001-08-16  Jakub Steiner <jimmac@ximian.com>
1233
1234         * gtk/stock-icons/dialog_info.png: new style bulb
1235         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
1236         * gtk/stock-icons/dialog_warning.png: need a hand?
1237         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
1238           the aa border gets chopped off ok
1239         * gtk/stock-icons/stock_colorselector.png: using the new hand
1240         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
1241           this one is for, but the old icon was butt ugly.
1242         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
1243         * gtk/stock-icons/stock*_insert_object.png: "
1244         * gtk/stock-icons/stock_index.png: using new hand icon
1245         * gtk/stock-icons/stock*_new.png: the document template being used 
1246           elsewhere too
1247         * gtk/stock-icons/stock*_print*.png: new print and print preview 
1248           icons (panel/menu)  
1249         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
1250           icons based on Tuomas' floppy image.
1251         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
1252         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
1253         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
1254         * gtk/stock-icons/stock*_undelete.png: "
1255         * gtk/stock-icons/stock_preferences.png: I have a version with a 
1256           document base if the sliders are no good.
1257         * gtk/stock-icons/stock_properties.png: properties 
1258         
1259
1260         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
1261           (tigert@ximian.com) clipboard icons
1262         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
1263         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
1264         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
1265           little bigger IMHO
1266
1267 2001-08-16  Sven Neumann  <sven@gimp.org>
1268
1269         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
1270
1271 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
1272
1273         * gtk/gtkcellrenderertext.c:
1274         Avoid warning when specifying NULL for "attributes" property
1275
1276 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1277
1278         * docs/debugging.txt: Add a warning about --enable-debug=no,
1279         some editorial changes.
1280
1281 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1282
1283         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
1284         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
1285         debugging info, remove unused debug flags. (#58330)
1286
1287 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
1288
1289         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
1290         (gtk_tree_selection_select_all): Remove strict checking for rows.
1291
1292 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1293         
1294         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
1295         Don't remove the tooltip window when the tip text changes. (#15891)
1296
1297 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
1298
1299         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
1300         $(srcdir).
1301
1302 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
1303
1304         * Makefile.am (EXTRA_DIST): Fix problem with trying to
1305         dist files from intl/, which is no longer there.
1306
1307 2001-08-11  Hans Breuer  <hans@breuer.org>
1308
1309         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
1310           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
1311           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
1312           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
1313           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
1314           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
1315
1316         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
1317           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
1318         GDK_TYPE_EVENT signals
1319
1320         * gtk/gtkalignment.c : removed 'direct allocation bug',
1321         which Tim discovered while reading the patch
1322
1323 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
1324
1325         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
1326         compat macros for push/pop/set_visual that were supposed
1327         to be added a long time ago, but got dropped. 
1328
1329 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
1330
1331         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
1332         property notifies.
1333
1334 2001-08-07  Havoc Pennington  <hp@pobox.com>
1335
1336         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
1337
1338         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
1339         some fixage is needed here, but nothing simple. Owen understands
1340         it. ;-)
1341
1342         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
1343         sizing and positioning.  Also, fix bug in compute_geometry_hints
1344         (width/height confusion for setting min size). 
1345         (gtk_window_move): new function
1346         (gtk_window_resize): new function
1347         (gtk_window_get_size): new function
1348         (gtk_window_get_position): new function
1349         (gtk_window_parse_geometry): new function
1350         
1351         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
1352         (gtk_widget_get_size_request): new function
1353         (gtk_widget_get_usize): delete, that was a short-lived function
1354         ;-)
1355         (gtk_widget_set_usize): deprecate
1356         (gtk_widget_set_uposition): deprecate, make it a trivial 
1357         gtk_window_move() wrapper
1358         (gtk_widget_class_init): remove x/y/width/height properties,
1359         add width_request height_request
1360         
1361         * demos/*: update to avoid deprecated functions
1362         
1363         * gtk/gtklayout.c: add x/y child properties
1364
1365         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
1366         uses of "gint16"
1367
1368         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
1369         sizing test
1370
1371         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
1372         configure events on toplevel windows are always in root window
1373         coordinates, following ICCCM spec that all synthetic events 
1374         are in root window coords already, while real events are 
1375         in parent window coords. Previously the code assumed that 
1376         coords of 0,0 were parent window coords, which was 
1377         really broken.
1378   
1379         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
1380         warning
1381  
1382         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
1383         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
1384         hints in gtk_window_parse_geometry()
1385  
1386         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
1387         new USER_POS USER_SIZE hints    
1388
1389 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1390
1391         * tests/prop-editor.c (properties_from_type): Use 
1392         g_object_class_list_properties to get the param specs 
1393         for a given type. (#58609)
1394
1395 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1396
1397         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
1398         free the text_aa parts. (#57549)
1399
1400 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1401
1402         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
1403         not the foreground color. (#57621)
1404
1405 2001-08-09  Alexander Larsson <alexl@redhat.com>
1406
1407         * gdk/win32/gdkfont-win32.c:
1408         Update to the new pango win32 api.
1409
1410 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
1411
1412         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
1413         COMPOUND_TEXT instead of TEXT
1414         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
1415         interpret the return value of g_string_to_compound_text()
1416         (#55152)
1417
1418 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1419
1420         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
1421         fail if iter is NULL. (#58347)
1422
1423 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1424
1425         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
1426         some off-by-one issues, fixing selection of line-ends. (#50323)
1427
1428 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1429
1430         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
1431         functions in order to make mouse operation work again in the
1432         color wheel. (#58604)
1433
1434 2001-08-07  James Henstridge  <james@daa.com.au>
1435
1436         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
1437         the accelerator when the accel object is changed.  Fixes bug
1438         #58628.
1439
1440 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
1441
1442         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
1443         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
1444         (gnome bugzilla #58202)
1445
1446 2001-08-06  Havoc Pennington  <hp@pobox.com>
1447  
1448         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
1449         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
1450         it was expecting a GdkWindow, not a GdkWindowImplX11.
1451  
1452         Also, we were getting the window rect in screen coords 
1453         and the screen rect in window coords then intersecting 
1454         them; instead, get window rect in window coords.
1455  
1456         Finally, there were codepaths that resulted in a stuck server grab
1457         (when the window was fully onscreen, or on gdk_image_new()
1458         failure); make the server ungrab thing a bit more
1459         robust/consistent.
1460
1461 2001-08-06  Sven Neumann  <sven@gimp.org>
1462
1463         * gdk/gdkpango.c (gdk_pango_context_destroy): 
1464         check if info->colormap != NULL before unref'ing it. It might have
1465         been set to NULL using gdk_pango_context_set_colormap().
1466
1467 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
1468
1469         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
1470         Fix conversion from float to int so that we don't get
1471         skew in the int => float => int roundtrip. 
1472         (#58120, reported by Vitaly Tishkov). Also fix problem
1473         where if no alpha was set, the returned alpha
1474         from (say) set_current_alpha() was returned as 1, not 65535.
1475
1476 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
1477
1478         * gtk/gtklist.c (gtk_list_clear_items): Fix
1479         problem with selecting a new focus child.
1480
1481         * gtk/gtklist.c (gtk_list_clear_items): Clear 
1482         list->undo/list_focus_child after unparenting
1483         child, since unparenting the child can result
1484         in list->last_focus_child being set. (#58024)
1485
1486         * Makefile.am (SUBDIRS): Add target specific pc
1487         files to DISTCLEANFILES.
1488
1489         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
1490         (58327, Matthias Clasen)
1491
1492 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
1493
1494         * tests/testgtk.c: Patch from Hans (with various modifications),
1495         to add the ability to use testgtk as a rough-and-ready
1496         benchmark. Try, 'testgtk --bench all:5' (if you want decent
1497         numbers, run without a window manager)
1498
1499 2001-08-04 Alexander Larsson <alexl@redhat.com>
1500
1501         * gdk/win32/gdkinput.c:
1502         Add #ifdef HAVE_WINTAB around wintab.h include.
1503
1504         * gtk/gtk.def:
1505         Removed marshals that have been moved to glib.
1506         Commented out plug and socket. They didn't compile for me 
1507         on win32.
1508
1509 2001-08-04  Hans Breuer  <hans@breuer.org>
1510
1511         * gtk/stocks-icons/makefile.msc : new file
1512         * gtk/makefile.msc.in : use it
1513
1514         * gtk/gtkstyle.c : not all platforms do provide M_PI and
1515         friends, but luckily there is G_PI
1516
1517         * gtk/gtk.def : updated
1518
1519         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
1520         windows WS_POPUP, but only those without a parent. This fixes the 
1521         mis-alignment between the selectable (temp, input only) window and 
1522         the window text of GtkLabel.
1523
1524         (gdk_window_show) : respect private->state when actually showing
1525         the window.
1526
1527         (gdk_window_set_transient_for) : Implementation from Wolfgang 
1528         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
1529         error handling. Should fix #50586.
1530
1531         * gdk/win32/gdkevents-win32.c : beautify log output
1532
1533 2001-08-04  Michael Natterer  <mitch@gimp.org>
1534
1535         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
1536         Need to show the image after adding it to the GtkImageMenuItem.
1537         This used to work without in testgtk because of the
1538         gtk_widget_show_all() at the end of the function.
1539         (Closes #54978).
1540
1541 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
1542
1543         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
1544         (gtk_notebook_set_child_property): fix finding of child's page,
1545         since we have to validly deal with labels and menus here as well.
1546         (gtk_notebook_get_child_property): fix warning.
1547         (gtk_notebook_class_init): property tab_pack is of type
1548         GTK_TYPE_PACK_TYPE (enum) not boolean.
1549         (gtk_notebook_find_child): don't always warn, we might be looking
1550         for a label or menu child.
1551         (gtk_notebook_map): fix mapping of panel.
1552
1553         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
1554         widget's mapped state, regardless of the value being set equals
1555         old settings, since things like REALIZED(parent) or MAPPED(parent)
1556         may have changed since the old value was set. make it an error to
1557         invoke this function on a toplevel widget.
1558
1559 2001-07-31  Darin Adler  <darin@bentspoon.com>
1560
1561         * gdk/gdkprivate.h:
1562         * gdk/x11/gdkx.h:
1563         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
1564
1565         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
1566         GTK_OBJECT.
1567
1568 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
1569
1570         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
1571         scoping error pointed out by matthiasc@poet.de.
1572
1573 2001-07-31  Sven Neumann  <sven@gimp.org>
1574
1575         * demos/gtk-demo/appwindow.c
1576         * demos/gtk-demo/item_factory.c
1577         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
1578
1579 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
1580
1581         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
1582         argument order for g_signal_has_handler_pending.
1583
1584 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
1585
1586         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
1587         instead of long deprecated g_scanner_stat_mode().
1588
1589 2001-07-29  Hans Breuer  <hans@breuer.org>
1590
1591         * gdk/makefile.msc : build in the backend dir after
1592         auto-generating files
1593
1594         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
1595         with code from win32-production-branch.
1596
1597         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
1598         before calling DestroyWindow, which indirectly calls 
1599         gdk_window_destroy_notify ()
1600
1601         (performance patch merged from win32-production-branch)
1602         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
1603         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
1604         R2_COPYPEN rop). It is claimed to be much faster.
1605
1606 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
1607
1608         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
1609         add an "attributes" property to the text renderer for ATK.
1610
1611 2001-07-26  Alex Larsson  <alexl@redhat.com>
1612
1613         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
1614         Initialize image->bits_per_pixel from the drawable, not from
1615         the root window.
1616
1617         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
1618         Fix cast. argument is an IMPL already.
1619
1620 2001-07-15  James Henstridge  <james@daa.com.au>
1621
1622         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
1623         (gtk_window_remove_accel_group): same here.
1624         (gtk_window_key_press_event): same here.
1625
1626         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
1627         (gtk_widget_remove_accelerator): same here.
1628         (gtk_widget_remove_accelerators): same here.
1629
1630         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
1631
1632         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
1633         instead of GtkObject.
1634
1635         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
1636         now takes GObjects.
1637
1638         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
1639         pass a GObject to gtk_accel_group_entries_from_object.
1640         (gtk_item_factory_create_item): s/accel_widget/accel_object/
1641
1642         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
1643
1644         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
1645
1646         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
1647         GObjects can have accelerators set now.  Add compatibility
1648         defines.
1649
1650         * gtk/gtkmarshal.list: add missing marshallers.
1651
1652         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
1653         accelerators on plain GObjects.  gtk_accel_group_object_destroy
1654         has been converted into a weak reference, and
1655         gtk_accel_group_delete_entries is now a destroy notify for that
1656         piece of data.
1657
1658 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
1659
1660         * gdk/gdkdraw.c: Added a check on the colormap depth to
1661         gdk_drawable_set_colormap()
1662         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
1663         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
1664         for pixmaps without visuals (more specifically, bitmaps)
1665         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
1666         doesn't set a colormap with the wrong depth
1667
1668
1669 2001-07-22  Anders Carlsson  <andersca@gnome.org>
1670
1671         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
1672         expander_height and expander_width properties with a single
1673         property, expander_size.
1674         (gtk_tree_view_init): Set the tab_offset to expander_size
1675         plus some padding.
1676         (gtk_tree_view_unrealize): Remove the expand/collapse
1677         timeout if it exists.
1678         (coords_are_over_arrow): Fix a small bug.
1679         (gtk_tree_view_motion_draw_column_motion_arrow): Use
1680         expander_size.
1681         (gtk_tree_view_draw_focus): Use "treeview" instead of
1682         "add-mode" as detail when drawing the focus.
1683         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
1684         instead of "add-mode" as detail when drawing the focus.
1685         (gtk_tree_view_deleted): If we have a node currently being
1686         expanded or collapsed, remove the timeout and set the node 
1687         to NULL.
1688         (gtk_tree_view_queue_draw_arrow): New function that just
1689         redraws the arrow of a node.
1690         (gtk_tree_view_draw_arrow): Use expander_size instead of
1691         expander_width/expander_height, also pass a different
1692         expander_style to gtk_paint_expander depending on the 
1693         state of the node being drawn.
1694         (expand_collapse_timeout): New function for expanding 
1695         or collapsing a node depending on the previous state.
1696         (gtk_tree_view_real_expand_row): Add timeout and set 
1697         correct state for node being expanded.
1698         (gtk_tree_view_real_collapse_row): Add timeout and set
1699         correct state for node being collapsed.
1700
1701         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
1702         information about the node currently being expanded or
1703         collapsed, and also a timeout id.
1704
1705         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
1706         with expander_style for draw_expander.
1707
1708         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
1709         expander_style.
1710         (create_expander_affine): New function for creating an 
1711         expander affine.
1712         (apply_affine_on_point): New function for applying an 
1713         affine to a point.
1714         (gtk_default_draw_expander): Modified to take expander_style
1715         instead of is_open, and to draw the rectangle rotated differently
1716         depending on the expander style.
1717         (gtk_paint_expander): Replace is_open with expander_style.
1718
1719         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
1720
1721         * gtk/gtkenums.h: Add expander style enum.
1722
1723 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
1724
1725         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
1726         value from gtk_tree_model_get_iter, the model might be empty.
1727
1728 2001-07-20  Hans Breuer  <hans@breuer.org>
1729
1730         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
1731         gdk/gdkinput.c like the other backends
1732
1733         * gdk/win32/gdkinput-win32.h :
1734         * gdk/win32/gdkinput.c :
1735         * gdk/win32/gdkvisual-win32.c :
1736         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
1737         GdkVisual GObjectification. UNTESTED for pen-devices because
1738         I simply have none.
1739
1740         * gdk/gdk.def :
1741         * gtk/gtk.def : updated externals
1742
1743         * gtk/gtkiconfactory.c :
1744         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
1745         before passing &error to functions to avoid strange crashes
1746         
1747         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
1748
1749         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
1750
1751         * gtk/makefile.msc.in : updated
1752
1753 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
1754
1755         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
1756         Add property support. (#51858)
1757
1758 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
1759
1760         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
1761         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
1762         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
1763
1764 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
1765
1766         * gtk/gtkcolorsel.c: Add propery support (roughly
1767         based on patch from Lee Mallabone, #51014)
1768
1769         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
1770         deprecated, since we already g_warning() on it.
1771
1772 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
1773
1774         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
1775         typo that sometimes caused selection not to work properly.
1776
1777         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
1778         entry when tabbing in. (#57743)
1779         
1780         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
1781         user drags up above or down below the entry, move
1782         to the end or the beginning of the entry. (Suggestion
1783         from Jay Cox, #50940)
1784
1785         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
1786         a current selection, then when moving by chars or
1787         words, move to the end of the selection rather than
1788         from entry->current_pos. (Suggestion from Jay Cox,
1789         #50942)
1790         
1791 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
1792
1793         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
1794         set window->decorated. (Patch from Hidetoshi Tajima,
1795         #55846)
1796
1797 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
1798
1799         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
1800         the widget/child realization/mapping invariants.
1801
1802         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
1803         gtk_widget_[get/set]_child_visible() to control
1804         whether visible children of a mapped window are
1805         mapped.
1806
1807         * docs/widget_system.txt: Updated for changes in
1808         container contract, and addition of GTK_CHILD_VISIBLE.
1809
1810         * gtk/gtkcontainer.c: Add generic map()/unmap()
1811         functions that work for almost all containers.
1812
1813         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
1814         gtk_widget_set_child_visible() where necessary.
1815
1816         * gtk/*.c: Remove excess map(), unmap(), and 
1817         realization/mapping invariant enforcing code
1818         from many containers.
1819
1820 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
1821
1822         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
1823         Get the foreground color from 'text', nor 'fg'. (#57568)
1824
1825 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
1826
1827         * gtk/*.c: Patch from Matthias Clasen to remove remove
1828         all instances of g_return_if_fail (foo != NULL); that are
1829         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
1830         since the second check catches the NULL anyways.
1831
1832 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
1833
1834         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
1835         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
1836         GDK_THREADS_ENTER()/LEAVE() pairs.
1837
1838         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
1839         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
1840         pairs. (Problem found by M. Meeks)
1841
1842 2001-07-18  Darin Adler  <darin@bentspoon.com>
1843
1844         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
1845         that we don't get a g_warning message every time we register a new
1846         icon size.
1847
1848         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
1849         using pixel variable of the correct type.
1850         
1851 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
1852
1853         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
1854         so that using X functions on a GdkWindow is possible, if
1855         a little hairy.
1856
1857         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
1858         and ts_origin of a GC, so that external parties can offset/restore
1859         a GC, when using gdk_window_get_internal_paint_info().
1860
1861 2001-07-17  Darin Adler  <darin@bentspoon.com>
1862
1863         * .cvsignore: Ignore the sgml directory made by gtkdoc.
1864         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
1865         instead of the deprecated gtk_window_set_policy.
1866         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
1867         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
1868         function to get rid of warning and some code too.
1869         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
1870         missing const.
1871         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
1872         unused local.
1873         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
1874         const.
1875         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
1876         (gdk_utf8_to_compound_text): Add missing const.
1877         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
1878         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
1879         cast and get rid of an unnecessary one.
1880         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
1881         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
1882         local.
1883         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
1884         Remove unused local.
1885         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
1886         missing const.
1887         * tests/testsocket.c: (add_child): Add cast so the printf format
1888         doesn't make us implicitly depend on what integer type
1889         gtk_socket_get_id returns.
1890         * tests/testtextbuffer.c: Add missing const.
1891         * tests/testtreefocus.c: (main): Remove unused local.
1892         * tests/treestoretest.c: (iter_remove): Remove unused local.
1893         (uppercase_value): Remove unused function.
1894         (make_window): Add statement to quiet the compiler's uninitialized
1895         variable warning.
1896
1897 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
1898
1899         * gtk/gtkrange.c:
1900         (second_timeout): 
1901         (initial_timeout): 
1902         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
1903         (gtk_range_calc_layout): compute the new layout based on an
1904         adjustment->value being passed in as argument.
1905         (gtk_range_button_press): for button2 slider warps, first recalc
1906         the layout, then adjust the value. also, use update_slider_position()
1907         for adjusting the value, so we keep pixel quantisation at which we
1908         usually operate (upon motion or button releases). the reason for this
1909         is that, we can't change the adjustment upon button2 presses to a non
1910         quantised value and upon button2 release re-quantise the value since
1911         that'd alter the value even if we didn't get any motion events (causing
1912         unexpected scroll area warps upon release and/or slider pixel-jitter).
1913         (gtk_range_motion_notify): update the slider position from queried
1914         coordinates, not event coordinates.
1915
1916 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
1917
1918         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
1919         the default gc values are: width=0, CapBut, JoinMiter.
1920
1921 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
1922
1923         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
1924         into account the xpad and ypad when calculating the width and the
1925         height of the pixbuf cel.
1926
1927 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
1928
1929         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
1930         Rename to gtk_radio_menu_item_get_group(), add deprecated
1931         alias. (#57044)
1932
1933         * gtk/gtkfilesel.c: Indentation fix.
1934
1935 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
1936
1937         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
1938         Hasselmann to fix warnings in compat macros. 
1939         (#56773)
1940
1941         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
1942         stupid wrong cast added in last patch.
1943
1944 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
1945
1946         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
1947         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
1948
1949 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
1950
1951         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
1952         missing cast.
1953
1954         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
1955         NULL/FALSE return value confusion.
1956
1957         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
1958         problem when scrollbar completely fills range. (Patch
1959         from  Matthias Clasen, #57047)
1960
1961 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
1962
1963         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
1964         clean up when handling events for move-resize emulation.
1965         (Problem traced down by Matthias Clasen, #57271)
1966
1967 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
1968
1969         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
1970           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
1971           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
1972           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
1973           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
1974           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
1975           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
1976         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
1977
1978 2001-07-09  Peter Williams  <peterw@ximian.com>
1979
1980         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
1981         for when srcdir != builddir
1982
1983 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
1984
1985         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
1986         gtk_tree_model_get_iter_root.
1987
1988         * gtk/gtkliststore.c: Add a bunch of g_return statements.
1989         (gtk_list_store_iter_n_children): Fix up.
1990
1991         * gtk/gtktreestore.c: Add a bunch of g_return statements.
1992
1993 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
1994
1995         * gtk/gtkwidget.c (gtk_widget_class_init):
1996         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
1997         restore some workingness.
1998
1999         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
2000         handle of window type for input-only windows.
2001
2002 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
2003
2004         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
2005         Patch from Gregory Merchan to add 
2006         gtk_button_box_set_secondary(), which separates
2007         the child into a separate group from the normal
2008         buttons. (#56331)
2009
2010         * gtk/gtkdialog.c: Make help buttons secondary by
2011         default.
2012
2013         * gtk/gtkbbox.c: Added a child property "secondary".
2014
2015         * gtk/testgtk.c: Turn on the help button for the 
2016         color selector to check that it properly appears
2017         as secondary.
2018
2019 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
2020  
2021         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
2022         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
2023         Add gdk_set_pointer_hooks() to allow pointer-querying to
2024         be hooked by an event record/playback system like GERD.
2025         (#56914)
2026         
2027 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
2028
2029         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
2030         in the right value of initial_emission to
2031         gtk_widget_set_style_internal (#57091)
2032
2033 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
2034
2035         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
2036         Make compile.
2037
2038         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
2039         with calling gtk_widget_set_style_internal() with
2040         the old style, not the new style. (#56989)
2041
2042 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
2043
2044         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
2045           gtk/gtkwidget.c:
2046         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
2047         not GTK_WIDGET_GET_ANCESTOR ... see 
2048         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
2049         Indicate the best practice in the docs for gtk_widget_get_toplevel().
2050
2051         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
2052         so GtkPlug can give the correct signals when transforming
2053         from a child to a toplevel.
2054         
2055         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
2056         reparentation correctly.
2057
2058         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
2059         Propagate the previous_toplevel argument down properly.
2060
2061         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
2062         of wrong atr list.
2063
2064         * gtk/gtkplug.[ch]: Add an "embedded" signal.
2065
2066         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
2067         signals.
2068
2069         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
2070         functions gtk_plug_get_id(), gtk_socket_get_id(),
2071         to avoid the user having to worry about realization,
2072         and gdkx.h.
2073
2074         * tests/testsocket.c: Extend to try out the new signals
2075         and gtk_plug/socket_get_id().
2076
2077         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
2078         setting of underline attributes.
2079
2080         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
2081         DestroyNotify events from SubstructureNotifyMask
2082
2083         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
2084         Switch GDK_WINDOW_TYPE (window) as needed.
2085
2086         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
2087         allow creation of toplevel windows as children of
2088         foreign windows.
2089
2090         * gtk/gtkplug.c: Remove hacks involving changing private
2091         fields of GdkWindow.
2092
2093         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
2094         exactly the same signals and notification
2095         be emitted for local embedding as for inter-process
2096         embedding.
2097
2098 2001-07-04  James Henstridge  <james@daa.com.au>
2099
2100         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
2101
2102 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
2103
2104         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
2105         XEMBED embedding add a _XEMBED_INFO property to the
2106         client with version number and a "mapped" flags.
2107         Use the mapped flag instead of the racy MapRequestEvent
2108
2109         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
2110         code to reliably set things (when the child is a passive
2111         embedder participating in the XEMBED protocol) intead
2112         of just being a hack for embedding non-participating
2113         programs. Fix various bugs and race conditions.
2114         
2115         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
2116         work by simply making the GtkSocket the gtk parent
2117         of the GtkPlug. Set a flag in this case and make
2118         the GtkPlug work like a normal container by overriding
2119         methods such as check_resize and "chaining past" GtkWindow
2120         to GtkBin.
2121
2122         * gtk/gtkentry.c (gtk_entry_real_activate)
2123           gtk/gtkmain.c (gtk_propagate_event): 
2124         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
2125         
2126         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
2127         gtk_widget_get_ancestor):
2128         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
2129         might not give the expected result and recommend
2130         an alternative.
2131
2132         * tests/testsocket.c tests/testsocket_child.c
2133         tests/testsocket_common.c tests/Makefile.am: Extended
2134         to test different type of adding plugs to sockets
2135         (local,active,passive), and to test mapping/unmapping
2136         the plug.
2137
2138         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
2139         mark the window as destroyed until after we
2140         called _gdk_windowing_window_destroy().
2141         (_gdk_windowing_window_destroy() may use GDK functions
2142         on the window.)
2143
2144         * gdk/x11/gdkinput.c: Remove the check for finalization - 
2145         devices can be finalized under some circumnstances.
2146  
2147         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
2148         small problem with GDK_TYPE_DEVICE.
2149  
2150 2001-07-02  Havoc Pennington  <hp@pobox.com>
2151
2152         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
2153         use constants not atoms.
2154
2155 2001-07-02  James Henstridge  <james@daa.com.au>
2156
2157         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
2158         PANGO_TYPE_TAB_ARRAY.
2159
2160         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
2161         for PANGO_TYPE_TAB_ARRAY.
2162
2163         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2164         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
2165
2166         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
2167         the file.  Remove Pango types from defs -- they are now defined in
2168         libpango.
2169
2170 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
2171
2172         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
2173
2174         * gtk/gtkobject.c (gtk_object_destroy): invoke
2175         g_object_run_dispose().
2176
2177         * gtk/gtkwindow.c: 
2178         * gtk/gtkwidget.c: 
2179         * gtk/gtkobject.c:
2180         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
2181         method.
2182
2183 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
2184
2185         * gtk/gtktypeutils.c (gtk_type_class): Remove
2186         change check for GTK_TYPE_OBJECT derivation to
2187         G_TYPE_OBJECTS - it's Tim-approved to use this 
2188         for arbitary objects.
2189
2190         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
2191         prefix gtk_container_dequeue_resize_handler().
2192
2193         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
2194         to the hierarachy_changed signal, since you otherwise
2195         have to always keep that around.
2196
2197         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
2198         for extra argument to hierarchy_changed.
2199
2200 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
2201
2202         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
2203         for style to mean "revert to default style"
2204
2205         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
2206           gtk_widget_restore_default_style): Make this functions
2207         deprecated aliases for gtk_widget_set_style (widget, NULL).
2208
2209         * gtk/gtkwidget.[ch]: Remove:
2210            gtk_widget_set_default_style ()
2211            gtk_widget_push_style ()
2212            gtk_widget_pop_style ()
2213         These functions interact are overriden by RC files, and
2214         thus virtually useless, and complicated.
2215
2216 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
2217
2218         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
2219         most of the previous global variables in gtkrc.c. This is
2220         in preparation for multi-head, since each screen can
2221         have different GtkSettings and RC information.
2222
2223         * gtk/gtkrc.[ch]: 
2224
2225         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
2226         GtkSettings parameter to GtkRcStyle::parse.
2227
2228         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
2229         Add two new settings gtk-theme-name, gtk-key-theme-name,
2230         for RC files that are loaded by name after reading
2231         the default RC files.
2232         
2233         * gtk/gtkrc.c: Allow priorities for styles, as wll as
2234         bindings.
2235
2236         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
2237         and use it by default for RC files loaded via 
2238         gtk-theme-name, gtk-key-theme-name.
2239
2240         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
2241         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
2242         tests/testgtkrc: Require pathnames to be absolute.
2243
2244         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
2245         the source when parsing, since the operation of looking up a
2246         pixmap from an RC file depends on the parsing context.
2247
2248         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
2249         reset RC styles on all widgets when files are reparsed.
2250
2251         * tests/testgtk.c (create_rc_file) 
2252           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
2253         Simplify, now that gtk_rc_reparse_all() resets styles on
2254         all widgets itself.
2255
2256         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
2257         return value.
2258
2259         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
2260         GtkSettings argument.
2261
2262         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
2263         gtk_settings_get_global().
2264
2265         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
2266         to get the appropriate GtkSettings for a widget. (For now,
2267         just gets the default GtkSetttings.) 
2268
2269         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
2270           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
2271         changes.
2272
2273         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
2274         getting a style for a path without actually having a widget.
2275         (Allows using a style for a subpart of a widget, for
2276         example.)
2277
2278         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
2279         the RC files to be reloaded for just one GtkSettings
2280         (not sure how useful this really is.)
2281
2282         * gtk/gtkrc.h: Deprecate
2283         gtk_rc_add_widget_name/widget_class/class_style
2284
2285 2001-06-30  Alex Larsson  <alexl@redhat.com>
2286
2287         * gdk/linux-fb/gdkinput-none.c:
2288         * gdk/linux-fb/gdkinput.c:
2289         * gdk/linux-fb/gdkinputprivate.h:
2290         Convert GdkDevice to a GObject.
2291
2292         * linux-fb/gdkprivate-fb.h:
2293         * linux-fb/gdkvisual-fb.c:
2294         Convert GdkVisual to a GObject.
2295
2296 2001-06-29  Alex Larsson  <alexl@redhat.com>
2297
2298         * gdk/gdkvisual.h:
2299         * gdk/gdkcolor.c:
2300         * gdk/x11/gdkx.h:
2301         * gdk/x11/gdkvisual-x11.c:
2302         Convert GdkVisual to a GObject.
2303
2304         * gdk/gdkinput.h:
2305         * gdk/gdkevents.c:
2306         * gdk/x11/gdkinputprivate.h:
2307         * gdk/x11/gdkinput-gxi.c:
2308         * gdk/x11/gdkinput-none.c:
2309         * gdk/x11/gdkinput-x11.c:
2310         * gdk/x11/gdkinput-xfree.c:
2311         * gdk/x11/gdkinput.c:
2312         Convert GdkDevice to a GObject.
2313
2314 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
2315
2316         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
2317         to just plain new, fixing the number of columns, and column types
2318         at creation time.
2319
2320         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
2321
2322         * gtk/gtkcellrenderertext.c
2323         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
2324         height to a specific font.
2325
2326         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
2327
2328         * tests/*c: change to work with new store models.
2329
2330 2001-06-29  Havoc Pennington  <hp@redhat.com>
2331
2332        * Throughout: fixes to compile with G_DISABLE_COMPAT
2333         (s/g_signal_connectc/g_signal_connect/,
2334         s/g_signal_newc/g_signal_new/,
2335         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
2336
2337 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
2338
2339         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
2340         add path argument to selection callbacks.
2341
2342 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
2343
2344         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
2345         walk through a model in a depth first manner, with the option to
2346         break out.
2347
2348 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
2349
2350         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
2351         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
2352         column and follow it when draged, rather than a location in the
2353         view. "expander_column" property and drawing functions changed
2354         accordingly.  Fixes bug #55942.
2355
2356         (gtk_tree_view_{set,get}_expander_column): Now works with a
2357         GtkTreeViewColumn* instead of int.
2358
2359 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
2360
2361         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
2362
2363 2001-06-28  Havoc Pennington  <hp@pobox.com>
2364
2365         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
2366         image data to the screen, using a server grab to avoid race
2367         conditions.
2368
2369         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
2370         check for NULL return from gtk_image_new_from_stock(), it never
2371         returns NULL.
2372         (gtk_item_factory_create_item): fix bug where we parsed the stock
2373         ID as an inline pixbuf
2374
2375         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
2376
2377         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
2378         support (should be using binding set here)
2379
2380         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
2381         support (should be using binding set here)
2382
2383         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
2384         support
2385
2386         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
2387
2388         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
2389
2390         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
2391
2392         * gtk/gtkimcontextsimple.c
2393         (gtk_im_context_simple_filter_keypress): keypad
2394
2395         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
2396
2397         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
2398
2399         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
2400
2401         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
2402         should be binding-setted)
2403
2404         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
2405
2406         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
2407
2408         * gtk/gtkcalendar.c: numeric keypad fixes
2409
2410         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
2411         support
2412
2413         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
2414         screwup
2415
2416         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
2417         clip the render area to the drawable's clip region in advance,
2418         so we don't get data from the server that we don't need.
2419
2420         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
2421         check return value of gdk_pixbuf_get_from_drawable(), fall back 
2422         to bilevel alpha if we can't get the pixbuf to composite against.
2423
2424         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
2425
2426         * gdk/gdkimage.c (gdk_image_get_colormap): add
2427         gdk_image_set_colormap, gdk_image_get_colormap
2428
2429         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
2430         take a region of the image, instead of converting the entire
2431         image.
2432
2433         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
2434         keybinding signal. Add default bindings for it. Add default
2435         handler for show_help that shows the tooltip for the widget.
2436
2437         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
2438         "close" keybinding signal, remove key press handler.
2439
2440         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
2441         it's not our usual practice to leave a deprecated function around
2442         with a runtime warning, plus we don't want it to appear in docs,
2443         plus if we make them yellow no one will want to change them
2444         anyhow.
2445
2446 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
2447
2448         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
2449         GTK_WIDGET_REALIZE() for resize queueing.
2450
2451         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
2452         GTK_WIDGET_REALIZE() for post event delivery destruction upon
2453         GDK_DESTROY.
2454         
2455         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
2456         sompensate for former (pre-2.0) connect_after() facility.
2457         (gtk_widget_send_expose): 
2458         (gtk_widget_event): assert the widget is realized, since event delivery
2459         to non-realized widgets is essentially a bug. event handlers should
2460         be able to unconditionally rely on widget->window (unless they
2461         emit events on their own which can trigger widget destruction).
2462         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
2463         logic. event delivery happens as follows:
2464         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
2465         b) if !was_handled in (a) and the widget is still realized, emit event-
2466            specific signal (RUN_LAST handler). returns was_handled.
2467         c) emission of GtkWidget::event-after for notification if the widget is
2468            still realized (regardless of was_handled from previous stages, no
2469            class handler). no return value.
2470         d) was_handled gets passed on to caller, to determine further
2471            propagation. if the widget got unrealized meanwhile, was_handled
2472            is returned as TRUE.
2473
2474         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
2475         gdk_event_get_coords().
2476
2477 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
2478
2479         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
2480         age 0, binary age 0. depend on glib 1.3.7.
2481
2482         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
2483
2484         * gtk/gtkmenubar.c: same here.
2485         
2486         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
2487
2488         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
2489
2490         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
2491         
2492         * gtk/gtkmenubar.c (add_to_window): likewise.
2493         
2494         * gtk/gtktextbtree.c: and here...
2495         
2496         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
2497         
2498         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
2499         
2500         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
2501         
2502         * gtk/gtktreeviewcolumn.c:
2503         (_gtk_tree_view_column_set_tree_view): yet again.
2504
2505         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
2506         signal connections without g_signal_connect_data().
2507         
2508         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
2509         demo of the matter.
2510         
2511         * demos/testpixbuf.c (main): running out of equality phrases for the
2512         ChangeLog, but had to adapt connections here as well.
2513         
2514         * demos/testanimation.c (progressive_timeout): and for the fun of it,
2515         tackled this the same way.
2516         
2517         * tests/testtext.c (create_view): ok, it's becoming a pain at this
2518         point, but had enough enery for one more fix.
2519
2520         * tests/testtreecolumns.c (main): stand up man, do your work!
2521
2522         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
2523         fix, either that's been all of it or CVS gtk is broken yet again.
2524         
2525 2001-06-29  James Henstridge  <james@daa.com.au>
2526
2527         The following changes correspond to bug #56812
2528
2529         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
2530         code for GdkDevice.
2531
2532         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
2533         GdkCursor.
2534
2535 2001-06-19  Havoc Pennington  <hp@pobox.com>
2536
2537         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
2538         for mapping a window without fooling with stacking order, but
2539         updating the "withdrawn" flag
2540
2541         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
2542         filtering as soon as possible, moving move resize and wmspec_check
2543         handling after the event filter.  Make default filter apply to all
2544         events, not just those with no GdkWindow wrapped around the X
2545         window. Fix a FIXME about how the window could be a pixmap using 
2546         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
2547
2548         Also, be robust against events not on a known GdkWindow.
2549
2550         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
2551         gdk_x11_ungrab_server): export reference-counted server grabs, so
2552         other people can grab server over a GDK function that also does
2553         so.
2554
2555 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
2556
2557         * gtk/gtktreeviewcolumn.c
2558         (gtk_tree_view_column_pack_start_cell_renderer): New function to
2559         reflect that you can (hypothetically) pack cell renderers into a
2560         column.
2561         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
2562         (gtk_tree_view_column_cell_is_visible): Move more functionality to
2563         the column.
2564         (gtk_tree_view_column_cell_can_focus): Move more functionality to
2565         the column.
2566
2567         * gtk/gtktreeview.c: Move to use new column-packing code.
2568         (gtk_tree_view_real_expand_row): remove totally braindead code.
2569         (gtk_tree_view_real_collapse_row): ditto.
2570
2571 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
2572
2573         * gtk/gtktreeviewcolumn.c: Fix a typo.
2574         
2575 2001-06-26  Joel Becker  <jlbec@evilplan.org>
2576
2577         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
2578           at the end of the file
2579
2580 2001-06-26  Havoc Pennington  <hp@redhat.com>
2581
2582         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
2583
2584 2001-06-26  Havoc Pennington  <hp@redhat.com>
2585
2586         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
2587         property
2588
2589 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
2590
2591         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
2592         stupid missing statement
2593
2594         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
2595         private function for ATK.  It notifies you of how many _visible_
2596         children are deleted when a node is deleted.  Should be used by
2597         atk only.
2598
2599 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
2600
2601         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
2602         Use new pango_context_get_metrics() to fix problems
2603         with font lists in descriptions. (#56184, reported by
2604         Jonas Borgström)
2605
2606 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
2607
2608         * gtk/gtkiconfactory.c:
2609         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
2610         item factory so inlined pixbufs actually work.
2611
2612 2001-06-25  Havoc Pennington  <hp@redhat.com>
2613
2614         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
2615         s/RESIZEABLE/RESIZABLE/
2616
2617         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
2618
2619 2001-06-25  Alexander Larsson  <alexl@redhat.com>
2620
2621         * configure.in:
2622         Added --enable-fbmanager. This is some experimental code
2623         that lets several GtkFB apps coordinate their access to the
2624         framebuffer.
2625         
2626         * acconfig.h:
2627         Added ENABLE_FB_MANAGER.
2628
2629         * gdk/linux-fb/Makefile.am:
2630         Added gdkfbmanager and gdkfbswitch.
2631
2632         * gdk/linux-fb/gdkkeyboard-fb.c:
2633         * gdk/linux-fb/gdkmouse-fb.c:
2634         * gdk/linux-fb/gdkprivate-fb.h:
2635         Split device init and open so that
2636         they can be opened and closed while switched
2637         away.
2638
2639         * gdk/linux-fb/gdkmain-fb.c:
2640         Add the basic manager communication.
2641
2642         * gdk/linux-fb/gdkrender-fb.c:
2643         Don't update to the shadow fb if we're
2644         blocked by the fb manager.
2645
2646 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
2647
2648         * docs/Changes-2.0.txt: Add note about child property
2649         changes.
2650
2651 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
2652
2653         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
2654         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
2655
2656         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
2657         with un'reffing wrong list reported by Jeff Franks.
2658
2659         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
2660
2661         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
2662         for the default icon. Remove inline XPM.
2663
2664         * gtk/gtkstock.h gtk/gtkiconfactory.c:
2665         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
2666         is used for GTK_STOCK_DND, but it is a bit too small.)
2667
2668         * gtk/stock-icons/stock_dnd_multiple.png
2669         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
2670
2671         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
2672         TRUE when starting a drag. In other cases, we are
2673         just observing. (#52995)
2674
2675         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
2676         function to set the icon for a drag from a GdkPixbuf
2677         or stock ID.
2678
2679         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
2680         Likewise, for drag sources.
2681
2682         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
2683         (Now should be done using the stock system.)
2684
2685 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
2686
2687         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
2688         Removed - didn't work and not particularly useful anyways
2689         if it did. 
2690
2691 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
2692
2693         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
2694         introduced last night that was making things decidedly not work.
2695
2696         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
2697         so that we have getter/setter pairing everywhere it makes
2698         sense. (#55767)
2699
2700         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
2701         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
2702         deprecated compat macro. (#55516)
2703
2704         * gtk/gtklabel.[ch]: Add functions
2705         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
2706         gtk_label_set_label(), which mirror the property API for GtkLabel.
2707         Make gtk_label_get_attributes() only reflect the attributes
2708         set by gtk_label_set_attributes.
2709
2710         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
2711         from gtk_notebook_set_page().
2712
2713 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
2714
2715         * configure.in: Fix tests for XShm.h.
2716
2717         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
2718         gdk_image_new() by use of goto, properly use g_object_unref().
2719
2720 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
2721
2722         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
2723         calls, as GdkImage is an object. these should be g_obejct_unref()
2724         instead but that won't work because of the g_error() statement
2725         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
2726         to spot these places.
2727
2728 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
2729
2730         * modules/input/gtkimcontextxim.c: Fixup some problems with 
2731         text length handling in error cases.
2732
2733         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
2734         a bit to make test actually warn on attempt to allocation
2735         a negative size. (#56101, Matthias Clasen)
2736
2737 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
2738
2739         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2740         noticed by Brian Cameron.
2741         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
2742         Cameron.
2743
2744 2001-06-22  Hans Breuer  <hans@breuer.org>
2745
2746         * gdk/gdk.def : updated externals
2747
2748         * gdk/win32/gdkdrawable-win32.c : corrected some casts
2749         in GDK_NOTEs
2750
2751         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
2752         to translate coordinates to the internal > 16 bit system
2753         Try to handle WM_WINDOWPOSCHANGED to get better performance for
2754         when moving/resizing
2755
2756         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
2757         and gdk_keymap_get_direction (). The latter is untested for
2758         the RTL case
2759
2760         * gtk/gtk.def : updated externals
2761
2762         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
2763         from pango_language_from_string (), not an already freed pointer
2764
2765         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
2766         binary (-kb) to be useable on windoze
2767  
2768 2001-06-21  Alexander Larsson  <alexl@redhat.com>
2769
2770         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
2771         Update to new PangoLanguage changes.
2772         
2773         * gtk/gtkwindow-decorate.c:
2774         * gtk/gtkwindow.[ch]:
2775         Added setting argument to gtk_window_set_has_frame ()
2776         
2777 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
2778
2779         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
2780         the case without XKB properly.
2781
2782         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
2783         unused gtk_rc_auto_parse variable.
2784
2785         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
2786         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
2787         longer needed with GdkPixbuf.
2788
2789         * gtk/gtkrc.c (_gtk_rc_init): Make private.
2790
2791 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
2792
2793         * gtk/gtkentry.h: Mark deprecated functions with
2794         GTK_DISABLE_DEPRECATED.
2795
2796 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
2797
2798         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
2799
2800         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
2801
2802         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
2803           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
2804           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
2805           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
2806           to recent changes in Pango.
2807
2808         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
2809           to test whether the basic engine honors them.
2810
2811 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
2812
2813         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
2814         gtk_container_child_get_property().
2815
2816 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
2817
2818         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
2819         (gtk_tree_view_move_cursor_page_up_down): implement.
2820
2821 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
2822
2823         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
2824         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
2825         don't use automatic fixed size buffer for printf-ing floats, doubles
2826         can expand to really _huge_ strings, use g_strdup_printf() instead.
2827
2828 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
2829
2830         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
2831         construct property in 1.2 and still needs to be.
2832
2833         * gtk/gtkwidget.c: "composite_child" is not a settable property.
2834
2835 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
2836
2837         * gtk/gtkliststore.c (gtk_list_store_clear): 
2838         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
2839         clear a model.
2840
2841 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
2842
2843         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
2844
2845         * gtk/Makefile.am:
2846         * gtk/gtk.h: disabled GtkPacker compilation.
2847
2848         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
2849
2850         * gtk/gtknotebook.c:
2851         * gtk/gtktable.c:
2852         * gtk/gtkbox.c: ported this over to child properties.
2853
2854         * gtk/gtksettings.c: fetch class properties via
2855         g_object_class_list_properties().
2856
2857         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
2858         child arg interface. use gobjectnotifyqueue.c for child property
2859         notification.
2860
2861         * gtk/gtkwidget.[hc]: provide necessary means for container child
2862         properties, i.e. ::child_notify signal,
2863         gtk_widget_freeze_child_notify(),
2864         gtk_widget_child_notify(),
2865         gtk_widget_thaw_child_notify().
2866
2867         * tests/testgtk.c: removed inferior property handling code, for
2868         property editing, a generic module should be used, and GLE
2869         coincidentally fullfills that purpose.
2870
2871         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
2872         needs to be adapted to g_object_class_list_properties() before this
2873         builds again.
2874
2875 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
2876
2877         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
2878         test if a node is expanded.
2879
2880 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
2881
2882         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2883         where collapsing a selected row would result in the cursor/anchor
2884         getting screwed up.
2885
2886 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
2887
2888         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
2889         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
2890         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
2891         Now I can really reorder/sort all Store widgets.  treesorttest
2892         seems to just work now.
2893         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
2894         testtreesort worked through a big coincidence all this time.
2895         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
2896         code.
2897         * tests/testtreecolumns.c: Big 'ol warning at the top letting
2898         people know that this code should never ever ever be copied.
2899
2900 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
2901
2902         * gtk/gtkwindow.h: Fixed a small typo, it should be
2903         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
2904         on line 134.
2905
2906 2001-06-14  Havoc Pennington  <hp@redhat.com>
2907
2908         Docs fixups, and:
2909         
2910         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
2911         GTK_DISABLE_DEPRECATED
2912
2913 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
2914
2915         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
2916         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
2917         finish it off tonight, though it basically works now when it's a
2918         list.  Also, I have a sinking feeling neither GtkTreeStore or
2919         GtkListStore actually resort when adding a new item.  I'll look
2920         into it.
2921
2922 2001-06-14  Havoc Pennington  <hp@redhat.com>
2923
2924         * demos/gtk-demo/main.c (load_file): fix bug identified by
2925         warnings I just added to gtktextbuffer
2926
2927 2001-06-14  Havoc Pennington  <hp@redhat.com>
2928
2929         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
2930
2931         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
2932
2933         * gtk/gtktextbtree.c: don't leak node data all over the place.
2934
2935         * demos/gtk-demo/main.c (main): create fontify tags for the right
2936         buffer
2937
2938         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
2939         to mention tags in the same table can't have the same name,
2940         suggested by Skip Montanaro
2941
2942 2001-06-11  Havoc Pennington  <hp@redhat.com>
2943
2944         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
2945         for trying to add two tags with same name to the tag table
2946
2947         * demos/gtk-demo/main.c (main): fix colors ;-)
2948
2949 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
2950
2951         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
2952         that allows grouping together multiple windows so that grabs
2953         within that set of windows only affect those windows.
2954
2955         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
2956         signal for notification when a widget becomes shadowed
2957         by a grab or is no longer shadowed by a grab.
2958
2959         * gtk/gtkwidget.c (gtk_widget_propagate_state)
2960           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
2961         insenstive widgets to maintain a grab.
2962
2963 2001-06-14  Alexander Larsson  <alexl@redhat.com>
2964
2965         * docs/README.linux-fb:
2966         Add some example config files that can be used with the URW fonts.
2967         
2968         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
2969         Set up the color ramps for DirectColor mode.
2970
2971 2001-06-11  Havoc Pennington  <hp@redhat.com>
2972
2973         * Release 1.3.6
2974          
2975 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2976
2977         * gdk/linux-fb/gdkwindow-fb.c:
2978         Unify shaped window code and make it repaint the area that used
2979         to be part of the shape, but isn't anymore.
2980
2981 2001-06-11  Havoc Pennington  <hp@redhat.com>
2982
2983         * NEWS: Updates
2984
2985         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
2986
2987         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
2988         
2989 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2990
2991         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
2992         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
2993         passes zero instead, so do we.
2994         
2995 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2996
2997         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
2998         Deep copy dash_list too.
2999         (_gdk_fb_gc_new): Set default cap_style before
3000         setting values.
3001
3002 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
3003
3004         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
3005         gdk_keymap_get_direction): New functions.
3006
3007 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
3008
3009         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
3010         gtk_tree_model_get_flags by adding a second flag for atk.
3011
3012         * gtk/gtktreemodel.c: make cursor behavior interact better with
3013         mouse presses.
3014
3015 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
3016
3017         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
3018         expand_row/collapse_row to be 2 signals each -- test_expand_row
3019         and row_expanded as well as test_collapse_row and row_collapsed.
3020
3021 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
3022
3023         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
3024         signal name to be changed instead of selection_changed.
3025
3026 2001-06-08  Havoc Pennington  <hp@redhat.com>
3027
3028         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
3029         "scroll_offset" property for notification when the layout offsets
3030         may have changed
3031         (gtk_entry_adjust_scroll): add notify for scroll_offset
3032         (gtk_entry_layout_index_to_text_index): function to compensate for
3033         preedit string when doing coordinate stuff on the entry's layout
3034         (gtk_entry_text_index_to_layout_index): inverse function
3035         (gtk_entry_get_layout_offsets): hook to get current position of
3036         the layout      
3037         (gtk_entry_get_layout): hook to get the layout itself.
3038
3039         * gtk/gtklabel.c (gtk_label_get_layout): new function
3040
3041 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
3042
3043         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
3044         keybinding.
3045         (gtk_tree_view_focus): Fix merge conflict.
3046
3047 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
3048
3049         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
3050         clean up cursor handling.
3051
3052 2001-06-08  Havoc Pennington  <hp@redhat.com>
3053
3054         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
3055         function
3056
3057         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
3058         this function
3059
3060 2001-06-08  Alex Larsson  <alexl@redhat.com>
3061
3062         * gtk/gtkcompat.h.in:
3063         Added compat macros for all old GTK_TYPE_GDK_xxx types.
3064         Fixes bug #52892
3065
3066 2001-06-08  Havoc Pennington  <hp@redhat.com>
3067         
3068         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
3069         parent still
3070
3071 2001-06-08  Havoc Pennington  <hp@redhat.com>
3072
3073         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
3074         don't call g_list funcs on GSList
3075
3076         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
3077         gtk_container_focus(), since some widgets have focusable locations
3078         which are not other widgets. These widgets should not have to be 
3079         containers just to manage the focus. For example, GtkHSV is
3080         currently a container for no good reason. Also, this cleans
3081         up the "if (is_container && is_sensitive && is_drawable)
3082         container_focus ()" mess in widget implementations.
3083
3084         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
3085         function, and have it just call gtk_widget_child_focus().
3086
3087         * gtk/gtkhsv.c: derive from widget not container
3088         
3089         Throughout: fix to reflect GtkContainer::focus change
3090         
3091 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
3092
3093         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
3094         range.  Fix bug #55921
3095
3096         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
3097         (#55920).
3098
3099 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
3100
3101         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
3102         and gdk_keymap_get_current_direction().
3103
3104         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
3105           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
3106         the current locked group, use it to set the keymap
3107         direction.
3108
3109         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
3110         to determine whether we draw a split cursor or use
3111         a jumping cursor based on the current direction.
3112
3113         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
3114         Obey the split cursor setting. 
3115
3116 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
3117
3118         * gtk/gtkimmulticontext.c (activate_cb): Only activate
3119         when toggling on, not when toggling off... (#55906)
3120
3121 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
3122
3123         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
3124         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
3125         in docs. (#55812, Vitaly Tishkov)
3126
3127 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
3128
3129         * demos/gtk-demo/main.c (create_tree): Changed signal name from
3130         selection_changed to changed in signal connection to GtkTreeSelection,
3131         also used g_signal_connectc since GtkTreeSelection is now a GObject.
3132
3133 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
3134
3135         * gtk/gtktreeselection.c: Now it's a GObject instead of a
3136         GtkObject.  The GtkTreeSelection::selection_changed signal is now
3137         the GtkTreeSelection::changed signal.
3138
3139         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
3140         object.
3141
3142         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
3143         object.
3144
3145 2001-06-07  Havoc Pennington  <hp@redhat.com>
3146
3147         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
3148
3149 2001-06-07  Havoc Pennington  <hp@redhat.com>
3150         
3151         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
3152         (not tested yet because with absolute path to srcdir I can't build
3153         atk, but it was broken anyway so this may help) 
3154
3155 2001-06-07  Havoc Pennington  <hp@redhat.com>
3156
3157         * configure.in: output m4macros/Makefile
3158         
3159 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
3160
3161         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
3162         buttons.  Fixes #55460 reported by matthiasc@poet.de.
3163
3164 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
3165
3166         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
3167         expansion/collapsing so it only happens in one place.
3168         (gtk_tree_view_real_expand_row): ditto.
3169
3170 2001-06-07  Havoc Pennington  <hp@redhat.com>
3171
3172         * tests/Makefile.am: add missing -I flag
3173
3174         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
3175
3176         * configure.in: use pkg-config to see if GModule is
3177         supported; fix to properly turn on included loaders 
3178         when GModule isn't supported; don't use AC_CHECK_LIB 
3179         when libs are not installed yet
3180
3181         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
3182
3183         * Makefile.am (SUBDIRS): add m4macros subdir
3184
3185         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
3186         dependencies also.
3187
3188 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
3189
3190         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
3191         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
3192
3193 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
3194
3195         * gtk/gtktreeview.c
3196         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
3197         bindings to expand and collapse rows.
3198         (gtk_tree_view_real_select_cursor_parent): New key binding.
3199         (gtk_tree_view_real_toggle_cursor_row): New key binding.
3200
3201         * gtk/gtkmarshal.list: new
3202         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
3203
3204 2001-06-06  Havoc Pennington  <hp@redhat.com>
3205
3206         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
3207
3208         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
3209         Down to move visually rather than logically, since it confuses 
3210         people. Add -/+ and Ctrl--/+ bindings for logical movement.
3211
3212 2001-06-06  Alex Larsson  <alexl@redhat.com>
3213
3214         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
3215         Fix up error messages.
3216
3217 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
3218
3219         * gtk/gtktooltips.h: Include gtkwidget.h 
3220         (#55798, Karl Nelson)
3221
3222         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
3223         a valid latin-1 character. (Marc Lehmann, #35467)
3224
3225         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
3226         (Marc Lehmann, #35467)
3227         
3228 2001-06-05  Alex Larsson  <alexl@redhat.com>
3229
3230         * demos/gtk-demo/appwindow.c (do_appwindow):
3231         Don't swap the order of the args to gtk_widget_destroyed.
3232
3233         * tests/testgtk.c (destroy_properties):
3234         Don't crash when the properties window is destroyed.
3235
3236         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
3237         Use with_mnemonics to handle the case of stock items with
3238         underscores in them.
3239
3240 2001-06-05  Havoc Pennington  <hp@redhat.com>
3241
3242         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
3243         gtk_text_iter_reorder
3244
3245 2001-06-05  Havoc Pennington  <hp@redhat.com>
3246
3247         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
3248
3249 2001-06-05  Havoc Pennington  <hp@redhat.com>
3250
3251         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
3252         to the range that was set
3253
3254         * gtk/gtkrange.c: add value_changed signal, primarily 
3255         intended for use with GtkScale
3256         (gtk_range_set_increments): new function
3257         (gtk_range_set_range): new function with weird name
3258         (gtk_range_set_value): new function
3259         (gtk_range_get_value): new function
3260
3261         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
3262         from gtk_spin_button_get_value_as_float(). Compat #define
3263         added for get_value_as_float.
3264
3265         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
3266
3267         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
3268
3269 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
3270
3271         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
3272
3273 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
3274
3275         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
3276
3277         * tests/testgtk.c (create_tooltips): Remove usage of
3278         gtk_widget_set().
3279
3280 2001-06-05  Havoc Pennington  <hp@redhat.com>
3281
3282         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
3283
3284         Applying patch from Jeff Franks, with function docs added.
3285         
3286         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
3287         remove call to set_mnemonic_widget, change docs a bit.  
3288
3289         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
3290         new function
3291
3292         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
3293         new function
3294
3295         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
3296
3297         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
3298         function
3299         (gtk_radio_button_new_with_mnemonic_from_widget): new function
3300
3301         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
3302         new function
3303
3304         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
3305         function        
3306
3307         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
3308         auto-selection of mnemonic widget.
3309
3310 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
3311
3312         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
3313         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
3314         (gtk_tree_view_column_set_min_width): ditto.
3315
3316 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
3317
3318         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
3319         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
3320
3321 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
3322
3323         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
3324         gtk_clist_thaw().
3325
3326 2001-06-04  Havoc Pennington  <hp@pobox.com>
3327
3328         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
3329         releases for buttons 6, 7
3330
3331 2001-06-04  Havoc Pennington  <hp@redhat.com>
3332
3333         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
3334         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
3335         #55562
3336
3337 2001-06-04  Havoc Pennington  <hp@redhat.com>
3338
3339         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
3340         where text_view->layout == NULL by assuming its size is 0, 
3341         i.e. same as if we haven't done any reflow. Reported by 
3342         Hidetoshi Tajima #55448 
3343
3344 2001-06-04  Havoc Pennington  <hp@redhat.com>
3345
3346         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
3347         and 7 for scroll left/right, from Thomas Broyer
3348
3349 2001-05-10  Havoc Pennington  <hp@redhat.com>
3350
3351         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
3352         we need to parse the xsetting as if it were an RC file string.
3353
3354         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
3355         value of palette from settings, not from static variable
3356
3357         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
3358         xsettings translation table
3359
3360         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
3361         hardcoding the toolbar style conflicts with new customizable 
3362         toolbar style philosophy
3363         (gtk_toolbar_class_init): add settings for default toolbar style;
3364         these are used unless the app specifically forces a toolbar style
3365
3366         * gtk/gtksettings.c (settings_install_property_parser): only
3367         return at the start if we warn and parser == NULL
3368
3369         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
3370         palette changed handler so we don't notify dead color selections
3371
3372         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
3373         xthickness/ythickness of 0 or 1 properly 
3374         (gtk_default_draw_resize_grip): clear the background behind the
3375         resize grips, and align to bottom right if we square the 
3376         area to be drawn.
3377
3378         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
3379         statusbar label to 1, so it doesn't make toplevels resize oddly
3380         (gtk_statusbar_size_request): add grip size to request
3381         (gtk_statusbar_size_allocate): hack so the hbox still works with 
3382         the grip size in the request
3383
3384         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
3385         bug where showing all on a toplevel makes the toolbar 
3386         button text appear despite the toolbar mode
3387
3388         * gtk/gtkmenubar.c: add internal padding style property
3389
3390         * gtk/gtktoolbar.c: Add internal padding style property; add
3391         shadow type style property
3392
3393         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
3394         state; and put Container::border_width outside the frame
3395
3396         * gtk/gtktextview.c: don't draw focus rectangle if we're in
3397         interior focus mode, we just use blinking cursor
3398
3399 2001-06-04  Havoc Pennington  <hp@redhat.com>
3400
3401         * configure.in: Make gdk-pixbuf have same version number as GTK
3402
3403 2001-06-04  Havoc Pennington  <hp@redhat.com>
3404
3405         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
3406         digits greater than 6. If there actually are limits (which there
3407         likely aren't), should clamp to them not warn.
3408         (gtk_spin_button_new_with_range): don't take log of 0
3409         (gtk_spin_button_size_request): use digits to compute size
3410         request, rather than step increment.
3411
3412         * tests/testgtk.c (create_spins): test larger values of digits
3413         
3414         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
3415         font on map not expose, so we don't get weirdness during scrolling
3416
3417 2001-06-04  Havoc Pennington  <hp@redhat.com>
3418
3419         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
3420         Sam Solon, bug #54577, update value even if not drawable.
3421
3422 2001-06-04  Havoc Pennington  <hp@redhat.com>
3423
3424         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
3425         SCROLL_LEFT, reported by Thomas Broyer.
3426
3427 2001-06-04  Havoc Pennington  <hp@redhat.com>
3428
3429         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
3430         Process updates immediately, to prevent funny lag effect
3431         when scrolling, at some mild potential efficiency cost.
3432
3433 2001-06-04  Havoc Pennington  <hp@redhat.com>
3434
3435         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
3436         slider on the click.
3437
3438 2001-06-03  Havoc Pennington  <hp@pobox.com>
3439
3440         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
3441         hscale/vscale details, so we can use it for scrollbar as well.
3442
3443         * tests/testgtk.c (reformat_value): honor digits from GtkScale
3444
3445         * gtk/gtkenums.h (GtkTroughType): Remove this enum
3446         (GtkScrollType): add START and END from GtkTroughType
3447
3448         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
3449         its x/y arguments
3450
3451         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
3452         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
3453         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
3454         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
3455         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
3456
3457         Notable changes in the process:
3458          
3459         - stepper_size style property is the height for vertical 
3460           ranges, width for horizontal; the other dimension matches
3461           the trough size
3462         - add ability to do NeXT-style steppers (and several other styles
3463           that don't make any sense)
3464         - added min_slider_length, fixed_slider_length properties to
3465           GtkScrollbar
3466         - cleaned some private (or at least useless) functions out of
3467           gtkscale.h    
3468         - moved bindings to GtkScale from subclasses, even arrow keys,
3469           since blind users don't know scale orientation.
3470         - change move_slider action signal to use new GtkScrollType,
3471           remove GtkTroughType argument
3472         - digits rounds the values a range will input to the given 
3473           number of decimals, but will not try to force adjustment 
3474           values set by other controllers. That is, we no longer
3475           modify adjustment->value inside a value_changed handler.
3476         - added getters for GtkScale setters
3477         - middle-click begins a slider drag
3478         
3479 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
3480
3481         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
3482         getting the focus code to work.
3483         (gtk_tree_view_class_init): Add a bunch of keybindings.
3484
3485         * gtk/gtktreeviewcolumn.c
3486         (gtk_tree_view_column_set_cell_data_func):
3487         s/GtkCellDataFunc/GtkTreeCellDataFunc.
3488         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
3489         of "properties_changed" to help justify the death of the latter
3490         signal. (-:
3491
3492         * tests/testtreefocus.c (main): Let some columns be focussable to
3493         test focus better.
3494
3495 2001-06-01  Havoc Pennington  <hp@redhat.com>
3496
3497         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
3498         
3499         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
3500         overwrite in overwrite mode if we already deleted the selection
3501         and replaced it with new text.  
3502
3503         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
3504         selection to an empty range, clear the clipboard if we owned it.
3505         (gtk_label_set_selectable): give up selection if we become
3506         unselectable.
3507         (gtk_label_state_changed): override state changed to unselect text
3508         when insensitive
3509         (get_text_callback): add paranoia check that indexes aren't
3510         outside of label->text
3511         (gtk_label_select_region): make -1 for start_offset mean "end of
3512         label," for consistency with GtkEditable
3513
3514         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
3515         GTK_DIALOG_NO_SEPARATOR flag
3516
3517 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
3518
3519         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
3520         notifications on non-existant "enable_arrow_keys".
3521         (#53753, Skip Montanaro)
3522
3523 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
3524
3525         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
3526         GDK_TYPE_RECTANGLE.
3527
3528         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
3529         of allocation argument be GDK_TYPE_RECTANGLE.
3530
3531 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
3532
3533         * gtk/gtkoptionmenu.c: Account for the fact that the border
3534         width is _outside_ the window. (Fixes #54585, bug found
3535         by Bastien Nocera.)
3536
3537 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
3538
3539         * gtk/gtksettings.c (gtk_settings_get_property): Validate
3540         value from GDK settings against parameter spec.
3541
3542         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
3543         to temporary values and use g_value_transform(), since
3544         thinking that GValue was going to be easy or efficient
3545         to use was, of course, a mistake.
3546
3547         * gtk/gtksettings.c: Add cursor blink setting.
3548         
3549         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
3550
3551         * gtk/gtkentry.c: Add cursor blinking.
3552
3553         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
3554         cursor blink global settings.
3555
3556         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
3557         for :text_position in places where it is missing.
3558
3559 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
3560
3561         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
3562
3563 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
3564
3565         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
3566         not pkg-config. (#51032)
3567
3568         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
3569         (fixes #51952, James Henstridge)
3570         
3571 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
3572
3573         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
3574         Rename to the more correct gtk-go-up.
3575
3576         * gtk/stock-icons/stock_menu_sort_ascending.png:
3577         Added new file.
3578         
3579         * gtk/stock-icons/stock_menu_sort_descending.png:
3580         Changed to show descending instead of ascending.
3581
3582         * gtk/gtkiconfactory.c:
3583         Added menu size icon to sort ascending.
3584
3585         * gtk/stock-icons/Makefile.am:
3586         Added stock_menu_sort_ascending.png.
3587         
3588         * gtk/gtkseparatormenuitem.c:
3589         Use correct typenames.
3590
3591 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
3592
3593         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
3594         gulong as in GSignal.
3595
3596 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
3597
3598         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
3599         instances of GtkCellRenderer in code (all but dnd icon code).
3600         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
3601         there, and I can do multiple Cells per column.
3602
3603         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
3604
3605         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
3606         when model was unreffed prior to removing the row reference.
3607
3608 2001-05-25  Havoc Pennington  <hp@redhat.com>
3609
3610         * gtk/gtkiconfactory.c: fix so that default icons are created if 
3611         you call gtk_stock_list_ids()
3612
3613         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
3614         in list
3615
3616 2001-05-25  Havoc Pennington  <hp@redhat.com>
3617
3618         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
3619         set can render without falling back to missing image icon
3620
3621         * gtk/gtktextview.c (gtk_text_view_size_request): request full
3622         size of text, instead of random values
3623
3624         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
3625         size of tree view, instead of random values
3626
3627         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
3628         image in an appropriate size
3629
3630         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
3631         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
3632
3633         Throughout: fix GTK_STOCK_BUTTON_ instances
3634         
3635         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
3636         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
3637         Add a bunch of new stock items/icons
3638
3639         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
3640         new function, convenience for inserting columns with a data func
3641
3642         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
3643         (_gtk_icon_factory_list_ids): use list of all factories to
3644         generate a list of all known IDs
3645
3646         * gtk/gtkstock.c (gtk_stock_list_ids): replace
3647         gtk_stock_list_items() with a function that returns all IDs known
3648         including those for GtkIconFactory.
3649
3650 2001-05-25  Hans Breuer  <hans@breuer.org>
3651
3652         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
3653         work -> check boxes and radio buttons are drawn now, even on win9x.
3654         Improved line settings a bit, still no clue how to get really dotted
3655         lines on win9x, on NT it's PS_ALTERNATE.
3656
3657         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
3658         GDK_HINT_MIN_SIZE as well
3659
3660         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
3661
3662         * gtk/gtk.def : updated
3663
3664         * gtk/gtktreeprivate.h : change column_drop_func to be a function
3665         pointer not a function pointer pointer
3666
3667         * tests/testdnd.c : include <stdlib.h> for putenv prototype
3668
3669         * tests/testsocket.c : made it compile on win32 again
3670
3671         * tests/makefile.msc : one more test-app uses prop-editor.obj
3672
3673 2001-05-22  Havoc Pennington  <hp@pobox.com>
3674
3675         * gtk/gtkbin.c (gtk_bin_get_child): New function
3676
3677 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
3678
3679         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
3680         to ignore when doing compose processing.
3681
3682 2001-05-22  Joe Shaw  <joe@ximian.com>
3683
3684         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
3685         Simplify as suggested by Havoc. Just get the last iter and work
3686         backward to the tag instead of getting a line and working back from
3687         there. Fixes passing in an invalid offset to
3688         iter_init_from_byte_offset().
3689
3690 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
3691
3692         * gtk/gtktreeview*.h: 
3693         * gtk/gtkcell*.h:
3694         * gtk/gtk*store.h:
3695         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
3696         macros to all objects.
3697
3698 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
3699
3700         * gtk/gtkcellrenderertext.c
3701         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
3702         with very large (TM) amounts of text.  May be moved to
3703         GtkCellRenderer in the future, though I'm not sure it wants to be
3704         this accessible.
3705
3706         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
3707         More sanity brought to this class.  I like it.
3708
3709         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
3710         case.  Kids, don't try this at home.
3711
3712         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
3713         convenience function.
3714
3715         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
3716
3717 2001-05-21  Alexander Larsson  <alexl@redhat.com>
3718
3719         * gtk/gtkfontsel.c:
3720         Added properties. Based on patch by Lee Mallabone.
3721
3722         * gtk/gtkruler.c:
3723         * gtk/gtkhruler.c:
3724         * gtk/gtkvruler.c:
3725         * gtk/gtktext.c:
3726         * gtk/gtktextview.c:
3727         Converted GtkArg to GParam. Based on patches by John Margaglione.
3728
3729         * tests/Makefile.am:
3730         * tests/testtext.c:
3731         Add a property editor to testtext.
3732         
3733 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
3734
3735         * gtk/gtk{h,v,}paned.c: Only show the separator if 
3736
3737         * configure.in: Fixed reversed conditional causing all image
3738         libraries to be linked in.
3739
3740 2001-05-21  Joe Shaw  <joe@ximian.com>
3741
3742         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
3743         that top_y needs to be >= 0.
3744
3745 2001-05-11  Havoc Pennington  <hp@pobox.com>
3746         
3747         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
3748         losing connection to the X server.
3749
3750 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
3751
3752         * configure.in: Start checks for X from pangox/pangoxft
3753         CFLAGS to avoid duplicate libraries.
3754
3755         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
3756
3757         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
3758         to include gobject.
3759         
3760 2001-05-18  Alexander Larsson  <alexl@redhat.com>
3761
3762         * gtk/gtkspinbutton.c:
3763         Convert GtkArgs to GParams. Based on patch by John Margaglione.
3764         Also do size request reasonable for MAXDOUBLE. Previously it printed
3765         the limits to a buffer and overran it. Instead do it using log10() and
3766         limit the width to 10 digits.
3767         
3768         * gtk/gtkwidget.c (gtk_widget_get_property):
3769         Correctly handle setting the parent property to NULL.
3770
3771 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
3772
3773         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
3774         style attributes even if the widget isn't realized.
3775
3776         * demos/gtk-demo/main.c: Use a slightly smaller font.
3777
3778 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
3779
3780         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
3781         This is something that only a widget writer would ever want
3782         to change.
3783
3784         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
3785         gtk_signal_emit_by_name().
3786
3787         * gtk/gtkviewport.c: Fix some warnings.
3788
3789         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
3790         allowing the requisitions of multiple widgets to be grouped
3791         together.
3792
3793         * tests/testgtk.c: Add GtkSizeGroup test
3794
3795         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
3796
3797         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
3798         warnings.
3799
3800         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
3801
3802 2001-04-28  Martin Baulig  <baulig@suse.de>
3803
3804         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
3805         to gtk_image_menu_item_set_icon() and made it work if there's already
3806         an image.
3807         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
3808         (gtk_image_menu_item_new_with_label): New function.
3809
3810 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
3811
3812         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
3813         highlighting code!!!!  The result is okay so long as you don't try
3814         to stress it.  It also highlights a bug in the TextView so it's in
3815         an unproportional font right now until it's fixed.
3816
3817         *demos/gtk-demo/*.c: Clean up code a bit to make it
3818         ugly-parser(TM) friendly. (-:
3819
3820 2001-05-17  Joe Shaw  <joe@ximian.com>
3821
3822         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
3823         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
3824         if it is only partially onscreen.
3825
3826 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
3827
3828         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
3829         not by characters.
3830
3831         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
3832         are not zero or one; that is, when graphemes of multiple characters
3833         are involved.
3834
3835         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
3836         FIXME.
3837
3838 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
3839         
3840         * gtk/gtkbbox.c:
3841         Add properties, based on patch by Lee Mallabone.
3842
3843         * gtk/gtknotebook.c:
3844         * gtk/gtktoolbar.c:
3845         Convert from GtkArg to GParam, based on patch by John Margaglione.
3846         
3847         * gtk/gtkhscale.c:
3848         * gtk/gtkvscale.c:
3849         * gtk/gtkhscrollbar.c:
3850         * gtk/gtkvscrollbar.c:
3851         * gtk/gtkrange.c:
3852         Move adjustment property to GtkRange.
3853
3854         * gtk/gtklabel.c:
3855         Setup mnemonics on property changes
3856
3857         * gtk/gtkwidget.c (gtk_widget_get_property):
3858         GdkExtensionMode is an enum, not a flag. Set it with
3859         g_value_set_enum ().
3860
3861         * tests/prop-editor.c:
3862         Better propery editor.
3863
3864         * tests/testgtk.c:
3865         Add new property test. Pass zero to the property editor to
3866         get properties from all derived types.
3867         
3868 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
3869
3870         * autogen.sh (have_automake): Require libtool-1.4,
3871         automake-1.4p1.
3872
3873         * acinclude.m4: Remove libtool macros.
3874
3875         * gdk-pixbuf/Makefile.am: Add dependencies to loade
3876         modules.
3877
3878         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
3879         for libgdk.
3880
3881         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
3882         libgdk.la for libgtk.
3883
3884         * modules/input/Makefile.am: Make modules have full
3885         dependencies.
3886
3887 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
3888
3889         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
3890         #54699 where paths weren't being checked for correctness.
3891
3892 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
3893
3894         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
3895         in any order you wan, whether or not the column is added to the
3896         tree, or the tree is realized.  Yay!
3897
3898         * gtk/gtktreeviewcolumn.c
3899         (gtk_tree_view_column_setup_sort_column_id_callback): handle
3900         sorting columns a lot saner
3901
3902         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
3903         new function to actually set wether or not a column is
3904         reorderable.
3905
3906         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
3907         if we have 'em.
3908
3909         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
3910         Fix nasty bug where we were showing the button just before
3911         realizing it.  As a result, the parent window was
3912         tree_view->window instead of tree_view->priv->header_window.
3913
3914         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
3915         to let you easily reorder a list or tree.
3916
3917 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
3918
3919         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
3920         from args to properties.
3921
3922 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
3923
3924         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
3925         from args to properties. (#51957)
3926
3927         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
3928         calls to after ->set_property call.
3929
3930 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
3931
3932         * tests/prop-editor.c: Block against redundant changes.
3933
3934         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
3935         properties.
3936
3937 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
3938
3939         * gdk/gdkpixmap.h: Remove creative formatting.
3940
3941 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
3942
3943         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
3944         property API. (#51669)
3945
3946         * gtk/gtkscale.c: Patch from John Margaglione converting to
3947         property API. (#51891)
3948
3949         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
3950         to property API. (#50985)
3951
3952 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
3953
3954         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
3955         buffering state across expose event, so we still call end_paint().
3956
3957 2001-05-11  Alexander Larsson  <alexl@redhat.com>
3958
3959         * gtk/gtkhsv.c (paint_triangle):
3960         Expose the ring in the triangle at the correct place when
3961         exposing just a part of the triangle.
3962
3963         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
3964         Return FALSE, or window focusing will not work.
3965
3966 2001-05-11  Havoc Pennington  <hp@pobox.com>
3967
3968         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
3969         #54144
3970
3971         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
3972         bug #54330
3973
3974 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
3975
3976         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
3977         propagate exposes to NULL child.
3978
3979         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
3980         against not having one of the scrollbars.
3981
3982         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
3983         we don't keep a mnemonic window if we have no mnemonic installed.
3984
3985 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
3986
3987         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
3988         it has the _important_ side effect of initializing a class.
3989
3990 2001-05-10  Alexander Larsson  <alexl@redhat.com>
3991
3992         * gdk/linux-fb/gdkprivate-fb.h:
3993         Make sure you can compile out the implementation/wrapper assert
3994         macros.
3995
3996         * gdk/linux-fb/gdkdrawable-fb2.c:
3997         Check implementation/wrappers, initialize type for pixmap dummys.
3998
3999         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
4000         Hide the cursor if reading from the screen.
4001
4002         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
4003         Fix sign bug in tiling code.
4004
4005         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
4006         Handle background pixmaps.
4007
4008 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
4009
4010         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
4011         function to let user control where columns are dragged.
4012
4013         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
4014         Escape is pressed.
4015
4016 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
4017
4018         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
4019         "columns_changed" signal.
4020         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
4021         motion code to draw arrows to the side if indicator is outside the
4022         widget.
4023         (gtk_tree_view_map_expanded_rows): Implement.
4024
4025 2001-05-07  Alexander Larsson  <alexl@redhat.com>
4026
4027         * demos/testpixbuf-save.c: 
4028         * demos/testpixbuf-drawable.c:
4029         Include gdkfb.h on linux-fb.
4030
4031 2001-05-07  Alexander Larsson  <alexl@redhat.com>
4032
4033         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
4034         New function for getting toplevel window at position.
4035         (gdk_drag_find_window): Use get_toplevel_window () instead
4036         of gdk_window_get_pointer(). (gdk_drag_status): Use
4037         correct context for getting window.
4038
4039         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
4040         g_strdup the atom name.
4041
4042         * gdk/linux-fb/gdkwindow-fb.c:
4043         Costmetic fix.
4044
4045         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
4046         Add code for changing cursor on linux-fb backend (same as
4047         win32).
4048
4049 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
4050
4051         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
4052         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
4053         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
4054         report was not for the development branch of GTK+, but it applies
4055         anyways).
4056
4057 2001-05-04  Havoc Pennington  <hp@redhat.com>
4058
4059         * configure.in: fix some shell typos
4060
4061         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
4062
4063         * gtk/gtkimage.c: handle animations
4064
4065         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
4066         border_width * 2, not just border_width
4067
4068         * gtk/gtkscale.c: add "format_value" signal to allow people
4069         to override the way values are drawn.
4070         (gtk_scale_get_value_size): fix width/height mistake,
4071         and compute size from actual displayed text, not 
4072         from made-up text.
4073
4074         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
4075         signal registration
4076
4077         * tests/testtext.c: Add "Remove all tags" menu item for testing
4078
4079         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
4080
4081         * demos/gtk-demo/main.c (main): add hack so we can find modules
4082         without installing gtk
4083
4084         * demos/gtk-demo/textview.c (insert_text): demo font scaling
4085
4086         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
4087         factor)
4088         (gtk_cell_renderer_text_set_property): remove some bogus
4089         g_object_notify
4090
4091         * gtk/gtktexttag.c: add "scale" property which is a font scaling
4092         factor
4093
4094         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
4095         to layout
4096
4097         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
4098         gtk_text_iter_is_first
4099
4100 2001-01-06  Hans Breuer  <hans@breuer.org>
4101
4102         * gdk/gdk.def : updated exports
4103
4104         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
4105         gdk won't compile anymore
4106  
4107         * gdk/win32/gdkevents-win32.c : initialize ret_val when
4108         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
4109         Improved gdk_flush () to not only do pending drawing operations
4110         but also process all currently pending events. This should make
4111         the behaviour more similar to the X11 version.  
4112
4113         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
4114         option needs to be set even if there is no GDK_GC_BACKGROUND.
4115         (gdk_win32_hdc_get) : use predraw_set_background () independent
4116         of value_mask. This allows to draw dashed lines leaving the original
4117         background intact.
4118
4119         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
4120         after processing, because we can't reuse it as the X11 version does.
4121
4122         * gtk/gtk.def : updated exports
4123
4124         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
4125         would like to get rid of this file again, and use straight
4126         makefile.msc again, as the other Gtk+ subdirs do)
4127
4128         * test/makefile.msc (new file) : build the test apps here
4129
4130 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
4131
4132         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
4133         strike-through setting
4134         (gdk_draw_layout_line_with_colors): Render strike-through
4135
4136 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
4137
4138         * Release 1.3.5
4139
4140         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
4141
4142         * NEWS: Updated
4143
4144         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
4145         Makefile breakage.
4146
4147 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
4148
4149         * demos/gtk-demo/images.c (progressive_timeout): Fix
4150         typo in filename.
4151
4152         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
4153         out FIXME warning; just too annoying.
4154
4155 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
4156
4157         * gdk/linux-fb/gdkcolor-fb.c:
4158         Better error messages.
4159
4160         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
4161         Initialize abs_x and abs_y.
4162         
4163         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
4164         Correct handling of stipple offset.
4165
4166         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
4167         Treat directcolor framebuffers as truecolor.
4168         
4169 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
4170
4171         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
4172         dependency on Atk for accessibility support.
4173
4174         * configure.in **/Makefile.am: Major reworking of substituted
4175         variables for CFLAGS/LIBS to make a lot more sane and 
4176         keep the the compile/link lines a bit shorter.
4177
4178         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
4179
4180 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
4181
4182         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
4183         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
4184         use _gtk_boolean_handled_accumulator.
4185
4186 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
4187
4188         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
4189         to fix things so clicking inside selection leaves cursor
4190         at point where clicked. (#50324)
4191
4192         * gtk/gtksettings.c (gtk_settings_class_init): Restore
4193         sane value for default double click time.
4194
4195         * tests/testtext.c (test_init): Really path to input modules.
4196
4197 2001-05-03  Sven Neumann  <sven@convergence.de>
4198
4199         * demos/testpixbuf-save.c: include target-specific headers as
4200         done in testpixbuf-drawable.c
4201
4202 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
4203
4204         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
4205         new_text_length appropriately when we run into the 
4206         size limit for the entry. (#53445, reported by Jeff Franks)
4207
4208         * tests/testgtk.c (create_entry): Remove most of the
4209         property toggle buttons. Replace with a "Props" button
4210         that brings up a property editor.
4211
4212         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
4213         Split the property editor code out for reuse, improve.
4214
4215 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
4216
4217         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
4218         trap errors around calls to XSetInputFocus since we have
4219         no way of knowing reliably whether we are viewable or
4220         not. (#53947)
4221
4222 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
4223
4224         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
4225         fix bug in dropping columns.  Moving columns now basically works
4226         modula some fine tuning.
4227
4228 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
4229
4230         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
4231         autoscroll support.  It mostly works, but could use some fine
4232         tuning.
4233         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
4234         Actually move the column.
4235
4236 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
4237
4238         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
4239           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
4240           New default theme! A slighly improved version of the 2.0 Raleigh
4241           theme, with Windows-esque focus/drawing default. 
4242           (GtkWidget::interior_focus defaults to TRUE.)
4243
4244         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
4245
4246 2001-04-30  Havoc Pennington  <hp@pobox.com>
4247
4248         * tests/testtext.c (line_numbers_expose): fix to work with
4249         gtk_paint_layout change
4250
4251 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
4252
4253         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
4254           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
4255           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
4256           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
4257
4258         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
4259           with GtkWidget::interior_focus = TRUE better.
4260
4261         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
4262         ::default_outside_border for more flexibility.
4263
4264         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
4265         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
4266         change that had to be made with g_object_get.
4267
4268 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
4269
4270         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
4271         (gtk_tree_view_move_column_after): Clean up interface. 
4272
4273 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
4274
4275         * gtk/gtkpacker.h:
4276         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
4277          to gtkenum.h.
4278
4279         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
4280         handled in switch).
4281
4282         * gtk/Makefile.am:
4283         (gtk.defs): generate enum portions with  glib-mkenums.
4284         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
4285         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
4286         
4287         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
4288         addition.
4289
4290         * docs/Changes-2.0.txt: keep a note on signal handlers now
4291         not getting emitted during the emission they were connected within.
4292
4293 2001-04-28  Havoc Pennington  <hp@pobox.com>
4294
4295         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
4296
4297 2001-04-24  Havoc Pennington  <hp@redhat.com>
4298
4299         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
4300         (gtk_text_layout_move_iter_to_next_line): fix these two for
4301         invisible text, lots of other stuff still hosed.
4302
4303         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
4304         new function, replaces the get/set palette stuff. This function 
4305         is intended for use by libgnomeui which should set the hook to a
4306         thing which sets the palette in GConf, and we need the
4307         GConf-to-xsettings proxy which will result in the change being
4308         propagated back to the GTK app.
4309
4310         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
4311         about unusable signals that it may be because the signal has 
4312         parameters.
4313
4314         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
4315         style, otherwise gtkrc.c won't know to create a new GtkStyle for
4316         it.
4317         (gtk_widget_modify_color_component): call
4318         gtk_widget_modify_style() so the rc style will get copied.
4319         (gtk_widget_modify_font): ditto
4320
4321         * gtk/gtkrc.c: make a couple variables static
4322
4323         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
4324         help button by default, since it does nothing
4325
4326         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
4327         around with UI
4328
4329         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
4330         so we can have tooltips
4331
4332         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
4333         can have tooltips
4334
4335         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
4336         GDK_ENABLE_BROKEN, because its memory behavior is completely
4337         hosed.
4338
4339         * gtk/gtknotebook.c: remove key press handler, replace with
4340         binding set, add numeric keypad support
4341
4342         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
4343
4344         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
4345
4346         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
4347         addition to plain Delete
4348
4349         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
4350         GDK_KP_Enter in addition to GDK_Return
4351
4352         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
4353         activate on entry instead of key press
4354         (gtk_font_selection_on_clist_key_press): get
4355         rid of this signal handler, not needed with new font sel.
4356
4357         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
4358         no-longer-needed emit_stop_by_name(), just return TRUE
4359
4360         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
4361         cruft, this widget is no longer focusable.
4362
4363         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
4364         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
4365         move_slider action signal, add binding set for vscale/hscale, in
4366         the process support numeric keypad
4367
4368         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
4369         make GDK_Return and GDK_KP_Enter activate the entry via 
4370         binding set, instead of hardcoded.
4371
4372 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
4373
4374         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
4375         code.  Some documentation added.
4376
4377 2001-04-27  Havoc Pennington  <hp@redhat.com>
4378
4379         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
4380
4381         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
4382
4383         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
4384         line/para separators
4385         (gtk_entry_create_layout): set single paragraph mode on the layout
4386
4387         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
4388         spacing between the image and label; instead, inside a button box 
4389         the button will get extra space that will go there, but if people 
4390         configure button box for 0 chubbiness, then there's no spacing.
4391
4392         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
4393         and min/max size style properties, so people can tune their
4394         chubbiness.
4395
4396         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
4397         functions
4398
4399         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
4400         space_style, and button_relief into style properties, remove
4401         functions for setting them
4402         
4403         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
4404         it back down
4405
4406         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
4407         types from gtk_widget_style_get
4408
4409         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
4410         with a style property.
4411
4412         * gdk/x11/gdkevents-x11.c: namespace the settings
4413
4414         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
4415
4416         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
4417         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
4418         be used. Also, translate doc strings for settings. Also, namespace
4419         the double-click-time property. Also, remove bell properties crap.
4420
4421 2001-04-27  Sven Neumann  <sven@gimp.org>
4422
4423         * Makefile.am: before creating links, check if pkg-config files
4424         exist for the default target. Otherwise link to the pkg-config files
4425         that got installed with this build.
4426
4427 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
4428
4429         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
4430         dragging code.  Revealed some (potential) GdkWindow bugs.
4431
4432         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
4433         _gdk_window_init_position to the end of reparent to fix the case
4434         of reparenting when new_x != old_x and new_y != old_y.
4435
4436 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
4437
4438         * gtk/gtkentry.c (strstr_len): Fix optimization that
4439         was correct for the use here, but completely incorrect
4440         in general.
4441
4442 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
4443
4444         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
4445         until patch adding gtk_window_set_size() is recommitted. 
4446
4447         * **Makefile.am configure.in gdk/x11/gdkim-11.c
4448           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
4449           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
4450           (#10784)
4451
4452 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
4453
4454         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
4455         window == NULL in a number of cases.
4456
4457         * tests/testdnd.c: Set module path for gdk-pixbuf.
4458
4459 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
4460
4461         * gtk/Makefile.am xembed.h: File containing #defines
4462         for XEMBED protocol.
4463
4464         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
4465
4466         - Change protocol from old plug/socket specific protocol
4467           to XEMBED draft
4468         - Various fixes to work with GTK+-2.0
4469
4470         Still quite a bit of work to do here to handle initiation
4471         from the socket side (as specified by XEMBED), to handle
4472         the more advanced features of XEMBED, and to figure out
4473         a good way to handle same-app embedding with less overhead
4474         than using full XEMBED.
4475
4476 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
4477
4478         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
4479         track of whether the toplevel has the focus; only send
4480         focus-in events to the focus widget when the window
4481         actually has the focus.
4482
4483 2001-04-25  Havoc Pennington  <hp@pobox.com>
4484
4485         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
4486         were still in the header
4487
4488 2001-04-24  Alexander Larsson  <alexl@redhat.com>
4489
4490         * gtk/gtkclist.[ch]:
4491         * gtk/gtkctree.c:
4492         When there is a row highlighted for D'n'D it must alse
4493         be painted hightlighted on exposes. Otherwise exposes from
4494         the icon being dragged will mess up the hightlight.
4495
4496         * gtk/gtkfontsel.c:
4497         Don't recenter selected font when exposing the font family
4498         clist. This means you can now actually scroll the font family
4499         list.
4500
4501         * gtk/gtknotebook.c:
4502         Fix focus movement on scrolling tabs that are placed on the left
4503         and right.
4504
4505 2001-04-21  Havoc Pennington  <hp@pobox.com>
4506
4507         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
4508         empty/invisible lines.
4509
4510         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
4511         (gtk_text_iter_set_visible_line_index): new functions to set
4512         indexes excluding invisible text
4513
4514         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
4515         index
4516
4517         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
4518         (gtk_text_iter_get_visible_line_offset): new functions to 
4519         get indexes excluding invisible text
4520
4521         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
4522         bunch of extra padding that served no purpose
4523
4524         * gtk/gtkdialog.c: Make all the spacings configurable via style
4525         properties, for chubbiness configuration in themes
4526
4527         * tests/testtext.c: fix path to the immodules.
4528         
4529 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
4530
4531         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
4532         got munched by #endif.
4533
4534         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
4535
4536         * gtk/gtktreeview.c: Refactored code to clean up a number of
4537         events.
4538
4539         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
4540         values to make consistent with other functions.  Spotted by Jeff
4541         Franks <jcf@tpg.com.au>.
4542
4543         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
4544         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
4545
4546 2001-04-23  Sven Neumann  <sven@gimp.org>
4547
4548         * gtk/Makefile.am
4549         * gtk/gtkplug.c
4550         * gtk/gtksocket.c: on request of Owen, reverted my last change 
4551         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
4552
4553 2001-04-23  Sven Neumann  <sven@gimp.org>
4554
4555         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
4556         compile for non-X11 targets again
4557
4558 2001-04-20  Alexander Larsson  <alexl@redhat.com>
4559
4560         * gtk/gtkcolorsel.[ch]:
4561         API Change. Take GdkColor arguments instead of gdouble *.
4562         Leave the old gtk_color_selection_set_color for compatibility,
4563         but marked deprecated.
4564         Do correct rounding when converting RGB <-> HSV.
4565         
4566         * gtk/gtkcolorseldialog.c:
4567         * tests/testgtk.c:
4568         Use new GtkColorSelection API.
4569
4570         * gtk/gtkhsv.c:
4571         Fix problem selecting colors in triangle when Hue is 330.
4572         Fix some black dots around the HSB triangle.
4573         
4574         * gtk/gtkfilesel.c:
4575         return FALSE from the focus_in_event handler to fix focus problems.
4576
4577 2001-04-18  Havoc Pennington  <hp@redhat.com>
4578
4579         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
4580         set, so keybindings are configurable    
4581         (gtk_window_activate_default): Change to activate the focus widget
4582         instead if there's a focus widget, to be consistent with the
4583         behavior that previously existed in key_press_event
4584
4585 2001-04-18  Havoc Pennington  <hp@redhat.com>
4586
4587         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
4588
4589 2001-04-18  Havoc Pennington  <hp@redhat.com>
4590
4591         Close bug #50615:
4592         
4593         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
4594         the layout
4595
4596         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
4597
4598         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
4599
4600         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
4601         
4602         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
4603         to blue for base, in addition to bg
4604         
4605 2001-04-18  Havoc Pennington  <hp@redhat.com>
4606
4607         * tests/testgtk.c (create_image): allow shrinking the image window
4608         to test that we clip to allocation.
4609
4610         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
4611         #9845
4612
4613         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
4614
4615 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
4616
4617         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
4618         mode on shm segments to 0600. We'll see who complains.
4619
4620         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
4621         _gdk_windowing_window_destroy() AFTER recursing through
4622         children.
4623
4624         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
4625         testsocket_child on X.
4626
4627         * tests/testsocket[_child].c: Fix uses of
4628         gtk_window_get_default_accel_group().
4629
4630         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
4631
4632         * gdk/gdkimage.c: (gdk_image_get):
4633         Deal with the possibility that XGetImage() might return NULL.
4634         Allocate the GdkImagePrivate structure only after XGetImage()
4635         succeeds in order not to dereference a NULL ximage pointer.  This
4636         prevents a core dump when XGetImage() fails - which is unlikely,
4637         but can happen due to race conditions accessing the geometries of
4638         drawables.  An x error will still be triggered, but the gdk image
4639         wrapper at least wont seg fault.
4640         
4641 2001-04-18  Havoc Pennington  <hp@redhat.com>
4642
4643         * gtk/gtkimage.c: fix to properly queue resizes when the image is
4644         set
4645
4646         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
4647         if the insertion point isn't editable
4648
4649         * demos/gtk-demo/images.c: Added a GtkImage demo
4650
4651         * demos/gtk-demo/drawingarea.c: drawing area demo
4652         
4653         * demos/gtk-demo/menus.c (create_menu): cleanups
4654
4655 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
4656
4657         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
4658           gdk/x11/gdkevents-x11.c: Introduce an extra child
4659         of toplevel windows that serves to hold the focus to
4660         avoid events being delivered to embedded windows.
4661
4662         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
4663         some extra variables to clean up code and reduce the
4664         number of casts.
4665
4666         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
4667         guint for 1 bit bit fields, not gboolean.
4668
4669 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
4670
4671         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
4672         not TRUE. (Fixes #52925)
4673
4674 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
4675
4676         * Released 1.3.4
4677
4678         * NEWS: Updated
4679
4680         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
4681         use GTK_TYPE_ENUM.
4682
4683 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
4684
4685         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
4686
4687         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
4688         names to compatibility #defines so docs work.
4689
4690         * gtk/gtkenums.h: Remove GtkMenuFactoryType
4691
4692         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
4693
4694         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
4695
4696         * tests/testgtkrc: No magenta cursors, please.
4697
4698         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
4699
4700         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
4701         
4702 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
4703
4704         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
4705         grabs, since they are no longer necessary.
4706
4707         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
4708         by signal_connect() and call gtk_button_pressed() rather
4709         than signal_connect_after().
4710
4711         * tests/testgtk.c: Restore radio menu items to combos 
4712         since they'll look OK with Raleigh, and it is easier
4713         than finishing the process of removing them that was
4714         started earlier.
4715
4716 2001-04-16  Hans Breuer  <hans@breuer.org>
4717
4718         * gdk/gdk.def :
4719         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
4720
4721         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
4722         we are interested in the functions return value not the function address
4723         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
4724
4725         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
4726
4727 2001-04-14  Hans Breuer  <hans@breuer.org>
4728
4729         * gdk/gdk.def :
4730         * gdk/makefile.msc : updated
4731
4732         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
4733         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
4734         (the testgtk::text backgound pixmap is drawn again)
4735         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
4736         Win32 Pango change
4737         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
4738
4739         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
4740         Not sure if the returned settings have the right unit, because I couldn't
4741         find any docs for the X version ...
4742
4743         * gtk/gtk.def :
4744         * gtk/makefile.msc.in : updated
4745
4746 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
4747
4748         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
4749         wording problems. (Compared to version from Johannes Stezenbach to
4750         check correctness.)
4751
4752 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
4753
4754         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
4755         this to compile.
4756
4757 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
4758
4759         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
4760         not pixbufpos.
4761
4762         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
4763
4764         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
4765         are unsigned insts, therefore use g_value_set_uint.
4766         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
4767
4768 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
4769
4770         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
4771
4772         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
4773         GTK_TYPE_STRING.
4774
4775         * gtk/gtktreeview.c: New functions to allow initial column
4776         dragging work.
4777
4778         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
4779
4780         * tests/testtreefocus.c: give dave some love.
4781
4782         * tests/testtreesort.c: Modify test to check really long samples.
4783
4784 2001-04-11  Alexander Larsson  <alexl@redhat.com>
4785
4786         * gtk-2.0.m4: Pass pkg-config options
4787         before the other args so it works even if
4788         POSIXLY_CORRECT is set.
4789
4790 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
4791
4792         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
4793         0, interface 0).
4794
4795 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
4796
4797         * gtk/gtkcalendar.c (gtk_calendar_button_press):
4798         check for action_func != NULL
4799
4800 2001-04-04  Sven Neumann  <sven@gimp.org>
4801
4802         * tests/testgtk.c (test_init): corrected path to gtk.immodules
4803
4804 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
4805
4806         * Released Gtk+-1.3.3.
4807
4808 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
4809
4810         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
4811
4812 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
4813
4814         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
4815         files to/from source dir. (if we don't stay in builddir, we
4816         can't reach make-inline-pixbuf.
4817
4818         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
4819         deps.
4820
4821         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
4822         ages 0).
4823
4824 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
4825
4826         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
4827         moved to the GtkTreeSortable interface.
4828
4829         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
4830         Make more efficient (fixes #50262).
4831
4832 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
4833
4834         * NEWS: Updated.
4835
4836         * configure.in: Remove support for uninstalled glib.
4837
4838         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
4839         so as not to stop emission.
4840
4841         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
4842         is no longer supported.
4843
4844         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
4845         into tests, change build order to build modules before
4846         gtk/.
4847
4848         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
4849         to here.
4850
4851 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
4852
4853         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
4854         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
4855         GPatternSpec. this is actually unlikely to cause breakage in
4856         third-party apps since except for gle, pretty much ever caller
4857         passes NULL here.
4858
4859         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
4860
4861         * *.c: use g_pattern_*() API.
4862
4863         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
4864
4865         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
4866         directions aren't passed in.
4867
4868         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
4869         functionality to be usable from gtkstyle.c as well, give precedence
4870         for conversion to user-supplied parsers.
4871         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
4872
4873         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
4874         _gtk_settings_parse_convert() for rcporperty value conversion.
4875
4876 2001-04-03  Alexander Larsson  <alexl@redhat.com>
4877
4878         * gdk/linux-fb/gdkevents-fb.c:
4879         Add empty gdk_setting_get().
4880
4881 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
4882
4883         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
4884         variable names.
4885         
4886         * gtk/makeenums.pl: touch this so enum files get remade.
4887
4888 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
4889
4890         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
4891         work again when not sorted.
4892
4893         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
4894         and "expand_row" signal, closing bug 52578.
4895
4896         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
4897         support.
4898
4899         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
4900         support.
4901
4902 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
4903
4904         * gdk/gdkevents.h: Add GdkEventSetting event for notification
4905         of changes to system settings, gdk_setting_get() to retrieve
4906         a single system setting.
4907
4908         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
4909         to the draft XSETTINGS mechanism.
4910
4911         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
4912         XSETTINGS.
4913
4914         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
4915         of GDK settings changes to the GtkSettings object.
4916
4917         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
4918         double-click-timeout property to GDK.
4919
4920         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
4921         Define GDK boxed types here.
4922
4923         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
4924         gdk/gdkenumtypes.[ch] for enum definitions.
4925
4926         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
4927         * gtk/gtk-boxed.defs: Comment out GDK types
4928         * gtk/gtktypeutils.h: Remove GDK types
4929         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
4930
4931 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
4932
4933         * Applied patch from Ron Steinke to add signal accumulators
4934         so that signals with the convention 'TRUE return means
4935         handled' stop emission on a TRUE return.
4936
4937         * gtk/gtkmain.[ch]: Add private accumulator 
4938         _gtk_boolean_handled_accumulator, used throughout GTK+.
4939         
4940         * gtk/gtkspinbutton.c: Add accumulator for ::output.
4941
4942         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
4943         
4944         * gtk/gtkwidget.c: Add accumulators for event signals,
4945         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
4946         for ::mnemonic-activate.
4947
4948         * gtk/gtkwindow.c: Add accumulator for ::frame_event
4949
4950 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
4951
4952         * gtk/gtkwidget.c: Add missing include.
4953
4954 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
4955
4956         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
4957         marshaller.
4958
4959         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
4960         "changed" signal to "range_changed".
4961
4962         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
4963         removing a tree from one model would remove all trees from that
4964         model.
4965         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
4966         changed signal instead.
4967
4968 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
4969
4970         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
4971         chaining up to parent impl, since we have a INPUT_ONLY
4972         window.
4973
4974         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
4975         foreground color for the cursor.
4976
4977 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
4978
4979         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
4980         param spec when caching property values, since we unref it
4981         later when we free the style.
4982
4983         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
4984         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
4985
4986 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
4987
4988         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
4989         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
4990         stupidity.
4991
4992 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
4993
4994         [ First pass at adding style properties. Still needs some definite
4995         fine-tuning. ]
4996
4997         * gtk/gtkbutton.c: Add ::default_spacing style property.
4998          
4999         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
5000         ::indicator_spacing style properties.
5001
5002         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
5003         style properties.
5004
5005         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
5006         rather than a normal property.
5007
5008         * gtk/gtkwidget.c: Add an ::interior_focus style property to
5009         draw focus inside buttons, in the Windows/Java Metal/etc. style.
5010
5011         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
5012         Honor ::interior_focus.
5013         
5014         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
5015         TRUE.
5016
5017         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
5018         Add ::slider_width, ::trough_border, ::stepper_size,
5019         ::stepper_spacing style properties.
5020
5021         * gtk/gtkscale.[ch] Add ::slider-length style property.
5022
5023 2001-04-02 Alexander Larsson   <alexl@redhat.com>
5024
5025         * gdk/linux-fb/gdkwindow-fb.c:
5026         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
5027         warnings that were spewed on startup.
5028
5029         * gtk/gtkwindow-decorate.c:
5030         gtk_window_reposition -> _gtk_window_reposition
5031
5032 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
5033
5034         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
5035         Add boxed type for GtkRequistion. Use it for ::size-request.
5036
5037         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
5038         Add a new GtkBorder structure useful for geometry properties
5039         for widgets. Add corresponding GTK_TYPE_BORDER.
5040         
5041         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
5042         Support automatic parser selection like
5043         gtk_settings_install_property_parser().
5044
5045         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
5046         functionality for use by gtk_widget_class_install_style_property.
5047         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
5048
5049 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
5050
5051         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
5052         g_param_spec_unichar(). 
5053
5054 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
5055
5056         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
5057         _NET window managers.
5058
5059         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
5060
5061 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
5062
5063         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
5064         bad needs to be nuked, not just deprecated.
5065
5066         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
5067         gtk_widget_popup().
5068
5069         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
5070         
5071         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
5072         widget.
5073         
5074         * docs/Changes-2.0.txt: updates.
5075         
5076 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
5077
5078         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
5079         for (i = 0; i < 100; i ++)
5080           g_print ("I will confirm it compile before committing\n");
5081
5082 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
5083
5084         * gtk/gtktreestore.c: Initial work on implementing the
5085         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
5086
5087 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
5088
5089         * gtk/gtkwidget.c: fixed a bunch of notifications, added
5090         reference counts around emissions where the widget is used afterwards.
5091         added freeze/thaws around multiple properties being notified.
5092         (_gtk_widget_get_aux_info): cleanups.
5093         
5094         * gtk/gtksettings.c (gtk_settings_install_property): provide
5095         default parsing functions for gdkcolor, enums and flags.
5096
5097         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
5098         applied by owen.
5099         backed out gtk_window_get_location(), gtk_window_set_location(),
5100         gtk_window_get_size() and gtk_window_set_size(), these
5101         have to be sorted out wrg x/y/width/height/default_with/default_height
5102         properties.
5103         kept a flag in GtkWindowGeometryInfo to handle user
5104         resetting default sizes.
5105         cleaned up ZVT comments.
5106         bunch of assorted bug fixes, notification fixes.
5107         (_gtk_window_reposition): make this a really internal function.
5108         
5109         * gtk/testgtk.c: fixups.
5110         
5111 2001-03-31  Hans Breuer  <hans@breuer.org>
5112
5113         * config.h.win32.in : disable USE_MMX for msvc build cause
5114         the assembler doesn't fit and is out of my scope. Disable
5115         USE_GMODULE for msvc build as wel. The right way to share
5116         binaries on win32 would be to use libtiff.dll etc. To reduce
5117         installation hassles IMO it's better to include all fileformats
5118         builtin to gdk-pixbuf
5119
5120         * gdk-pixbuf/makefile.msc : new file
5121
5122         * gdk/gdk.def : updated
5123
5124         * gdk/win32/gdkevents-win32.c : don't erase the background if
5125         .no_bg is set. It improves the scrolling (e.g. of testgtk main
5126         buttons
5127         * gdk/win32/gdkgeometry-win32.c : added comment about the above
5128
5129         * gdk/win32/gdkwindow-win32.c : added three new functions like
5130         the X version. Only one is implemented, because the other two
5131         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
5132         be default behaviour on win32 anyway ...
5133
5134         * gtk/gtk.def : updated
5135
5136         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
5137         from where it was built and add an additional rule to automagically
5138         build gtkmarshal.[hc]
5139
5140         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
5141         before array access for the current entry isn't finished
5142
5143         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
5144         use g_return_val_if_fail
5145
5146         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
5147         for the static array, but let the compiler calculate it. It
5148         makes me wonder if gcc isn't capable to catch bugs like this ...
5149
5150 2001-03-31  James Henstridge  <james@daa.com.au>
5151
5152         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
5153         constant "-1" in the aux info structure.
5154
5155 2001-03-30  Alexander Larsson  <alexl@redhat.com>
5156
5157         * gtk/gtkbutton.c (gtk_button_get_property):
5158         * gtk/gtklabel.c:
5159         Remove leaks.
5160         
5161         * gtk/gtkcontainer.c:
5162         * gtk/gtkhscale.c:
5163         * gtk/gtkhscrollbar.c:
5164         * gtk/gtklayout.c:
5165         * gtk/gtkmisc.c:
5166         * gtk/gtkprogress.c:
5167         * gtk/gtkprogressbar.c:
5168         * gtk/gtkrange.c:
5169         * gtk/gtktable.c:
5170         * gtk/gtkviewport.c:
5171         * gtk/gtkvscale.c:
5172         * gtk/gtkvscrollbar.c:
5173         * gtk/gtkwidget.c:
5174         Property patches, based on patches from John Margaglione and Lee Mallabone.
5175
5176 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
5177
5178         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
5179         adjustment. Cleaned redundant preconditions (spin != NULL). Added
5180         inline API function docs.
5181         (gtk_spin_button_new_with_range): New convenience constructor.
5182         (gtk_spin_button_set_increments): New adjustment helper.
5183         (gtk_spin_button_set_range): New adjustment helper.
5184
5185         * gtk/testgtk.c : added test of the new convenince constructor and
5186         value_changed signals.
5187
5188 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
5189
5190         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
5191         listen to the reorder signal.
5192
5193 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
5194
5195         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
5196         to get the aux info structure fo the widget.
5197
5198         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
5199         above function.
5200
5201         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
5202
5203         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
5204         to get the size of the window manager frame, basically the same
5205         code that gdk_window_get_root_origin() had
5206         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
5207
5208         * gtk/gtkwindow.c (gtk_window_set_default_size): use
5209         gdk_window_resize() if the window is realized and resizeable
5210
5211         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
5212         typo so that setting gravity works
5213
5214         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
5215         allocation if auto_shrink is on, even if the default size
5216         has not changed.
5217
5218         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
5219         g_return_if_fail
5220
5221 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
5222
5223         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
5224         reordering/sorting work.  Now pretty much works.
5225
5226         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
5227         reorder mostly work.  Still need to get the parity correct.
5228
5229         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
5230         signal, so I can listen for the sort_column_changed signal so I
5231         can change my "sort_indicator" property.  Cool.
5232
5233 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
5234
5235         [ Patch from Havoc Pennington, hp@redhat.com ]
5236
5237         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
5238         Add functions gdk_window_begin_resize_drag/begin_move_drag
5239         to start resizing or moving a toplevel window. This
5240         is done either using the _NET_WM_MOVERESIZE protocol,
5241         or, if that isn't present, by emulation.
5242
5243         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
5244         to export the above to GTK+-land.
5245
5246         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
5247         
5248         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
5249         Move this function into gdkwindow, since we need it
5250         when implementing fallback resizing.
5251
5252         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
5253         Fix typo when setting gravity.
5254
5255         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
5256         Add an optional (but on by default) resize grip for resizing 
5257         the parent window.
5258
5259 01-03-29  Alexander Larsson  <alexl@redhat.com>
5260
5261         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
5262         Don't return TRUE from the event handler, that blocks all
5263         event signals on the tooltip widget. Now you can press buttons
5264         in toolbars again.
5265
5266 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
5267
5268         * gtk/testtext.c (create_buffer): Add missing NULL on
5269         valist.
5270
5271         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
5272         c-n-p problem with INCONSISTENT property.
5273
5274         [ Patch from Havoc Pennington  <hp@redhat.com> ]
5275
5276         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
5277         hook.
5278
5279         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
5280         signal as a hook for extending the default popup menu
5281
5282         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
5283         use radio menu items for the input method menuitems
5284
5285         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
5286         inserted unicode from Ctrl-Shift-hex input method
5287
5288         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
5289         validatation here, already done at GtkTextBuffer level.
5290
5291         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
5292         popup_menu run action signal and Shift+F10 and Menu keybindings.
5293
5294         * gtk/gtkentry.c: implement a default handler for popup_menu
5295
5296         * gtk/gtktextview.c: implement a default handler for popup_menu
5297
5298         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
5299         from a key event
5300         
5301         * gtk/gtklabel.c: remove "trailer" cruft
5302
5303 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
5304
5305         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
5306         handle reordering of trees.  Seems to mostly work w/ the exception
5307         of the parity flag.
5308
5309         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
5310         signal.
5311
5312 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
5313
5314         * gtk/gtkwidget.h: c++ fixes.
5315
5316 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
5317
5318         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
5319         memory.
5320
5321 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
5322
5323         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
5324         Nils Barth fixing event return values. (#51041)
5325
5326         * gtk/gtkwidget.c: Fix some return values for default
5327         functions.
5328
5329         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
5330         return values for trough_keys functions.
5331
5332         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
5333         value for add_accelerator (shoudl have been a void
5334         return.)
5335
5336         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
5337         Fix return type of EVENT.
5338
5339         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
5340         signal return a boolean.
5341
5342 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
5343
5344         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
5345         reordered signal.
5346
5347         * tests/testtreesort.c (main): fix spelling.
5348
5349 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
5350
5351         * gtk/gtkliststore.c: More work on implementing sortable
5352         interface.
5353
5354 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
5355
5356         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
5357         reference the widgets in the resulting list. (#11821)
5358         This makes this consistent with gtk_container_children.
5359
5360         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
5361         uses of gtk_window_list_toplevels.
5362
5363 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
5364
5365         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
5366         a virtual function to set whether the IM context should use 
5367         the preedit string. (#51922)
5368         
5369 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
5370
5371         * gdk/gdkpango.h: Remove stale FIXME comment.
5372
5373 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
5374
5375         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
5376         Fixed bug that returned NULL if a filename was selected.
5377
5378 2001-03-24  Havoc Pennington  <hp@pobox.com>
5379
5380         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
5381         to contain the word "theme"
5382
5383 2001-03-24  Havoc Pennington  <hp@pobox.com>
5384
5385         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
5386         slower but finer-grained
5387         (gtk_hsv_focus): get initial focus on the ring or triangle 
5388         according to tab direction
5389
5390         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
5391
5392 2001-03-23  Havoc Pennington  <hp@pobox.com>
5393
5394         * gtk/gtkhsv.c: make this somewhat key-navigable
5395
5396         * gtk/gtkfontsel.c: mnemonics
5397
5398         * gtk/gtkgamma.c: mnemonics
5399
5400         * gtk/gtkcolorsel.c: add mnemonics to labels
5401
5402 2001-03-22  Havoc Pennington  <hp@pobox.com>
5403
5404         Applied big patch from Seth Lytle to fix event handler return
5405         values, slightly modified.
5406
5407         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
5408         handled.
5409         (gtk_calendar_key_press): return TRUE for GDK_space triggers
5410         select_day
5411
5412         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
5413         (gtk_clist_button_release): return TRUE if handled
5414
5415         * gtk/gtkcolorsel.c (mouse_release):
5416         (palette_activate): 
5417         (palette_press): 
5418         (palette_new): 
5419         (mouse_press): 
5420         (get_screen_color): 
5421         fixed return type (void to gboolean), return TRUE,
5422         added GTK_SIGNAL_FUNC cast
5423
5424         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
5425         (void to gboolean), and return TRUE
5426         (gtk_combo_button_release): changed return value to TRUE after
5427         gtk_grab_add on combo->popwin
5428
5429         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
5430         collapse or expand
5431
5432         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
5433         button/motion
5434
5435         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
5436         press/release and motion that trigger act
5437
5438         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
5439
5440         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
5441         for GDK_Return
5442         
5443         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
5444         (gtk_list_button_release): return TRUE if selection
5445
5446         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
5447         press
5448
5449         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
5450         (gtk_menu_shell_button_release): chain parent_menu_shell retval
5451
5452         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
5453         nothing triggered
5454         (gtk_notebook_button_release): return TRUE if we do anything
5455
5456         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
5457         (gtk_spin_button_button_release): return TRUE or chained retval
5458
5459         * gtk/gtktext.c (gtk_text_button_press): 
5460         (gtk_text_button_release): return TRUE
5461         (gtk_text_key_press): remove redundant retval code
5462         
5463         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
5464         and sensitive
5465         (gtk_tree_item_subtree_button_click): changed type to gint, and return
5466         TRUE if sensitive
5467
5468         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
5469         return TRUE
5470
5471 2001-03-23  Havoc Pennington  <hp@redhat.com>
5472
5473         * gtk/testgtk.c: fix warnings
5474
5475         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
5476
5477         * gtk/gtktextview.c: fix warnings
5478
5479         * gtk/gtktext.c (find_cursor_at_line): fix warning
5480
5481         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
5482
5483         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
5484         of this function
5485
5486         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
5487         fix warning
5488
5489         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
5490
5491         * gtk/gtkfontsel.c: fix warning
5492
5493         * gtk/gtkcolorsel.c: fix warnings
5494
5495 2001-03-23  Havoc Pennington  <hp@redhat.com>
5496
5497         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
5498
5499         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
5500
5501         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
5502         and deprecated gtk_check_menu_item_set_show_toggle().
5503         
5504         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
5505
5506         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
5507
5508         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
5509
5510 2001-03-23  Havoc Pennington  <hp@redhat.com>
5511
5512         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
5513         some docs
5514
5515 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
5516
5517         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
5518         this.
5519
5520         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
5521         set_cell to set_value
5522
5523         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
5524         set_cell to set_value
5525
5526 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
5527
5528         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5529         fix braino.
5530         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
5531         support.
5532
5533         * gtk/gtktreeview.c: Addition of initial sortable support.
5534
5535         * gtk/gtktreestore.c: Addition of initial sortable support.
5536
5537         * gtk/gtkliststore.c: Addition of initial sortable support.
5538
5539         * gtk/gtkmarshal.list: yet another marshaller.
5540
5541         * gtk/gtktreedatallist.[ch]: shared code between the store models
5542         for handling sorting headers.
5543
5544 2001-03-22  Havoc Pennington  <hp@redhat.com>
5545
5546         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
5547         (gtk_container_unset_focus_chain): Add ability to override the 
5548         focus chain for a container explicitly
5549
5550 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
5551
5552         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
5553         added PROP_MNEMONIC_WIDGET.
5554
5555         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
5556         (gtk_window_remove_mnemonic): 
5557         (gtk_window_add_mnemonic): fixed assertions.
5558         (gtk_window_activate_mnemonic): constrain modifier checks to those
5559         permitted by gtk_accelerator_get_default_mod_mask().
5560         got rid of gtk_window_get_default_accel_group().
5561
5562         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
5563         activatable widgets either by focussing or a warning.
5564         added a signal accumulator to ::activate_mnemonic which stops the
5565         emission once a handler returned TRUE.
5566
5567 2001-03-22  Havoc Pennington  <hp@pobox.com>
5568
5569         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
5570         the stock item label
5571
5572         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
5573
5574         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
5575
5576         * demos/gtk-demo/*.c: Add mnemonics all over the place
5577
5578         * gtk/gtklabel.h: mark parse_uline deprecated
5579
5580 2001-03-21  Alexander Larsson  <alexl@redhat.com>
5581
5582         * gtk/gtkitemfactory.[ch]:
5583         Add support for stock and normal imagemenuitems.
5584         
5585         * gtk/testgtk.c:
5586         Add some tests for mnemonics, stock toolbars, stock
5587         and image menuitems in itemfactory and gdk_window_scroll.
5588
5589 2001-03-21  Alexander Larsson  <alexl@redhat.com>
5590
5591         * gtk/gtkbutton.[ch]:
5592         * gtk/gtkdialog.c:
5593         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
5594         removed accel_group argument. Renamed gtk_button_new_accel() to
5595         gtk_button_new_with_mnemonic() and removed accel_group argument.
5596
5597         * gtk/gtkcheckbutton.[ch]:
5598         New function gtk_check_button_new_with_mnemonic().
5599
5600         * gtk/gtkentry.c:
5601         Override activate_mnemonic and just grab focus.
5602
5603         * gtk/gtkitemfactory.c:
5604         Don't add menu uline accel group, instead use mnemonics support.
5605
5606         * gtk/gtklabel.[ch]:
5607         New support for mnemonics.
5608
5609         * gtk/gtkmarshal.list:
5610         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
5611
5612         * gtk/gtkmenu.[c]:
5613         * gtkmenushell.c:
5614         Use mnemonics instead of accel groups for uline
5615         support in menu items.
5616         Removed gtk_menu_get_uline_accel_group() and
5617         gtk_menu_ensure_uline_accel_group().
5618
5619         * gtk/gtkmenuitem.c:
5620         Override activate_mnemonic to handle switching between
5621         menu items if there are collisions.
5622         
5623         * gtk/gtknotebook.c:
5624         Connect to activate_mnemonic on the tab_label, so that
5625         activating it switches to that notebook page.
5626
5627         * gtk/gtkwidget.[ch]:
5628         Add activate_mnemonic signal. New function
5629         gtk_widget_activate_mnemonic() to emit it.
5630         Default implementation does activate/grab_focus.
5631
5632         * gtk/gtkwindow.[ch]:
5633         Add support for mnemonics in windows.
5634         New functions:
5635         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
5636         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
5637
5638         * gtk/testgtk.c:
5639         Update to function name changes.
5640         
5641 2001-03-21  Alexander Larsson  <alexl@redhat.com>
5642
5643         * gtk/gtkimagemenuitem.[c]:
5644         Add gtk_image_menu_item_new_from_stock()
5645
5646 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
5647
5648         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5649         Fix buglet in meeting.
5650
5651 2001-03-19  Havoc Pennington  <hp@redhat.com>
5652
5653         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
5654         add a bunch of accessor functions. This is because we have
5655         reasonable expectations of extending what fields it contains in
5656         the future.
5657
5658         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
5659         changes
5660
5661         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
5662         GtkIconSource   
5663
5664 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
5665
5666         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
5667         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
5668
5669         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
5670           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
5671           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
5672           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
5673         Change float to double everywhere with the exception of 0<->1.0 alignment
5674         and GtkCurve.
5675
5676 2001-03-19  Tor Lillqvist  <tml@iki.fi>
5677
5678         * gdk/win32/gdkdrawable-win32.c
5679         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
5680         output.
5681
5682         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
5683         gdkwin32.h.
5684
5685 2001-03-18  Tor Lillqvist  <tml@iki.fi>
5686
5687         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
5688         print_event_state, print_event): Use preprocessor macro to make
5689         code more compact. Print also GDK_WINDOW_STATE events.
5690         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
5691         
5692         * gtk/gtk.def
5693         * gtk/makefile.mingw.in: Update.
5694
5695         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
5696         to catch also Cygwin.
5697
5698 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
5699
5700         * gtk/gtkspinbutton.[hc]: added rc-style argument
5701         GtkSpinButton::shadow_type.
5702         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
5703         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
5704         rc-style settings.
5705
5706         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
5707
5708         * gtk/gtkwidget.c: quark cleanups.
5709
5710         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
5711         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
5712         to create_rc_style() (we don't do cloning in standard OO sense).
5713         added per rc style properties.
5714         
5715         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
5716         property values and for caching those. some cleanups.
5717         
5718         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
5719         
5720         * gtk/gtksettings.[hc]: new file for global rc-file properties
5721         (at least currently, should get extended to support X properties
5722         and other communication mechanisms).
5723         
5724         * gtk/gtkwidget.[hc]: added style property support:
5725         (gtk_widget_class_install_style_property_parser): install style
5726         property pspec with parser function for rc-file values other
5727         than LONG, DOUBLE or STRING.
5728         (gtk_widget_class_install_style_property): same as above without
5729         parser (parsers are going to be needed quite infrequently).
5730         (gtk_widget_style_get_property): retrive style property value.
5731         (gtk_widget_style_get_valist): same as above with varargs support,
5732         has NOCOPY semantics.
5733         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
5734
5735 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
5736
5737         * demos/gtk-demo/main.c (row_activated_cb): modified to use
5738         "row_activated" signal.
5739
5740         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
5741         stupidity.  Lets actually pass in the row with this signal...
5742
5743 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
5744
5745         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
5746
5747         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
5748
5749         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
5750         everything into the ::destroy function, and freed a lot more.
5751
5752 2001-03-16  Havoc Pennington  <hp@redhat.com>
5753
5754         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
5755         instead of gint16, to avoid overflow issues, since sizes > 16-bit
5756         are now allowed.
5757
5758 2001-03-16  Havoc Pennington  <hp@redhat.com>
5759
5760         * Applied patch from Nils Barth (bug # 51041) to 
5761         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
5762         in various places.
5763
5764 2001-03-15  Havoc Pennington  <hp@redhat.com>
5765         
5766         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
5767         for properties to set on the tag.
5768
5769         * gtk/testtext.c: fixups to reflect create_tag change
5770         
5771         * gtk/gtktexttag.c (gtk_text_tag_set_property):
5772         background/foreground stipple are objects, not boxed.
5773
5774         * demos/gtk-demo/textview.c: intellihancing
5775
5776 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
5777
5778         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
5779         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
5780
5781 2001-03-16  Alexander Larsson  <alexl@redhat.com>
5782
5783         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
5784         Fix sign error with queued region translations.
5785
5786 2001-03-15  HideToshi Tajima  <tajima@happy>
5787
5788         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
5789         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
5790         * gtk/gtkentry.c (update_im_cursor_location): 
5791         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
5792         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
5793         set_cursor_pos to set_cursor_location in GtkInputContext class
5794
5795 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
5796
5797         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
5798         the location of the cell relative to its area.
5799         * gtk/gtkcell*: modified for above change
5800         * gtk/gtktreeview.c: modified for above change.
5801
5802 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
5803
5804         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
5805          (gtk_tree_view_finalize): actually unref the model.  Thanks to
5806         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
5807
5808 2001-03-14  Havoc Pennington  <hp@redhat.com>
5809
5810         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
5811         
5812         * gtk/gtk.h: remove gtkdata.h
5813
5814         * gtk/Makefile.am: remove gtkdata
5815         
5816         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
5817         not "disconnect" on the adjustments.
5818         
5819         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
5820         GtkData
5821
5822         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
5823         not GtkData
5824
5825         * configure.in: handle case where X render exists, but Pango lacks
5826         Xft support.
5827
5828 2001-03-15 Alexander Larsson  <alexl@redhat.com>
5829
5830         * gtk/gtktoolbar.[ch]:
5831         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
5832         to add stock items to toolbars.
5833
5834         * gtk/Makefile.am:
5835         Remove ../gdk/gdkim.h from gdk_headers.
5836
5837 2001-03-15  Sven Neumann  <sven@gimp.org>
5838
5839         * gdk/gdkim.h: removed
5840         
5841         * gdk/gdkprivate.h
5842         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
5843
5844 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
5845
5846         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
5847         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
5848         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
5849         set_cursor_pos() virtual method
5850
5851         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
5852         (gtk_im_context_xim_set_cursor_pos): add implementation for
5853         set_cursor_pos() method
5854
5855         * gtk/gtkentry.c (recompute_idle_func): set current cursor
5856         position to input methods
5857
5858 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
5859
5860         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
5861         code a lot.
5862
5863         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
5864         g_mem_chunk.
5865         (_gtk_tree_data_list_alloc): use g_mem_chunk.
5866         (_gtk_tree_data_list_node_to_value): Fix to switch on
5867         G_TYPE_FUNDAMENTAL.
5868         (_gtk_tree_data_list_value_to_node): Fix to switch on
5869         G_TYPE_FUNDAMENTAL.
5870         (_gtk_tree_data_list_node_copy): Fix to switch on
5871         G_TYPE_FUNDAMENTAL.
5872
5873 2001-03-12  Havoc Pennington  <hp@redhat.com>
5874
5875         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
5876         to convert to new property API. Also, change default_width and
5877         default_height get_property to return 0 as the flag value for
5878         "unset"; -1 is not a valid value for these fields.
5879
5880 2001-03-12  Havoc Pennington  <hp@redhat.com>
5881
5882         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
5883         enum with registration for icon sizes, instead of strings.
5884
5885         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
5886         gtkwidget.c: Fix to reflect GtkIconSize
5887         
5888 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5889
5890         Make GtkFB compile and link.
5891         
5892         * gdk/linux-fb/gdkdrawable-fb2.c:
5893         window->mapped to GDK_WINDOW_IS_MAPPED(). 
5894         
5895         * gdk/linux-fb/gdkwindow-fb.c:
5896         window->mapped to GDK_WINDOW_IS_MAPPED(). 
5897         Added gdk_window_shape_combine_region.
5898         Added assorted placeholders for unimplemented new GdkWindow API calls.
5899
5900 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5901
5902         * gtk/gtkfilesel.c:
5903         Add more test when converting filenames from/to utf-8.
5904         Don't allow entering text in the filename entry which isn't allowed in
5905         a filename. Just beep instead.
5906
5907 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5908
5909         * gtk/gtkclist.c:
5910         Scroll using gdk_window_scroll(). Don't wait for exposes.
5911         Move the column headers in an order that makes them flash less.
5912
5913 2001-03-10  Hans Breuer  <hans@breuer.org>
5914
5915         * gdk/gdk.def : updated
5916
5917         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
5918         to offseting the clip_mask at the right place
5919
5920         * gdk/win32/gdkwindow-win32.c : don't create background brushes
5921         for all the gdkClasses, especially not for the input_only case.
5922         Otherwise flickering wont be avoidable, because we don't get
5923         WM_ERASEBKGND message for these windows.
5924
5925         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
5926         and fixed massive redraw problems apparently triggered by Alexanders 
5927         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
5928         but it seems to work quite well :-)
5929
5930         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
5931         prototype
5932
5933 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
5934
5935         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
5936         (gtk_list_store_set_cell): Fix a stupid typo.
5937
5938 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
5939
5940         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
5941         select_all not work if you're in SINGLE mode (it doesn't make that
5942         much sense, anyway.)
5943
5944         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
5945         handle types more sanely.
5946         (_gtk_tree_data_list_value_to_node): handle types more sanely.
5947         (_gtk_tree_data_list_node_copy): handle types more sanely.
5948
5949         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
5950         GValue better. Converts the type as well.
5951
5952         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
5953         GValue better. Converts the type as well.
5954
5955 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
5956
5957         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
5958         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
5959         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
5960         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
5961
5962         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
5963         gdk_im/gdk_ic.
5964
5965 2001-03-09  Hans Breuer  <hans@breuer.org>
5966
5967         * gdk/gdk.def : updated
5968
5969         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
5970         for their palette
5971
5972         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
5973         removing
5974
5975         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
5976         removing and implemented Havoc's GdkWindow state functions; 
5977         stick/unstick only as no-op, cause I don't know how to emulate 
5978         on win32 ...
5979
5980         * gtk/gtk.def : updated
5981
5982         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
5983
5984         * gtk/gtktypeutils.c : #include <string.h>
5985
5986         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
5987
5988 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
5989
5990         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
5991         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
5992         not a boxed.
5993
5994 2001-03-09  Alexander Larsson  <alexl@redhat.com>
5995
5996         * docs/Changes-2.0.txt:
5997         Document expose event->region change and that gtk_widget_event
5998         doesn't allow passing expose events.
5999
6000         * gdk/gdkevents.h:
6001         Add region to expose event.
6002         
6003         * gdk/gdkevents.c:
6004         Handle event->region in gdk_event_copy() and gdk_event_free().
6005
6006         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
6007         Generate expose_event->region when creating expose events.
6008
6009         * gdk/x11/gdkevents-x11.c:
6010         Generate expose events with regions when translating X events.
6011
6012         * gtk/gtkcontainer.[ch]:
6013         Default expose handler that propagates expose events to NO_WINDOW
6014         children. New function gtk_container_propagate_expose()
6015
6016         * gtk/gtkwidget.[ch]:
6017         Moved gtk_widget_event implementation to gtk_widget_event_internal.
6018         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
6019         expose events. New function gtk_widget_send_expose() to send expose
6020         events. New function gtk_widget_region_intersect() to calculate
6021         window/region intersections.
6022         
6023         * gtk/gtkmain.c (gtk_main_do_event):
6024         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
6025         Use gtk_widget_send_expose() to send expose events.
6026         
6027         * gtk/gtkbin.c:
6028         * gtk/gtkbox.c:
6029         * gtk/gtkfixed.c:
6030         * gtk/gtkimagemenuitem.c:
6031         * gtk/gtklist.c:
6032         * gtk/gtkpacker.c:
6033         * gtk/gtktable.c:
6034         * gtk/gtktree.c:
6035         Remove expose handler, using the default container implementation
6036         instead.
6037         
6038         * gtk/gtkbutton.c:
6039         * gtk/gtkcheckbutton.c:
6040         * gtk/gtkeventbox.c:
6041         * gtk/gtkfixed.c:
6042         * gtk/gtkhandlebox.c:
6043         * gtk/gtklayout.c:
6044         * gtk/gtklistitem.c:
6045         * gtk/gtkmenu.c:
6046         * gtk/gtkmenubar.c:
6047         * gtk/gtkmenuitem.c:
6048         * gtk/gtknotebook.c:
6049         * gtk/gtkoptionmenu.c:
6050         * gtk/gtkpaned.c:
6051         * gtk/gtkscrolledwindow.c:
6052         * gtk/gtktogglebutton.c:
6053         * gtk/gtktoolbar.c:
6054         * gtk/gtktreeitem.c:
6055         * gtk/gtkviewport.c:
6056         Chain expose handler to parent class handler. Use
6057         gtk_container_propagate_expose() to propagate exposes.
6058
6059         * gtk/gtkclist.c (check_exposures):
6060         * gtk/gtktext.c (process_exposes):
6061         Use gtk_widget_send_expose instead of gtk_widget_event.
6062
6063 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
6064
6065         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
6066
6067 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
6068
6069         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
6070         unref the nodes.   Fixes bug #50058.
6071
6072         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
6073         "::ref_iter" to "::ref_node".
6074         (gtk_tree_model_unref_node): change "::unref_iter" to
6075         "::unref_node". Fixes bug #50064.
6076
6077 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
6078
6079         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
6080         support for invisible cells.
6081          (gtk_tree_view_bin_expose): ditto
6082
6083 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
6084
6085         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
6086         on gobjects.
6087
6088         * tests/testtreefocus.c (main): New test file.
6089
6090         * tests/testtreeview.c: update to latest glib changes.
6091
6092         * tests/testtreecolumns.c: update to latest glib changes.
6093
6094 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
6095
6096         * gtk/testgtk.c: re-enabled event watcher emission hooks.
6097
6098 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
6099
6100         * *.c: added accumulator data argument to g_signal_newc()
6101         functions.
6102
6103         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
6104         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
6105         * gtk/treestoretest.c (make_window):
6106         s/g_signal_connect/g_signal_connectc/.
6107
6108         * gtk/gtktextbuffer.c: completed signal arg fixups,
6109         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
6110
6111 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
6112
6113         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
6114         G_CONST_RETURN.
6115
6116         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
6117         ::hierarchy-changed signal when a widget changes
6118         from anchored to unanchored or vice versa.
6119         (anchored means 
6120          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
6121         Use a private flag to keep track of this efficiently.
6122
6123 2001-03-07  Havoc Pennington  <hp@redhat.com>
6124
6125         * gtk/testgtk.c (create_spins): uglify so that size request gets
6126         tested.
6127
6128         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
6129         request on values for upper/lower, completes #6152
6130
6131 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
6132
6133         * Makefile.am: Remove gtk-config-2.0 again.
6134         (Grrrr, pkg-config. And stops make loops.)
6135
6136 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
6137
6138         * gtk/gtksignal.[hc]: removed old emission hook API.
6139         
6140         * docs/Changes-2.0.txt: fixed sections.
6141         
6142         * gtk/gtktextbuffer.c: signal arg fixups.
6143
6144 2001-03-07  Havoc Pennington  <hp@redhat.com>
6145
6146         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
6147
6148         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
6149         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
6150         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
6151         validation and the redraw which is higher priority than the
6152         validation.
6153
6154 2001-03-07  Havoc Pennington  <hp@redhat.com>
6155
6156         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
6157         (gtk_entry_set_property): remove trailer
6158
6159         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
6160         (gtk_entry_get_width_chars): new functions, to set size request to 
6161         a given number of characters
6162
6163         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
6164
6165         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
6166         (gtk_dialog_get_has_separator): new function
6167         (run_delete_handler): fix to not emit "response" signal
6168         because we already did in the delete event handler installed
6169         at dialog creation time.
6170         
6171         * gtk/gtkdialog.h: add a has_separator property,
6172         add GTK_DIALOG_NO_SEPARATOR flag
6173
6174 2001-03-07  Havoc Pennington  <hp@redhat.com>
6175
6176         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
6177         off decorations for a window.
6178
6179         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
6180         changes
6181
6182         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
6183         to get location of PangoLayout inside the label, closes #51198
6184
6185         * gtk/testgtk.c (create_bbox): fix up button box usage
6186
6187         * gtk/testcalendar.c (create_calendar): fix up button box usage
6188
6189         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
6190
6191         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
6192
6193         * gtk/gtkhbbox.h: deprecations
6194
6195         * gtk/gtkvbbox.h: deprecations
6196
6197         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
6198         emulate deprecated gtk_button_box_get_spacing
6199
6200         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
6201         the "set global default" functions
6202         (struct _GtkButtonBox): remove "spacing" field, use the one from 
6203         GtkBox base class
6204
6205         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
6206
6207         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
6208         render the icon, return the missing image icon.
6209
6210         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
6211         image icon if the load fails.   
6212
6213         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
6214         when no image is found; should be the Netscape "missing image"
6215         icon eventually but for now is a random image
6216
6217         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
6218         role for the session manager
6219
6220         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
6221
6222         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
6223         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
6224
6225         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
6226
6227 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
6228
6229         * gtk/*.c: marshaller fixes.
6230         
6231         * gtk/gtkmarshal.list: extreme cleanup.
6232
6233         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
6234         param spec for now.
6235
6236         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
6237         where appliable.
6238
6239         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
6240         special cased autogenerated boxed types from gtktypebuiltins_ids.c
6241         which are not reference counted:
6242         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
6243         PangoFontDescription, GtkTreeIter and GtkTreePath.
6244
6245 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
6246
6247         * gtk/gtktreeselection.h: 
6248         * gtk/gtktreemodel.c:
6249         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
6250         file should be included directly, and gobject/gmarshal.h
6251         as well as gtk/gtkmarshal.h even can't be included directly.
6252
6253         * Makefile.am: grr, install gtk-config-2.0.
6254
6255         * gtk/testgtk.c:
6256         * gtk/simple.c:
6257         * gtk/gtkmenu.c:
6258         * gtk/gtkitemfactory.c: use g_object_connect() instead of
6259         passing "*signal*::*" args to gtk_widget_set().
6260         
6261         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
6262         
6263         * gtk/*.c: removed trailer arg from property setters and getters.
6264         macro fixups.
6265
6266 2001-03-07  Alexander Larsson  <alexl@redhat.com>
6267
6268         * gtk/gtklabel.c (set_markup): Removed warning
6269
6270 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
6271
6272         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
6273         field to allow you to hide cell renderers.
6274
6275         * gtk/gtkcellrenderer.c: Add support for invisible cells.
6276
6277         * gtk/gtktreeview.c: Add support for invisible cells.
6278
6279 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
6280
6281         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
6282         Add "clicked" signal back to columns.
6283
6284         * ChangeLog: remove conflict markers.
6285
6286 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
6287
6288         * gtk/gtkbutton.c: Add animation of activation by, on 
6289         activate, pressing the button, and adding a timeout that 
6290         releases the button after 250ms or on key release and
6291         emits ::clicked. (#51501)
6292
6293         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
6294         action area, we connect to ::clicked instead of ::activate
6295         so the dialog stays up through the animation.
6296
6297 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
6298
6299         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
6300         check the ignore_enter flag for the menu shell that
6301         the item is actually a child of, not for attached
6302         submenus. (#51536)
6303
6304 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
6305
6306         * gtk/gtkmain.c (gtk_propagate_event): Only do special
6307         special key-press grab handling for widgets within
6308         GtkWindows. Otherwise, fall through to normal case.
6309
6310         This prevents key events being sent twice to GtkInvisible
6311         widgets, which can cause all sorts of mischief.
6312
6313 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
6314
6315         * gtk/gtkmain.c (gtk_propagate_event): When a grab
6316         widget is in effect, give the grab widget a first
6317         crack at KEY_PRESS/RELEASE events. (#424)
6318
6319 2001-03-06  James Henstridge  <james@daa.com.au>
6320
6321         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
6322         offset for the window_state_event to point at window_state_event
6323         rather than no_expose_event.
6324
6325 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
6326
6327         * gtk/gtkimmodule.h: fix busted /* comment */
6328
6329 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
6330
6331         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
6332         object properties.
6333
6334 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
6335
6336         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
6337         add object properties.
6338
6339         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
6340         to add object properties.
6341
6342         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
6343         object properties.
6344
6345         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
6346         add object properties.
6347
6348         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
6349         object properties.
6350
6351 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
6352
6353         * gtk/gtktreemodel.c: renamed "child_toggled" to
6354         "has_child_toggled".
6355
6356         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
6357         handle new signal name.
6358
6359         * gtk/gtktreestore.c: Updated to handle new signal name.
6360         * gtk/gtklisttore.c: Updated to handle new signal name.
6361         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
6362
6363 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6364
6365         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
6366         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
6367
6368 2001-03-05  Michael Natterer  <mitch@gimp.org>
6369
6370         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
6371         pixbuf-engine coincidentially also failed to make one of it's
6372         parent_class pointers static, causing overwriting of GtkLabel's
6373         parent_class pointer in pixbuf_style_class_init().
6374         (Will commit the fix to the pixbuf-engine too).
6375
6376 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6377
6378         * gdk/gdkwindow.h:
6379         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
6380         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
6381         gdk_window_set_icon_list for net wmspec functionality.
6382
6383         * gdk/x11/gdkwindow-x11.c:
6384         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
6385         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
6386         gdk_window_set_icon_list.
6387         Added gdk_wmspec_change_state helper function and used it in the code.
6388         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
6389
6390         * gtk/gtkdialog.c (gtk_dialog_init):
6391         Set GDK_WINDOW_TYPE_HINT_DIALOG.
6392
6393         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
6394         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
6395
6396         * gtk/gtkwindow.c:
6397         new function gtk_window_set_type_hint.
6398         On realize, set type hint and modal hint.
6399
6400         * gtk/gtkwindow.h:
6401         Added type_hint field and gtk_window_set_type_hint.
6402
6403 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6404
6405         * gtk/gtklabel.[ch]:
6406         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
6407         New function gtk_label_get_accel_keyval () to get the underline accelerator
6408         of the label. Setting the label pattern overrides other attributes.
6409
6410 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
6411
6412         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
6413         Added missing initializers to gtk_rc_style_init().
6414
6415 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
6416
6417         * gtk/gtktextview.c: fixed bug #51097 about setting 
6418         gtk_text_view_set_border_window_size() if the widget is 
6419         already realized.
6420
6421 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
6422
6423         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
6424
6425         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
6426         comment. Won't do to have duplicated doc comments between
6427         the platform subdirs.
6428
6429 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
6430
6431         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
6432           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
6433
6434         Detectable auto-repeat - make a repeating key generate
6435         press/press/press/release instead of press/release pairs.
6436
6437         If we have Xkb and XkbSetDectableAutoRepeat supports
6438         that, we do it that way. Otherwise, when we get
6439         a release event, we check ahead with XPending to see
6440         if the next key is a KeyPress with the same keycode
6441         and timestamp. (Not 100% reliable, but pretty close.)
6442           
6443 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
6444         
6445         * gtk/gtkmain.c (gtk_propagate_event): Only do special
6446         special key-press grab handling for widgets within
6447         GtkWindows. Otherwise, fall through to normal case.
6448  
6449         This prevents key events being sent twice to GtkInvisible
6450         widgets, which can cause all sorts of mischief.
6451  
6452 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
6453  
6454         * gtk/gtkmain.c (gtk_propagate_event): When a grab
6455         widget is in effect, give the grab widget a first
6456         crack at KEY_PRESS/RELEASE events. (#424)
6457  
6458 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
6459
6460         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
6461         to extend the selection. (Roughly based on patch
6462         from Jay Cox, #50939)
6463
6464         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
6465         to properly handle previous GDK_BUTTON_PRESS. 
6466         (Patch from Jay Cox, #50938)
6467
6468         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
6469         '\0' back along with the deleted text. (#51148)
6470
6471 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
6472
6473         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
6474         the group when extracting it from the X keyboard event.
6475
6476         * modules/input/Makefile.am modules/input/imipa.c: 
6477         Simple module for entering IPA. (Do we need a 
6478         gtk-stupid-input-tricks CVS module?)
6479
6480 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
6481
6482         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
6483         const.
6484
6485         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
6486
6487         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
6488         is no focus widget for the dialog currently, grab the focus as well
6489         as the default.
6490
6491         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
6492         the action area's children to iterate through, not the
6493         dialog's children.
6494
6495 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
6496
6497         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
6498         Add plug-socket tests. (Won't work worth a darn until I commit
6499         the rest of the plug-socket changes, but no reason these
6500         can't go into CVS now.)
6501
6502 2001-03-02  Havoc Pennington  <hp@redhat.com>
6503
6504         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
6505         _gdk_region_get_xrectangles()
6506
6507         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
6508
6509         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
6510
6511         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
6512         function, contributed by Ron Steinke    
6513
6514         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
6515         gdk_net_wm_supports
6516
6517         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
6518         New function, contributed by Ron Steinke
6519
6520         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
6521         used to line up the text in the entry when using the entry for
6522         editable sheet cell hacks
6523
6524         * gtk/testgtk.c (create_entry): test the activate_default setting
6525         on GtkEntry
6526
6527         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
6528         cause the entry to activate the default button for a dialog when 
6529         activated
6530         (gtk_entry_get_activates_default): new function
6531
6532 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
6533
6534         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
6535         Hwang to move call to sync_selection() up a few lines
6536         to before the row list is modified, to fix crash when
6537         removing rows in the undo_selection list.
6538
6539         (Test case provided by Daniel Elstner:
6540
6541         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
6542
6543 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
6544
6545         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
6546         of tree->root_tree in parent_set rather than _map(), 
6547         fixing #50892 in a bit better manner.
6548
6549 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
6550
6551         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
6552
6553 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
6554
6555         * gtk/gtkstyle.c : Remove duplicate fwd decl for
6556         gtk_default_draw_shadow.
6557
6558 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
6559
6560         * gdk/gdkimage.c (gdk_image_new): Remove excess 
6561         warning, make warnings more verbose, treat a error
6562         in shmat as permanent, and don't try again.
6563         (#51163, Ed Randall.)
6564
6565 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
6566
6567         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
6568         delay for the first click before starting to scroll.
6569         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
6570
6571         * gtk/gtktext.c: GtkText should have I-beam cursor. 
6572         (based on gtk-enf-990513-1.patch, Eric Fisher.)
6573
6574 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
6575
6576         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
6577         cleanup to remove some references to unused
6578         ->xoffset, ->yoffset.
6579
6580 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
6581
6582         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
6583         mask. (#51039, fix from Martin Maierhofer)
6584
6585 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
6586
6587         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
6588         for unshifted + and shifted = for non-us keyboards.
6589         Make <Control>+ and <Control>- work as well as 
6590         <Control>KP_Plus, <Control>KP_Minus for recursive
6591         open/close.  (#2682, René Seindal)
6592
6593 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
6594
6595         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
6596         the active menu item before deactivating the menu,
6597         so gtk_menu_popdown doesn't change the history. (#50964)
6598         
6599 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
6600
6601         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
6602         draw lines with text_gc rather than black_gc.
6603         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
6604
6605 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
6606
6607         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
6608         Move handling of buttons fully in gtktreeviewcolumn.  This code is
6609         less interrelated then it was, but it still requires the
6610         GtkTreeView to map it.
6611
6612         * test/testtreecolumn.c: Now I can add a column to one view,
6613         remove it, add it to the another view, remove it, then re-add it
6614         to the first.  Nifty.
6615
6616 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
6617
6618         * docs/tutorial/gtk-tut.sgml: Minor corrections
6619
6620 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
6621
6622         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
6623         GtkRowReference.
6624
6625 2001-02-28  Havoc Pennington  <hp@redhat.com>
6626
6627         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
6628         draw_default
6629         (gtk_widget_draw_focus): remove this function; we could instead
6630         make it just gtk_widget_draw(), but in most cases I think the
6631         result would be broken user code, so think it's better to have
6632         that code not compile and get fixed
6633         (gtk_widget_draw_default): ditto
6634
6635         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
6636         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
6637         
6638         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
6639         widgets lose/get the default, instead of calling draw_default
6640         
6641         * docs/Changes-2.0.txt: note about all this
6642
6643         Then fixed every widget in GTK, I won't list all the filenames.
6644
6645 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
6646
6647         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
6648         _gtk_tree_row_reference_deleted.
6649         (inserted_callback): Proxy out to
6650         _gtk_tree_row_reference_inserted.
6651         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
6652         get around signal emission ordering problem.
6653
6654         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
6655         fix to work with SINGLE 
6656         (_gtk_tree_selection_internal_select_node): Major sanitization on
6657         selections.  SINGLE now seems to work.
6658
6659         * tests/Makefile.am: add testtreecolumn.c:
6660
6661         * tests/testtreecolumn.c: New test.  Mostly points out selection
6662         bugs currently, but will test columns later.
6663
6664         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
6665         selection bug.  I hate touching this code -- it's scary.
6666
6667 2001-02-26  Havoc Pennington  <hp@redhat.com>
6668
6669         * gtk/testgtk.c: test the window state stuff
6670
6671         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
6672         window come to the user's attention as if it were just created
6673         (gtk_window_iconify): new function
6674         (gtk_window_deiconify): new function
6675         (gtk_window_stick): new function
6676         (gtk_window_unstick): new function
6677         (gtk_window_maximize): new function
6678         (gtk_window_unmaximize): new function
6679
6680         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
6681
6682         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
6683
6684         * gdk/x11/gdkevents-x11.c: create window state events when
6685         appropriate
6686         (gdk_wmspec_supported): new function
6687
6688         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
6689         iconification before showing the window
6690         (gdk_window_deiconify): new function
6691         (gdk_window_stick): new function
6692         (gdk_window_unstick): new function
6693         (gdk_window_maximize): new function
6694         (gdk_window_unmaximize): new function
6695
6696         * gdk/gdkwindow.c: store the window state in the window; 
6697         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
6698         window->mapped.
6699         (gdk_window_get_state): return the current window state
6700
6701         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
6702         (gdk_event_get_state): handle GDK_WINDOW_STATE
6703         (gdk_synthesize_window_state): function to create the window state
6704         events
6705
6706         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
6707         event, for changes to "window state" such as maximized, sticky, 
6708         etc.
6709         
6710         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
6711         focuses a window
6712
6713         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
6714         finds out if we support a given WM spec hint
6715
6716 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
6717
6718         * docs/faq/gtk-faq.sgml: New question re memory leaks.
6719
6720 2001-02-25  Hans Breuer  <hans@breuer.org>
6721
6722         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
6723         cause we want to loose those prototypes only in the latter case
6724
6725         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
6726         GdkPixmapImplWin32 because it itsn't derived from it. Use the
6727         impl member variable instead
6728
6729         * gtk/gtk.def : updated
6730
6731         * gtk/gtklist.c : 
6732         * gtk/gtkmenus.c : include <string.h> for memset ()
6733
6734         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
6735         for everthing built here, but for gtk-x.x.dll only. This solves
6736         problem of indifferent gtk type definitions
6737
6738 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
6739
6740         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
6741
6742 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
6743
6744         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
6745         column that is exposed.
6746
6747         (_gtk_tree_view_update_size): Changed name from set_size, and
6748         changed function to do more work, and not force people calling it
6749         to figure out the size.  Simplifies a lot of code elsewhere.
6750
6751 2001-02-23  Alexander Larsson  <alexl@redhat.com>
6752
6753         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
6754         return solid masks for xpms that have no transparent color.
6755         This makes the ..._create_from_xpm... API backwards
6756         compatible.
6757
6758 2001-02-23  Tor Lillqvist  <tml@iki.fi>
6759
6760         * README.win32: Update. Mention the gtk-1-3-win32-production
6761         branch.
6762
6763         * gdk/win32/bdfcursor.c: New file. A program that generates
6764         xcursors.h. Thanks to Stefan Ondrejicka.
6765
6766         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
6767         compact format.
6768
6769         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
6770
6771         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
6772         function, uses xcursors.h.
6773         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
6774         cursor from inline data instead of using LoadCursor() to generate
6775         it from a resource.
6776
6777         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
6778         event, must check the Windows message for mouse button state, as
6779         the GDK event state might not have been built if it is
6780         undelivered. Remove one goto.
6781
6782         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
6783         SetCursor() if the current cursor as returned by GetCursor() is
6784         the window's previous cursor. The ChildWindowFromPoint() test
6785         apparently didn't work correctly.
6786
6787         * gdk/win32/rc/*.cur: Remove.
6788
6789         * gdk/win32/rc/gdk.rc.in: Remove cursors.
6790
6791         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
6792
6793         * gtk/makefile.{mingw,msc}.in: Updates.
6794
6795 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
6796
6797         * gtk/gtktreemodel.h: add functions for signal emission.
6798
6799         * gtk/gtktreestore.c: move to use above functions instead of
6800         g_signal_emit.
6801
6802         * gtk/gtkliststore.c: ditto
6803
6804 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
6805
6806         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
6807         GObject instead of GtkObject.
6808
6809         * gtk/gtkliststore.c: ditto.
6810
6811         * gtk/gtktreemodelsort.c: ditto.
6812
6813         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
6814         GtkTreeModelIface, instead of in each model.
6815
6816 2001-02-21  Havoc Pennington  <hp@redhat.com>
6817
6818         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
6819         unbreak this function
6820
6821         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
6822         properties
6823
6824         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
6825         properties
6826
6827         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
6828         properties
6829
6830         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
6831         mean unset the max length
6832
6833 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
6834
6835         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
6836         Changed name to be set_cell_data_func to make it clear what
6837         the functino does.  Close bug #51069.
6838
6839 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
6840
6841         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
6842         have memory actually freed.  Keeps box running longer.
6843
6844 2001-02-21  Alexander Larsson  <alexl@redhat.com>
6845         
6846         * gtk/gtkseparatormenuitem.[ch]:
6847         Added new menu separator item. The drawing and size handling
6848         is still done in GtkMenuItem, but the API is a bit more sane.
6849         
6850         * gtk/Makefile.am:
6851         Add gtkseparatormenuitem.[ch].
6852
6853         * gtk/gtk.h:
6854         Add gtkseparatormenuitem.h.
6855         
6856         * gtk/gtkentry.c:
6857         * gtk/gtkmenufactory.c:
6858         * gtk/gtktextview.c:
6859         Use the new API for menu separators.
6860         
6861         * demos/gtk-demo/menus.c (create_menu):
6862         Add some GtkSeparatorMenuItem demo code.
6863
6864 2001-02-20  Havoc Pennington  <hp@redhat.com>
6865
6866         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
6867         Lee Mallabone
6868
6869         * gtk/gtkarrow.c: Convert to new property API, patch from 
6870         Lee Mallabone
6871
6872 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
6873
6874         * tests/testtreeview.c (toggled_callback): fix to reflect change
6875         in GtkTreeModelStore.
6876
6877 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
6878
6879         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
6880         function to create an icon set from a pixbuf.
6881
6882 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6883
6884         * gtk/gtkcellrenderertext.[ch]:
6885         Add a "markup" property.
6886
6887         * gtk/treestoretest.c:
6888         Use the markup property, remove some leftover stuff from
6889         GtkTreeModelMapping.
6890
6891 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6892
6893         * gtk/gtklabel.c (gtk_label_set_selectable):
6894         Queue a redraw if the selectable setting was changed.
6895
6896 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6897
6898         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
6899         Actually copy the whole gc, not just the public parts.
6900         
6901         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
6902         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
6903         labels.
6904
6905 2001-02-19  Havoc Pennington  <hp@pobox.com>
6906
6907         * gdk/gdkwindow.c: docs
6908
6909         * gdk/gdkrgb.c: docs
6910
6911         * gdk/gdkregion-generic.c: docs
6912
6913         * gdk/gdkgc.c (gdk_gc_set_values): docs
6914
6915         * gdk/gdkdraw.c: docs
6916
6917         * gdk/gdkdrawable.h: deprecate drawable get/set data
6918
6919 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
6920
6921         * demos/gtk-demo/dialog.c: Add simple new demo.
6922
6923 2001-02-19  Havoc Pennington  <hp@redhat.com>
6924
6925         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
6926         insert_child_anchor signal, bug #50245
6927
6928         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
6929         from create_child_anchor, so the anchor is passed in
6930
6931         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
6932         (_gtk_widget_segment_new): have the child anchor object passed in, 
6933         instead of creating it.
6934
6935         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
6936         to gtk_text_buffer_get_modified
6937
6938 2001-02-19  Havoc Pennington  <hp@redhat.com>
6939
6940         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
6941         changed GLib without fixing GTK
6942
6943         * gtk/gtkrange.h: Rename all the stupid implementation detail 
6944         functions to have an underscore in front. Most of them should 
6945         probably just go away, but for starters don't export them.
6946         Bug #50482
6947
6948 2001-02-19  Havoc Pennington  <hp@redhat.com>
6949
6950         * gdk/gdkcolor.h: test was backward, so deprecated functions were
6951         excluded by default
6952
6953         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
6954         clean up the old code a bit
6955
6956         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
6957         inconsistent state
6958
6959         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
6960         draw inconsistent state
6961
6962         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
6963         (create_menu): add inconsistent test
6964
6965         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
6966         new function
6967         (gtk_check_menu_item_get_inconsistent): new function
6968         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
6969         state (using etched in for now)
6970
6971         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
6972         draw inconsistent state
6973
6974         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
6975         function, used when the user has selected a range of stuff in
6976         different states
6977         (gtk_toggle_button_get_inconsistent): accessor for that
6978         (gtk_toggle_button_paint): draw inconsistent state (etched in?
6979         don't know what else to do)
6980
6981 2001-02-19  Hans Breuer <hans@breuer.org>
6982
6983         * gtk/gtk.def : updated exported symbols
6984
6985         * gtk/makefile.msc.in : updated
6986
6987         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
6988         a colormap, when invoked from testgtk::entry. I'm not sure where
6989         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
6990         avoids immediate crashing ...
6991
6992         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
6993         any objections ?
6994
6995         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
6996         0 parameter. At least msvc doesn't like macros with var args. 
6997         I simply removed the extra 0, was it a feature or a typo ?
6998
6999         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
7000         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
7001         because the value assignment to the internal struct wasn't working.
7002         I'm not absolutely sure. The problem could have been resolved by
7003         changing the "func" declartion in the struct, but was the pointer
7004         to the function pointer intended ?
7005
7006         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
7007
7008         * gdk/gdk.def : updated exported symbols
7009
7010         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
7011         only use SetDIBitsToDevice if there is a palette at the drawable
7012         and the image is GDK_VISUAL_PSEUDO_COLOR
7013
7014         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
7015
7016         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
7017
7018         * gdk/*/makefile.msc : updated
7019
7020 2001-02-19  Havoc Pennington  <hp@redhat.com>
7021
7022         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
7023         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
7024
7025         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
7026         (gdk_key_repeat_restore): nuke
7027
7028         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
7029         (gdk_init_check): no atexit func
7030
7031         * gdk/gdkrgb.h: mark some stuff deprecated
7032
7033         * gdk/gdkcolor.h: mark some stuff deprecated
7034         
7035         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
7036
7037         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
7038
7039 2001-02-16  Havoc Pennington  <hp@redhat.com>
7040
7041         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
7042         scroll steps.
7043
7044         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
7045         steps, and add Ctrl-arrow shortcuts for paging visually as with
7046         HScale, since Page Up and Page Down move logically.
7047
7048         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
7049         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
7050         
7051         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
7052         steps
7053         (gtk_range_scroll): handle the visual steps
7054
7055         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
7056         scroll steps
7057
7058         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
7059         steps, not the logical ones.
7060
7061         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
7062         (scroll_vertical): handle up/down steps
7063
7064 2001-02-19 Alexander Larsson  <alexl@redhat.com>
7065
7066         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
7067         Copy data and free data with free().
7068
7069         * gdk-pixbuf/gdk-pixbuf.c:
7070         * gdk-pixbuf/io-jpeg.c:
7071         * gdk-pixbuf/io-png.c:
7072         Use g_try_malloc/g_free instead malloc/free.
7073         
7074         * gdk-pixbuf/test-gdk-pixbuf.c:
7075         Must... initialize... gobject...
7076         
7077         * gdk-pixbuf/pixops/timescale.c:
7078         * gtk/gtkcalendar.c:
7079         Use g_malloc instead of malloc.
7080         
7081 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
7082
7083         * gtk/testgtkrc:
7084         Comment out property assignments, these don't work yet.
7085
7086 2001-02-17  Havoc Pennington  <hp@pobox.com>
7087
7088         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
7089         bit.
7090
7091 2001-02-17  Havoc Pennington  <hp@pobox.com>
7092
7093         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
7094         shadowed variables that had broken size request in some cases,
7095         leading to bogus tooltips (#50996)
7096
7097 2001-02-06  Jon K Hellan  <hellan@acm.org>
7098
7099         Implement fast browsing of tooltips, bug #50619
7100         
7101         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
7102         and last_popdown
7103         
7104         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
7105         use_sticky_delay and last_popdown.
7106         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
7107         time of popdown.
7108         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
7109         is NULL.
7110         (gtk_tooltips_recently_shown): New static function.  Return true
7111         if < sticky_delay has elapsed since last popdown.
7112         (gtk_tooltips_event_handler): Display window after sticky_delay
7113         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
7114         since last popdown.
7115         
7116 2001-02-17  Havoc Pennington  <hp@pobox.com>
7117
7118         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
7119         instead of (). #6394
7120
7121         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
7122         G_CONST_RETURN, make it return by reference, #50473
7123         
7124 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
7125
7126         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
7127         generated ENTER_NOTIFY event with 0, otherwise not explicitely
7128         setup fields contain garbage (e.g. subwindow, breaking
7129         gdk_drawable_ref() upon event copy).
7130         (gtk_menu_stop_navigating_submenu_cb): same here.
7131
7132         * gtk/gtklist.c (gtk_list_vertical_timeout): 
7133         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
7134         * gtk/gtkclist.c (vertical_timeout): 
7135         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
7136         default-zero-intialization for unions to memset(,0,), as unions are
7137         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
7138         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
7139
7140         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
7141         g_closure_sink() warning.
7142
7143         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
7144         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
7145         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
7146         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
7147         
7148 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
7149
7150         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
7151         gtk_*_store_get, and moved to GtkTreeModel.
7152
7153         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
7154
7155         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
7156
7157         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
7158
7159         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
7160         set the func.
7161
7162         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
7163         freeze/thaw notify between setting all the properties for a cell.
7164
7165         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
7166
7167 2001-02-15  Havoc Pennington  <hp@redhat.com>
7168
7169         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
7170         the X coordinates so they're with respect to the line, rather than 
7171         with respect to the layout.
7172
7173         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
7174         Mallabone
7175
7176         * gtk/testgtk.c (create_range_controls): add vscale tests, 
7177         and inverted test
7178
7179         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
7180         #50806
7181
7182         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
7183
7184         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
7185         gtk_text_iter_is_end
7186
7187         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
7188         rename gtk_text_buffer_get_end_iter
7189
7190         * gtk/testgtk.c (create_labels): Add test for selectable
7191
7192         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
7193         the selection stuff. This code is kind of broken since it doesn't 
7194         use the theme engine.
7195
7196         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
7197         fix infinite loop and y offset problem
7198         (gdk_draw_layout_line_with_colors): fix foreground color handling
7199
7200         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
7201         that makes the label selectable.
7202         
7203         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
7204         layout when the style is set, since fonts etc. could have changed.      
7205
7206 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
7207
7208         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
7209
7210         * gtk/gtktreemodelsimple.[ch]: removed.
7211
7212 2001-02-16  Alexander Larsson  <alexl@redhat.com>
7213
7214         * gtk/gtktreemodelmapping.[ch]:
7215         New files. Implement GtkTreeModelMapping.
7216         
7217         * gtk/Makefile.am:
7218         Add gtktreemodelmapping.[ch].
7219         
7220         * gtk/gtk.h:
7221         Add gtktreemodelmapping.h
7222
7223         * gtk/treestoretest.c:
7224         Test the GtkTreeModelMapping
7225
7226 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
7227
7228         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
7229         have a demo, we might as well pass in real values.  Thanks to
7230         clahey for pointing this out.
7231
7232 2001-02-14  Havoc Pennington  <hp@pobox.com>
7233
7234         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
7235         "static" to a private function
7236         (gtk_image_menu_item_class_init): remove destroy handler,
7237         add "image" object property
7238
7239 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
7240
7241         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
7242         Add a shortcut if the window and the current clip_region doesn't
7243         overlap. This is needed when there are a lot of windows in a
7244         window. The layout test in testgtk is a good test.
7245
7246         * gdk/linux-fb/gdkwindow-fb.c:
7247         Whitespace fix.
7248
7249 2001-02-13  Sven Neumann  <sven@convergence.de>
7250
7251         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
7252
7253 2001-02-13  Alexander Larsson  <alexl@redhat.com>
7254
7255         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
7256         Don't reference last_cursor if it is null. Fixes crash when rotating
7257         the screen before having moved the mouse.
7258
7259         * gdk/linux-fb/gdkcc-fb.c: Zapp!
7260
7261         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
7262
7263         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
7264         when using 90 or 270 degrees rotation.
7265
7266 2001-02-12  Havoc Pennington  <hp@pobox.com>
7267
7268         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
7269         it always set the foreground, even if we were only using
7270         a stipple.
7271         (gdk_draw_layout_line_with_colors): new function, allow
7272         override colors
7273         (gdk_draw_layout_with_colors): new function, allow override
7274         colors
7275         (gdk_pango_layout_line_get_clip_region): function to get the clip
7276         region for a logical text range
7277         (gdk_pango_layout_get_clip_region): get the clip region for a
7278         logical text range
7279
7280         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
7281         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
7282         the right number of arguments.
7283
7284         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
7285         enhance the function to check that node data corresponds to a 
7286         view still belonging to the tree.
7287
7288         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
7289         GtkTreePath
7290         (gtk_tree_view_inserted): ditto
7291         (gtk_tree_view_child_toggled): ditto
7292
7293         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
7294         simplify this code.
7295
7296         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
7297         a PangoAttrList
7298
7299         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
7300
7301         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
7302
7303         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
7304         size in the size request 
7305         (gtk_menu_bar_size_allocate): consider toggle size here
7306
7307         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
7308         that displays a widget in the toggle slot
7309
7310         * gtk/testgtk.c: test GtkImageMenuItem
7311
7312         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
7313         
7314         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
7315         request and allocation
7316
7317         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
7318
7319         * gtk/gtkcheckmenuitem.c
7320         (gtk_check_menu_item_toggle_size_request): ditto
7321         
7322 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
7323
7324         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
7325         reference.
7326
7327         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
7328         and refuse to initialize GTK+ if they fail.
7329
7330 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
7331
7332         * configure.in: Add check for gtk-doc version.
7333
7334 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
7335
7336         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
7337         where the xpad/ypad was only being used on one side!
7338
7339 2001-02-11  Tor Lillqvist  <tml@iki.fi>
7340
7341         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
7342         function, copied from X11 version.
7343
7344         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
7345         DestroyCursor failures. The reason for the problem (despite the
7346         inconsistent messages from GetLastError()) was that
7347         DestroyCursor() cannot be called while a cursor is set in a
7348         window. Set the new cursor first and then destroy the old one.
7349         Thanks to jpe@archaeopteryx.com.
7350
7351         * gdk/win32/gdkcc-win32.c: Remove.
7352
7353         * gdk/win32/Makefile.am: Remove from here, too.
7354         
7355         * gdk/gdk.def
7356         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
7357
7358         * gtk/gtk.def
7359         * gtk/makefile.mingw.in: Updates.
7360
7361 2001-02-08  Havoc Pennington  <hp@redhat.com>
7362
7363         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
7364         add a widget to a bin that already has a child.
7365
7366         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
7367
7368         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
7369         
7370         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
7371
7372         * gdk/gdk.h: remove gdkcc.h
7373
7374         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
7375
7376         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
7377         GdkPixbuf, since the previous implementation was GdkColorContext
7378         dependent.
7379
7380         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
7381         
7382 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
7383
7384         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
7385         a sane value!
7386
7387 2001-02-08  Havoc Pennington  <hp@redhat.com>
7388
7389         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
7390         lighten them.
7391
7392 2001-02-08  Havoc Pennington  <hp@redhat.com>
7393
7394         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
7395         validation idle
7396
7397         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
7398         cell renderer
7399
7400         * demos/pixbuf-demo.c (timeout): remove deprecated
7401         gtk_widget_draw
7402
7403         * demos/testpixbuf-save.c (main): remove deprecated
7404         gtk_drawing_area_size
7405
7406         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
7407         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
7408         at the start of the allocation.
7409         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
7410         unsetup or NULL model.
7411
7412         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
7413         even/odd/sorted cells in the tree view.
7414
7415         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
7416         bugfixes
7417
7418         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
7419         backgrounds with draw_flat_box using different detail for even/odd
7420         rows.
7421
7422         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
7423         row, so we can draw the alternating colors thing
7424
7425         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
7426         property from a synonym property, notify for the synonym.
7427         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
7428         (gtk_text_tag_get_property): Always return the font, even if
7429         all its fields aren't set
7430
7431         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
7432         store the attr list; it leaves us with no way to change attributes
7433         in _render according to the render flags, and no way to implement
7434         get_property. Instead store all the specific text attributes. 
7435         Separate whether an attribute is enabled from its value. Sync all
7436         properties with GtkTextTag, make them all consistent, etc.
7437
7438         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
7439         renderers can highlight the sort row/column     
7440
7441         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
7442         accessor functions to get values; this has the side effect of
7443         showing up which accessor functions were missing. Added those.
7444
7445         * gtk/gtktreeviewcolumn.h: Replace set_justification with
7446         set_alignment, to be consistent with GtkLabel, GtkMisc
7447
7448         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
7449         arrow.
7450
7451         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
7452
7453         * gtk/gtktreesortable.h: updates in here
7454
7455 2001-02-07  Sven Neumann  <sven@convergence.de>
7456
7457         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
7458         pango dimensions after painting the background. We used to draw
7459         gigantic flat boxes here.
7460
7461 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
7462
7463         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
7464         error introduced with earlier commit) (pointed out by
7465         Ollie Lho)
7466
7467 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
7468
7469         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
7470         which are no longer necessary.
7471
7472 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
7473
7474         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
7475
7476 2001-02-04  Tor Lillqvist  <tml@iki.fi>
7477
7478         * gdk/gdk.def
7479         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
7480         Provide dummy implementations.
7481
7482 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
7483
7484         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
7485
7486         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
7487         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
7488         deprecated this function.
7489
7490         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
7491         argument.
7492
7493 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
7494
7495         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
7496
7497 2001-02-03  Havoc Pennington  <hp@pobox.com>
7498
7499         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
7500         Mikael Hermansson with patch from Mikael (if there was a toggle
7501         start one after the first character in the range, this function
7502         was broken). Bug #50380
7503
7504 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
7505
7506         * configure.in: Remove confusing comment about X11.
7507
7508 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
7509
7510         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
7511         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
7512         
7513 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
7514
7515         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
7516         it breaks things on BSD. If you want to compile GTK+ with
7517         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
7518         when configuring, since GTK+ simply can't be "pure ANSI" 
7519         in the header files it uses. (#8170, Greg Hudson)
7520
7521 2001-02-02  Havoc Pennington  <hp@redhat.com>
7522
7523         * gtk/gtkwindow.c: docs
7524
7525         * gtk/gtkwidget.c: docs
7526         (gtk_widget_set_colormap): add a reference to the colormap
7527         (gtk_widget_get_default_colormap): add a reference to the colormap
7528
7529         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
7530
7531         * gtk/gtktextiter.c: docs
7532
7533         * gtk/gtkmain.c (gtk_propagate_event): docs
7534
7535         * gtk/gtkpaned.c (gtk_paned_get_position): docs
7536         (gtk_paned_set_position): docs
7537
7538         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
7539         sort interface, no implementation yet.
7540
7541         * demos/testpixbuf.c (new_testrgb_window): replace
7542         gtk_drawing_area_size() with gtk_widget_set_usize()
7543
7544         * demos/testpixbuf-drawable.c (main): ditto
7545         
7546         * gtk/testgtk.c: remove use of GtkStatusbarMsg
7547
7548         * gtk/gtktextbuffer.c: docs
7549
7550         * gtk/gtkstock.c: docs
7551
7552         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
7553
7554         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
7555
7556         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
7557         
7558         * gtk/gtkimage.c: add some docs in here
7559         (gtk_image_size_request): change name of
7560         gtk_widget_render_stock_icon
7561         (gtk_image_get_icon_set): don't dup returned string
7562         (gtk_image_get_icon_set): don't dup returned string
7563
7564         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
7565         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
7566         and gtkiconfactory.h functions
7567
7568         * gtk/gtkiconfactory.c: add some docs in here
7569
7570         * gtk/gtkmain.c (gtk_get_default_language): document
7571         (gtk_get_current_event): document
7572         (gtk_get_current_event_state): document
7573         (gtk_get_event_widget): document
7574
7575         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
7576
7577         * gtk/gtkcontainer.c: Add some documentation
7578         (gtk_container_add): give a more explanatory warning on adding an
7579         already-parented widget, this is kind of a FAQ and also a common
7580         typo that's easier to debug with a nice warning 
7581
7582         * gtk/gtkcellrenderertoggle.c
7583         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
7584         adding this, it's useless
7585         (gtk_cell_renderer_toggle_set_active): remove
7586         (gtk_cell_renderer_toggle_get_radio): add
7587
7588         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
7589         the NULL cell renderer, that doesn't make any sense to me. 
7590
7591         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
7592         demo code should never use deprecated features.
7593
7594         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
7595         code should never use deprecated features.
7596
7597         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
7598         gtk_widget_queue_clear_area deprecated
7599
7600         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
7601         deprecated
7602
7603         * gtk/gtklabel.h: mark gtk_label_get() deprecated
7604
7605         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
7606         a GdkImage deprecated, replaced by new consistently-named
7607         functions       
7608
7609         * gtk/gtkmain.h: Mark gtk_exit() deprecated
7610
7611         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
7612
7613         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
7614         deprecated
7615
7616         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
7617         so it won't appear in docs and confuse people.
7618
7619         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
7620
7621         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
7622         macros deprecated. (can't mark the type itself deprecated, since
7623         GtkProgressBar is not deprecated and we need the type decl to use
7624         GtkProgressBar)
7625
7626         * gtk/gtkpixmap.h: Mark deprecated
7627
7628         * gtk/gtkoldeditable.h: Mark deprecated
7629
7630         * gtk/gtklist.h: Mark deprecated
7631
7632         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
7633         for anything anymore.
7634
7635         * gtk/gtkctree.h: Mark deprecated
7636
7637         * gtk/gtkclist.h: Mark deprecated
7638
7639         * gtk/gtkpreview.h: Mark deprecated
7640
7641         * gtk/gtkpacker.h: Mark deprecated
7642
7643         * gtk/gtktipsquery.h: Mark deprecated
7644
7645         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
7646
7647         * gtk/gtkvruler.h: Add comment that it will move out of GTK
7648
7649         * gtk/gtkhruler.h: Add comment that it will move out of GTK
7650
7651         * gtk/gtkruler.h: Add comment that it will move out of GTK
7652
7653         * gtk/gtkgamma.h: Add comment that it will move out of GTK
7654
7655         * gtk/gtkcurve.h: Add comment that it will move out of GTK
7656
7657 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
7658
7659         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
7660         gdk_colormap_sync private since it was never exported
7661         in a header file.
7662
7663         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
7664         colormap->colors[] for StaticGray, StaticColor colormaps.
7665
7666         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
7667         was being used as if it was image->bits_per_pixel.
7668
7669         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
7670         for the image in the GdkImage structure since it isn't
7671         reconstructable, and we need it to handle packed types
7672
7673         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
7674         the assumption that on Win32 image->bits_per_pixel == image->depth,
7675         always.
7676
7677         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
7678
7679         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
7680         warning message if no converter can be found. 
7681
7682 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
7683
7684         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
7685         chars to isupper() / tolower(). (#567)
7686
7687         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
7688         to clear up 64-bit warnings. (#567)
7689
7690 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
7691
7692         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
7693         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
7694
7695         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
7696         since some people set $(libdir) separately. (#1290, David Kaelbling)
7697
7698 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
7699
7700         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
7701         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
7702         MAXPATHLEN, but the code here depends on a fixed value.)
7703         (#4524)
7704
7705 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
7706
7707         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
7708         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
7709
7710 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
7711
7712         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
7713         viewable there is no way that moving the node will cause the 
7714         focus row to become not viewable, so omit check on the visibility
7715         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
7716
7717 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
7718
7719         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
7720         selection before inserting new text.
7721
7722 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
7723
7724         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
7725         Make the sensitivity of the reparented child track that of
7726         the original parent menu item. (#34218, David Hodson)
7727
7728         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
7729         the case where the current item is destroyed properly.
7730
7731         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
7732         some edge cases with child-less menuitems.
7733         
7734 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
7735
7736         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
7737         key pop down window. (#12074, Jon K Hellan)
7738
7739 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
7740
7741         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
7742         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
7743         The solution here isn't perfect - you get an extraneous
7744         emission of "toggle", which could conceivably confuse an app,
7745         but better than the current situation. LXR search seems to
7746         indicate that no apps in GNOME CVS connect to "toggle".
7747
7748 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
7749
7750         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
7751         gtk_public_h_sources to directly here to avoid warning when
7752         building srcdir != builddir. (#9656)
7753
7754 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
7755
7756         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
7757         handlers in gtkrange.c return the proper values (TRUE == handled)
7758         (#10316).
7759
7760         This is just the tip of the iceberg, but gtkrange.c is the
7761         most common place where the propagation is problematical,
7762         and also a place where it is almost certainly safe to change
7763         this in the stable branch.
7764
7765         (You don't want right click popups on a range control or anything...)
7766
7767 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
7768
7769         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
7770         area on focus out, even if a background pixmap isn't set.
7771         (#13941)
7772         
7773 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
7774
7775         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
7776         to deal with setting the shape properly when scrolling arrows are
7777         turned on, but not visible because there is sufficient space.
7778         (#13432)
7779
7780 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
7781
7782         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
7783         items with submenus, destroy the item along with the submenu.
7784         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
7785         properly.
7786
7787         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
7788         later.
7789
7790 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
7791
7792         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
7793         the focus widget sometimes wasn't drawn with the default if there
7794         was no default widget.
7795
7796         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
7797         unreference pixmaps. 
7798
7799         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
7800         for some extra safety.
7801
7802 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
7803
7804         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
7805         the text of a cell to the old pointer value better, by
7806         copying the new text before freeing the old text. Some code
7807         cleanup. (#8079, Karl Nelson)
7808
7809 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
7810
7811         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
7812         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
7813
7814 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
7815
7816         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
7817         item from a menu, check to see if it matches 
7818         menu->old_active_menu_item, and if so, unref and clear
7819         old_active_menu_item (Patch from Pavel Cisler)
7820
7821         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
7822         menu_shell->active_menu_item, if it is the child being
7823         removed. (Patch based on that of Gene Ragan, #50337)
7824
7825 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
7826
7827         * gdk/linux-fb/gdkselection-fb.c: 
7828         * gdk/linux-fb/gdkcolor-fb.c: 
7829         * gdk/linux-fb/gdkdrawable-fb2.c: 
7830         * gdk/linux-fb/gdkfont-fb.c: 
7831         * gdk/linux-fb/gdkim-fb.c: 
7832         * gdk/linux-fb/gdkinput.c: 
7833         * gdk/linux-fb/gdkkeyboard-fb.c: 
7834         * gdk/linux-fb/gdkmain-fb.c: 
7835         * gdk/linux-fb/gdkrender-fb.c: 
7836         A bunch of whitespace cleanup.
7837         
7838 2001-01-30  Havoc Pennington  <hp@pobox.com>
7839
7840         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
7841         #ifdef GTK_ENABLE_BROKEN.
7842
7843         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
7844         GTK_ENABLE_BROKEN just before including the broken headers.
7845         
7846         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
7847         deprecated types registered.
7848
7849         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
7850         we have to test the broken stuff.
7851
7852         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
7853         
7854 2001-01-30  Havoc Pennington  <hp@redhat.com>
7855
7856         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
7857         here where prev pointer was set to the wrong thing
7858
7859         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
7860         (gtk_tree_path_is_descendant): new function
7861
7862         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
7863         cached length
7864         (gtk_list_store_get_iter): don't modify iter if we can't get the
7865         path.
7866
7867         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
7868         
7869         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
7870         GtkTreeDragDest
7871
7872         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
7873         was causing segfault
7874
7875         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
7876         pointer to NULL
7877
7878         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
7879
7880         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
7881         on returning FALSE
7882         (gtk_list_store_iter_children): ditto
7883         (gtk_list_store_iter_nth_child): ditto
7884         (gtk_list_store_iter_nth_child): ditto
7885         (gtk_list_store_iter_parent): ditto
7886
7887         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
7888         on iter->user_data != NULL instead of silently accepting it.
7889         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
7890         we are returning TRUE.
7891         (gtk_tree_store_iter_children): ditto
7892         (gtk_tree_store_iter_nth_child): ditto
7893         (gtk_tree_store_iter_parent): ditto
7894         (gtk_tree_store_insert): remove handling of parent->user_data ==
7895         NULL, replace with parent == NULL       
7896
7897         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
7898         and a comment explaining things
7899
7900         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
7901         interface support to GtkTreeStore.
7902
7903         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
7904         FALSE if no prev, fix
7905
7906         * gtk/gtktreeview.c (set_source_row): use a row reference
7907         (set_dest_row): use a row reference
7908
7909 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
7910
7911         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
7912         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
7913         (gtk_tree_selection_select_iter): The same as above.
7914
7915 2001-01-26  Havoc Pennington  <hp@redhat.com>
7916
7917         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
7918         which holds a handle to a specific row (particular set of values
7919         in the model, i.e. pointer-identity row).
7920
7921         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
7922         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
7923         Still need to use it for the src/dest row saved on the drag context.
7924
7925 2001-01-26  Havoc Pennington  <hp@redhat.com>
7926
7927         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
7928
7929         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
7930         not offset by TREE_VIEW_HEADER_HEIGHT
7931         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
7932         TREE_VIEW_HEADER_HEIGHT
7933
7934         * configure.in (included_loaders): for me, --with-included-loaders
7935         generates the error "the specified loader yes does not exist",
7936         i.e. the arg defaults to "yes", so change test for value ""
7937         to test for value "yes", and include all loaders in that case.
7938
7939         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
7940
7941         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
7942         handle TREE_VIEW_VERTICAL_SEPARATOR
7943         (gtk_tree_view_bin_expose): fix to consider the row offset as
7944         pointing halfway into vertical separator.       
7945         (gtk_tree_view_draw_node_focus_rect): ditto
7946
7947         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
7948         --gtk-debug=updates, which causes gdk_window_set_debug_updates
7949         (TRUE) to be called.
7950
7951         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
7952         debug mode where the invalid region is colored in on invalidate,
7953         so you can see the flicker and know whether your redraw code is 
7954         doing a good job.
7955
7956         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
7957         tree window coordinates (clip rect is in tree window coords)
7958
7959         * gtk/Makefile.am: add gtktreednd.[hc]
7960
7961         * gtk/gtkliststore.c: implement gtktreednd interfaces.
7962
7963         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
7964         drag-and-drop data operations on a model (so we can set up tree
7965         drag-and-drop automatically)
7966
7967         * gtk/testgtk.c: Add a window to change sensitivity in the
7968         GtkLabel test; add a way to change the entry frame in GtkEntry
7969         test
7970
7971         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
7972         (gtk_entry_get_has_frame): new functions to remove the frame
7973         around an entry
7974         (gtk_entry_size_request): shrink requisition if no frame
7975         (gtk_entry_draw_focus): don't draw frame if no frame
7976
7977         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
7978         checks inside a cell renderer
7979         (gtk_default_draw_option): ditto for options
7980
7981         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
7982         children from the alignment, not the button
7983         (gtk_tree_view_column_init): ref/sink the column, to emulate
7984         GObject refcounting.
7985
7986         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
7987         
7988         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7989         Use theme functions to draw the toggles 
7990
7991         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
7992
7993         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
7994         GdkPangoAttrEmbossed to use in rendering insensitive text
7995
7996         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
7997
7998         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
7999         using new GDK features
8000         
8001 2001-01-24  Alexander Larsson  <alexl@redhat.com>
8002
8003         * gtk/gtkimage.c:
8004         Splitted gtk_image_clear into gtk_image_clear() and
8005         gtk_image_reset(). Call gtk_image_clear() in ::destroy
8006         to avoid leaks.
8007
8008         * gtk/gtklabel.c (set_markup):
8009         Don't leak text.
8010
8011         * gtk/gtktextlayout.c:
8012         Always free display->shaped_objects.
8013
8014         * gtk/testgtk.c (create_clist):
8015         Don't leak custom style.
8016
8017 2001-01-23  Alexander Larsson  <alexl@redhat.com>
8018
8019         * gtk/gtkcolorsel.c (grab_color_at_mouse):
8020         Don't leak image. Simplify using gdk_colormap_query_color().
8021         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
8022
8023         * linux-fb/gdkcolor-fb.c:
8024         Implemented gdk_colormap_query_color.
8025
8026 2001-01-23  Alexander Larsson  <alexl@redhat.com>
8027
8028         * linux-fb/gdkcursor-fb.c:
8029         Don't leak built-in cursors.
8030
8031         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
8032         Don't leak tmp_points.
8033
8034         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
8035         Don't modify desc. Don't leak font if the PangoFont
8036         isn't found.
8037         
8038         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
8039         Free dash_list.
8040
8041         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
8042         Don't leak string.
8043         
8044 2001-01-20  Havoc Pennington  <hp@pobox.com>
8045
8046         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
8047         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
8048         me, matches Pango
8049
8050 2001-01-22  Havoc Pennington  <hp@redhat.com>
8051
8052         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
8053
8054         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
8055
8056         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
8057         Remove, move back to gdk-pixbuf
8058
8059         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
8060         to all the word functions
8061
8062         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
8063         before doing anything on NULL layout or if we don't have the focus
8064
8065         * gtk/testtext.c (fill_example_buffer): "justification"
8066
8067         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
8068         to be called "justification" not "justify"
8069
8070         * demos/gtk-demo/textview.c (create_tags): "justification"
8071         
8072         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
8073
8074 2001-01-22  Alexander Larsson  <alexl@redhat.com>
8075
8076         * gdk/gdkwindow.c (gdk_window_invalidate_region):
8077         Don't leak visible_region. Use visible_region instead of region.
8078         
8079         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
8080         Don't do extra gdk_drawable_ref(). This is not X.
8081         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
8082         gdk_fb_focused_window is ref:ed.
8083         (gdk_fb_window_send_crossing_events): Watch out for destroyed
8084         windows.
8085
8086 2001-01-22  Alexander Larsson  <alexl@redhat.com>
8087
8088         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
8089         Don't leak the PangoFontDescriptor.
8090
8091 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
8092
8093         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
8094         when not realized.
8095         (gtk_tree_view_scroll_to_cell): Make work when not realized.
8096         (gtk_tree_view_realize): add scroll_to support
8097         (gtk_tree_view_finalize): add a finalize method.  Populate.
8098         (gtk_tree_view_insert_column): ref and sink the column.
8099         (gtk_tree_view_append_column): ref and sink the column.
8100         (gtk_tree_view_queue_draw_node): New function to handle redrawing
8101         individual nodes.  Should make the code much more efficient, if
8102         actually used.
8103
8104 2001-01-19  Havoc Pennington  <hp@redhat.com>
8105
8106         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
8107         byte_offset variable was being used to mean both "offset into
8108         layout" and "offset into buffer line" which was no longer true
8109         with addition of preedit string; fix
8110
8111 2001-01-19  Havoc Pennington  <hp@redhat.com>
8112
8113         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
8114
8115         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
8116         function
8117
8118         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
8119         implement
8120
8121         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
8122         scroll_to_cell, matches TextView scroll functions better
8123         (gtk_tree_view_tree_to_widget_coords): new function
8124         (gtk_tree_view_widget_to_tree_coords): new function
8125         (gtk_tree_view_get_visible_rect): new function
8126         (gtk_tree_view_get_path_at_pos): accept negative coordinates
8127         (gtk_tree_view_draw_node_focus_rect): new function moved from
8128         draw_focus, also, use width of bin_window as width of the focus
8129         rect
8130         (gtk_tree_view_expand_row): fix bug where it didn't recognize
8131         already-expanded rows
8132         (gtk_tree_view_get_cell_rect): new function
8133         (gtk_tree_view_get_path_at_pos): return the click position
8134         relative to the passed-in cell
8135         (gtk_tree_view_set_expander_column): new function
8136
8137         * configure.in: remove gtk-config-2.0 chmod
8138
8139         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
8140         and properly handle drags with targets we don't understand
8141         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
8142         scrolling anyway
8143         (gtk_text_view_drag_drop): stop scrolling here though, and set the
8144         mark invisible
8145
8146         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
8147         function
8148         (gtk_drag_dest_get_target_list): new function
8149         (gtk_drag_dest_set_target_list): new function
8150         
8151         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
8152
8153         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
8154         related to drag-and-drop
8155
8156 2001-01-19  Alexander Larsson  <alexl@redhat.com>
8157
8158         * gdk/linux-fb/gdkprivate-fb.h:
8159         Define EMULATE_GDKFONT.
8160         Add extra pango_font stuff to GfkFontPrivate.
8161         
8162         * gdk/linux-fb/gdkdrawable-fb2.c:
8163         * gdk/linux-fb/gdkfont-fb.c:
8164         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
8165         emulation using PangoFont.
8166
8167 2001-01-17  Havoc Pennington  <hp@pobox.com>
8168
8169         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
8170         all the non-deprecated set_foo functions. Added missing object
8171         properties, and added g_object_notify() to setters. 
8172         Wrote docs.
8173         
8174 2001-01-18  Tor Lillqvist  <tml@iki.fi>
8175
8176         * gtk/gtkmain.c
8177         * gtk/gtkrc.c: (Win32) Use the new
8178         g_win32_get_package_installation_(sub)directory() functions.
8179
8180         * config.h.win32.in: New file.
8181         
8182         * config.h.win32: Removed.
8183
8184         * configure.in: Output config.h.win32.
8185
8186         * Makefile.am: Add it to EXTRA_DIST.
8187
8188         * gtk/gtk.def: Update.
8189
8190 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
8191
8192         * gtk/gtklabel.c (gtk_label_size_request): Set the
8193         attributes onto the PangoLayout even if they are newly
8194         created from label->pattern.
8195
8196 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
8197
8198         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
8199
8200         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
8201         structures in functions. Fixes bug where gtk_dataset_*
8202         was accidentally still being used in one place, causing
8203         every dest side event to be treated independently.
8204
8205         * gtk/gtkdnd.c: Remove last vestages of handling
8206         ::draw (fixes warning)
8207         
8208         * gtk/gtkentry.[ch]: Add drag and drop support.
8209
8210         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
8211         new function gtk_check_drag_threshhold() for checking
8212         to check if (dx,dy) has exceeded the threshhold for starting
8213         a drag and use it everywhere.
8214
8215 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
8216
8217         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
8218         add -I{includedir}/gtk-2.0.
8219
8220         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
8221         gdk/gdk-pixbuf.h: Doc fixups.
8222         
8223         * gtk/gtkobject.h: Remove trailing , from enum
8224
8225 2001-01-17 Alexander Larsson <alexl@redhat.com> 
8226
8227         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
8228         Doh! Mixed up x and y.
8229
8230         * gdk/linux-fb/gdkglobals-fb.c:
8231         Removed gdk_fb_pointer_grab_window_events,
8232         added _gdk_fb_pointer_grab_owner_events and
8233         _gdk_fb_keyboard_grab_owner_events.
8234
8235         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
8236         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
8237         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
8238         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
8239         Send crossing events after ungrab finished.
8240         (gdk_keyboard_grab): Set ..._owner_events
8241         (type_masks): Move out of function.
8242         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
8243         gdk_fb_keyboard_event_window): New functions, return the
8244         window an event should be targeted at. Handles grabs and
8245         event propagation. Can return NULL.
8246         (gdk_event_make): Remove event_mask checking. Now always
8247         returns an event.
8248                 
8249         * gdk/linux-fb/gdkkeyboard-fb.c:
8250         * gdk/linux-fb/gdkproperty-fb.c:
8251         * gdk/linux-fb/gdkselection-fb.c:
8252         Use new event_window/gdk_event_make() behaviour.
8253         
8254         * gdk/linux-fb/gdkmouse-fb.c:
8255         Use new event_window/gdk_event_make() behaviour.
8256         Only send motion events if in the same window.
8257         If grabbed, use cursor from window if sibling of grabbed
8258         window, and cursor from grabbed window otherwise.
8259
8260         * gdk/linux-fb/gdkprivate-fb.h:
8261         Update gdk_fb_window_send_crossing_events, gdk_event_make
8262         and grab varaible declarations. Add gdk_fb_*_event_window().
8263
8264         * gdk/linux-fb/gdkwindow-fb.c:
8265         Use new event_window/gdk_event_make() behaviour.
8266         Keep correct track of focus window.
8267         (gdk_window_set_events): Set all specific button motion masks
8268         if GDK_BUTTON_MOTION_MASK set.
8269
8270         * gtk/gtkdnd.c (gtk_drag_update):
8271         Free info->last_event if gdk_drag_motion returned FALSE.
8272
8273 2001-01-16  Tor Lillqvist  <tml@iki.fi>
8274
8275         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
8276         Eliminate redraws when input-only windows are shown or
8277         hidden. Thanks to jpe@archaeopteryx.com.
8278
8279 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
8280
8281         * docs/faq/gtk-faq.sgml: FAQ update:
8282           - Update to bugzilla
8283           - Add GTK+ and security/SUID/SGID
8284           - Add DnD question
8285
8286 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
8287
8288         * gdk/linux-fb/gdkdnd-fb.c:
8289         Some cleanups.
8290         
8291 2001-01-15  Havoc Pennington  <hp@pobox.com>
8292
8293         * tests/testtreeview.c: add test stuff for CellRendererToggle
8294
8295         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
8296         accessor
8297
8298         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
8299         only toggle on button press (would do release like GtkButton, but
8300         we'd need implicit grab code for treeview cells)
8301
8302 2001-01-16  Tor Lillqvist  <tml@iki.fi>
8303
8304         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
8305
8306         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
8307         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
8308
8309         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
8310         to g_{locale,filename}_{to,from}_utf8 to match current API.
8311
8312         * gtk/makefile.msc.in (gtk_OBJECTS)
8313         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
8314
8315         * gtk/gtk.def: Update.
8316
8317 2001-01-15  Tor Lillqvist  <tml@iki.fi>
8318
8319         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
8320         implementaion that more closely mimics the events that an X server
8321         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
8322         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
8323         with nested preview widgets, for instance, more responsive when
8324         you move the mouse quickly into them.
8325         (find_window_for_pointer_event): Make it actually compile.
8326         (gdk_event_translate): Set send_event to the value of
8327         InSendMessage (). This doesn't really mean the same as X11's
8328         send_event flag, but is close enough, says jpe@archaeopteryx.com
8329
8330 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8331
8332         * gdk/linux-fb/gdkdnd-fb.c:
8333         Implemented drag and drop.
8334         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
8335         when it tries to free and then copy the same event (info->last_event).
8336         I am not sure about why this happens, but will continue looking.
8337
8338 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8339
8340         * gdk/linux-fb/gdkwindow-fb.c:
8341         Use gdk_window_invalidate_rect instead of
8342         gdk_window_invalidate_rect_clear to minimise flashing.
8343         When hiding windows you need to clear the root window though.
8344
8345 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8346
8347         * gdk/linux-fb/gdkdrawable-fb2.c:
8348         For optization, add an full_shapes argument to gdk_fb_clip_region.
8349         If this is false, only the cliprects of the shapes are used.
8350
8351         * gdk/linux-fb/gdkprivate-fb.h:
8352         Export gdk_fb_window_peek_shape.
8353         Add full_shapes to gdk_fb_clip_region.
8354
8355         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
8356         When moving a window, don't clear everything under the it, just the
8357         root window. Makes stuff faster and flash less.
8358         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
8359         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
8360         offset of the shape.
8361         
8362
8363 2001-01-12  Havoc Pennington  <hp@redhat.com>
8364
8365         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
8366         current invalid region, fixes redraw bug while scrolling the 
8367         text widget
8368
8369         * gtk/gtktextview.c, gtk/gtktextview.h:
8370         Rearrange the scrolling/validation/etc. code in a major way, 
8371         so it seems to make sense to me. Probably isn't genuinely that
8372         much better, but...
8373
8374         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
8375         notifies
8376
8377         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
8378
8379 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
8380
8381         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
8382         Hide mouse pointer while rotation. Show it afterwards.
8383
8384 2001-01-12  Alexander Larsson  <alexl@redhat.com>
8385
8386         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
8387         windows in consideration when generating clip region.
8388
8389         * gdk/linux-fb/gdkfb.h:
8390         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
8391
8392         * gdk/linux-fb/gdkprivate-fb.h:
8393         Add shape to GdkWindowFBDatat.
8394         exported gdk_fb_window_get_abs_shape().
8395         removed gdk_fb_draw_lines declaration.
8396
8397         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
8398         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
8399         send focus changes when there is a grabbed window.
8400         (gdk_window_get_pointer): Handle shaped windows.
8401         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
8402         (gdk_fb_window_peek_shape): Returns the shape for a window,
8403         handles GDK_FB_USE_CHILD_SHAPE.
8404         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
8405         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
8406         (gdk_window_shape_combine_mask): Implement.
8407
8408         * gtk/gtkwindow-decorate.c:
8409         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
8410         setting the shape of a window makes the window transparent.
8411
8412 2001-01-11  Havoc Pennington  <hp@redhat.com>
8413
8414         * gtk/gtktreemodelsimple.h: Oops, broke some macros
8415
8416 2001-01-10  Havoc Pennington  <hp@redhat.com>
8417
8418         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
8419         add this function, bug 40251
8420
8421         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
8422         of type macro   
8423
8424 2001-01-11  Alexander Larsson  <alexl@redhat.com>
8425
8426         * acconfig.h:
8427         Added ENABLE_SHADOW_FB
8428
8429         * configure.in:
8430         Added --disable-shadowfb
8431
8432         * gdk/linux-fb/gdkcursor-fb.c:
8433         Update shadowfb when updating cursor
8434
8435         * gdk/linux-fb/gdkdrawable-fb2.c:
8436         Added wrappers for shadowfb that calls  the normal drawable
8437         methods, but calls gdk_shadow_fb_update(bounding box) when
8438         GdkWindows are drawed to.
8439         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
8440         which also returns the bounding box.
8441
8442         * gdk/linux-fb/gdkfb.h:
8443         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
8444
8445         * gdk/linux-fb/gdkgeometry-fb.c:
8446         Update shadowfb when scrolling window.
8447
8448         * gdk/linux-fb/gdkglobals-fb.c:
8449         Add _gdk_fb_screen_angle.
8450         
8451         * gdk/linux-fb/gdkkeyboard-fb.c:
8452         Test code for screen rotation. Shift-F2 in the xlate driver
8453         rotates the screen.
8454
8455         * gdk/linux-fb/gdkmain-fb.c:
8456         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
8457
8458         * gdk/linux-fb/gdkmouse-fb.c:
8459         Use fb_width/height instead of modeinfo.xres/yres.
8460
8461         * gdk/linux-fb/gdkprivate-fb.h:
8462         Added fb_men, fb_width, fb_height & fb_stride. When using
8463         shadow fb these can differ from the framebuffer stuff.
8464         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
8465         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
8466         _gdk_fb_screen_angle. Removed CM, RP.
8467
8468         * gdk/linux-fb/gdkrender-fb.c:
8469         Added code for shadowfb handling and screen rotation using
8470         shadowfb.
8471
8472         * gdk/linux-fb/gdkwindow-fb.c:
8473         Use fb_mem, fb_stride, fb_width, fb_height.
8474         Added recompute_rowstride to reset the rowstride of all windows.
8475         Added gdk_fb_recompute_all() which recomputes rootwindow size,
8476         window abs positions and window rowstrides. Usefull when the
8477         rotation has changed.
8478
8479 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
8480
8481         * docs/faq/gtk-faq.sgml: update to make web site updating easier
8482
8483 2001-01-10  Havoc Pennington  <hp@redhat.com>
8484
8485         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
8486         where sibling == iter
8487         (gtk_tree_store_insert_after): handle sibling == iter
8488         (gtk_tree_store_prepend): remove stamp checks
8489         (gtk_tree_store_insert_before): ditto
8490         (gtk_tree_store_append): ditto
8491         (gtk_tree_store_get_path): ditto
8492         (gtk_tree_store_get_value): ditto
8493         (gtk_tree_store_iter_has_child): ditto
8494         (gtk_tree_store_iter_n_children): ditto
8495         (gtk_tree_store_iter_nth_child): ditto
8496         (gtk_tree_store_insert_after): ditto
8497         (gtk_tree_store_is_ancestor): ditto
8498         (gtk_tree_store_iter_depth): ditto
8499         (gtk_tree_store_insert_before): assert that sibling's parent is
8500         the same as the passed-in parent
8501         (gtk_tree_store_insert_after): assert that sibling's parent is
8502         the same as the passed-in parent
8503
8504         
8505         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
8506         function to get the first iterator in a model
8507         
8508         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
8509         conventionally the "root" in this sense is just NULL afaict.
8510
8511         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
8512         where sibling == iter
8513         (gtk_list_store_insert_after): handle case where sibling == iter
8514
8515         * tests/testtreeview.c (run_automated_tests): fairly lame basic
8516         automated tests for ListStore, TreeStore
8517
8518         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
8519         (gtk_list_store_insert): update tail pointer, and fix it to work
8520         (gtk_list_store_insert_before): update tail pointer, and fix it to work
8521         (gtk_list_store_append): use tail to be faster
8522         (gtk_list_store_prepend): fix it, update tail pointer
8523         (gtk_list_store_insert_after): fix it, update tail pointer
8524
8525         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
8526         the list
8527
8528 2001-01-09  Havoc Pennington  <hp@redhat.com>
8529
8530         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
8531         is NULL due to a pending resize
8532
8533         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
8534         column width to values less than 1
8535
8536         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
8537         width to be between min/max width, and still set the width 
8538         even if autosize is turned on, so the tree view can use this 
8539         function in order to autosize.
8540         (gtk_tree_view_column_init): set initial width to 1 not 0
8541
8542         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
8543         setter function to modify column width, so we get notification
8544         (gtk_tree_view_insert_iter_height): ditto
8545         (gtk_tree_view_calc_size): ditto
8546         (gtk_tree_view_check_dirty): ditto
8547
8548         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
8549         properties to change all the interesting attributes of the tree
8550         view column.
8551         (gtk_tree_view_column_set_header_clickable): rename set_clickable
8552         (gtk_tree_view_column_get_clickable): add
8553         (gtk_tree_view_column_set_cell_renderer): don't unset the current
8554         attributes; assume a cell renderer with equivalent object
8555         properties has been swapped in. Do g_object_notify().
8556         (gtk_tree_view_column_set_visible): g_object_notify
8557         (gtk_tree_view_column_get_sizing): rename from get_col_type
8558         (gtk_tree_view_column_set_sizing): g_object_notify
8559         (gtk_tree_view_column_set_width): add g_object_notify
8560         (gtk_tree_view_column_set_min_width): ditto
8561         (gtk_tree_view_column_set_max_width): ditto
8562         (gtk_tree_view_column_set_title): ditto
8563         (gtk_tree_view_column_set_clickable): ditto
8564         (gtk_tree_view_column_set_widget): ditto
8565         (gtk_tree_view_column_set_justification): ditto
8566
8567 2001-01-09  Havoc Pennington  <hp@redhat.com>
8568
8569         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
8570         there are no rows in the model
8571
8572         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
8573         NULL, then return the start of the list
8574
8575         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
8576         if we can't get any rows from an empty model 
8577
8578         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
8579         extraneous * after function pointer typedef usage
8580
8581         * Makefile.am: don't specify full path to cp and rm
8582
8583         * gtk/gtkcellrenderertextpixbuf.c
8584         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
8585         NULL before dereferencing, fixes a segfault that happened from
8586         time to time
8587
8588         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
8589         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
8590         and reindent the function
8591         (gtk_cell_renderer_pixbuf_get_size): indentation
8592
8593         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
8594         we quit it
8595         (gtk_dialog_add_buttons_valist): add g_return_if_fail
8596         (gtk_dialog_set_default_response): New function, to set default
8597         button
8598         (gtk_dialog_set_response_sensitive): New function, to set 
8599         sensitivity of buttons
8600
8601         * gtk/gtkcellrendererpixbuf.c
8602         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
8603         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
8604
8605         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
8606         handle any G_TYPE_OBJECT subclass, not just the base class, and 
8607         also boxed types.
8608         (_gtk_tree_data_list_value_to_node): ditto
8609
8610         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
8611         --gtk-debug=tree
8612
8613         * gtk/gtkmain.c: add GTK_DEBUG_TREE
8614
8615         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
8616
8617 2001-01-09  Tor Lillqvist  <tml@iki.fi>
8618
8619         * gdk/win32/gdkevents-win32.c: Implement better mouse
8620         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
8621         (find_window_for_pointer_event): New function.
8622         (gdk_event_translate): Use it when handling mouse events.
8623
8624 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
8625
8626         * configure.in:
8627         Added --with-included-loaders option
8628
8629         * gdk-pixbuf/Makefile.am:
8630         * gdk-pixbuf/gdk-pixbuf-io.c:
8631         Add support for including selected gdk-pixbuf loaders only.
8632
8633         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
8634         gtk_window_set_has_frame):
8635         Added inline documentation.
8636
8637         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
8638         * docs/reference/gdk/tmpl/windows.sgml:
8639         Added inline documentation.
8640
8641 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
8642
8643         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
8644         realizing buttons that have already been realized.
8645
8646 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
8647
8648         * tests/testtreeview.c (main): Show menu items before adding to
8649         option menu.
8650
8651         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
8652         around if we kill them.
8653
8654         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
8655         Return if we pass in a NULL model.
8656
8657 2001-01-08  Havoc Pennington  <hp@redhat.com>
8658
8659         * tests/testtreeview.c: hack on this some
8660
8661         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
8662         gtk_tree_store_set_valist, v is for arrays, valist for varargs
8663         list
8664         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
8665
8666         * gtk/gtkliststore.h: Add varargs set() and get() convenience
8667         functions
8668
8669 2001-01-08  Alexander Larsson  <alexl@redhat.com>
8670
8671         * gtk/gtkwindow-decorate.[hc]:
8672         * gtk/Makefile.am:
8673         New files. Contains an implementation of a minimal WM for
8674         linux-fb.
8675
8676         * gtk/gtkwindow.h:
8677         Add the possibility for GtkWindows to specify a frame. This
8678         is used for the window decoration code, but could concievably
8679         be used for X programs too (xmms style windows).
8680         GtkWindow->frame is the toplevel window if the window is framed.
8681         The signal frame_event gets all events that are targeted to
8682         GtkWindow->frame.
8683         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
8684         
8685         * gtk/gtkwindow.c:
8686         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
8687         Call out to gtkwindow-decorate.c for WM support in linx-fb.
8688
8689 2001-01-08  Alexander Larsson  <alexl@redhat.com>
8690
8691         * docs/README.linux-fb:
8692         Correct filename ~/.pangoft2_aliases
8693
8694         * gdk/gdkwindow.h:
8695         Added new function gdk_window_get_decorations.
8696
8697         * gdk/linux-fb/gdkfb.h:
8698         Removed _gdk_window_get_decorations declaration.
8699         Renamed _gdk_window_set_child_handler to
8700         gdk_fb_window_set_child_handler.
8701
8702         * gdk/linux-fb/gdkwindow-fb.c:
8703         Renamed _gdk_window_set_child_handler to
8704         gdk_fb_window_set_child_handler.
8705
8706         * gdk/x11/gdkwindow-x11.c:
8707         New function gdk_window_get_mwm_hints().
8708         Implemented gdk_window_get_decorations.
8709
8710         * docs/reference/gdk/tmpl/windows.sgml:
8711         * docs/reference/gdk/gdk-sections.txt:
8712         Added gdk_window_get_decorations docs.
8713         
8714 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
8715
8716         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
8717         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
8718         gdk_fb_window_send_crossing_events):
8719         Possibly send focus events when the mouse moves from one
8720         window to another.
8721
8722 2001-01-07  Tor Lillqvist  <tml@iki.fi>
8723
8724         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
8725         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
8726         to match current API.
8727
8728         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
8729         environment variable is set, don't call g_error when on a
8730         palettized (PseudoColor) display. Some people want to use GTK+ 
8731         in 256-colour mode even though works only partially.
8732
8733         * gdk/gdk.def
8734         * gtk/gtk.def
8735         * gtk/makefile.mingw.in: Update.
8736
8737 2001-01-05  Havoc Pennington  <hp@redhat.com>
8738
8739         * tests/testtreeview.c: hack on this a bit
8740
8741         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
8742         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
8743
8744         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
8745         was spelled incorrectly
8746         (GTK_IS_TREE_MODEL_SIMPLE): ditto
8747
8748         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
8749         from gtk_tree_view_set_headers_active   
8750
8751         * gtk/gtktexttag.c:
8752         (gtk_text_tag_get_property): handle PROP_DIRECTION
8753         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
8754         properties, bug 40235
8755
8756         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
8757         forward_to_line_end
8758
8759 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
8760
8761         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
8762         modules/input/gtkimcontextxim.c: Adapt to new prototypes
8763         for unicode,locale,filename conversion functions.
8764
8765 2001-01-05  Havoc Pennington  <hp@redhat.com>
8766
8767         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
8768         broken if called on the first position in the buffer.
8769
8770         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
8771         forward_to_delimiters to be called only if we aren't already at
8772         the delimiters.
8773
8774 2001-01-05  Havoc Pennington  <hp@redhat.com>
8775
8776         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
8777
8778 2001-01-05  Alexander Larsson  <alexl@redhat.com>
8779
8780         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
8781         colormap in here. Sync from X port.
8782         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
8783         Sync from X port.
8784         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
8785         This happens now and then, and i don't think it is a bug.
8786         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
8787         != endpoint.
8788         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
8789         GDK_LINE_SOLID.
8790
8791         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
8792         some of the fields filled in at least.
8793
8794         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
8795         miLineArcD is no more, remove it from the function definition.
8796
8797 2001-01-04  Havoc Pennington  <hp@redhat.com>
8798
8799         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
8800         this
8801
8802         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
8803         user_data instead of tree_node
8804
8805         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
8806         TREE_VIEW_COLUMN_SIZE
8807
8808         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
8809         "size" field to "width" finishes bug 40061
8810
8811         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
8812         for bitfields, bug 40268
8813
8814 2001-01-04  Havoc Pennington  <hp@redhat.com>
8815
8816         Rename some stuff:
8817         
8818         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
8819
8820         s/GtkModelSimple/GtkTreeModelSimple/g;
8821         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
8822         s/gtk_model_simple/gtk_tree_model_simple/g;
8823         s/gtkmodelsimple/gtktreemodelsimple/g;
8824
8825         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
8826
8827         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
8828         s/column_set_col_type/column_set_sizing/g;
8829
8830         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
8831         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
8832
8833         s/GtkCellRendererType/GtkCellRendererState/g;
8834         
8835         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
8836         (gtk_cell_renderer_toggle_class_init): change "state" property to
8837         "active", to match GtkToggleButton
8838         (gtk_cell_renderer_toggle_get_active): new function, bug
8839         40269
8840         (gtk_cell_renderer_toggle_set_active): new function
8841         (gtk_cell_renderer_toggle_set_property): route changes to toggle
8842         state through gtk_cell_renderer_set_active
8843
8844 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
8845
8846         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
8847         temporarily until they work again.  Brought up to date with
8848         changes in the model.
8849         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
8850         model.
8851
8852 2001-01-04  Havoc Pennington  <hp@redhat.com>
8853
8854         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
8855         equal to the line length, then position iterator before paragraph 
8856         separators. Fixes crash reported by Mikael Hermansson when
8857         pressing left arrow from the start of a line.   
8858
8859         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
8860         about byte indexes off the end
8861         (iter_set_from_char_offset): add g_error about char offsets
8862         off the end
8863
8864 2001-01-03  Havoc Pennington  <hp@redhat.com>
8865
8866         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
8867
8868         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
8869         of private functions; remove inclusion of private headers.
8870
8871         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
8872         function, so we don't need private functions in gtktextdisplay.c
8873
8874         * gtk/gtktextiterprivate.h: underscore-ification
8875
8876         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
8877         to instead say "only useful to implement widgets"
8878
8879         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
8880         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
8881         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
8882
8883         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
8884         This function was completely broken
8885
8886         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
8887
8888         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
8889
8890         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
8891
8892         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
8893
8894         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
8895
8896         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
8897
8898         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
8899         gtk_paint_layout
8900
8901         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
8902         gtk_paint_layout
8903
8904         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
8905         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
8906         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
8907         which were not implemented.     
8908
8909         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
8910         insert_pixbuf signal. Rename delete_text to delete_range since it
8911         also deletes pixbufs and child anchors. This almost closes bug
8912         40245 (still need to deal with child anchors)
8913
8914         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
8915         insert_pixbuf, change signal names as appropriate, change types of
8916         signals taking marks/tags to have the specific type, not just
8917         G_TYPE_OBJECT
8918         
8919         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
8920         closes bug 40051
8921
8922         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
8923         unnecessary remove_contents() call
8924         (gtk_option_menu_class_init): add a "changed" signal, closes
8925         bug 40039
8926         (gtk_option_menu_update_contents): emit "changed" if the 
8927         active menu item changes
8928
8929         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
8930         cast to GtkObject, reported by Jonas Borgstrom
8931         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
8932         we can't do stuff with side effects in finalize. Instead, spew a
8933         warning if the loader isn't closed.
8934
8935         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
8936         colormap in here, non-X ports probably need to sync to this change
8937
8938         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
8939         assertion that colormap != NULL, you can set the colormap to NULL
8940         if you like.
8941         
8942         * Makefile.am: remove gtk-config-2.0
8943
8944         * configure.in: Use pkg-config to locate GLib. Remove
8945         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
8946         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
8947         Use pkg-config to locate Pango. Output correct Pango libs to
8948         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
8949
8950         * Makefile.am (pkgconfig_DATA): install only target-specific pc
8951         files
8952         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
8953         X11 pc files
8954
8955         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
8956         unref from here
8957
8958 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
8959
8960         * configure.in:
8961         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
8962
8963 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
8964
8965         * gtk/gtktextlayout.c
8966         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
8967         variable when moving back onto a single line.
8968
8969 2001-01-01  Havoc Pennington  <hp@redhat.com>
8970
8971         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
8972
8973         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
8974
8975         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
8976         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
8977
8978 2001-01-01  Havoc Pennington  <hp@redhat.com>
8979
8980         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
8981
8982         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
8983         GtkTextAttributes
8984
8985         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
8986         #40246
8987         (gtk_text_attributes_copy_values): rename from 
8988         gtk_text_attributes_copy
8989         (gtk_text_attributes_copy): a more standard GTK copy function, 
8990         which returns a new object
8991
8992 2001-01-01  Havoc Pennington  <hp@redhat.com>
8993
8994         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
8995         
8996         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
8997         don't fill in tree_view->priv->selection, kind of an unexpected
8998         side effect
8999
9000         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
9001         gtkintl.h
9002         
9003         * gtk/gtkcellrenderer.c: Remove definition of _ and include
9004         gtkintl.h
9005         (gtk_cell_renderer_get_property): remove calls to g_value_init
9006
9007         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
9008         gtkintl.h
9009
9010         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
9011         and include gtkintl.h
9012         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
9013         property names
9014
9015         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
9016         GtkTreeSelection
9017         (_gtk_tree_selection_new_from_with_view): rename, return
9018         GtkTreeSelection
9019         (_gtk_tree_selection_set_tree_view): rename with uscore
9020         (gtk_tree_selection_get_selected): fill in the "model" out param
9021         first, so it gets filled in even if we return at the top of the 
9022         function
9023         (gtk_tree_selection_real_select_all): add a comment and an else{}
9024         to clarify this a bit
9025         (gtk_tree_selection_real_unselect_all): add the same else{}
9026
9027         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
9028         set_tree_view to have underscore prefixes, move them to the
9029         private header, fix return type of new_with_tree_view
9030         (struct _GtkTreeSelection): mark struct
9031         fields private  
9032
9033         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
9034         GtkTreeModelFlags, not a guint
9035         (gtk_tree_path_prev): return gboolean not gint
9036         (gtk_tree_path_up): return gboolean not gint
9037
9038         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
9039         return GtkTreeModelFlags, not a guint
9040
9041         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
9042         that child model is non-null before unrefing it
9043         (g_value_int_compare_func): make this a qsort compare func, not 
9044         a boolean predicate
9045
9046         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
9047         (add -umn to the end), and mark it unimplemented
9048         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
9049         I don't see what it's for - doesn't the model always sort itself?
9050         (gtk_tree_model_sort_set_compare): this had the wrong signature
9051
9052         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
9053         Fix the docs to say that it destructively replaces existing
9054         attributes (previously said that it added attributes).
9055         (gtk_tree_view_column_set_visible): canonicalize bool before
9056         equality testing. Also, check for realization before
9057         hiding/showing the tree_column->window; if this window could exist
9058         before realization, then it's busted and needs fixing, we can't 
9059         create GDK resources pre-realization. Also, remove
9060         superfluous queue_resize(), since set_size() does that for us.
9061         (gtk_tree_view_column_set_col_type): check realization before 
9062         using tree_column->window
9063
9064         * gtk/gtktreedatalist.c: fix filename in copyright notice
9065
9066 2000-12-31  Havoc Pennington  <hp@pobox.com>
9067
9068         * gtk/gtktextview.c: Rearrange all the
9069         scroll-while-dragging-or-selecting code to be different, not
9070         necessarily better. ;-)
9071         (gtk_text_view_scroll_to_mark): Change this
9072         function to take within_margin as a fraction instead of a pixel
9073         value, and to take alignment arguments (indicating where to align 
9074         the mark inside the visible area)
9075         
9076         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
9077         to GtkObject
9078
9079         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
9080         behavior so that offsets past the end of the line are not 
9081         allowed, and an offset equal to the line length moves the iterator
9082         to the next line
9083         (gtk_text_iter_set_line_index): make parallel change
9084         (gtk_text_iter_get_bytes_in_line): add this function
9085         
9086         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
9087         of byte indexes off the end of the line; byte index at the end of
9088         the line now returns FALSE and doesn't fill in the requested
9089         values, byte index past the end of the line is an error.  Also,
9090         don't allow -1 offset anymore, since its meaning is unclear.
9091
9092         This change exposes some bug in visual cursor motion, where we
9093         end up with a huge invalid byte index; needs fixing. Symptom of 
9094         bug is a crash when you hit up arrow.
9095         
9096         (_gtk_text_line_char_locate): match the change to byte_locate
9097
9098         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
9099         from start of line properly. fixes bug reported by Mikael
9100         Hermansson where backspace would delete all text before the
9101         cursor.
9102
9103 2000-12-30  Tor Lillqvist  <tml@iki.fi>
9104
9105         * gdk/win32/gdkwindow-win32.c
9106         (gdk_window_impl_win32_get_visible_region): New function, as in
9107         the X11 backend.
9108         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
9109         instead of duplicating the same code here.
9110
9111         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
9112         GDK_COLORMAP macro.
9113
9114         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
9115         destroy function.
9116         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
9117         access that.
9118
9119         * gtk/gtk.def: Update.
9120
9121         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
9122
9123 2000-12-30  Havoc Pennington  <hp@pobox.com>
9124
9125         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
9126         colormap on input only windows, to avoid special cases all over
9127         the code for these windows.
9128
9129 2000-12-26  Tor Lillqvist  <tml@iki.fi>
9130
9131         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
9132         we are on a palettized display ("PseudoColor" in X11), as the code
9133         for that doesn't work anyway, and never has.
9134
9135 2000-12-22  Alexander Larsson  <alexl@redhat.com>
9136
9137         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
9138         Don't use isprint() for chars > 255.
9139
9140 2000-12-21  Havoc Pennington  <hp@redhat.com>
9141
9142         * tests/testtreeview.c: more work
9143
9144 2000-12-21  Alexander Larsson  <alexl@redhat.com>
9145
9146         * docs/README.linux-fb:
9147         Update the docs to the new pangoft2 way.
9148
9149 2000-12-21  Alexander Larsson  <alexl@redhat.com>
9150
9151         * configure.in:
9152         For linux-fb get the pangoft2 cflags and libs. This needs a recent
9153         pango version.
9154         Remove modules/linux-fb/Makefile.
9155
9156         * gdk/linux-fb/gdkdrawable-fb2.c:
9157         Render glyphs using freetype.
9158
9159         * gdk/linux-fb/gdkfb.h:
9160         Add new fb-specific functions needed for managing windows.
9161
9162         * gdk/linux-fb/gdkmain-fb.c:
9163         Remove gdk_font_init/fini() calls.
9164
9165         * gdk/linux-fb/gdkpango-fb.c:
9166         Remove old implementation. Use pangoft2 instead.
9167
9168         * gdk/linux-fb/gdkprivate-fb.h:
9169         Remove PangoFBFont and related stuff.
9170
9171         * gdk/linux-fb/gdkwindow-fb.c:
9172         Implement drawable->get_visible_region.
9173         Implement support for _gdk_window_set_child_handler () and
9174         _gdk_window_get_decorations().
9175
9176         * modules/Makefile.am:
9177         Remove linux-fb subdir.
9178
9179         * modules/linux-fb/*:
9180         Removed all.
9181         
9182 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
9183
9184         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
9185         calls, as they are no longer needed.
9186
9187         * gtk/gtktreemodelsort.c: Fix up the comparison code.
9188         
9189         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
9190         figure out how to emit a signal on an interface.
9191
9192 2000-12-20  Havoc Pennington  <hp@redhat.com>
9193
9194         * tests: new directory to contain tests, gtk/test* should move
9195         here sometime (with appropriate on-cvs-server hackery)
9196
9197         * tests/testtreeview.c, tests/Makefile.am: a test
9198         
9199         * configure.in (AC_OUTPUT): add tests/Makefile
9200
9201         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
9202         and "invisible_set" which were missing
9203
9204         * gtk/gtkrbtree.h: some cheesy indentation fix
9205         
9206 2000-12-20  Alexander Larsson  <alexl@redhat.com>
9207
9208         * gtk/gtkinvisible.c (gtk_invisible_realize):
9209         Attach the style to the window so that the style it is not
9210         leaked when unrealizing the window.
9211
9212 2000-12-18  Havoc Pennington  <hp@redhat.com>
9213
9214         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
9215         begin/end user action where appropriate
9216         (gtk_text_view_commit_handler): add begin/end user action
9217
9218         * gtk/gtktextbuffer.c: add begin/end user action signals, and
9219         bracket interactive operations with begin/end user action pair.
9220         
9221         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
9222         "interactive" arg from insert_text and delete_text signals.
9223         Add begin_user_action, end_user_action signals
9224         (gtk_text_buffer_begin_user_action): 
9225         (gtk_text_buffer_end_user_action): New functions to delimit 
9226         a user-visible action
9227
9228         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
9229         signals.
9230         
9231 2000-12-18  Havoc Pennington  <hp@redhat.com>
9232
9233         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
9234         was pretty non-working.
9235
9236         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
9237         by passing the length to g_utf8_validate().
9238
9239 2000-12-16  Havoc Pennington  <hp@pobox.com>
9240
9241         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
9242         Port to GObject, can go back in gdk-pixbuf after setting up 
9243         a gdk-pixbuf-marshal.h header over there.
9244
9245         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
9246         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
9247         args
9248         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
9249         set
9250         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
9251         here, do it when we create the buttons later
9252         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
9253         (gtk_tree_view_map): paranoia checks that column->button is shown 
9254         and unmapped
9255         (gtk_tree_view_size_request): only request visible children.
9256         Move header size calculation in here, for cleanliness, and 
9257         to maintain invariants for child widgets if we eventually 
9258         let users set different children inside the buttons
9259         (gtk_tree_view_map_buttons): factor out code to map buttons,
9260         since it was being called several times
9261         (gtk_tree_view_size_allocate_buttons): move_resize the drag
9262         windows instead of just moving them; their height may change 
9263         if we allow random widgets in there, or the theme changes.
9264         (gtk_tree_view_size_allocate): move button size allocation 
9265         above emitting the scroll signals, to ensure a sane state when we
9266         hit user code
9267         (gtk_tree_view_button_release): remove queue_resize after
9268         tree_view_set_size(), set_size() will handle any resize queuing
9269         that's needed
9270         (gtk_tree_view_focus_in): just queue a draw, don't fool with
9271         draw_focus goo
9272         (gtk_tree_view_focus): use gtk_get_current_event() and
9273         gdk_event_get_state()
9274         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
9275         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
9276         semicolon
9277         (gtk_tree_view_create_button): show the button here
9278         (gtk_tree_view_button_clicked): actually emit the clicked signal
9279         on the column
9280         (_gtk_tree_view_set_size): return right away if the size is
9281         unchanged, as a cheesy optimization
9282         (gtk_tree_view_setup_model): rename set_model_realized to 
9283         setup_model to match the flag that indicates whether we've 
9284         called it
9285         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
9286         exist, because set_scroll_adjustment does that and it shouldn't
9287         matter what order you call these in
9288         (gtk_tree_view_get_vadjustment): ditto
9289         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
9290         for paranoia
9291         (gtk_tree_view_set_headers_visible): call
9292         gtk_tree_view_map_buttons() instead of using cut-and-paste code
9293         (gtk_tree_view_append_column): clarify whether the return value
9294         is the count of columns before or after, and do the increment 
9295         separately from the return statement so you can tell from the code.
9296         (gtk_tree_view_remove_column): ditto
9297         (gtk_tree_view_insert_column): ditto
9298         (gtk_tree_view_get_column): remove g_return_if_fail for columns
9299         outside the existing range, the docs say that outside-range
9300         columns are allowed, so we handle them as documented. (Presumably
9301         this allows a nice loop with column != NULL as test.)
9302         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
9303         mean (left/right/center etc.).
9304         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
9305         (gtk_tree_view_expand_row): add docs
9306         (gtk_tree_view_collapse_row): add docs
9307
9308         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
9309         function to emit the clicked signal on a column
9310         
9311         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
9312         state of an event
9313         (gdk_event_get_time): don't treat GDK_SCROLL 
9314         as a button event, remove default case from switch so gcc 
9315         will whine if we don't explicitly handle all event types
9316
9317         * gtk/gtktreeselection.h: added some FIXME 
9318         
9319         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
9320         "columns" to "n_columns" and "column" to "columns" for clarity
9321
9322 2000-12-16  Havoc Pennington  <hp@pobox.com>
9323         
9324         * gtk/gtktextiter.c: General cleanup of the log attr iteration
9325         stuff. This should make e.g. the delete key work again in the
9326         text widget...
9327         (gtk_text_iter_forward_cursor_positions): handle negative count
9328         (gtk_text_iter_backward_cursor_positions): handle negative count
9329         (gtk_text_iter_forward_word_ends): handle negative count
9330         (gtk_text_iter_backward_word_starts): handle negative count
9331
9332         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
9333         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
9334         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
9335         GObject. No doubt will cause breakage.
9336
9337         * demos/gtk-demo/textview.c: remove hacks around
9338         non-GObject-ification of the text objects
9339
9340         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
9341         the text tag
9342         
9343 2000-12-14  Havoc Pennington  <hp@pobox.com>
9344
9345         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
9346         that we have Xrender
9347
9348 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
9349
9350         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
9351         Add two virtualized functions gdk_drawable_get_clip_region - to
9352         get the clip region when drawing.
9353         
9354         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
9355         use invalidate_region.
9356
9357         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
9358         region.
9359
9360         * acconfig.h configure.in: Check for Xft. For now, assume
9361         that if Xft is found, Pango was compiled with Xft support
9362         as well.
9363
9364         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
9365         gdk_colormap_query_color().
9366         
9367         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
9368         with Xft if appropriate.
9369
9370         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
9371         a pangoxft context if we have XFT and the environment
9372         variable GD_USE_XFT is set.
9373         
9374         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
9375         and also possibly an XftDraw structure.
9376
9377         * gtk/gtkfontsel.c: Handle the case where the font from the
9378         style doesn't match any of the fonts a bit better.
9379         
9380         * gtk/testgtk.c: Add tabs between directional segments for
9381         hebrew/arabic test. (Not really necessary, just a little
9382         prettier.)
9383
9384 2000-12-14  Havoc Pennington  <hp@redhat.com>
9385
9386         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
9387         reading a file
9388
9389 2000-12-14  Havoc Pennington  <hp@redhat.com>
9390
9391         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
9392         unused call to get_last_line()
9393
9394         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
9395         here until boxed is working (and maybe after that - we should
9396         really not gratuitously break old code)
9397
9398         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
9399         specific types for font_desc and tabs args, move them to
9400         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
9401         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
9402
9403         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
9404         use GTK_TYPE_POINTER for signal signatures as a hack-around
9405
9406         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
9407         PangoTabArray
9408
9409         * gtk/gtktextlayout.c (line_display_iter_to_index): 
9410         make static
9411         (line_display_index_to_iter): make static
9412
9413         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
9414         to marshal a string not a boxed
9415
9416         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
9417
9418         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
9419         since the UTF-8 isn't validated yet
9420
9421         * gtk/gtktextsegment.c (char_segment_check_func): don't require
9422         lines to end in '\n'
9423         
9424         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
9425         forward_to_delimiters, and grapheme boundaries
9426         (gtk_text_view_delete_from_cursor): properly handle non-newline
9427         delimiters, and grapheme boundaries
9428
9429         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
9430         to gtk_text_iter_forward_to_delimiters, and make it work properly
9431         if empty lines end with a character other than '\n'
9432
9433         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
9434         position
9435
9436 2000-12-15  Tor Lillqvist  <tml@iki.fi>
9437
9438         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
9439
9440         * gtk/gtk.def
9441         * gdk/gdk.def: Update.
9442
9443         * gdk/win32/gdkmain-win32.c
9444         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
9445         gdkmain-win32.c here.
9446
9447         * gdk/win32/makefile.mingw.in (all): No need to make
9448         gdk-win32res.o here, the makefile one step up will call us to make
9449         it.
9450
9451         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
9452         gdkkeys-win32.
9453
9454         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
9455
9456         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
9457         call to g_source_add().
9458
9459         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
9460         leak. Thanks to Andreas Kemnade.
9461
9462 2000-12-13  Havoc Pennington  <hp@pobox.com>
9463
9464         * gtk/gtktextbtree.h: Remove double _ in front of some functions
9465
9466         * gtk/gtktext*.[hc]: update accordingly
9467         
9468 2000-12-13  Havoc Pennington  <hp@pobox.com>
9469
9470         * gtk/gtktextbtree.h: Put _ in front of every function in this 
9471         header file
9472
9473         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
9474
9475 2000-12-13  Alex Larsson  <alexl@redhat.com>
9476
9477         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
9478         Add support for ps2 intellimouse.
9479
9480         * gdkkeyboard-fb.c:
9481         Move shift-F1 repaint handling to xlate handler only.
9482         
9483         * docs/README.linux-fb:
9484         Add imps2 to docs.
9485         Document the new refresh keys.
9486         
9487 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
9488
9489         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
9490
9491         * gtk/gtkbox.c: change property types from (u)long to (u)int for
9492         ::position and ::padding.
9493
9494         * gtk/gtkcontainer.c: make ::border_width an INT property.
9495
9496         * gtk/gtkpacker.c: make ::position an INT property.
9497
9498         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
9499         guard against NULL h/v scrollbars, since this is used at construction
9500         time.
9501
9502         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
9503         internal gtk_clist_constructor().
9504
9505         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
9506         gtk_ctree_constructor().
9507
9508         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
9509         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
9510
9511         * docs/reference/Makefile.am: fun stuff, disabled docs generation
9512         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
9513
9514         * gtk/gtkwidget.[hc]:
9515         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
9516         and gtk_widget_get().
9517         (gtk_widget_new): use g_object_new_valist().
9518         (gtk_widget_set): use g_object_set_valist().
9519
9520         * gtk/gtkobject.[hc]:
9521         removed gtk_object_arg_get_info(), gtk_object_getv(),
9522         gtk_object_query_args(), gtk_object_newv(),
9523         gtk_object_class_add_signals(),
9524         gtk_object_class_user_signal_new(),
9525         gtk_object_class_user_signal_newv(),
9526         gtk_object_arg_set(), gtk_object_arg_get(),
9527         gtk_object_args_collect(),
9528         gtk_object_default_construct(),
9529         gtk_object_constructed(),
9530         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
9531         removed nsignals, signals and n_args members from GtkObjectClass.
9532         (gtk_object_new): use g_object_new_valist().
9533         (gtk_object_set): use g_object_set_valist().
9534         (gtk_object_get): use g_object_get_valist().
9535         
9536         * gtk/gtkcompat.h: define gtk_object_default_construct().
9537         
9538         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
9539         g_object_new().
9540
9541         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
9542         fucntions, cleaned up method assignments (make sure your structures
9543         are setup properly before calling out). removed all GTK_CONSTRUCTED
9544         hacks ;)
9545
9546 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
9547
9548         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
9549         off-by-one error in checks. (Dave Lambert)
9550
9551 2000-12-12  Alexander Larsson  <alexl@redhat.com>
9552
9553         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
9554         Don't free gdk_fb_keyboard twice.
9555
9556 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
9557
9558         * gtk/testgtk.c:
9559         (create_tooltips): 
9560         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
9561         use GObject swapped_signal:: properties instead.
9562
9563         * gtk/gtkcellrenderertoggle.c: 
9564         * gtk/gtkcellrenderertextpixbuf.c: 
9565         * gtk/gtkcellrenderertext.c: 
9566         * gtk/gtkcellrendererpixbuf.c: 
9567         * gtk/gtkcellrenderer.c:
9568         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
9569         missing warnings for invalid property ids, install properties
9570         with g_object_class_install_property() now.
9571         
9572         * gtk/gtksignal.c:
9573         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
9574         
9575 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
9576         
9577         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
9578         to determine if a window is the focus widget within
9579         its toplevel.
9580
9581         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
9582         to be boolean.
9583
9584         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
9585         of the case where the container CAN_FOCUS to here instead
9586         of having it in each individual move-the-focus place.
9587
9588         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
9589         focusing to be geometric in a much more obvious sense. Arrowing
9590         around is still non-intuitive because it isn't perfect and
9591         because entries, etc, grab the arrow keys, but it at least
9592         usually will do what you expect now.
9593         
9594         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
9595         file.
9596
9597         * gtk/gtknotebook.c: Change tabs to be a single item in
9598         the focus chain. Make movement of focus on tabs with arrow
9599         keys wrap around.
9600         
9601         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
9602         CHECK_FIND_CHILD macro to give informative error messages
9603         instead of silent returns.
9604
9605         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
9606         flag since we handle GdkReturn on the tabs.
9607
9608         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
9609         windows rather than sending expose events directly.
9610
9611         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
9612         definition for GtkNotebookPage into .c file, since it is private.
9613
9614         * gtk/testgtk.c (create_notebook): Add option for 
9615         testing borderless notebook.
9616
9617         * gtk/testgtk.c (page_switch): Removed egregious poking
9618         around in GTK+ internals.
9619
9620         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
9621
9622         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
9623         properly through gtk_clist_focus. Make the title headers a
9624         single item in the tab-focus chain, and make left-right wrap
9625         around.
9626
9627         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
9628         focus method so that wrapping around works properly.
9629
9630         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
9631         that is handled for the widget now. 
9632
9633 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
9634
9635         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
9636         widgets as TOPLEVEL.
9637
9638         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
9639         TOPLEVEL widgets are containers.
9640
9641         * gtk/gtkinvisible.h: Remove useless include.
9642
9643 2000-12-11  Havoc Pennington  <hp@redhat.com>
9644
9645         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
9646         Handle chopping off \r\n and 0x2029 in addition to \n before
9647         passing to PangoLayout
9648
9649         * gtk/gtkimcontextsimple.c
9650         (gtk_im_context_simple_get_preedit_string): 
9651         return an empty string if no match is pending
9652
9653         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
9654         assertion that the returned preedit string was sane
9655
9656         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
9657         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
9658         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
9659
9660 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
9661
9662         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
9663         Fix up finalizer to chain to its parent.
9664
9665 2000-12-11  Alexander Larsson  <alexl@redhat.com>
9666
9667         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
9668         Clearified the difference between the keyboard types. Wrote a note
9669         about the magic sysrq key to get out of raw mode.
9670
9671 2000-12-09  James Henstridge  <james@daa.com.au>
9672
9673         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
9674         member to hold masks for detecting the start of a protocol packet.
9675         (mouse_devs): add packet start masks for ps2 and ms device types.
9676         Left the mask for fidmour blank, as I have no idea what it should
9677         be.
9678         (handle_mouse_io): skip bytes until we get to the start of a
9679         packet.  My Logitech mouse seems to be passing an extra NULL pad
9680         byte, and GPM does a similar thing here.
9681         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
9682         this is the ms mouse driver.
9683         (gdk_fb_mouse_ms_packet): fix up button handling, which was
9684         completely broken except for button1.  It was checking the wrong
9685         bit in the packet for the status of the right mouse button, and
9686         wrongly assuming right == button2 rather than 3.  I fixed that and
9687         also added support for middle button (button2).
9688
9689 2000-12-08  Havoc Pennington  <hp@redhat.com>
9690
9691         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
9692         that cause a segfault on text insertion
9693
9694         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
9695         warning
9696
9697         * gtk/gtktextiter.c (test_log_attrs): use
9698         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
9699
9700         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
9701         Get log attrs for a line, using a cache stored on the buffer
9702         
9703         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
9704         reported by Jeff Franks
9705
9706 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9707
9708         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
9709         /dev/ttyS0 -> /dev/mouse
9710
9711 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9712
9713         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
9714         Added dummy gdk_fontset_load.
9715
9716 2000-12-08  Alexander Larsson  <alexl@redhat.com>
9717
9718         * docs/README.linux-fb:
9719         * docs/Makefile.am:
9720         Initial GtkFB docs.
9721         
9722         * gdk/linux-fb/Makefile.am:
9723         Define GDK_DATA_PREFIX.
9724
9725         * gdk/linux-fb/gdkmain-fb.c:
9726         Fix typo.
9727         Change default display to /dev/fb0.
9728
9729         * gdk/linux-fb/gdkpango-fb.c:
9730         Add $(prefix)/share/fonts/ to font path.
9731         
9732 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9733
9734         * gdk/linux-fb/gdkkeyboard-fb.c:
9735         New file containing the abstracted keyboard driver. Most code
9736         taken from gdkinput-ps2.c
9737
9738         * gdk/linux-fb/gdkinput-ps2.c:
9739         Removed file.
9740         
9741         * gdk/linux-fb/Makefile.am:
9742         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
9743
9744         * gdk/linux-fb/gdkcolor-fb.c:
9745         display->fb was renamed to display->fb_fd.
9746
9747         * gdk/linux-fb/gdkcursor-fb.c:
9748         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9749
9750         * gdk/linux-fb/gdkinput.c:
9751         Moved gdk_input_init here from gdkinput-ps2.c
9752
9753         * gdk/linux-fb/gdkmain-fb.c:
9754         display->fb was renamed to display->fb_fd.
9755         Now the tty and the console is opened here instead
9756         of in the keyboard driver. Also check GDK_VT to see what
9757         tty to open.
9758         Move gdk_beep () here from gdkinput-ps2.c
9759         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9760
9761         * gdk/linux-fb/gdkmouse-fb.c:
9762         Add header.
9763         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9764         Return correct keyboard modifiers.
9765         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
9766
9767         * gdk/linux-fb/gdkprivate-fb.h:
9768         Add tty and vt info to display.
9769         Add orignal modeinfo storage to display
9770         Update global functions
9771
9772         * gdk/linux-fb/gdkwindow-fb.c:
9773         Added gdk_fb_window_find_focus().
9774         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9775
9776 2000-12-07  Havoc Pennington  <hp@pobox.com>
9777
9778         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
9779         function, noticed by Alex
9780
9781 2000-12-06  Elliot Lee  <sopwith@redhat.com>
9782
9783         * configure.in: Detect freetype properly
9784
9785         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
9786         above.
9787
9788 2000-12-06  Alexander Larsson  <alexl@redhat.com>
9789
9790         * gdk/linux-fb/Makefile.am:
9791         Add gdkmouse-fb.c
9792         
9793         * gdk/linux-fb/gdkmouse-fb.c:
9794         New file. Abstracted the mouse drivers a bit.
9795
9796         * gdk/linux-fb/gdkcursor-fb.c:
9797         The cursor hide/show functions was moved here from gdkinput-ps2.c.
9798
9799         * gdk/linux-fb/gdkinput-ps2.c:
9800         Removed old mouse handling code. Moved cursor handling code
9801         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
9802         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
9803         gdk_mouse_get_info.
9804
9805         * gdk/linux-fb/gdkmain-fb.c:
9806         Pass NULL pointers for x,y in gdk_mouse_get_info call.
9807
9808         * gdk/linux-fb/gdkprivate-fb.h:
9809         Removed public gdk_fb_find_common_ancestor, added and renamed
9810         functions for the new mouse handling code.
9811
9812         * gdk/linux-fb/gdkwindow-fb.c:
9813         Moved gdk_fb_window_send_crossing_events here. added global
9814         variable gdk_fb_window_containing_pointer. made
9815         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
9816         renamed to gdk_mouse_get_info.
9817
9818 2000-12-06  Alexander Larsson  <alexl@redhat.com>
9819
9820         * gdk/linux-fb/gdkevents-fb.c:
9821         Update to match latest gmain/gsource changes.
9822
9823         * gdk/linux-fb/gdkinput-ps2.c:
9824         Bogus gdk_keymap_get_entries_for_keycode implementation so that
9825         it links. Will be implemented later.
9826
9827 2000-12-03  Havoc Pennington  <hp@pobox.com>
9828
9829         * gdk/Makefile.am: add gdkkeys.[hc]
9830
9831         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
9832         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
9833
9834         * acconfig.h, configure.in: add checks and command line options
9835         for XKB
9836
9837         * gdk/x11/gdkkeys-x11.c: Implement the above functions
9838         
9839         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
9840         and group in the key event
9841
9842         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
9843         field with the low-level hardware key code, and a group
9844         field with the keyboard group
9845
9846         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
9847         and declare a couple globals used for keymap handling
9848         
9849         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
9850         hold down Shift-Control and type a hex number to get a Unicode 
9851         character corresponding to the hex number
9852         (gtk_im_context_simple_get_preedit_string): Fix cursor position
9853         (return bytes not chars)
9854
9855 2000-12-05  Elliot Lee  <sopwith@redhat.com>
9856
9857         * gdk/gdkcolor.h: Make GdkColor specify element sizes
9858         to avoid waste on 64-bit platforms.
9859
9860 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
9861
9862         * INSTALL: Fix link to PNG home, remove reference
9863         to fribidi.
9864
9865         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
9866         
9867         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
9868         tested.)
9869
9870         * gtk/gtkcheckmenuitem.c: Permanently turn on
9871         always_show_toggle.
9872
9873         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
9874         be NULL. (Vladimir Klebanov, #26545)
9875
9876         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
9877         some signed/unsigned comparison problems. (#6510,
9878         David Kaelbling)
9879
9880         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
9881         return type to boolean (Oskar Liljeblad, #18648)
9882
9883 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9884
9885         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
9886         Remove bogus colormap setting.
9887
9888 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9889
9890         * gdk/linux-fb/gdkcolor-fb.c:
9891         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
9892
9893         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
9894         Must set colormap.
9895         
9896 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
9897
9898         * docs/tutorial/gtk-tut.sgml: DND updates
9899
9900 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
9901
9902         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
9903         Remove old debug g_warning().
9904         (gdk_fb_draw_drawable): The src argument can be either a wrapper
9905         or an implementation, just pass the implementation to draw_drawable_2.
9906         
9907         * gdk/linux-fb/gdkprivate-fb.h:
9908         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
9909
9910         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
9911         clear and invalidate area when window is destroyed.
9912         (send_map_events): Remove old commented out code.
9913
9914 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9915
9916         * gdk/linux-fb/gdkpango-fb.c:
9917         Use italic instead of oblique in font aliases.
9918         
9919         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
9920         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
9921         other unsupported functions.
9922
9923 2000-12-04  Havoc Pennington  <hp@redhat.com>
9924
9925         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
9926
9927         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
9928
9929         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
9930
9931         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
9932         hack to avoid infinite loops (synthetic expose event) - 
9933         Owen has more appropriate fixes in a branch he'll check in later.
9934
9935         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
9936         separator, CR, and CRLF as line ends
9937
9938         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
9939         into lines using pango_find_paragraph_boundary(); other bits of
9940         the widget are still going to be broken if the boundary isn't '\n'
9941         though
9942
9943 2000-12-04  Alexander Larsson  <alexl@redhat.com>
9944
9945         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
9946         multiply.
9947
9948         * gdk/linux-fb/gdkpango-fb.c:
9949         Copied some 26.6 scaling macros from pango to clean up the rounding.
9950         (pango_fb_font_get_glyph_info): Correct sign on x value.
9951
9952         * gdk/linux-fb/gdkprivate-fb.h:
9953         Removed unreferenced external functions.
9954
9955         * modules/linux-fb/Makefile.am: Use ` instead of '.
9956
9957         * modules/linux-fb/basic.c:
9958         Remove dead code. In particular the dummy lang engine which broke all
9959         pango layouts in GtkFB. Don't include tables-big.i anymore.
9960
9961         * modules/linux-fb/tables-big.i:
9962         Upgrade to latest version from pango. Left for reference, basic_ranges
9963         moved to basic.c.
9964         
9965 2000-12-04  Havoc Pennington  <hp@redhat.com>
9966
9967         Fix bugs Alex found:
9968         
9969         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
9970         to "draw"
9971
9972         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
9973
9974         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
9975
9976         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
9977         implementation in here, apparently the expose() implementation was
9978         dead code.
9979
9980 2000-12-04  Alexander Larsson  <alexl@redhat.com>
9981
9982         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
9983         Return positive descent.
9984
9985 2000-12-02  Havoc Pennington  <hp@pobox.com>
9986
9987         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
9988         method and signal
9989         
9990         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
9991         calls gdk_window_process_updates() to push the exposes through
9992         (gtk_widget_class_init): No more draw signal, no
9993         gtk_widget_real_draw()  
9994         
9995         * gtk/gtkbin.c (gtk_bin_draw): remove
9996
9997         * gtk/gtkbox.c (gtk_box_draw): remove
9998
9999         * gtk/gtkbutton.c (gtk_button_draw): remove
10000
10001         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
10002
10003         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
10004
10005         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
10006
10007         * gtk/gtkclist.c (gtk_clist_draw): remove
10008
10009         * gtk/gtkentry.c (gtk_entry_draw): remove
10010
10011         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
10012
10013         * gtk/gtkfixed.c (gtk_fixed_draw): remove
10014
10015         * gtk/gtkframe.c (gtk_frame_draw): remove
10016
10017         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
10018
10019         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
10020
10021         * gtk/gtklayout.c (gtk_layout_draw): remove
10022
10023         * gtk/gtklist.c (gtk_list_draw): remove
10024
10025         * gtk/gtklistitem.c (gtk_list_item_draw): remove
10026
10027         * gtk/gtkmenu.c (gtk_menu_draw): remove
10028
10029         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
10030
10031         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
10032
10033         * gtk/gtknotebook.c (gtk_notebook_draw): remove
10034
10035         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
10036
10037         * gtk/gtkpacker.c (gtk_packer_draw): remove
10038
10039         * gtk/gtkrange.c (gtk_range_draw): remove
10040
10041         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
10042
10043         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
10044
10045         * gtk/gtktable.c (gtk_table_draw): remove
10046
10047         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
10048
10049         * gtk/gtktext.c (gtk_text_draw): remove
10050
10051         * gtk/gtktextview.c (gtk_text_view_draw): remove
10052
10053         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
10054
10055         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
10056
10057         * gtk/gtktree.c (gtk_tree_draw): remove
10058
10059         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
10060
10061         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
10062
10063         * gtk/gtkviewport.c (gtk_viewport_draw): remove
10064
10065         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
10066
10067         * gtk/gtkvscale.c (gtk_vscale_draw): remove
10068
10069         * gtk/gtkwindow.c (gtk_window_draw): remove
10070
10071 2000-20-01  Anders Carlsson  <andersca@gnu.org>
10072
10073         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
10074         a GtkToggleButton is both insensitive and active, it was being
10075         drawn by the GtkButton draw handler which doesn't check the
10076         state. Now it's calling gtk_toggle_button_paint instead.
10077         
10078 2000-12-01  Havoc Pennington  <hp@redhat.com>
10079
10080         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
10081         dangling pointers to the appearance attributes from the 
10082         line display
10083
10084         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
10085         width/height to mean "full width/height of drawable"
10086
10087         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
10088         click to select word/line
10089         
10090         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
10091         when getting log attrs. Get a slice, so that pixmaps and stuff
10092         are properly handled.
10093
10094         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
10095         paste into the selection (replaces selection now, previously
10096         crashed or added to selection). Reveals longstanding btree bug -
10097         select multiple lines, middle-click on the selection, boom. This
10098         isn't related to my changes though.
10099
10100         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
10101         PangoLogAttrs changes
10102         (gtk_entry_move_backward_word): ditto
10103
10104         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
10105         functions return bool whether the iter moved onto a
10106         dereferenceable position.
10107  
10108         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
10109         functions for motion in terms of display lines.
10110
10111         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
10112         get the buffer a mark is inside
10113         
10114 2000-12-01  Alexander Larsson  <alexl@redhat.com>
10115
10116         * gdk/linux-fb/Makefile.am:
10117         * modules/linux-fb/Makefile.am:
10118         Freetype 2 final uses freetype-config
10119
10120         * gdk/linux-fb/gdkpango-fb.c:
10121         Upgrade to use Freetype 2 final.
10122         More flexible support for font aliases, this also fixes a bug with
10123         GtkFontSelector, as the aliases must be visible in the font/family list,
10124         or GtkFontSelector reads uninitialized memory.
10125
10126 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
10127
10128         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
10129         XGetIMValues to properly terminate variable argument list, and do
10130         NULL return check for ic_values and xim_styles.
10131
10132         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
10133         Restore preedit state after XmbResetIC().
10134         
10135         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
10136         XvaCreateNestedList() should take XvaNestedList, but not
10137         XvaNestedList*.
10138
10139         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
10140         preedit_draw_callback, preedit_caret_callback): Match
10141         "preedit-changed" signal name to "preedit_changed" to be
10142         consistent to the spec.
10143
10144         * gtk/gtkimcontextsimple.c (check_table):
10145         Match "preedit-changed" to "preedit_changed" to be consistent
10146         to the spec.
10147
10148 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
10149
10150         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
10151         gc->clip_region == NULL>
10152
10153 2000-11-30  Tor Lillqvist  <tml@iki.fi>
10154
10155         Changes by Hans Breuer:
10156         
10157         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
10158         Dont't use negative width and height as max_hints. This fixes
10159         Owen's recent testgtk changes for win32.
10160
10161         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
10162         gdk_win32_hdc_release): These are exported and may be called with
10163         other drawable types than our GdkDrawableImplWin32 (?).
10164
10165         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
10166         so always #define USE_BACKING_STORE.
10167
10168         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
10169         of printf for debugging output.
10170
10171         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
10172         
10173         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
10174
10175         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
10176         declaration.
10177
10178         * gtk/gtktexttypes.h: Ditto.
10179
10180         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
10181         (GDK_VoidSymbol) also if in case of arg check failure.
10182
10183         * gtk/gtkimcontextsimple.c
10184         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
10185         position to the pointer, but to the variable it points to.
10186
10187         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
10188
10189         * gtk/gtk.def: Updates.
10190
10191 2000-11-29  Elliot Lee  <sopwith@redhat.com>
10192
10193         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
10194         GTK_TYPE_TREE_MODEL.
10195
10196 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10197
10198         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
10199         Set the size of the font from the description.
10200         (gdk_text_width): Gross hack that calculates the width
10201         of text by text_length * size/2. This is necessary because
10202         GtkLabel does some ugly gtk_string_width call to calculate
10203         an good size.
10204         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
10205
10206 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
10207
10208         * docs/tutorial/gtk-tut.sgml: DND updates
10209
10210 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10211
10212         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
10213         If you pass width or height == 0 to gdk_window_clear_area they
10214         should be calculated from the window size.
10215
10216 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10217
10218         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
10219         a grab, but no grab-cursor, use the cursor from the grabbed
10220         window. (gdk_fb_window_send_crossing_events): Send normal
10221         enter/leave notifications if grab and owner_events == TRUE.
10222
10223 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10224
10225         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
10226         Do implicit button grabs, even if the window doesn't
10227         want the event.
10228         (gdk_fb_window_send_crossing_events): If there is a
10229         grab, only the grabbed window gets normal enter/leave
10230         notifications. On ungrab go from grabbed window to current.
10231         Don't send any notification to b when propagating from c -> b.
10232         If setting a grab on window, don't set prev_window.
10233         (handle_mouse_input): Send enter/leave events to the window the
10234         mouse is over, not the grabbed one.
10235         
10236 2000-11-28  Elliot Lee  <sopwith@redhat.com>
10237
10238         * gdk/gdkregion-generic.c: Zap warning.
10239         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
10240         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
10241
10242 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
10243
10244         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
10245         The cursor should be hidden if it is part of either the
10246         source or destination region. Not only if it is in both.
10247         (gdk_window_set_transient_for): Silence warnings.
10248
10249 2000-11-28  Alexander Larsson  <alexl@redhat.com>
10250
10251         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
10252         The default mode in X is Pie Arcs, therefore that is
10253         what Gtk+ uses.
10254
10255 2000-11-28  Alexander Larsson  <alexl@redhat.com>
10256
10257         * gdk/linux-fb/gdkinput-ps2.c:
10258         Implement correct EnterNotify/LeaveNotify:
10259         (gdk_fb_window_send_crossing_events): New function that sends
10260         all GdkCrossingEvents from the last mouse-window to the specified
10261         destination.
10262         (gdk_fb_window_visibility_crossing): Removed function.
10263         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
10264         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
10265         instead of gdk_window_get_pointer() for better readability.
10266
10267         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
10268         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
10269
10270         * gdk/linux-fb/gdkprivate-fb.h:
10271         removed gdk_fb_window_visibility_crossing, added
10272         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
10273
10274         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
10275         New function that finds the least common ancestor of two windows.
10276         (gdk_window_show, gdk_window_hide):
10277         Use gdk_fb_window_send_crossing_events.
10278         (gdk_fb_window_move_resize): Send configure events to toplevel
10279         windows. Use gdk_fb_window_send_crossing_events.
10280
10281 2000-11-27  Havoc Pennington  <hp@redhat.com>
10282
10283         * gtk/gtkprivate.h (enum): Remove a trailing comma
10284
10285 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
10286
10287         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
10288         the "changed" callback of the adjustment.  We need to redraw the
10289         spin button's arrows when the adjustment's range changes.
10290         (adjustment_changed_cb): Draw the arrows.
10291         (gtk_spin_button_value_changed): Draw the arrows.
10292
10293 2000-11-23  Alexander Larsson  <alexl@redhat.com>
10294
10295         * gdk/linux-fb/gdkselection-fb.c:
10296         Initial selection implementation.
10297
10298         * gtk/gtkselection.c:
10299         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
10300         requestor in gtk_selection_request.
10301         
10302         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
10303         Added gdk_selection_property atom.
10304
10305         * gdk/linux-fb/gdkprivate-fb.h:
10306         Export _gdk_selection_window_destroyed.
10307         Removed mask_off_x/y from GdkCursorPrivateFB.
10308         Removed hbearing, added top, left to PangoFBGlyphInfo.
10309
10310         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
10311         Call _gdk_selection_window_destroyed
10312         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
10313         the root window has been created.
10314         (static_dx_hack, static_dy_hack, compare_draw_rects,
10315         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
10316         in region. They are already sorted. Instead just traverse them in
10317         reverse if draw_direction < 0.
10318         
10319         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
10320         Double-clicks must be sent after the normal button_press.
10321         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
10322         
10323         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
10324         Pass _gdk_fb_screen_gc instead of NULL.
10325
10326         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
10327         Initialize gdk_selection_property.
10328         (gdk_event_make): Remove unused code.
10329
10330         * gdk/linux-fb/gdkcursor-fb.c:
10331         Make the pixmap for the cursor the same size as the mask. Also remove
10332         the mask_off_x/y fields in GdkCursorPrivateFB and combine
10333         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
10334         Now the whole cursor is visible.
10335
10336         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
10337         Fix bug where xdest+height instead of ydest+height was used
10338         to calculate if the source and dest overlapped. This fixes the
10339         redraw bug when the main window in testgtk was scrolled when
10340         partially covered by a tall window.
10341         Copy rectangles in region in order depending on draw_direction.
10342         Also moved the draw_direction flipping of start_y and end_y into
10343         the gc functions, as this might not be what all of them want.
10344         (gdk_fb_draw_lines): Support dashed lines.
10345         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
10346         so that the text is positioned correctly (was 1 pixel high).
10347
10348         gdk/linux-fb/gdkgc-fb.c:
10349         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
10350         all lines were drawn a pixel to short. Also checked the default of
10351         the rest of the values, and they're the same as X now.
10352
10353         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
10354         Clean up pixel positioning of the glyphs. Just use bgy->top and
10355         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
10356         to all divisions to get correct rounding behaviour.
10357
10358         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
10359         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
10360         Moved start_y/end_y flip into draw_drawable implementations.
10361         Flip also x rendering when draw_direction < 0.
10362         Remove unneccesary multiply with draw_direction.
10363
10364 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
10365
10366         * docs/tutorial/gtk-tut.sgml:
10367           - get rid of gtk_toggle_button_toggled FUD
10368           - start DND section - needs work - based on:
10369                 http://wolfpack.twu.net/docs/gtkdnd/
10370
10371 2000-11-22  Alexander Larsson  <alexl@redhat.com>
10372
10373         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
10374         Correct calculation of font metrics. Now GtkEntrys have sane
10375         size.
10376
10377 2000-11-22  Alexander Larsson  <alexl@redhat.com>
10378
10379         * gdk/gdktypes.h:
10380         Add new type GdkSpan
10381         
10382         * docs/reference/gdk/gdk-sections.txt,
10383         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
10384         gdk/gdkregion.h:
10385         Implement and document gdk_region_spans_intersect_foreach.
10386
10387         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
10388         Add new file gdkrender-fb.c which contains all core
10389         rendering code.
10390         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
10391         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
10392         (optimized rectangle fillers).
10393
10394         * gdk/linux-fb/gdkdrawable-fb2.c:
10395         Move all rendering code to gdkrender-fb.c.
10396         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
10397         Use the new span intersection functions in gdk_fb_fill_spans.
10398         gdk_fb_draw_rectangle() clips filled rectangles and calls
10399         gc->fill_rectangle with the result.
10400         gdk_fb_fill_spans() gets extra argument "sorted".
10401
10402         * gdk/linux-fb/gdkevents-fb.c:
10403         Remove unused includes and defines.
10404         New function gdk_fb_get_time() to get correct time for events.
10405
10406         * gdk/linux-fb/gdkinput-ps2.c:
10407         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
10408         Make sure to set the time of all events.
10409
10410         * gdk/linux-fb/gdkmain-fb.c:
10411         Use gdk_fb_get_time ().
10412
10413         * gdk/linux-fb/gdkprivate-fb.h:
10414         New virtual GC calls: fill_span & fill_rectangle.
10415         Export gdk_fb_get_time().
10416         gdk_fb_fill_spans() gets extra argument "sorted".
10417
10418         * gdk/linux-fb/mi*.c:
10419         Use GdkSpan instead of GdkRectangle.
10420         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
10421         from XFree 4 source)
10422         
10423 2000-11-22    <jrb@redhat.com>
10424
10425         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
10426         reversing the order in an if statement will do.  Doing so managed
10427         to make the treemodelsort half work.  Other half will follow after
10428         I get the insert function fully fixed.
10429
10430 2000-11-21  Elliot Lee  <sopwith@redhat.com>
10431         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
10432         more than 2 bits. Besides, I need to implement an evil hack. :)
10433
10434 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
10435
10436         * docs/tutorial/gtk-tut.sgml: minor corrections
10437
10438 2000-11-20  Jonathan Blandford <jrb@redhat.com>
10439         * gtk/gtktreemodelsort.h: Add convertion functions to let you
10440           convert to and from relative path's and iters.
10441
10442         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
10443           testing sorting functions a bit better.  Currently broken -- will
10444           fix in morning.
10445
10446 2000-11-20  Havoc Pennington  <hp@redhat.com>
10447
10448         * gtk/gtkwidget.c: Documented a bunch of functions in here
10449         (gtk_widget_realize): Warn if you try to realize
10450         a widget with no parent that isn't a toplevel
10451         (gtk_widget_intersect): return a gboolean
10452
10453 2000-11-20  Havoc Pennington  <hp@redhat.com>
10454
10455         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
10456         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
10457         scrolling to be implemented in GDK to finish. Also, right now
10458         we just size_allocate all children on every layout change,
10459         which is pretty lame. Test commented out of testtext.c, 
10460         until it works better.
10461
10462 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
10463
10464         * gdk/linux-fb/gdkdrawable-fb2.c:
10465         Removed unused arguments from gdk_fb_drawable_get_pixel().
10466
10467         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
10468         Renamed fidur specific mouse packet data in MouseDevice to
10469         generic. Used it in ps2 mouse handling code to avoid blocking
10470         reads.
10471
10472 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
10473
10474         * demos/gtk-demo/main.c: Changed to have the list become
10475         non-italic when the demo window is destroyed through an external
10476         event (like a close button).  Doing so found three bugs in the
10477         widget.
10478
10479         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
10480
10481         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
10482         we actually set the cell.
10483
10484         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
10485
10486         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
10487         free a leaked path.  Thanks memprof.
10488
10489 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
10490
10491         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
10492         off-by-one error when destroying allocated segments
10493         on failure. (Elliot)
10494
10495 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
10496
10497         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
10498         memleaks found by Evan Martin.
10499
10500 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
10501
10502         * Released 1.3.2
10503         
10504         * NEWS: Updates for 1.3.2
10505
10506 2000-11-17  Tor Lillqvist  <tml@iki.fi>
10507
10508         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
10509         but in general for window system specific events.
10510
10511         * gtk/gtk.def
10512         * gtk/makefile.mingw.in
10513         * gtk/makefile.msc.in: Update.
10514         
10515         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
10516
10517 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
10518
10519         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
10520         distribute gtk.immodules.
10521
10522         * gtk/Makefile.am (install-data-local): Don't install the
10523         gtk.immodules file created for the uninstalled modules;
10524         instead run gtk-query-immodules after install
10525
10526 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
10527
10528         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
10529         -rpath to the right install location.
10530
10531         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
10532         -export-dynamic.
10533
10534         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
10535         properly.
10536
10537 2000-11-15  Havoc Pennington  <hp@pobox.com>
10538
10539         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
10540         patch from Mikael Hermansson to temporarily stop blinking while
10541         the user is using the keyboard to type or navigate. 
10542
10543         Also, when blinking, stay on for longer than we stay off. Also,
10544         return from start_cursor_blink if !cursor_visible, to save
10545         checking that flag all over the place before we call
10546         start_cursor_blink.
10547
10548 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
10549
10550         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
10551         only contain a "fontset" line, which is now ignored.
10552
10553         * gtk/gtkentry.c (gtk_entry_button_release): Make 
10554         double-click-to-select-word work.
10555         
10556 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
10557
10558         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
10559         Don't move back one char when we are actually at the end of the 
10560         paragraph.
10561
10562 2000-11-15  Robert Brady  <robert@suse.co.uk>
10563
10564         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
10565         'o' < 'p'.
10566         
10567         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
10568         bind_textdomain_codeset.
10569
10570         (gtk_init_check): Make the warning about translating default:LTR
10571         sterner.
10572         
10573 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
10574
10575         * **/Makefile.am : remove unecessary rules for win32-specific
10576         config-substituted targets. If you want these rules, use
10577         --enable-maintainer-mode (called automatically by autogen.sh).
10578         Stops a lot of unneccessary make-time warnings.
10579
10580         * gtk/gtktext{layout,display}.c: Factor in total width as
10581         well as screen when figuring alignment for word-wrap as well as
10582         no wrap; this is necessary to handle lines that cannot be wrapped
10583         at all.
10584
10585 2000-11-15  Havoc Pennington  <hp@redhat.com>
10586
10587         * gtk/testtext.c: Implement essential color cycling feature
10588
10589 2000-11-15  Havoc Pennington  <hp@redhat.com>
10590
10591         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
10592         when we invalidate the main window.
10593
10594         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
10595         GtkTextView will now invalidate the side windows for us when text
10596         changes.
10597
10598 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
10599
10600         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
10601         unconditionally, since we may need to update the horizontal
10602         scrollbars even if the height didn't change.
10603
10604         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
10605         the extra attrs, since some of them affect size.
10606
10607         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
10608         x_offset correctly.
10609
10610 2000-11-15  Havoc Pennington  <hp@redhat.com>
10611
10612         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
10613         don't move the first line out into the margin, instead move the
10614         whole paragraph in order to make space for the first line within 
10615         the margin
10616
10617 2000-11-15  Havoc Pennington  <hp@redhat.com>
10618
10619         * gtk/gtktextview.c (changed_handler): offset redraw rect by
10620         xoffset in addition to yoffset, so horizontal scrolling doesn't
10621         break redraws
10622
10623 2000-11-15  Havoc Pennington  <hp@redhat.com>
10624
10625         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
10626         from the cursor
10627         (render_layout_line): fix reversed test that caused weird
10628         underlines to get drawn
10629
10630 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
10631
10632         * gdk/linux-fb/gdkprivate-fb.h:
10633         Fix debug macros.
10634         
10635 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
10636
10637         * gdk/linux-fb/gdkprivate-fb.h:
10638         Added virtual functions set_pixel, get_color,
10639         fill_span and draw_drawable to the GC.
10640         Added global _gdk_fb_screen_gc to use instead of
10641         NULL when drawing to the screen.
10642         Added _gdk_fb_gc_calc_state() prototype.
10643
10644         * gdk/linux-fb/gdkgc-fb.c:
10645         Call _gdk_fb_gc_calc_state() on any gc state change.
10646
10647         * gdk/linux-fb/gdkglobals-fb.c:
10648         Add _gdk_fb_screen_gc
10649                 
10650         * gdk/linux-fb/gdkdrawable-fb2.c:
10651         _gdk_fb_gc_calc_state() calculates best functions
10652         for the GC state and depth.
10653         Moved bpp specialized code to separate functions.
10654         Added optimized 24 bpp AA draw_drawable.
10655
10656         * gdk/linux-fb/gdkevents-fb.c:
10657         Silence gcc warning.
10658
10659         * gdk/linux-fb/gdkimage-fb.c:
10660         Use _gdk_fb_screen_gc
10661
10662         * gdk/linux-fb/gdkwindow-fb.c:
10663         Init and use _gdk_fb_screen_gc
10664
10665         * gdk/linux-fb/mitypes.h:
10666         Remove unused types.
10667
10668 2000-11-14  Havoc Pennington  <hp@pobox.com>
10669
10670         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
10671         to pixels
10672
10673 2000-11-14  Havoc Pennington  <hp@pobox.com>
10674
10675         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
10676
10677         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
10678         unknown char, no real reason we were using a variable. 
10679         Remove gtk_text_unknown_char variable. Fix all the text widget
10680         files accordingly.
10681
10682         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
10683         since the Unicode spec seems to prefer that character for our
10684         purposes.
10685
10686 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
10687
10688         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
10689         value of g_getenv() isn't freeable, so g_strdup it.
10690
10691         * modules/input/inuktitut.c: Inuktitut input method.
10692
10693         * modules/input/Makefile.am: Build this.
10694         
10695 2000-11-14  Elliot Lee  <sopwith@redhat.com>
10696
10697         * gtk/Makefile.am: Install gtk.immodules, needed for operation
10698         of gtk programs.
10699
10700 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
10701
10702         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
10703         reversed > that was causing Home to go to end of previous line.
10704
10705         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
10706         modified-keypresses (leave for bindings.)
10707
10708         * modules/input/Makefile.am: Remove useless -export-dynamic
10709         from module LDFLAGS.
10710
10711 2000-11-14  Havoc Pennington  <hp@redhat.com>
10712
10713         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
10714         higher.
10715
10716         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
10717         account. Also, render rise, underline, background, etc. for
10718         pixbufs as well as text. Also, draw underlines one pixel higher.
10719
10720         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
10721         PangoAttribute for the rise, so it gets drawn properly. Also,
10722         add the GtkTextAppearance attribute for pixbuf/widget segments
10723         as well; we should go ahead and have rise, underline, background,
10724         stipple work for those
10725
10726         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
10727         Pango
10728
10729 2000-11-15  Tor Lillqvist  <tml@iki.fi>
10730
10731         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
10732
10733         * gtk/gtk.def: Update.
10734
10735         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
10736         included.
10737         (gtk_rc_get_im_module_file): Use run-time installation directory
10738         on Win32.
10739
10740         * gdk/win32/rc/gdk.rc: Remove.
10741         * gdk/win32/rc/gdk.rc.in: New file.
10742         * gdk/win32/rc/Makefile.am: New file
10743         * gdk/win32/Makefile.am: Corresponding changes.
10744
10745         * gtk/gtk.rc: Remove.
10746         * gtk/gtk-win32.rc.in: New file.
10747         * gtk/Makefile.am: Corresponding changes.
10748
10749         * configure.in: Corresponding changes.
10750
10751         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
10752         has a built gtkcompat.h. Developers using CVS code on Win32 can
10753         hand-edit it from gtkcompat.h.in.
10754
10755         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
10756         gtkcompat.h from gtkcompat.h.win32.
10757
10758 2000-11-14  Havoc Pennington  <hp@redhat.com>
10759
10760         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
10761         to default to GDK_ACTION_MOVE if the drag is within a single
10762         widget. Defaults to GDK_ACTION_COPY between widgets.
10763
10764 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
10765
10766         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
10767
10768         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
10769
10770         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
10771         srcdir != builddir
10772
10773         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
10774
10775         * configure.in (GTK_VERSION): Up to 1.3.2
10776
10777         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
10778         gtkimcontextxim.h
10779
10780         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
10781         missing doc comment.
10782
10783 2000-11-14  Alexander Larsson  <alexl@redhat.com>
10784
10785         * modules/linux-fb/basic.c:
10786         Use the glib iconv wrappers.
10787
10788 2000-11-13  Havoc Pennington  <hp@pobox.com>
10789
10790         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
10791         still more bugs.
10792
10793         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
10794         scroll the GdkWindows before realization.
10795
10796 2000-11-13  Havoc Pennington  <hp@redhat.com>
10797
10798         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
10799         where GC didn't always get updated properly
10800
10801         * demos/gtk-demo/textview.c (create_tags): Use subattributes
10802         of fonts instead of setting the entire font
10803
10804         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
10805         setting entire font
10806
10807         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
10808
10809         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
10810         a bunch of individually-settable font attributes. You can still 
10811         use the "font" and "font_desc" args, they just set all the font
10812         attributes at once.
10813
10814 2000-11-13 Elliot Lee <sopwith@redhat.com>
10815
10816         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
10817
10818 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
10819
10820         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
10821         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
10822
10823         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
10824         work better.
10825
10826 2000-11-13  Havoc Pennington  <hp@redhat.com>
10827
10828         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
10829         the module file.
10830
10831         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
10832         dest->language
10833
10834         * gtk/testtext.c: Test pixels above/below/inside paragraphs
10835         settings
10836
10837         * gtk/gtktextview.c: Implement object args and setters/getters for
10838         all the aspects of the GtkTextAttributes that are not set from
10839         GtkWidget attributes. This is spacing, justification, margins,
10840         etc.
10841
10842         (gtk_text_view_set_arg)
10843         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
10844         args
10845         (gtk_text_view_class_init): Add args for justify, left_margin,
10846         right_margin, indent, and tabs
10847         
10848
10849         * gtk/gtktextlayout.c (set_para_values): fix to display indent
10850         attribute properly
10851
10852         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
10853         replace with indent attribute
10854
10855         * gtk/gtktextlayout.c (set_para_values): multiply indent by
10856         PANGO_SCALE
10857
10858         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
10859         rearranging code to do that
10860         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
10861         i.e. don't subtract the top_margin first, just to keep
10862         all margin-futzing in one place.
10863
10864         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
10865
10866         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
10867         special case of last line, Pango now handles this itself.
10868         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
10869         Y coordinate
10870         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
10871         (find_display_line_above): wasn't moving the byte index as it
10872         iterated over lines, so always returned byte 0. Also, port to use
10873         PangoLayoutIter.
10874         (find_display_line_below): same problem as
10875         find_display_line_above. Also, port to use PangoLayoutIter.
10876
10877 2000-11-13  Alexander Larsson  <alexl@redhat.com>
10878
10879         * gdk/linux-fb/*.[ch]:
10880         Massive reindent to gtk+ standard. My hands hurt.
10881
10882         * gdk/linux-fb/gdkcolor-fb.c:
10883         Move GdkColorPrivateFB from inherited to windowing_data
10884
10885         * gdk/linux-fb/gdkcursor-fb.c:
10886         _gdk_cursor_new_from_pixmap made static
10887
10888         * gdk/linux-fb/gdkdnd-fb.c:
10889         GdkDragContextPrivate moved to windowing_data
10890
10891         * gdk/linux-fb/gdkdrawable-fb2.c:
10892         Removed endian.h, use glib endianness macros instead
10893         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
10894         and GDK_DRAWABLE_IMPL_FBDATA
10895
10896         * gdk/linux-fb/gdkfont-fb.c:
10897         Add empty gdk_font_load(). Needed for linking of Gtk+.
10898
10899         * gdk/linux-fb/gdkimage-fb.c:
10900         Removed endian.h, use glib endianness macros instead
10901         Moved GdkImagePrivateFB to windowing_data
10902         gdk_image_new_bitmap didn't always allocate enough
10903         memory.
10904
10905         * gdk/linux-fb/gdkinput-ps2.c:
10906         Added semi-working support for MS serial mice.
10907
10908         * gdk/linux-fb/gdkprivate-fb.h:
10909         s/GdkWindowPrivate/GdkWindowObject/
10910         Removed GdkWindowPrivate typedef
10911         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
10912         Removed GDK_DRAWABLE_P
10913         Move GdkColorPrivateFB from inherited to windowing_data
10914         Moved GdkImagePrivateFB to windowing_data
10915
10916         * gdk/linux-fb/gdkvisual-fb.c:
10917         Removed some unused debug code.
10918
10919         * gdk/linux-fb/gdkwindow-fb.c:
10920         Use stock cursors instead of including X headers.
10921         s/GdkWindowPrivate/GdkWindowObject/
10922
10923         * gdk/linux-fb/mitypes.h:
10924         Removed unused types.
10925
10926         * modules/linux-fb/basic.c:
10927         Use the pango fribidi wrappers.
10928
10929 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
10930
10931         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
10932         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
10933         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
10934         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
10935         GEqualFunc where applicable.
10936         
10937         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
10938         pango_font_description_equal as changed in pango.
10939         
10940         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
10941
10942         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
10943
10944         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
10945
10946         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
10947
10948         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
10949
10950         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
10951
10952         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
10953         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
10954
10955         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
10956         gtk_rc_styles_compare -> gtk_rc_styles_equal.
10957
10958 2000-11-12  Havoc Pennington  <hp@pobox.com>
10959
10960         * demos/gtk-demo/Makefile.am (democodedir): change demo install
10961         dir to datadir/gtk+-2.0/demo
10962
10963         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
10964         sorts of text widget and Pango font bugs. Urgh.
10965
10966         * demos/gtk-demo/Makefile.am (demos): Add textview.c
10967
10968         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
10969         tree that you should double click to see the demo. Fix 
10970         types of variables to reflect changed return values from 
10971         GtkTreeStore and GtkTreeViewColumn constructors.
10972
10973         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
10974         newly-created buffer to prepare for GObject semantics
10975
10976         * gtk/testtext.c: don't leak the buffer with GObject semantics
10977
10978         * gtk/testtextbuffer.c: ditto
10979         
10980 2000-11-12  Havoc Pennington  <hp@pobox.com>
10981
10982         Rename this testgtk to gtk-demo to avoid confusion, and 
10983         install it so people can use it as a supplement to 
10984         the documentation.
10985         
10986         * demos/gtk-demo: Moved from demos/testgtk
10987
10988         * demos/testgtk: Removed
10989
10990         * configure.in: make Makefile in gtk-demo
10991         
10992         * demos/gtk-demo/Makefile.am: Install sample source to 
10993         datadir/gtk-demo (maybe there's a better place?), and 
10994         rename the binary to gtk-demo
10995         
10996         * demos/gtk-demo/main.c (load_file): Load installed sample
10997         source if source isn't found in pwd.
10998
10999 2000-11-09  Havoc Pennington  <hp@pobox.com>
11000
11001         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
11002         argument to set the char displayed when visibility == FALSE
11003         (gtk_entry_create_layout): If !entry->visible, replace 
11004         all chars with the "invisible char"
11005
11006         * gtk/testgtk.c: Test the invisible_char deal
11007         
11008 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
11009
11010         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
11011         can't get a native font in the right encoding.
11012
11013 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
11014
11015         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
11016         respectively.
11017
11018 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
11019
11020         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
11021         Fix warning when moving between paragraphs.
11022
11023         * gtk/gtkentry.[ch]: Change move => move_cursor, 
11024         delete => delete_from_cursor, insert => insert_at_cursor
11025
11026 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
11027
11028         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
11029
11030         * modules/input/imthai-broken.c: A Thai input method for use if
11031         Thai keys are really generating Latin1 keysyms.
11032
11033         * modules/input/Makefile.am: Build these.
11034
11035 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
11036
11037         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
11038         g_filename_{to,from}_utf8 now takes an extra parameter.
11039
11040         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
11041         strftime into UTF-8.
11042
11043         (column_from_x, gtk_calendar_paint_day_names): Support RTL
11044         calendars.
11045
11046         (gtk_calendar_paint_day_names): Draw day names in the right 
11047         place.
11048         
11049 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
11050
11051         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
11052         problem with using result of g_get_charset() backwards -
11053         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
11054
11055         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
11056         negative min_width/height and max_width/height to
11057         mean "requisition"; this allows setting a window
11058         to be user-resizable in only one direction easily.
11059
11060         * gtk/testgtk.c (create_main_window): Remove hard-coded
11061         usize - set a default size in the vertical direction.
11062
11063 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
11064
11065         * gtk/gtkrange.c: Add some missing casts. Support 
11066         2 and 3 button clicks on the arrows to mean 
11067         "move by pages" and "jump to end". (Like gtkspinbutton)
11068
11069 2000-11-12 Hans Breuer <Hans@Breuer.Org>
11070
11071         * gdk/win32/makefile.msc : reflect build module changes
11072
11073         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
11074         from GdkPixmap*, cast implementation member instead.
11075
11076         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
11077         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
11078         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
11079         more Gdi functions return value checking. 
11080         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
11081         GdkImagePrivateWin32 *.
11082
11083         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
11084         menus useable again. Add #pragma message to keep reminded on this issue.
11085         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
11086         windows. This allows to enable backing store on Win32!
11087
11088         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
11089         in drawable is of impl type. Correct specific type checks appropriate.
11090  
11091         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
11092         GDK_WINDOW_DESTROYED before allocating new resources.
11093
11094         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
11095
11096         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
11097         (gdk_window_foreign_new) initialize parent handle.
11098         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
11099
11100         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
11101         Let the GDI invalidate the window on MoveWindow call to fix scrolling
11102         problems (e.g. main buttons in testgtk). 
11103
11104 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
11105
11106         * gtk/gtkentry.c (gtk_entry_key_press): Call 
11107         gtk_widget_activate for GDK_Return.
11108
11109         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
11110         of preedit cursor position.
11111
11112 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
11113
11114         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
11115         static.
11116
11117 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
11118
11119         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
11120         out support for multiple locales; that simple doesn't
11121         work reliably with current Xlib
11122
11123         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
11124         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
11125         Add support for positioning the cursor within the preedit string.
11126
11127 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
11128
11129         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
11130         at XIM input method module.
11131
11132         * gtk/gtktextview.c: Check for bindings after passing
11133         events to im context filter.
11134
11135 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
11136
11137         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
11138         empty attribute lists properly.
11139
11140 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
11141
11142         * gtk/queryimmodules.c (main): Return non-zero exit
11143         status if errors were encountered querying any
11144         modules.
11145
11146         * modules/input/Makefile.am (moduledir): remove
11147         leftover bin program target.
11148
11149         * docs/make-todo: Fix typo in error message.
11150
11151 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
11152
11153         * configure.in: Add modules/input/Makefile
11154
11155 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
11156
11157         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
11158         don't include gtkthemes.h.
11159
11160         * gtk/testgtk.c gtk/testtext.c: Set environment variables
11161         to point
11162
11163         * gtk/Makefile.am: Add new .c and .h files, build 
11164         gtk-query-immodules and use it to create a gtk.immodules
11165         file for use of test programs.
11166
11167         * gtk/gtkpreview.c: remove extra blank line.
11168
11169 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
11170
11171         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
11172         Add the ability to add extra tables beyond the default
11173         one, and also the ability to have compose sequences 
11174         that are prefixes of other compose sequences. 
11175
11176         * gtk/gtkimcontextsimple.c: Export a preedit string which
11177         consists of possible candidates for keystrokes that have
11178         been entered but not yet committed.
11179
11180         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
11181         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
11182
11183         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
11184         Add a function to add input-method switching menu items
11185         to a menu.
11186
11187         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
11188         when switching input methods.
11189
11190         * gtk/gtkimcontextsimple.[ch]: Change the format of
11191         the compose table to allow compose tables of different
11192         lengths / sequence.
11193
11194 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
11195
11196         * gtk/gtkimmodule.[ch]: Support routines for loading
11197         GtkIMContext implementations dynamically at runtime.
11198
11199         * modules/input/imcyrillic-translit.c: A sample input
11200         method (based on GtkIMContextSimple with an extra table),
11201         which demonstrates preedit strings and the module
11202         system for input modules
11203
11204         * gtk/queryimmodules.c: Program to query the available
11205         input modules and write the results into a file.
11206          
11207         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
11208         extra config options "im_module_file" (cache file for
11209         input method modules), and "im_module_path" - path
11210         to look for modules when generating cache file.
11211
11212         This doesn't scale.
11213
11214 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
11215
11216         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
11217         generic code from gtkthemes into a new abstraction
11218         GtkModule which has the logic for implementing
11219         a loadable module which implements a number of 
11220         GObject types.
11221
11222 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
11223
11224         * gtk/gtkeditable.[ch]: Convert GtkEditable from
11225         a class into an interface  
11226         
11227         * gtk/gtkoldeditable.[ch]: Move the old editable
11228         implementation into here, so legacy widgets can
11229         still rely on the implemenation. GtkOldEditable
11230         exports GtkEditable. Make selection handling
11231         code use new text conversion functions (and
11232         handle UTF-8 as a side-effect). Use GtkClipboard
11233         for CLIPBOARD.
11234
11235         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
11236         Adopt to match above changes.
11237
11238         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
11239         avoid GtkOldEditable implementation. Restructure
11240         to reduce number of places that modify state directly.
11241         Move to GtkBindingSet. Display the preedit string.
11242         Queue recomputation of PangoLayout and scroll position
11243         to improve effiency of doing complex changes naively.
11244         Add a menu with cut/copy/paste and input method selection.
11245
11246 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
11247
11248         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
11249         to set preedit string and attributes; display preedit string by
11250         inserting string and attributes at cursor when creating the
11251         GtkTextLineDisplay.
11252
11253         * gtk/gtktextlayout.c: Move all conversions between byte
11254         positions in PangoLayout and GtkTextIter into new functions
11255         line_display_iter_to_index/index_to_iter that properly
11256         handle the preedit string.
11257
11258         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
11259         it to return const char * (eventually will end up
11260         as GCONST char *, most likely.)
11261
11262         * gtk/gtktextview.[ch]: Handle the preedit string, call
11263         gtk_im_context_reset() as necessary, add a menu to switch
11264         input methods.
11265         
11266         * gtk/gtktextlayout.[ch]: Remove useless
11267         gtk_text_layout_get_log_attrs() function.
11268
11269 2000-11-11  Tor Lillqvist  <tml@iki.fi>
11270
11271         * gdk/gdk.def
11272         * gtk/gtk.def: Update.
11273
11274         * gdk/win32/*.c: Add last argument to g_type_register_static()
11275         calls.
11276
11277         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
11278
11279         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
11280         generated by older wheel mouse drivers. Get the correct y
11281         coordinate from WM_MOUSEWHEEL messages.
11282
11283         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
11284         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
11285         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
11286         Debugging functions.
11287
11288         * gdk/win32/gdkprivate-win32.h: Declare them.
11289
11290         * gdk/win32/gdkinput-win32.h: Add declaration for
11291         gdk_input_window_destroy().
11292
11293         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
11294
11295 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
11296
11297         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
11298         function to help handle keeping things in sync.
11299
11300 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
11301
11302         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
11303         BOXED marshallers.
11304
11305         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
11306         (gtk_list_store_class_init): use the new BOXED marshallers.
11307
11308         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
11309         new_with_values to new_with_types.
11310         (gtk_tree_store_get_column_type): add this.
11311         (gtk_tree_store_class_init): use the new BOXED marshallers.
11312
11313         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
11314         mirror some POINTER marshallers.
11315
11316 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
11317
11318         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
11319         allow more interesting iterators.  Also, made the lifecycle of
11320         iterators more explicit.
11321
11322         * gtk/gtktreemodelsort.[ch]: New model for sorting.
11323
11324         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
11325         types.
11326
11327 2000-11-09  Alexander Larsson  <alexl@redhat.com>
11328
11329         * demos/testgtk/menus.c:
11330         Changes to make the new testgtk compile after
11331         gtk_menu_append was removed.
11332
11333         * gdk/linux-fb/gdkdrawable-fb2.c
11334         (gdk_fb_get_depth, gdk_fb_get_visual,
11335         gdk_drawable_impl_fb_class_init): Implement
11336         these drawable functions. Now GtkImages work again.
11337
11338         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
11339
11340         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
11341         
11342         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
11343         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
11344         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
11345         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
11346
11347 2000-11-08  Havoc Pennington  <hp@pobox.com>
11348
11349         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
11350         visible_set args, don't know where these had gone, I thought they
11351         used to be there
11352
11353         * gtk/testtext.c: Add a menu item to apply invisibility tag;
11354         now we can test the feature and see that it's totally broken.
11355
11356 2000-11-08  Havoc Pennington  <hp@pobox.com>
11357
11358         Make DND copy pixbufs and tags when source and target share a 
11359         tag table.
11360         
11361         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
11362         in-process GTK_TEXT_BUFFER_CONTENTS target
11363         (gtk_text_view_drag_data_received): Paste from
11364         GTK_TEXT_BUFFER_CONTENTS if we receive it.
11365
11366 2000-11-08  Alexander Larsson  <alexl@redhat.com>
11367
11368         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
11369         API changes.
11370
11371         * gtk/gtkmenu.c: Add support for scrolling menus.
11372         Remove gtk_menu_append/prepend/insert, these have been moved to
11373         gtkcompat.h as #defines.
11374
11375         * gtk/gtkcompat.h.in:
11376         Add compatibility #defines for gtk_menu_append/prepend/insert
11377
11378         * gtk/gtkmenu.h: Add data needed for scrolling menus.
11379         GtkMenuPositionFunc gets an extra argument push_in.
11380         gtk_menu_append/prepend/insert removed.
11381         
11382         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
11383         positioning behaviour to fit to scrolling menus.
11384
11385         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
11386         into menuitem->submeny. That is wrong, and broke torn
11387         off submenus of torn off menus, since they were unrealized
11388         when the first menu was unrealized.
11389
11390         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
11391         gtk_menu_shell_select_item() since these need to be overridden in
11392         GtkMenu.
11393
11394         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
11395         positioning behaviour to fit to scrolling menus.
11396         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
11397         the current item so that it is prelighted when the menu pops up.
11398         This is a workaround to the fact that the menu doesn't get the
11399         initial enter event (due to grabs).
11400
11401         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
11402         s/gtk_menu_append/gtk_menu_shell_append/
11403
11404         * gtk/gtknotebook.c:
11405         s/gtk_menu_insert/gtk_menu_shell_insert/
11406
11407         * gtk/testgtk.c (create_menu, create_menus):
11408         Create the first menu with 50 items so that menu scrolling
11409         can be tested.
11410         
11411         
11412         Patch from Jonathan Blandford  <jrb@redhat.com>
11413
11414         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
11415         system to handle size requests.  First, we ask what the size of
11416         the toggle is.  Then, when allocating the size, we allocate the
11417         toggle_size first.  This way we can have multiple menu-item
11418         classes w/o needing a seperate class for each.
11419
11420         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
11421         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
11422
11423         * gtk/gtkcheckmenuitem.c
11424         (gtk_check_menu_item_toggle_size_request): New function to handle
11425         the toggle size-request.
11426
11427 2000-11-07  Havoc Pennington  <hp@redhat.com>
11428
11429         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
11430         Half-ass somewhat fix this function, so that scrolling to the
11431         insertion point works. Pango hacking is in the future to really
11432         fix it.
11433
11434         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
11435         length of data, no longer used.
11436
11437         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
11438         method contents in here, get rid of destroy method
11439         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
11440         that were backward. Remove debug spew.
11441         (cut_or_copy): Make the clipboard work with insert_range to
11442         preserve tags and pixbufs, not just the primary selection.
11443
11444 2000-11-07  Havoc Pennington  <hp@redhat.com>
11445
11446         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
11447         to gtk_text_mark_get_visible
11448
11449         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
11450         bug that was generating an invalid iterator
11451
11452         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
11453         ensure_char_offsets() in front of code placing the iter in an
11454         invalid state.
11455
11456         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
11457         make override_location arg const
11458         (paste): Replace the selection if we paste into the 
11459         current selection
11460
11461         * gtk/gtkselection.h: Remove "GtkSelectioData"
11462         (struct _GtkSelectionData): move the definition here.
11463
11464         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
11465         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
11466
11467         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
11468
11469         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
11470         (gtk_text_buffer_insert_range_interactive): implement
11471         (gtk_text_buffer_get_tags): Remove, replaced by
11472         gtk_text_iter_get_tags()
11473
11474         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
11475         limit parameter, to avoid infinite linear scan.
11476         (gtk_text_iter_backward_search): Add search limit
11477         (gtk_text_iter_forward_find_char): Add search limit
11478         (gtk_text_iter_backward_find_char): Add search limit
11479
11480 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
11481
11482         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
11483         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
11484         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
11485         gdk/linux-fb/gdkwindow-fb.c:
11486         use g_object_new() instead of g_type_create_instance() which
11487         is a private function for fundamental type implementations.
11488
11489         * gdk/linux-fb/gdkinput-ps2.c:
11490         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
11491         instead just store the current modifier state. Add a (somewhat broken)
11492         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
11493         Rename exported function gdk_input_ps2_get_mouseinfo to
11494         gdk_input_get_mouseinfo.
11495
11496         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
11497         gdk/linux-fb/gdkwindow-fb.c:
11498         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
11499         
11500
11501 2000-11-02  Havoc Pennington  <hp@redhat.com>
11502
11503         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
11504         use stock buttons. Should be 100% source compatible, appropriate
11505         filesel fields now point to dialog->vbox and dialog->action_area.
11506         On the bizarre side, dialog->action_area and filesel->action_area
11507         are not the same widget.
11508         (gtk_file_selection_init): Put some padding around the selection
11509         entry, so it isn't touching the GtkDialog separator.    
11510
11511         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
11512         use stock buttons, etc. Should also be source compatible.
11513         Set the dialog default title in _init not _new().
11514         
11515         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
11516         Use stock buttons; don't put a button box inside the existing
11517         dialog button box. Don't bother with push/pop colormap anymore.
11518
11519         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
11520         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
11521         for message dialog, and necessary for the font selection and color
11522         selection with help and apply buttons.
11523         
11524         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
11525         to the created button widget. Set GTK_CAN_DEFAULT on the button.
11526         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
11527         between buttons, put less padding around the action area.
11528         (gtk_dialog_run): Exit on unmap rather than on destroy. 
11529         This will also exit the loop if the widget is hidden.
11530         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
11531         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
11532         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
11533         special-case delete event.
11534
11535         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
11536         formatting
11537         
11538 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
11539
11540         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
11541         button to temporarily disable position recording in the
11542         "saved position" test.
11543
11544 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
11545
11546         * gtk/gtkthemes.c: added compat code that temporarily implements
11547         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
11548         going to be revamped by owen's upcoming GtkModule patches, but
11549         untill then people want gtk to build, right? ;)
11550
11551 2000-11-04  Havoc Pennington  <hp@pobox.com>
11552
11553         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
11554         list
11555
11556         * docs/Changes-2.0.txt: Add note about
11557         gtk_container_get_toplevels()
11558
11559         * gtk/gtktextview.h: formatting
11560         
11561         * gtk/gtktextview.c: don't start descriptions with "Returns",
11562         confuses gtk-doc
11563
11564 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
11565
11566         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
11567         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
11568
11569 2000-11-03  Havoc Pennington  <hp@redhat.com>
11570
11571         * gtk/gtktexttagtable.c: Docs
11572         (gtk_text_tag_table_size): return a signed int
11573
11574         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
11575         (gtk_text_tag_event): make the event_object a GObject
11576
11577         * gtk/gtktextview.c: Write API docs for all functions.
11578
11579         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
11580         for gtk_text_view_get_window_type() called on one of the private
11581         windows.
11582
11583         * gtk/gtktextview.c: Instead of accessing text_view->buffer
11584         directly, call get_buffer() which demand-creates a default
11585         buffer. So gtk_text_view_new() can be used to create a view with a
11586         default buffer in it, if you just want an empty text box users can
11587         put data in. Useful for GUI builders also.
11588
11589 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
11590
11591         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
11592         the charset encodign portion MUST be in lowercase.
11593         * gtk/gtkrc.az: added file for Azeri language
11594
11595 2000-11-03  Havoc Pennington  <hp@redhat.com>
11596
11597         Get widgets working on the btree/buffer side. Display of them 
11598         still doesn't work.
11599         
11600         * gtk/gtktextview.c: start implementing child widget stuff
11601
11602         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
11603
11604         * gtk/gtktextlayout.c: handle embedded widgets
11605
11606         * gtk/gtktextdisplay.c: handle embedded widgets
11607
11608         * gtk/gtktextchild.c: Implement all the child anchor goo
11609
11610         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
11611         function
11612
11613         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
11614         (insert_pixbuf_or_widget_segment): abstract out common portions of 
11615         creating a child anchor or a pixbuf segment.
11616         (gtk_text_btree_create_child_anchor): new function
11617         (gtk_text_btree_unregister_child_anchor): new function
11618
11619         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
11620         allocate_child signal on GtkTextLayout
11621
11622         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
11623         values
11624         (gtk_text_iter_get_child_anchor): new function
11625
11626         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
11627         default handler for the changed signal, which calls
11628         gtk_text_buffer_set_modified(), instead of just always emitting
11629         changed then calling set_modified() manually. I guess this is
11630         maybe more flexible. It seems logical.
11631
11632 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
11633
11634         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
11635         now.
11636
11637         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
11638
11639 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
11640
11641         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
11642         been marked static.
11643
11644 2000-11-02  Havoc Pennington  <hp@redhat.com>
11645
11646         * gtk/testgtk.c (create_labels): had a test backward
11647
11648         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
11649         fields, so the dest GC ends up with the correct clip origin, 
11650         etc. Fixes a bug where colored labels didn't redraw 
11651         properly.
11652
11653 2000-11-02  Alexander Larsson  <alexl@redhat.com>
11654
11655         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
11656         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
11657         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
11658         Add last argument to t_type_register_static call.
11659         
11660         * gdk/linux-fb/gdkdrawable-fb2.c:
11661         Add last argument to t_type_register_static call.
11662         export the get_image drawable virtual function.
11663
11664         * gdk/linux-fb/gdkimage-fb.c:
11665         Add last argument to t_type_register_static call.
11666         rename gtk_image_get to _gdk_fb_get_image and
11667         export it for use by gdkdrawable-fb2.
11668
11669         * gdk/linux-fb/gdkprivate-fb.h:
11670         export _gdk_fb_get_image.
11671
11672         * gdk/linux-fb/gdkselection-fb.c:
11673         Add new api call stubs.
11674
11675         * gtk/Makefile.am:
11676         Missing ( in linux-fb part.
11677
11678         * modules/linux-fb/Makefile.am:
11679         Must link with gdk_pixbuf or get unresolved symbol.
11680
11681 2000-11-01  Havoc Pennington  <hp@pobox.com>
11682
11683         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
11684         GTK_TYPE_TEXT_ITER and BOXED marshallers
11685
11686         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
11687
11688         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
11689         
11690         * gtk/gtk-boxed.defs: add GtkTextIter
11691
11692         * gtk/gtkmarshal.list: Add marshallers for text widget that 
11693         properly use OBJECT and BOXED
11694
11695 2000-11-01  Havoc Pennington  <hp@redhat.com>
11696
11697         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
11698
11699         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
11700         before returning it. 
11701         
11702 2000-11-01  Havoc Pennington  <hp@redhat.com>
11703
11704         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
11705         Clip the rectangle to be rendered to the drawable, since
11706         get_from_drawable() requires a region within the drawable
11707
11708 2000-11-01  Havoc Pennington  <hp@redhat.com>
11709
11710         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
11711         from coordinates.
11712
11713 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
11714
11715         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
11716         it isn't NULL.
11717
11718 2000-11-01  Havoc Pennington  <hp@pobox.com>
11719
11720         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
11721         on a label
11722         (gtk_label_finalize): unref the attr list if any.
11723
11724         * gtk/testgtk.c (create_get_image): close test on second click
11725         (make_message_dialog): close dialog if it exists
11726
11727         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
11728
11729         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
11730         gdk-pixbuf
11731
11732         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
11733         from Pango markup format
11734         (gtk_label_set_markup_with_accel): ditto but with accelerator
11735         parsing
11736
11737         * gtk/gtkimage.c (gtk_image_expose): reformatting.
11738
11739         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
11740         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
11741         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
11742         call gdk_window_get_origin().
11743
11744         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
11745         implement GDK_PIXBUF_ALPHA_FULL
11746         
11747 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
11748
11749         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
11750         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
11751         g_signal_handlers_disconnect_matched to block/unblock and disconnect
11752         multiple handlers respectively, instead of only treating the
11753         first handler found (bug reported by owen).
11754
11755 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
11756
11757         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
11758
11759         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
11760
11761         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
11762         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
11763         gtk/gtktreeviewcolumn.h: Fixed inline docs.
11764
11765         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
11766         widget.  Needs writing someday.
11767
11768         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
11769         the docs.
11770
11771 2000-10-30  Havoc Pennington  <hp@redhat.com>
11772
11773         * gtk/gtktextview.h, gtk/gtktextview.c:
11774         Rename delete_at_cursor delete_from_cursor, and 
11775         move to move_cursor.
11776
11777 2000-10-30  Havoc Pennington  <hp@redhat.com>
11778
11779         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
11780         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
11781         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
11782         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
11783         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
11784         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
11785         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
11786         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
11787         gtktexttypes.h, gtktextview.c, gtktextview.h:
11788
11789         Massive reindentation and reformatting. Arg alignment and comments
11790         still need fixing in various places.
11791
11792 2000-10-30  Havoc Pennington  <hp@redhat.com>
11793
11794         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
11795         to be named insert_at_cursor and delete_at_cursor so C++ can
11796         handle them.
11797
11798 2000-10-28  Tor Lillqvist  <tml@iki.fi>
11799
11800         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
11801         to get a double directory separator in case the home directory
11802         ends with one. This would cause trouble especially on Windows,
11803         where the path will be confused with the syntax for an an UNC
11804         (network share) path \\server\share\path.
11805         (gtk_rc_add_initial_default_files): Ditto.
11806
11807 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
11808
11809         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
11810
11811         * gtk/gtktextview.c: Use correct marshallers.
11812
11813 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
11814
11815         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
11816         use new iter stuff, and added all the appropriate signals et al.
11817
11818         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
11819         code is internal to gtk only.
11820
11821 2000-10-28  Tor Lillqvist  <tml@iki.fi>
11822
11823         * gtk/gtk.def
11824         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
11825         glib-genmarshal etc.
11826
11827 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
11828
11829         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
11830         parallel builds.
11831
11832 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
11833
11834         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
11835
11836 2000-10-27  Robert Brady  <robert@suse.co.uk>
11837
11838         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
11839         en_GB (British), ia (Interlingua).
11840
11841 2000-10-26  Havoc Pennington  <hp@redhat.com>
11842
11843         * gtk/gtktextiter.c (my_strrstr): fix constness warning
11844
11845         Fixed output of:
11846         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
11847         
11848         * gtk/gtktextsegment.c (char_segment_new): rename
11849         (_char_segment_new_from_two_strings): rename
11850         (_toggle_segment_new): rename
11851         
11852         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
11853         (make_clipboard_widget): make it static
11854         (text_get_func): static
11855         (text_clear_func): static
11856
11857         * gtk/gtkcolorsel.c (adjustment_changed): make this function
11858         static
11859         (hex_changed): make it static
11860         (hsv_changed): make it static
11861         (opacity_entry_changed): make it static
11862
11863         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
11864         (toggle_segment_check_func): rename with _gtk
11865
11866         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
11867         (_widget_segment_new): rename
11868         (_widget_segment_add): rename
11869         (_widget_segment_remove): rename
11870         (_widget_segment_ref): rename
11871         (_widget_segment_unref): rename
11872
11873         * gtk/gtktextmark.c (_mark_segment_new): Rename
11874         _gtk_mark_segment_new   
11875
11876 2000-10-26  Havoc Pennington  <hp@redhat.com>
11877
11878         * gtk/gtkmarshal.list: add new marshallers used by the text widget
11879         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
11880         types
11881
11882         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
11883         marshaller types
11884
11885         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
11886         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
11887         license on these files.
11888
11889         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
11890         work.
11891
11892         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
11893         runtime random number different for each tree, instead of 
11894         a constant I made up.
11895
11896 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
11897
11898         * gtk/Makefile.am: buncha cleanups, kludged build sources
11899         dependencies with a Makefile: oldest-source-stamp dependancy
11900         for the moment. automake is really fighting us here, with
11901         intentionally not allowing user-defined rules or dependancies
11902         prior to it's -include $(DEP_FILES) statement. sucks rocks!
11903
11904         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
11905         to public headers. tehy have a comment stating that they are
11906         "semi-public" aren't included by gtk.h and if enums popup there,
11907         they can be /*< skip >*/-ed.
11908
11909         * gtk/gtktextlayout.h: 
11910         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
11911         added LGPL... <SIGH>
11912
11913 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
11914
11915         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
11916         GtkTreeIter.  Added iterators everywhere.
11917
11918         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
11919
11920         * gtk/gtktreeviewselection.c: Changed to use the iterators.
11921
11922         * gtk/gtktreestore.c: Changed to use the iterators.
11923
11924         * gtk/gtkliststore.c: Commented out the code.  Will convert to
11925         iterators tomorrow.
11926
11927         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
11928         iterators tomorrow.
11929
11930         * gtk/treestoretest.c: Changed to use iterators.
11931
11932         * demos/testgtk/main.c: Moved to use the new iterator system.
11933
11934 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
11935
11936         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
11937         localization misbehaviour.
11938
11939         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
11940         a useless type without copy/free.
11941
11942         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
11943         of GTK_TYPE_CTREE_NODE.
11944
11945 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
11946
11947         * gtk/gtksignal.c:
11948         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
11949         applicable.
11950
11951         * gtk/gtk-boxed.defs (GtkSelectionData): specify
11952         gtk_selection_data_copy and gtk_selection_data_free
11953         do GtkSelectionData work as params in signals.
11954
11955 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
11956
11957         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
11958         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
11959         couldn't they at least give it a non-standard name?
11960         
11961         * gtk/gtktextlayout.c: arg! yet another implementation of
11962         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
11963
11964         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
11965         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
11966         home. now i know this _is_ a conspiracy.
11967
11968         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
11969         ::state-changed.
11970
11971         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
11972         (gtk_accel_group_create_add): marshaller signature fixups.
11973
11974         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
11975         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
11976
11977         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
11978         anymore.
11979
11980 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
11981
11982         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
11983         due to the signal system changes, it wouldn't build currently. to
11984         be fixed soon.
11985
11986         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
11987
11988         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
11989         so it needs gtk_marshal_VOID__ENUM() instead of
11990         gtk_marshal_NONE__UINT().
11991
11992         * gdk/gdk*.c: adapted type registration functions.
11993
11994         * gtk/gtkbindings.c:
11995         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
11996         gone.
11997
11998         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
11999
12000         * gtk/gtkobject.c:
12001         (gtk_object_destroy):
12002         (gtk_object_shutdown): fixed recursion guards. basically we have to
12003         catch the case where any of GObject.shutdown() or gtk_object_destroy()
12004         is called during ::destroy, and avoid recursion there.
12005
12006         * gtk/gtktypeutils.c:
12007         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
12008         boxed_copy/boxed_free. this needs a more general solution based on a
12009         publically installed code-generator utility.
12010
12011         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
12012         glib's gobject has support for that now.
12013         define GtkSignalMarshaller in terms of GSignalCMarshaller.
12014
12015 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
12016
12017         * gtk/gtksignal.[hc]:
12018         * gtk/gtkmarshal.[hc]:
12019         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
12020         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
12021         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
12022         care of that.
12023
12024         * *.c: marshaller name fixups.
12025
12026         * gtk/gtkmarshal.list: added a comment briefing the format.
12027
12028 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
12029
12030         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
12031         compatibility macros here now. more specifically, most of
12032         the API is preserved (yes, _most_, nonwithstanding the
12033         following exceptions listed, the API is stil lHUGE ;)
12034         things that got removed completely:
12035         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
12036         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
12037         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
12038         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
12039         gtk_signal_remove_emission_hook().
12040         non-functional functions variants:
12041         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
12042         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
12043         not supported anymore.
12044         (gtk_signal_compat_matched): new internal function to aid
12045         implementation of the compatibility macros, it  provides
12046         functionality to block/unblock/disconnect handlers based
12047         on func/data.
12048
12049         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
12050
12051         * *.c: adaptions to new type registration API signatures.
12052
12053 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
12054
12055         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
12056
12057 2000-10-25  Robert Brady  <robert@suse.co.uk>
12058
12059         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
12060         gdk_property_delete): If window == NULL, assume the root window.
12061         (restoring the behaviour that was in 1.2).
12062         
12063         * gtk/testtext.c (save_buffer): Allow creation of new files when
12064         saving.
12065
12066         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
12067         calls to read().
12068
12069 2000-10-25  Tor Lillqvist  <tml@iki.fi>
12070
12071         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
12072
12073         * gdk/win32/gdkdrawable-win32.c
12074         * gdk/win32/gdkimage-win32.c
12075         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
12076         X11 backend.
12077
12078         * gdk/win32/gdkcc-win32.c
12079         * gdk/win32/gdkcolor-win32.c
12080         * gdk/win32/gdkfont-win32.c
12081         * gdk/win32/gdkinput-win32.c
12082         * gdk/win32/gdkmain-win32.c
12083         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
12084
12085 2000-10-24  Havoc Pennington  <hp@redhat.com>
12086
12087         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
12088         it a static function
12089
12090         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
12091         redraw text when a tag is applied to it.
12092
12093         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
12094         (gtk_text_tag_affects_nonsize_appearance): private functions to
12095         see if a tag requires various kinds of redraw/layout to be queued
12096         up.
12097
12098         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
12099
12100         * gtk/testtext.c (fill_example_buffer): Put the cursor 
12101         at the start of the buffer, so search works by default
12102
12103         * gtk/gtktextiter.c (lines_match): init match_start always
12104
12105         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
12106         function, get iter at a line + a byte index
12107
12108         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
12109         to set byte position within a line
12110         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
12111
12112 2000-10-23  Havoc Pennington  <hp@redhat.com>
12113
12114         * gtk/testtext.c: Re-enable the "find" dialog
12115
12116         * gtk/testgtk.c: Add test for gdk_drawable_get_image
12117         
12118         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
12119         the arguments to gdk_draw_drawable were in the wrong order
12120         (gdk_window_paint_init_bg): This function was ignoring the
12121         init_region, instead of clipping to it, so the entire backing
12122         pixmap was cleared on every begin_paint()
12123         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
12124         was in here again, the loop kept using the same GtkWindowPaint
12125         over and over.
12126         (gdk_window_begin_paint_region): Fix a bug where we had two
12127         x_offset instead of x_offset and y_offset
12128
12129         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
12130         before we get the image.
12131         (gdk_draw_drawable): get the composite before we draw the drawable.
12132         (gdk_drawable_real_get_composite_drawable): default
12133         get_composite_drawable implementation that returns the drawable 
12134         itself
12135
12136         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
12137         get_composite_drawable virtual function
12138
12139         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
12140         list-walking bug
12141
12142         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
12143         make this work if the source drawable is a GdkDrawableImplX11
12144         instead of a public drawable type. This is really broken; the
12145         problem is that GdkDrawable needs a virtual method get_xid(), but
12146         of course that doesn't work in practice. Enter RTTI.
12147
12148         Also, improve mismatched depth message.
12149
12150         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
12151         GdkPixmap
12152
12153         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
12154         install _gdk_x11_get_image as our implementation of get_image
12155         
12156         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
12157         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
12158
12159         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
12160         gdk_drawable_get_image
12161
12162         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
12163
12164         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
12165         get_image
12166
12167         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
12168         trailing semicolon after for loop
12169
12170 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
12171
12172         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
12173         where font_desc for widget's context lagged widget's font_desc by
12174         one step.
12175
12176 2000-10-22  Tor Lillqvist  <tml@iki.fi>
12177
12178         * gdk/win32/gdkgc-win32.c
12179         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
12180
12181         * gtk/makefile.mingw.in
12182         * gtk/gtk.def: Updates.
12183
12184         * gtk/testgtk.c: sleep() is called _sleep in MS's C
12185         library.
12186
12187         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
12188
12189         * gtk/makefile.msc: Remove
12190
12191         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
12192
12193         * gtk/Makefile.am: Add it.
12194
12195         * configure.in: Generate it.
12196
12197         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
12198         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
12199         something even if not implemented, to satisfy picky MSVC.
12200
12201         Patches by Hans Breuer:
12202         
12203         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
12204         SetBkMode() and SetTextAlign() before calling
12205         pango_win32_render().
12206
12207         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
12208         Set hcliprgn to NULL after destroying it.
12209         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
12210
12211         * gdk/win32/gdkgeometry-win32.c
12212         (_gdk_windowing_window_queue_antiexpose): More effective
12213         implementation.
12214
12215         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
12216         depth as default, not the visual's.
12217
12218         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
12219         against empty title.
12220
12221         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
12222         IMAGE_PRIVATE_DATA.
12223
12224         * gdk/win32/gdkimage-win32.c: Use it.
12225
12226 2000-10-22  Robert Brady  <robert@suse.co.uk>
12227
12228         * configure.in: Check for bind_textdomain_codeset
12229
12230         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
12231         present, make use of it.
12232
12233         Add a translatable string "default:LTR" which, if translated
12234         to "default:RTL", will cause the default direction to be
12235         Right-to-Left.
12236
12237         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
12238         direction if marked as flippable.
12239
12240         * gtk/gtkhscale.c: Mark widget as flippable.
12241         
12242 2000-10-04  Havoc Pennington  <hp@redhat.com>
12243
12244         * gtk/testgtk.c (create_buttons): create some stock buttons
12245         with the default accel group
12246         (create_image): test some new GtkImage features
12247         (make_message_dialog): test GtkMessageDialog
12248         (create_modal_window): fix someone's bizzarro indentation
12249
12250         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
12251         GTK_WIN_POS_CENTER_ON_PARENT. 
12252         Add "destroy with parent" setting, which means the window goes
12253         away with its transient parent.
12254         (gtk_window_get_default_accel_group): get the default accel group
12255         for the window.
12256         (gtk_window_set_destroy_with_parent): set/unset destroy with
12257         parent flag
12258         (gtk_window_read_rcfiles): invalidate icon set caches
12259         after reloading rcfiles 
12260
12261         * gtk/gtkenums.h (GtkWindowPosition): add
12262         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
12263         on its parent window when the dialog is mapped for the first time.
12264
12265         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
12266         a simple message dialog class
12267         
12268         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
12269         handler to emit response signal, and maybe later it would
12270         honor a hide_on_delete flag - though that isn't there yet.
12271         Set border width on the vbox to 2, so we get some padding.      
12272         Use a button box for the action area.
12273         (gtk_dialog_key_press): synthesize a delete event if Esc
12274         is pressed and the GtkWidget key press handler didn't 
12275         handle the escape key.
12276         (gtk_dialog_new_with_buttons): new function creates a dialog
12277         with some default buttons in it.
12278         (gtk_dialog_add_action_widget): add an activatable widget
12279         as a button in the dialog - you can also add a non-activatable
12280         widget by accessing the action area directly.
12281         (gtk_dialog_add_button): add a simple button - stock ID or 
12282         label - to the action area
12283         (gtk_dialog_response): emit response signal
12284         (gtk_dialog_run): block waiting for the dialog, return 
12285         the response. Override normal delete_event behavior, so that 
12286         delete_event does nothing inside gtk_dialog_run().
12287
12288         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
12289         emitted when an action widget is clicked or the dialog gets
12290         delete_event
12291
12292         * gtk/gtk.h: add gtkmessagedialog.h
12293
12294         * gtk/Makefile.am: add gtkmessagedialog.[hc]
12295
12296 2000-10-18  Havoc Pennington  <hp@redhat.com>
12297
12298         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
12299         where any number of empty lines would get skipped
12300
12301         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
12302         edge.
12303
12304         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
12305         warning about invalid iterators (explain more thoroughly)
12306         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
12307
12308         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
12309         big
12310
12311         * demos/*.c: Add error handling
12312
12313         * gtk/gtktextbuffer.c: don't modify const iterators
12314
12315         * gtk/gdk-pixbuf-loader.c: Add full error handling here
12316
12317         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
12318         on file load
12319
12320         * gtk/gtkiconfactory.c: Update to reflect addition of error
12321         handling to gdk-pixbuf loaders
12322
12323 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
12324
12325         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
12326         move to new modularized testgtk.
12327
12328 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
12329
12330         * gtk/gtktreeview.c: Draw the arrows correctly.
12331
12332         * gtk/gtktreemodel.c: Added user docs.
12333
12334         * gtk/gtk.h: remove gtktreedatalist.h.
12335
12336         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
12337         parent when generating my type.
12338
12339         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
12340         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
12341
12342 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
12343
12344         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
12345         GtkTreeModel from object to interface.
12346
12347 2000-10-16  Havoc Pennington  <hp@redhat.com>
12348
12349         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
12350         compilation
12351
12352 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
12353
12354         * gtk/gtktreeselection.c: Add API documentation to all public
12355         functions.
12356
12357         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
12358         functions.
12359
12360 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
12361
12362         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
12363         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
12364         docs to all public functions.
12365
12366         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
12367         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
12368         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
12369         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
12370         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
12371         issue.
12372
12373 2000-10-14  Robert Brady  <robert@suse.co.uk>
12374
12375         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
12376
12377 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
12378
12379         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
12380         values other then G_TYPE_STRING.
12381         * gtk/gtktreeselection.c: Minor commenting updates.
12382         * gtk/gtktreeview.c: Format updates.
12383
12384 2000-10-09  Tor Lillqvist  <tml@iki.fi>
12385
12386         * README.win32: Update.
12387
12388         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
12389         lines that had been deleted by mistake (?).
12390
12391         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
12392         also the case fg==white and bg==black (but still not randomly
12393         coloured cursors). Thanks to Wolfgang Sourdeau.
12394
12395         * gdk/win32/*.c: Silence gcc -Wall.
12396
12397         * gtk/gtk.def: Add missing entry points.
12398
12399         Fixes by Hans Breuer:
12400
12401         * gdk/makefile.msc
12402         * gdk/win32/makefile.msc: Update.
12403
12404         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
12405         some MSVC thing, presumably), cause breakpoint on failures. Add
12406         GDK_NOR case. Call g_log_set_always_fatal.
12407
12408         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
12409         should be pased by reference.
12410         
12411         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
12412         
12413         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
12414
12415         * gdk/win32/gdkevents-win32.c
12416         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
12417
12418         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
12419         implementation object.
12420
12421         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
12422         not just windows.
12423         
12424         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
12425         Use the wrapper object.
12426         
12427 2000-10-06  Havoc Pennington  <hp@redhat.com>
12428
12429         * Makefile.am (SRC_SUBDIRS): contrib subdir
12430
12431         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
12432         so it can be used in Xlib version
12433
12434         * demos/testpixbuf.c (update_timeout): error checking from 1.0
12435         tree
12436
12437         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
12438         change from 1.0 tree that returns first frame of animation
12439         if the loaded file is an animation.
12440
12441         * contrib: add new directory to hold stuff that comes with GTK+
12442         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
12443         
12444         * configure.in: add contrib/*
12445
12446 2000-10-05  Havoc Pennington  <hp@redhat.com>
12447
12448         * demos/testpixbuf-save.c: add pixbuf save test
12449
12450         * demos/Makefile.am: add testpixbuf-save.c
12451
12452 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
12453
12454         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
12455         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
12456         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
12457         * gtk/gtktreeselection.[ch]: Replaced
12458         "node_selected"/"node_unselected" signal with "selection_changed"
12459         signal.
12460
12461 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
12462
12463         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
12464         tree widget.
12465
12466 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
12467
12468         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
12469         drawing.
12470
12471 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
12472
12473         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
12474         Move list pointer forwards before removing item from
12475         list. (Crash reported by Salmaso Raffaele)
12476
12477         * gdk/gdkwindow.h: Remove spurious trailing ,
12478
12479         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
12480         dependencies on uninstalled libraries, sorry folks.
12481
12482 2000-10-04  Havoc Pennington  <hp@redhat.com>
12483
12484         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
12485         gtk/gtkiconfactory.c: Fix copyrights    
12486
12487         * demos/testpixbuf.c: add inline pixbuf test
12488         
12489 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
12490
12491         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
12492         Add gdk_window_iconify.
12493
12494         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
12495         (gdk_window_set_geometry_hints): Add win_gravity
12496         to geometry structure.
12497
12498         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
12499         Implement _NET_WM_PING.
12500
12501         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
12502         Set _NET_WM_PID on the client leader.
12503
12504         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
12505         Handle UTF-8 better.
12506
12507         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
12508         UTF-8 better, set _NET_WM_NAME as well. Only set
12509         icon name if it hasn't previously been explicitely 
12510         set.
12511
12512 2000-10-03  Havoc Pennington  <hp@redhat.com>
12513
12514         * gtk/testtextbuffer.c: clean up trailing whitespace,
12515         add extensive tests for tag toggle iteration.
12516         
12517         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
12518         distance
12519
12520         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
12521         optimize case where the tag root is on level 1
12522         (gtk_text_line_previous_could_contain_tag): attempt to implement
12523         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
12524         functionality
12525
12526         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
12527         Implement this, though not very efficiently.
12528
12529         * gtk/gtktextiterprivate.h: reformat
12530
12531         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
12532         iterator
12533
12534         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
12535         this to properly revalidate the iterators.
12536
12537         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
12538         properly at the end of the line (and therefore on empty lines)
12539
12540         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
12541         maybe we should return a value...
12542
12543 2000-10-03  Tor Lillqvist  <tml@iki.fi>
12544
12545         * config.h.win32: Guard definition of alloca(). glib.h now handles
12546         that.
12547
12548         * gdk/gdk.def
12549         * gtk/gtk.def: Add new entry points.
12550
12551         Changes just to make GTK+ build without errors on Win32. No hope
12552         of it working in its current state, though...:
12553         
12554         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
12555         some functions from the X11 backend, just to make GTK+ build.
12556
12557         * gdk/makefile.mingw.in
12558         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
12559         number. Add new object files.
12560
12561         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
12562         GetMessageTime to get timestamp (where on X11 uses
12563         gdk_x11_get_server_time()).
12564
12565 2000-10-02  Havoc Pennington  <hp@pobox.com>
12566
12567         * gtk/gtktextview.c: text_window_* weren't static and should have
12568         been.
12569         Start work on child widgets; not yet complete, syncing to 
12570         office computer.
12571
12572         * gtk/gtktextchild.h: change this to contain a public interface,
12573         starting work on child interfaces.
12574         * gtk/gtktextchildprivate.h: move private interfaces here
12575
12576         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
12577
12578         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
12579         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
12580         gtk/gtktextmark.c: copyright notices
12581
12582         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
12583         internal functions      
12584
12585         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
12586         internal function
12587
12588         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12589         Reformatting    
12590
12591 2000-09-30  Havoc Pennington  <hp@pobox.com>
12592
12593         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
12594         NULL start/end pointers
12595
12596         * gtk/gtktextbuffer.c: Write some docs
12597         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
12598         NULL, so you can just check whether there's a selection.        
12599
12600         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
12601         cleanup_line or segments_changed ourselves, it gets done 
12602         in unlink_segment
12603
12604         * gtk/gtktextmark.h:
12605         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
12606         
12607         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
12608
12609         * gtk/gtktextmark.c: delete some more old Tk cruft
12610
12611         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
12612         mark before removing it, so we can emit MARK_DELETED with a valid
12613         pointer.
12614         (gtk_text_buffer_mark_set): hold ref across signal emission
12615
12616         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
12617         whining about attempts to delete special marks
12618
12619         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
12620         underscore, since it's internal.
12621
12622         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
12623         now implemented in terms of iterators in gtktextiter.h
12624
12625         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
12626         New function, destructively sets contents of buffer. Also 
12627         a convenient way to clear the buffer by setting text to ""
12628
12629         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
12630         multiline string literal
12631
12632         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
12633         text changes.
12634
12635         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
12636         is not dereferenceable
12637         (gtk_text_iter_forward_lines): fix return value
12638
12639 2000-09-29  Havoc Pennington  <hp@redhat.com>
12640
12641         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
12642
12643         * gtk/gtktextview.c: Implement drag thresholding; change functions 
12644         that set border window size to have nicer name
12645         (gtk_text_view_mark_set_handler):  Fix this to have the 
12646         right signature.
12647
12648         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
12649
12650         * gtk/testtext.c: Update with API changes, put line numbers on 
12651         both sides.
12652         
12653         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
12654         with this
12655
12656         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
12657         pixbuf; delete a big block of #if 0 Tk code
12658
12659         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
12660         insert_pixmap with insert_pixbuf
12661
12662 2000-09-29  Martin Baulig  <baulig@suse.de>
12663
12664         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
12665         confusion with the GdkPixbuf of the GNOME 1.x platform.
12666
12667 2000-09-29  Havoc Pennington  <hp@pobox.com>
12668
12669         * gtk/gtktextview.c: Implement the side windows.
12670
12671         * gtk/testtext.c: Implement simple line numbering in the 
12672         left side window; seems to make scrolling sloooow. Oops.
12673         Also, cursor blink is for some reason causing redraws
12674         of the line numbers. Should investigate...
12675
12676 2000-09-28  Havoc Pennington  <hp@redhat.com>
12677
12678         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
12679         scrolling child windows, and draw focus rectangle properly.
12680         
12681         (gtk_text_view_buffer_to_window_coords):
12682         Coordinate transformation to deal with all these freaking windows
12683         and offsets
12684         (gtk_text_view_window_to_buffer_coords): transform the other way
12685
12686         * gtk/testtext.c (create_buffer): Update to match Pango API change
12687
12688         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
12689         anonymous tags
12690         (foreach_unref): don't emit remove signal from finalize, just
12691         set tag's parent to NULL
12692
12693 2000-09-26  Havoc Pennington  <hp@redhat.com>
12694
12695         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
12696         Fix some warnings       
12697
12698 2000-09-26  Havoc Pennington  <hp@redhat.com>
12699
12700         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
12701         headers into the private header list
12702
12703         * Makefile.am (pkgconfig_DATA): install pkg-config files
12704
12705         * configure.in: add pkg-config files
12706
12707         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
12708
12709         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
12710         outstanding icon caches on theme change.
12711
12712         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
12713         important types:
12714
12715         (GtkIconSource): Specification for creating a pixbuf 
12716         appropriate for a direction/state/size triplet from 
12717         a source pixbuf or filename
12718
12719         (GtkIconSet): List of GtkIconSource objects that are used to
12720         create the "same" icon (e.g. an OK button icon), and cache for
12721         rendered icons
12722
12723         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
12724         up the icon set for a given stock ID.  GTK maintains a stack of
12725         GtkIconFactory to search, and applications or libraries can add
12726         additional icon factories on top of the stack
12727         
12728         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
12729         the set of GtkIconSource specified for a given stock ID into 
12730         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
12731         RcStyle, under the specified stock ID.
12732
12733         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
12734         render_icon used to derive a GdkPixbuf from a GtkIconSource.
12735         This allows people to theme how prelight, insensitive, etc. are
12736         done.
12737
12738         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
12739         icon factories for a style, and return the resulting 
12740         icon set if any.
12741
12742         (gtk_style_render_icon): Render an icon using the render_icon 
12743         method in the GtkStyleClass.
12744
12745         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
12746         Use the style for a given widget to look up a stock ID, get the
12747         icon set, and render an icon using the render_icon method 
12748         of the style
12749
12750         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
12751         (contains information about a stock item), the built-in stock item
12752         IDs, and functions to add/lookup stock items.
12753
12754         * gtk/stock-icons/*: Stock icons that come with GTK
12755
12756         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
12757         a button based on a GtkStockItem
12758         (gtk_button_new_accel): Takes a uline string and accel group, and
12759         installs the accelerator.
12760
12761         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
12762         image-display widget.
12763
12764 2000-09-25  Havoc Pennington  <hp@redhat.com>
12765
12766         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
12767
12768         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
12769         Fix a bug when removing node data, we didn't properly 
12770         re-splice the linked list after removing the data.
12771
12772         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
12773         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
12774
12775         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
12776
12777         * gtk/gtktextlayout.c (set_para_values): Set tab array 
12778         for the layout from the GtkTextTag.
12779
12780         * gtk/gtktexttypes.h: delete tab and search cruft, 
12781         remove g_convert() in favor of GLib version
12782
12783         * gtk/gtktexttypes.c: remove tab implementation from here,
12784         move to Pango
12785
12786         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
12787         tab stuff using new PangoTabArray from Pango
12788
12789         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
12790         unused border_width stuff
12791
12792 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
12793
12794         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
12795         glib) and now useless utf_to_latin1() latin1_to_utf()
12796
12797         * gtk/gtktextview.[ch]: Change ::move_insert and
12798         ::delete_text action signals to ::move and ::delete;
12799         create the signals with the right enumeration type,
12800         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
12801         C-v bindings, change Home, End to move to beginning/end
12802         of line, Add C-Home C-End to move to beginning/end
12803         of buffer. Change ::cut_text to ::cut_clipboard, etc;
12804         combine ::scroll_text into ::move; use new GtkSelectionData
12805         functions to simplify DND text handling.
12806         
12807         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
12808         deletion enumerations here, rename enumeration values to 
12809         be consistently plural.
12810
12811         * gtk/gtktextbuffer.c: Use new clipboard interfaces
12812         for cut/copy/paste and primary selection.
12813
12814         * gtk/gtktextbuffer.[ch]: Remove excess time and
12815         'interactive' arguments from cut/copy/paste;
12816         rename cut to cut_clipboard, etc; remove
12817         gtk_text_buffer_get_clipboard_contents().
12818
12819         * gtk/gtktextlayout.[ch]: Add 
12820         gtk_text_layout_move_iter_to_line_end() to move the iter to 
12821         line ends.
12822
12823         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
12824         Functions to set or get a UTF-8 string on the selection
12825         data.
12826
12827         * gtk/gtkclipboard.[ch]: New, simplified selection handling
12828         interfaces.
12829
12830         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
12831         created widgets - one of these is useless if we don't.
12832
12833         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
12834         a public function clear all targets registered for the
12835         widget.
12836
12837         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
12838         Never call gtk_widget_realize() - that was just asking
12839         for bizarre side-effects.
12840
12841         * gtk/gtkselection.c (gtk_selection_owner_set): Call
12842         gdk_selection_owner_set even if the widget is the
12843         same so that we reliably update the timestamp on
12844         the server.
12845
12846         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
12847         gdk_x11_get_server_time() function.
12848         
12849         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
12850         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
12851         Add some tricky filtering on serial numbers for
12852         selection clear events to fix up long-standard
12853         race condition FIXME's in gtkselection.c.
12854
12855         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
12856         routines to convert from utf8 to compound text or
12857         STRING and from a text property to UTF-8.
12858
12859         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
12860         a convenience function gdk_get_current_event_time().
12861
12862         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
12863         and free selection_data->data properly
12864
12865 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
12866
12867         * gtk/gtkthemes.c: Remove some unecessary includes.
12868
12869 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
12870
12871         * gtk/gtktextdisplay.c
12872         * gtk/gtktextlayout.c
12873         * gtk/gtktexttag.c
12874         * gtk/gtktexttag.h
12875         * gtk/testtext.c: Change the overstrike property to strikethrough,
12876         to closer match pango.
12877
12878 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
12879
12880         * gtk/gtktextview.c: Fix up visibility so that focus,
12881         cursor_visible and blink interact properly.  Reenable cursor blink
12882         which had been roughly disabled. Make blink and focus
12883         properly per-view.
12884
12885         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
12886         Add a flag for whether to display insertion cursor and
12887         a function to set the flag.
12888
12889         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
12890         get_line_y() to get_line_yrange(), to be a bit more generally
12891         useful.
12892
12893 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
12894
12895         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
12896           do stop_navigating_submenu, to clear last timeout properly.
12897           Also in gtk_menu_motion_notify move ignore_enter above
12898           the conditional to make it always happen as suggested by Owen
12899
12900 2000-09-07  Tor Lillqvist  <tml@iki.fi>
12901
12902         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
12903
12904         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
12905         w32api headers.
12906
12907         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
12908         declarations.
12909
12910         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
12911         (gdk_win32_get_colormap): A line had been deleted by mistake.
12912
12913         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
12914         (gdk_event_translate): Handle more virtual keycodes to be able to
12915         generate GDK events for Control-comma, Control-period, etc.
12916
12917         * gtk/gtk.def: Add some missing entry points.
12918
12919 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
12920
12921         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
12922         Doc comment fixing. (Mostly non-matching parameter names.)
12923
12924         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
12925         comments a little to avoid looking like a doc comment.
12926
12927         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
12928         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
12929         conversions be changed to GError?)
12930
12931         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
12932         Move private #defines into .c file.
12933
12934         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
12935         order of argument addition, remove duplicates.
12936
12937         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
12938         parent class is FrameClass, not BinClass.
12939
12940         * gtk/gtk.h: Add gtkinvisible, which was missing.
12941         (It's occasionalyl useful for client apps, if seldom.)
12942
12943         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
12944         #define.
12945
12946 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
12947
12948         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
12949         coordinates when creating window, instead of GDK-space
12950         coordinates. (Avoid BadValue on too large windows.)
12951
12952 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
12953
12954         * configure.in (use_mmx_asm): Remove conftest* after use along the
12955         lines of AC_TRY_COMPILE.        
12956         
12957         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
12958         of g_dirname, which is deprecated.
12959         (gtk_rc_parse_any): Removed calls to
12960         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
12961
12962         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
12963         Removed calls to g_hash_table_{freeze,thaw}, as they are
12964         deprecated now.
12965
12966         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
12967         instead of g_basename.
12968         
12969 2000-09-04 Elliot Lee <sopwith@redhat.com>
12970         
12971         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
12972         ANSI warning.
12973
12974 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
12975
12976         * gtk/gtkwidget.h:  Add some documenting comments about 
12977           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
12978           just as owen said on irc.
12979
12980         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
12981           set HAS_DEFAULT.  Only set it if there isn't another window
12982           holding it (a focus window which RECEIVES_DEFAULT) and only unset
12983           it if the widget is not the focused window with RECEIVES_DEFAULT.
12984           This fixes weird double default bugs in dialogs which has things
12985           call gtk_window_set_default at times.
12986
12987 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
12988
12989         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
12990         Nils Barth and David Santiago to improve submenu
12991         navigation. The patch does this by creating a triangular
12992         region from the point where the pointer leaves the
12993         menu to the submenu.  While the pointer is in
12994         that region and a timeout has not expired, events 
12995         that would cause the active submenu to change are
12996         ignored.
12997
12998 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
12999
13000         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
13001         moving a toplevel window immediately after sizing it would
13002         result in it being sized back to the old size since 
13003         impl->width, impl->height aren't updated until we hear
13004         back from the server. There is still a (longstanding) bug
13005         here that gdk_window_get_size() will give the wrong size
13006         until we do hear back.
13007
13008 2000-08-31  Havoc Pennington  <hp@redhat.com>
13009
13010         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
13011         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
13012         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
13013         Rename GtkTextStyleValues to GtkTextAttributes
13014
13015 2000-08-31  Havoc Pennington  <hp@pobox.com>
13016
13017         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
13018         for rapid testing whether an iterator is the end iterator
13019         (gtk_text_btree_new): init end line cache
13020         (gtk_text_line_is_last): use fast cached line to 
13021         see if we're the last line.
13022         (get_last_line): use cached line here too, should 
13023         speed up some random unrelated code.
13024         
13025 2000-08-30  Havoc Pennington  <hp@pobox.com>
13026
13027         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
13028         signals.
13029
13030         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
13031         delete_text signals. This allows the signals to be used for
13032         implementing undo.
13033
13034         * gtk/gtktextbuffer.c: Change signal handler signatures; 
13035         provide "interactive" argument when emitting insert_text or
13036         delete_text signal.
13037         
13038 2000-08-30  Havoc Pennington  <hp@pobox.com>
13039
13040         * gtk/gtktextbuffer.c: Docs
13041
13042 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
13043
13044         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
13045         from switch statements, since Tor removed the enumeration
13046         value.
13047         
13048         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
13049         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
13050
13051 2000-08-29 Elliot Lee <sopwith@redhat.com>
13052         * */*.h: Use G_GNUC_CONST.
13053
13054 2000-08-27  Havoc Pennington  <hp@pobox.com>
13055
13056         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
13057         minor indentation fixes, inserted some FIXME about stuff I
13058         realized was broken while documenting it.
13059         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
13060         GTK convention  
13061
13062 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
13063
13064         * gtk/testgtk.c (create_styles): Fix double free of
13065         font desc.
13066
13067 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
13068
13069         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
13070         
13071         * gtk/testgtk.c (create_styles): Add a test for modifying
13072         the style through gtk_widget_modify_*.
13073
13074         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
13075         a function to get the current modifier style.
13076
13077         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
13078         of the passed in GtkRcStyle instead of ref'ing it.
13079
13080         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
13081
13082 2000-08-20  Tor Lillqvist  <tml@iki.fi>
13083
13084         * gdk/gdkimage.h
13085         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
13086         shared memory image+pixmap GdkImage type, or
13087         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
13088         I am dropping that.
13089
13090         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
13091         actually call gtk_init_abi_check(), passing also
13092         sizeof(GtkWindow). Ditto for gtk_init_check(). 
13093
13094         * gtk/gtk.def
13095         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
13096         New functions, used to check that the GTK+-using code has been
13097         compiled using the correct compiler and switches. In particular,
13098         with gcc one has to use the -fnative-struct switch as GTK+ is
13099         compiled with that.
13100
13101 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
13102
13103         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
13104         ->prev fields when merging lists. (Found simultaneously
13105         by Pawel Salek and Jakub Jelinek)
13106
13107 2000-08-12  Tor Lillqvist  <tml@iki.fi>
13108
13109         * gdk/gdk.def
13110         * gtk/gtk.def: Add missing entries.
13111
13112         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
13113         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
13114
13115         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
13116         function. Dummy implementation at this point.
13117
13118         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
13119         rules. Undefine GTK_COMPILATION when compiling the test programs.
13120         
13121         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
13122
13123 2000-08-11  Tor Lillqvist  <tml@iki.fi>
13124
13125         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
13126         to convert back and forth from UTF-8 and the "system" (or "current
13127         locale") charset when necessary. Indentation/spacing cleanup.
13128
13129 2000-08-10  Havoc Pennington  <hp@redhat.com>
13130
13131         * Makefile.am (snapshot): Change the format of the snapshot
13132         version to match glib
13133
13134         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
13135         from EXTRA_DIST since it doesn't seem to exist
13136
13137 2000-08-10  Tor Lillqvist  <tml@iki.fi>
13138
13139         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
13140         version of the directory name (not the UTF-8 one) when building
13141         the path name to stat().
13142
13143 2000-08-03  Elliot Lee  <sopwith@redhat.com>
13144
13145         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
13146         PANGO_ATTR_SHAPE set.
13147
13148 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
13149
13150         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
13151         Peter Osterlund to simplify the code while keeping the
13152         functionality the same.
13153
13154 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
13155
13156         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
13157         is_viewable() test further inside the function, since removing the 
13158         window from the redraw list without clearing ->update_area
13159         was also very broken.
13160
13161 2000-08-02  Tor Lillqvist  <tml@iki.fi>
13162
13163         * configure.in: Check for <unistd.h>.
13164
13165 2000-08-01  Martin Baulig  <baulig@suse.de>
13166
13167         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
13168         to display the message that this is a development version of GTK+.
13169
13170 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
13171
13172         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
13173         was depending on widget->allocation instead of the width of text_area,
13174         which was incorrect for subclasses like GtkSpinButton.
13175
13176         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
13177         with width == 1 tests that should be width == -1.
13178
13179 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
13180
13181         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
13182         (broken, Elliot, every single window blank on X) custom code with call
13183         to gdk_window_is_viewable() which a) prevents code duplicate and
13184         b) works. 
13185
13186 2000-07-31  Elliot Lee  <sopwith@redhat.com>
13187
13188         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
13189         to get the GDK_PARENT_ROOT() macro to work.
13190         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
13191         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
13192         of, windows that aren't shown.
13193         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
13194         pointer grab stuff.
13195
13196 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
13197
13198         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
13199           s/gtk_main_iteration/g_main_iteration/
13200
13201           Did this already in change:
13202                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
13203           don't know how it got reverted.
13204
13205 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
13206
13207         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
13208         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
13209
13210         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
13211         not gdk_pixbuf.
13212
13213 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
13214
13215         * configure.in,po/{sp,sr}.po: Added Serbian files
13216
13217 2000-07-30  Tor Lillqvist  <tml@iki.fi>
13218
13219         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
13220
13221         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
13222         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
13223         GIOChannel implementation.
13224
13225         * gdk/win32/gdkinput.c
13226         * gdk/win32/gdkpango-win32.c: Update license name here, too.
13227
13228         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
13229         definition to match prototype.
13230
13231         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
13232
13233 2000-07-27  Elliot Lee  <sopwith@redhat.com>
13234
13235         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
13236         function, to allow handling image formats that cannot be detected
13237         by looking at content alone.
13238
13239 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
13240
13241         * docs/tutorial/*.gif *.jpg *.eps
13242           Update these to the same look-n-feel.
13243           Why does including images in DocBook suck so badly?
13244
13245 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
13246
13247         * gtk/gtktable.c: applied patch from Phil Thompson
13248         <phil@river-bank.demon.co.uk> that enables space settings for
13249         the last row/columns as well.
13250
13251 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
13252
13253         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
13254         updates the license headers to the GNU Lesser General Public License,
13255         as well as updating the copyright year to 2000.
13256
13257 2000-07-26  Robert Brady  <rwb197@zepler.org>
13258
13259         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
13260           and po/Makefile, was installing and looking for them under gtk20
13261           and gtk2 respectively.
13262
13263 2000-07-25  Havoc Pennington  <hp@redhat.com>
13264
13265         * gtk/testtext.c: Comment out some stuff that depends on the rest
13266         of my patches.
13267
13268 2000-07-25  Havoc Pennington  <hp@redhat.com>
13269
13270         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
13271         buffer
13272
13273 2000-07-25  Havoc Pennington  <hp@redhat.com>
13274
13275         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
13276         widget changes.
13277
13278         * gtk/gtktextview.h: To be consistent with usage of "line"
13279         throughout the API to mean "newline-terminated thingy", change
13280         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
13281         to MOVEMENT_LINE.
13282
13283         (GtkTextView): Add flags for default editability, and whether to
13284         show the cursor. Add functions to get/set that. Add 
13285
13286         (gtk_text_view_get_iter_location): new function
13287
13288         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
13289         gtktextlayout.h
13290         (g_convert): Add g_convert temporarily, will go in glib in a bit
13291         
13292         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
13293         GtkTextTagTableForeach instead of brokenly using GHFunc.
13294         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
13295
13296         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
13297         moved to public header.
13298
13299         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
13300         "invisible", since "elide" was a bad name.
13301         (gtk_text_tag_get_priority): Added
13302
13303         (GtkTextStyleValues): put this in public header, along with
13304         functions to use it.
13305
13306         * gtk/gtktextmarkprivate.h: Include more headers, since we no
13307         longer include gtktextbtree.h.
13308
13309         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
13310         gtk_text_mark_deleted
13311
13312         * gtk/gtktextlayout.h: Don't include the "really private" headers,
13313         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
13314         to make this possible. Now we only need to install
13315         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
13316         (However the Makefile.am isn't changed yet because of the
13317         logistics of merging gtk-hp-patches piecemeal)
13318
13319         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
13320         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
13321         gtk_text_iter_get_line is now used in the public API for a
13322         different purpose.
13323
13324         * gtk/gtktextiter.h: Clean up function names to be more
13325         consistent. Always call char offset "offset" and byte index
13326         "index". A "line" is always a line number. 
13327
13328         (gtk_text_iter_is_last): new function, more efficient than 
13329         the existing way to check
13330         (gtk_text_iter_is_first): new function, also more efficient
13331
13332         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
13333
13334         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
13335         gtk_text_iter_forward_char, etc.
13336
13337         (gtk_text_iter_forward_to_tag_toggle): Renamed from
13338         forward_find_tag_toggle, since this isn't a linear search
13339
13340         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
13341
13342         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
13343         New functions, search for a buffer substring.
13344
13345         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
13346         interactive and default editable (since we need to store that info
13347         until we receive the selection data).
13348
13349         Remove all the _at_char and at_line etc. versions of functions;
13350         only have iterator versions.
13351
13352         Add _interactive() versions of functions, that consider the
13353         editability of text. (FIXME add interactive flag to the 
13354         insert/delete signals per Darin's suggestion)
13355
13356         (gtk_text_buffer_get_tag_table): new function, demand-creates the
13357         tag table if necessary
13358
13359         Remove declaration of gtk_text_buffer_get_iter_from_string
13360
13361         (_gtk_text_buffer_get_btree): private/internal function, added.
13362         
13363
13364         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
13365         (gtk_text_line_is_last): new function
13366
13367 2000-07-25  Havoc Pennington  <hp@redhat.com>
13368
13369         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
13370         using GtkProgressBar. See Changes-2.0.txt for details.
13371
13372         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
13373         "pulse_step" which are the equivalent of
13374         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
13375         Implement new API.
13376         
13377         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
13378         (use_text_format) to mark whether text set on the progress bar is
13379         a format string. Deprecate entire GtkProgress interface.
13380
13381         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
13382         (gtk_progress_build_string): make this a no-op if use_text_format
13383         is FALSE
13384
13385         * docs/Changes-2.0.txt: Describe progress bar changes.
13386
13387 2000-07-25  Tor Lillqvist  <tml@iki.fi>
13388
13389         * Makefile.am: Include the build directory.
13390
13391         * configure.in: Generate build/Makefile, build/win32/Makefile,
13392         gdk/, gdk/win32/, and gtk/makefile.mingw.
13393
13394         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
13395         Add GETTEXT_PACKAGE.
13396         
13397         * gdk/gdk.def
13398         * gtk/gtk.def: Updates.
13399
13400         * gdk/gdkfont.h
13401         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
13402         need them any longer.
13403
13404         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
13405
13406         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
13407         PANGOWIN32_LIBS and gdk_pixbuf.
13408
13409         * gdk/win32: Compiles, but no doubt doesn't work at all.
13410
13411         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
13412
13413         * gdk/win32/gdkinput.c: New file, temporarily.
13414         
13415         * gdk/win32/gdkinput-win32.h: New file
13416
13417         * gdk/win32/gdkinputprivate.h: Remove.
13418
13419         * gdk/win32/gdkpango-win32.c: New file.
13420
13421         * gtk/makefile.mingw.in: New file
13422
13423         * gtk/makefile.cygwin: Removed
13424         
13425         * gtk/Makefile.am: Update accordingly.
13426
13427         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
13428         made externally visible.
13429
13430         * gtk/gtkmain.c: Use it.
13431         
13432         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
13433         is enough.
13434
13435         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
13436
13437 2000-07-24 Elliot Lee <sopwith@redhat.com>
13438         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
13439         individual backends already.
13440         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
13441         again. Yes, there really is a good reason for this, if you are using the gdkregion
13442         internals, and if you're not, why do you care?
13443         * gdk/gdkwindow.c: Fix inverted condition
13444         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
13445         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
13446         * gtk/gtkrange.c: Redraw trough when moving.
13447         * gtk/gtktypeutils.c: Fix warning by adding const cast.
13448         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
13449
13450 2000-07-23  Tor Lillqvist  <tml@iki.fi>
13451
13452         * configure.in: Check for mkstemp and sigsetjmp. Output
13453         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
13454
13455         More work on GDK for Win32. Still in an intermediate state.
13456
13457         * gdk/makefile.cygwin
13458         * gdk/win32/makefile.cygwin: Removed.
13459         
13460         * gdk/makefile.mingw.in
13461         * gdk/win32/makefile.mingw.in: New files.
13462
13463         * gdk/Makefile.am
13464         * gdk/win32/Makefile.am: Generate and distribute them.
13465
13466         * gdk/win32/gdkwindow-win32.h
13467         * gdk/win32/gdkdrawable-win32.h
13468         * gdk/win32/gdkpixmap-win32.h: New files.
13469
13470         * gdk/win32/gdkcolor-win32.c
13471         * gdk/win32/gdkcursor-win32.c
13472         * gdk/win32/gdkdrawable-win32.c
13473         * gdk/win32/gdkgc-win32.c
13474         * gdk/win32/gdkimage-win32.c
13475         * gdk/win32/gdkprivate-win32.h
13476         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
13477         Rename fields and variables called xcursor, xid, etc (these names
13478         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
13479
13480 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
13481
13482         * gtk/gtkentry.[ch]: Fix some problems with vertical
13483         alignment.
13484
13485         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
13486         char/byte confusion.
13487
13488 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
13489
13490         * gtk/gtktextview.c (changed_handler): Fix bug where
13491         redraw wasn't being done properly when height of
13492         dirty region changed.
13493
13494         * demos/Makefile.am: Remove various references to
13495         -lgmodule
13496
13497 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
13498
13499         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
13500         PangoAttrShape to reserve space for pixmaps, add 
13501         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
13502         in the display functions.
13503         
13504         * gtk/testgtk.c (create_layout): Set some more exotic
13505         scrolled window options
13506
13507         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
13508         Add function to set the shadow type of a window, to allow
13509         putting a shadow around widgets such as GtkLayout or GnomeCanvas
13510         which don't draw their own frame.
13511
13512 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
13513
13514         * docs/tutorial/package-db-tutorial.sh: New file for
13515           packaging DocBook format tutorial
13516
13517 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
13518
13519         * docs/tutorial/gtk-tut.sgml: Minor updates
13520
13521         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
13522
13523 2000-07-19  Tor Lillqvist  <tml@iki.fi>
13524
13525         * gtk/gtksignal.c: Fix C++ comment.
13526
13527         * gtk/gtkimmulticontext.c
13528         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
13529         don't return value from void functions.
13530
13531         * gtk/gtk.def: Add gtk_rc_style_unref.
13532
13533 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
13534
13535         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
13536         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
13537         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
13538         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
13539         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
13540         gtk/gtktypeutils.h: Include files outside of the extern "C"
13541         block. Makes some C++ compiler happy. Reported by Denis Vakatov
13542         <vakatov@peony.nlm.nih.gov>.
13543
13544 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
13545
13546         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
13547           Completes first pass. Hurrah!
13548
13549 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
13550
13551         * docs/tutorial/gtk-tut.sgml: More clean ups.
13552
13553 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
13554
13555         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
13556         paint the background of the text area which was accidentally
13557         removed at some point.
13558
13559         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
13560           
13561          - Move most of the functionality from the theme vtable
13562            into GtkRcStyleClass and GtkStyleClass. The moved
13563            vtable functions were changed a bit in the move to
13564            work better in their new home.
13565
13566          - Get rid of the engine and engine_data fields from
13567            GtkRcStyle and GtkStyle; instead the theme
13568            engine derives theme-specific subclasses of GtkRcStyle
13569            and GtkStyle
13570
13571          - Add extra dlsym() found entry point to themes,
13572            theme_create_rc_style().
13573
13574         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
13575         in gtk_style_real_copy.
13576
13577         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
13578         to register a type associated with an engine. (The engine
13579         won't be unloaded as there is an instance of the type.)
13580
13581
13582 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
13583
13584         * docs/tutorial/gtk-tut.sgml: Clean ups.
13585
13586 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
13587
13588         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
13589           of cleaning up to do.
13590
13591 2000-07-15  Tor Lillqvist  <tml@iki.fi>
13592
13593         * gdk/testgdk.c: New file, quick hack to test backends for
13594         pixel-by-pixel correctness of the most simple graphic operations.
13595
13596 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
13597
13598         * Really release 1.3.1
13599         
13600         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
13601         include structure.
13602
13603 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
13604
13605         * Released 1.3.1
13606
13607 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
13608
13609         * gtk/gtktextlayout.c: use FALSE for size_only most
13610         of the time when calling gtk_text_layout_get_line_display()
13611         to avoid causing double reshapes when a redraw follows
13612         immediately after.
13613
13614 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
13615
13616         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
13617         appropriate region and gdk_window_process_updates() so trough
13618         updating doesn't lag behind the window being scrolled.
13619
13620         * gdk/gdkgc.c: Make parent_class pointer static.
13621          
13622 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
13623
13624         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
13625         include <string.h>.
13626          
13627         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
13628         cut-and-paste error in computing memory offset for 4 channels.
13629
13630 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
13631
13632         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
13633         gtk_rc_append_default_pixmap_path(), since it wasn't
13634         adding an interesting path and we don't have a meaningful
13635         default for this value.
13636
13637 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
13638
13639         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
13640         gtk-config to gtk-config-2.0 move gtk_.m4 to
13641         gtk-2.0.m4
13642
13643         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
13644         gdk/Makefile.am demos/Makefile.am: Change 
13645         library names to libgtk-1.3.la, etc, so that we
13646         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
13647
13648         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
13649         gdk/Makefile.am gdk/x11/Makfile.am
13650         Move include files into /usr/include/gtk-2.0, 
13651         /usr/lib/gtk-2.0/include/
13652          
13653         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
13654         gtk/gtkintl.h: Change package for gettext from 
13655         gtk+ to gtk20. Put hack in autogen.sh to modify
13656         po/Makefile.in.in after gettextize to make this
13657         possible.
13658
13659         * gtk+.spec: Some updates, not tested.
13660
13661         * gdk-pixbuf/Makefile.am: Move loaders into
13662         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
13663
13664         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
13665         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
13666         to THEMENAME/gtk-2.0/. Move engine directory  to
13667         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
13668         
13669 2000-07-12  Tor Lillqvist  <tml@iki.fi>
13670
13671         Win32 changes, still doesn't build though.
13672
13673         * gdk/makefile.cygwin
13674         * gdk/win32/makefile.cygwin
13675         * gtk/makefile.cygwin: Updates.
13676
13677         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
13678         default values for fg and bg pixel as X11 does (0 and 1), not
13679         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
13680         Use 0 for pen width by default (treated as 1 anyway later, but for
13681         apps that might check the value in the GdkGC).
13682         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
13683         interface to gdk_gc_predraw and _postdraw.
13684
13685         * gdk/win32/gdkwin32.h
13686         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
13687
13688         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
13689         extraneous semicolon.
13690
13691         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
13692
13693         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
13694         not the Win32 bitspixel value.
13695
13696         * gdk/win32/gdkcc-win32.c:
13697         * gdk/win32/gdkcolor-win32.c 
13698         * gdk/win32/gdkprivate-win32.h
13699         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
13700         GDK object structure.
13701
13702 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
13703
13704         * docs/tutorial/gtk_tut_12.es.sgml (name): 
13705         * docs/tutorial/gtk_tut_it.sgml (name): 
13706         * docs/tutorial/gtk_tut_fr.sgml (name): 
13707         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
13708         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
13709
13710 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
13711
13712         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
13713           small changes.
13714
13715 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
13716
13717         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
13718         a bug here, never been here and never fixed anything ;(
13719         (don't segfault if tree->root_tree is NULL, which happens prior
13720         to widget realization, but puke instead).
13721
13722 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
13723
13724         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
13725         add the necessary tokens.
13726
13727         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
13728         (gtk_rc_style_to_style): copy thicknesses.
13729         (gtk_rc_init_style): apply thicknesses.
13730         (gtk_rc_parse_style): parse xthickness and ythickness.
13731
13732         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
13733
13734         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
13735         (gdk_window_new): 
13736         (_gdk_windowing_window_init): 
13737         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
13738         (gdk_pixmap_create_from_data): 
13739         (gdk_bitmap_create_from_data): 
13740         (gdk_pixmap_new): 
13741         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
13742         (gdk_image_new): 
13743         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
13744         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
13745         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
13746         (gdk_colormap_get_system): 
13747         (gdk_colormap_new): 
13748         * gdk/gdkwindow.c (gdk_window_init): 
13749         * gtk/gtkstyle.c (gtk_style_new):
13750         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
13751         * gdk/gdkpixmap.c (gdk_pixmap_init): 
13752         * gtk/gtkrc.c (gtk_rc_style_new):
13753         use g_object_new() instead of g_type_create_instance() which
13754         is a private function for fundamental type implementations.
13755
13756 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
13757
13758         * configure.in: Add check for db2html
13759
13760 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
13761
13762         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
13763         hack to set glib_debug_objects based on gtk_debug_flags.
13764
13765 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
13766
13767         * INSTALL.in: Update the Prerequisites section.
13768
13769         * Makefile.am demos/Makefile.am docs/Makefile.am
13770         docs/tutorial/Makefile.am gdk/x11/Makefile.am
13771         gdk/linux-fb/Makefile.am: Dist fixes
13772
13773 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
13774
13775         * NEWS: 10,000 foot view of 1.3.1 changes.
13776
13777 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
13778
13779         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
13780         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
13781         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
13782         gdk/x11/gdkmain-x11.c: 
13783
13784         Patch from George Lebl to add a GdkGrabStatus enumeration to use
13785         as a return value of gdk_*_grab(). Previously, we just
13786         returned the X11 values directly.
13787
13788 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
13789
13790         * gdk/x11/Makefile.am: Patch from George Lebl to 
13791         install all the headers in the right place.
13792
13793 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
13794
13795         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
13796           initial conversion to DocBook.
13797
13798 2000-07-04  Tor Lillqvist  <tml@iki.fi>
13799
13800         * README.win32: Improve a bit.
13801
13802         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
13803         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
13804         Alt+0nnn on the numpad (used to enter characters by numeric code
13805         from current DOS or ANSI codepage) working correctly, as in other
13806         Windows apps.
13807
13808         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
13809         same argument validity tests as in X11 version.
13810         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
13811
13812         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
13813         definitions in case missing from headers.
13814
13815         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
13816         destroy the window-specific cursor.
13817         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
13818         calling GetModuleHandle(NULL).
13819         (gdk_window_set_cursor): Reworked to always copy the passed cursor
13820         with CopyCursor before setting it as the window-specific
13821         cursor. It is OK for the caller to destroy the GdkCursor (and thus
13822         also its Windows cursor) after calling this function. Destroy any
13823         previous window-specific cursor.
13824
13825 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
13826
13827         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
13828         font charset is iso8859-1, not iso-8859-1.
13829
13830 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
13831
13832         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
13833         Use g_get_charset() instead of g_get_codeset().
13834
13835         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
13836         Comment out some strdup'ing functions to keep timj
13837         happy until we finish fighting this out.
13838
13839 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
13840
13841         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
13842         <= width or height.
13843
13844         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
13845         from 1.2 for parent/child states.
13846
13847         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
13848         of typos.
13849
13850         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
13851         event structures, replace with a generic axes field. Replace 
13852         deviceid/sourec with GdkDevice *device.
13853
13854         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
13855         to extract particular axis use value from event. (Also
13856         can be used for normal X/Y.)
13857
13858         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
13859         allow for arbitrary number of axes, namespace everything
13860         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
13861         everywhere.
13862
13863         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
13864         Get rid of the gdk_input_vtable setup if favor of simply
13865         defining the functions in gdkinput-none/gxi/xfree.c in
13866         a similar fashion to the way that the port structure is 
13867         done.
13868
13869         * gtk/gtkdnd.c: Fix fields of synthesized button press event
13870         for new event structures. 
13871
13872         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
13873         new device interfaces.
13874
13875 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
13876
13877         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
13878         set the initial text.
13879
13880         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
13881         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
13882         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
13883         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
13884
13885         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
13886         pango_layout_set_font_description to simplify.
13887
13888 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
13889
13890         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
13891         pango_layout_set_font_description to simplify.
13892
13893 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
13894
13895         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
13896         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
13897         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
13898
13899         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
13900         PANGO_PIXELS() macro.
13901
13902 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
13903
13904         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
13905         that returns a PangoContext owned by the widget and updated to
13906         match future changes in the widget. Also, make 
13907         gtk_widget_create_pango_layout() use this context. If we ever
13908         add a ::changed signal to PangoContext, this will make things
13909         much more convenient. 
13910
13911         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
13912         in the appropriate places instead of destroying the layouts and
13913         creating new ones.
13914
13915         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
13916         in a few strategic places.
13917
13918 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
13919
13920         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
13921         gtk_widget_size_request() on reparented child, if one. Otherwise,
13922         queue_resize() on the child never results in it getting size-requested
13923         at all.
13924
13925         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
13926         in option menus, so that (with luck) people won't copy it into
13927         their apps in the future.
13928
13929         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
13930         to gtk_option_menu_calc_size. This isn't perfect, but should fix
13931         a lot of problems with changing the size of the menu's menu
13932         items after adding it to the option menu.
13933
13934         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
13935
13936         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
13937         the text direction for a widget changes.
13938
13939         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
13940         ::direction_changed to get rid of various hacks.
13941
13942 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
13943
13944         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
13945         name.
13946
13947 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
13948
13949         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
13950         flag to the structure. Do not call XFreePixmap on pixmaps created
13951         by gdk_pixmap_foreign_new().
13952
13953 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
13954
13955         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
13956         value using GdkRGB functionality given GdkColormap and GdkColor.
13957         (name not final, waiting for inspiration.)
13958         
13959         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
13960         set the foreground/background of a GC using the GC's colormap
13961         and GdkRGB. (name not final, waiting for inspiration.)
13962
13963         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
13964         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
13965
13966         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
13967         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
13968         purely a function of the corresponding colormap. Make
13969         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
13970
13971         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
13972         gdk_pixbuf_*create_from_xpm_* in terms of
13973         gdk_pixbuf_new_from_xpm_data(), move into platform independent
13974         code.
13975
13976         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
13977         advantage of the new draw_rgb_32_image_dithalign.
13978
13979         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
13980
13981         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
13982         on each created GC.
13983
13984         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
13985
13986         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
13987         which we initialize from the drawable when the GC is created,
13988         if the drawable has a colormap.
13989
13990         * gdk/x11/gdkgc-x11.c: include string.h for memset.
13991
13992         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
13993
13994         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
13995
13996 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
13997
13998         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
13999         actually returning expose events, make sure to set
14000         the count field properly.
14001
14002         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
14003         accidentally reintroced bug which always cleared
14004         the graphics_exposures value. 
14005
14006 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
14007
14008         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
14009
14010 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
14011
14012         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
14013
14014 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
14015
14016         * docs/faq/gtk-faq.sgml: Start of Section 6.
14017
14018 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
14019
14020         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
14021         
14022         (Fixes problem with drawing childless frames. Pointed out
14023         by and a first patch from Anders)
14024         
14025         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
14026         compute a child_allocation, even if we don't have a child.
14027
14028         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
14029         Always chain to the parent's impl, even if we don't have a child.
14030
14031 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
14032
14033         * gdk/gdkrgb.c: If possible, create only a single shm segment and
14034         use multiple parts of it instead of creating a bunch of separate
14035         segments, since the maximum number of segments per system is not
14036         large. (This might be worth backporting to GTK+-1.2.x if we make a
14037         new release )
14038
14039         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
14040         structure in preparation for per-colormap GdkRGB.
14041
14042         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
14043         to False when we get EINVAL from shmget so that the caller of
14044         gdk_image_new can retry with a smaller segment size.
14045
14046 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
14047
14048         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
14049
14050 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
14051
14052         * configure.in: make the current version number 1.3.1 (binary age 0,
14053         interface age 0).
14054         
14055         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
14056         gtkcompat.h is all we want.
14057
14058         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
14059         GLib primitive types. fixed g_type_register_fundamental() argument
14060         ordering.
14061
14062         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
14063         compiles.
14064
14065         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
14066         object code cleanup, comment trigraph fixes, etc...
14067
14068 2000-06-23  Havoc Pennington  <hp@redhat.com>
14069
14070         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
14071         instead of making up a bogus name for first_para_mark
14072
14073         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
14074         0 as a context ID
14075
14076 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
14077
14078         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
14079
14080 2000-06-21  Havoc Pennington  <hp@pobox.com>
14081
14082         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
14083         we didn't check window->bg_pixmap != GDK_NO_BG.
14084
14085         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
14086         gdk-pixbuf
14087
14088 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
14089
14090         * docs/faq/gtk-faq.sgm: Move file to here.
14091           TODO: Update Makfile.am 
14092
14093 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
14094
14095         * docs/gtk-faq.sgm: Add Section 2
14096
14097 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
14098
14099         * docs/gtk-faq.sgm: New file. Start of DocBook
14100           version of the FAQ.
14101
14102 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
14103
14104         * configure.in (GDK_PIXBUF_MAJOR): Define version
14105         numbers for GDK_PIXBUF_*, as they get substituted
14106         into a header file. Need to consider versioning
14107         for gdk-pixbuf more carefully later.
14108
14109 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
14110
14111         Work with srcdir != builddir.   
14112         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
14113         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
14114         * demos/testpixbuf.c: Likewise.
14115         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
14116         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
14117         <gdk/x11/gdkx.h>.
14118         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
14119         "gdk-pixbuf.h".
14120         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
14121
14122 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
14123
14124         * TODO.xml: Change 1.4 version numbers to 2.0.
14125
14126 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
14127
14128         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
14129         fixups to GTK+ standard.
14130
14131 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
14132
14133         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
14134         gdk-pixbuf.
14135
14136         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
14137         fixups for GObject.
14138
14139         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
14140         gdk-pixbuf with GDK dependencies moved into GDK.
14141         
14142         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
14143         move gdk-pixbuf-loader here until GObject has signals.
14144
14145         * demos/: New directory of demos. Move demos from
14146         gdk-pixbuf here.
14147
14148         * demos/pixbuf-init.c: Small bit of code to check for
14149         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
14150         set GDK_PIXBUF_MODULEDIR appropriately.
14151
14152         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
14153         define which no longer makes sense.
14154
14155 2000-06-21  Havoc Pennington  <hp@redhat.com>
14156
14157         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
14158         gtk_get_default_language
14159
14160         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
14161         new function to get the default language
14162
14163         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
14164         s/gtk_text_view_style_values/gtk_text_style_values/
14165
14166         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
14167         Add a "language" field to tags.
14168
14169         (gtk_text_tag_set_arg): Fix bug in setting
14170         "bg_full_height_set" tag.
14171
14172 2000-06-21  Havoc Pennington  <hp@redhat.com>
14173
14174         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
14175         in the interfaces
14176
14177         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
14178         stuff instead when possible.
14179
14180         * gtk/gtktexttypes.h: Delete some unused constants
14181
14182         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
14183         testtextbuffer.c: use glib instead of custom unicode routines
14184
14185 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
14186
14187         * docs/es/: Removed mistakenly added generated sgml
14188
14189         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
14190         Remove outdated info files.
14191
14192         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
14193         Moved tutorial files into subdir
14194
14195         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
14196         subdir.
14197
14198         * docs/man/gtk_button.pod: Remove. (contents will be
14199         integrated into gtk-reference button page.)
14200
14201         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
14202         docs/faq/Makefile.am: Adjust for new organization
14203
14204 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
14205
14206         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
14207         not $(MKINSTALLDIRS)
14208
14209 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
14210
14211         * gtk/testgtk.c (create_text): Finish the job Elliot started
14212         of removing font setting test for text widget. (Since text widget
14213         and GdkFont are not deprecated, and cause portability problems.)
14214
14215 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
14216
14217         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
14218         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
14219         Remove use of libunicode in favor of new GLib functions.
14220
14221         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
14222         nano-x, framebuffer. The X11 include is just a hack until we get
14223         the necessary functions in gdkcolor.h, so there is no reason to
14224         add other includes of platforms.
14225
14226         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
14227         window bigger than the screen change.
14228
14229         * gtk/testgtk.c: Revert some random changes from Elliot
14230         that had no particular point and were causing testgtkrc
14231         not to function correctly.
14232         
14233         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
14234         because GdkSegment and GdkRegionBox have the same fields,
14235         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
14236         results in clearer code.
14237
14238         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
14239         gdk_input_translate_coordinates): Fix missed GdkObjectification
14240
14241 2000-06-18  Elliot Lee  <sopwith@redhat.com>
14242
14243         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
14244         * gtk/gtk{plug,socket}.h: Missed commits from previous.
14245
14246 2000-06-20  Havoc Pennington  <hp@redhat.com>
14247
14248         * modules/linux-fb/Makefile.am: Make this compile
14249         without framebuffer enabled
14250
14251         * gdk/linux-fb/Makefile.am: Add conditional to not build
14252         framebuffer unless specified in configure
14253
14254         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
14255         the size of the target instead of source if -1 was passed for
14256         width/height
14257
14258         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
14259         width/height confusion.
14260
14261 2000-06-19  Havoc Pennington  <hp@redhat.com>
14262
14263         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
14264         GDK_DRAWABLE_XID. In the future, we probably want to make it
14265         faster with G_DISABLE_CHECKS turned on.
14266
14267 2000-06-14  Havoc Pennington  <hp@redhat.com>
14268
14269         * gdk/Makefile.am: add gdkpixmap.c
14270
14271         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
14272         s/gdk_image_init/_gdk_windowing_image_init
14273
14274         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
14275         ref/unref
14276
14277         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
14278
14279         * gdk/gdkcompat.h: remove GdkWindowType compat, since
14280         GdkWindowType is now non-deprecated; 
14281         change gdk_window_get_type() compat to be
14282         gdk_window_get_window_type().
14283
14284         * gdk/gdkdnd.h: make GdkDragContext a GObject.
14285
14286         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
14287         virtual GObject. Make all functions call into the vtable.
14288         Move gdk_image_put() guts in here. Remove GdkDrawableType
14289         and gdk_drawable_get_type(), these are now GdkWindow-specific.
14290         draw_image, get_depth, get_size, set_colormap, get_colormap,
14291         get_visual added to the vtable.
14292         
14293         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
14294         GObject. Virtualize everything. 
14295         (gdk_gc_new_with_values): remove check for destroyed window,
14296         because now GdkWindow::create_gc will check this.
14297         (gdk_gc_set_values): New function to set GC values, this 
14298         was already implemented but wasn't in the header
14299
14300         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
14301
14302         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
14303         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
14304         remove _gdk_window_class; add _gdk_window_impl_get_type() and
14305         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
14306         _gdk_windowing_window_init, rename gdk_image_init to
14307         _gdk_windowing_image_init.
14308         
14309         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
14310         (gdk_draw_layout): Remove check for destroyed window, 
14311         because all the drawable methods already check it.
14312         
14313         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
14314         Add gdkpixmap.c which contains implementation of GdkDrawable
14315         virtual table (by chaining to a platform-specific implementation
14316         object).
14317         
14318         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
14319         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
14320         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
14321         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
14322         GdkColormapPrivate. 
14323
14324         * gdk/gdktypes.h: #include <glib-object.h>
14325
14326         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
14327         Move most functionality to platform-specific implementation
14328         object. GdkWindow itself now handles the backing store, then
14329         chains to the platform-specific implementation.
14330         (gdk_window_get_window_type): return GdkWindowType of the window.
14331         (gdk_window_peek_children): New routine, returns the children of 
14332         a GdkWindow
14333         (gdk_window_get_children): Was in X11-specific code and did 
14334         XQueryTree. Changed to simply return a copy of window->children; 
14335         so it can go in cross-platform code.
14336         
14337         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
14338
14339         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
14340         GdkColormap; just changed to use the new private data instead
14341         of casting to GdkColormapPrivate.
14342
14343         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
14344         gdk_cursor_new().
14345
14346         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
14347         (private data member in the GObject). 
14348         (xdnd_manager_source_filter): Function had broken 
14349         error handling, fix it (use gdk_error_trap_push).
14350
14351         * gdk/x11/gdkdrawable-x11.c: This file now implements
14352         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
14353         base class is purely for the convenience of the X port,
14354         and not part of the interface to cross-platform GDK.
14355
14356         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
14357         
14358         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
14359         specific to X, and returned by the create_gc virtual method
14360         of GdkDrawableImplX11. 
14361         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
14362         rather than gchar, this was also changed in the GdkGC vtable.
14363         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
14364         mask is 0, return immediately, instead of checking every flag.
14365         This is faster, and keeps us from segfaulting if values is NULL
14366         and the mask contains some nonzero flags.
14367
14368         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
14369         GdkWindow.
14370
14371         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
14372         GdkWindowPrivate is gone.
14373
14374         * gdk/x11/gdkim-x11.c: rename things that got renamed.
14375
14376         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
14377         remove the image_put stuff that got transferred to GdkDrawable.
14378         
14379         * gdk/x11/gdkinput.c: renamings
14380
14381         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
14382
14383         * gdk/x11/gdkpixmap-x11.c: GObject conversion
14384
14385         * gdk/x11/gdkprivate-x11.h: indentation fixes
14386
14387         * gdk/x11/gdkproperty-x11.c: renamings
14388
14389         * gdk/x11/gdkselection-x11.c: renamings
14390
14391         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
14392         implements the platform-specific "impl" object.
14393         Moved gdk_window_get_children to gdk/gdkwindow.c
14394
14395         * gdk/x11/gdkx.h: Remove all the private structs and private datas
14396         that no longer exist. Add declaration of GdkGCX11 object here.
14397         Fix all the macros to still work. 
14398
14399         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
14400         GdkDragContext from the boxed types since they are now GObjects.
14401
14402         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
14403         moved xthickness/ythickness into the instance. GtkStyleClass
14404         functions are now in the standard vtable for GtkStyle, so you have
14405         to create a GObject subclass to write a theme engine.
14406         (gtk_style_copy): fixed a leaked PangoFontDescription
14407         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
14408         can be the standard GObject function.
14409         
14410         * Throughout GTK:
14411         s/style->klass->[xy]thickness/style->[xy]thickness
14412         s/pango_layout_unref/g_object_unref/
14413
14414         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
14415         
14416         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
14417         accessing GDK internals.
14418
14419         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
14420         accessing GDK internals.
14421
14422 2000-06-18  Elliot Lee  <sopwith@redhat.com>
14423
14424         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
14425
14426         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
14427         problem by calculating event position relative to the trough
14428         rather than the slider.
14429         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
14430
14431         * gdk/gdkgc.h: Add GDK_NOR.
14432
14433         * configure.in, Makefile.am: Add modules top level dir
14434         * configure.in: Only use pangox library if building x11 target.
14435         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
14436
14437 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
14438
14439         * gtk/gtkcolorsel.c: Change private class member to be named
14440         private_data throughout the file.
14441
14442         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
14443         private_data to avoid clashing with keyword.
14444
14445 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
14446
14447         * gdk/gdkdnd.h: Add comment to remove warning.
14448
14449 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
14450
14451         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
14452         Byelorussian language; changed the Makefile and file names 
14453         to reflect that.
14454
14455 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
14456
14457         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
14458         rather than gdk_window_hide; this makes things work
14459         correctly if the window is programmatically hidden while
14460         iconified.
14461
14462 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
14463
14464         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
14465         cut and paste typo where wrong pixmap was being
14466         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
14467
14468 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
14469
14470         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
14471         Add helper function to compute format / bytes 
14472         relationship. Use in a couple places to fix up
14473         errors which assume 8 * format.
14474
14475         * gtk/gtkselection.c (gtk_selection_request): Use 32
14476         rather than 8 * sizeof (GdkAtom), to work correctly
14477         on Alpha.
14478
14479 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
14480
14481         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
14482         libgtk.la
14483         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
14484         versions
14485
14486         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
14487         checking macros return NULL since the function has a return value.
14488
14489 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
14490
14491         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
14492         GTK+ from building at all.
14493
14494         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
14495
14496 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
14497
14498         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
14499         gtk/Makefile.am: make it possible to configure gtk for different
14500         targets on the same platform. The library name is now 
14501         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
14502         flag. Only the x11 target compiles right now.
14503         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
14504         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
14505         * gdk/nanox/gdk*generic*: delete generic region code.
14506         * gdk/linux-fb/gdk*generic*: delete generic region code.
14507         * README.nanox: update information.
14508         
14509 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
14510
14511         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
14512         prepend not append. (Pointed out by Brett Hall.)
14513
14514 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
14515
14516         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
14517
14518 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
14519
14520         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
14521         need this later, and this makes sure that the atexit for
14522         glib gets called after that for GDK, so atexits are
14523         properly ordered for object leak checking.
14524
14525         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
14526
14527         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
14528         pango_x_shutdown_display()
14529
14530         * gtk/simple.c (main): Close window on destroy.
14531
14532 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
14533
14534         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
14535         to treat initial creation different from setting with 
14536         regards to the graphics-exposures parameter, so add a parameter
14537         indicating whether this is initial or not.
14538
14539 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
14540
14541         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
14542         to sort of work by adding an extra return_exposes arg
14543         to gdk_event_translate() - it might be better to simply
14544         deprecate the function altogether and force people to rewrite
14545         without it. gdk_window_scroll() handles most of it, and where
14546         gdk_window_scroll() doesn't work, simply redrawing more does.
14547
14548         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
14549         assertion.
14550
14551         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
14552
14553         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
14554         bunch of pretty much useless /* Print debugging info */ comments 
14555         which had drifted away from the code they were commenting.
14556
14557 2000-06-02  Havoc Pennington  <hp@pobox.com>
14558
14559         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
14560         is in working order.
14561         
14562         * gtk/testtext.c: Change to reflect anonymous mark API
14563
14564         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
14565
14566         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
14567         field, which was unused.
14568
14569         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
14570         saves some typing.
14571
14572         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
14573
14574         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
14575         flag on the insertion point and selection bound
14576
14577         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
14578         make mark-manipulation functions take a GtkTextMark* instead of a
14579         mark name.
14580         
14581         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
14582         GtkTextMarkBody; will be used to detect attempts to delete
14583         the permanent marks (insert and selection bound)
14584
14585         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
14586
14587 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
14588
14589         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
14590         flag to on.
14591
14592         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
14593         Honor DOUBLE_BUFFRED_FLAG
14594
14595         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
14596         function to set the DOUBLE_BUFFERED flag.
14597
14598         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
14599         or not exposes done on the widget should be double-buffered.
14600
14601         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
14602         to be what would be expected. (Fixes problem with a
14603         g_return_if_fail() validating a TextDirection enumeration)
14604
14605 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
14606
14607         * gtk/gtkwidget.c: Remove all references to 
14608         offscreen flag which was no longer used.
14609
14610         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
14611
14612         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
14613         for non-null label_widget->parent.
14614
14615         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
14616         which no longer was used.
14617
14618         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
14619
14620         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
14621         for null arguments.
14622
14623         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
14624         check for destroyed windows.
14625
14626 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
14627
14628         * gtk/gtkimmulticontext.c: Add a finalize method and unref
14629         the slave context there.
14630
14631         * gtk/gtkinvisible.[ch]: Make reference counting behavior
14632         identical to GtkWindow.
14633
14634 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
14635
14636         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
14637         pangox to here, so we can write them independent of rendering
14638         system, using GDK primitives.
14639
14640         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
14641         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
14642         since we have a rendering-system independent implementation in
14643         terms of draw_glyphs().
14644         
14645         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
14646         function to render a single line.
14647
14648         * gdk/x11/gdkpango.c: Move the guts of this file mostly
14649         into ../gdkpango.c, which simplifies things, since we
14650         don't have to deal with raw X gc's.
14651
14652 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
14653
14654         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
14655         get the logical attributes for a given GtkTextLine.
14656
14657 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
14658
14659         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
14660         g_locale_get_codeset() to g_get_codeset() change.
14661
14662 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
14663
14664         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
14665         descriptions.
14666
14667         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
14668         the entry.
14669
14670         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
14671         redoing (vastly simplifying) for Pango. Still needs quite
14672         a bit of work. (Size selection is currently poor. List of 
14673         predefined sizes is not a good idea, since all of these
14674         sizes won't necessarily be distinct.)
14675
14676 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
14677
14678         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
14679         CODESET results for LANG=C.
14680
14681 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
14682
14683         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
14684         which takes a stringized pango font description;
14685         ignore the older 'font' and 'fontset' declarations.
14686
14687         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
14688         field with a GdkFont derived via gdk_font_from_description(),
14689         for compatibility. (Should we just remove it entirely?
14690         Probably too much compatibility breakage, but people
14691         should be migrating to the new Pango stuff as quickly
14692         as possible.)
14693
14694 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
14695
14696         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
14697
14698 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
14699
14700         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
14701         redoing; there are some bugs in size allocation right
14702         now, the semi-existant distinction between header / day
14703         fonts was removed, but, with Pango, could actually
14704         be made functional in a nice way.
14705         
14706         * gtk/testcalender: Move calender from examples into this
14707         directory as a test program. (We really need to restrcture
14708         testgtk into a whole directory full of tests for every
14709         widget or functionality group, separated into multiple .c
14710         files.)
14711
14712 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
14713
14714         * gtk/testgtk.c (file_exists): Fix stupid typo that
14715         was keeping RC file from being loaded.
14716
14717         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
14718         RC file font code.
14719
14720 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
14721
14722         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
14723         Add function to load a GdkFont from a PangoFontDescription.
14724
14725 2000-05-29  Tor Lillqvist  <tml@iki.fi>
14726
14727         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
14728         variable should be of type GdkEventPrivate.
14729
14730 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
14731
14732         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
14733         to have any widget for the label, use a GtkLabel widget
14734         to display the text. (Based partially on a patch from
14735         Anders Carlson.)
14736
14737         (Quite a bit of code reorganization - strip 90% of the
14738         guts out of gtkaspectframe and add a single virtual
14739         func to GtkFrameClass - compute_child_allocation.)
14740
14741 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
14742
14743         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
14744         (Removed clist->row_center_offset field because caching
14745         it wasn't saving time or code, added private function
14746         _gtk_clist_create_cell_layout()).
14747
14748 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
14749
14750         * gtk/gtkaccellabel.c: Pangoized.
14751
14752         * gtk/[hv]ruler.c: Pangoized
14753
14754 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
14755
14756         * gtk/gtkfilesel.c (gtk_file_selection_init):
14757         Use gtk_clist_set_column_auto_resize() to remove need
14758         need for manual column width computations.
14759
14760 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
14761
14762         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
14763         ensuring Pango correctness, and considerably simplifying the
14764         code.
14765         
14766         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
14767
14768         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
14769         getting of numbers of lines.
14770
14771         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
14772         to the actual requested width of the lable, not to the wrap
14773         width we set.
14774
14775         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
14776
14777         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
14778           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
14779
14780         * gtk/gtktextview.c: Fix structure inheritance.
14781
14782         * gtk/gtkprogressbar.c: Pangoize.
14783
14784 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
14785
14786         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
14787         in a function.
14788
14789         * gtk/gtktextlayout.c (find_display_line_above): Fixed
14790         bug with computing line tops.
14791
14792         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
14793
14794 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
14795
14796         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
14797         and y_offset coordinates to do what we need now. (The offset between
14798         buffer and layout coordinates has been reintroduced, but is a 
14799         bit different than before.)
14800
14801         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
14802         handle the adjustments ourselves, and scroll as necessary using
14803         the new gdk_window_scroll().
14804         
14805         The advantage of this is that when we are incrementally revalidating,
14806         we are essentially rearranging things around the visible portion
14807         of the screen. With the old setup, the visible portion of the
14808         screen was moved around in the layout, so scrolling and redrawing
14809         to track that caused jumping of the display. Since we now
14810         control the scrolling ourselves, we can suppress this and
14811         only redraw when things actually change.
14812
14813 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
14814
14815         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
14816         the region not just redisplay it after-all, since we store the
14817         cursors in the LineDisplay. (Ugly interactions here between
14818         GtkLayout and GtkTextBTree here.)
14819         
14820         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
14821
14822 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
14823
14824         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
14825         Added function to scroll contents of a window while keeping the
14826         window constant. Works by XCopyArea or guffaw-scrolling depending
14827         on the details of how the window is set up. (guffaw-scrolling
14828         still needs to be filled in.)
14829
14830 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
14831
14832         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
14833         move the debugging that was tied to a global variable
14834         to that.
14835
14836         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
14837
14838         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
14839         validated flag, in line data instead of setting height/width to
14840         -1. This allows us to perform operations with partially invalid
14841         buffer (using the old size for invalid lines) and thus to do
14842         incremental vaidation. Keep height/width aggregates up to date
14843         when deleting text and rebalancing the tree.
14844
14845         * gtk/gtktextbtree.[ch]: Add functions validate a line
14846         (gtk_text_btree_validate_line), and to validate up
14847         to a number of pixels (gtk_text_btree_validate).
14848
14849         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
14850         that indicates that something is changed and a revalidation
14851         pass is needed. Change ::need_repaint to ::changed, and
14852         make it take old and new yranges instead of a rectangle.
14853
14854         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
14855         the line_data_destroy() function from 
14856         gtk_text_btree_add_view() to a virtual function in 
14857         GtkTextLayout
14858
14859         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
14860         since we are handling partial repaints in a different fashion
14861         now.
14862
14863         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
14864         of the selection instead of queueing a repaint on the
14865         entire widget.
14866
14867         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
14868         get_selection_bounds() down to btree, make the function
14869         in buffer a wrapper around the btree function.
14870
14871         * gtk/gtktextlayout.[ch]: Add functions to check if the
14872         layout is valid and to recompute either a range of pixels
14873         aroudn a line or a certain total number of pixels.
14874
14875         * gtk/gtktextlayout.[ch]: Cache a single line display;
14876         now that we only redraw the needed portions, the hit rate
14877         for this cache is quite high.
14878         
14879         * gtk/gtktextview.[ch]: Keep track of the first paragraph
14880         on the screen so that when re-laying-out the buffer, we can
14881         keep the same place. This requires connecting to ::value_changed
14882         on the adjustments
14883
14884         * gtk/gtktextview.[ch]: Add idle functions to revalidate
14885         the buffer after we receive an ::invalidated signal.
14886         
14887 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
14888
14889         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
14890         to max of allocation and layout size, not just to the
14891         layout size.
14892
14893         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
14894         Invalidate window so it gets redrawn properly.
14895
14896         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
14897         to mean the entire window.
14898
14899         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
14900         into public header.
14901
14902 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
14903
14904         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
14905         to get the name of a mark.
14906
14907         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
14908         to find the paragraph from a y position.
14909
14910 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
14911
14912         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
14913         nodes have width/height >= 0, not > 0.
14914
14915 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
14916
14917         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
14918         Add a size_only flag, so when we only need the size, we don't create
14919         useless appearance attributes.
14920
14921         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
14922         duplicate setting of font description.
14923
14924         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
14925
14926 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
14927
14928         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
14929         EXTRA_DIST. It does not work well when the file that
14930         everything depends on is not in the tarball.
14931
14932 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
14933
14934         * gtk/testgtk.c: Some hacks and fixes so that it basically
14935         works when not sitting in the GTK+ build tree.
14936
14937 2000-05-03  Havoc Pennington  <hp@redhat.com>
14938
14939         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
14940         Properly determine the ordering of the tag root and the current
14941         line within the tree. Previous algorithm only worked if the tag
14942         root's immediate parent was the common root of both the current
14943         line and the tag root.
14944
14945 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
14946
14947         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
14948         alignment.
14949
14950         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
14951         the widget text directional dynamically.
14952
14953         * gtk/gtktextview.[ch]: Added functions to get and set default
14954         wrap mode.
14955
14956 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
14957
14958         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
14959         in cursor location computation.
14960
14961 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
14962
14963         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
14964         vadjusment values properly when layout gets smaller.
14965
14966         * gtk/gtktextview.c (need_repaint_handler): Areas being
14967         passed in are far completely inaccurate, and sometimes
14968         too small, so, for now, just queue a redraw on the
14969         whole visible region.
14970
14971 2000-04-25  Havoc Pennington  <hp@redhat.com>
14972
14973         * gtk/gtktextbtree.c (summary_destroy): new function to 
14974         destroy tag summary nodes
14975         (gtk_text_line_next_could_contain_tag): this function was 
14976         totally broken if the line passed in wasn't below the tag
14977         root. Fix it.
14978         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
14979         "wildcard" case, we have to do a linear scan. Blah.
14980         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
14981         we have to do the linear scan
14982         (tag_removed_cb): When a tag is removed from the tag table, 
14983         remove the GtkTextTagInfo node from the btree.
14984         (gtk_text_btree_spew): Implement the spew function, for 
14985         our debugging pleasure.
14986
14987 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
14988
14989         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
14990         a problem with referring to the wrong buffer.
14991
14992         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
14993
14994         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
14995         font description to gtk_style_new() - otherwise things
14996         don't work without a .gtkrc file.
14997
14998         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
14999         tags table if we create it ourself, too.
15000
15001         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
15002         it was conflicting with XKB modifiers.
15003
15004         * gtk/gtktextview.[ch]: Add simple support for 
15005         GtkIMContext.
15006
15007 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
15008
15009         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
15010         with deletion from last commit.
15011
15012 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
15013
15014         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
15015         in the context from the current locale.
15016         
15017         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
15018         context, not hardcoded value.
15019
15020         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
15021         not logical.
15022
15023 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
15024
15025         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
15026         attributes - that doesn't handle partial-glyph selection
15027         properly. Instead use new pango_layout_line_get_x_ranges()
15028         functionality to draw the selection.
15029
15030         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
15031         now properly handles out-of-range coordinates.
15032
15033         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
15034
15035         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
15036         public.
15037
15038         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
15039         for paragraphs opposite to the base direction of the widget.
15040
15041         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
15042
15043         * gtk/gtktextlayout.c: Don't split segments on marks, since that
15044         causes Arabic words to reshape as you cursor through.
15045
15046         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
15047         cursor position when moving vertically with the arrow keys and
15048         scrolling with page-up/page-down. (Arrow keys save only the X,
15049         scrolling saves both X and Y.)
15050
15051         This means you can line-up / line-down or page-up / page-down
15052         without losing your place, and also that moving vertically
15053         with the cursor keys keeps the same X position, not the same
15054         character count:
15055
15056         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
15057         arrow keys move by display lines, not paragraphs.
15058
15059 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
15060
15061         * gtk/gtklayout.c: Make sure that the bin window is at least
15062         as big as the allocation. (Should we also make sure that the
15063         bin window is big enough to completely cover widget->window?)
15064
15065         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
15066         function to get the onscreen rectangle.
15067
15068         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
15069         for offsets in window coordinates.
15070
15071 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
15072
15073         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
15074         confusion.
15075
15076         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
15077         from the widget direction.
15078
15079         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
15080         Add a "direction" attribute.
15081
15082         * gtk/gtktextview.c: global s/tkxt/text_view/.
15083
15084         * gtk/testtext.c: Added long block of text in Arabic, to test out
15085         the direction attributes. (Some problems with the shaping system
15086         for arabic become obvious - like the fact the cursor splits words
15087         into unjoined pieces.)
15088
15089 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
15090
15091         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
15092
15093         * gtk/gtktextlayout.c: Fix up alignment.
15094
15095         * gtk/testtext.c: Add some tests for centering, wrapping.
15096
15097 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
15098
15099         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
15100         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
15101         If we wrote GTK+-specific layout-render function this could just replace
15102         the draw_layout() operation in the vtable.
15103
15104         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
15105         pango_layout_get_cursor_pos() and use that function.
15106
15107         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
15108         is a non-static symbol.
15109
15110         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
15111         with gtk_text_btree_find_line_by_y()
15112
15113         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
15114         renderer that handles GtkTextAppearance attributes.
15115
15116         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
15117
15118           - Move the values in the style that don't affect geometry into a
15119             GtkTextAppearance structure.
15120           - Change underline to take a PangoUnderline and "font" a string
15121             representation of a font description
15122           - Add a "font_desc" attribute which takes a FontDescription structure.
15123
15124         * gtk/gtktextlayout.[ch]:
15125
15126           - Get rid of the display-line list per each line. Instead, we
15127             generate, on demand, a GtkTextLineDisplay structure which]
15128             contains a PangoLayout * and other necesary information
15129             (offsets, cursor locations) for displaying a paragraph.
15130           - Get rid of the code to wrap lines, create display chunks,
15131             etc. Instead, we just go through a paragraph and convert
15132             it into the necessary inputs to a PangoLayout.
15133           - Implement a new attribute type, GtkTextAttrAppearance. This
15134             holds a GtkTextAppearance, and is used to pass colors, 
15135             stipple, etc, through from the layout to the display without
15136             having to use lots and lots of individual attributes.
15137           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
15138             in terms of PangoLayout functions.
15139         
15140         * gtk/gtktextview.c: 
15141          
15142           - Handle passing the necessary PangoContext to the layout
15143           - Some fixups in painting to deal with the automatic backing store
15144             and offsetting of GTK+-1.4
15145           - Add a style_set handler so that the default style reacts
15146             properly to theme changes.
15147         
15148         * gtk/gtktext?*.[ch]: Random code-style fixes.
15149
15150         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
15151
15152 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
15153
15154         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
15155         in original form preparatory to Pango-ization and gdkimcontext-ization.
15156
15157 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
15158
15159         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
15160         so that we can derive from gtkimcontext in language bindings properly.
15161
15162 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
15163
15164         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
15165         Add a compose table including (almost) all the compose combinations
15166         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
15167         data in the XIM implementation.
15168
15169         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
15170         Moved functions to convert keyvalues from and to unicode here from
15171         the win32 port and made them public.
15172
15173 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
15174
15175         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
15176
15177 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
15178
15179         * gtk/gtkimcontext.[ch]: Base class for new input context system
15180
15181         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
15182         the real input context implementation to be loaded from modules
15183         and switched on the fly.
15184
15185         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
15186         context that just does direct keysymbol => unicode translation.
15187
15188         * gtk/gtkentry.[ch]: Start switching editing over to using
15189         GtkInputContext. (No handling of preedit yet.)
15190
15191 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
15192
15193         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
15194         many substitutions. (klass should not be subsituted.)
15195
15196 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
15197
15198         * configure.in: Add checks for Pango
15199
15200         * configure.in docs/Makefile.am: Add test for sgml2html
15201         and allow 'make dist' without building html, but print out
15202         warnings in that case. (For making snapshots)
15203
15204         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
15205         Add Pango libraries and C flags
15206
15207         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
15208         Add function (gdk_draw_layout) to draw a pango layout.
15209
15210         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
15211         for getting Pango contexts for GDK.
15212
15213         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
15214
15215         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
15216         editing.
15217
15218         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
15219         keysym => unicode translations. More languages can be added
15220         here, but real input-method support is needed.
15221
15222         * docs/Changes-1.4.txt: Added note about entry behavior.
15223         
15224         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
15225         to set the reading direction for a widget and the global direction.
15226         Add test which allows toggling the global direction. Two private
15227         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
15228
15229         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
15230           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
15231
15232         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
15233
15234         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
15235         underlining now handled by Pango.
15236
15237         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
15238         to RCStyle and Style. (Having both this and the old font name and GdkFont 
15239         is temporary.)
15240
15241         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
15242         convenience functions for creating contexts and layouts for widgets.
15243
15244         * gtk/testgtk.c: Enhance label tests with multilingual labels.
15245
15246 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
15247
15248         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
15249         titles to be active, even if they aren't visible.
15250         (gtk_clist_column_titles_passive):  Ditto.
15251
15252 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
15253
15254         * gtkmenu.c:
15255         * gtkmenu.h:
15256         * gtktypeutils.h: Spelling/grammar fixes in comments.
15257
15258 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
15259
15260         * gdk/nanox/*.h: add missing header files.
15261
15262 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
15263
15264         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
15265         send_event to TRUE.
15266         (gtk_drawing_area_size): queue a resize.
15267
15268 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
15269
15270         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
15271         the handlers, also invalidate them. bug nailed down by Karl Nelson
15272         <kenelson@ece.ucdavis.edu>.
15273
15274 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
15275
15276         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
15277         "(nil)" foundries, patch from Grigorios Magklis.
15278
15279         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
15280         on non-available fonts, based on a patch by Grigorios Magklis
15281         <maglis@cs.rochester.edu>.
15282
15283 2000-05-18  Elliot Lee  <sopwith@redhat.com>
15284
15285         * gdk/x11/gdkregion-generic.c: If a region does not have any
15286         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
15287         instead of GDK_OVERLAP_RECTANGLE_IN.
15288
15289 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
15290
15291         * gtk/gtklayout.c (gtk_layout_map): Remove references to
15292         OFFSCREEN, as it is no longer necessary.
15293
15294 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
15295
15296         * gtk/gtkcolorsel.c: Patch from David Santiago
15297         <mrcooger@cyberverse.com> to change things so that the 
15298         indicator of the active palette entry is done independently,
15299         not via the focus, since it should always be visible.
15300
15301 2000-05-17  Tor Lillqvist  <tml@iki.fi>
15302
15303         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
15304         refcount leaks as in the X11 backend.
15305
15306         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
15307         cosmetics.
15308
15309         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
15310         backend. Add _gdk_windowing_window_destroy().
15311
15312         * gtk/gtkcolorsel.c: Include correct backend-specific header.
15313         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
15314         either, but these probably do exist on nanox?)
15315         
15316         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
15317         which isn't necessarily defined by <math.h>.
15318
15319         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
15320         ancestry past GtkObject.
15321
15322         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
15323         from DLL on Win32.
15324
15325         * gtk/gtk.def: Update corresponding to recent changes.
15326
15327         * gtk/makefile.{cygwin,msc}: Updates.
15328
15329 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
15330
15331         * docs/Changes-1.4.txt: A bit of editing.
15332
15333         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
15334         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
15335         to clear the update area for the window, and clear it
15336         when hiding a window.
15337
15338         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
15339         if window destroyed.
15340
15341         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
15342
15343         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
15344         gdk_window_destroy() to the generic code, since there was a lot of 
15345         window-system-independent logic it in. Add a function:
15346         
15347          _gdk_window_destroy() 
15348
15349         to the internal API to destroy a window without unreferencing it.
15350         Add a function:
15351
15352          _gdk_windowing_window_destroy()
15353
15354         That does the windowing-system-dependent part of destroying 
15355         the window.
15356
15357 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
15358
15359         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
15360
15361 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
15362
15363         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
15364         Make gtk_widget_shape_combine_mask() keep a reference count on
15365         the pixmap since it keeps it around.
15366
15367 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
15368
15369         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
15370         leak.
15371
15372         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
15373         leak with event filters.
15374
15375 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
15376
15377         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
15378         signal handlers with the right data arguments. (Fixes
15379         some warnings when a widget was repeatedly set as a drag
15380         destination.)
15381
15382         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
15383         window so we can avoid avoid setting the DND properties on the
15384         toplevel window repeatedly.
15385
15386 2000-05-13  Tor Lillqvist  <tml@iki.fi>
15387
15388         * gdk/win32/gdkwin32.h: Define more message types missing from
15389         mingw headers.
15390
15391         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
15392         call gdk_window_destroy_notify(). It was never called. This
15393         probably meant that the GdkWindow was never freed. Thanks Owen for
15394         noticing (!).
15395
15396         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
15397         window as destroyed before calling DestroyWindow(). DestroyWindow()
15398         causes a call to the window procedure (gdk_WindowProc), which
15399         calls gdk_event_translate(), which calls
15400         gdk_window_destroy_notify(), which gets confused unless the window
15401         is set as destroyed.
15402
15403         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
15404         this function to indicate it's win32 only. Put inside #ifdef
15405         G_ENABLE_DEBUG.
15406
15407         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
15408         debugging function. (gdk_event_translate:) Add a default branch
15409         that uses the above function to print debug messages with all
15410         Windows messages symbolically.
15411
15412         * gdk/win32/gdkprivate-win32.h: Declare it, and
15413         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
15414
15415 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
15416
15417         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
15418         public header file.
15419
15420 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
15421
15422         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
15423
15424         * gtk/gtktext.c: made the adjustments no-construct args, simply
15425         provide default adjustments.
15426         (gtk_text_destroy): release adjustments.
15427
15428         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
15429         adjustment argument non-construct.
15430
15431         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
15432         instead of in finalize.
15433         (gtk_progress_get_text_from_value): 
15434         (gtk_progress_get_current_text): 
15435         (gtk_progress_set_value): 
15436         (gtk_progress_get_percentage_from_value): 
15437         (gtk_progress_get_current_percentage): 
15438         (gtk_progress_set_percentage): 
15439         (gtk_progress_configure): ensure an adjustment is present.
15440
15441 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
15442
15443         * gtk/gtkcolorsel.[hc]:
15444         * gtk/gtkcolorseldialog.[hc]:
15445         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
15446         their parent implementation, use bit fields for boolean values, don't
15447         create unused widgets, usage of glib types, braces go on their own
15448         lines, function argument alignment, #include directives etc. etc. etc..
15449
15450         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
15451
15452 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
15453
15454         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
15455
15456         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
15457         of NULL.
15458
15459         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
15460         to freed data.
15461         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
15462
15463         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
15464         to NULL when the toplevel is getting destroyed.
15465         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
15466         (gtk_menu_destroy): 
15467         (gtk_menu_init): store the information of whether we have to
15468         readd the initial child ref_count during destruction in a new
15469         GtkMenu field needs_destruction_ref_count.
15470
15471         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
15472         here, those reading: learn from my mistake! ;)
15473         in order for set_?adjustment to support a default adjustemnt if
15474         invoked with an adjustment pointer of NULL, the code read (pseudo):
15475         if (v->adjustment) unref (v->adjustment);
15476         if (!adjustment) adjustment = adjustment_new ();
15477         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
15478         now imagine the first unref to actually free the old adjustment and
15479         adjustment_new() creating a new adjustment from the very same memory
15480         portion. here, the latter comparision will unintendedly fail, and
15481         all hell breaks loose.
15482         (gtk_viewport_set_hadjustment):
15483         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
15484         after unreferencing it.
15485
15486         * gtk/gtkcontainer.[hc]: removed toplevel registration
15487         functions: gtk_container_register_toplevel(),
15488         gtk_container_unregister_toplevel() and
15489         gtk_container_get_toplevels() which had wrong semantics
15490         anyways: it didn't reference and copy the list.
15491
15492         * gtk/gtkwindow.c: we take over the container toplevel registration
15493         bussiness now. windows are registered across multiple destructions,
15494         untill they are finalized. the initial implicit reference count
15495         users are holding on windows is removed with the first destruction
15496         though.
15497         (gtk_window_init): ref & sink and set has_user_ref_count, got
15498         rid of gtk_container_register_toplevel() call. add window to
15499         toplevel_list.
15500         (gtk_window_destroy): unref the window if has_user_ref_count
15501         is still set, got rid of call to
15502         gtk_container_unregister_toplevel().
15503         (gtk_window_finalize): remove window from toplevel list.
15504         (gtk_window_list_toplevels): new function to return a newly
15505         created list with referenced toplevels.
15506         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
15507
15508         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
15509         adjustment a non-construct arg.
15510         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
15511         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
15512         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
15513
15514         * gtk/gtkrange.c: added some realized checks.
15515         (gtk_range_destroy): get rid of the h/v adjustments in the
15516         destroy handler instead of finalize. remove timer.
15517         (gtk_range_get_adjustment): demand create adjustment.
15518
15519         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
15520         we simply create them on demand now and get rid of them in
15521         the destroy handler.
15522         (gtk_viewport_destroy): get rid of the h/v adjustments in the
15523         destroy handler instead of finalize.
15524         (gtk_viewport_get_hadjustment): 
15525         (gtk_viewport_get_vadjustment): 
15526         (gtk_viewport_size_allocate): demand create h/v adjustment
15527         if required.
15528
15529         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
15530         gtk_widget_real_destroy () functionality.
15531         (gtk_widget_real_destroy): reinitialize with a new style, instead
15532         of setting widget->style to NULL.
15533
15534 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
15535
15536         * gtk/gtkcalendar.c:
15537         * gtk/gtkbutton.c: ported _get_type() implementation over to
15538         GType, either to preserve memchunks allocation facilities,
15539         or because Gtk+ 1.0 GtkTypeInfo was still being used.
15540
15541         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
15542         over. prepare for ::destroy to be emitted multiple times.
15543         removed reference tracer magic. chain into GObjectClass.shutdown()
15544         to emit ::destroy signal.
15545
15546         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
15547         fundamental.
15548
15549         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
15550         cludge.
15551
15552         * gtk/gtksocket.c:
15553         * gtk/gtkplug.c:
15554         * gtk/gtklayout.c:
15555         * gtk/gtklabel.c:
15556         * gtk/gtkargcollector.c:
15557         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
15558         not being a fundamental anymore, and to work with the new
15559         type system (nuked fundamental type varargs clutter).
15560
15561         * gtk/*.c: install finalize handlers in the GObjectClass
15562         part of the class structure.
15563         changed direct GTK_OBJECT()->klass accesses to
15564         GTK_*_GET_CLASS().
15565         changed direct object_class->type accesses to GTK_CLASS_TYPE().
15566
15567         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
15568         GType. made most of the GTK_*() type macros and Gtk* typedefs
15569         simple wrappers around macros and types provided by GType.
15570         most notably, a significant portion of the old API vanished:
15571         GTK_TYPE_MAKE(),
15572         GTK_TYPE_SEQNO(),
15573         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
15574         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
15575         GTK_TYPE_ARGS,
15576         GTK_TYPE_CALLBACK,
15577         GTK_TYPE_C_CALLBACK,
15578         GTK_TYPE_FOREIGN,
15579         GtkTypeQuery,
15580         gtk_type_query(),
15581         gtk_type_set_varargs_type(),
15582         gtk_type_get_varargs_type(),
15583         gtk_type_check_object_cast(),
15584         gtk_type_check_class_cast(),
15585         gtk_type_describe_tree(),
15586         gtk_type_describe_heritage(),
15587         gtk_type_free(),
15588         gtk_type_children_types(),
15589         gtk_type_set_chunk_alloc(),
15590         gtk_type_register_enum(),
15591         gtk_type_register_flags(),
15592         gtk_type_parent_class().
15593         replacements, where available are described in ../docs/Changes-1.4.txt.
15594         implemented compatibility functions for the remaining API.
15595
15596         * configure.in: depend on glib 1.3.1, use gobject module.
15597
15598 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
15599
15600         * TODO.xml: Various updates to current status.
15601
15602 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
15603
15604         * gtk.m4: Print out version when test succeeds.
15605
15606 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
15607
15608         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
15609         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
15610         
15611         (Original triangle color selector from Simon Budig
15612         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
15613         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
15614         Santiago <mrcooger@cyberverse.com>)
15615
15616         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
15617         out into a separate widget.
15618
15619         * gtk/testgtk.c: Add some checkbuttons for toggling palette
15620         and opacity controls.
15621
15622 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
15623
15624         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
15625         snuck in prematurely.
15626
15627 2000-05-07  Tor Lillqvist  <tml@iki.fi>
15628
15629         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
15630         had deleted a ! operator by mistake, which caused
15631         GDK_SELECTION_CLEAR events never to be generated, which caused
15632         only the first copy to the clipboard from an gtkeditable to
15633         actually cause a copy to the Windows clipboard.
15634
15635 2000-05-06  Tor Lillqvist  <tml@iki.fi>
15636
15637         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
15638         compilation, too. Current mingw gcc distributions include the
15639         necessary headers. Also the necessary IIDs are now in mingw
15640         headers/libraries, and own definitions unnecessary.
15641
15642         More hacking on OLE2 DND, still doesn't work though, and thus
15643         ifdeffed out.
15644
15645         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
15646         here, too.
15647
15648 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
15649
15650         * gdk/nanox/*: nano-X port work in progress.
15651         * gdk/simple.c: simple test for Gdk.
15652         * README.nanox: notes about the port: read this first!
15653         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
15654         with nano-X.
15655
15656 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
15657
15658         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
15659         gdk_window_clear() into common code, implement in terms of
15660         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
15661         not redirected to the backing rectangle.
15662
15663 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
15664
15665         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
15666         EXTRA_DIST. It does not work well when the file that
15667         everything depends on is not in the tarball.
15668
15669 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
15670
15671         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
15672         with recursion where process_updates() is called from
15673         an expose handler. (GtkTextView is highly broken in
15674         doing this, but it should work, so it is a nice test
15675         case.)
15676
15677 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
15678
15679         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
15680         handle the case where updates are queued during processing of
15681         updates.
15682
15683 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
15684
15685         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
15686         window is on gdk_display - use that instead of segfaulting.
15687
15688 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
15689
15690         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
15691         broken and require an empty arg, give it to them.
15692
15693 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
15694
15695         * gtk/gtklabel.h: indentation fixes.
15696
15697 2000-05-02  Tor Lillqvist  <tml@iki.fi>
15698
15699         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
15700         draw too narrow or too low arcs, they seem to fail, at least with
15701         some display drivers.
15702
15703         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
15704
15705         Large changes to the Win32 backend, partially made necessary by
15706         the changes to the backend-independent internal
15707         structures. Attempts to implement similar backing store stuff as
15708         on X11. The current (CVS) version of the Win32 backend is *not* as
15709         stable as it was before the no-flicker branch was merged. A
15710         zipfile with that version is available from
15711         http://www.gimp.org/win32/. That should be use by "production"
15712         code until this CVS version is usable. (But note, the Win32
15713         backend has never been claimed to be "production quality".)
15714
15715         * README.win32: Add the above comment about versions.
15716
15717         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
15718
15719         * gdk/gdk.def: Update.
15720
15721         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
15722         presumably be replaced by some more better mechanism as 1.4 gets
15723         closer to release shape.
15724
15725         * gdk/makefile.{cygwin,msc}: Update.
15726
15727         * gdk/win32/*.c: Correct inclusions of the backend-specific and
15728         internal headers. Change code according to changes in these. Use
15729         gdk_drawable_*, not gdk_window_* where necessary.
15730
15731         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
15732         our old DND.
15733
15734         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
15735         to interpret single characters as UTF-8. Thanks to Hans Breuer.
15736         Use correct function name in warning messages.
15737
15738         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
15739         GSourceFuncs gdk_event_prepare and gdk_event_check.
15740         (gdk_event_get_graphics_expose): Do implement, use
15741         PeekMessage. Thanks to Hans Breuer.
15742         (event_mask_string): Debugging function to print an GdkEventMask.
15743         (gdk_pointer_grab): Use it.
15744
15745         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
15746         (old) book I used claimed was Hangul actually is CJK Unified
15747         Ideographs Extension A. Also, Hangul Syllables were missing.
15748         Improve logging.
15749
15750         * gdk/win32/gdkgc-win32.c: Largish changes.
15751
15752         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
15753         g_win32_getlocale() from GLib, and not setlocale() to get current
15754         locale name.
15755
15756         * gdk/win32/gdkprivate-win32.h
15757         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
15758         gdkwin32.h, similarily as in the X11 backend.
15759
15760         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
15761         assignment was used instead of equals in if test. Thanks to Hans
15762         Breuer.
15763
15764         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
15765         the X11 version.
15766
15767         * gdk/win32/makefile.{cygwin,msc}
15768         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
15769         path to the Win32 headers that works also with the mingw compiler.
15770
15771         * gtk/gtkstyle.c: Include <string.h>.
15772
15773 2000-04-26  Havoc Pennington  <hp@redhat.com>
15774
15775         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
15776         replacing the broken gtk_label_get ()
15777
15778 2000-04-15  Havoc Pennington  <hp@pobox.com>
15779
15780         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
15781         this keeps scanner scripts from getting confused.
15782
15783         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
15784         data, rather than void
15785
15786 2000-04-15  Tor Lillqvist  <tml@iki.fi>
15787
15788         * gtk/gtkclist.c (gtk_clist_motion)
15789         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
15790         with is_hint FALSE, get x and y from the event. They used to be
15791         used uninitialised. The Win32 backend never sends motion events
15792         marked as hints. This for instance fixes the annoying file and
15793         font selector behaviour in the Win32 version.
15794
15795 2000-04-14  Tor Lillqvist  <tml@iki.fi>
15796
15797         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
15798         gtk_private_n_signals variables, they are used by some software,
15799         sigh.
15800
15801         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
15802         installation directory from the Registry, where the installer
15803         should have put it.
15804
15805 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
15806
15807         * gdk/x11/Makefile.am: Fix problem with installation directory for
15808         gdkx.h
15809
15810         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
15811         <mrcooger@cyberverse.com> so that when selecting menus with the
15812         mouse, the first item will not be selected, but when selecting
15813         with an accelerator, or navigating left-right on a menubar with
15814         the menus popped up, the first item will be selected.
15815
15816 2000-04-05  Dan Damian  <dand@dnttm.ro>
15817
15818         * configure.in: Added "ro" to ALL_LINGUAS.
15819
15820 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
15821
15822         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
15823         indentation.
15824
15825         * Makefile.am (EXTRA_DIST): Fix typo.
15826
15827         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
15828         to catch gdkconfig.h
15829
15830         * gtk/gtkitemfactory.c: Added FIXME.
15831
15832 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
15833
15834         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
15835         s/return_if_fail/return_val_if_fail/g and add a return value.
15836
15837 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
15838
15839         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
15840         merge slipup.
15841
15842         * gdk/gdkinput.h: Fix missing line from merge.
15843
15844 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
15845
15846         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
15847         instead of gdkprivate.h.
15848
15849 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
15850
15851         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
15852         parent class to correctly be GtkDialogClass.
15853
15854 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
15855
15856         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
15857         toplevel windows and their immediate children by their parents,
15858         since the size of toplevel windows is out of our immediate
15859         control and we don't get any real benefit from trying to track
15860         this size for clipping.
15861
15862         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
15863         for input_only windows.
15864
15865         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
15866         to fix some hacks and make sure that we don't try to set the
15867         background of input only windows.
15868
15869 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
15870
15871         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
15872         the _really_ internal stuff, and leave gdkprivate.h for the fake private
15873         stuff that we've traditionally exposed.
15874
15875         * gdk/**.c: Use gdkinternals.h where appropriate.
15876
15877         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
15878         not include gdkprivate-x11.h, move all stuff of conceivable public
15879         interest into gdkx.h; keep all really private stuff in
15880         uninstalled header gdkprivate-x11.h.
15881
15882         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
15883         image->image_put on windows through a new function _gdk_window_draw_image()
15884         to allow us to do backing store for images. (Sort of ugly)
15885
15886         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
15887         contexts locally so that we can offset them properly when drawing 
15888         onto backing pixmaps.
15889
15890         * gdk/gdkinput.h: Reindented
15891
15892         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
15893         pixmap or color for the window, so we can properly initialize
15894         our double-buffer pixmaps, and also so that we temporarily set
15895         a background of None while scrolling.
15896
15897         * gdk/gdkregion.h: Revise region boolean operators to have an
15898         interface that is actually convenient - switch from creating new
15899         regions on every op, to "methods" that modify existing regions
15900         (A = A OP B). 3 argument forms which allow dest == src, would also
15901         be possible, but the current interfaces seem to map nicely
15902         onto what needs to be done. (There is quite a lot of region
15903         code in GDK now.)
15904
15905         * gdk/gdkregion.h: Add constructor from rectangle and a copy
15906         operator.
15907
15908         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
15909         gdkpoly-generic.h: Copy region code from Xlib, switch it over
15910         to 32 bit coordinates, modify it to be mostly GTK+ style
15911         and to have interfaces that match gdkregion.h.
15912
15913         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
15914         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
15915         create a backing pixmap and redirect all drawing to
15916         that backing pixmap until a matching gdk_window_end_paint().
15917
15918         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
15919         Create a special drawable class for GtkWindow's that 
15920         redirects the drawing to the backing pixmap as necessary
15921         and then calls the real operations in _gdk_windowing_window_class.
15922
15923         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
15924         Store invalid region for each window. Generate expose events for invalid
15925         region in an idle. This replaces both the expose compression
15926         and the redrawing queuing in GTK+. It is both more efficient and
15927         simpler than either one individually and far more so then the
15928         combination.
15929
15930         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
15931         Emulate 32 bit coordinates for windows with 16 bit coordinates
15932         by offsetting drawing, guffaw scrolling techniques and
15933         mapping/unmapping child windows as necessary.
15934
15935         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
15936         where, when invalid regions are processed, the region is stored,
15937         and if expose events come in that are detectably duplicate
15938         the processed exposes (by comparison of event serial numbers),
15939         the stored region is subtracted out of those exposes.
15940
15941         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
15942         regions newly exposed when scrolling or resizing windows.
15943         This, combined with forcing processesing of queued invalidated
15944         regions, gives nice flicker-free scrolling.
15945
15946         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
15947         invalidated regions after every scroll.
15948
15949         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
15950         emulation in GDK. Its, for all practical purposes just a
15951         GtkViewport/GtkFixed hybrid now.
15952
15953         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
15954         (16-bit) structures as necessary instead of just casting.
15955
15956         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
15957         in terms of the structures from gdkregion-generic.c, using appropriate
15958         offsets from GDK to X11 coordinates. Cache clip mask and
15959         origin and ts origin locally and only flush to the server
15960         when drawing, to avoid constantly setting and resetting these
15961         values when offsetting GC's for scrolling and backing pixmaps.
15962
15963         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
15964
15965         * gtk/gtkcontainer.c: Call process_all_updates at end
15966         of resizing to reduce flicker. (Avoids having redraw
15967         lag arbitrarily behind resize under some circumstances)
15968
15969         * gtk/gtkentry.c: Remove old backing store code, and simply take
15970         advantage of the new backing store capabilities of GDK.
15971
15972         * gtk/gtkmain.c: Simple implementation of widget backing
15973         store - simply push a paint while handling each expose.
15974         (Should really be configurable widget for widget.)
15975         
15976         * gtk/gtkwidget.c: Remove all the old complicated redraw
15977         code, and simply invalidate the GDK windows from
15978         gdk_window_queue_clear(), etc. (Sigh, so much carefully
15979         debugged complexity ... gone to the winds.)
15980
15981         Remove all the code for suppressing expose events while
15982         resizes are pending; this isn't needed since the invalid
15983         areas won't be processed until after the resizes are
15984         processed, since they are in a lower priority idle.
15985
15986 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
15987
15988         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
15989         and height of dest rectangle for non-intersecting rectangles.
15990
15991 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
15992
15993         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
15994         for GdkRectangle.
15995
15996 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
15997
15998         * gdk/gdk{events,image,private,types,window}.h
15999          gdk/x11/gdkinputprivate.h: Change all coordinates
16000          from int16 to int. Also, Change width and height from
16001          unsigned to signed to avoid all the stupid C 
16002          signedness bugs.
16003
16004 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
16005
16006         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
16007         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
16008         Add some more detailed checking.
16009
16010         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
16011         New function to retrieve the depth of a drawable.
16012
16013         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
16014         field, reorder fields to save memory. 
16015
16016 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
16017
16018         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
16019         of the background image instead of scaling the background down to
16020         a line.
16021
16022         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
16023         which temporarily set slider to wrong size.
16024
16025         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
16026         queue_clear().
16027
16028 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
16029
16030 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
16031
16032         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
16033
16034 2000-03-17  Tor Lillqvist  <tml@iki.fi>
16035
16036         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
16037         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
16038
16039         * gdk/win32/gdkfont-win32.c
16040         * gdk/win32/gdkproperty-win32.c
16041         * gdk/win32/gdkselection-win32.c
16042         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
16043         now declared such.
16044
16045 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
16046
16047         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
16048
16049 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
16050
16051         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
16052         is called without trapping X errors.
16053
16054 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
16055
16056         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
16057         way into the fontset lists.
16058
16059 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
16060
16061         * gtk/gtkthemes.h: add extern "C" scope.
16062
16063 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
16064
16065         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
16066         to make appends to the list constant. (gtk-guy-990901-0.patch)
16067
16068 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
16069
16070         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
16071         for the typename hash table.
16072
16073 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
16074
16075         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
16076         to make sure we never divide by zero. 
16077         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
16078
16079 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
16080
16081         * gtk/gtkfontsel.c: Apply patch from
16082         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
16083         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
16084
16085         Also, some cleanups in atom handling.
16086
16087 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
16088
16089         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
16090         not GtkWidget.
16091
16092 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
16093
16094         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
16095         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
16096         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
16097         more guint wrap-around bugs before going to bed.
16098
16099 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
16100
16101         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
16102         guint wrap arounds in allocation.width.
16103
16104         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
16105         process untill we fit the allocation given.
16106
16107 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
16108
16109         * gtk/gtkwidget.c:
16110         (gtk_widget_unrealize): guard widget access with ref/unref
16111         around signal emission.
16112         (gtk_widget_hide): same here, but also check its destroyed
16113         state before queueing a resize.
16114
16115 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
16116
16117         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
16118         of gtk_default_insensitive_bg as insensitive base color.
16119
16120         * gtk/gtktext.c (gtk_text_style_set): set the background color according
16121         to the widget's state.
16122         (gtk_text_realize): same here.
16123         (gtk_text_state_changed): same here.
16124         (draw_bg_rect): compare background color against base[] from
16125         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
16126
16127 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
16128
16129         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
16130         grabs are active, unless a delete event is send to the toplevel
16131         of the currently grab holding widget.
16132
16133 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
16134
16135         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
16136         debugging g_print's.
16137
16138 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
16139
16140         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
16141         ever make the scrolled-window requisition ever depend on the 
16142         visibility state of the scrollbars for the AUTOMATIC policy. 
16143         This breaks the GTK+ requisition model, and causes loops.
16144
16145 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
16146
16147         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
16148         the default font to avoid problems with XFree86-4.0 where the
16149         default charset is iso10646-1, not iso8859-1.
16150
16151 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
16152
16153         * acinclude.m4
16154         * config.guess
16155         * config.sub
16156         * ltconfig
16157         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
16158
16159         * gtk/Makefile.am: minor cosmetic consistency tweak
16160
16161 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
16162
16163         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
16164         the activate_time to 0, so that we handle a quick
16165         press/release press/release properly and don't suppress
16166         the second release. (Red Hat bug #7545)
16167
16168 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
16169
16170         * gtk/gtkctree.c (row_delete):
16171         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
16172         bugs with destruction notifier, *always* update internal
16173         structures *before* calling user code.
16174
16175 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
16176
16177         A few more fixes for bug #5487, #2051, #2677.
16178         * gtk/gtkclist.c : 
16179         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
16180         not GDK_BUTTON_PRESS.
16181         (resync_selection): resync only if selection_mode is
16182         GTK_SELECTION_EXTENDED
16183         * gtk/gtkctree.c (resync_selection): same here
16184
16185 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
16186
16187         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
16188         gdk_drag_get_selection() and gtk_menu_detach().
16189
16190         [ From Jeroen Ruigrok/Asmodai ]
16191
16192 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
16193
16194         * gtk/gtknotebook.c (gtk_notebook_size_request): 
16195         page->tab_label can be NULL.
16196
16197 2000-01-25  Havoc Pennington  <hp@pobox.com>
16198         
16199         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
16200         arg is boolean
16201
16202         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
16203
16204         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
16205
16206         * gdk/gdkproperty.c (gdk_property_get): return boolean
16207
16208         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
16209
16210         * gdk/gdkim.c (gdk_im_ready): return boolean
16211
16212         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
16213
16214         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
16215         glib clash, should fix glib)
16216
16217         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
16218         (gdk_get_show_events): return gboolean, and canonicalize 
16219         to TRUE/FALSE
16220
16221         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
16222         colormap is private
16223         (gdk_colors_alloc): gboolean whether to be contiguous
16224         (gdk_color_equal): return gboolean since we are a predicate
16225         and not a qsort() (this looks semi-wrong due to glib breakage,
16226         IMO glib should be fixed)
16227         
16228         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
16229         (gdk_get_use_xshm): return gboolean
16230         (gdk_pointer_is_grabbed): return gboolean
16231
16232         * gdk/gdk.h: Change prototypes to match all the above changes,
16233         and re-run egtk-format-protos as required.
16234
16235 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
16236
16237         * gtk/gtkctree.c (resync_selection): 
16238         * gtk/gtkclist.c (resync_selection):
16239
16240         Return immediately if clist->drag_pos < 0. This is a workaround
16241         for the corrupt state that the clist gets into when a
16242         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
16243
16244         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
16245         
16246         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
16247         variable from recent commit.
16248
16249 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
16250
16251         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
16252
16253 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
16254
16255         * gtk/Makefile.am: prefix all autogenerated source that get build in
16256         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
16257         in builddir. since we subsequently cd into srcdir for autogeneration,
16258         the paths have to be stripped from the target file names, thusly we
16259         use $(@F) as target names now.
16260         put a comment about configure.in's --disable-rebuilds option,
16261         which can be used for non-writable source directories, for development
16262         setups though, srcdir has to be *writable*.
16263
16264 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
16265
16266         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
16267           Finish the job of allowing event to be NULL.
16268           (Fixes bug #4283, reported by Chris Blizzard)
16269
16270         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
16271           things so that the cursor appears on screen, properly
16272           take into account INNER_BORDER.
16273           (Fixes bug #4754, reported by Antonio Campos)
16274
16275 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
16276
16277         * gtk/gtknotebook.c (gtk_notebook_map): Don't
16278           show the tab_label unless it itself is visible.
16279
16280           gtk/gtknotebook.c (gtk_notebook_size_request):
16281           Do a better job of making sure that the visibility
16282           of the tab label corresponds to whether it should
16283           be mapped or not.
16284
16285 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
16286
16287         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
16288           Use the requisition, not the allocation, since the
16289           allocation has not necessarily been computed yet.
16290           (Pointed out by Eugene Osintsev)
16291
16292 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
16293
16294         * gtk/gtkstyle.c (gtk_style_new): Dont' set
16295           style/base[GTK_STATE_INSENSITIVE] both to
16296           gtk_default_insensitive_bg!
16297           (Bug #2187, reported by Jonathan Blandford)
16298
16299         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
16300           Add Alt_L, Alt_R to list of invalid accelerators.
16301           (Bug #3736, reported by Vlad Harchev)
16302
16303 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
16304
16305         * gtk/gtkfilesel.c (open_ref_dir): Fix several
16306         bugs which occured after an attempt to open 
16307         invalid home directory left cmpl_state->reference_dir == NULL.
16308
16309          - completion on files in home directory didn't work
16310          - completion on an empty string caused  segfault
16311
16312          (Bug #3678, reported by Steve Ratcliffe)
16313
16314         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
16315         cut and paste error that was causing scales to
16316         be incorrectly positioned.
16317         (Bug #2956,
16318          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
16319
16320 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
16321
16322         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
16323         when checking for dcgettext, if we've found we needed
16324         it for dgettext.
16325 +
16326 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
16327
16328         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
16329         queue_clear on NO_WINDOW widgets during a reparent,
16330         since at that point the window and widget heirarchies
16331         are out of sync. This stops crashing in some cases
16332         (the scrolled window reparent test, for instance), and
16333         _probably_ won't cause drawing errors.
16334
16335         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
16336         test do what it was supposed to do and be robust against
16337         window closings, etc. (Bug #2443)
16338
16339 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
16340
16341         * gtk/gtkentry.c: Fix return values on mouse events.
16342         (Bug #2686, Sky <seb_sky@yahoo.com>)
16343
16344         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
16345         (pointed out by George Lebl)
16346
16347         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
16348         (From Ettore Perazzoli  <ettore@helixcode.com>)
16349  
16350 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
16351
16352         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
16353         clicks between rows or outside calender area correctly.
16354         (Patch from Damon Chaplin)
16355
16356         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
16357         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
16358           Call destroy function when overwriting existing data. 
16359           (Pointed out by Damon Chaplin)
16360
16361 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
16362
16363         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
16364           which was causing problems on various systems with Xmu.
16365           This hasn't been needed for a very long time.
16366           (Fixes #1185 3167)
16367
16368 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
16369
16370         * gdk/gdki18n.h: Include <ctype.h> when defining
16371           gdk_isw* in terms of is* as a fallback.
16372           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
16373
16374 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
16375
16376         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
16377           realize the widget when it is size allocated!
16378           (old, old bug)
16379
16380         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
16381           Removed unused call to gdk_window_get_size() that
16382           showed up when the above was fixed.
16383
16384 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
16385
16386         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
16387           fix up widget->window when the widget is a
16388           NO_WINDOW container widget.
16389
16390 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
16391
16392         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
16393           to account for the fact that feof() does _not_ 
16394           return TRUE on errors, and thus avoid infinite loops
16395           when trying to use gdk_pixmap_create_from_xpm()
16396           on unreadable values.
16397
16398 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
16399
16400         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
16401
16402 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
16403
16404         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
16405           gdk_gc_set_dashes to take gint8 instead of gchar to
16406           make it clearer that it is _not_ a NULL terminated string.
16407
16408         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
16409           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
16410           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
16411           arguments.
16412
16413 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
16414
16415         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
16416         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
16417         background size relative to our allocation, guard against small
16418         allocations, we may have not yet been size allocated.
16419
16420 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
16421
16422         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
16423         not just version == 3. We implement all 3 + most of 4 - 
16424         (we don't support matching text/plain;charset=iso-8859-1
16425         to a dest that expects text/plain). We'll still advertise
16426         3 to be safe, but any client implementing version >= 3
16427         must interoperate with 3.
16428         
16429 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
16430
16431         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
16432         background and gc members, add a warning in gtk_tooltips_set_color()
16433         indicating that this function is deprecated.
16434
16435 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
16436
16437         * docs/gtkfaq.sgml: FAQ Update:
16438           - Minor cleanups (Emmanuel, me)
16439           - New questions:
16440                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
16441                 How can I retrieve the text from a GtkMenuItem? (timj)
16442                 How do I validate/limit/filter the input to a GtkEntry? (me)
16443                 Memory does not seem to be released when I free the list
16444                         nodes I've allocated (timj)
16445
16446 2000-03-07  Tor Lillqvist  <tml@iki.fi>
16447
16448         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
16449         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
16450         for which it is no use to call GetLastError onWin9x.
16451         (gdk_other_api_failed) New function, for general error
16452         reporting without calling GetLastError.
16453         (gdk_win32_api_failed) OTOH, this function always calls
16454         GetLastError. (gdk_win32_last_error_string) Remove this function,
16455         GLib has the equivalent now.
16456
16457         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
16458         call them with function name, file name and line number in the
16459         arguments.
16460
16461         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
16462         functions.
16463         
16464         * gtk/gtk.def: Add some missing entry points.
16465
16466         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
16467         gtk_paned_set_gutter_size, which don't exist any longer, as void.
16468         
16469         Fixes by Hans Breuer:
16470
16471         * gdk/makefile.msc: Update for debugging.
16472
16473         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
16474         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
16475         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
16476         in the dash_list.
16477
16478         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
16479         the x11 backend.
16480
16481         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
16482
16483         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
16484
16485 2000-03-04  Tor Lillqvist  <tml@iki.fi>
16486
16487         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
16488         just pixel value of background colour.
16489
16490         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
16491         containing code snippet previously duplicated in a couple of
16492         places.
16493         
16494         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
16495         gdk_colormap_color.
16496
16497         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
16498         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
16499         events for autorepeated Shift, Control and Alt keys. Use
16500         gdk_colormap_color.
16501
16502         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
16503         pointer is inside the window the cursor of which we are setting,
16504         call SetCursor immediately.
16505
16506         * gdk/win32/makefile.cygwin
16507         * gtk/makefile.cygwin: If we don't have the build number stamp
16508         file, use zero.
16509
16510         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
16511         gtk_paned_set_gutter_size as empty.
16512
16513         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
16514         
16515 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
16516
16517         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
16518           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
16519           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
16520           docs/gtk_tut.sgml docs/gtk.texi TODO:
16521
16522           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
16523
16524 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
16525
16526         * gtk/gtkcalendar.c: Implement num_marked_dates,
16527           and don't emit mutiple day_selected signals on
16528           month_prev.
16529
16530 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
16531
16532         * docs/make-todo (lineno): let title and logo be configurable so
16533         that GNOME can use this script too.
16534
16535         * TODO.xml: added logourl and a title
16536
16537 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
16538
16539         * TODO.xml: Added some UI items, and an explanatory
16540         comment at the top of the file.
16541
16542 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
16543
16544         * TODO.xml: some updates, added abunch of new entries.
16545         a note for those fiddeling with this file, when done
16546         with it, invoke:
16547         $ ./docs/make-todo TODO.xml >/dev/null
16548         and correct output errors before comitting changes.
16549
16550 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
16551
16552         * TODO.xml: Added XML-structured TODO file.
16553         * docs/make-todo: python script to turn TODO.xml into
16554           pretty XML output. 
16555
16556 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
16557
16558         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
16559         the function to let it draw the seven dots, instead of the old,
16560         much maligned, method.
16561         (draw_dot): New function to draw a dot.
16562
16563         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
16564         to draw the handle inside the border width as opposed to outside.
16565         Use paint function instead of gdk_draw_point.
16566
16567         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
16568         to draw the handle inside the border width as opposed to outside.
16569         Use paint function instead of gdk_draw_point.
16570
16571         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
16572         Change indenting to be more GTK like.
16573
16574 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
16575
16576         * docs/gtk_tut.sgml: New section on GtkCalendar
16577         * examples/calendar: Update example code
16578
16579 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
16580
16581         * docs/gtkfaq.sgml: FAQ Update
16582
16583 2000-02-19  Anders Carlsson  <andersca@gnu.org>
16584
16585         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
16586         to prevent the scroll event to be propagated upwards.
16587
16588 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
16589
16590         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
16591         OwnerGrabButtonMask from button entries for
16592         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
16593
16594         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
16595         to the event mask (which will result in button/press release
16596         being added to the event mask on Unix) so scrolling works
16597         for layouts in scroll windows.
16598
16599         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
16600
16601         Patch from Anders Carlsson  <andersca@gnu.org> to add
16602         a scroll event.
16603
16604         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
16605         scrolling to the "Test Scrolling" part of testgtk.
16606  
16607         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
16608  
16609         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
16610         it against GDK_SCROLL.
16611  
16612         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
16613         way of mouse wheel scrolling.
16614  
16615         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
16616  
16617         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
16618  
16619         * gtk/gtkmain.c: Removed previous mouse wheel hack.
16620  
16621         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
16622         gdk_event_mask_table.
16623  
16624         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
16625         GdkEventScroll handler.
16626  
16627         * gdk/gdkevents.h: Added GdkEventScroll structure.
16628  
16629 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
16630
16631         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
16632         and Anders Carlsson to change the Paned widgets so that they
16633         can be dragged from anywhere along the length. Also change
16634         the way that this is drawn to make this apparent.
16635
16636         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
16637         from George Lebl to check that option_menu->menu is present
16638         before getting history.
16639
16640 2000-02-14  Tor Lillqvist  <tml@iki.fi>
16641
16642         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
16643         before the assertion for non-NULL segment list.
16644
16645         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
16646         Seems that pattern brushes *must* be 8x8 pixels! At least on my
16647         machine, but it might be display driver dependent. Sigh, so make
16648         sure the stipple is that size. Does Windows suck or what?
16649
16650         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
16651         places.
16652
16653 2000-02-13  Havoc Pennington  <hp@pobox.com>
16654
16655         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
16656         refcount to 1
16657         (gdk_cursor_new): init refcount to 1
16658
16659         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
16660
16661 2000-02-13  Tor Lillqvist  <tml@iki.fi>
16662
16663         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
16664         so that we don't have to do unnecessary settings to the HDC.
16665
16666         * gdk/win32/gdkdrawable-win32.c
16667         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
16668         gdk_gc_predraw.
16669
16670         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
16671         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
16672         GDI paths, call WidenPath to get the outline of the stroken path,
16673         and then fill the outline (with the brush that was built from the
16674         stipple).
16675
16676         * gdk/win32/gdkgc-win32.c: Factor out common code from
16677         _gdk_win32_gc_new and gdk_win32_gc_set_values into
16678         gdk_win32_gc_values_to_win32values. Use correct colour for
16679         SetBkColor() (Until now the code actually used a random colour in
16680         the call to SetBkColor()... but that didn't show up as not many
16681         GDI APIs use the background colour. Pattern (opaque stippled)
16682         brushes do.)
16683
16684         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
16685         gdk_win32_api_failed): New functions for error logging.
16686
16687         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
16688         WIN32_API_FAILED to call them, passing function or file name and
16689         line number.
16690
16691         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
16692
16693         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
16694         GdkColor for foreground and background in GdkGCWin32Data.
16695
16696         * gdk/makefile.cygwin: Link in the resource object separately.
16697
16698         * gdk/win32/rc/gdk.rc
16699         * gtk/gtk.rc (New file)
16700         * gdk/win32/makefile.cygwin
16701         * gtk/makefile.cygwin: Update build number in DLLs automatically,
16702         as in GLib.
16703
16704 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
16705
16706         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
16707         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
16708         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
16709         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
16710         parameters given and cursor->ref_count. coding style fixups.
16711
16712         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
16713         not GtkWidget.
16714         
16715         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
16716         fix up widget macros and add _GET_CLASS() variant.
16717         
16718         * gtk/*.c: some GtkType fixups.
16719
16720 2000-02-09  Tor Lillqvist  <tml@iki.fi>
16721
16722         * gdk/win32/gdkproperty-win32.c
16723         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
16724         were reversed.
16725
16726 2000-02-04  Tor Lillqvist  <tml@iki.fi>
16727
16728         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
16729         g_filename_to_utf8 to convert the font names Windows gives us from
16730         whatever is the default codepage to UTF-8.
16731         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
16732         in the other direction.
16733
16734         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
16735         error in debugging output.
16736
16737 2000-02-02  Tor Lillqvist  <tml@iki.fi>
16738
16739         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
16740         and height parameters to gdk_window_clear_area(). Not minus one.
16741
16742 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
16743
16744         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
16745         checks if the widget passed to gtk_drag_get_data() was not the
16746         dest widget.
16747
16748 2000-02-01  Tor Lillqvist  <tml@iki.fi>
16749
16750         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
16751         g_filename_from_utf8 functions (which were added a moment ago to
16752         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
16753         size buffers.
16754
16755         gtk_file_selection_get_filename returns the filename in the C
16756         runtime encoding. It calls g_filename_from_utf8, but copies the
16757         returned string to a static buffer, which is returned. I think
16758         this is better than returning the result from g_filename_from_utf8
16759         directly, which would mean all apps that use it would have to free
16760         the return value. Or should this function care about this issue at
16761         all? Maybe a new function with clearly defined semantics.
16762
16763         * gtk/gtkfilesel.h: Add comment about
16764         gtk_file_selection_get_filename returning the filename in the C
16765         runtime's encoding.
16766
16767         * README.win32
16768         * gdk/gdk.def
16769         * gdk/makefile.{cygwin,msc}
16770         * gtk/gtk.def: Updates.
16771
16772         * gdk/gdkcursor-win32.c: Initialise refcount.
16773
16774 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
16775
16776         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
16777
16778 2000-01-30  Havoc Pennington  <hp@pobox.com>
16779
16780         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
16781         destroy
16782
16783         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
16784
16785         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
16786         implemented in platform-specific code
16787
16788         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
16789
16790         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
16791         underscore in front
16792
16793         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
16794         put an underscore in front
16795
16796         * gdk/gdkcursor.c: new file, implements
16797         gdk_cursor_ref/gdk_cursor_unref
16798
16799         * gdk/gdkcursor.h: Refcount GdkCursor
16800
16801         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
16802
16803 2000-01-29  Tor Lillqvist  <tml@iki.fi>
16804
16805         * gdk/gdkwindow.h
16806         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
16807
16808 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
16809
16810         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
16811         structures to properly inherit from GtkWidget not GtkBin.
16812
16813 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
16814
16815         * gtk+.spec.in: Added lib/gtk+/include/* to %files
16816         (bug #5178 - Peter Wainright)
16817         
16818         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
16819         so that it will be installed.
16820         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
16821
16822 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
16823
16824         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
16825         for the GtkStyleClass vtable const.
16826
16827         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
16828         take a const string argument like GtkTranslateFunc. This will
16829         require changes in use code.
16830
16831 2000-01-19  Tor Lillqvist  <tml@iki.fi>
16832
16833         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
16834         semantics (to mimic the X11 backend, which just calls XClearArea)
16835         is to check for zero width (and height), and in that case use the
16836         window's width minus x (height minus y). This fixes for instance
16837         some redraw problems with gtkclist, which were easily noticeable
16838         in the gtk file selection widget.
16839
16840         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
16841         windows.
16842
16843 2000-01-13  Tor Lillqvist  <tml@iki.fi>
16844
16845         * configure.in
16846         * gdk/Makefile.am
16847         * gdk/x11/Makefile.am
16848         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
16849         (bug #5177).
16850         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
16851         out later.
16852
16853 2000-01-09  Tor Lillqvist  <tml@iki.fi>
16854
16855         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
16856         WM_MOVE for iconified or invisible windows. This fixes various
16857         problems when minimising windows. Thanks to Bernd Herd.
16858
16859 2000-01-05  Tor Lillqvist  <tml@iki.fi>
16860
16861         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
16862         backend's draw_lines method, not draw_points.
16863
16864 2000-01-02  Tor Lillqvist  <tml@iki.fi>
16865
16866         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
16867         before Owen's reorganisation: Don't have queued_events and
16868         queued_tail statics in this file, but use gdk_queued_events and
16869         gdk_queued_tail. This makes exposure event compression work again.
16870
16871         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
16872         seem to be needed?
16873
16874 1999-12-30  Tor Lillqvist  <tml@iki.fi>
16875
16876         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
16877         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
16878         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
16879         doesn't do anything.
16880
16881         * gdk/gdk.def: Add gdk_xid_table_insert.
16882
16883         * gdk/win32/gdkprivate-win32.h
16884         * gdk/win32/gdkevents-win32.c
16885         * gdk/win32/gdkinput-win32.c
16886         
16887         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
16888         extension_events field in the GdkWindowWin32Data struct. Use only
16889         the extension_events field in GdkWindowPrivate. Previously one was
16890         set, and the other one tested, which broke tablet
16891         functionality. Thanks to Keishi Suenaga for pointing this out.
16892
16893 1999-12-18  Tor Lillqvist  <tml@iki.fi>
16894
16895         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
16896         When handling a single character (text length == 1), don't handle
16897         it as if it was UTF-8.
16898
16899 1999-12-11  Tor Lillqvist  <tml@iki.fi>
16900
16901         * Makefile.am: Distribute README.win32.
16902         
16903         * gdk/Makefile.am
16904         * gdk/win32/Makefile.am: Distribute Win32 files.
16905
16906         * gdk/makefile.msc: New file.
16907
16908         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
16909         after label).
16910
16911         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
16912         gdk_error_code as GDKVAR, as they are referred outside GDK.
16913
16914         * gdk/win32/makefile.msc: Update.
16915
16916         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
16917         tweaks. Check only if at least one of those Unicode subrange bits
16918         we care for is set. If no code page bits are set, guess (wildly)
16919         based on the charset.
16920
16921         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
16922
16923         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
16924         non-NULL.
16925
16926         * gtk/gtkdnd.c
16927         * gtk/gtklayout.c
16928         * gtk/gtkplug.c
16929         * gtk/gtkselection.c
16930         * gtk/gtksocket.c
16931         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
16932         appropriate. There must be a cleaner way to handle this?
16933
16934         * gtk/gtkrc.c: Must include windows.h on Win32.
16935
16936         * gtk/testgtk.c: No need to include gdkx.h.
16937
16938         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
16939
16940 1999-12-07  Tor Lillqvist  <tml@iki.fi>
16941
16942         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
16943         the rbearing is set to the same as the width, but this should be
16944         fixed.
16945
16946 1999-12-06  Tor Lillqvist  <tml@iki.fi>
16947
16948         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
16949         function. If Windows doesn't tell us what Unicode subranges a font
16950         covers, guesstimate based on the codepages it covers. This will
16951         hopefully help those Windows versions or fonts that don't give us
16952         any useful Unicode subrange information with GetTextCharsetInfo.
16953         Call this function in gdk_font_load_internal.
16954
16955         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
16956         minor changes.
16957
16958 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
16959
16960         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
16961         New function, long needed.
16962
16963 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
16964
16965         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
16966         only_if_exists argument of gdk_atom_intern to
16967         bool.
16968
16969 1999-11-25  Tor Lillqvist  <tml@iki.fi>
16970
16971         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
16972         Fix two copy&paste errors.
16973
16974         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
16975         win32 has changed.
16976
16977         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
16978         GdkWin32SingleFont struct.
16979
16980         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
16981         subranges of loaded fonts. Clear font signature first, in case
16982         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
16983         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
16984
16985         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
16986         Unoffset clip region.
16987
16988 1999-11-23  Tor Lillqvist  <tml@iki.fi>
16989
16990         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
16991         event->any.window before calling filter functions.
16992
16993 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
16994
16995         * gtk/gtkgamma.h: Adapt cast macros to standard.
16996
16997 [ Merges from 1.2 ]
16998
16999 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
17000
17001         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
17002         If translation does not include a '/', use entire
17003         translation instead of crashing.
17004
17005 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
17006
17007         * docs/gtk_tut.sgml:
17008         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
17009
17010 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
17011
17012         * gtk/gtkselection.c (gtk_target_list_remove): Use
17013         g_list_remove_link, not g_list_remove.
17014
17015         [ From Geert Bevin <gbevin@thunderstorms.org> ]
17016         
17017 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
17018
17019         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
17020         statement upon unselection (how the heck did that slip in?).
17021
17022 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
17023
17024         * gtk/gtktext.c (gtk_text_freeze): 
17025         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
17026         in frozen state (and aparently crashes). patch provided by Anders
17027         Melchiorsen <and@kampsax.dtu.dk>.
17028
17029 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
17030
17031         * fix insensitive default/focus widget activation,
17032         reported by Matt Goodall <mgg@isotek.co.uk>.
17033
17034         * gtk/gtkwindow.c (gtk_window_key_press_event): 
17035         (gtk_window_activate_default):
17036         (gtk_window_activate_focus):
17037         return handled=FALSE for actiavtion of insensitive default
17038         widgets. return handled=TRUE for activation of insensitive
17039         focus widgets. don't activate in either case.
17040
17041 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
17042
17043         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
17044         and $glib_cflags to match library order and in the
17045         theory that an old version of GLib is more likely to
17046         be in the include directory for X then vice-versa.
17047         (Bug #2776)
17048
17049 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
17050
17051         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
17052         to determine the locale for fontsets, not LC_MESSAGES;
17053         the user may want English messages with a handling
17054         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
17055         will still be broken) (Bug #2891)
17056
17057 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
17058
17059         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
17060
17061 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
17062
17063         * gtk/gtkrc.ko: Changed the Korean default fontset.
17064
17065 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
17066
17067         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
17068         where when scrolling to the left or top double exposes
17069         were done, causing major slowdowns.
17070
17071 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
17072
17073         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
17074         names to lowercase and alphanumeric, before looking
17075         them up.
17076
17077         * gtk/Makefile.am: Install codeset variant gtkrc files
17078         with normalized names.
17079
17080 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
17081
17082         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
17083         popup menus when the menu is already visible, but its parent
17084         is still hidden, (happens after tornoff window got hidden).
17085
17086 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
17087
17088         * gtk/Makefile.am (install-data-local): Fix
17089         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
17090         deleted, causing error messages on install.
17091
17092 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
17093
17094         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
17095         the handle as well, since we now sometimes ignore
17096         exposes on the handle while resizing.
17097
17098 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
17099
17100         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
17101         extra g_free introduced in one of the last one or two 
17102         commits.
17103
17104 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
17105
17106         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
17107         consistent, put each style that a gtkrc.* file creates
17108         in a unique namespace, remove old files before installing.
17109
17110 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
17111
17112         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
17113         gtk_rc_init is called multiple times. (Yes, people who
17114         do that have bugs in their code.)
17115
17116 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
17117
17118         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
17119         Remove it since it's generated by the Makefile anyway
17120
17121 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
17122
17123         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
17124         device->info.axes for core pointer.
17125
17126 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
17127
17128         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
17129         idle_id, to deal with obsolete, broken C libraries.
17130
17131 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
17132
17133         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
17134         allocation->x/y twice!
17135
17136         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
17137         consistent with gtk_vscale_pos_trough().
17138
17139 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
17140
17141         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
17142         be queueing a resize on a toplevel container between
17143         the time we show it and when we map it. So, we need
17144         to test GTK_WIDGET_VISIBLE() for toplevels, and only
17145         use GTK_WIDGET_DRAWABLE() for child windows.
17146
17147 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
17148
17149         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
17150         (fixes bug #2144)
17151
17152 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
17153
17154         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
17155         container DRAWABLE (instead of VISIBLE), so we don't queue
17156         resizes on non-toplevel containers.
17157
17158 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
17159
17160         * gtk/gtkselection.[ch]: Make the data argument
17161         const guchar *.
17162
17163 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
17164
17165         * gtk/gtkwindow.c: Try to behave sensibly if 
17166         the focus widget is the window itself. (Should
17167         we allow this at all?)
17168
17169 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
17170
17171         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
17172         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
17173         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
17174         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
17175         in prototypes and implementations consistent (Tomas Ogren).
17176
17177         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
17178         before the widget is unparented (reported by damon).
17179
17180         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
17181         since we provide unsigned data anyways.
17182
17183 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
17184
17185         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
17186         the call to gtk_tooltips_layout_text() until later.
17187
17188         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
17189         Call gtk_widget_ensure_style() before using the style.
17190
17191 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
17192
17193         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
17194         for old widgets that don't propagate draws to all
17195         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
17196
17197 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
17198
17199         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
17200         for a redraw but just the widget that requested the resize.
17201
17202 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
17203
17204         * gtk/gtkcontainer.c: added new widget level method
17205         gtk_container_set_reallocate_redraws() and a GtkContainer flag
17206         reallocate_redraws : 1 to reflect the setting, exported this through
17207         the argument system as a boolean ::reallocate_redraws.
17208
17209         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
17210         on the widget because the allocation changes, do so as well for
17211         widget->parent if the parent has reallocate_redraws set to TRUE.
17212         with that containers requesting reallocation redraws get automatically
17213         redrawn if their children changed allocation (this unfortunately
17214         affects also other children that didn't change allocation, but we
17215         cannot work around that before 1.3).
17216
17217 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
17218
17219         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
17220         _and_ height are >0 (not _or_).
17221
17222         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
17223         instead of gtk_container_queue_resize(), which is a core gtk internal
17224         function (must have been on crack when i queued that).
17225
17226         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
17227         we can check more reliably if we want to discard expose events.
17228         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
17229         flag.
17230         
17231         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
17232         we simply trust these events. for deciding whether to discard exposes,
17233         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
17234         
17235 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
17236
17237         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
17238         queues of areas that are completely off screen.
17239
17240         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
17241         logic for handleboxes.
17242
17243         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
17244         check on width/height.
17245
17246 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
17247
17248         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
17249         we are fine with using $@ the way we do (if we actually encounter
17250         brokeness with $@ in VPATH builds because of additional path prefixes,
17251         we need to use $(@F) actually).
17252
17253 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
17254
17255         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
17256         short lived bugs, that would allow language bindings to do surgeries
17257         to our guts.
17258
17259 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
17260
17261         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
17262         where comparison was being done against an uninitialized
17263         value causing intermittant results depending on
17264         compiler flags. Also make it clearer that we aren't
17265         ever initializing the child as 0x0 (though this will
17266         be caught in gtk_widget_size_allocate())
17267
17268 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
17269
17270         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
17271         gtk_window_unset_transient_for() call after we do checks
17272         involving the old transient parent.
17273         [ From Lance Capser <lmc@cyberhighway.net> ]
17274
17275 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
17276
17277         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
17278         an empty file.
17279
17280 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
17281
17282         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
17283         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
17284
17285 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
17286
17287         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
17288         `$@' is valid only in the build dir, not after we've done 
17289         `cd $srcdir'.  Also use `test -f' instead of less portable
17290         `test -e'.
17291
17292 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
17293
17294         * gtk/gtktext.c (correct_cache_insert): Rewrite
17295          for simplicity, and hopefully correctness.
17296          (Fixes bug #1322, which was a segfault when
17297           on some insertions with the properties around
17298           the insertion set up just wrong.)
17299
17300         * gtk/gtktext.c (gtk_text_adjustment): When we receive
17301          a "changed" signal, clamp the new value to the adjustment
17302          bounds to avoid segfaulting if someone tries to change
17303          the adjustment to a bogus value. (Bug #1795)
17304
17305 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
17306
17307         * gtk/gtkmain.c: Ignore unexpected destroy notifies
17308         for children, for toplevel windows handle them
17309         like delete_event.
17310
17311         * gtk/gtkplug.c: Add an unrealize handler so that
17312         we unref plug->socket_window when we are done
17313         with it.
17314
17315 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
17316
17317         * gtk/gtktext.c (clear_area): Fix stupid signedness
17318          problem that was causing background to sometimes
17319          be misaligned.
17320
17321 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
17322
17323         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
17324         
17325         * gtk/gtkmenu.c (gtk_menu_position): Make
17326          sure we never position menus with negative x, y,
17327          since gtk_widget_set_uposition() can't handle that.
17328
17329         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
17330          Modify the positioning code a bit so that we always
17331          put the top-left corner onscreen. (This is for
17332          UI reasons, gtk_menu_position() now takes care of
17333          gtk_widet_set_uposition() brokeness.)
17334
17335 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
17336
17337         * gtk/Makefile.am: fixed up things for -jx, x > 1.
17338
17339 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
17340
17341         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
17342           RC style that is passed in. The lack of the ref
17343           before was a bug. If people worked around this
17344           bug, this will introduce a slight memory leak
17345           in their code. The code should typically look like:
17346
17347             rc_style = gtk_rc_style_new ();
17348             [...]
17349             gtk_widget_modify_style (widget, rc_style);
17350             gtk_rc_style_unref (rc_style);
17351
17352         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
17353           the style if it was already set.
17354
17355         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
17356           style if it was set before.
17357
17358 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
17359
17360         * gtk/testgtk.c (main): Add a check to see if we
17361           are being run from the correct directory and
17362           to quit nicely if we are not.
17363
17364         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
17365           static.
17366
17367 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
17368
17369         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
17370
17371         * gtk/gtkwindow.c:
17372         queue resizes unconditionally (gtk_widget_queue_resize will figure
17373         what to do if the window is not realized).
17374         (gtk_window_move_resize): only recenter the window
17375         for GTK_WIN_POS_CENTER_ALWAYS.
17376         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
17377         the same way as GTK_WIN_POS_CENTER.
17378
17379 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
17380
17381         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
17382         with (!(info->last_flags & GDK_HINT_POS)) instead of
17383         (!info->last_flags & GDK_HINT_POS).
17384
17385         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
17386         new_height unconditionally, because we use these values even if
17387         !default_size_changed && !hints_changed.
17388         comented the (default_size_changed || hints_changed) case with
17389         respect to resize rejects from the window manager.
17390
17391         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
17392         in the zvt condition hack, since this includes the window hints, set
17393         the hints after the handling_resize case.
17394
17395         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
17396         window is initially shown with to the geometry.
17397
17398 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
17399
17400         * gtk/gtkwindow.c (gtk_window_move_resize):
17401         s/size_changed/default_size_changed/g so i know what's
17402         really going on (frying brain on smaller flame now).
17403
17404 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
17405
17406         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
17407         we have size_changed upon handling_resize. this is a gross
17408         workaround for the broken zvt widget and should be removed in
17409         1.3 again (search for FIXME).
17410         Owen provided an accurate comment for this:
17411
17412         /* We could be here for two reasons
17413          *  1) We coincidentally got a resize while handling
17414          *     another resize.
17415          *  2) Our computation of size_changed was completely
17416          *     screwed up, probably because one of our children
17417          *     is broken. It's probably a zvt widget.
17418          *
17419          * For 1), we could just go ahead and ask for the
17420          * new size right now, but doing that for 2)
17421          * might well be fighting the user (and can even
17422          * trigger a loop). Since we really don't want to
17423          * do that, we requeue a resize in hopes that
17424          * by the time it gets handled, the child has seen
17425          * the light and is willing to go along with the
17426          * new size. (this happens for the zvt widget, since
17427          * the size_allocate() above will have stored the
17428          * requisition corresponding to the new size in the
17429          * zvt widget)
17430          *
17431          * This doesn't buy us anything for 1), but it shouldn't
17432          * hurt us too badly, since it is what would have
17433          * happened if we had gotten the configure event before
17434          * the new size had been set.
17435          */
17436
17437 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
17438
17439         * gtk/gtkrc.c: deal properly with the fact that RC
17440           style lists may include rc styles more than once.
17441
17442         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
17443           unused static function.
17444
17445         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
17446           stack of directories of RC files currently being
17447           parsed and implicitely add them to pixmap path.
17448           
17449           This fixes a bug where the directory would get
17450           appended then overwritten by pixmap_path declarations.
17451
17452           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
17453
17454         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
17455           theme's exit function. (Patch from Peter Wainwright,
17456           bug #1454)
17457
17458         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
17459           Add a destroy() handler to take care of removing
17460           group for menu item. (Fixes bug #1197)
17461
17462         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
17463           in warning message.
17464
17465 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
17466
17467         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
17468         roundtrip to figure window's width and height, since we know that
17469         anyways from widget->allocation.
17470
17471 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
17472
17473         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
17474           the hints after we request the new size.
17475
17476 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
17477
17478         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
17479           GTK_WIDGET_REALIZED() assertion - we can compute the
17480           hints before we are realized.
17481
17482         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
17483           hint changing so that we have a value of hints_changed
17484           when we decide whether to constrain the window size.
17485
17486         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
17487
17488         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
17489         change back to G_MAXINT.
17490
17491 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
17492
17493         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
17494         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
17495         contain uncluttered values.
17496         (gtk_window_compute_hints): simply assert that window is realized
17497         and that geometry_info is valid, since we rely on this anyways.
17498         (gtk_window_constrain_size): major cleanups to the code.
17499         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
17500         for the base size, instead of the minimums. use 32767 as max width
17501         and height (like in gtkwindow.c) instead of G_MAXINT.
17502
17503 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
17504
17505         * cleaned up the GtkContainer.need_resize flag handling mess, we
17506         only need to force resize requests when we were prematurely
17507         realized, or our widget tree was modified when we were temporarily
17508         hidden. handling these cases directly upon showing the window (i.e.
17509         while the GdkWindow is still unmapped) avoids the need to wait for
17510         a configure event response and therefore makes the GUI more snappier
17511         and avoids blank windows during the roundtrip.
17512
17513         * gtk/gtkwidget.c:
17514         (gtk_widget_hide): 
17515         (gtk_widget_show): don't queue resizes on toplevels, they know how
17516         to deal with matters.
17517
17518         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
17519         flag directly for not visible resize containers and spare us unecessary
17520         signal emissions.
17521
17522         * gtk/gtkwindow.c:
17523         (gtk_window_realize): if we need to enforce premature size allocation,
17524         queue a container resize so we are correctly resized later on.
17525         (gtk_window_init):
17526         (gtk_window_size_request):
17527         don't freak around with the ->need_resize flag,
17528         gtk_container_queue_resize() will care about that.
17529         (gtk_window_show):
17530         handle initial resizing issues here, we can handle matters better in
17531         this place, especially since we know that our GdkWindow is still
17532         unmapped.
17533         (gtk_window_move_resize):
17534         don't care about ->need_resize at all.
17535         handle size changes properly that occoured while we waited for a
17536         configure event.
17537
17538 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
17539
17540         * gtk/gtkwidget.c (gtk_widget_set_uposition):
17541         * gtk/gtkwindow.[hc] (gtk_window_reposition):
17542         Move the hint setting code from gtk_widget_set_uposition
17543         to here; set the hints so that we respect any previously
17544         set geometry hints.
17545
17546         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
17547         change the window hints here or move the window here,
17548         let that happen in gtk_window_move_resize().
17549
17550 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
17551
17552         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
17553         to already queued resizes (and therefore redraws) on a widget, check
17554         its anchestry as well.
17555
17556         * gtk/gtkcontainer.c:
17557         (gtk_container_queue_resize): clear resize widgets for resize
17558         containers before aborting prematurely. this is especially important
17559         for toplevels which may need imemdiate processing or their resize
17560         handler to be queued.
17561         (gtk_container_dequeue_resize_handler): added new internal function for
17562         gtkwindow.c.
17563
17564         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
17565         configure event, take possible changes in window position into account
17566         as well.
17567         if we request a new window size, queue up a resize handler that will
17568         last until the configure event response arrives.
17569         combined the ->need_resize case (initial show) with the general size
17570         (hints) changed case and added even more comments.
17571         if !auto_shrink, only revert to the old allocation if the new size
17572         is smaller than the current allocation.
17573
17574 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
17575
17576         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
17577                            gtk_window_set_geometry_hints
17578                            gtk_window_set_default_size):
17579         When hints are set, queue a resize so that the hints will
17580         be eventually reset on the toplevel.
17581
17582         * gtk/gtkwindow.c (gtk_window_show): Use
17583         gtk_window_compute_default_size(). Clear the need_resize flag
17584         on the initail map so that we don't unnecessarily trigger the
17585         resize code.
17586
17587         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
17588         into separate functions. Compare the hints we are setting
17589         with what we set last time so that we can accurately
17590         tell when we need to reset the hints.
17591
17592         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
17593         function to figure out the size from requisition
17594         and default_size.
17595
17596         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
17597         from fvwm to constrain a size to the geometry hints.
17598
17599         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
17600         to compare two sets of geometry hints.
17601
17602         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
17603         from gtk_window_set_hints(), just compute the hints,
17604         don't set them.
17605
17606         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
17607         code from gtk_window_move_resize() to separate function,
17608         rationalize a bit.
17609
17610 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
17611
17612         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
17613         structure into a new private structure.
17614
17615         * gtkrc.c: Split GtkRcStyle into public/private.
17616         In the private part, add a list of pointers to the
17617         RcStyle lists this RcStyle participates in.
17618
17619         * gtkrc.c: When a RcStyle is free, remove all
17620         lists referencing it from the 
17621         realized_style_ht hash, and free those lists.
17622         
17623         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
17624         gtk_rc_init(), since that adds the default styles
17625         to the list of parsed RC files again.
17626
17627         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
17628         
17629 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
17630
17631         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
17632         checks that ensure that a widget's allocation is at least 1 in width
17633         and height. (GNOME note: this doesn't affect old panel code anymore,
17634         because GtkSocket will request width and height of at least 1 since
17635         Fri Jul 23).
17636
17637         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
17638         allocated yet (happens if the user realizes the window prematurely),
17639         size request and allocate it.
17640         (gtk_window_size_allocate): guard against guint underflows.
17641
17642 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
17643
17644         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
17645         in gtk_built_sources, so gtk.defs gets built prior to all other
17646         sources.
17647
17648 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
17649
17650         * gtk/Makefile.am:
17651         invoke indent on gtkmarshal.*. 
17652         rewrote source generation rules, use COPYING as oldest source tag for
17653         a piggyback rule to generate all sources from (don't touch it ;).
17654         major cleanups, strip spaces on build rules for GNU Make.
17655
17656         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
17657         source and target files from commandline arguments. don't invoke indent.
17658
17659 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
17660
17661         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
17662         notebook after switch to avoid drawing problems.
17663         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
17664         
17665         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
17666         show them instead. 
17667         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
17668
17669 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
17670
17671         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
17672         notebook after switch to avoid drawing problems.
17673         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
17674         
17675         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
17676         show them instead. 
17677         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
17678
17679 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
17680
17681         * gtk/gtkwindow.c:
17682         we use window->need_resize from configure_event now, to indicate that
17683         the gtkwindow should keep its allocation (e.g. because the user resized
17684         the window through window manager handles). resize_count is now reliably
17685         used to figure whether we got the allocation we requested from the
17686         window manager.
17687         configure events get queued as resizes now, the real stuff (size
17688         computation and allocation) now only goes on in gtk_window_move_resize().
17689         GtkWindow's requisition now contains its *real* requisition (like all
17690         other widgets), *not* taking usize into account.
17691         geometry_info->last_{width|height} is now updated from set_hints() only
17692         so it always contains the last hints we set for the window manager.
17693         made some event handlers return TRUE instead of FALSE.
17694         the overall code should be much more straight forward now, and the
17695         significant code portions are accompanied by comments now.
17696         (gtk_window_set_hints):
17697         removed requisition argument and made it
17698         fetch the requisition through gtk_widget_get_child_requisition.
17699         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
17700         does that now.
17701         (gtk_window_show):
17702         ensure that the widget is realized before calling 
17703         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
17704         ensure that we got properly size requested and allocated before
17705         realization.
17706         (gtk_window_configure_event):
17707         ignore plain window moves, or reallocate the widget tree through the
17708         resize queue otherwise.
17709         (gtk_window_move_resize):
17710         mostly rewrote this function to figure window manager hints more
17711         reliably, coalesce window moves and resizes to reduce configure events
17712         and do actuall size allocations.
17713
17714 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
17715
17716         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
17717         that have a resize pending, because a redraw is already queued for them.
17718
17719         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
17720         hack to clear resize_widgets.
17721
17722         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
17723         for resize containers prior to size allocation. (this is also a bit
17724         ugly, but avoids side effects for stopped emissions and is thus more
17725         reliable).
17726         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
17727
17728         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
17729         function from gtk_tooltips_expose, as we connect to ::expose_event
17730         *and* ::draw now.
17731
17732 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
17733
17734         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
17735         checks.
17736         (gtk_target_list_unref): Likewise.
17737
17738         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
17739
17740 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
17741
17742         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
17743         guard against division by zero. (Fixes bug #1339)
17744
17745 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
17746
17747         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
17748         Prevent the trivial leak of information of allowing
17749         word motion when the entry is not visible.
17750
17751 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
17752
17753         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
17754         modality to error dialog as well as confirmation dialogs.
17755         (Bug #1803, reported by Rosanna Wing Sze Yuen)
17756
17757 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
17758
17759         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
17760         tree->view_lines.
17761         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
17762
17763         * gtk/Makefile.am (install-data-local): Solaris apparently
17764         has various troubles with ln -f; use rm first instead.
17765         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
17766
17767 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
17768
17769         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
17770         use `cp' followed by `rm' (the `rm' was already there).
17771
17772 July 30, 1999 Elliot Lee <sopwith@redhat.com>
17773         
17774         * configure.in: Fix autoconf warnings about cross compilation by
17775         trying to provide sane defaults for AC_TRY_RUN.
17776         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
17777         put them into $(srcdir) when generated. Also add a dependency of
17778         gtksignal.h on gtkmarshal.h for -j builds. 
17779         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
17780
17781 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
17782
17783         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
17784         GDK_THREADS_{LEAVE,ENTER} pair.
17785         (From Paul Fisher <pnfisher@redhat.com>)
17786
17787 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
17788
17789         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
17790         width and height are always >0 (owen).
17791
17792 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
17793
17794         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
17795         change that assured that a widget's allocated with and height are
17796         always >1, since this breaks *buggy* panel code. unfortunately this
17797         back-breaks the gimp's color selector.
17798
17799         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
17800         allocation is always >0 in width and height, before sending the
17801         configure event; this is a *gross* hack to get the gimp back to work.
17802         
17803         * marked both cases with TODO-1.3
17804
17805 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
17806
17807         * gtk/gtktext.c: Don't display wrap indicators when
17808         text is not editable and word wrap is on.
17809
17810 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
17811
17812         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
17813         option menus here as they are not derived from menu shell, assure that
17814         the option menu has a menu we can add items to.
17815
17816 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
17817
17818         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
17819         width/height to (gint) before calculations and check against < 0 to
17820         avoid guint wraparounds.
17821
17822 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
17823
17824         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
17825         width and height is never zero. sanity check both dimensions against
17826         32767 and issue a warning if the allocation is greater than that.
17827
17828 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
17829
17830         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
17831         to g_main_pending() as well.
17832
17833 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
17834
17835         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
17836         call to g_main_iteration() - since that will regrab
17837         GTK+ lock to process events.
17838
17839 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
17840
17841         * gtk/gtkwindow.c
17842         - Regularize with the rest of GTK+ by making widget->requisition
17843           not reflect the set_usize()
17844         - Always recompute geometry hints, then check if they
17845           changed before sending them to the X server. The
17846           previous checks for changes would fail in a number
17847           of circumstances. 
17848
17849 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
17850
17851         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
17852
17853 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
17854
17855         * gtk/gtkdnd.c:
17856         - Code cleanups
17857         - Instantaneously update on modifier key presses
17858         - Allow cancellation of the drag with Escape.
17859
17860 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
17861
17862         * gtk/testgtk.c (create_handle_box): Set the policy
17863         to auto_shrink - otherwise the appearance is rather
17864         strange when flipping between horizontal and vertical.
17865
17866 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
17867
17868         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
17869         (gtk_window_set_default_size): don't change a value if it's < 0.
17870         queue a resize.
17871
17872 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
17873
17874         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
17875
17876 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
17877
17878         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
17879         add an extra "/" when concating "/" + filename.
17880         (From Matt Grossman <mattg@oz.net>)
17881
17882 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
17883
17884         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
17885         for fg_gc if we set it for drawing pixmap.
17886
17887 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
17888
17889         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
17890         
17891         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
17892         already set, call old engine's destroy function and
17893         unref the old engine.
17894
17895 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
17896
17897         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
17898
17899 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
17900
17901         * gtk/gtkaccelgroup.h: mark certain functions as internal.
17902
17903 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
17904
17905         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
17906         expand behaviour changed.
17907
17908         * gtk/gtklabel.c (gtk_label_set_pattern):
17909         (gtk_label_set_justify):
17910         (gtk_label_set_line_wrap):
17911         don't bother invoking queue_clear, the reallocation does
17912         that for us, always free_words so the upcoming resize will
17913         relayout the label's contents.
17914
17915 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
17916
17917         * applied argument implementation patches from Elena Devdariani
17918         <elena@cogent.ca>.
17919
17920         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
17921         ::space_style, ::relief
17922         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
17923         * gtk/gtkpreview.c: ::expand
17924         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
17925         * gtk/gtknotebook.c: ::homogeneous
17926         * gtk/gtklabel.c: ::wrap
17927         * gtk/gtklist.c: ::selection_mode
17928         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
17929         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
17930         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
17931         * gtk/gtkclist.c: ::sort_type
17932         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
17933         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
17934
17935 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
17936
17937         * gtk/gtkstyle.c: Removed ill-thought-out part of last
17938         comment.
17939
17940 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
17941
17942         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
17943         counting right when we have to attach a new style
17944         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
17945
17946         * gtk/gtkstyle.c: Documented the refcounting
17947         peculularities of gtk_style_attach.
17948
17949 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
17950
17951         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
17952         window types.
17953
17954         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
17955         of GTK_TOPLEVEL for creating the window.
17956
17957 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
17958
17959         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
17960         the last argument (reported by Per Winkvist).
17961         
17962 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
17963
17964         Fixes for invisible XOR lines (Frank Loemker
17965         <floemker@TechFak.Uni-Bielefeld.DE>)
17966         
17967         * gtk/gtkclist.c (gtk_clist_realize): Always use
17968         a non-zero pixel for GDK_XOR.
17969
17970         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
17971         Use GDK_INVERT instead of GDK_XOR.
17972
17973 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
17974
17975         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
17976         signals if h/voffsets differ from adjustment values.
17977         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
17978
17979 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
17980
17981         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
17982         ::selection-done emissions up to the topmost menu shell.
17983
17984 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
17985
17986         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
17987         the user data on the window before destroying it.
17988
17989         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
17990         unrealize handler to take care of destroying 
17991         notebook->panel properly. 
17992         (Bug #1198 - Morten Welinder <terra@diku.dk>)
17993
17994         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
17995         of g_new and g_realloc to stop memory leak. (Actually,
17996         we could just use g_realloc(), but I'm not 100% sure
17997         that is portable).
17998         (Bug #1196 - Morten Welinder <terra@diku.dk>)
17999
18000 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
18001
18002         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
18003
18004         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
18005         for fontsets.
18006
18007         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
18008         with bin/button confusion.
18009
18010 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
18011
18012         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
18013         and show how preselection of radio items is done.
18014
18015 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
18016
18017         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
18018         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
18019         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
18020         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
18021         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
18022         * gtk/gtktable.c (gtk_table_attach): 
18023         * gtk/gtklist.c (gtk_list_insert_items): 
18024         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
18025         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
18026         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
18027         * gtk/gtkbin.c (gtk_bin_add): 
18028         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
18029         * gtk/gtkfixed.c (gtk_fixed_put): 
18030         * gtk/gtklayout.c (gtk_layout_put):
18031         general fixups to container_add logic. always realize child if
18032         child->parent is realized, only map the child and queue a resize
18033         if child and child->parent are both visible.
18034
18035 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
18036
18037         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
18038         instead of gtk_container_foreach to walk and unrealize children, so
18039         composite children get also unrealized.
18040         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
18041         (gtk_widget_map): assert that the widget is visible (basic constrain).
18042         (gtk_widget_real_map): assert that the widget is realized (basic
18043         constrain).
18044
18045 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
18046
18047         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
18048
18049 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
18050
18051         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
18052         file for iso-8859-2 locales.
18053
18054         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
18055
18056 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
18057
18058         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
18059          (Pointed out by andy@rz.uni-karlsruhe.de and others).
18060          Remove some suspicious and useless lines. 
18061
18062 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
18063
18064         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
18065         width,height = 0, 0 to mean - here to edge of window,
18066         instead of -1, -1, since the former is all we support.
18067
18068 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
18069
18070         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
18071         when removing from quit_functions list.
18072
18073 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
18074
18075         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
18076
18077 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
18078
18079         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
18080          When redrawing characters on non-visible entry, use appropriate
18081          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
18082
18083 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
18084
18085         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
18086         from drag coordinates.
18087         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
18088         use drag_dest_cell.
18089
18090         * gtk/gtktree (drag_dest_cell)
18091         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
18092         (Bug #1129)
18093
18094 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
18095
18096         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
18097         translate_* fields.
18098         (gtk_item_factory_finalize): invoke translate_notify independant from
18099         translate_data.
18100         (gtk_item_factory_set_translate_func): likewise.
18101         (gtk_item_factory_destroy): only remove ifactory pointer from those
18102         widgets that belong to us (stupid me).
18103
18104 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
18105
18106         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
18107         rc_style list when lookup succeeeds.
18108
18109 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
18110
18111         * gtk/gtkctree.c (resync_selection): 
18112         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
18113         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
18114         bug.
18115
18116 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
18117
18118         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
18119         Add some missing GDK_THREADS_ENTER()/LEAVE around
18120         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
18121
18122 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
18123
18124         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
18125         rather than emit_by_name.
18126
18127         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
18128         on the widget across multiple signal emissions.
18129         (gtk_editable_delete_text): same here.
18130         (gtk_editable_class_init): set widget_class->activate_signal after
18131         editable_signals[ACTIVATE] has been created.
18132
18133 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
18134
18135         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
18136         position here prematurely -- we might not have the
18137         right ->min_position and ->max_position yet.
18138
18139 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
18140
18141         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
18142         Add error traps so if the other end of the connection
18143         dies, we survive.
18144
18145         * gtk/gtkselection.c (gtk_selection_notify): Clean
18146         up properly when selection property retrieval fails.
18147         
18148         * gtk/gtkselection.c (gtk_selection_request): Correctly
18149         reject SelectionRequest notifies where the handler
18150         returns no data.
18151
18152 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
18153
18154         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
18155         when we've previously highlighted.
18156
18157         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
18158         emit two "drag_leave" signals for Motif drops.
18159
18160         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
18161         back the correct status messages when dropping from
18162         Motif onto a proxy window that is rejecting the
18163         drop.
18164
18165 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
18166
18167         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
18168         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
18169         to compare two argument values. added gtk_arg_to_valueloc() to set a
18170         variable from an arg through its location (pointer).
18171
18172         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
18173         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
18174         as gfloat*, uchars are collected as guchar*, ints are collected as
18175         gint*, etc...
18176
18177 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
18178
18179         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
18180         Include <string.h> instead of <strings.h>.
18181
18182         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
18183         (actually, a lot more duplicate includes occur if
18184          you trace through the sequence of #include's)
18185         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
18186         
18187 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
18188
18189         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
18190         gtk-a-higuti-990322-[0-3]
18191
18192         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
18193         that was causing -DX_LOCALE not to work.
18194
18195         * gtk/gtkrc.c (gtk_rc_init):
18196         X_LOCALE will never have LC_MESSAGES defined
18197
18198 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
18199
18200         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
18201         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
18202
18203         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
18204         left/right as well (gtk-michael-980726-0.patch.gz).
18205
18206         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
18207         for pointer values, use gchar instead of char. fixed uline allocation
18208         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
18209         chunks instead of G_ALLOC_ONLY.
18210         (gtk_label_size_request): always alter requisition as passed and leave
18211         widget->requisition alone.
18212         (gtk_label_set_text): allow NULL strings.
18213         (gtk_label_new): likewise.
18214
18215 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
18216
18217         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
18218
18219 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
18220
18221         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
18222         *and* mapped (i.e. drawable).
18223         (gtk_bin_expose): only send exposes to drawable children.
18224
18225         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
18226         (gtk_box_expose): only send exposes to drawable children.
18227
18228         * gtk/gtkhscale.c (gtk_hscale_draw): 
18229         * gtk/gtkvscale.c (gtk_vscale_draw):
18230         hm, this is an ugly one. we first compute the size of our trough area
18231         here (window relative) and then check intersection with the draw_area
18232         which is parent relative because we're a NO_WINDOW widget, so we need
18233         to offset the trough area by allocation.x and allocation.y before the
18234         check. (this must not be done for the background area though, since
18235         that's already computed parent relative).
18236
18237 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
18238
18239         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
18240         unrealize title buttons.
18241
18242 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
18243
18244         * gtk/gtkclist.c (gtk_clist_column_title_passive)
18245         (gtk_clist_column_title_active): 
18246         only connect/disconnect to GtkWidgetClass::event to block mouse events.
18247
18248         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
18249         zero initialize event, removed superfluous gdk_window_get_pointer call
18250
18251         * gtk/gtklist.c (gtk_list_vertical_timeout)
18252         (gtk_list_horizontal_timeout): removed superfluous
18253         gdk_window_get_pointer call
18254
18255 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
18256
18257         * plugging problems reported by "Bruce Mitchener, Jr."
18258         <bruce@puremagic.com> due to a purify session.
18259
18260         * gtk/gtkstyle.c:
18261         (gtk_style_ref): 
18262         (gtk_style_unref): assert ref_count to be > 0.
18263
18264         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
18265         the requisition.
18266         (gtk_clist_set_shift): likewise.
18267
18268         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
18269         adjustments.
18270
18271         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
18272         event before sending it and set send_event to TRUE (which needs to
18273         be done for *all* synthesized events).
18274         (gtk_list_vertical_timeout): likewise.
18275
18276         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
18277         leaks.
18278
18279         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
18280         to TRUE when synthesizing events.
18281
18282 [ *** end of merges from 1.2 *** ]      
18283         
18284 1999-11-21  Tor Lillqvist  <tml@iki.fi>
18285
18286         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
18287         (or copied from gdkconfig.h.win32 on Win32, sigh).
18288
18289         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
18290
18291         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
18292
18293         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
18294
18295         * gdk/gdkconfig.h.win32: New file.
18296
18297         * gdk/win32/makefile.cygwin: Build just a static archive here.
18298
18299         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
18300         for the DLL from the static archive built above.
18301
18302         * gdk/gdk.def: Moved here from the win32 subdirectory.
18303
18304         * gdk/win32/*: Adapt for the changed private struct organisation.
18305
18306         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
18307
18308 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
18309
18310         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
18311         for wheel mice (buttons 4 and 5).
18312
18313 1999-11-18  Tor Lillqvist  <tml@iki.fi>
18314
18315         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
18316         drawables use just the pixel field in the foreground and
18317         background GdkColor of the GdkGC.
18318
18319         gdk_gc_set_{fore,back}ground() are called in the GIMP with
18320         GdkColors containing uninitialized (red,green,blue) fields, and
18321         just the pixel field filled in, and furthermore in the
18322         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
18323         It thus turns out that we really don't need to have the full
18324         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
18325         it later to have just the pixel values.
18326
18327 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
18328
18329         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
18330
18331 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
18332
18333         * docs/gtkfaq.sgml: threads example from Erik Mouw.
18334         New question on GtkLabel background colors.
18335
18336         * docs/gtk_tut.sgml:
18337           - Correct the example code callback
18338             function definitions.
18339           - Update the gtkdial example code, from Frans van Schaik.
18340           - Update setselection.c to current API.
18341
18342         * examples/Makefile examples/*/*.c: Update to code
18343         listed in tutorial.
18344
18345 1999-11-10  Tor Lillqvist  <tml@iki.fi>
18346
18347         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
18348         subrange table (from the "Developing International Software for
18349         WIndows 95 and Windows NT" book) was missing the Hangul syllable
18350         block... Get the loaded font's charset correctly.
18351
18352         (Note that this, and the other *-win32.c files, still really are
18353         the old ones, the win32 subdirectory is not ready for compilation
18354         yet after the reorg.)
18355
18356 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
18357
18358         * gtk/gtkclist.c: Fix off-by-one bug in parameter
18359         check.
18360
18361 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
18362
18363         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
18364         on results of XQueryDeviceState().
18365
18366 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
18367
18368         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
18369         we need to accesss only ->children. We need an accessor
18370         for the children.
18371
18372         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
18373         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
18374         to get rid of gdkx.h include.
18375         
18376         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
18377         and random references to 'None'.
18378
18379         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
18380         Get rid of unused #include <gdk/gdkx.h>
18381
18382         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
18383         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
18384         gdkconfig.h.
18385
18386 1999-11-08  Tor Lillqvist  <tml@iki.fi>
18387
18388         * gdk/win32/gdkdraw.c
18389         * gdk/win32/gdkfont.c
18390         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
18391         following yesterday's changes. (Unrelated to Owen's reorg.)
18392
18393 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
18394
18395         * gdk/x11/gdkinput-gxi.c: Add missing include,
18396           fix GdkWindowPrivate => GdkDrawablePrivate.
18397
18398         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
18399
18400         * gdk/x11/Makefile.am (xinput_sources): Add missing
18401         backslash to fix building with --with-xinput=none
18402
18403 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
18404
18405         Move all X specific code into the x11/ directory.
18406         Aside from shuffling things around, did the following:
18407
18408        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
18409          gdk_arg_context_* - a simple argument parsing system
18410          in the style of popt.
18411
18412        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
18413          gdk/x11/gdkprivate-x11.h:
18414          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
18415          add ->klass and ->klass_data fields. The klass_data
18416          field points to an auxilliary structure that is
18417          windowing system dependent.
18418
18419        * gdk/gdkfont.c: Make most of the measurement functions
18420          simply wrappers around gdk_text_extents().
18421
18422        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
18423          _gdk_font_strlen() function that hides the weird
18424          behavior in gtk+-1.[02] where a string is interpreted
18425          differently for 8-bit and 16-bit fonts.
18426
18427        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
18428          to store common code for synthesizing double/triple
18429          press events.
18430         
18431        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
18432          Make all the function that modify an existing GC
18433          simply wrappers around gdk_gc_set_values().
18434          
18435        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
18436          for throwing out later.
18437
18438        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
18439          GdkImagePrivate and GdkColormapPrivate to have a
18440          windowing system dependent part (GdkFontPrivateX etc.)
18441          that "derives" from the system-independent part.
18442
18443        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
18444          Got rid of the included-source-files for XInput in
18445          favor of automake conditionals. (Which didn't exist
18446          when XInput support was originally added.)
18447
18448        * gdk/gdkrgb.c: Remove the visual id from the debugging
18449          statements since that is X11 specific; print out
18450          type/depth info instead.
18451          
18452
18453 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
18454
18455         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
18456         loading duplicates of hashed fonts.
18457
18458         * gdk/gdk.c (gdk_keysym_convert_case): rename
18459         gdk_XConvertCase to gdk_keysym_convert_case, allow
18460         results to be NULL in the GTK+ style.
18461
18462         * gdk/gdkcompat.h: Started compatibility header
18463         for renames.
18464
18465 1999-11-07  Tor Lillqvist  <tml@iki.fi>
18466
18467         * gdk/win32/gdkprivate.h: New font private structures, related to
18468         fontsets.
18469
18470         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
18471         gdk_font_list_free(). On X11, will just be wrappers to
18472         XListFonts() and XFreeFontNames(). On Win32, the code previously
18473         in gtkfontsel.c is now here.
18474
18475         New function gdk_font_xlfd_create(). On X11 will get the FONT
18476         property of the font (for GDK_FONT_FONTs), or call
18477         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
18478         builds a XLFD style name from the font information in the LOGFONT
18479         struct(s).
18480
18481         New function gdk_font_xlfd_free(), which correspondingly frees the
18482         string returned by gdk_font_xlfd_create().
18483
18484         Implement fontsets on Win32. Add a function that iterates over a
18485         wide char string and calls a callback function for each substring
18486         of wide chars from the same Unicode subrange (and thus probably
18487         available in the same real font).
18488
18489         Improve the XLFD emulation a bit.
18490
18491         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
18492
18493         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
18494         Beta3, WM_IME_CHAR messages don't seem to contain the composed
18495         multi-byte char as with the Active IMM on Win9x. Oh well, handle
18496         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
18497         ImmGetCompositionStringW() to get the composed Unicode chars.
18498
18499         * gdk/win32/gdkgc.c
18500         * gdk/win32/gdkdraw.c: Changes needed because of the font private
18501         struct changes.
18502
18503         * gdk/win32/gdk.def: Add the new functions.
18504
18505 1999-11-04  Tor Lillqvist  <tml@iki.fi>
18506
18507         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
18508         get the Platform SDK to get <dimm.h>.
18509
18510         * gdk/win32/gdkevents.c: More event handling fixes and
18511         simplification. Never generate motion events with is_hint true. We
18512         used to do that on bogus grounds earlier. Windows sends
18513         WM_MOUSEMOVE messages on button events even if the mouse hasn't
18514         moved, ignore these.
18515
18516         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
18517
18518         * gdk/win32/gdkglobals.c
18519         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
18520         the TrackMouseEvent function, and use it.
18521
18522         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
18523         char before calling WideCharToMultiByte in order to get a string
18524         for the window title.
18525
18526         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
18527
18528         * gdk/win32/gdk.def: Remove obsolete functions.
18529
18530         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
18531         /nodefaultlib and /defaultlib switches.
18532
18533         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
18534
18535 1999-10-31  Tor Lillqvist  <tml@iki.fi>
18536
18537         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
18538         EuroSign).
18539
18540         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
18541         same type as GdkWChar, especially on Win32.
18542
18543         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
18544
18545         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
18546         before passing to Windows GDI for drawing etc. Convert to the
18547         system default codepage before passing to Windows as window
18548         titles.
18549
18550         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
18551         support changing input locale on the fly.
18552
18553         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
18554         on-the-fly changes. Convert incoming characters from the current
18555         codepage to Unicode (and then to a UTF-8 multi-byte string) based
18556         on the current input language. Use keysym<->Unicode mapping tables
18557         and functions borrowed from xterm sources.
18558
18559         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
18560         editions of Win9x, use the ActiveX-based Active IMM (Input Method
18561         Manager) if available. IMEs and the Active IMM are available under
18562         the disguise of Chinese, Korean and Japanese support for IE and
18563         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
18564         support is present in all editions (as long as you install it).
18565
18566         Call DispatchMessage from gdk_events_queue() (and thus
18567         gdk_WindowProc()), instead of duplicating the code in
18568         gdk_WindowProc().
18569
18570         Reworked the grab handling and propagation code, factored out
18571         duplicated code snippets into separate functions. Other cleanups,
18572         too.
18573
18574         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
18575         the <dimm.h> header describing the Active IMM.
18576
18577         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
18578         just do the same as for "single" fonts.
18579
18580         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
18581         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
18582         the new keysyms from gdkkeysyms.h.
18583
18584         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
18585         fontset, so that gtkentry uses wide characters.
18586
18587         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
18588         GTk+'s system directory "gtk+", not "gtk".
18589
18590 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
18591
18592         * docs/gtkfaq.sgml: FAQ update
18593
18594 1999-10-21  Tor Lillqvist  <tml@iki.fi>
18595
18596         * gdk/win32/gdkprivate.h: Add more font private data.
18597
18598         * gdk/win32/gdkfont.c
18599         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
18600         fonts and strings. Now works much better. You still have to
18601         have a correct font selected, though. No fontset emulation yet.
18602
18603 1999-10-19  Tor Lillqvist  <tml@iki.fi>
18604
18605         * gtk/maketypes.awk: Use G_OS_WIN32.
18606
18607         * gtk/gtk.def: Add some missing entry points. Also some non-public
18608         ones, but PyGTK porter claims to need them.
18609
18610         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
18611         built-in type generation.
18612
18613 1999-10-14  Tor Lillqvist  <tml@iki.fi>
18614
18615         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
18616         GDK_FONT_FONT fonts (which is all we have for now, we don't
18617         emulate fontsets). The X11 version uses plain XDrawString in that
18618         case, too. The string passed to gdk_draw_text_wc seems to be in
18619         fact (at least, when used by gtkentry and gtktext) either in a
18620         single-byte charset, or a DBCS. Not Unicode.
18621
18622         This fixes the problem in gtkfontsel, where even if you had
18623         selected a font with a non-Latin1 charset (windows-greek, for
18624         instance), the preview still used Latin-1 glyphs.
18625
18626         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
18627         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
18628         (gdk_font_load): Recognize the demibold etc weights, even if we
18629         don't have the corresponding constants in the headers.
18630         (gdk_font_hash_insert): Use same hash mechanism as in the X11
18631         version. Should save font resources a bit, when we don't have
18632         multiple HFONTs for the same font.
18633
18634         * gdk/win32/gdkprivate.h: Add the names field as in the X11
18635         version.
18636
18637 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
18638
18639         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
18640         X values
18641
18642 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
18643
18644         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
18645         layout support (as mentioned on
18646         http://www.jcinteractive.com/gnome-ui/software/widgets/)
18647
18648 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
18649
18650         * gtk/fnmatch.c
18651         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
18652
18653 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
18654
18655         * configure.in (ALL_LINGUAS): Added Galician (gl)
18656
18657 1999-10-05  Tor Lillqvist  <tml@iki.fi>
18658
18659         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
18660
18661         * gdk/win32/gdkcompat.c: New file, actually provide an
18662         implementation for the deprecated functions. (Just temporarily.)
18663
18664         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
18665
18666         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
18667
18668         * gdk/win32/gdk.def gtk/gtk.def: Updates.
18669
18670 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
18671
18672         * configure.in: Added "uk" to ALL_LINGUAS.
18673         
18674 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
18675
18676         * configure.in: correct checking for BeOS check
18677
18678         * gdk/gdktypes.h
18679         * gtk/fnmatch.c
18680         * gtk/gtkfilesel.c
18681         * gtk/gtkitemfactory.c
18682         * gtk/gtkmain.[ch]
18683         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
18684
18685 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
18686
18687         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
18688         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
18689         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
18690         by Bulgarian). 
18691
18692 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
18693
18694         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
18695         Fix a reference to window_private->destroyed.   
18696
18697         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
18698         (ugly) setting of an internal GdkWindow member to use
18699         a _slightly_ cleaner macro.
18700
18701         * gdk/gdkprivate.h: Split GdkWindowPrivate into
18702         GdkDrawablePrivate and GdkWindowPrivate.
18703         Add extra macros for accessing GDK_DRAWABLE_ components.
18704
18705         * *.[ch]: Massive adjustments for the above, use the
18706         new macros in a lot of places.
18707
18708 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
18709
18710         * gdk/gdktypes.h: Make GdkDrawable the base type,
18711         not GdkWindow.
18712
18713 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
18714
18715         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
18716
18717 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
18718
18719         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
18720
18721 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
18722
18723         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
18724         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
18725
18726         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
18727
18728         * docs/gtk-config.1: Now autogenerated.
18729         * docs/Changes-1.4.txt: started
18730         
18731 1999-10-03  Tor Lillqvist  <tml@iki.fi>
18732
18733         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
18734         to #ifdef also here.
18735
18736         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
18737         Owen did to the X11 backend.
18738
18739         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
18740         ScrollWindowEx when blitting inside a window, it can't be correct
18741         in the general case.
18742
18743         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
18744         WM_GETMINMAXINFO is easier.
18745
18746         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
18747         depth equal to the bitspixel value, not the visual's depth.
18748
18749         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
18750         to 24 even if the bitspixel value is 32.
18751
18752         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
18753         need to check for depth==32 when bpp==32, depth will always be 24.
18754
18755 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
18756
18757         * docs/Changes-1.4.txt: Started
18758         
18759         * gtk/Makefile.am (gdk_headers): Include all the new headers.
18760
18761         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
18762         
18763         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
18764         into C file.
18765         
18766         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
18767         header to gdkinputprivate.h.
18768
18769         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
18770         unused since before 1.2.
18771
18772 1999-09-30  Tor Lillqvist  <tml@iki.fi>
18773
18774         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
18775         expand possible hex escapes in the font family (put there by
18776         logfont_to_xlfd if the font name isn't a legal XLFD font family,
18777         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
18778         On Win32, add hex escapes here, too.
18779
18780 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
18781
18782         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
18783         to #ifdef GDK_WINDOWING_X11.
18784
18785 [ Merges from gtk-1-2 ]
18786
18787 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
18788
18789         * configure.in: fixed "GNU Make" check to pass with new make version
18790         3.77.95.
18791
18792 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
18793
18794         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
18795         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
18796         AM_PATH_GTK() macros don't get confused by the -pre1.
18797
18798 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
18799
18800         * configure.in (REBUILD): Change check for perl5
18801           to check explicitely for v >= 5.002. (5.001
18802           does not work with our scripts.)
18803
18804 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
18805
18806         * configure.in: evaluate $PERL for the perl version check. added
18807         --disable-rebuilds to give the user an option to completely disable
18808         any source autogeneration rules.
18809
18810 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
18811
18812         * configure.in: evaluate $ac_make when checking for GNU Make.
18813
18814 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
18815
18816         * docs/Makefile.am: added generation.txt.
18817
18818         * Makefile.am: require automake 1.4, build README from README.in and
18819         INSTALL from INSTALL.in in dist-hook.
18820         
18821         * README.in:
18822         * INSTALL.in: new files to autogenerate README and INSTALL from.
18823
18824         * configure.in: figure whether we have GNU Make
18825
18826         * docs/generation.txt: minor additions/corrections.
18827
18828 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
18829
18830         * docs/gtkfaq.sgml: FAQ Update
18831
18832 July 30, 1999 Elliot Lee <sopwith@redhat.com>
18833         
18834         * configure.in: Fix autoconf warnings about cross compilation by
18835         trying to provide sane defaults for AC_TRY_RUN.
18836
18837 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
18838
18839         * ltconfig
18840         * ltmain.sh: upgrade to libtool 1.3.3
18841
18842 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
18843
18844         * INSTALL: Indicate that the --with-glib= configure
18845         time flag is unsupported.
18846
18847 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
18848
18849         * docs/generation.txt: Added a file that gives
18850         documenation about the autogeneration process for
18851         various autogenerated files.
18852         
18853 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
18854
18855         * configure.in (LIBS): Look for libgmodule in the
18856         right location.
18857
18858 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
18859
18860         * docs/gtk_tut.sgml: Removed references to
18861         code examples in my directory on gtk.org as
18862         they should all be in the tutorial now.
18863
18864         * docs/gtk_tut.sgml: Added sources for dial-test
18865         and scribble-xinput programs that were previously
18866         missing.
18867
18868 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
18869
18870         * TODO: Added entry about menu keyboard navigation, removed
18871         some finished items.
18872
18873 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
18874
18875         * acinclude.m4: Standardize on func_dgettext
18876         not func_gettext, so that the checks for dgettext
18877         actually are paid attention to.
18878
18879 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
18880
18881         * configure.in (LIBS): Add $INTLLIBS into $LIBS
18882         directly, rather than repeating the checks for
18883         gettext.
18884
18885         * INSTALL: Added information about gettext and
18886         NLS support.
18887
18888         * acinclude.m4 (LIBM): Check for dgettext, not
18889         just gettext. This should hopefully fix things wrt
18890         systems with old versions of GNU gettext installed.
18891
18892 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
18893
18894         * configure.in (LIBS): Look for libgmodule in the
18895         right location.
18896
18897 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
18898
18899         * autogen.sh: add --enable-maintainer-mode
18900
18901         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
18902
18903 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
18904
18905         * docs/gtk-config.1.in:
18906           docs/Makefile.am:
18907           configure.in: gtk-config is now generated.
18908
18909         * docs/gtk-config.1: Removed, now generated.
18910
18911 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
18912
18913         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
18914         handle CreateNotify itself, still put out a debuging message for
18915         --gdk-debug=events. made the ReparentNotify debugging message more
18916         verbose.
18917         wrap xcoords translation for ConfigureEvents into an error trap,
18918         a destroy event may already be pending, and in that case, the
18919         actuall coordinate values are not at all critical.
18920
18921 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
18922
18923         * gdk/gdkcc.c: Stop leaking the color_hash all over
18924         the place. Simplify and improve the logic.
18925
18926 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
18927
18928         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
18929         for prototypes and function implementations consistent (reported
18930         by Tomas Ogren).
18931
18932 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
18933
18934         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
18935         send_event set in debugging output.
18936         (gdk_compress_exposures): default initialize the event so we don't
18937         operate on bogus values (namely send_event).
18938
18939 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
18940
18941         * gdk/gdkwindow.c: When we receive an unexpected
18942         destroy notify on one of our windows, don't just
18943         warn about it, also mark our windows as destroyed.
18944
18945 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
18946
18947         * gdk/gdkfont.c (gdk_font_hash_insert): Add
18948           name => font and name => fontset hashes. The 
18949           name => fontset hash is a _big_ win since we
18950           weren't previously caching fontsets at all and loading
18951           fontsets is expensive. The name => font hash
18952           is less of a win, but it does save us from doing
18953           repeated XQueryFont calls on the same font.
18954
18955         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
18956           list so we can remove font/fontset from hash.
18957
18958 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
18959
18960         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
18961           and slightly confusing test. [ XInternAtom (,,TRUE)
18962           will never return None ].
18963
18964 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
18965
18966         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
18967           gdk/gdkwindow.c (gdk_window_set_hints):
18968
18969         Don't omit setting the properties if flags == 0 -
18970         there may be an existing set of properties there
18971         already. (Very old bug. Would it be better to
18972         delete the property instead?)
18973
18974         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
18975           spelling error in comment.
18976
18977 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
18978
18979         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
18980           to avoid stomping over gdk_error_warnings.
18981
18982         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
18983           as (bits_per_pixel + 7) / 8. This gives the same
18984           result as before for multiples of 8, but actually
18985           a "reasonable" value for 1bit or 4bit displays.
18986
18987 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
18988
18989         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
18990         GNU Make.
18991
18992 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
18993
18994         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
18995         discarding configure events.
18996
18997 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
18998
18999         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
19000         refcount is greater than zero.
19001
19002         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
19003
19004         * gdk/gdkfont.c (gdk_font_unref): Likewise.
19005
19006         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
19007
19008         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
19009
19010 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
19011
19012         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
19013         that format 32 => sizeof(item) == 4. It really is
19014         sizeof(long).
19015
19016 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
19017
19018         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
19019         core dump at all on X IO errors, only core dump
19020         if --enable-debug for X errors.
19021
19022 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
19023
19024         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
19025         unknown window:" message. disabled ConfigureNotify discarding code,
19026         because it led to events being processed out of order.
19027
19028 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
19029
19030         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
19031
19032         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
19033         we export this function, supress error warnings and don't reset the
19034         error code in the first half of this function.
19035
19036         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
19037         code (instead of just -1) so gdk_error_trap_pop() reveals something
19038         actually informative about the error that happened.
19039
19040         * gdk/*.c:
19041         don't rely on gdk_error_code being -1 if an error occoured, but just
19042         gdk_error_code != 0.
19043
19044 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
19045
19046         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
19047         pointer *before* invoking the filter function, so we at least don't
19048         crash if a filter is removed that is currently executed. window filters
19049         *really* need to be made truely reentrant at some point.
19050
19051 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
19052
19053         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
19054         PropertyNotify debug messages.
19055
19056 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
19057         
19058         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
19059         
19060         * gdk/gdkim.c: Fix cut-and-paste errors for 
19061         x/y and PreeditAttributes/StatusAttributes.
19062
19063 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
19064
19065         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
19066         G_MAXINT to 2^16 to alleviate overflow problems in
19067         various window managers.
19068
19069 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
19070
19071         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
19072         for fontsets.
19073
19074 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
19075
19076         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
19077         Initialize size_hints.x and size_hints.y because kwm
19078         brokenly pays attention to them.
19079         (Bug #1181 -  Lars Heete <hel@admin.de>)
19080
19081 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
19082
19083         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
19084         return value of gdk_list_visuals(). 
19085         (Bug #1193 - Morten Welinder <terra@diku.dk>)
19086
19087 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
19088
19089         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
19090         XSetIMValues to (void *) when comparing to NULL, to workaround
19091         the problem of some compilers barfing since older X headers don't
19092         have the prototype for it.
19093
19094 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
19095
19096         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
19097         for pseudocolor where colormap->colors was double
19098         allocated.
19099
19100         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
19101         color value in the hash table with the pixel filled
19102         in so when we do later hash table lookups, the color
19103         value is correct.
19104         
19105 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
19106
19107         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
19108         making the call
19109
19110 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
19111
19112         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
19113         pointed out by Morten Welinder <terra@diku.dk>.
19114
19115 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
19116
19117         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
19118           default filter from the list
19119
19120 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
19121
19122         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
19123           default filter from the list
19124
19125 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
19126
19127         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
19128
19129         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
19130         g_strdup_printf instead of calcing the length separately
19131
19132 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
19133
19134         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
19135         that we don't do in many other places. (Fixing duplicate 
19136         #include of config.h)
19137
19138         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
19139         Otherwise, #ifndef XINPUT_NONE check in the latter
19140         doesn't work. (Bug #546)
19141
19142 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
19143
19144         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
19145         "None" case insensitive.
19146
19147 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
19148
19149         * gdk/gdkselection.c: 
19150         Add error traps so if the other end of the connection
19151         dies, we survive.
19152
19153 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
19154
19155         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
19156         dest_xid field into two fields - one for the window
19157         to send in messages, one to indicate the last looked
19158         up window for caching purposes. This is needed, so
19159         that Leave messages get the correct window.
19160
19161 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
19162
19163         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
19164         Fix warning created by people mucking around
19165         with the gsource API.
19166
19167         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
19168         Change mapping between GIOCondition and GdkInputCondition
19169         to match the way the Linux kernel does it. This should
19170         fix problems where closed pipes were no longer signalling
19171         GDK_INPUT_READ on systems with a native poll().
19172
19173 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
19174
19175         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
19176         explicitly for the string "None" - it is in the XPM
19177         spec and some servers treat unknown colors in odd ways
19178         (like asking the user!)
19179
19180 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
19181
19182         * gdk/gdkevents.c: made "->" into a "." of previous change so
19183         it compiles
19184
19185 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
19186
19187         * gdk/gdkevents.c (gdk_compress_exposures): Set the
19188         window field of the event structure before calling
19189         user filters.
19190
19191 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
19192
19193         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
19194         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
19195
19196 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
19197
19198         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
19199         intermediate text property - prevents major memory
19200         leak when gdk_use_mb.
19201         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
19202
19203 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
19204
19205         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
19206         gtk-a-higuti-990322-[0-3]
19207
19208         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
19209         sizeof(wchar_t) != sizeof (GdkWChar)
19210
19211         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
19212         that was causing -DX_LOCALE not to work.
19213
19214         * gtk/gtkrc.c (gtk_rc_init):
19215         X_LOCALE will never have LC_MESSAGES defined
19216
19217         * gdk/gdk.c (gdk_init_check):
19218         Remove --xim-preedit and --xim-status from argv properly.
19219
19220         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
19221         that the client window is present on the X server
19222         before we pass it to the input method.
19223
19224 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
19225
19226         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
19227         if --display is specified on the command line, than
19228         the drag window will not be created on that display.
19229         
19230 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
19231
19232         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
19233         lookups with only_if_exists == TRUE were inserting
19234         bogus values into the atom cache.
19235
19236 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
19237
19238         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
19239         then reset it to NULL.
19240
19241         * gdk/gdkcolor.c:
19242         (gdk_colors_free): 
19243         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
19244         key for g_hash_table_remove() in both functions, this prevents us
19245         from accessing possibly uninitialized portions of a GdkColor structure
19246         where we are only interested in its pixel value.
19247
19248 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
19249
19250         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
19251         font hash table, if we have a GdkFontPrivate entry for this font
19252         already, simply increment its reference count, provided by Olaf Dietsche
19253         <olaf.dietsche+list.gtk@netcologne.de>.
19254
19255 1999-09-21  Tor Lillqvist  <tml@iki.fi>
19256
19257         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
19258         just to be sure.
19259
19260         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
19261         unused variables, leftovers from the X11 version.
19262
19263         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
19264
19265         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
19266         downcase fields on X11.
19267
19268 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
19269         
19270         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
19271         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
19272
19273 1999-09-17  Tor Lillqvist  <tml@iki.fi>
19274
19275         * gdk/win32/gdk.def: Add gdk_threads_mutex.
19276
19277         * gtk/makefile.msc: Correct path to libintl.
19278
19279         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
19280         use of gint vs. int, and gint vs. gboolean in headers and
19281         definitions. Use GtkType for the *_get_type functions. Note that
19282         these changes preserve binary compatibility.
19283
19284         * gdk/gdk.c
19285         * gdk/win32/gdk.c
19286         * gdk/gdk.h: Fix inconsistencies: gint vs int.
19287
19288         * gtk/gtkmain.c
19289         * gtk/gtkclist.c
19290         * gtk/gtkmenufactory.c
19291         * gtk/gtknotebook.c
19292         * gtk/gtkwidget.c: Fix inconsistencies, also gint
19293         vs. gboolean.
19294
19295         * gtk/gtkcolorsel.[ch]
19296         * gtk/gtkcombo.[ch]
19297         * gtk/gtkdrawingarea.[ch]
19298         * gtk/gtkgamma.[ch]
19299         * gtk/gtkhandlebox.[ch]
19300         * gtk/gtkhpaned.[ch]
19301         * gtk/gtkhruler.[ch]
19302         * gtk/gtkplug.[ch]
19303         * gtk/gtkpreview.[ch]
19304         * gtk/gtkruler.[ch]
19305         * gtk/gtksocket.[ch]
19306         * gtk/gtkstatusbar.[ch]
19307         * gtk/gtktoolbar.[ch]
19308         * gtk/gtkvbbox.[ch]
19309         * gtk/gtkvpaned.[ch]
19310         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
19311         functions.
19312
19313         * gtk/gtkgamma.h: Fix bug, missing () in call of
19314         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
19315
19316 1999-09-14  Tor Lillqvist  <tml@iki.fi>
19317
19318         * gdk/gdkcolor.c (gdk_colormap_new)
19319         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
19320         colormap->colors was allocated twice.
19321
19322         * gdk/win32/gdk.c: Remove some unused stuff.
19323
19324         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
19325         colormap.
19326
19327         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
19328         * gtk/gtklabel.h (gtk_label_get_type)
19329         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
19330         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
19331         in a couple of places, not guint.
19332
19333 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
19334
19335         * configure.in,po/et.po: added Estonian language file
19336
19337 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
19338
19339         * configure.in,po/da.po: added Danish file
19340
19341 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
19342
19343         * docs/gtkfaq.sgml: Minor FAQ Update
19344
19345 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
19346
19347         * docs/gtkfaq.sgml: FAQ update
19348
19349 1999-08-27  Tor Lillqvist  <tml@iki.fi>
19350
19351         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
19352         way to get window contents continually refreshed while resizing. I
19353         didn't like the effects myself, so it's not on by default.
19354
19355         * gdk/win32/gdkprivate.h: New flag variable
19356         gdk_event_func_from_window_proc, FALSE by default.
19357
19358         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
19359         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
19360         are passed --gdk-event-func-from-window-proc.
19361
19362         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
19363         and we have am event_func, call it instead of enqueing the event.
19364
19365 1999-08-23  Tor Lillqvist  <tml@iki.fi>
19366
19367         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
19368         Kelley: Set expose_count in GdkEventExposes correctly.
19369
19370         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
19371         MULTIPLE_WINDOW_CLASSES).
19372
19373         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
19374         for bug in NT, apparently NT *does* draw the end pixel, too, in
19375         LineTo with a one-pixel pen, so we don't have to do it ourselves.
19376
19377 1999-08-21  Tor Lillqvist  <tml@iki.fi>
19378
19379         Improvements by Hans Breuer: 
19380
19381         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
19382
19383         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
19384         CS_?REDRAW flags as they cause lots of (late) redraws when "show
19385         window contents while dragging" is turned on. Allocate at least
19386         one unique class for every GdkWindowType. If support for single
19387         window-specific icons is ever needed (eg. Dialog specific), every
19388         such window should get its own class.
19389
19390 1999-08-19  Tor Lillqvist  <tml@iki.fi>
19391
19392         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
19393         error that caused crashes.
19394
19395 1999-08-17  Tor Lillqvist  <tml@iki.fi>
19396
19397         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
19398         window, use ScrollWindowEx, and call UpdateWindow. This prevents
19399         bugs when for instance part of the window was outside the
19400         display. Thanks to Philippe Colantoni for finding and fixing this.
19401
19402 1999-08-16  Tor Lillqvist  <tml@iki.fi>
19403
19404         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
19405         endpoint calculations which were totally wrong. (A little RTFMing
19406         helps a lot ;-)
19407
19408         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
19409         from a separate directory, not from gettext, because of licensing
19410         issues (we want to use the LGPL version).
19411
19412         * README.win32: Mention the intl from glibc vs from gettext issue.
19413
19414 1999-08-13  Tor Lillqvist  <tml@iki.fi>
19415
19416         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
19417         in the key event handling: Now AltGr chars work again. Also,
19418         now Alt-digits are passed up as well as Control-digits.
19419         Pass keypad plus and minus as normal plus and minus.
19420
19421 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
19422
19423         * docs/gtkfaq.sgml: FAQ Update
19424
19425 1999-07-25  Tor Lillqvist  <tml@iki.fi>
19426
19427         * README.win32
19428         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
19429         the Wintab SDK.
19430
19431         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
19432         OK, but getting closer. Guard against bogus tilt data from Wacom
19433         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
19434         enable easier building without Wintab.
19435
19436         * gdk/win32/gdkinput.h
19437         * gdk/win32/gdkevents.c 
19438         * gdk/win32/gdkwindow.c: Minor changes related related to above.
19439         
19440         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
19441         code. As we have just one visual on Win32, no sense to have it in a
19442         table, and no need for the hash table.
19443
19444         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
19445         better on white background.
19446
19447 1999-07-21  Tor Lillqvist  <tml@iki.fi>
19448
19449         * README.win32: Update gcc build instructions. Mention gettext is
19450         GPL.
19451
19452         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
19453         supported cursor size with GetSystemMetrics.
19454
19455         * gdk/win32/gdkfont.c
19456         * gtk/gtkfontsel.c: Guard against some font weight and charset
19457         symbols being undefined (in mingw32 headers).
19458
19459         * gdk/win32/makefile.cygwin
19460         * gtk/makefile.cygwin
19461         * gtk/gtkthemes.c: No longer need to have differently named
19462         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
19463
19464 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
19465
19466         * docs/gtkfaq.sgml: Long awaited FAQ update.
19467
19468 1999-07-15  Tor Lillqvist  <tml@iki.fi>
19469
19470         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
19471         it. Obscure bit manipulation needed.
19472
19473         * gdk/win32/gdkevents.c: Logging.
19474         
19475         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
19476         style (file name include compiler name) for theme engines.
19477
19478 1999-07-13  Tor Lillqvist  <tml@iki.fi>
19479
19480         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
19481
19482         * gdk/win32/gdkevents.c: Fix long-standing bug in key
19483         events. The key.string wasn't zero-terminated, still we strdup'ed
19484         it in gdk_event_copy(). Synthesize crossing events for button
19485         events before possible propagation.
19486
19487         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
19488
19489         * gdk/win32/makefile.cygwin
19490         * gtk/makefile.cygwin: Use new DLL naming style for the
19491         GCC-compiled ones.
19492
19493         * gdk/win32/makefile.msc
19494         * gtk/makefile.msc: Cosmetics mostly.
19495
19496         * gtk/gtk.def: Add missing entry points.
19497
19498         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
19499
19500 1999-07-09  Tor Lillqvist  <tml@iki.fi>
19501
19502         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
19503         or height is zero. Don't print a warning if Pie or Arc fails, they
19504         always fail (?) for very narrow ellipses.
19505
19506         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
19507         the part or the destination window corresponding to source area
19508         outside of the source drawable's boundary.
19509
19510         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
19511         anything if less than two points.
19512
19513         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
19514         return NULL. Gtk cut-and-paste inside a single program works
19515         better this way. (It always gets the clipboard contents from
19516         Windows, not from its own copy, which is cleared anyway. I can't
19517         say I fully understand what happens... Emulating the X selection
19518         and property stuff is a bit of a mess.)
19519
19520         * gdk/win32/gdkevents.c
19521         * gdk/win32/gdkproperty.c: A bit more verbose logging.
19522
19523         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
19524         that never got deleted). Revamp gdk_region_shrink.
19525
19526         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
19527         after use.
19528
19529         * gtk/gtk.def: Add some missing entry points.
19530
19531         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
19532         component.
19533
19534 1999-07-04  Tor Lillqvist  <tml@iki.fi>
19535
19536         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
19537         Control-digits specially.
19538
19539 1999-07-03  Tor Lillqvist  <tml@iki.fi>
19540
19541         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
19542
19543 1999-06-28  Tor Lillqvist  <tml@iki.fi>
19544
19545         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
19546         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
19547         finding this.)
19548
19549 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
19550
19551         * gtk+.spec.in: Corrected some typos in files section.
19552         
19553 1999-06-15  Tor Lillqvist  <tml@iki.fi>
19554
19555         * README.win32: Mention using GNU gettext.
19556         * config.h.win32: Enable NLS stuff.
19557         * gtk/makefile.msc: Use GNU gettext.
19558         * gdk/win32/gdkdnd.c: Minor header reorg.
19559         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
19560         cosmetics.
19561         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
19562         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
19563
19564 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
19565
19566         * acinclude.m4
19567         * config.guess
19568         * config.status
19569         * ltconfig
19570         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
19571
19572 1999-05-30  Tor Lillqvist  <tml@iki.fi>
19573
19574         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
19575         SafeAdjustWindowRectEx. Don't override all calls to
19576         AdjustWindowRectEx by it, but use it only in two places: When
19577         creating a new top-level window and when moving a top-level
19578         window.
19579
19580         Use screen coordinate rectangle, not client rectangle, in
19581         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
19582         when we try to place a window so that the decoration (mainly,
19583         title bar) isn't visible.
19584
19585         These changes fix the bug that showed up for instance as the
19586         GIMP's saved top-level windows moving right and down (by an amount
19587         equal to the window decoration) for each session. This bug showed
19588         up also in testgtk's "Saved Position".
19589
19590         gdk_window_resize also redone a bit.
19591
19592 1999-05-25  Tor Lillqvist  <tml@iki.fi>
19593
19594         * gtk/testgtkrc: Add (commented out) Windows-style theme
19595         include line.
19596
19597         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
19598
19599 1999-05-18  Tor Lillqvist  <tml@iki.fi>
19600
19601         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
19602         gdkx.h to a gdk subdirectory, so that applications can include
19603         these with <gdk/*.h> without trouble.
19604
19605         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
19606         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
19607         have their bitmap destroyed.
19608
19609         * gdk/win32/gdk.def: Add gdk_root_parent.
19610
19611 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
19612
19613         * configure.in
19614           gtk-config.in
19615           ltconfig
19616           ltmain.sh     
19617           gtk/Makefile.am: changes to compile nicely (with xlib) 
19618           on BeOS
19619
19620 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
19621
19622         * acinclude.m4
19623         * config.guess
19624         * config.sub
19625         * ltconfig
19626         * ltmain.sh: upgrade to libtool 1.3
19627
19628 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
19629
19630         * gtk/gtkclist.c:
19631         * gtk/gtkctree.c: merges from gtk-1-2
19632
19633 1999-04-25  Tor Lillqvist  <tml@iki.fi>
19634
19635         Support added for building using a GNU toolchain on Win32,
19636         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
19637
19638         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
19639         * config.h.win32: Changes for gcc.
19640         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
19641         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
19642         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
19643         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
19644         Protect shl stuff unavaiilable with mingw32 headers.
19645         * gdk/win32/gdkevents.c: Fix typo.
19646         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
19647         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
19648         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
19649         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
19650         the mingw32 headers.
19651         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
19652         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
19653         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
19654         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
19655         Test for NATIVE_WIN32, not _MSC_VER.
19656         * gtk/gtkmain.c: No use warning about developer version on Win32,
19657         there aren't any non-developer versions anyhow.
19658         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
19659         * gtk/makefile.msc: Use pthread from another directory. Minor other
19660         changes. 
19661
19662 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
19663
19664         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
19665           default filter from the list
19666
19667 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
19668
19669         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
19670          when gtk_widget_grab_default() is called for a widget that
19671          is not within a GtkWindow.
19672
19673 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
19674
19675         * docs/gtk_tut.sgml, examples/clist.c: use a
19676           scrolled window in the clist example. Minor
19677           tutorial fixes.
19678
19679 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
19680
19681         * docs/gtk_tut.sgml: Style check from David King
19682           <dking@youvegotmail.net>
19683
19684 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
19685
19686         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
19687         compile with unknown value of GDK_WINDOWING
19688
19689 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
19690
19691         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
19692         after the rule is fired.
19693         (install-exec-local): Install gdkconfig.h only if the contents are
19694         different from the currently installed gdkconfig.h.
19695
19696 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
19697
19698         * gdk/Makefile.am (configexecincludedir): Rename from 
19699         configincludedir so that gdkconfig.h will be installed 
19700         as part of `make install-exec'. 
19701
19702 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
19703
19704         * acinclude.m4
19705         * config.guess
19706         * config.sub
19707         * ltconfig
19708         * ltmain.sh: upgrade to libtool 1.2f
19709
19710         * autogen.sh: libtool is not required to autogen gtk+
19711
19712         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
19713         needed)
19714
19715 1999-03-18  Tor Lillqvist  <tml@iki.fi>
19716
19717         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
19718         declaring gdk variables exported/imported from the DLL. New image
19719         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
19720         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
19721         GDK_DRAG_PROTO_OLE2.
19722
19723         * gdk/gdk.h: Merge in Win32 version: Two new functions,
19724         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
19725         declared only for the Win32 version, but could be in the X11
19726         version as well. (Needed for a Xlib-less gdk_imlib.)
19727         gdk_color_hash should have only one parameter. Declare
19728         gdk_threads_mutex with GDKVAR.
19729         
19730         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
19731         just one parameter.
19732
19733         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
19734         per pixel, not bits.
19735
19736         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
19737         Fetch bpp (which means bits-per-pixel here) from another place on
19738         Win32. Accept also depth==32 (which we might get on Win32) with
19739         bpp==32.
19740
19741         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
19742         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
19743         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
19744         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
19745         in the backend-dependent directory, not in the common gdk
19746         directory.
19747
19748         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
19749         headers.
19750
19751 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
19752
19753         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
19754         want to use the Gtk+ devel version (which is true, and yes - even i am
19755         currently working with the 1.2.x branch). so everyone reading this, you
19756         probably want to issue
19757         cvs checkout -r glib-1-2 glib
19758         and
19759         cvs checkout -r gtk-1-2 gtk+
19760         as your next two comands.
19761
19762 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
19763
19764         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
19765         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
19766
19767         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
19768         file. strongly deprecated the GTK_HAVE_* macros, we provide
19769         GTK_CHECK_VERSION() for people that need to check for certain
19770         Gtk+ versions.
19771
19772         * gtk/gtkcompat.h: removed this from CVS.
19773         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
19774         idea right from the start, it just didn't seem like that back then.
19775
19776 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
19777
19778         * merges from gtk-1-2:
19779
19780 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
19781
19782         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
19783         item factory class has been created.
19784         (gtk_item_factory_parse_rc): likewise.
19785
19786         * gtk/gtkmenu.c:
19787         keep proper references for old_active_menu_item.
19788         (gtk_menu_reparent): unset the usize of the new parent,
19789         so the menu can sanely be size requested and we don't get nasty screen
19790         artefacts upon next reparentation.
19791         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
19792         enter notify. only synthesize enter notifies if the pointer really is
19793         inside the event window.
19794         (gtk_menu_popdown): use gtk_menu_shell_deselect().
19795         (gtk_menu_popup): move the background setting stuff into
19796         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
19797
19798         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
19799         gtk_menu_shell_select_item() to select the new item.
19800         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
19801         do the right thing for deselection as well.
19802
19803 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
19804
19805         * gtk/gtkwidget.[hc]:
19806         (gtk_widget_accelerators_locked): return whether a widget's accelerators
19807         are locked.
19808
19809         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
19810         existing accelerators if the widget's accelerators are locked.
19811
19812 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
19813
19814         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
19815
19816         * gtk/gtkmenu.c: truely forward key press and key release events to
19817         the menu widget from the toplevel or tearoff window. we can't simply
19818         connect to that, we need to stop further processing of the events as
19819         well.
19820
19821 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
19822
19823         * gtk/gtkmenu.c:
19824         (gtk_menu_key_press): pass event->keyval, event->state to
19825         gtk_accelerator_valid, instead of event->keyval twice.
19826         refuse to install single letter accelerators for menus that use
19827         single letter shortcuts.
19828
19829         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
19830         gtk_menu_ensure_uline_accel_group().
19831
19832         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
19833         which will always return an uline accel group, made
19834         gtk_menu_get_uline_accel_group() return NULL if the group isn't
19835         yet created.
19836
19837 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
19838
19839         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
19840
19841         * gtk/gtkclist.c (gtk_clist_column_title_passive):
19842         Leave button sensitive, trap  button_press, button_release,
19843         motion_notify, enter_notify and leave_notify events instead.
19844         (gtk_clist_column_title_active): disconnect event handler.
19845         (gtk_clist_drag_data_get): fixed memory leak. Reported by
19846         Guillaume Laurent <glaurent@worldnet.fr>
19847
19848 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
19849
19850         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
19851         width/height mixups.
19852
19853         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
19854         if needed.
19855
19856 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
19857
19858         * gtk/testgtk.c (create_item_factory): unref the item factory after
19859         window's destruction.
19860
19861         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
19862         count on the menu shell around the menu item's activation, since the
19863         signal emission may cause menu shell destruction.
19864
19865         * gtk/gtkitemfactory.c:
19866         the previous code leaked one accel group per menu. we use
19867         gtk_menu_get_uline_accel_group() now to fix that, and with that
19868         also create the underline accelerator group of the menus only if
19869         required (i.e. an underline accelerator has been specified).
19870         (gtk_item_factory_construct):
19871         (gtk_item_factory_create_item): removed code that would create an
19872         extra accel group for the menu (and leak references).
19873         (gtk_item_factory_create_item): adapted the underline accelerator
19874         installation code to properly feature gtk_menu_get_uline_accel_group().
19875
19876         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
19877         menu->accel_group, this may return NULL if the accelerator group
19878         hasn't been set yet.
19879         added gtk_menu_get_uline_accel_group() to retrive the underline
19880         accelerator group of the menu, this will be created on demand
19881         and proper care is taken about its reference count.
19882
19883         * gtk/gtkitemfactory.h:
19884         * gtk/gtkitemfactory.c:
19885         dumped the approach of keeping a widgets by action list on the
19886         factory since the factory<->widget destroy negotiation didn't work
19887         and would be hard to get going at all. instead we keep a list of
19888         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
19889         persistant throughout a program's life time).
19890         also, i removed the static const gchar *key_* variables, and made
19891         them inline strings (they weren't actually used anyways).
19892         (gtk_item_factory_add_item): update ifactory->items.
19893         (gtk_item_factory_destroy): destroy ifactory->items (and remove
19894         the item factory pointer from the remaining ifactory widgets).
19895         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
19896         list to find the widget.
19897         (gtk_item_factory_get_item): new function that works around
19898         gtk_item_factory_get_widget() limitations, this function will only
19899         return menu items, even for <Branch> entries.
19900
19901 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
19902
19903         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
19904         font hash table, if we have a GdkFontPrivate entry for this font
19905         already, simply increment its reference count, provided by Olaf Dietsche
19906         <olaf.dietsche+list.gtk@netcologne.de>.
19907
19908         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
19909         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
19910
19911 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
19912
19913         * gtk/gtkcontainer.c:
19914         (gtk_container_add_with_args):
19915         (gtk_container_addv):
19916         (gtk_container_add): before adding a child to a conatiner, make sure
19917         it is (default) constructed, this is neccessary because under certain
19918         circumstances the child will get relized and mapped immediatedly, in
19919         which case it has to be constructed already.
19920
19921 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
19922
19923         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
19924         values > 1 as TRUE also.
19925
19926 1999-03-16  Tor Lillqvist  <tml@iki.fi>
19927
19928         * README.win32: New file.
19929                 
19930         * configure.in: Check for lstat.
19931
19932         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
19933         completeness.
19934
19935         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
19936
19937         * gtk/gtk.def: Removed CRs.
19938
19939         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
19940         ..\gdk\win32).
19941
19942         * gdk/win32/makefile.msc: Correct upwards relative paths.
19943         
19944 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
19945
19946         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
19947           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
19948           it was connecting a void function to expose_event and the int
19949           returning function to the draw signal
19950
19951 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
19952
19953         * configure.in:
19954         Use correct path to libgmodule.la when ref'ing uninstalled copy
19955         of glib.  (Already in stable branch, Bug #417)
19956
19957 1999-03-15  Tor Lillqvist  <tml@iki.fi>
19958
19959         Win32 merge and general portability stuff:
19960                 
19961         * acconfig.h,configure.in: Check for <sys/time.h>.
19962
19963         * gdk/win32: New directory (actually, been there for a while).
19964         
19965         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
19966         NATIVE_WIN32, and use these. Always case fold on Win32. No
19967         backslashed escapes on native Win32.
19968
19969         * gtk/{gtk.def,makefile.msc}: New files.
19970
19971         * gtk/Makefile.am: Add above new files.
19972         
19973         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
19974         instead of <strings.h>.
19975
19976         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
19977         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
19978         <unistd.h> appropriately.
19979
19980         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
19981         Use ABS() (from <glib.h>) instead of abs().
19982         
19983         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
19984         of gtk (and thus glib) headers, so that WIN32 will be
19985         defined. With MS C, include <direct.h> for mkdir prototype.
19986
19987         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
19988         some casts, needed by MS C.
19989
19990         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
19991         implemented).
19992
19993         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
19994         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
19995         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
19996
19997         * gtk/gtkmain.h: Mark variables for export/import on Win32.
19998                 
19999         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
20000         the event is not a hint, or its window is not the slider. Needed
20001         on Win32, at least.
20002
20003         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
20004         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
20005         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
20006         a subdirectory of the Windows directory as gtk system
20007         configuration directory.
20008
20009         * gtk/gtkselection.c: No chunks on Win32.
20010
20011         * gtk/gtksocket.c: Not implemented on Win32.
20012
20013         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
20014
20015         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
20016
20017         * gtk/maketypes.awk: Declare variables with a macro that expands to
20018         necessary export/import magic in the case of Win32.
20019                 
20020         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
20021
20022 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
20023
20024         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
20025         since those were meant only for gdki18n.h.  
20026         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
20027         for widechar tests.
20028         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
20029
20030 1999-03-13  Tor Lillqvist  <tml@iki.fi>
20031
20032         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
20033         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
20034
20035         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
20036         installed) to CFLAGS.
20037
20038         * gdk/Makefile.am: Add rules for gdkconfig.h.
20039
20040         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
20041         APIs.
20042
20043         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
20044         gdkx.h anyway when compiling for X11.
20045         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
20046         general): Merge in Win32 version.
20047         
20048         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
20049         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
20050         expansion (if we don't have HAVE_PWD_H), allow for drive
20051         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
20052         included code from Craig Setera's port to Win32 (the one that uses
20053         X11, and the cygwin dll), even if it probably will be abandoned.
20054
20055         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
20056         the user entered one herself.  This way one can complete *.h and
20057         don't get matches on any .help files, for instance.
20058         
20059 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
20060
20061         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
20062         font hash table, if we have a GdkFontPrivate entry for this font
20063         already, simply increment its reference count, provided by Olaf Dietsche
20064         <olaf.dietsche+list.gtk@netcologne.de>.
20065
20066         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
20067         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
20068
20069 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
20070
20071         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
20072         the number of calls to gdk_draw_point() (and thus to X) by
20073         clipping the points by hand.
20074
20075         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
20076         the clip parameter.
20077         (gtk_handle_box_paint): Only paint the handle if the expose area
20078         intersects it.
20079
20080 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
20081
20082         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
20083
20084 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
20085
20086         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
20087         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
20088
20089 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
20090
20091         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
20092          textmode (O_TEXT) for OS/2 version.
20093
20094 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
20095
20096         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
20097         GtkSpinButton, "input" and "output", to make the output more flexible.
20098         The user has to provide a mapping between adjustment->value and the
20099         output string (and vice versa, if the spin button is editable). 
20100         See testgtk for examples.
20101
20102 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
20103
20104         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
20105         new one.
20106         
20107         * configure.in: set gtk+ version to 1.3.0.